1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BFMZ-eTC.js","./rZQlzAxD.js","./CrzdsfCC.js","./BBMKeZKJ.js","./DC1376r_.js","./BAi1NzZd.js","./CYXTgbtG.js","./sJGznWHq.js","./Or_Ymzzv.js","./CXVNNUuq.js","./COxM5Svr.js","./Bgmnbsp6.js","./DvpDhXaS.js","./CNs_Ozdc.js","./_materialId_.BIBdUd1I.css","./B_0CS7J2.js","./BDppHAJq.js","./CEoa-xHZ.js","./C1Mt4BKq.js","./DcSE4U2U.js","./_...DoWVe5nm.css","./DKpKLdJf.js","./_...CE6B4fVE.css","./JkzuaP3G.js","./_...8LqfVvQh.css","./4iNgsB8j.js","./BJZ90ViQ.js","./aboutus.dH3zvDQ-.css","./B1EQZ5na.js","./DEOf1mZb.js","./CoQyBrne.js","./Bss8S4m1.js","./DYGBWsvL.js","./B8nb_Ktt.js","./Cs2UZmro.js","./D4jPPL7z.js","./IgdAcXF6.js","./BAFez02v.js","./DZlJbz6-.js","./9_g3Yh0V.js","./DfkeUOu0.js","./CcqA-6rJ.js","./DdBHkC26.js","./CTAEMWDi.js","./recruit.Bmbyi-V-.css","./C5anmBef.js","./CgMEKt4c.js","./lzmhDbmd.js","./BAiEl-L5.js","./DyaDwRUz.js","./studio.Cu4IxA6y.css","./C6SEmcan.js","./Cgc9Y68M.js","./BwSTzXfR.js","./pages.C-00GkXM.css","./B891VHmY.js","./DQzRvNf3.js","./Cbsv60NA.js","./6E2i72U8.js","./DXmcCMpa.js","./C0YUhIJ9.js","./DxESvQGh.js","./BpbcSqFi.js","./B3Rroln7.js","./wnvmQBB-.js","./CUvTraRX.js","./D-yc1wpz.js","./GhCUQm6o.js","./D8QT214j.js","./CzWIcbo_.js","./ProsePre.D5orA6B_.css","./5Kfl8xKk.js","./B3D1lc5n.js","./Cyjml4x-.js","./DCSRoZGv.js","./CqtggAAh.js","./kBgJPBqX.js","./BL9ZqgEk.js","./uEiWnkBo.js","./BuUEguEu.js","./BAtYEYhM.js","./HaBSbt-E.js","./KfQ6U8Cr.js","./GlobalHeader.BiransQv.css","./products.DDKcTnrO.css","./CYZiLmlX.js"])))=>i.map(i=>d[i]); 2import{t as e}from"./CEoa-xHZ.js";import{_ as t,b as n,c as r,d as i,f as a,g as o,h as s,i as c,m as l,n as u,o as d,p as f,r as p,s as m,t as h,u as g,v as _,x as v,y}from"./rZQlzAxD.js";import{B as b,Cn as x,D as S,E as C,En as w,H as T,Ht as E,J as D,L as ee,Nt as te,O,On as k,Qn as ne,St as re,Tn as ie,Un as ae,Ut as oe,Wn as se,Yt as ce,Z as le,_ as A,_n as ue,an as de,b as j,bt as fe,cn as pe,ct as me,d as he,er as ge,et as _e,fn as ve,ft as ye,g as M,gn as be,gt as xe,h as Se,in as Ce,it as we,k as N,l as Te,ln as Ee,mt as P,nn as De,nr as Oe,nt as ke,o as Ae,ot as je,pn as Me,qt as F,rt as Ne,s as Pe,st as Fe,tr as Ie,tt as Le,un as Re,v as I,vn as L,vt as ze,wn as Be,wt as Ve,xn as He,xt as R,y as Ue,yn as We,z as Ge}from"./CrzdsfCC.js";import{A as Ke,B as qe,C as Je,D as Ye,E as Xe,F as Ze,G as Qe,H as $e,I as et,K as tt,L as nt,M as rt,N as z,O as it,P as at,R as ot,S as st,T as ct,U as lt,V as ut,W as dt,X as ft,Y as pt,_ as mt,a as ht,b as gt,c as _t,d as vt,f as yt,g as bt,h as xt,ht as St,i as Ct,j as wt,k as Tt,l as Et,m as Dt,n as Ot,o as kt,p as At,pt as jt,r as Mt,s as Nt,t as Pt,u as Ft,v as It,w as Lt,x as Rt,y as zt,z as Bt}from"./BBMKeZKJ.js";import{C as Vt,_ as Ht,d as Ut,f as Wt,g as Gt,h as Kt,m as qt,p as Jt,s as Yt,t as Xt,u as Zt,v as Qt,w as $t,y as en}from"./Bss8S4m1.js";import{t as tn}from"./rxhDcyfF.js";import{_ as nn,a as rn,b as an,d as on,f as sn,g as cn,i as ln,l as un,m as dn,o as fn,p as pn,r as mn,s as hn,t as gn,u as _n,v as vn,y as yn}from"./Or_Ymzzv.js";import{n as bn,t as xn}from"./DC1376r_.js";import{t as Sn}from"./C1Mt4BKq.js";import{n as Cn}from"./DcSE4U2U.js";import{$ as wn,A as B,C as Tn,D as En,E as Dn,F as On,G as kn,I as An,J as jn,K as Mn,L as Nn,M as Pn,N as Fn,O as In,P as Ln,Q as Rn,R as zn,T as Bn,U as Vn,V as Hn,W as Un,X as Wn,Y as Gn,Z as Kn,at as qn,c as Jn,ct as Yn,et as Xn,f as Zn,ft as Qn,g as $n,ht as er,j as tr,k as nr,lt as rr,mt as ir,n as ar,nt as or,ot as sr,pt as cr,q as lr,rt as ur,st as dr,tt as fr,u as pr,ut as mr,v as hr,w as gr,x as _r,z as vr}from"./lzmhDbmd.js";import{c as yr,d as br,s as xr}from"./CgMEKt4c.js";import"./BXZpK4QJ.js";import{h as Sr,w as Cr}from"./DYGBWsvL.js";import{i as wr,r as Tr,t as Er}from"./BAi1NzZd.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Dr=Symbol(`layout-meta`),Or=Symbol(`layout`),kr=Symbol(`route`),Ar=v({docsBase:y,reporters:n});function jr(e,t){try{return t in e}catch{return!1}}
2var Mr=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:Rr(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=Lr(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function Nr(e){if(typeof e==`string`)return new Mr(e);if(Pr(e))return e;let t=new Mr(e.message??e.statusMessage??``,{cause:e.cause||e});if(jr(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=Rr(e.statusCode,t.statusCode):e.status&&(t.statusCode=Rr(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;Lr(t.statusMessage)!==e&&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 Pr(e){return e?.constructor?.__h3_error__===!0}function Fr(e){let t={};for(let n in e.node.req.headers){let r=e.node.req.headers[n];t[n]=Array.isArray(r)?r.filter(Boolean).join(`, `):r}return t}var Ir=/[^\u0009\u0020-\u007E]/g;function Lr(e=``){return e.replace(Ir,``)}function Rr(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;var zr=()=>d()?.$router;function Br(e){let t=e.scope,n=de();for(;n;){if(n===t)return!0;n=n.parent}return!1}var Vr=(()=>{if(T()){let e=ee();if(!e||Br(e))return D(kr,d()._route)}return d()._route});function Hr(e){return e}var Ur=(e,t,n={})=>{let r=d(),i=n.global||typeof e!=`string`,a=typeof e==`string`?t:e;if(!a){Ar.NUXT_E2006({cause:e});return}i?r._middleware.global.push(a):r._middleware.named[e]=a},Wr=()=>{try{if(d()._processingMiddleware)return!0}catch{return!1}return!1},Gr=(e,t)=>{e||=`/`;let n=typeof e==`string`?e:`path`in e?Kr(e):zr().resolve(e).href;if(t?.open){let{protocol:e}=new URL(n,window.location.href);if(e&&hn(e))throw Ar.NUXT_E2002({toPath:n,protocol:e});let{target:r=`_blank`,windowFeatures:i={}}=t.open,a=[];for(let[e,t]of Object.entries(i))t!==void 0&&a.push(`${e.toLowerCase()}=${t}`);return open(n,r,a.join(`, `)),Promise.resolve()}let r=ln(n,{acceptRelative:!0}),i=t?.external||r;if(i){if(!t?.external)throw Ar.NUXT_E2001({toPath:n});let{protocol:e}=new URL(n,window.location.href);if(e&&hn(e))throw Ar.NUXT_E2002({toPath:n,protocol:e})}let a=Wr();if(!i&&a){if(t?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=sn(e);return{path:t,...n&&{query:on(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let o=zr(),s=d();if(i)return s._scope.stop(),t?.replace?location.replace(n):location.href=n,a?s.isHydrating?new Promise(()=>{}):!1:Promise.resolve();let c=typeof e==`string`?qr(e):e;return t?.replace?o.replace(c):o.push(c)};function Kr(e){return cn(e.path||``,e.query||{})+(e.hash||``)}function qr(e){let t=sn(e);return mn(gn(t.pathname))+t.search+t.hash}var Jr=`__nuxt_error`,Yr=()=>Be(d().payload,`error`),Xr=e=>{let t=ti(e);try{let e=Yr();d().hooks.callHook(`app:error`,t),e.value||=t}catch{throw t}return t},Zr=(e,t)=>{let n=e.callHook(`app:error`,ti(t));return _.NUXT_E1012({userAgent:navigator.userAgent,cause:t}),n},Qr=async(e,t)=>{if(tn(navigator.userAgent)){await Zr(e,t);return}await e.runWithContext(()=>Xr(t))},$r=async(e={})=>{let t=d(),n=Yr();t.callHook(`app:error:cleared`,e),e.redirect&&await zr().replace(e.redirect),n.value=void 0},ei=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,ti=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=Nr(e);return Object.defineProperty(t,Jr,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t};`global`in globalThis||(globalThis.global=globalThis);var ni=v({docsBase:y,reporters:n});function ri(e,t){return t&&typeof e==`function`&&(e.key=t),e}var ii=/\\/g,ai=/</g,oi=/"/g,si=/%\w+(?:\.\w+)?/g,ci=`%separator`;function li(e,t,n=!1){let r;if(t===`s`||t===`pageTitle`)r=e.pageTitle;else if(t.includes(`.`)){let n=t.indexOf(`.`);r=e[t.substring(0,n)]?.[t.substring(n+1)]}else r=e[t];if(r!==void 0)return n?(r||``).replace(ii,`\\\\`).replace(ai,`\\u003C`).replace(oi,`\\"`):r||``}function ui(e,t,n,r=!1){if(typeof e!=`string`||!e.includes(`%`))return e;let i=e;try{i=decodeURI(e)}catch{}let a=i.match(si);if(!a)return e;let o=e.includes(ci);return e=e.replace(si,e=>{if(e===ci||!a.includes(e))return e;let n=li(t,e.slice(1),r);return n===void 0?e:n}).trim(),o&&(e=e.split(ci).map(e=>e.trim()).filter(e=>e!==``).join(n?` ${n} `:` `)),e}var di=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,fi=e=>e.includes(`:key`)?e:e.split(`:`).join(`:key:`),pi=ri({key:`aliasSorting`,hooks:{"tags:resolve":e=>{let t=!1;for(let n of e.tags){let r=n.tagPriority;if(!r)continue;let i=String(r);if(i.startsWith(`before:`)){let r=fi(i.slice(7)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p-1,t=!0)}else if(i.startsWith(`after:`)){let r=fi(i.slice(6)),a=e.tagMap.get(r);a&&(typeof a.tagPriority==`number`&&(n.tagPriority=a.tagPriority),n._p=a._p+1,t=!0)}}t&&(e.tags=e.tags.sort(di))}}}),mi=ri({key:`deprecations`,hooks:{"entries:normalize":({tags:e})=>{for(let 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),`body`
2in t.props&&(t.props.body&&(t.tagPosition=`bodyClose`),delete t.props.body),t.props.renderPriority!=null&&(t.tagPriority=t.props.renderPriority,delete t.props.renderPriority)}}});function hi(e){return typeof e?.then==`function`}var gi=256;function _i(e,t){if(t===e.length)return;if(t===gi){let n=Array(e.length),r=!1;for(;t<e.length;t++){let i=yi(e[t]);n[t]=i,r||=hi(i)}return r?n:void 0}let n=yi(e[t]);if(hi(n)){let r=Array(e.length);r[t]=n;for(let n=t+1;n<e.length;n++)r[n]=yi(e[n]);return r}let r=_i(e,t+1);return r&&(r[t]=n),r}function vi(e,t,n){if(n===t.length)return;if(n===gi){let r=Array(t.length),i=!1;for(;n<t.length;n++){let a=yi(e[t[n]]);r[n]=a,i||=hi(a)}return i?r:void 0}let r=yi(e[t[n]]);if(hi(r)){let i=Array(t.length);i[n]=r;for(let r=n+1;r<t.length;r++)i[r]=yi(e[t[r]]);return i}let i=vi(e,t,n+1);return i&&(i[n]=r),i}function yi(e){if(typeof e==`function`)return e;if(hi(e))return Promise.resolve(e).then(yi);if(Array.isArray(e)){let t=_i(e,0);return t?Promise.all(t):e}if(e?.constructor===Object){let t=Object.keys(e),n=vi(e,t,0);if(n)return Promise.all(n).then(e=>Object.fromEntries(t.map((t,n)=>[t,e[n]])))}return e}var bi=ri(e=>{let t=new WeakMap;return{key:`promises`,hooks:{"entries:resolve":n=>{for(let r=n.entries.length-1;r>=0;r--){let i=n.entries[r],a=i.input;if(t.get(i)===a){n.entries.splice(r,1);continue}let o=yi(a);if(!hi(o)){t.delete(i);continue}t.set(i,a),n.entries.splice(r,1),Promise.resolve(o).then(n=>{t.get(i)===a&&(t.delete(i),i.input=n,delete i._tags,e.invalidate?.())},()=>{t.get(i)===a&&t.delete(i)})}}}}},`promises`),xi={meta:`content`,link:`href`,htmlAttrs:`lang`},Si=[`innerHTML`,`textContent`];function Ci(e,t,n,r=!1){return typeof e==`string`&&e.includes(`%`)?ui(e,t,n,r):e}var wi=ri(e=>({key:`template-params`,hooks:{"tags:resolve":({tagMap:t,tags:n})=>{let r=t.get(`templateParams`)?.props||{},i=r.separator||`|`;delete r.separator,r.pageTitle=Ci(r.pageTitle||e._title||``,r,i);for(let e of n){if(e.processTemplateParams===!1)continue;let t=xi[e.tag];if(t&&typeof e.props[t]==`string`)e.props[t]=Ci(e.props[t],r,i);else if(e.processTemplateParams||e.tag===`titleTemplate`||e.tag===`title`)for(let t of Si)typeof e[t]==`string`&&(e[t]=Ci(e[t],r,i,e.tag===`script`&&typeof e.props.type==`string`&&e.props.type.endsWith(`json`)))}e._templateParams=r,e._separator=i},"tags:afterResolve":({tagMap:t})=>{let n=t.get(`title`);n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=Ci(n.textContent,e._templateParams,e._separator))}}}),`template-params`),Ti=new Set([`link`,`style`,`script`,`noscript`]),Ei=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),Di=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),Oi=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),ki=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),Ai=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),ji=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),Mi=new Set([`theme-color`,`google-site-verification`,`author`,`og:locale:alternate`,`og:image`,`og:video`,`og:audio`,`article:author`,`article:tag`,`book:author`,`book:tag`,`twitter:image`]),Ni={critical:-8,high:-1,low:2},Pi=e=>typeof e==`number`?Number.isFinite(e):e;function Fi(e){return e===`__proto__`||e===`constructor`||e===`prototype`}var Ii=[`twitter`,`fediverse`],Li=[`og`,`book`,`article`,`profile`,`fb`,`payment`],Ri=[`ogImage`,`ogVideo`,`ogAudio`,`twitterImage`],zi=[`contentType`,`defaultStyle`,`xUaCompatible`],Bi={articleExpirationTime:`article:expiration_time`,articleModifiedTime:`article:modified_time`,articlePublishedTime:`article:published_time`,bookReleaseDate:`book:release_date`,fbAppId:`fb:app_id`,ogAudioSecureUrl:`og:audio:secure_url`,ogAudioUrl:`og:audio`,ogImageSecureUrl:`og:image:secure_url`,ogImageUrl:`og:image`,ogSiteName:`og:site_name`,ogVideoSecureUrl:`og:video:secure_url`,ogVideoUrl:`og:video`,paymentExpiresAt:`payment:expires_at`,paymentSuccessUrl:`payment:success_url`,profileFirstName:`profile:first_name`,profileLastName:`profile:last_name`,profileUsername:`profile:username`,msapplicationConfig:`msapplication-Config`,msapplicationTileColor:`msapplication-TileColor`,msapplicationTileImage:`msapplication-TileImage`}
2,Vi=/([A-Z])/g,Hi=/^(?:og|twitter)/,Ui={appleItunesApp:{unpack:{entrySeparator:`, `,resolve:({key:e,value:t})=>`${Wi(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`?Wi(e):`${Wi(e)}:${t}`}},contentSecurityPolicy:{metaKey:`http-equiv`,unpack:{entrySeparator:`; `,resolve:({key:e,value:t})=>`${Wi(e)} ${t}`}},charset:{}};function Wi(e){let t=e.replace(Vi,`-$1`).toLowerCase(),n=t.indexOf(`-`);return n===-1?t:Ii.includes(t.slice(0,n))||Li.includes(t.slice(0,n))?e.replace(Vi,`:$1`).toLowerCase():t}function Gi(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>String(t)!==`false`&&e))}function Ki(e){return Array.isArray(e)?e.map(Ki):!e||typeof e!=`object`?e:Object.fromEntries(Object.entries(e).map(([e,t])=>[Wi(e),Ki(t)]))}function qi(e,t={}){let{entrySeparator:n=``,keyValueSeparator:r=``,wrapValue:i,resolve:a}=t;return Object.entries(e).map(([e,n])=>{if(a){let t=a({key:e,value:n});if(t!==void 0)return t}let o=typeof n==`object`?qi(n,t):typeof n==`number`?n.toString():typeof n==`string`&&i?`${i}${n.replace(new RegExp(i,`g`),`\\${i}`)}${i}`:n;return`${e}${r}${o}`}).join(n)}function Ji(e,t){let n=Gi(t),r=Wi(e),i=Yi(r);return Mi.has(r)?Qi(Object.fromEntries(Object.entries(n).map(([t,n])=>[`${e}${t===`url`?``:`${t[0].toUpperCase()}${t.slice(1)}`}`,n]))||{}).sort((e,t)=>(e[i]?.length||0)-(t[i]?.length||0)):[{[i]:r,...n}]}function Yi(e){if(Ui[e]?.metaKey===`http-equiv`||zi.includes(e))return`http-equiv`;let t=Wi(e),n=t.indexOf(`:`);return n===-1?`name`:Li.includes(t.slice(0,n))?`property`:`name`}function Xi(e){return Bi[e]||Wi(e)}function Zi(e,t){return t===`refresh`?`${e.seconds};url=${e.url}`:qi(Ki(e),{keyValueSeparator:`=`,entrySeparator:`, `,resolve:({value:e,key:t})=>e===null?``:typeof e==`boolean`?t:void 0,...Ui[t]?.unpack})}function Qi(e){let t=[],n={};for(let[r,i]of Object.entries(e)){if(Array.isArray(i)){if(r===`themeColor`){i.forEach(e=>{typeof e==`object`&&e&&t.push({name:`theme-color`,...e})});continue}for(let e of i)if(typeof e==`object`&&e){let n=[],i=[];for(let[t,a]of Object.entries(e)){let e=Qi({[`${r}${t===`url`?``:`:${t}`}`]:a});(t===`url`?n:i).push(...e)}t.push(...n,...i)}else t.push(...typeof e==`string`?Qi({[r]:e}):Ji(r,e));continue}if(typeof i==`object`&&i){if(Ri.includes(r)){let e=r.startsWith(`twitter`)?`twitter`:`og`,n=r.replace(Hi,``).toLowerCase(),a=e===`twitter`?`name`:`property`;i.url&&t.push({[a]:`${e}:${n}`,content:i.url}),i.secureUrl&&t.push({[a]:`${e}:${n}:secure_url`,content:i.secureUrl});for(let[r,o]of Object.entries(i))r!==`url`&&r!==`secureUrl`&&t.push({[a]:`${e}:${n}:${r}`,content:o})}else Mi.has(Wi(r))?t.push(...Ji(r,i)):n[r]=Gi(i)}else n[r]=i}let r=Object.entries(n).map(([e,t])=>{if(e===`charset`)return{charset:t===null?`_null`:t};let n=Yi(e),r=Xi(e),i=t===null?`_null`:typeof t==`object`?Zi(t,e):typeof t==`number`?t.toString():t;return n===`http-equiv`?{"http-equiv":r,content:i}:{[n]:r,content:i}});return[...t,...r].map(e=>`content`in e&&e.content===`_null`?{...e,content:null}:e)}var $i=ri({key:`flatMeta`,hooks:{"entries:normalize":e=>{let t=!1,n=[],r=[];for(let i of e.tags){if(i.tag!==`_flatMeta`){n.push(i);continue}t=!0;for(let e of Qi(i.props))r.push({...i,tag:`meta`,props:e})}if(t){for(let e of r)n.push(e);e.tags=n}}}});function ea(e){let n=new t;for(let t in e||{})n.hook(t,e[t]);return n}function ta(e,t,n){if(e.hooks?._hooks?.[t]?.length)return e.hooks?.callHook(t,n)}var na=/^(?:viewport|description|keywords|robots)$/,ra=[`name`,`property`,`http-equiv`];function ia(e){let t=e.indexOf(`:`);if(t===-1)return!1;let n=e.slice(t+1);return Mi.has(n)||n.startsWith(`og:image:`)||n.startsWith(`og:video:`)||n.startsWith(`og:audio:`)||n.startsWith(`twitter:image:`)}function aa(e){let{props:t,tag:n,key:r}=e;if(ki.has(n))return n;if(n===`link`){if(t.rel===`canonical`)return`canonical`;if(t.rel===`alternate`&&t.hreflang)return`alternate:${t.hreflang}`}if(t.charset)return`charset`;if(n===`meta`)for(let e of ra){let n=t[e];if(n!==void 0)return`meta:${n}${(typeof n!=`string`||!n.includes(`:`))&&!na.test(n)&&r?`:key:${r}`:``}`}return r?`${n}:key:${r}`:t.id?`${n}:id:${t.id}`:n===`link`&&t.rel&&t.href?`link:${t.rel}:${t.href}`:Ei.has(n)&&(e.textContent||e.innerHTML)?`${n}:content:${e.textContent||e.innerHTML}`:void 0}function oa(e){let t=e._h||e._d||e.textContent||e.innerHTML;if(t)return t;let n=Object.keys(e.props).sort(),r=`${e.tag}:`,i=``;for(let t of n)r+=`${i}${t}:${String(e.props[t])}`,i=`,`;return r}function sa(e,t,n){if(n===`_resolver`)return e;typeof e==`function`&&(!n||n!==`titleTemplate`&&!n.startsWith(`on`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r)){let e;for(let n=0;n<r.length;n++){let i=sa(r[n],t);e?e[n]=i:i!==r[n]&&(e=r.slice(0,n),e[n]=i)}return e||r}if(r?.constructor===Object){let e;for(let n in r){let i=Fi(n),a=i?void 0:sa(r[n],t,n);if(!e&&(i||a!==r[n])){e={};for(let t in r){if(t===n)break;e[t]=r[t]}}e&&!i&&(e[n]=a)}return e||r}return r}var ca=/[\s"'<>/=\x00-\x1F\x7F]/;function la(e,t){let n=e===`style`,r=n?new Map:new Set,i=e=>{if(e){if(n){let t=e.indexOf(`:`);t>0&&r.set(e.slice(0,t).trim(),e.slice(t+1).trim())}
2else e.split(` `).forEach(e=>e&&r.add(e))}};if(typeof t==`string`)(n?t.split(`;`):[t]).forEach(i);else if(Array.isArray(t))t.forEach(i);else if(t&&typeof t==`object`)for(let e in t){let a=t[e];a&&a!==`false`&&(n?r.set(e.trim(),String(a)):i(e))}return r}function ua(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=Di.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;for(let r in t){if(Fi(r))continue;let i=r.startsWith(`data-`),a=n&&!Ai.has(r),o=a&&!i?r.toLowerCase():r;if(a&&(!o||ca.test(o)))continue;let s=t[r];if(s===null)e.props[o]=null;else if(r===`class`||r===`style`)e.props[r]=la(r,s);else if(Ai.has(r)){if((r===`textContent`||r===`innerHTML`)&&typeof s==`object`){let n=t.type||`application/json`;(n.endsWith(`json`)||n===`speculationrules`||n===`importmap`)&&(e.props.type=n,e[r]=JSON.stringify(s))}else e[r]=s}else if(s!==void 0){let t=String(s),n=e.tag===`meta`&&o===`content`;e.props[o]=t===`true`||t===``?i||n?t:!0:!s&&i&&t===`false`?`false`:s}}return e}function da(e,t){let n;return t.length&&(n=(e,n)=>{for(let r=0;r<t.length;r++)n=t[r](e,n);return n},e=n(void 0,e)),sa(e,n)}function fa(e,t){let n=ua({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});if(n.key&&Ti.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)){let e=[];for(let t of n.props.content)e.push({...n,props:{...n.props,content:t}});return e}return n}function pa(e,t){if(Array.isArray(t))for(let n of t)e.push(n);else e.push(t)}function ma(e,t){if(!e)return[];typeof e==`function`&&(e=e()),e=da(e,t);let n=[];for(let t in e){let r=e[t];if(r!==void 0){if(Array.isArray(r))for(let e of r)pa(n,fa(t,e));else pa(n,fa(t,r))}}return n}var ha=/</g,ga=/<\/script/g,_a=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,va=()=>100;function ya(e){for(let t in e)return!1;return!0}var ba=/^tags:|:render/;function xa(e,t){let n=(t[`entries:resolve`]?.length||0)+(t[`entries:normalize`]?.length||0);if(e._h!==n){e._h=n;for(let t of e.entries.values())delete t._tags}}function Sa(e){for(let t=0;t<e.length;t++){let n=e[t],r={...n.props};r.class instanceof Set&&(r.class=new Set(r.class)),r.style instanceof Map&&(r.style=new Map(r.style)),e[t]={...n,props:r}}}function Ca(e,t){let n=e.tags,r=0;for(let t of e.tagMap.values())if(Array.isArray(t))for(let e of t)n[r++]=e;else n[r++]=t;n.length=r,t&&n.sort(_a)}function wa(e){let t=!1;for(let n of e.tags.sort(_a)){let r=n._d||oa(n);if(!r)continue;let i=e.tagMap.get(r);if(!i){e.tagMap.set(r,n);continue}if((n.tagDuplicateStrategy||(ji.has(n.tag)?`merge`:null)||(n.key&&n.key===i.key?`merge`:null))===`merge`){let t={...i.props};for(let e in n.props)t[e]=e===`style`?new Map([...i.props.style||new Map,...n.props[e]]):e===`class`?new Set([...i.props.class||[],...n.props[e]]):n.props[e];e.tagMap.set(r,{...n,props:t})}else n._p>>10==i._p>>10&&n.tag===`meta`&&ia(r)?(e.tagMap.set(r,Object.assign([...Array.isArray(i)?i:[i],n],n)),t=!0):(n._w===i._w?n._p>i._p:n._w<i._w)&&e.tagMap.set(r,n)}return t}function Ta(e,t){let n=e.tagMap.get(`title`),r=e.tagMap.get(`titleTemplate`);if(t._title=n?.textContent,!r)return;let i=r.textContent;if(t._titleTemplate=i,!i)return;let a=typeof i==`function`?i(n?.textContent):i;typeof a==`string`&&!t.plugins.has(`template-params`)&&(a=a.replace(`%s`,n?.textContent||``)),n?a===null?e.tagMap.delete(`title`):e.tagMap.set(`title`,{...n,textContent:a}):e.tagMap.set(`titleTemplate`,{...r,tag:`title`,textContent:a})}function Ea(e){let t=0;for(let n of e){let{innerHTML:r,tag:i,props:a}=n;if(Oi.has(i)&&(!ya(a)||Pi(r)||Pi(n.textContent))&&(i!==`meta`||Pi(a.content)||a[`http-equiv`]||a.charset)){if(i===`script`&&(r||n.textContent)){let e=String(a.type),t=e.endsWith(`json`)||e===`importmap`||e===`speculationrules`,i=e=>t?(typeof e==`string`?e:JSON.stringify(e)).replace(ha,`\\u003C`):typeof e==`string`?e.replace(ga,`<\\/script`):e;n={...n},r&&(n.innerHTML=i(r)),n.textContent&&(n.textContent=i(n.textContent)),n._d=aa(n)}e[t++]=n}}return e.length=t,e}function Da(e,t){let n=t?.tagWeight??e.resolvedOptions._tagWeight??va,r={tagMap:new Map,tags:[]},i=e.hooks?._hooks||{};xa(e,i);for(let t of e.entries.values())t._pending!==void 0&&(t.input=t._pending,delete t._pending,delete t._tags,delete t._precomputedTags);let a;(i[`entries:resolve`]?.length||i[`entries:normalize`]?.length)&&(a=[...e.entries.values()],i[`entries:resolve`]?.length&&ta(e,`entries:resolve`,{entr
2ies:a,...r})),xa(e,i);for(let t of a||e.entries.values()){let a=t._tags;if(!a){if(t._precomputedTags&&n===e.resolvedOptions._tagWeight&&!i[`entries:normalize`]?.length&&!i[`entries:resolve`]?.length&&(!t.options||ya(t.options)))a=t._precomputedTags;else{if(a=ma(t.input,e.resolvedOptions.propResolvers||[]),t.options&&!ya(t.options))for(let e of a)Object.assign(e,t.options);if(i[`entries:normalize`]?.length){let n={tags:a,entry:t};ta(e,`entries:normalize`,n),a=n.tags}for(let e=0;e<a.length;e++){let r=a[e];r._w=n(r),r._p=(t._i<<10)+e,r._d=aa(r),r._d||(r._h=oa(r))}t._tags=a}}r.tags.push(...a)}for(let e in i)if(i[e]?.length&&ba.test(e)){Sa(r.tags);break}let o=wa(r);return Ta(r,e),Ca(r,o),ta(e,`tags:beforeResolve`,r),ta(e,`tags:resolve`,r),ta(e,`tags:afterResolve`,r),Ea(r.tags)}var Oa=Object.prototype.hasOwnProperty;function ka(e,t){return Oa.call(e,t)}var Aa=`usehead`;function ja(){if(T()){let e=D(Aa);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function Ma(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(Aa,e)}}.install}var Na=Object.assign((e,t)=>Re(t)?w(t):t,{_static:!0});function Pa(e,t={}){let n=t.head||ja();return n.ssr?n.push(e||{},t):Fa(n,e,t)}function Fa(e,t,n={}){let r=de();if(r&&!r.active)return{patch(){},dispose(){},_i:-1};let i=L(!1);if(n.onRendered&&r){let e=n.onRendered;n={...n,onRendered:t=>r.run(()=>e(t))}}let a;return oe(()=>{let r=i.value?{}:sa(t,Na);a?a.patch(r):a=e.push(r,n)}),ee()&&(we(()=>{a.dispose()}),je(()=>{i.value=!0}),ke(()=>{i.value=!1})),a}function Ia(e){if(e._flatMeta)return e;let t={};for(let n in e)ka(e,n)&&n!==`title`&&n!==`titleTemplate`&&(t[n]=e[n]);return{title:e.title,titleTemplate:e.titleTemplate,_flatMeta:t}}function La(e={},t={}){(t.head||ja()).use($i);let n=Pa(Ia(e),t),r=n.patch;return n.__patched||=(n.patch=e=>r(Ia(e)),!0),n}function Ra(e,t){if(typeof t==`function`&&t.key&&e.plugins.has(t.key))return;let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);if(!e.plugins.get(r)){e.plugins.set(r,n);for(let t in n.hooks||{})e.hooks?.hook(t,n.hooks[t])}}function za(e,t={}){let n=!t.document,r=new Map,i={_entryCount:1,_h:0,plugins:new Map,resolvedOptions:t,ssr:n,entries:r,hooks:void 0,render:()=>e(i),use:e=>Ra(i,e),push(e,t){let a=t?._index??i._entryCount++,o=t?{...t}:{};delete o.head,delete o.onRendered,delete o._index;let s={_i:a,input:e,options:o};return r.set(a,s),{_i:a,dispose(){r.delete(a)},patch(e){n?(s.input=e,delete s._tags):s._pending=e,r.has(a)||r.set(a,s)}}}};return t.init?.forEach(e=>e&&i.push(e)),i}function Ba(e){let t=e||d();return t.ssrContext?.head||t.runWithContext(()=>{if(T()){let e=D(`usehead`);if(!e)throw ni.NUXT_E6001();return e}})}function Va(e,t={}){return Pa(e,{head:t.head||Ba(t.nuxt),...t})}function Ha(e,t={}){return La(e,{head:t.head||Ba(t.nuxt),...t})}var Ua=v({docsBase:y,reporters:n}),Wa=v({docsBase:y,reporters:n}),Ga=()=>location.protocol+`//`+location.host;function Ka(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Ke(n,``)}return Ke(n,e)+r+i}function qa(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Ka(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){let{history:e}=window;e.state&&e.replaceState(z({},e.state,{scroll:Nt()}),``)}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),{pauseListeners:c,listen:l,destroy:d}}function Ja(e,t,n,r=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:null}}function Ya(e){let{history:t,location:n}=window,r={value:Ka(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Ga()+e+r;
vendor: 4,796 bytes, line 2
2try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,z({},t.state,Ja(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=z({},i.value,t.state,{forward:e,scroll:Nt()});a(o.current,o,!0),a(e,z({},Ja(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Xa(e){e=st(e);let t=Ya(e),n=qa(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=z({location:``,base:e,go:r,createHref:_t.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var Za={type:0,value:``},Qa=/[a-zA-Z0-9_]/;function $a(e){if(!e)return[[]];if(e===`/`)return[[Za]];if(!Ze(e))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:Qa.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var eo=`[^/]+?`,to={sensitive:!1,strict:!1,start:!0,end:!0},no=/[.+*?^${}()[\]/\\]/g;function ro(e,t){let n=z({},to,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(no,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||eo;if(u!==eo){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(et(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=et(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function io(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function ao(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=io(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(oo(r))return 1;if(oo(i))return-1}return i.length-r.length}function oo(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var so={strict:!1,end:!0,sensitive:!1};function co(e,t,n){let r=ro($a(e.path),n),i=z(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function lo(e,t){let n=[],r=new Map;t=Bt(so,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=fo(e);s.aliasOf=r&&r.record;let l=Bt(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(fo(z({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&!Ze(u)){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=co(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!mo(d)&&o(e.name)),vo(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:qe}function o(e){if(It(e)){let t=r.get(e);
vendor: 8,541 bytes, line 2
2t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=go(e,n);n.splice(t,0,e),e.record.name&&!mo(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw at(1,{location:e});s=i.record.name,a=z(uo(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&uo(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw at(1,{location:e,currentLocation:t});s=i.record.name,a=z({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:ho(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function uo(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function fo(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:po(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 po(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function mo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ho(e){return e.reduce((e,t)=>z(e,t.meta),{})}function go(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;ao(e,t[i])<0?r=i:n=i+1}let i=_o(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function _o(e){let t=e;for(;t=t.parent;)if(vo(t)&&ao(e,t)===0)return t}function vo({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function yo(e){let t=D($e),n=D(ut),r=M(()=>{let n=k(e.to);return t.resolve(n)}),i=M(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Rt.bind(null,i));if(o>-1)return o;let s=wo(e[t-2]);return t>1&&wo(i)===s&&a[a.length-1].path!==s?a.findIndex(Rt.bind(null,e[t-2])):o}),a=M(()=>i.value>-1&&Co(n.params,r.value.params)),o=M(()=>i.value>-1&&i.value===n.matched.length-1&>(n.params,r.value.params));function s(n={}){if(So(n)){let n=t[k(e.replace)?`replace`:`push`](k(e.to)).catch(qe);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:M(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function bo(e){return e.length===1?e[0]:e}var xo=N({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`},viewTransition:Boolean},useLink:yo,setup(e,{slots:t}){let n=be(yo(e)),{options:r}=D($e),i=M(()=>({[To(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[To(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&bo(t.default(n));return e.custom?r:b(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function So(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){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Co(e,t){for(let n in t){let r=t[n],i=e[n];if(et(r)){if(!et(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}else if(r!==i)return!1}return!0}function wo(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var To=(e,t,n)=>e??t??n,Eo=N({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=D(lt),i=M(()=>e.route||r.value),a=D(Qe,0),o=M(()=>{let e=k(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=M(()=>i.value.matched[o.value]);xe(Qe,M(()=>o.value+1)),xe(ot,s),xe(lt,i);let c=L();return E(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!Rt(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return Do(n.default,{Component:l,route:r});let u=o.props[a],d=u?u===!0?r.params:typeof u==`function`?u(r):u:null,f=b(l,z({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return Do(n.default,{Component:f,route:r})||f}}});function Do(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Oo=Eo;function ko(e){let t=lo(e.routes,e),n=e.parseQuery||Lt,r=e.stringifyQuery||it,i=e.history,a=wt(),o=wt(),s=wt(),c=He(kt),l=He(0),u=kt;mt&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let d=rt.bind(null,e=>``+e),f=rt.bind(null,vt),p=rt.bind(null,Et);function m(e,n){let r,i;It(e)?(r=t.getRecordMatcher(e),i=n):i=e;let a=t.addRoute(i,r);return l.value++,()=>{a(),l.value++}}function h(e){let n=t.getRecordMatcher(e);n&&(t.removeRoute(n),l.value++)}function g(){t.clearRoutes(),l.value++}function _(){return t.getRoutes().map(e=>e.record)}function v(e){return!!t.getRecordMatcher(e)}function y(e,a){if(l.value,typeof e==`string`){a||=e.startsWith(`/`)?kt:c.value;let r=ct(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return z(r,o,{params:p(o.params),redirectedFrom:void 0,href:s})}a=z({},a||(e.path!=null&&e.path.startsWith(`/`)&&!(`name`in e&&e.name)?kt:c.value));let o;if(e.path!=null)o=z({},e,{path:ct(n,e.path,a.path).path});else{let t=z({},e.params);for(let e in t)t[e]??delete t[e];o=z({},e,{params:f(t)}),a.params=f(a.params)}let s=t.resolve(o,a),u=e.hash||``;s.params=d(p(s.params));let m=Tt(r,z({},e,{hash:Ft(u),path:s.path})),h=i.createHref(m);return z({fullPath:m,hash:u,query:r===it?Je(e.query):e.query||{}},s,{redirectedFrom:void 0,href:h})}function b(e){return typeof e==`string`?ct(n,e,c.value.path):z({},e)}function x(e,t){if(u!==e)return at(8,{from:t,to:e})}function S(e){return T(e)}function C(e){return S(z(b(e),{replace:!0}))}function w(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=b(i):{path:i},i.params={}),z({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function T(e,t){let n=u=y(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,l=w(n,i);if(l)return T(z(b(l),{state:typeof l==`object`?z({},a,l.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&zt(r,i,n)&&(f=at(16,{to:d,from:i}),A(i,i,!0,!1)),(f?Promise.resolve(f):ee(d,i)).catch(e=>nt(e)?nt(e,2)?e:le(e):se(e,d,i)).then(e=>{if(e){if(nt(e,2))return T(z({replace:s},b(e.to),{state:typeof e.to==`object`?z({},a,e.to.state):a,force:o}),t||d)}else e=O(d,i,!0,s,a);return te(d,i,e),e})}function E(e,t){let n=x(e,t);return n?Promise.reject(n):Promise.resolve()}function D(e){let t=j.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ee(e,t){let n,[r,i,s]=yt(e,t);n=At(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(bt(r,e,t))});let c=E.bind(null,e,t);return n.push(c),pe(n).then(()=>{n=[];for(let r of a.list())n.push(bt(r,e,t));return n.push(c),pe(n)}).then(()=>{n=At(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(bt(r,e,t))});return n.push(c),pe(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if(et(r.beforeEnter))for(let i of r.beforeEnter)n.push(bt(i,e,t));else n.push(bt(r.beforeEnter,e,t))}return n.push(c),pe(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=At(s,`beforeRouteEnter`,e,t,D),n.push(c),pe(n))).then(()=>{n=[];for(let r of o.list())n.push(bt(r,e,t));return n.push(c),pe(n)}).catch(e=>nt(e,8)?e:Promise.reject(e))}
2function te(e,t,n){s.list().forEach(r=>D(()=>r(e,t,n)))}function O(e,t,n,r,a){let o=x(e,t);if(o)return o;let s=t===kt,l=mt?history.state:{};n&&(r||s?i.replace(e.fullPath,z({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,A(e,t,n,s),le()}let ne;function re(){ne||=i.listen((e,t,n)=>{if(!fe.listening)return;let r=y(e),a=w(r,fe.currentRoute.value);if(a){T(z(a,{replace:!0,force:!0}),r).catch(qe);return}u=r;let o=c.value;mt&&n.delta&&Xe(xt(o.fullPath,n.delta)),ee(r,o).catch(e=>nt(e,12)?e:nt(e,2)?(T(z(b(e.to),{force:!0}),r).then(e=>{nt(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(qe),Promise.reject()):(n.delta&&i.go(-n.delta,!1),se(e,r,o))).then(e=>{e||=O(r,o,!1),e&&(n.delta&&!nt(e,8)?i.go(-n.delta,!1):n.type===`pop`&&nt(e,20)&&i.go(-1,!1)),te(r,o,e)}).catch(qe)})}let ie=wt(),ae=wt(),oe;function se(e,t,n){le(e);let r=ae.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function ce(){return oe&&c.value!==kt?Promise.resolve():new Promise((e,t)=>{ie.add([e,t])})}function le(e){return oe||(oe=!e,re(),ie.list().forEach(([t,n])=>e?n(e):t()),ie.reset()),e}function A(t,n,r,i){let{scrollBehavior:a}=e;if(!mt||!a)return Promise.resolve();let o=!r&&Dt(xt(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return Le().then(()=>a(t,n,o)).then(e=>t===c.value&&e&&Ye(e)).catch(e=>t===c.value&&se(e,t,n))}let ue=e=>i.go(e),de,j=new Set,fe={currentRoute:c,listening:!0,addRoute:m,removeRoute:h,clearRoutes:g,hasRoute:v,getRoutes:_,resolve:y,options:e,push:S,replace:C,go:ue,back:()=>ue(-1),forward:()=>ue(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:ae.add,isReady:ce,install(e){e.component(`RouterLink`,xo),e.component(`RouterView`,Oo),e.config.globalProperties.$router=fe,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>k(c)}),mt&&!de&&c.value===kt&&(de=!0,S(i.location).catch(e=>{}));let t={};for(let e in kt)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide($e,fe),e.provide(ut,We(t)),e.provide(lt,c);let n=e.unmount;j.add(e),e.unmount=function(){j.delete(e),j.size<1&&(u=kt,ne&&ne(),ne=null,c.value=kt,de=!1,oe=!1),n()}}};function pe(e){return e.reduce((e,t)=>e.then(()=>D(t)),Promise.resolve())}return fe}var Ao={scrollBehavior(e,t,n){let r=d(),i=zr(),a=i.options?.scrollBehaviorType??`auto`;return e.path.replace(/\/$/,``)===t.path.replace(/\/$/,``)?t.hash&&!e.hash?n??{left:0,top:0}:e.hash?{el:e.hash,top:jo(e.hash),behavior:a}:!1:(typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1?!1:t===kt?Mo(e,t,n,a):new Promise(o=>{let s=()=>{requestAnimationFrame(()=>{if(i.currentRoute.value.fullPath!==e.fullPath){o(!1);return}o(Mo(e,t,n,a))})};r.hooks.hookOnce(`page:loading:end`,()=>{let e=r[`~transitionPromise`];e?e.then(s):s()})})}};function jo(e){try{let t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function Mo(e,t,n,r){return n||(e.hash?{el:e.hash,top:jo(e.hash),behavior:Ct(e,t)?r:`instant`}:{left:0,top:0})}var No={hashMode:!1,scrollBehaviorType:`auto`,...Ao},Po=(()=>{let e={prerender:!0},t={ssr:!0},n={redirect:`/sitemap_index.xml`},r={},i={__proto__:null,"":{__proto__:null,"":[e]},"/aboutus":{__proto__:null,"":[e]},"/recruit":{__proto__:null,"":[e]},"/faq":{__proto__:null,"":[e]},"/newsletters":{__proto__:null,"":[e]},"/en/newsletters":{__proto__:null,"":[e]},"/contact":{__proto__:null,"":[t]},"/__nuxt_content/materials/sql_dump.txt":{__proto__:null,"":[e]},"/__nuxt_content/materials_en/sql_dump.txt":{__proto__:null,"":[e]},"/__nuxt_content/spaces/sql_dump.txt":{__proto__:null,"":[e]},"/__nuxt_content/spaces_en/sql_dump.txt":{__proto__:null,"":[e]},"/__nuxt_content/faq/sql_dump.txt":{__proto__:null,"":[e]},"/__nuxt_content/faq_en/sql_dump.txt":{__proto__:null,"":[e]},"/__nuxt_content/columns/sql_dump.txt":{__proto__:null,"":[e]},"/__nuxt_content/columns_en/sql_dump.txt":{__proto__:null,"":[e]},"/__nuxt_content/posts/sql_dump.txt":{__proto__:null,"":[e]},"/__nuxt_content/posts_en/sql_dump.txt":{__proto__:null,"":[e]},"/__nuxt_content/newsletters/sql_dump.txt":{__proto__:null,"":[e]},"/__nuxt_content/newsletters_en/sql_dump.txt":{__proto__:null,"":[e]},"/sitemap.xml":{__proto__:null,"":[n]},"/_nuxt":{__proto__:null,"":[r]}},a={payload:!1};return(e,n)=>{let o=[];
2n.charCodeAt(n.length-1)===47&&(n=n.slice(0,-1));let s=i[n];if(s===void 0&&n.charCodeAt(n.length-1)===47&&(s=i[n.slice(0,-1)]),s!==void 0){let t=s[e];if(t===void 0&&(t=s[``]),t!==void 0)for(let e=t.length-1;e>=0;e--)o.push({data:t[e]})}let c=n.split(`/`);return c.length>1&&c[c.length-1]===``&&(c.pop(),n=n.slice(0,-1)),c.length>1&&(c[1]===`_ipx`?o.push({data:r,params:{_:n.slice(6)}}):c[1]===`studio`?o.push({data:t,params:{_:n.slice(8)}}):c[1]===`__nuxt_content`&&o.push({data:a,params:{_:n.slice(16)}})),o.push({data:r,params:{_:n.slice(1)}}),o.reverse()}})(),Fo=Po,Io=function(e){if(!e.includes(`%`))return e;let t=e.indexOf(`?`),n=t===-1?e:e.slice(0,t);try{return t===-1?decodeURI(n):decodeURI(n)+e.slice(t)}catch{return e}},Lo=(e,t)=>{if(typeof e!=`string`)return e;let n=Io(e);return t?n.toLowerCase():n},Ro=e=>No.sensitive?bn({},...Po(``,Lo(e,!1)).map(e=>e.data).reverse()):bn({},...Fo(``,Lo(e,!0)).map(e=>e.data).reverse()),zo=`modulepreload`,Bo=function(e,t){return new URL(e,t).href},Vo={},V=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Bo(t,n),t=s(t),t in Vo)return;Vo[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:zo,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Ho=Sn,Uo=Ro,Wo;function Go(){let e;return e=Ho(Cn(`builds/meta/${m().app.buildId}.json`),{responseType:`json`}).then(e=>{if(!e||typeof e!=`object`||!Array.isArray(e.prerendered))throw Wa.NUXT_E5004();return e}),Wo=e,e.catch(t=>{Wo===e&&(Wo=void 0),Wa.NUXT_E5002({cause:t})}),e}function Ko(){return Wo||Go()}function qo(e){let t=typeof e==`string`?e:e.path;try{return Uo(t)}catch(e){return Wa.NUXT_E5003({path:t,cause:e}),{}}}var Jo=2**32-1,Yo=Jo-1,Xo=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function Zo(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===Xo}function Qo(e){return Object.prototype.toString.call(e).slice(8,-1)}function $o(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)}function es(e){return!(!Number.isInteger(e)||e<0||e>Yo)}function ts(e){return!(!Number.isInteger(e)||e<0||e>Jo)}function ns(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<48||n>57)return!1}return es(+e)}function rs(e){for(var t=e.length-1;t>=0&&!ns(e[t]);t--);return t+1}function is(e){let t=Object.keys(e);return t.length=rs(t),t}function as(e){return Uint8Array.fromBase64(e).buffer}function os(e){return Uint8Array.from(Buffer.from(e,`base64`)).buffer}function ss(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer}var cs=typeof Uint8Array.fromBase64==`function`,ls=typeof process==`object`&&process.versions?.node!==void 0,us=cs?as:ls?os:ss;function ds(e,t){if(!t)return e;let n={};for(let r of Object.keys(e))n[r]=t[r]??e[r];return n}var fs=Object.freeze({kind:`not-plain`}),ps=Object.freeze({kind:`symbol-keys`});Object.freeze({identify:e=>e,typeOf:e=>e===null?`null`:typeof e,toPrimitive:e=>e,tagOf:e=>Qo(e),isThenable:e=>typeof e.then==`function`,toPromise:e=>Promise.resolve(e),unbox:e=>e.valueOf(),toISOString:e=>isNaN(e.getDate())?``:e.toISOString(),toStringValue:e=>e.toString(),regExpInfo:e=>({source:e.source,flags:e.flags}),valuesOf:e=>e,entriesOf:e=>e,viewInfo:e=>({buffer:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength,length:e.length,bufferByteLength:e.buffer.byteLength}),toArrayBuffer:e=>e,lengthOf:e=>e.length,hasOwn:(e,t)=>Object.hasOwn(e,t),indicesOf:e=>is(e),shapeOf:e=>Zo(e)?$o(e).length>0?ps:{kind:Object.getPrototypeOf(e)===null?`null-proto`:`plain`,keys:Object.keys(e)}:fs,get:(e,t)=>e[t]});var ms=Object.freeze({fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>
2e===`URL`?new URL(t):e===`URLSearchParams`?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,n,r)=>{let i=globalThis[e];return n===void 0?new i(t):new i(t,n,r)},box:e=>Object(e),createArray:e=>Array(e),createSparseArray:e=>{let t=[];return t[Yo]=void 0,delete t[Yo],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,n)=>{e[t]=n},addValue:(e,t)=>{e.add(t)},addEntry:(e,t,n)=>{e.set(t,n)}});function hs(e,t,n){return gs(JSON.parse(e),t,n)}function gs(e,t,n){let r=ds(ms,n?.operations);if(typeof e==`number`)return s(e,!0);if(!Array.isArray(e)||e.length===0)throw Error(`Invalid input`);let i=e,a=Array(i.length),o=null;function s(e,n=!1){if(e===-1)return r.fromPrimitive(void 0);if(e===-3)return r.fromPrimitive(NaN);if(e===-4)return r.fromPrimitive(1/0);if(e===-5)return r.fromPrimitive(-1/0);if(e===-6)return r.fromPrimitive(-0);if(n||typeof e!=`number`)throw Error(`Invalid input`);if(e in a)return a[e];if(e>=i.length)throw Error(`Invalid input`);let c=i[e];if(!c||typeof c!=`object`)a[e]=r.fromPrimitive(c);else if(Array.isArray(c)){if(typeof c[0]==`string`){let n=c[0],l=t&&Object.hasOwn(t,n)?t[n]:void 0;if(l){let t=c[1];if(typeof t!=`number`&&(t=i.push(c[1])-1),Object.hasOwn(a,t))return a[e]=l(a[t]);if(o??=new Set,o.has(t))throw Error(`Invalid circular reference`);return o.add(t),a[e]=l(s(t)),o.delete(t),a[e]}switch(n){case`Date`:a[e]=r.fromISOString(c[1]);break;case`Set`:let t=r.createSet();a[e]=t;for(let e=1;e<c.length;e+=1)r.addValue(t,s(c[e]));break;case`Map`:let o=r.createMap();a[e]=o;for(let e=1;e<c.length;e+=2)r.addEntry(o,s(c[e]),s(c[e+1]));break;case`RegExp`:a[e]=r.fromRegExpInfo(c[1],c[2]);break;case`Object`:{let t=c[1];if(typeof i[t]==`object`&&i[t][0]!==`BigInt`)throw Error(`Invalid input`);a[e]=r.box(s(t));break}case`BigInt`:a[e]=r.fromPrimitive(BigInt(c[1]));break;case`null`:let l=r.createNullPrototypeObject();a[e]=l;for(let e=1;e<c.length;e+=2){if(c[e]===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");r.set(l,c[e],s(c[e+1]))}break;case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Float16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`BigInt64Array`:case`BigUint64Array`:case`DataView`:{if(i[c[1]][0]!==`ArrayBuffer`)throw Error(`Invalid data`);let t=s(c[1]);a[e]=r.fromViewInfo(n,t,c[2],c[3]);break}case`ArrayBuffer`:{let t=c[1];if(typeof t!=`string`)throw Error(`Invalid ArrayBuffer encoding`);a[e]=r.fromArrayBuffer(us(t));break}case`URL`:case`URLSearchParams`:case`Temporal.Duration`:case`Temporal.Instant`:case`Temporal.PlainDate`:case`Temporal.PlainTime`:case`Temporal.PlainDateTime`:case`Temporal.PlainMonthDay`:case`Temporal.PlainYearMonth`:case`Temporal.ZonedDateTime`:a[e]=r.fromStringValue(n,c[1]);break;default:throw Error(`Unknown type ${n}`)}}else if(c[0]===-7){let t=c[1];if(!ts(t))throw Error(`Invalid input`);let n=r.createSparseArray(t);a[e]=n;for(let e=2;e<c.length;e+=2){let i=c[e];if(!es(i)||i>=t)throw Error(`Invalid input`);r.set(n,i,s(c[e+1]))}}else{let t=r.createArray(c.length);a[e]=t;for(let e=0;e<c.length;e+=1){let n=c[e];n!==-2&&r.set(t,e,s(n))}}}else{let t=r.createObject();a[e]=t;for(let e of Object.keys(c)){if(e===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");r.set(t,e,s(c[e]))}}return a[e]}return s(0)}async function _s(e,t={}){return await Es(e)&&await xs(await bs(e,t),ws(e)?`default`:`force-cache`)||null}var vs=`_payload.json`,ys=`_b`;async function bs(e,t={}){let n=new URL(e,`http://localhost`);if(n.host!==`localhost`||ln(n.pathname,{acceptRelative:!0}))throw Ua.NUXT_E7001({url:e});let r=m(),i=t.hash||(t.fresh?Date.now():r.app.buildId),a=r.app.cdnURL,o=a&&await Ds(e)?a:r.app.baseURL,s=un(o,n.pathname,vs);return ws(e)||(n.search=``),i&&n.searchParams.set(ys,String(i)),s+n.search}async function xs(e,t){try{{let n=await fetch(e,{cache:t});return n.ok?await As(await n.text()):null}}catch(t){Ua.NUXT_E7002({url:e,cause:t})}return null}function Ss(e){if(e.redirect)return!1;if(e.prerender)return!0}function Cs(e){return new URL(e,`http://localhost`).pathname}function ws(e){return!!qo({path:Cs(e)}).payload}async function Ts(e){e=Cs(e),e=e===`/`?e:e.replace(/\/$/,``);try{return(await Ko()).prerendered.includes(e)}catch{return!1}}async function Es(e=Vr().path){let t=qo({path:Cs(e)});if(t.ssr===!1)return!1;let n=Ss(t);return n===void 0?t.payload?!0:await Ts(e):n}async function Ds(e=Vr().path){let t=Ss(qo({path:Cs(e)}));return t===void 0?await Ts(e):t}var Os=null;async function ks(){if(Os)return Os;let e=document.getElementById(`__NUXT_DATA__`);if(!e)return{};let t=await As(e.textContent||``),n=e.dataset.src?await xs(e.dataset.src,t.prerenderedAt?`force-cache`:`no-cache`):void 0;return Os={...t,...n,...window.__NUXT__},Os.config?.public&&(Os.config.public=be(Os.config.public)),Os}async function As(e){return await hs(e,d()._payloadRevivers)}function js(e,t){d()._payloadRevivers[e]=t}var Ms=typeof window<`u`,Ns,Ps=e=>Ns=e,Fs=Symbol();function Is(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var Ls=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function Rs(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function zs(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){Ws(r.response,t,n
2)},r.onerror=function(){console.error(`could not download file`)},r.send()}function Bs(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Vs(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var Hs=typeof navigator==`object`?navigator:{userAgent:``},Us=/Macintosh/.test(Hs.userAgent)&&/AppleWebKit/.test(Hs.userAgent)&&!/Safari/.test(Hs.userAgent),Ws=Ms?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!Us?Gs:`msSaveOrOpenBlob`in Hs?Ks:qs:()=>{};function Gs(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?Vs(r):Bs(r.href)?zs(e,t,n):(r.target=`_blank`,Vs(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Vs(r)},0))}function Ks(e,t=`download`,n){if(typeof e==`string`){if(Bs(e))zs(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){Vs(t)})}}else navigator.msSaveOrOpenBlob(Rs(e,n),t)}function qs(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return zs(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(Ls.HTMLElement))||`safari`in Ls,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||Us)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:Js}=Object;function Ys(){let e=Ce(!0),t=e.run(()=>L({})),n=[],r=[],i=ve({install(e){Ps(i),i._a=e,e.provide(Fs,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var Xs=()=>{};function Zs(e,t,n,r=Xs){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&de()&&Me(i),i}function Qs(e,...t){e.forEach(e=>{e(...t)})}var $s=e=>e(),ec=Symbol(),tc=Symbol();function nc(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!Object.hasOwn(t,n))continue;let r=t[n],i=e[n];e[n]=Is(i)&&Is(r)&&Object.hasOwn(e,n)&&!Re(r)&&!pe(r)?nc(i,r):r}return e}var rc=Symbol();function ic(e){return!e||typeof e!=`object`||!Object.hasOwn(e,rc)}var{assign:ac}=Object;function oc(e){return!!(Re(e)&&e.effect)}function sc(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),ac(ie(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=ve(M(()=>{Ps(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=cc(e,l,t,n,r,!0),c}function cc(e,t,n={},r,i,a){let o,s=ac({actions:{}},n),c={deep:!0},l,u,d=new Set,f=new Set,p,m=r.state.value[e];!a&&!m&&(r.state.value[e]={});let h;function g(t){let n;l=u=!1,typeof t==`function`?(t(r.state.value[e]),n={type:`patch function`,storeId:e,events:p}):(nc(r.state.value[e],t),n={type:`patch object`,payload:t,storeId:e,events:p});let i=h=Symbol();Le().then(()=>{h===i&&(l=!0)}),u=!0,Qs(d,n,r.state.value[e])}let _=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{ac(e,t)})}:Xs;function v(){o.stop(),d.clear(),f.clear(),r._s.delete(e)}let y=(t,n=``)=>{if(ec in t)return t[tc]=n,t;let i=function(){Ps(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}Qs(f,{args:n,name:i[tc],store:S,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:S,n)}catch(e){throw Qs(o,e),e}return l instanceof Promise?l.then(e=>(Qs(a,e),e)).catch(e=>(Qs(o,e),Promise.reject(e))):(Qs(a,l),l)};return i[ec]=!0,i[tc]=n,i},b={_p:r,$id:e,$onAction:Zs.bind(null,f),$patch:g,$reset:_,$subscribe(t,n={}){if(d.has(t))return Xs;let i=Zs(d,t,n.detached,()=>a()),a=o.run(()=>E(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:`direct`,events:p},r)},ac({},c,n)));return i},$dispose:v},S=be(b);r._s.set(e,S);let C=(r._a&&r._a.runWithContext||$s)(()=>r._e.run(()=>(o=Ce()).run(()=>t({action:y}))));for(let t in C){let n=C[t];Re(n)&&!oc(n)||pe(n)?a||(m&&ic(n)&&(Re(n)?n.value=m[t]:((n instanceof Set||n instanceof Map)&&n.clear(),nc(n,m[t]))),r.state.value[e][t]=n):typeof n==`function`&&(C[t]=y(n,t),s.actions[t]=n)}return ac(S,C),ac(x(S),C),Object.defineProperty(S,"$state",{get:()=>r.state.value[e],set:e=>{g(t=>{ac(t,e)})}}
2),r._p.forEach(e=>{let t=o.run(()=>e({store:S,app:r._a,pinia:r,options:s}));ac(S,t)}),m&&a&&n.hydrate&&n.hydrate(S.$state,m),l=!0,u=!0,S}function lc(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=T();return n||=o?D(Fs,null):null,n&&Ps(n),n=Ns,n._s.has(e)||(i?cc(e,t,r,n):sc(e,r,n)),n._s.get(e)}return a.$id=e,a}function uc(e){let t=x(e),n={};for(let r in t){let i=t[r];i?.effect?n[r]=M({get:()=>e[r],set(t){e[r]=t}}):(Re(i)||pe(i))&&(n[r]=Be(e,r))}return n}var dc=c(()=>{js(`skipHydrate`,e=>void 0)}),fc=c(()=>{js(`FirebaseTimestamp`,e=>ve(new yr(e.seconds,e.nanoseconds))),js(`FirebaseGeoPoint`,e=>ve(new xr(e.latitude,e.longitude))),js(`DocumentData`,e=>{let t=typeof e==`string`?JSON.parse(e):e,n=t.id;return delete t.id,Object.defineProperty(t,"id",{value:n})})});function pc(e){try{return JSON.parse(e)}catch{return e}}var mc=[[`NuxtError`,e=>ti(e)],[`EmptyShallowRef`,e=>He(e===`_`?void 0:e===`0n`?BigInt(0):pc(e))],[`EmptyRef`,e=>L(e===`_`?void 0:e===`0n`?BigInt(0):pc(e))],[`ShallowRef`,e=>He(e)],[`ShallowReactive`,e=>We(e)],[`Ref`,e=>L(e)],[`Reactive`,e=>be(e)]],hc=p({name:`nuxt:revive-payload:client`,order:-30,async setup(e){let t,n;for(let[e,t]of mc)js(e,t);Object.assign(e.payload,([t,n]=o(()=>e.runWithContext(ks)),t=await t,n(),t)),delete window.__NUXT__}},1);function gc(e,t){t.push(r),e.vueApp.use(t);let n=!0,i=()=>{n=!1,t.render()};t.hooks?.hook(`dom:beforeRender`,e=>{e.shouldRender=!n}),e.hooks.hook(`page:start`,()=>{n=!0}),e.hooks.hook(`page:finish`,()=>{e.isHydrating||i()}),e.hooks.hook(`app:error`,i),e.hooks.hook(`app:suspense:resolve`,i);let a=t.push.bind(t);t.push=((t,n)=>{let r=a(t,n),i=r.dispose.bind(r);return r.dispose=()=>{let t=e[`~transitionPromise`];t?t.finally(i):i()},r})}function _c(e,t,n){let r=e.push,i=e;i.ssr=!1,i.hooks=t,i.dirty=!!i.dirty,i.use=e=>Ra(i,e),i.render=()=>n(i);function a(){t.callHook(`entries:updated`,i),i._b||i.render()}return i.invalidate=()=>{for(let e of i.entries.values())delete e._tags;i.dirty=!0,a()},i.push=(n,o)=>{let s=o?.onRendered?t.hook(`dom:rendered`,o.onRendered):void 0,c=r(n,o),l=e.entries.get(c._i);return l&&(l._o=n),i.dirty=!0,a(),{_i:c._i,patch(e){c.patch(e),i.dirty=!0,a()},dispose(){s?.(),e.entries.has(c._i)&&(c.dispose(),i.invalidate())}}},i}var vc=/\s+/;function yc(e={}){return t=>Sc(t,e)}function bc(e){for(let t of e.entries.values())if(t._pending!==void 0)return!0;return!1}function xc(e,t){let n={_d:t,_t:t.title,_e:new Map([[`htmlAttrs`,t.documentElement],[`bodyAttrs`,t.body]]),_p:{},_s:{},_l:new Map};for(let t of e.entries.values())if(t._o!==void 0){let e=t._o;for(let t of[`bodyAttrs`,`htmlAttrs`]){let r=e[t]?.class;if(typeof r==`string`){let e=n._e.get(t);for(let i of r.split(vc))i&&(n._p[`${t}:attr:class:${i}`]=()=>e.classList.remove(i))}}}return n}function Sc(e,t={}){let n=t.document||e.resolvedOptions.document,r=e._dom;if(!n||e._du||r&&r._d===n&&!e.dirty&&!bc(e))return!1;let i=n.defaultView;e._du=!0;let a=!1;try{let o=function(e,t,n){d._s[e]=!n&&f[e]||t,delete f[e]},s=function(e,t,n,r,i,a){let s=`${e}:event:${t}`,c=d._l.get(s);if(c&&c[0]===a&&c[1]===n&&c[2]===r){o(s,c[4]);return}c?.[4]();let l=`data-${t}`,u=(e=>r.call(i,e)),f=()=>{a.removeEventListener(n,u),i.getAttribute(l)===``&&i.removeAttribute(l),d._l.get(s)?.[3]===u&&d._l.delete(s)};a.addEventListener(n,u),d._l.set(s,[a,n,r,u,f]),i.setAttribute(l,``),o(s,f,!0)},c=function({id:e,$el:t,tag:n}){if(d._e.set(e,t),!n.tag.endsWith(`Attrs`)){let r=n.textContent;r!=null&&r!==``&&(r!==t.textContent&&(t.textContent=r),o(`${e}:text`,()=>{t.textContent===r&&(t.textContent=``)},!0));let i=n.innerHTML;i!=null&&i!==``&&(i!==t.innerHTML&&(t.innerHTML=i),o(`${e}:html`,()=>{t.innerHTML===i&&(t.innerHTML=``)},!0));let a=`${e}:el`;o(a,f[a]||(()=>{t?.remove(),d._e.delete(e)}))}for(let r in n.props){let a=n.props[r];if(r[0]===`o`&&r[1]===`n`&&typeof a==`function`){let o=r.slice(2);t?.dataset?.[`${r}fired`]&&a.call(t,new((i?.Event)||Event)(o)),s(e,r,o,a,t,n.tag===`bodyAttrs`&&i?i:t);continue}let c=`${e}:attr:${r}`;if(r===`class`&&a)for(let e of a){let n=`${c}:${e}`;o(n,f[n]||(()=>t.classList.remove(e))),t.classList.contains(e)||t.classList.add(e)}else if(r===`style`&&a)for(let[e,n]of a){let r=`${c}:${e}`;o(r,f[r]||(()=>t.style.removeProperty(e))),t.style.setProperty(e,n)}else a!==!1&&a!==null&&(t.getAttribute(r)!==a&&t.setAttribute(r,a===!0?``:String(a)),o(c,f[c]||(()=>t.removeAttribute(r))))}},l={shouldRender:!0,tags:[]};if(ta(e,`dom:beforeRender`,l),!l.shouldRender)return!1;let u=r;if(u?._d!==n){if(u){for(let e in u._s)u._s[e]();for(let e in u._p)u._p[e]();u._s=u._p={},u._e.clear(),u._l.clear()}u=void 0}u?u._p=u._s:u=xc(e,n),u._s={};let d=u,f=d._p,p=[],m={};e.dirty=!1;let h=Da(e,t.tagWeight?{tagWeight:t.tagWeight}:void 0),g=[],_={};for(let e of h){let t=_[e._d]||0,r=(t?`${e._d}:${t}`:e._d)||e._h,i={tag:e,id:r,shouldRender:!0};if(e.tag===`meta`&&e._d&&ia(e._d)&&(_[e._d]=t+1),g.push(i),e.tag===`title`){n.title=e.textContent,o(`title:`,()=>n.title=d._t);continue}i.$el=d._e.get(r),i.$el?c(i):Di.has(e.tag)&&p.push(i)}if(p.length){let e=new Set(d._e.values());for(let t of[...n.body.children,...n.head.children]){let n=t.tagName.toLowerCase();if(!Di.has(n)||e.has(t))continue;let r={innerHTML:t.innerHTML};for(let e of t.getAttributeNames())r[e]=t.getAttribute(e);let i=ua({tag:n,props:{}},r);i.key=t.getAttribute(`data-hid`)||void 0;let a=aa(i)||oa(i),o=a,s=1;for(;d._e.has(o);)o=`${a}:${s++}
2`;d._e.set(o,t)}}for(let e of p){let t=d._e.get(e.id);e.$el=t||n.createElement(e.tag.tag),c(e),t||(m[e.tag.tagPosition||`head`]??=n.createDocumentFragment()).appendChild(e.$el)}m.head&&n.head.appendChild(m.head),m.bodyOpen&&n.body.insertBefore(m.bodyOpen,n.body.firstChild),m.bodyClose&&n.body.appendChild(m.bodyClose);for(let e in f)f[e]();e._dom=d,a=!0,ta(e,`dom:rendered`,{renders:g})}catch(t){throw e.dirty=!0,t}finally{e._du=!1}return a&&(e.dirty||bc(e))&&Sc(e,t),a}var Cc=e=>typeof e.tagPriority==`number`?e.tagPriority:100+(Ni[e.tagPriority]||0);function wc(e={}){e.document=e.document||(typeof window<`u`?document:void 0);let t=e.render||yc({document:e.document}),n=_c(za(t,{document:e.document,propResolvers:e.propResolvers,_tagWeight:Cc,init:[]}),ea(e.hooks),t);return e.plugins?.forEach(e=>n.use(e)),e.init?.forEach(e=>e&&n.push(e)),n}function Tc(e={}){let t=yc(),n,r=0;return n=wc({render:()=>{let e=++r;setTimeout(()=>{e===r&&t(n)},0)},...e}),n.install=Ma(n),n}var Ec={disableDefaults:!0,plugins:[mi,bi,wi,pi]},Dc=p({name:`nuxt:head`,enforce:`pre`,setup(e){gc(e,Tc(Ec))}}),Oc=/(:\w+)\([^)]+\)/g,kc=/(:\w+)[?+*]/g,Ac=/:\w+/g,jc=(e,t)=>t.path.replace(Oc,`$1`).replace(kc,`$1`).replace(Ac,t=>e.params[t.slice(1)]?.toString()||``),Mc=(e,t)=>{let n=e.route.matched.find(t=>t.components?.default===e.Component.type),r=t??n?.meta.key??(n&&jc(e.route,n));return typeof r==`function`?r(e.route):r},Nc=(e,t)=>({default:()=>e?b(Pe,e===!0?{}:e,t):t});function Pc(e){return Array.isArray(e)?e:[e]}var Fc=[Hr(async e=>{let t,n;if(!e.meta?.validate)return;let r=([t,n]=o(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t);if(r!==!0)return ti({fatal:!0,status:r&&(r.status||r.statusCode)||404,statusText:r&&(r.statusText||r.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}})},1),Hr(e=>{let t=qo({path:e.path});if(t.redirect){let n=t.redirect.includes(`#`)?t.redirect:t.redirect+e.hash;return ln(n,{acceptRelative:!0})?(window.location.href=n,!1):n}})],Ic={},Lc={layout:`products`},Rc={layout:`default`,headerTransparent:!1},zc={layout:`products`},Bc={headerTransparent:!0},Vc={layout:`body-only`},Hc={layout:`default`,headerTransparent:!0},Uc=[{name:`products-materialId___ja`,path:`/products/:materialId()`,meta:Lc||{},component:()=>V(()=>import(`./BFMZ-eTC.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)},{name:`products-materialId___en`,path:`/en/products/:materialId()`,meta:Lc||{},component:()=>V(()=>import(`./BFMZ-eTC.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)},{name:`columns-slug___ja`,path:`/columns/:slug(.*)*`,component:()=>V(()=>import(`./B_0CS7J2.js`),__vite__mapDeps([15,2,6,1,7,8,4,9,10,11,16,17,18,19,20]),import.meta.url)},{name:`columns-slug___en`,path:`/en/columns/:slug(.*)*`,component:()=>V(()=>import(`./B_0CS7J2.js`),__vite__mapDeps([15,2,6,1,7,8,4,9,10,11,16,17,18,19,20]),import.meta.url)},{name:`newsletters-slug___ja`,path:`/newsletters/:slug(.*)*`,component:()=>V(()=>import(`./DKpKLdJf.js`),__vite__mapDeps([21,2,9,1,7,8,4,10,11,16,17,18,19,22]),import.meta.url)},{name:`newsletters-slug___en`,path:`/en/newsletters/:slug(.*)*`,component:()=>V(()=>import(`./DKpKLdJf.js`),__vite__mapDeps([21,2,9,1,7,8,4,10,11,16,17,18,19,22]),import.meta.url)},{name:`posts-slug___ja`,path:`/posts/:slug(.*)*`,component:()=>V(()=>import(`./JkzuaP3G.js`),__vite__mapDeps([23,2,6,1,7,8,4,9,10,11,16,17,18,19,24]),import.meta.url)},{name:`posts-slug___en`,path:`/en/posts/:slug(.*)*`,component:()=>V(()=>import(`./JkzuaP3G.js`),__vite__mapDeps([23,2,6,1,7,8,4,9,10,11,16,17,18,19,24]),import.meta.url)},{name:`aboutus___ja`,path:`/aboutus`,component:()=>V(()=>import(`./4iNgsB8j.js`),__vite__mapDeps([25,2,6,1,7,8,4,11,26,27]),import.meta.url)},{name:`aboutus___en`,path:`/en/aboutus`,component:()=>V(()=>import(`./4iNgsB8j.js`),__vite__mapDeps([25,2,6,1,7,8,4,11,26,27]),import.meta.url)},{name:`columns___ja`,path:`/columns`,component:()=>V(()=>import(`./B1EQZ5na.js`),__vite__mapDeps([28,2,11,1,8]),import.meta.url)},{name:`columns___en`,path:`/en/columns`,component:()=>V(()=>import(`./B1EQZ5na.js`),__vite__mapDeps([28,2,11,1,8]),import.meta.url)},{name:`contact___ja`,path:`/contact`,component:()=>V(()=>import(`./DEOf1mZb.js`),__vite__mapDeps([29,1,2,3,4,30,31,17,32,5,33,34,35,36,37]),import.meta.url)}
2,{name:`contact___en`,path:`/en/contact`,component:()=>V(()=>import(`./DEOf1mZb.js`),__vite__mapDeps([29,1,2,3,4,30,31,17,32,5,33,34,35,36,37]),import.meta.url)},{name:`faq___ja`,path:`/faq`,meta:Rc||{},component:()=>V(()=>import(`./DZlJbz6-.js`),__vite__mapDeps([38,2,3,4,11,1,8,13]),import.meta.url)},{name:`faq___en`,path:`/en/faq`,meta:Rc||{},component:()=>V(()=>import(`./DZlJbz6-.js`),__vite__mapDeps([38,2,3,4,11,1,8,13]),import.meta.url)},{name:`newsletters___ja`,path:`/newsletters`,component:()=>V(()=>import(`./9_g3Yh0V.js`),__vite__mapDeps([39,2,3,4,9,1,7,8,10,11]),import.meta.url)},{name:`newsletters___en`,path:`/en/newsletters`,component:()=>V(()=>import(`./9_g3Yh0V.js`),__vite__mapDeps([39,2,3,4,9,1,7,8,10,11]),import.meta.url)},{name:`posts___ja`,path:`/posts`,component:()=>V(()=>import(`./DfkeUOu0.js`),__vite__mapDeps([40,2,3,4,6,1,7,8,9,10,11]),import.meta.url)},{name:`posts___en`,path:`/en/posts`,component:()=>V(()=>import(`./DfkeUOu0.js`),__vite__mapDeps([40,2,3,4,6,1,7,8,9,10,11]),import.meta.url)},{name:`products___ja`,path:`/products`,meta:zc||{},component:()=>V(()=>import(`./CcqA-6rJ.js`),__vite__mapDeps([41,2,5,6,1,7,8,4,9,10,42,3,12,13]),import.meta.url)},{name:`products___en`,path:`/en/products`,meta:zc||{},component:()=>V(()=>import(`./CcqA-6rJ.js`),__vite__mapDeps([41,2,5,6,1,7,8,4,9,10,42,3,12,13]),import.meta.url)},{name:`recruit___ja`,path:`/recruit`,meta:Bc||{},component:()=>V(()=>import(`./CTAEMWDi.js`),__vite__mapDeps([43,2,3,4,35,6,1,7,8,11,26,13,44]),import.meta.url)},{name:`recruit___en`,path:`/en/recruit`,meta:Bc||{},component:()=>V(()=>import(`./CTAEMWDi.js`),__vite__mapDeps([43,2,3,4,35,6,1,7,8,11,26,13,44]),import.meta.url)},{name:`studio___ja`,path:`/studio`,meta:Vc||{},component:()=>V(()=>import(`./C5anmBef.js`),__vite__mapDeps([45,1,2,3,4,31,17,32,5,18,8,19,46,47,30,33,34,35,48,49,6,7,9,10,11,13,50]),import.meta.url)},{name:`studio___en`,path:`/en/studio`,meta:Vc||{},component:()=>V(()=>import(`./C5anmBef.js`),__vite__mapDeps([45,1,2,3,4,31,17,32,5,18,8,19,46,47,30,33,34,35,48,49,6,7,9,10,11,13,50]),import.meta.url)},{name:`unsubscribe___ja`,path:`/unsubscribe`,component:()=>V(()=>import(`./C6SEmcan.js`),__vite__mapDeps([51,2,18,8,19]),import.meta.url)},{name:`unsubscribe___en`,path:`/en/unsubscribe`,component:()=>V(()=>import(`./C6SEmcan.js`),__vite__mapDeps([51,2,18,8,19]),import.meta.url)},{name:`index___ja`,path:`/`,meta:Hc||{},component:()=>V(()=>import(`./Cgc9Y68M.js`),__vite__mapDeps([52,2,32,53,3,4,34,1,37,6,7,8,9,10,11,26,13,54]),import.meta.url)},{name:`index___en`,path:`/en`,meta:Hc||{},component:()=>V(()=>import(`./Cgc9Y68M.js`),__vite__mapDeps([52,2,32,53,3,4,34,1,37,6,7,8,9,10,11,26,13,54]),import.meta.url)},{name:void 0,path:`/sitemap.xml`,component:{}}];function Wc(e,t,n){let{pathname:r,search:i,hash:a}=t,o=e.indexOf(`#`);if(o>-1){let t=a.includes(e.slice(o))?e.slice(o).length:1,n=a.slice(t);return n[0]!==`/`&&(n=`/`+n),vn(n,``)}let s=vn(r,e),c=!n||fn(s,n)?s:n;return c+(c.includes(`?`)?``:i)+a}var Gc=p({name:`nuxt:router`,enforce:`pre`,async setup(e){let t,n,r=m().app.baseURL,i=No.history?.(r)??Xa(r),a=No.routes?([t,n]=o(()=>No.routes(Uc)),t=await t,n(),t??Uc):Uc,s,c=ko({...No,scrollBehavior:(e,t,n)=>{if(t===kt){s=n;return}if(No.scrollBehavior){if(c.options.scrollBehavior=No.scrollBehavior,`scrollRestoration`in window.history){let e=c.beforeEach(()=>{e(),window.history.scrollRestoration=`manual`})}return No.scrollBehavior(e,kt,s||n)}},history:i,routes:a});`scrollRestoration`in window.history&&(window.history.scrollRestoration=`auto`),e.vueApp.use(c);let l=He(c.currentRoute.value);c.afterEach((e,t)=>{l.value=t}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});let u=Wc(r,window.location,e.payload.path),d=He(c.currentRoute.value),f=()=>{d.value=c.currentRoute.value};c.afterEach((e,t)=>{let n=e.matched.at(-1)?.components?.default,r=t.matched.at(-1)?.components?.default;if(n===r){Mc({route:e,Component:{type:n}})===Mc({route:t,Component:{type:r}})&&f();return}e.matched.length<t.matched.length&&e.matched.every((e,n)=>e.components?.default===t.matched[n]?.components?.default)&&f()});let p={sync:f};for(let e in d.value)Object.defineProperty(p,e,{get:()=>d.value[e],enumerable:!0});e._route=We(p),e._middleware||={global:[],named:{}};let h=Yr();c.afterEach(async(t,n,r)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext($r),r&&await e.callHook(`page:loading:end`)});try{[t,n]=o(()=>c.isReady()),await t,n()}catch(r){[t,n]=o(()=>Qr(e,r)),await t,n()}let g=u===c.currentRoute.value.fullPath?c.currentRoute.value:c.resolve(u),_=c.currentRoute.value.fullPath,v=e.isHydrating&&e.payload.prerenderedAt&&e.payload.path&&u!==e.payload.path&&fn(c.currentRoute.value.path,e.payload.path);f();
2function y(t){!e.isHydrating&&t.fullPath!==Wc(r,window.location)&&i.push(t.fullPath)}let b=e.payload.state._layout;return c.beforeEach(async(t,n)=>{await e.callHook(`page:loading:start`),t.meta=be(t.meta),e.isHydrating&&b&&!Ee(t.meta.layout)&&(t.meta.layout=b),e._processingMiddleware=!0;{let r=new Set([...Fc,...e._middleware.global]);for(let e of t.matched){let t=e.meta.middleware;if(t)for(let e of Pc(t))r.add(e)}let i=qo({path:t.path});if(i.appMiddleware)for(let e in i.appMiddleware)i.appMiddleware[e]?r.add(e):r.delete(e);for(let i of r){let r=typeof i==`string`?e._middleware.named[i]||await Ic[i]?.().then(e=>e.default||e):i;if(!r)throw Ar.NUXT_E2004({entry:String(i),validMiddleware:void 0});try{let i=await e.runWithContext(()=>r(t,n));if(!e.payload.serverRendered&&e.isHydrating&&(i===!1||i instanceof Error)){let t=i||ti({status:404,statusText:`Page Not Found: ${u}`});return await e.runWithContext(()=>Xr(t)),!1}if(i===!0)continue;if(i===!1)return i;if(i)return ei(i)&&i.fatal&&(await e.runWithContext(()=>Xr(i)),y(t)),i}catch(n){let r=ti(n);return r.fatal&&(await e.runWithContext(()=>Xr(r)),y(t)),r}}}}),c.onError(async()=>{delete e._processingMiddleware,await e.callHook(`page:loading:end`)}),c.afterEach(t=>{if(t.matched.length===0&&!h.value)return e.runWithContext(()=>Xr(ti({status:404,fatal:!1,statusText:`Page not found: ${t.fullPath}`,data:{path:t.fullPath}})))}),e.hooks.hookOnce(`app:created`,async()=>{try{if(`name`in g&&(g.name=void 0),c.currentRoute.value.fullPath===_){if(v){let t=c.resolve(e.payload.path);`name`in t&&(t.name=void 0),await c.replace({...t,force:!0});let n=()=>{e[`~restoreDeferredRoute`]&&(e[`~restoreDeferredRoute`]=void 0,c.currentRoute.value=c.resolve(u),f(),c.replace({...g,force:!0}).catch(()=>{}))};e[`~restoreDeferredRoute`]=n,e.hooks.hookOnce(`app:suspense:resolve`,n)}else await c.replace({...g,force:!0})}c.options.scrollBehavior=No.scrollBehavior}catch(t){await Qr(e,t)}}),{provide:{router:c}}}},1),Kc={system:-15,vendor:-5,nitro:-4,config:-3,i18n:-2,build:-1,runtime:0};function qc(e){return typeof e==`function`?e():e&&e.__v_isRef===!0?e.value:e}function Jc(e){e.indexable!==void 0&&(e.indexable=String(e.indexable)!==`false`),e.trailingSlash!==void 0&&!e.trailingSlash&&(e.trailingSlash=String(e.trailingSlash)!==`false`),e.url&&!ln(String(e.url),{acceptRelative:!0,strict:!1})&&(e.url=dn(String(e.url)));let t=Object.keys(e).sort((e,t)=>e.localeCompare(t)),n={};for(let r of t)n[r]=e[r];return n}function Yc(e){let t=e?.debug||!1,n=[];function r(e){if(!e||typeof e!=`object`||Object.keys(e).length===0)return()=>{};if(!e._context&&t){let t=Error(`tmp`).stack?.split(` 3`)[2]?.split(` `)[5];t?.includes(`/`)&&(t=`anonymous`),e._context=t}let r={};for(let t in e){let n=e[t];n!==void 0&&n!==``&&(r[t]=n)}return Object.keys(r).some(e=>!e.startsWith(`_`))?(n.push(r),()=>{let e=n.indexOf(r);e!==-1&&n.splice(e,1)}):()=>{}}function i(e){let t={};e?.debug&&(t._context={}),t._priority={};for(let r in n.sort((e,t)=>(e._priority||0)-(t._priority||0)))for(let i in n[r]){let a=i,o=e?.resolveRefs?qc(n[r][i]):n[r][i];!i.startsWith(`_`)&&o!==void 0&&o!==``&&(t[i]=o,n[r]._priority!==void 0&&n[r]._priority!==-1&&(t._priority[a]=n[r]._priority),e?.debug&&(t._context[a]=n[r]._context?.[a]||n[r]._context||`anonymous`))}return e?.skipNormalize?t:Jc(t)}return{stack:n,push:r,get:i}}function Xc(e){if(typeof e!=`object`)return e;var t,n,r=Object.prototype.toString.call(e);if(r===`[object Object]`){if(e.constructor!==Object&&typeof e.constructor==`function`)for(t in n=new e.constructor,e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=Xc(e[t]));else for(t in n={},e)t===`__proto__`?Object.defineProperty(n,t,{value:Xc(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=Xc(e[t]);return n}if(r===`[object Array]`){for(t=e.length,n=Array(t);t--;)n[t]=Xc(e[t]);return n}return r===`[object Set]`?(n=new Set,e.forEach(function(e){n.add(Xc(e))}),n):r===`[object Map]`?(n=new Map,e.forEach(function(e,t){n.set(Xc(t),Xc(e))}),n):r===`[object Date]`?new Date(+e):r===`[object RegExp]`?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r===`[object DataView]`?new e.constructor(Xc(e.buffer)):r===`[object ArrayBuffer]`?e.slice(0):r.slice(-6)===`Array]`?new e.constructor(e):e}function Zc(e){let t=e.length,n=0,r=0,i=8997,a=0,o=33826,s=0,c=40164,l=0,u=52210;for(;n<t;)i^=e.charCodeAt(n++),r=i*435,a=o*435,s=c*435,l=u*435,s+=i<<8,l+=o<<8,a+=r>>>16,i=r&65535,s+=a>>>16,o=a&65535,u=l+(s>>>16)&65535,c=s&65535;return{high:(u<<16|c)>>>0,low:(o<<16|i)>>>0}}function Qc(e){let{high:t,low:n}=Zc(e);return BigInt(t)<<32n|BigInt(n)}var $c=`0123456789abcdef`;Array.from({length:256},(e,t)=>$c.charAt(t>>4)+$c.charAt(t&15));function el(e){return Qc(e).toString(36)}function tl(e,t){if(e===null)return`L`;let n,r=0,i=e,a=typeof e;if(a!==`object`)return a===`number`?e-e===0?`n`+e:`L`:a===`string`?`s`+e:a===`bigint`?`n`+e:a===`boolean`?e?`T`:`F`:void 0;let o=Array.isArray(e);if(!o){if(e instanceof Date)return`d`+ +e;if(e instanceof RegExp)return`r`+e.source+e.flags}
3if(a=t.indexOf(e),~a)return`~`+(a+1);if(typeof e.toJSON==`function`&&!ArrayBuffer.isView(e)){if(e=e.toJSON(),typeof e!=`object`||!e)return tl(e,t);if(a=t.indexOf(e),~a)return`~`+(a+1);o=Array.isArray(e)}if(t.push(i),o)for(n=`a`;r<e.length;n+=(a=tl(e[r++],t))===void 0?`L`:a);else if(e instanceof Set){n=`e`;for(let r of e)n+=(a=tl(r,t))===void 0?`L`:a}else if(e instanceof Map)for(i=[...e.keys()],i.length>1&&i.sort(),n=`o`;r<i.length;r++)(a=tl(e.get(i[r]),t))!==void 0&&(n+=i[r]+a);else if(e[Symbol.toStringTag]===void 0||ArrayBuffer.isView(e))for(i=Object.keys(e),i.length>1&&i.sort(),n=`o`;r<i.length;r++)(a=tl(e[i[r]],t))!==void 0&&(n+=i[r]+a);else throw Error(`Unsupported value`);return t.pop(),n}function nl(e){return tl(e,[])??`U`}function rl(e){return el(nl(e))}var il=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),al=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),ol=e=>{let t=d();t.isHydrating?t.hooks.hookOnce(`app:suspense:resolve`,()=>{il(()=>e())}):il(()=>e())};function sl(e,t={}){let n,r=!1,i=[],a,o,s=(t,n)=>{let i=cl(e,t,n);return a=i,i.finally(()=>{if(a=void 0,o&&!r){let e=o;o=void 0,s(t,e)}}),i};return function(...e){return o=e,a||new Promise(a=>{let c=t.leading&&!r;r||(r=!0,ze(()=>{r=!1;let a=o??e;o=void 0;let c=t.leading?n:s(this,a);for(let e of i)e(c);i=[]})),c?(n=s(this,e),a(n)):i.push(a)})}}async function cl(e,t,n){return await e.apply(t,n)}N({name:`ServerPlaceholder`,render(){return j(`div`)}});var ll=Symbol.for(`nuxt:client-only`),ul=`<div></div>`;function dl(e){return e.nodeName===`#comment`&&e.nodeValue===`placeholder`}function fl(e){return e&&!dl(e)?Mt(e,ul):b(`div`)}var pl=N({name:`ClientOnly`,inheritAttrs:!1,props:[`fallback`,`placeholder`,`placeholderTag`,`fallbackTag`],setup(e,{slots:t,attrs:n}){let r=He(!1);me(()=>{r.value=!0});let i=ee();return i&&(i._nuxtClientOnly=!0),xe(ll,!0),()=>{if(r.value){let e=t.default?.();return e&&e.length===1?[Se(e[0],n)]:e}let i=t.fallback||t.placeholder;if(i)return b(i);let a=e.fallback||e.placeholder||``,o=ht(e.fallbackTag||e.placeholderTag,`span`);return j(o,n,a)}}}),ml=new WeakMap;function hl(e){if(ml.has(e))return ml.get(e);let t={...e};return t.render?t.render=(t,n,r,i,a,o)=>{if(i.mounted$??t.mounted$){let s=e.render?.bind(t)(t,n,r,i,a,o);return s.children===null||typeof s.children==`string`?Se(s):b(s)}return fl(t._.vnode.el)}:t.template&&=` 4 <template v-if="mounted$">${e.template}</template> 5 <template v-else><div></div></template> 6 `,t.setup=(n,r)=>{let i=d(),a=He(i.isHydrating===!1),o=ee();if(i.isHydrating){let e={...o.attrs},t=gl(o);for(let t in e)delete o.attrs[t];me(()=>{Object.assign(o.attrs,e),o.vnode.dirs=t})}me(()=>{a.value=!0});let s=e.setup?.(n,r)||{};return se(s)?Promise.resolve(s).then(e=>typeof e==`function`?(...t)=>{if(a.value||!i.isHydrating){let n=e(...t);return n.children===null||typeof n.children==`string`?Se(n):b(n)}return fl(o?.vnode.el)}:(e||={},e.mounted$=a,e)):typeof s==`function`?(...e)=>{if(a.value){let n=s(...e),i=t.inheritAttrs===!1?void 0:r.attrs;return n.children===null||typeof n.children==`string`?Se(n,i):b(n,i)}return fl(o?.vnode.el)}:Object.assign(s,{mounted$:a})},ml.set(e,t),t}function gl(e){if(!e||!e.vnode.dirs)return null;let t=e.vnode.dirs;return e.vnode.dirs=null,t}function _l(e){return Object.defineProperty(function(){throw _.NUXT_E1007({name:e.name})},"__nuxt_factory",{enumerable:!1,get:()=>e.factory})}var vl=v({docsBase:y,reporters:n}),yl=_l({name:`createUseAsyncData`,factory(e={}){function t(...t){let n=typeof t[t.length-1]==`string`?t.pop():void 0;Sl(t[0],t[1])&&t.unshift(n);let[r,a,o={}]=t,s=!1,c=Re(r)||typeof r==`function`,l=c?M(()=>w(r)):{value:r};if(!l.value||typeof l.value!=`string`)throw vl.NUXT_E3008();if(typeof a!=`function`)throw vl.NUXT_E3009();let u=typeof e==`function`,f=d(),p=u?e(o):e;if(!u)for(let e in p)p[e]!==void 0&&o[e]===void 0&&(o[e]=p[e]);if(o.server??=!0,o.default??=El,o.getCachedData??=Dl,o.lazy??=!1,o.immediate??=!0,o.deep??=i.deep,o.dedupe??=`cancel`,o.enabled??=!0,u)for(let e in p)p[e]!==void 0&&(o[e]=p[e]);f._asyncData[l.value];function m(){let e={cause:`initial`,dedupe:o.dedupe},t=f._asyncData[l.value];
6return t?._init?f._asyncDataPromises[l.value]&&(e.cachedData=t._initialCachedData):(e.cachedData=o.getCachedData(l.value,f,{cause:`initial`}),f._asyncData[l.value]=Tl(f,l.value,a,o,e.cachedData),f._asyncData[l.value]._initialCachedData=e.cachedData),()=>f._asyncData[l.value].execute(e)}let h=m(),g=f._asyncData[l.value];g._deps++;let _=o.server!==!1&&f.payload.serverRendered;{let e=ee();if(e&&_&&o.immediate&&!e.sp&&(e.sp=[]),e&&!e._nuxtOnBeforeMountCbs){e._nuxtOnBeforeMountCbs=[];let t=e._nuxtOnBeforeMountCbs;Ne(()=>{t.forEach(e=>{e()}),t.splice(0,t.length)}),ye(()=>t.splice(0,t.length))}let t=e&&(e._nuxtClientOnly||D(ll,!1));_&&f.isHydrating&&(g.error.value||g.data.value!==void 0)?g.status.value=g.error.value?`error`:`success`:e&&(!t&&f.payload.serverRendered&&f.isHydrating||o.lazy)&&o.immediate?e._nuxtOnBeforeMountCbs.push(h):o.immediate&&g.status.value!==`success`&&h();function n(e){let t=f._asyncData[e];t?._deps&&(t._deps--,t._deps===0&&t?._off())}let r=de(),i=()=>{},u=c?E(l,(e,t)=>{if((e||t)&&e!==t){s=!0;let r=f._asyncData[t]?.data.value!==void 0,i=f._asyncDataPromises[t]!==void 0,c={cause:`initial`,dedupe:o.dedupe};if(!f._asyncData[e]?._init){let n=o.getCachedData(e,f,{cause:`initial`});c.cachedData=n;let i=t&&r&&n===void 0?f._asyncData[t].data.value:n;f._asyncData[e]=Tl(f,e,a,o,i),f._asyncData[e]._initialCachedData=n}f._asyncData[e]._deps++,t&&n(t),o._keyTriggersExecute!==!1&&(o.immediate||r||i)&&f._asyncData[e].execute(c),ze(()=>{s=!1})}},{flush:`sync`}):i,d=o.watch?E(o.watch,()=>{s||f._asyncData[l.value]?._execute({cause:`watch`,dedupe:o.dedupe})}):i,p=Re(o.enabled)||typeof o.enabled==`function`?E(()=>w(o.enabled),e=>{let t=f._asyncData[l.value];!e&&t&&f._asyncDataPromises[l.value]&&(t._abortController?.abort(new DOMException("AsyncData request cancelled by `enabled: false`",`AbortError`)),t._abortController=void 0,delete f._asyncDataPromises[l.value],t.status.value=`idle`)}):i;r&&Me(()=>{u(),d(),p(),n(l.value)})}let v={data:xl(()=>f._asyncData[l.value]?.data),pending:xl(()=>f._asyncData[l.value]?.pending),status:xl(()=>f._asyncData[l.value]?.status),error:xl(()=>f._asyncData[l.value]?.error),refresh:(...e)=>f._asyncData[l.value]?._init?f._asyncData[l.value].execute(...e):m()(),execute:(...e)=>v.refresh(...e),clear:()=>{let e=f._asyncData[l.value];if(e?._abortController)try{e._abortController.abort(new DOMException(`AsyncData aborted by user.`,`AbortError`))}finally{e._abortController=void 0}Cl(f,l.value)}},y=Promise.resolve(f._asyncDataPromises[l.value]).then(()=>v);return Object.assign(y,v),Object.defineProperties(y,{then:{enumerable:!0,value:y.then.bind(y)},catch:{enumerable:!0,value:y.catch.bind(y)},finally:{enumerable:!0,value:y.finally.bind(y)}}),y}return t}}),bl=yl.__nuxt_factory();yl.__nuxt_factory({lazy:!0,_functionName:`useLazyAsyncData`});function xl(e){return M({get(){return e()?.value},set(t){let n=e();n&&(n.value=t)}})}function Sl(e,t){return!(typeof e==`string`||typeof e==`object`&&e||typeof e==`function`&&typeof t==`function`)}function Cl(e,t){delete e.payload.data[t],delete e.payload._errors[t],e._asyncData[t]&&(e._asyncData[t].data.value=k(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value=`idle`,e._asyncData[t]._initialCachedData=void 0),delete e._asyncDataPromises[t]}function wl(e,t){let n={};for(let r of t)n[r]=e[r];return n}function Tl(e,t,n,r,i){e.payload._errors[t]??=void 0;let a=r.getCachedData!==Dl,o=n,s=r.deep?L:He,c=i!==void 0,l=e.hook(`app:data:refresh`,async e=>{(!e||e.includes(t))&&await u.execute({cause:`refresh:hook`})}),u={data:s(c?i:r.default()),pending:M(()=>u.status.value===`pending`),error:Be(e.payload._errors,t),status:He(`idle`),execute:(...n)=>{let[i,a=void 0]=n,s=i&&a===void 0&&typeof i==`object`?i:{};if(e._asyncDataPromises[t]&&(s.dedupe??r.dedupe)===`defer`)return e._asyncDataPromises[t];{let n=`cachedData`in s?s.cachedData:r.getCachedData(t,e,{cause:s.cause??`refresh:manual`});if(n!==void 0)return e.payload.data[t]=u.data.value=n,u.error.value=void 0,u.status.value=`success`,Promise.resolve(n)}if(w(r.enabled)===!1)return Promise.resolve(u.data.value);u._abortController&&u._abortController.abort(new DOMException(`AsyncData request cancelled by deduplication`,`AbortError`)),u._abortController=new AbortController,u.status.value=`pending`;let c=new AbortController,l=new Promise((t,n)=>{try{let i=s.timeout??r.timeout,a=Ol([u._abortController?.signal,s?.signal],c.signal,i);if(a.aborted){let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`));return}return a.addEventListener(`abort`,()=>{let e=a.reason;n(e instanceof Error?e:new DOMException(String(e??`Aborted`),`AbortError`))},{once:!0,signal:c.signal}),Promise.resolve(o(e,{signal:a})).then(t,n)}catch(e){n(e)}}).then(async n=>{if(e._asyncDataPromises[t]!==l)return;let i=n;r.transform&&(i=await r.transform(n)),r.pick&&(i=wl(i,r.pick)),e.payload.data[t]=i,u.data.value=i,u.error.value=void 0,u.status.value=`success`}).catch(n=>{if(e._asyncDataPromises[t]!==l||u._abortController?.signal.aborted)return e._asyncDataPromises[t];if(typeof DOMException<`u`&&n instanceof DOMException&&n.name===`AbortError`)return u.status.value=`idle`,e._asyncDataPromises[t];u.error.value=ti(n),u.data.value=k(r.default()),u.status.value=`error`}).finally(()=>{c.abort(),e._asyncDataPromises[t]===l&&delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=l,e._asyncDataPromises[t]},_execute:sl((...e)=>u.execute(...e)),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{l(),e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),e._asyncDataPromises[t]&&(u._abortController?.abort(new DOMException(`AsyncData request cancelled by unmount`,`AbortError`)),delete e._asyncDataPromises[t],u.status.value===`pending`&&(u.status.value=`idle`)),a||Le(()=>{e._asyncData[t]?._init||(Cl(e,t),u.execute=()=>Promise.resolve())})}};return u}var El=()=>void 0,Dl=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!==`refresh:manual`&&n.cause!==`refresh:hook`)return t.static.data[e]};function Ol(e,t,n){let r=e.filter(e=>!!e);
6if(typeof n==`number`&&n>=0){let e=AbortSignal.timeout?.(n);e&&r.push(e)}if(AbortSignal.any)return AbortSignal.any(r);let i=new AbortController;for(let e of r)if(e.aborted){let t=e.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(t)}catch{i.abort()}return i.signal}let a=()=>{let e=r.find(e=>e.aborted)?.reason??new DOMException(`Aborted`,`AbortError`);try{i.abort(e)}catch{i.abort()}};for(let e of r)e.addEventListener?.(`abort`,a,{once:!0,signal:t});return i.signal}var kl=`$s`;function Al(...e){let t=typeof e[e.length-1]==`string`?e.pop():void 0;typeof e[0]!=`string`&&e.unshift(t);let[n,r]=e;if(!n||typeof n!=`string`)throw Ua.NUXT_E7009({key:n});if(r!==void 0&&typeof r!=`function`)throw Ua.NUXT_E7007({type:typeof r});let i=kl+n,a=d(),o=Be(a.payload.state,i);if(r&&(a._state[i]??={_default:r}),o.value===void 0&&r){let e=r();if(Re(e))return a.payload.state[i]=e,e;o.value=e}return o}var jl=Sn,Ml=[`method`,`baseURL`,`query`,`params`,`body`,`headers`];function Nl(e){let t=[w(e.method)?.toUpperCase()||`GET`,w(e.baseURL)];for(let n of[e.query||e.params]){let e=w(n);if(!e)continue;let r={};for(let[t,n]of Object.entries(e))r[w(t)]=w(n);t.push(r)}if(e.body){let n=w(e.body);if(!n)t.push(rl(n));else if(n instanceof ArrayBuffer)t.push(rl(Object.fromEntries([...new Uint8Array(n).entries()].map(([e,t])=>[e,t.toString()]))));else if(n instanceof FormData){let e=[];for(let t of n.entries()){let[n,r]=t;e.push([n,r instanceof File?`${r.name}:${r.size}:${r.lastModified}`:r])}t.push(rl(e))}else if(ae(n))t.push(rl(be(n)));else try{t.push(rl(n))}catch{vl.NUXT_E3002({cause:n})}}return t}var Pl=_l({name:`createUseFetch`,factory(e={}){function t(t,n,r){let[i={},o]=typeof n==`string`?[{},n]:[n,r],s=typeof e==`function`?e(i):e,{server:c,lazy:l,default:u,transform:d,pick:f,watch:p,immediate:m,getCachedData:h,deep:g,dedupe:_,timeout:v,enabled:y,...b}={...typeof e==`function`?{}:s,...i,...typeof e==`function`?s:{}},x=M(()=>w(t)),S=M(()=>w(b.key)||`$f`+rl([o,typeof x.value==`string`?x.value:``,...Nl(b)]));if(!b.baseURL&&typeof x.value==`string`&&x.value[0]===`/`&&x.value[1]===`/`)throw vl.NUXT_E3001({url:x.value});let C=be({...a,...b,cache:typeof b.cache==`boolean`?void 0:b.cache}),T={server:c,lazy:l,default:u,transform:d,pick:f,immediate:m,getCachedData:h,deep:g,dedupe:_,timeout:v,enabled:y,watch:p===!1?[]:[...p||[],C]};return p===!1&&(T._keyTriggersExecute=!1),bl(S,(e,{signal:t})=>{let n=b.$fetch||jl,r={signal:t,...C};for(let e of Ml)typeof r[e]==`function`&&(r[e]=w(r[e]));return n(x.value,r)},T)}return t}});Pl.__nuxt_factory(),Pl.__nuxt_factory({lazy:!0,_functionName:`useLazyFetch`});var Fl=3456e4;function Il(e,t,n){let r=e.indexOf(`;`,t);return r===-1?n:r}function Ll(e,t,n){let r=e.indexOf(`=`,t);return r<n?r:-1}function Rl(e,t,n){if(t===n)return``;let r=t,i=n;do{let t=e.charCodeAt(r);if(t!==32&&t!==9)break}while(++r<i);for(;i>r;){let t=e.charCodeAt(i-1);if(t!==32&&t!==9)break;i--}return e.slice(r,i)}var zl=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function Bl(e,t){let n=new zl,r=e.length;if(r<2)return n;let i=t?.decode||Vl,a=t?.allowMultiple||!1,o=0;do{let s=Ll(e,o,r);if(s===-1)break;let c=Il(e,o,r);if(s>c){o=e.lastIndexOf(`;`,s-1)+1;continue}let l=Rl(e,o,s);if(t?.filter&&!t.filter(l)){o=c+1;continue}let u=i(Rl(e,s+1,c));if(a){let e=n[l];e===void 0?n[l]=u:Array.isArray(e)?e.push(u):n[l]=[e,u]}else n[l]===void 0&&(n[l]=u);o=c+1}while(o<r);return n}function Vl(e){if(!e.includes(`%`))return e;try{return decodeURIComponent(e)}catch{return e}}var Hl=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,Ul=/^[\u0021-\u003A\u003C-\u007E]*$/,Wl=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,Gl=/^[\u0020-\u003A\u003C-\u007E]*$/,Kl=Object.prototype.toString;function ql(e,t,n){let r=typeof e==`object`&&!!e,i=r?t:n,a=i?.stringify||JSON.stringify,o=r?e:{...n,name:e,value:t==null?``:typeof t==`string`?t:a(t)},s=i?.encode||encodeURIComponent;if(!Hl.test(o.name))throw TypeError(`argument name is invalid: ${o.name}`);let c=o.value?s(o.value):``;if(!Ul.test(c))throw TypeError(`argument val is invalid: ${o.value}`);if(!o.secure){if(o.partitioned)throw TypeError(`Partitioned cookies must have the Secure attribute`);if(o.sameSite&&String(o.sameSite).toLowerCase()===`none`)throw TypeError(`SameSite=None cookies must have the Secure attribute`);if(o.name.length>9&&o.name.charCodeAt(0)===95&&o.name.charCodeAt(1)===95){let e=o.name.toLowerCase();if(e.startsWith(`__secure-`)||e.startsWith(`__host-`))throw TypeError(`${o.name} cookies must have the Secure attribute`)}}if(o.name.length>7&&o.name.charCodeAt(0)===95&&o.name.charCodeAt(1)===95&&o.name.toLowerCase().startsWith(`__host-`)){if(o.path!==`/`)throw TypeError(`__Host- cookies must have Path=/`);if(o.domain)throw TypeError(`__Host- cookies must not have a Domain attribute`)}let l=o.name+`=`+c;if(o.maxAge!==void 0){if(!Number.isInteger(o.maxAge))throw TypeError(`option maxAge is invali
6d: ${o.maxAge}`);l+=`; Max-Age=`+Math.max(0,Math.min(o.maxAge,Fl))}if(o.domain){if(!Wl.test(o.domain))throw TypeError(`option domain is invalid: ${o.domain}`);l+=`; Domain=`+o.domain}if(o.path){if(!Gl.test(o.path))throw TypeError(`option path is invalid: ${o.path}`);l+=`; Path=`+o.path}if(o.expires){if(!Jl(o.expires)||!Number.isFinite(o.expires.valueOf()))throw TypeError(`option expires is invalid: ${o.expires}`);l+=`; Expires=`+o.expires.toUTCString()}if(o.httpOnly&&(l+=`; HttpOnly`),o.secure&&(l+=`; Secure`),o.partitioned&&(l+=`; Partitioned`),o.priority)switch(typeof o.priority==`string`?o.priority.toLowerCase():void 0){case`low`:l+=`; Priority=Low`;break;case`medium`:l+=`; Priority=Medium`;break;case`high`:l+=`; Priority=High`;break;default:throw TypeError(`option priority is invalid: ${o.priority}`)}if(o.sameSite)switch(typeof o.sameSite==`string`?o.sameSite.toLowerCase():o.sameSite){case!0:case`strict`:l+=`; SameSite=Strict`;break;case`lax`:l+=`; SameSite=Lax`;break;case`none`:l+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid: ${o.sameSite}`)}return l}function Jl(e){return Kl.call(e)===`[object Date]`}function Yl(e){return typeof e==`string`?`'${e}'`:new $l().serialize(e)}var Xl=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,Zl=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[Xl.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function Ql(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;i++){let n=e.charCodeAt(i),a=t.charCodeAt(i);if(n===a)continue;let o=n<128&&Zl[n]?Zl[n]:n+128,s=a<128&&Zl[a]?Zl[a]:a+128;if(o!==s)return o<s?-1:1;r===0&&(r=n>a?-1:1)}return e.length===t.length?r:e.length<t.length?-1:1}var $l=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?Ql(e,t):n===`number`&&r===`number`?e-t:Ql(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(`toJSON`in e&&typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}let i=Object.keys(e).sort(Ql),a=`${r}{`;for(let t=0;t<i.length;t++){let n=i[t];a+=`${n}:${this.serialize(e[n])}`,t<i.length-1&&(a+=`,`)}return a+`}`}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e})();function eu(e,t){return e===t||Yl(e)===Yl(t)}function tu(e){if(e!==`undefined`)try{let t=JSON.parse(e);return typeof t==`number`&&String(t)!==e?e:t}catch{return e}}var nu={path:`/`,watch:!0,decode:e=>e&&tu(decodeURIComponent(e)),encode:e=>{if(typeof e!=`string`||e===`undefined`)return encodeURIComponent(JSON.stringify(e));try{if(typeof JSON.parse(e)!=`string`)return encodeURIComponent(JSON.stringify(e))}catch{}return encodeURIComponent(e)},refresh:!1},ru=globalThis.cookieStore;function iu(e,t){let n={...nu,...t};n.filter??=t=>t===e;let r=au(n)||{},i;n.maxAge===void 0?n.expires&&(i=n.expires.getTime()-Date.now()):i=n.maxAge*1e3;let a=i!==void 0&&i<=0,o=a||r[e]===void 0||r[e]===null,s=Xc(a?void 0:r[e]??n.default?.()),c=i&&!a?du(s,i,n.watch&&n.watch!==`shallow`):L(s);{let t=null;try{!ru&&typeof BroadcastChannel<`u`&&(t=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}let i=(i=!1)=>{(i||!n.readonly&&!eu(c.value,r[e]))&&(lu(e,c.value===null||c.value===void 0?void 0:n.encode(c.value),n),r[e]=Xc(c.value),t?.postMessage({value:n.encode(c.value)}))},a=t=>{let i=t.refresh?au(n)?.[e]:n.decode(t.value);s=!0,c.value=i,r[e]=Xc(i),Le(()=>{s=!1})},s=!1,l=!!de();if(l&&Me(()=>{s=!0,i(),t?.close()}),ru){let t=t=>{let n=t.changed.find(t=>t.name===e),r=t.deleted.find(t=>t.name===e);n&&a({value:n.value}),r&&a({value:null})};ru.addEventListener(`change`,t),l&&Me(()=>ru.removeEventListener(`change`,t))}else t&&(t.onmessage=({data:e})=>a(e));n.watch&&E(c,()=>{s||i(n.refresh)},{deep:n.watch!==`shallow`}),o&&i(o)}return c}function au(e={}){return Bl(document.cookie,e)}var ou=e=>e;function su(e){let{encode:t,decode:n,...r}=e;return{...r,encode:ou}}function cu(e,t,n={}){let r=su(n);return t===void 0?ql(e,``,{...r,maxAge:-1}):ql(e,t,r)}function lu(e,t,n={}){document.cookie=cu(e,t,n)}var uu=2147483647;function du(e,t,n){let r,i,a=0,o=n?L(e):{value:e};return de()&&Me(()=>{i?.(),clearTimeout(r)}),De((e,s)=>{n&&(i=E(o,s));function c(){let e=t-a,n=e<uu?e:uu;r=setTimeout(()=>{if(a+=n,a<t)return c();o.value=void 0,s()},n)}function l(){a=0,clearTimeout(r),c()}return{get(){return e(),o.value},set(e){l(),o.value=e,s()}}})}function fu(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function pu(e,t=zr()){let{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;let i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>pu(e,t));t._routePreloaded.add(n);for(let e of r){let t=e.components?.default;if(typeof t!=`function`)continue;let n=Promise.resolve(t()).catch(()=>{}).finally(()=>i.splice(i.indexOf(n),1));i.push(n)}await Promise.all(i)}function mu(e={}){let t=e.path||window.location.pathname,n=new URL(t,window.location.href);if(n.host!==window.location.host)throw Ar.NUXT_E2010({path:t});if(n.protocol&&hn(n.protocol))throw Ar.NUXT_E2002({toPath:t,protocol:n.protocol});let r={};try{r=JSON.parse(sessionStorage.getItem(`nuxt:reload`)||`{}`)}catch{}if(e.force||r?.path!==t||r?.expires<Date.now()){try{sessionStorage.setItem(`nuxt:reload`,JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem(`nuxt:reload:state`,JSON.stringify({state:d().payload.state}))}catch{}window.location.pathname===t?window.location.reload():window.location.href=t}}function hu(e){return new URL(globalThis.location.href)}var gu=Ro;function _u(e,t){return k(t)??e?.meta.layout??gu(e?.path??`/`).appLayout??`default`}var vu=e({default:()=>Su,defineNuxtLink:()=>xu,isSlowConnection:()=>Eu,useObserver:()=>wu}),yu=(...e)=>e.find(e=>e!==void 0);function bu(e){let t=e.replace(/[\u0000-\u001F\s]+/g,``);for(;t.toLowerCase().startsWith(`view-source:`);)t=t.slice(12);let n=t.indexOf(`:`);return n>0&&hn(t.slice(0,n+1))?null:e}function xu(e){let t=e.componentName||`NuxtLink`;function n(e){return typeof e==`string`&&e.startsWith(`#`)}
6function r(t,n,r){let i=r??e.trailingSlash;if(!t||i!==`append`&&i!==`remove`)return t;if(typeof t==`string`)return Cu(t,i);let a=`path`in t&&t.path!==void 0?t.path:n(t).path;return{...t,name:void 0,path:Cu(a,i)}}function i(t){let i=zr(),a=m(),o=M(()=>!!k(t.target)&&k(t.target)!==`_self`),s=M(()=>{let e=k(t.to)||k(t.href)||``;return typeof e==`string`&&ln(e,{acceptRelative:!0})}),c=re(`RouterLink`),l=c&&typeof c!=`string`?c.useLink:void 0,u=M(()=>{if(k(t.external))return!0;let e=k(t.to)||k(t.href)||``;return typeof e==`object`?!1:e===``||s.value}),d=M(()=>{let e=k(t.to)||k(t.href)||``;return u.value?e:r(e,i.resolve,k(t.trailingSlash))}),f=u.value?void 0:l?.({...t,to:d,viewTransition:k(t.viewTransition)}),p=M(()=>{let r=k(t.trailingSlash)??e.trailingSlash;if(!d.value||s.value||n(d.value)){let e=d.value;return typeof e==`string`?bu(e):e}if(u.value){let e=typeof d.value==`object`&&`path`in d.value?Kr(d.value):d.value,t=typeof e==`object`?i.resolve(e).href:e,n=typeof t==`string`?bu(t):t;return n===null?null:Cu(n,r)}return typeof d.value==`object`?i.resolve(d.value)?.href??null:Cu(un(a.app.baseURL,d.value),r)});return{to:d,hasTarget:o,isAbsoluteUrl:s,isExternal:u,href:p,isActive:f?.isActive??M(()=>d.value===i.currentRoute.value.path),isExactActive:f?.isExactActive??M(()=>d.value===i.currentRoute.value.path),route:f?.route??M(()=>i.resolve(d.value)),async navigate(e){p.value!==null&&await Gr(p.value,{replace:k(t.replace),external:u.value||o.value})}}}return N({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},trailingSlash:{type:String,default:void 0,required:!1}},useLink:i,setup(t,{slots:r}){let a=zr(),{to:o,href:s,navigate:c,isExternal:l,hasTarget:u,isAbsoluteUrl:f}=i(t),p=He(!1),m=L(null),h=e=>{m.value=t.custom?e?.$el?.nextElementSibling:e?.$el};function g(n){return!!(!p.value&&(typeof t.prefetchOn==`string`?t.prefetchOn===n:t.prefetchOn?.[n]??e.prefetchOn?.[n])&&(t.prefetch??e.prefetch)!==!1&&t.noPrefetch!==!0&&t.target!==`_blank`&&!Eu())}async function _(e=d()){if(p.value||s.value===null)return;p.value=!0;let t=typeof o.value==`string`?o.value:l.value?Kr(o.value):a.resolve(o.value).fullPath,n=l.value?new URL(t,window.location.href).href:t;await Promise.all([e.hooks.callHook(`link:prefetch`,n)?.catch(()=>{}),!l.value&&!u.value&&pu(o.value,a).catch(()=>{})])}if(!t.custom&&g(`visibility`)){let e=d(),t,n=null;me(()=>{let r=wu();ol(()=>{t=il(()=>{m?.value?.tagName&&(n=r.observe(m.value,async()=>{n?.(),n=null,await _(e)}))})})}),we(()=>{t&&al(t),n?.(),n=null})}return()=>{let i=t.target||null,d=yu(t.noRel?``:t.rel,e.externalRelAttribute,f.value||u.value?`noopener noreferrer`:``)||null,v=e=>({href:s.value,navigate:c,get route(){if(!s.value)return;let e=new URL(s.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return on(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:s.value}},rel:d,target:i,isExternal:l.value||u.value,isActive:!1,isExactActive:!1,...e,prefetch:_,prefetched:p.value,shouldPrefetch:g});if(!l.value&&!u.value&&!n(o.value)){let n={ref:h,to:o.value,activeClass:t.activeClass||e.activeClass,exactActiveClass:t.exactActiveClass||e.exactActiveClass,replace:t.replace,ariaCurrentValue:t.ariaCurrentValue,custom:t.custom};
6return t.custom||(g(`interaction`)&&(n.onPointerenter=_.bind(null,void 0),n.onFocus=_.bind(null,void 0)),p.value&&(n.class=t.prefetchedClass||e.prefetchedClass),n.rel=t.rel||void 0),b(re(`RouterLink`),n,t.custom&&r.default?{default:e=>r.default(v(e))}:r.default)}return t.custom?r.default?r.default(v()):null:b(`a`,{ref:m,href:s.value||null,rel:d,target:i,onClick:async e=>{if(!(l.value||u.value)){e.preventDefault();try{let e=qr(s.value??``);return await(t.replace?a.replace(e):a.push(e))}finally{if(n(o.value)){let e=o.value.slice(1),t=e;try{t=decodeURIComponent(e)}catch{}document.getElementById(t)?.focus()}}}}},r.default?.())}}})}var Su=xu(f);function Cu(e,t){if(t!==`append`&&t!==`remove`)return e;let n=t===`append`?nn:an;return ln(e)&&!e.startsWith(`http`)?e:n(e,!0)}function wu(){let e=d();if(e._observer)return e._observer;let t=null,n=new Map;return e._observer={observe:(e,r)=>(t||=new IntersectionObserver(e=>{for(let t of e){let e=n.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),n.set(e,r),t.observe(e),()=>{n.delete(e),t?.unobserve(e),n.size===0&&(t?.disconnect(),t=null)})}}var Tu=/2g/;function Eu(){let e=navigator.connection;return!!(e&&(e.saveData||Tu.test(e.effectiveType)))}var Du=p({name:`nuxt-site-config:init`,enforce:`pre`,async setup(e){let t=Yc(),n=Al(`site-config`);{let e=n.value||window.__NUXT_SITE_CONFIG__||{};for(let n in e)n[0]!==`_`&&t.push({[n]:e[n],_priority:e._priority?.[n]||-1})}return{provide:{nuxtSiteConfig:t}}}}),Ou=p({name:`nuxt:payload`,setup(e){let t=new Set;zr().beforeResolve(async(n,r)=>{let i=ws(n.path),a=i?yn(n.fullPath):n.path;if(a===(i?yn(r.fullPath):r.path))return;let o=await _s(a);if(o){for(let n of t)delete e.static.data[n];for(let n in o.data)n in e.static.data||t.add(n),e.static.data[n]=o.data[n]}}),ol(()=>{e.hooks.hook(`link:prefetch`,async e=>{let{hostname:t,pathname:n}=new URL(e,window.location.href);t===window.location.hostname&&await _s(e).catch(()=>{Ua.NUXT_E7003({url:e})})}),navigator.connection?.effectiveType!==`slow-2g`&&setTimeout(Ko,1e3)})}}),ku=p(()=>{let e=zr();ol(()=>{e.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),Au=p(e=>{let t;async function n(){let r;try{r=await Ko()}catch(e){let t=e;if(!(`status`in t&&(t.status===404||t.status===403)))throw t}t&&clearTimeout(t),t=setTimeout(n,l);try{let n=await Sn(Cn(`builds/latest.json`)+`?${Date.now()}`);n.id!==r?.id&&(e.hooks.callHook(`app:manifest:update`,n),t&&clearTimeout(t))}catch{}}ol(()=>{t=setTimeout(n,l)})}),ju=p({name:`nuxt:chunk-reload-crawler`,setup(e){let t=!0;e.hooks.hookOnce(`app:suspense:resolve`,()=>{t=!1}),e.hook(`app:chunkError`,()=>{t&&tn(navigator.userAgent)&&mu()})}}),Mu=p({name:`nuxt:chunk-reload`,setup(e){let t=zr(),n=m(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook(`app:chunkError`,({error:e})=>{r.add(e)});function i(e){mu({path:un(n.app.baseURL,e.fullPath),persistState:!0})}e.hook(`app:manifest:update`,()=>{t.beforeResolve(i)}),t.onError((e,t)=>{r.has(e)&&i(t)})}}),Nu=p({name:`nuxt:island-link-navigation`,setup(e){}}),Pu=p({name:`pinia`,setup(e){let t=Ys();return e.vueApp.use(t),Ps(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}},hooks:{"app:rendered"(){let e=d();e.payload.pinia=x(e.$pinia).state.value,Ps(void 0)}}}),Fu=O(()=>V(()=>import(`./B891VHmY.js`).then(e=>e.default||e.default||e),__vite__mapDeps([55,2]),import.meta.url)),Iu=O(()=>V(()=>import(`./DQzRvNf3.js`).then(e=>e.default||e.default||e),__vite__mapDeps([56,2]),import.meta.url)),Lu=O(()=>V(()=>import(`./Cbsv60NA.js`).then(e=>e.default||e.default||e),__vite__mapDeps([57,2]),import.meta.url)),Ru=O(()=>V(()=>import(`./6E2i72U8.js`).then(e=>e.default||e.default||e),__vite__mapDeps([58,2]),import.meta.url)),zu=O(()=>V(()=>import(`./DXmcCMpa.js`).then(e=>e.default||e.default||e),__vite__mapDeps([59,1,2]),import.meta.url)),Bu=O(()=>V(()=>import(`./C0YUhIJ9.js`).then(e=>e.default||e.default||e),__vite__mapDeps([60,1,2]),import.meta.url)),Vu=O(()=>V(()=>import(`./DxESvQGh.js`).then(e=>e.default||e.default||e),__vite__mapDeps([61,1,2]),import.meta.url)),Hu=O(()=>V(()=>import(`./BpbcSqFi.js`).then(e=>e.default||e.default||e),__vite__mapDeps([62,1,2]),import.meta.url)),Uu=O(()=>V(()=>import(`./B3Rroln7.js`).then(e=>e.default||e.default||e),__vite__mapDeps([63,1,2]),import.meta.url)),Wu=O(()=>V(()=>import(`./wnvmQBB-.js`).then(e=>e.default||e.default||e),__vite__mapDeps([64,1,2]),import.meta.url)),Gu=O(()=>V(()=>import(`./CUvTraRX.js`).then(e=>e.default||e.default||e),__vite__mapDeps([65,2]),import.meta.url)),Ku=O(()=>V(()=>import(`./D-yc1wpz.js`).then(e=>e.default||e.default||e),__vite__mapDeps([66,2]),import.meta.url)),qu=O(()=>V(()=>import(`./GhCUQm6o.js`).then(e=>e.default||e.default||e),__vite__mapDeps([67,2]),import.meta.url)),Ju=O(()=>V(()=>import(`./D8QT214j.js`).then(e=>e.default||e.default||e),__vite__mapDeps([68,2]),import.meta.url)),Yu=O(()=>V(()=>import(`./CzWIcbo_.js`).then(e=>e.default||e.default||e),__vite__mapDeps([69,2,70]),import.meta.url)),Xu=O(()=>V(()=>import(`./5Kfl8xKk.js`).then(e=>e.default||e.default||e),__vite__mapDeps([71,2]),import.meta.url)),Zu=O(()=>V(()=>import(`./B3D1lc5n.js`).then(e=>e.default||e.default||e),__vite__mapDeps([72,2]),import.meta.url)),Qu=O(()=>V(()=>import(`./Cyjml4x-.js`).then(e=>e.default||e.default||e),__vite__mapDeps([73,2]),import.meta.url)),$u=O(()=>V(()=>import(`./DCSRoZGv.js`).then(e=>e.default||e.default||e),__vite__mapDeps([74,2]),import.meta.url)),ed=O(()=>V(()=>import(`./CqtggAAh.js`).then(e=>e.default||e.default||e),__vite__mapDeps([75,2]),import.meta.url)),td=O(()=>V(()=>import(`./kBgJPBqX.js`).then(e=>e.default||e.default||e),__vite__mapDeps([76,2]),import.meta.url)),nd=O(()=>V(()=>import(`./BL9ZqgEk.js`).then(e=>e.default||e.default||e),__vite__mapDeps([77,2]),import.meta.url)),rd=O(()=>V(()=>import(`./uEiWnkBo.js`).then(e=>e.default||e.default||e),__vite__mapDeps([78,2]),import.meta.url)),id=O(()=>V(()=>import(`./BuUEguEu.js`).then(e=>e.default||e.default||e),__vite__mapDeps([79,2]),import.meta.url)),ad=[[`ProseA`,Fu],[`ProseBlockquote`,Iu],[`ProseCode`,Lu],[`ProseEm`,Ru],[`ProseH1`,zu],[`ProseH2`,Bu],[`ProseH3`,Vu],[`ProseH4`,Hu],[`ProseH5`,Uu],[`ProseH6`,Wu],[`ProseHr`,Gu],[`ProseLi`,Ku],[`ProseOl`,qu],[`ProseP`,Ju],[`ProsePre`,Yu],[`ProseScript`,Xu],[`ProseStrong`,Zu],[`ProseTable`,Qu],[`ProseTbody`,$u],[`ProseTd`,ed],[`ProseTh`,td],[`ProseThead`,nd],[`ProseTr`,rd],[`ProseUl`,id]],od=p({name:`nuxt:global-components`,setup(e){for(let[t,n]of ad)e.vueApp.component(t,n),e.vueApp.component(`L
6azy`+t,n)}}),sd={"body-only":O(()=>V(()=>import(`./BAtYEYhM.js`).then(e=>e.default||e),__vite__mapDeps([80,2]),import.meta.url)),default:O(()=>V(()=>import(`./HaBSbt-E.js`).then(e=>e.default||e),__vite__mapDeps([81,2,82,1,3,4,53,34,37,7,8,6,10,83,84]),import.meta.url)),products:O(()=>V(()=>import(`./CYZiLmlX.js`).then(e=>e.default||e),__vite__mapDeps([85,2,31,17,3,4,32,5,48,33,82,1,53,34,37,7,8,6,10,83,11,42,9,12,84]),import.meta.url))},cd=p({name:`nuxt:prefetch`,setup(e){let t=zr();e.hooks.hook(`app:mounted`,()=>{t.beforeEach(async e=>{let t=e?.meta?.layout;t&&typeof sd[t]==`function`&&await sd[t]()})}),e.hooks.hook(`link:prefetch`,e=>{if(ln(e))return;let n=t.resolve(e);if(!n)return;let r=n.meta.layout,i=Pc(n.meta.middleware).filter(e=>typeof e==`string`);for(let e of i){let t=Ic[e];typeof t==`function`&&t()}typeof r==`string`&&r in sd&&fu(sd[r])})}}),ld=[`ja`,`en`],ud={ja:[{key:`locale_ja_46json_83e9e1ab`,load:()=>Promise.resolve({}),cache:!0}],en:[{key:`locale_en_46json_06dad430`,load:()=>Promise.resolve({}),cache:!0}]},dd=[()=>V(()=>import(`./CGUhRWRY.js`),[],import.meta.url)],fd=[{code:`ja`,name:`JPN`,language:void 0,domains:[],defaultForDomains:[]},{code:`en`,name:`ENG`,language:void 0,domains:[],defaultForDomains:[]}],pd=typeof window<`u`,md=(e,t=!1)=>t?Symbol.for(e):Symbol(e),hd=(e,t,n)=>gd({l:e,k:t,s:n}),gd=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),_d=e=>typeof e==`number`&&isFinite(e),vd=e=>Ad(e)===`[object Date]`,yd=e=>Ad(e)===`[object RegExp]`,bd=e=>q(e)&&Object.keys(e).length===0,xd=Object.assign,Sd=Object.create,H=(e=null)=>Sd(e),Cd,wd=()=>Cd||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:H(),Td=Object.prototype.hasOwnProperty;function Ed(e,t){return Td.call(e,t)}var U=Array.isArray,W=e=>typeof e==`function`,G=e=>typeof e==`string`,Dd=e=>typeof e==`boolean`,K=e=>typeof e==`object`&&!!e,Od=e=>K(e)&&W(e.then)&&W(e.catch),kd=Object.prototype.toString,Ad=e=>kd.call(e),q=e=>Ad(e)===`[object Object]`,jd=e=>e==null?``:U(e)||q(e)&&e.toString===kd?JSON.stringify(e,null,2):String(e);function Md(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}function Nd(e,t){typeof console<`u`&&(console.warn(`[intlify] `+e),t&&console.warn(t.stack))}function Pd(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/\//g,`/`).replace(/=/g,`=`)}function Fd(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}var Id=/^javascript:/i,Ld=/^(?:href|src|action|formaction)$/i,Rd=/&#(?:x([0-9a-f]+)|(\d+));?/gi,zd=/&(?:Tab|NewLine);/g,Bd=/:?/gi,Vd=/[\u0000-\u0020\u007f-\u009f]/g,Hd=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,Ud=/(^|[\s"'<>/])on(\w+\s*=)/gi,Wd=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function Gd(e,t,n){let r=t||n;if(!r)return e;let i=Number.parseInt(r,t?16:10);return i<=127?String.fromCharCode(i):e}function Kd(e){let t=e.replace(Rd,Gd).replace(zd,``).replace(Bd,`:`).replace(Vd,``);return Id.test(t)}function qd(e){let t=/url\s*\(/gi,n=``,r=0,i;for(;(i=t.exec(e))!==null;){let a=i.index,o=t.lastIndex-1,s=o+1,c=1,l=null;for(;s<e.length;s++){let t=e[s];if(l){t===l&&(l=null);continue}if(t===`"`||t===`'`)l=t;else if(t===`(`)c++;else if(t===`)`&&(c--,c===0))break}if(c!==0)break;let u=e.slice(o+1,s).trim(),d=u.startsWith(`"`)&&u.endsWith(`"`)||u.startsWith(`'`)&&u.endsWith(`'`)?u.slice(1,-1).trim():u;n+=e.slice(r,a),n+=Kd(d)?`url(about:blank)`:e.slice(a,s+1),r=s+1}return n+e.slice(r)}function Jd(e,t){return Ld.test(e)&&Kd(t)?`about:blank`:Fd(e.toLowerCase()===`style`?qd(t):t)}function Yd(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${Jd(t,n)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${Jd(t,n)}'`),Hd.test(e)&&(e=e.replace(Ud,`$1on$2`)),e=e.replace(Wd,(e,t,n,r)=>Kd(r)?`${t}${n}about:blank`:e),e}var Xd=e=>!K(e)||U(e);function Zd(e,t){if(Xd(e)||Xd(t))throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{if(r===`__proto__`)return;let i=e[r];if(U(i)){let e=[];e.length=i.length,t[r]=e,n.push({src:i,des:e})}else K(i)?((!K(t[r])||U(t[r]))&&(t[r]=H()),n.push({src:i,des:t[r]})):t[r]=i})}}var Qd=new Map;function $d(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map($d);let t=H(null);for(let n of Object.keys(e))t[n]=$d(e[n]);return t}var ef=xn((e,t,n)=>{if(t===`messages`||t===`datetimeFormats`||t===`numberFormats`)return e[t]??=H(null),Zd(n,e[t]),!0});async function tf(e){let t=d(),n={messages:H(null)};for(let r of e){let e=await r().then(e=>nf(e)?e.default:e),i=W(e)?await t.runWithContext(()=>e()):e;n=ef(H(null),i,n)}return n.fallbackLocale??=!1,n}var nf=e=>Ad(e)===`[object Module]`;async function rf(e,t){let n=d();try{let r=await n.runWithContext(t.load).then(e=>nf(e)?e.default:e);return W(r)?await n.runWithContext(()=>r(e)):r}catch(t){throw Error(`Failed loading locale (${e}): `+t.message,{cause:t})}}async function af(e,t=[]){let n=d(),r=await Promise.all(t.map(async t=>
6{let r=of(t),i=r||await n.runWithContext(()=>rf(e,t));return!r&&t.cache!==!1&&Qd.set(t.key,{ttl:Date.now()+864e5,value:i}),i})),i={};for(let e of r)Zd(e,i);return i}function of(e){if(e.cache===!1)return;let t=Qd.get(e.key);if(t!=null)return t.ttl>Date.now()?t.value:void 0}function sf(e){return t=>!e.dynamic.includes(t)&&!e.undeliverable.includes(t)}function cf(e){return t=>!e.ssr||e.undeliverable.includes(t)||e.dynamic.includes(t)&&(e.prerender||e.ssg)}function lf(e=0){return t=>{let n=(typeof t==`string`?t:t.pathname).split(`?`)[0].split(`/`);return n[0]===``&&n.shift(),n.length>e&&n[e]||``}}var uf=`___`,df=`___default`;function ff(e){return typeof e==`string`?e:e==null?``:e.toString()}function pf(e){return ff(typeof e==`object`?e?.name:e).split(uf)[0]}function mf(e,t,n){return n?e+uf+t+df:e+uf+t}var hf=e=>e?nn:an;function gf(e,t,n){return n.routing&&(e!==t||n.strategy===`prefix`)}var _f=lf(0),vf=e=>_f(e),yf=e=>e.split(uf).at(1)??``;function bf(e){return String(typeof e==`object`?e?.name||e?.path||``:e)}function xf(e){let t=bf(e);return t[0]===`/`?vf(t):yf(t)||(typeof e==`object`&&e?.path?vf(String(e.path)):``)}function Sf(e,t){return!t.routing&&!t.domains?e=>ff(e):(t,n)=>{let r=ff(t),i=mf(r,n,!0);return e(i)?i:mf(r,n,!1)}}function Cf(e,t){return t.routing?t.strategy===`prefix`?(t,n)=>{let r=`/`+n+(t.path===`/`?``:t.path),i=e.options.routes.find(e=>e.path===r);return i==null?t:e.resolve(xd({},t,i,{path:r}))}:t=>e.resolve(t):e=>e}var wf=(e=``)=>e.replace(/^https?:\/\//i,``).toLowerCase();function Tf(e,t){return!!e?.domains.some(e=>wf(e)===t)}function Ef(e,t,n){let r=e.find(e=>e.code===n);return!r?.domains.length||Tf(r,t)?`here`:e.some(e=>Tf(e,t))?`other-domain`:`off-host`}function Df(e,t,n){return Ef(e,t,n)!==`other-domain`}var Of=e=>e?.defaultForDomains[0]||e?.domain||e?.domains[0];function kf(e,t,n){if(!Df(n,e,t))return Of(n.find(e=>e.code===t))}function Af(e,t,n){let r=e.filter(e=>Tf(e,t));return(r.find(e=>e.code===n)||r.find(e=>e.defaultForDomains.some(e=>wf(e)===t))||r[0])?.code}function jf(e,t){let n=t.replace(/^\./,``).replace(/:\d+$/,``).toLowerCase();return e.every(e=>e.domains.concat(e.domain||[]).every(e=>{let t=wf(e).replace(/:\d+$/,``);return t===n||t.endsWith(`.`+n)}))}var Mf=(e,t)=>ln(e,{strict:!0})?e:t.protocol+`//`+e;function Nf(e,t,n,r=fd){let i=r.find(e=>e.code===n),a=e?.[n]?.domain||i?.domain||i?.domains.find(e=>wf(e)===t.host)||kf(t.host,n,r);if(a)return Mf(a,t)}function Pf(e,t,n=fd){let r;for(let i of n){let n=Ff(i,e);for(let e of[n.domain,...n.domains])e&&wf(e)===t.host&&(!r||!ln(r,{strict:!0})&&ln(e,{strict:!0}))&&(r=e)}return r&&Mf(r,t)}function Ff(e,t){if(typeof e==`string`)return e;let n=e,r=t[n.code]?.domain;return!r||r===n.domain?e:{...n,domain:r,domains:[r],defaultForDomains:n.defaultForDomains.length?[r]:[]}}function If(e){let t={};for(let n of ld){let r=Lf(e,[n]);t[n]={fallbacks:r,cacheable:zf(n,r)}}return t}function Lf(e,t){if(e===!1)return[];if(U(e))return e;let n=[];if(G(e))return t.every(t=>t!==e)&&n.push(e),n;let r=[...t,`default`];for(let t of r)t in e!=0&&(n=[...n,...e[t].filter(Boolean)]);return n}function Rf(e){return ud[e]!=null&&ud[e].every(e=>e.cache!==!1)}function zf(e,t){return Rf(e)&&t.every(e=>Rf(e))}function Bf(e,t=fd){return t.find(t=>t.defaultForDomains.some(t=>wf(t)===e))?.code}function Vf(e,t,n=fd){return Bf(e,n)||t||(n.some(e=>e.domains.length)?n[0]?.code:``)||``}var Hf=e=>ld.includes(e||``),Uf=e=>Hf(e)?e:void 0,Wf=e=>!!e.path&&!e.name;function Gf(e){let{router:t,defaultLocale:n,strictSeo:r,compactRoutes:i}=e,a={strategy:e.strategy,routing:e.routing,domains:e.domains},o=hf(e.trailingSlash),s=Sf(e=>t.hasRoute(e),a);function c(e,n){e.name=pf(e.name||t.currentRoute.value);let r=s(e.name,n);if(t.hasRoute(r))e.name=r,i&&e.params&&delete e.params.locale;else if(i&&Hf(n)&&d().has(e.name))return e.params={...e.params||{},locale:n},e;return e.name=r,e}let l=Cf(t,a),u;function d(){if(u)return u;if(u=new Set,i)for(let e of t.getRoutes())e.name!=null&&/^\/:locale\(/.test(e.path)&&u.add(String(e.name));return u}function f(e,r){let c=l(e,r),u=pf(c);if(u){let e=s(u,r);if(t.hasRoute(e)){c.name=e;let t=c;return i&&t.params&&delete t.params.locale,c}if(i&&d().has(u)){let e=c;return e.name=u,e.params={...e.params||{},locale:r},e}return c.name=e,c}return gf(r,n,a)&&(c.path=`/`+r+c.path),c.path=o(c.path,!0),c}let p=()=>t.currentRoute.value.meta.nuxtI18nInternal??{},m=(e,t=p())=>r&&!!e&&Object.keys(t).length>0&&!t[e],h=a.strategy===`prefix_except_default`||a.strategy===`prefix_and_default`,g=(t,n,r)=>!!t&&Vf(wf(t),e.configuredDefaultLocale,r)===n,_=e=>(t,n,r,i)=>{let a=e(n);
6return a?(h&&g(Of(r),n,i)&&vf(t)===n&&(t=t.slice(n.length+1)||`/`),un(a,t)):t},v=_(e.getBaseUrl),y=_(e.getCanonicalBaseUrl);return{router:t,getLocale:e.getLocale,getLocales:e.getLocales,getBaseUrl:e.getBaseUrl,getRouteBaseName:pf,getRouteLocalizedParams:p,getLocalizedDynamicParams:t=>{let n=e.getLocalePathPayload?.();return n?n[t]||{}:p()?.[t]},afterSwitchLocalePath:(t,n)=>{if(m(n))return``;if(!a.domains)return t;let r=e.getHost()??``,i=e.getLocales(),o=i.find(e=>e.code===n);return Tf(o,r)||!t?t:v(t,n,o,i)},getAlternatePath:(t,n)=>{if(n!==e.getLocale()&&m(n))return``;if(!a.domains||!t)return t;let r=e.getLocales();return y(t,n,r.find(e=>e.code===n),r)},resolveLocalizedRouteObject:(e,t)=>Wf(e)?f(e,t):c(e,t)}}function Kf(e){let t=e?._nuxtI18n?.composableCtx;if(!t)throw Error(`i18n context is not initialized. Ensure the i18n plugin is installed and the composable is used within a Vue component or setup function.`);return t}function qf(e,t=d()){let n=Jf(t);return{...Gf({router:zr(),defaultLocale:e.getDefaultLocale(),configuredDefaultLocale:e.config.defaultLocale||``,getLocale:e.getLocale,getLocales:e.getLocales,getBaseUrl:e.getBaseUrl,getCanonicalBaseUrl:e.getCanonicalBaseUrl,getHost:()=>hu({xForwardedHost:!0}).host,getLocalePathPayload:()=>!1,strategy:`prefix_except_default`,routing:!0,domains:!1,trailingSlash:!1,strictSeo:!1,compactRoutes:!1}),strictSeo:!1,_head:void 0,get head(){return this._head??=Va({}),this._head},metaState:{htmlAttrs:{},meta:[],link:[]},seoSettings:{dir:!1,lang:!1,seo:typeof e.config.experimental.strictSeo==`object`&&e.config.experimental.strictSeo||!1},localePathPayload:n,routingOptions:{defaultLocale:e.config.defaultLocale||``,domains:!1,strictCanonicals:e.config.experimental.alternateLinkCanonicalQueries??!0,hreflangLinks:!0}}}function Jf(e=d()){let t=document.querySelector(`[data-nuxt-i18n-slp="${e._id}"]`)?.textContent;return JSON.parse(t||`{}`)}function Yf(e){return e!=null&&`global`in e&&`mode`in e?e.global:e}function Xf(e){let t=Yf(e);return`__composer`in t?t.__composer:t}function Zf(e,t){return e?e.$config.public.i18n:m(t).public.i18n}function Qf(e){let t=Zf(e).detectBrowserLanguage,n=t||{};return{...n,enabled:!!t,cookieKey:n.cookieKey||`i18n_redirected`}}function $f(e){if(e)return{path:`/`+(G(e)?e:e.path).replace(/^\//,``),code:!G(e)&&e.statusCode||302}}var ep={"&":`&`,'"':`"`,"'":`'`,"<":`<`,">":`>`};function tp(e){return e.replace(/["'&<>]/g,e=>ep[e])}var np=()=>Al(`i18n:cached-locale-configs`,()=>void 0),rp=()=>Al(`i18n:resolved-locale`,()=>``);function ip(e,t){let n=!W(t)&&sn(t).protocol;return n?{host:e.host,protocol:n}:e}function ap(e){let{baseUrl:t,appBase:n,domains:r,getDomainForHost:i,getDomainFromLocale:a}=e,o=W(t)?t:()=>r&&i()||t||``;return e=>un(e&&a(e)||o(),n)}function op({cookieCrossOrigin:e,cookieDomain:t,cookieSecure:n,cookieKey:r}){let i=new Date;return iu(r||`i18n_redirected`,{path:`/`,readonly:!1,expires:new Date(i.setDate(i.getDate()+365)),sameSite:e?`none`:`lax`,domain:t||void 0,secure:e||n})}var sp=sf({dynamic:[],undeliverable:[]});function cp(e,t,n,r=!1){let i=Yf(t),a=Zf(e),o=Qf(e),s=np(),c=op(o),l=new Set,u=e=>s.value[e],d,f=()=>d??=ip(hu({xForwardedHost:!0}),a.baseUrl),p=ap({baseUrl:W(a.baseUrl)?()=>a.baseUrl(e):a.baseUrl,appBase:e.$config.app.baseURL,domains:!1,getDomainForHost:()=>Pf(a.domainLocales,f()),getDomainFromLocale:e=>Nf(a.domainLocales,f(),e)}),m=p,h=rp(),g=cf({ssr:!0,ssg:!1,prerender:!1,dynamic:[],undeliverable:[]}),_=e=>``,v=async t=>{if(!(t in ud))return;let n=await e.runWithContext(()=>af(t,ud[t])),a=r?$d(n):n;i.mergeLocaleMessage(t,a)},y=async e=>{if(!(e in ud))return;let t=e=>Object.keys(e).filter(e=>!b.usesRuntimeLoaders(e)),n=u(e)?.cacheable?{}:{"Cache-Control":`no-cache`},r=un(_(e),`/_i18n`,{ja:`650dc72b`,en:`650dc72b`}[e],e,`messages.json`),a=await $fetch(r,{headers:n});for(let e of t(a))i.mergeLocaleMessage(e,a[e])},b={vueI18n:t,initial:!0,preloaded:!1,config:a,rootRedirect:$f(a.rootRedirect),redirectStatusCode:a.redirectStatusCode??302,usesRuntimeLoaders:e=>g(e),getDefaultLocale:()=>n,getLocale:()=>k(i.locale),setLocale:async t=>{let n=b.getLocale();t!==n&&Hf(t)&&(Re(i.locale)?i.locale.value=t:i.locale=t,await e.callHook(`i18n:localeSwitched`,{newLocale:t,oldLocale:n}),h.value=t)},setLocaleSuspend:async t=>{Hf(t)&&(b.vueI18n.__pendingLocale=t,b.vueI18n.__pendingLocalePromise=new Promise(e=>{b.vueI18n.__resolvePendingLocalePromise=async()=>{b.setCookieLocale(t),await b.setLocale(t),b.vueI18n.__pendingLocale=void 0,e()}}),(e.isHydrating||!b.config.skipSettingLocaleOnNavigate)&&await b.vueI18n.__resolvePendingLocalePromise?.())},getLocales:()=>k(i.locales).map(e=>G(e)?{code:e,domains:[],defaultForDomains:[]}:e),setCookieLocale:e=>{o.useCookie&&Hf(e)&&(c.value=e)},getBaseUrl:p,getCanonicalBaseUrl:m,loadMessages:async t=>{if(!(e.isHydrating&&l.has(t)))try{let e=u(t)?.fallbacks??[],n=e.includes(t)?e:[...e,t];if(!n.some(e=>b.usesRuntimeLoaders(e)))return await y(t);for(let e of n)try{await(b.usesRuntimeLoaders(e)?v(e):y(e))}catch(t){console.warn(`Failed to load messages for locale "${e}"`,t)}}catch(e){console.warn(`Failed to load messages for locale "${t}"`,e)}finally{l.add(t)}},composableCtx:void 0};return b.composableCtx=qf(b,e),b}
6function lp(e){if(e._nuxtI18n==null)throw Error(`Nuxt I18n context has not been set up yet.`);return e._nuxtI18n}function up(e,t,n=e.getLocale()){if(G(t)&&ln(t,{acceptRelative:!0}))return t;try{return pp(e,t,n).fullPath}catch{return``}}function dp(e,t,n=e.getLocale()){try{return pp(e,t,n)}catch{return}}function fp(e){if(!G(e))return xd({},e);if(e[0]===`/`){let{pathname:t,search:n,hash:r}=_n(e);return{path:t,query:on(n),hash:r}}return{name:e}}function pp(e,t,n){let r=fp(t),i=e.resolveLocalizedRouteObject(r,n);i.name&&(i.path=void 0);let a=e.router.resolve(i);return a.name?a:e.router.resolve(t)}function mp(e,t,n=e.router.currentRoute.value){let r=e.getRouteBaseName(n);if(!r)return``;let i=up(e,{name:r,params:xd({},n.params,e.getLocalizedDynamicParams(t)),fullPath:n.fullPath,query:n.query,hash:n.hash,meta:n.meta},t);return e.afterSwitchLocalePath(i,t)}function hp(e){let{strategy:t,compactRoutes:n}=e;function r(r){if(t===`no_prefix`||r.name==null)return!1;let i=String(r.name);return pf(i)!==i||n&&r.matched.some(e=>e.meta.__i18nCompact)?!1:!e.getLocaleCodes().some(t=>e.hasRoute(mf(i,t,!1)))}return function(t,n,i=!1){let a=e.localeReach?.(n);if(a===`off-host`)return;if(a===`other-domain`){if(r(t)||i)return;let a=e.switchLocalePath(n,t);return!a||!ln(a,{strict:!0})?void 0:{path:a,code:e.redirectStatusCode,external:!0}}if(t.path===`/`&&e.rootRedirect)return{path:e.localePath(e.rootRedirect.path,n),code:e.rootRedirect.code};if(r(t)||i||e.routeLocale(t)===n)return;let o=e.switchLocalePath(n,t)||e.localePath(t.fullPath,n);if(!rn(o,t.fullPath))return{path:o,code:e.redirectStatusCode}}}function gp(e,t){let n=[];for(let[r,i]of t.entries()){let a=e.find(e=>e.language?.toLowerCase()===i.toLowerCase());if(a){n.push({code:a.code,score:1-r/t.length});break}}for(let[r,i]of t.entries()){let a=i.split(`-`)[0].toLowerCase(),o=e.find(e=>e.language?.split(`-`)[0].toLowerCase()===a);if(o){n.push({code:o.code,score:.999-r/t.length});break}}return n}function _p(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}function vp(e,t){return gp(e.map(e=>({code:e.code,language:e.language||e.code})),t).sort(_p).at(0)?.code??``}var yp=(e,t)=>iu(t).value||void 0,bp=(e,t)=>xf(t),xp=e=>vp(fd,navigator.languages),Sp=e=>new URL(window.location.href).host,Cp=e=>{let t=document.referrer;try{return t&&new URL(t).host||void 0}catch{return}},wp=e=>fd.map(t=>Ff(t,e)),Tp=(e,t,n)=>{let r=Zf(n),i,a,o=()=>i??=Sp(e),s=()=>a??=wp(r.domainLocales);return{cookie:()=>yp(e,t.cookieKey),header:()=>void 0,navigator:()=>xp(e),host:e=>Af(s(),o(),vf(e)),route:t=>bp(e,t),onHost:e=>!e||Df(s(),o(),e)?e:void 0,fromOwnDomain:()=>{let t=Cp(e);return!!t&&s().some(e=>Tf(e,t))},cookieSpans:()=>!!t.cookieDomain&&jf(s(),t.cookieDomain)}};function Ep(e){let{detection:t,routing:n,domains:r}=e,i=e.isSupportedLocale??Hf;function a(e,r){return n?!!(t.redirectOn===`root`&&e!==`/`||t.redirectOn===`no prefix`&&!t.alwaysRedirect&&i(r)):!1}return function(e,o,s){let c=G(o)?_n(o).pathname:o.path,l=e=>e,u=r?e.onHost:l;function*d(){let i=s&&t.enabled&&!a(c,e.route(c));if(i){let t=r&&!e.fromOwnDomain(),n=t&&e.cookieSpans()?l:u,i=t?l:u;yield n(e.cookie()),yield i(e.header()),yield i(e.navigator())}r&&(yield e.host(c)),n&&(yield e.route(o)),i&&(yield u(t.fallbackLocale))}for(let e of d())if(e&&i(e))return e;return``}}async function Dp(e,t){let n=lp(e),r=n.getLocale();if(t===r&&!n.initial&&(!n.vueI18n.__pendingLocale||n.vueI18n.__pendingLocale===t))return t;let i={oldLocale:r,newLocale:t,initialSetup:n.initial,context:e},a=await e.callHook(`i18n:beforeLocaleSwitch`,i);return a??=i.newLocale,Hf(a)&&(t=a),await n.loadMessages(t),await n.setLocaleSuspend(t),t}function Op(e,t){let n=Qf(e),r=Tp(void 0,n,e),i=lp(e);return Ep({detection:n,routing:!0,domains:!1})(r,t,i.initial)||i.getLocale()||i.getDefaultLocale()||``}function kp(e,t,n){let r=lp(e),i=Kf(e),a=Tp(void 0,Qf(e),e),o=hp({localeReach:void 0,rootRedirect:r.rootRedirect,redirectStatusCode:r.redirectStatusCode,localePath:(e,t)=>up(i,e,t),switchLocalePath:(e,t)=>mp(i,e,t),routeLocale:e=>a.route(e),hasRoute:e=>i.router.hasRoute(e),getLocaleCodes:()=>
6i.getLocales().map(e=>e.code),strategy:`prefix_except_default`,compactRoutes:!1})(t,n,!!r.vueI18n.__pendingLocale&&!!d()._processingMiddleware);if(o)return Gr(o.path,{redirectCode:o.code,external:o.external})}var Ap=p({name:`i18n:plugin:route-locale-detect`,dependsOn:[`i18n:plugin`],async setup(e){let t,n,r=d(e._id),i=lp(r),a=rp();[t,n]=o(()=>r.runWithContext(()=>Dp(r,i.initial&&a.value||Op(r,r.$router.currentRoute.value)))),await t,n(),Ur(`locale-changing`,Hr(async e=>{let t,n,a=([t,n]=o(()=>r.runWithContext(()=>Dp(r,Op(r,e)))),t=await t,n(),t);return i.initial=!1,r.runWithContext(()=>kp(r,e,a))},1),{global:!0})}},1);function jp(e,t,n){return{line:e,column:t,offset:n}}function Mp(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}var J={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,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};J.EXPECTED_TOKEN,J.INVALID_TOKEN_IN_PLACEHOLDER,J.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,J.UNKNOWN_ESCAPE_SEQUENCE,J.INVALID_UNICODE_ESCAPE_SEQUENCE,J.UNBALANCED_CLOSING_BRACE,J.UNTERMINATED_CLOSING_BRACE,J.EMPTY_PLACEHOLDER,J.NOT_ALLOW_NEST_PLACEHOLDER,J.INVALID_LINKED_FORMAT,J.MUST_HAVE_MESSAGES_IN_PLURAL,J.UNEXPECTED_EMPTY_LINKED_MODIFIER,J.UNEXPECTED_EMPTY_LINKED_KEY,J.UNEXPECTED_LEXICAL_ANALYSIS,J.UNHANDLED_CODEGEN_NODE_TYPE,J.UNHANDLED_MINIFIER_NODE_TYPE;function Np(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function Pp(e){throw e}var Fp=` `,Ip=`\r`,Lp=` 7`,Rp=`\u2028`,zp=`\u2029`;function Bp(e){let t=e,n=0,r=1,i=1,a=0,o=e=>t[e]===Ip&&t[e+1]===Lp,s=e=>t[e]===Lp,c=e=>t[e]===zp,l=e=>t[e]===Rp,u=e=>o(e)||s(e)||c(e)||l(e),d=()=>n,f=()=>r,p=()=>i,m=()=>a,h=e=>o(e)||c(e)||l(e)?Lp:t[e],g=()=>h(n),_=()=>h(n+a);function v(){return a=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+a)&&a++,a++,t[n+a]}function b(){n=0,r=1,i=1,a=0}function x(e=0){a=e}function S(){let e=n+a;for(;e!==n;)v();a=0}return{index:d,line:f,column:p,peekOffset:m,charAt:h,currentChar:g,currentPeek:_,next:v,peek:y,reset:b,resetPeek:x,skipToPeek:S}}var Vp=void 0,Hp=`'`,Up=`tokenizer`;function Wp(e,t={}){let n=t.location!==!1,r=Bp(e),i=()=>r.index(),a=()=>jp(r.line(),r.column(),r.index()),o=a(),s=i(),c={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:``},l=()=>c,{onError:u}=t;function d(e,t,r,...i){let a=l();if(t.column+=r,t.offset+=r,u){let r=Np(e,n?Mp(a.startLoc,t):null,{domain:Up,args:i});u(r)}}function f(e,t,r){e.endLoc=a(),e.currentType=t;let i={type:t};return n&&(i.loc=Mp(e.startLoc,e.endLoc)),r!=null&&(i.value=r),i}let p=e=>f(e,13);function m(e,t){return e.currentChar()===t?(e.next(),t):(d(J.EXPECTED_TOKEN,a(),0,t),``)}function h(e){let t=``;for(;e.currentPeek()===Fp||e.currentPeek()===Lp;)t+=e.currentPeek(),e.peek();return t}function g(e){let t=h(e);return e.skipToPeek(),t}function _(e){if(e===Vp)return!1;let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function v(e){if(e===Vp)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57}function y(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function b(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=v(e.currentPeek()===`-`?e.peek():e.currentPeek());return e.resetPeek(),r}function x(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=e.currentPeek()===Hp;return e.resetPeek(),r}function S(e,t){let{currentType:n}=t;if(n!==7)return!1;h(e);let r=e.currentPeek()===`.`;return e.resetPeek(),r}function C(e,t){let{currentType:n}=t;if(n!==8)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function w(e,t){let{currentType:n}=t;if(n!==7&&n!==11)return!1;h(e);let r=e.currentPeek()===`:`;return e.resetPeek(),r}function T(e,t){let{currentType:n}=t;if(n!==9)return!1;let r=()=>{let t=e.currentPeek();
vendor: 9,839 bytes, line 7
7return t===`{`?_(e.peek()):t===`@`||t===`|`||t===`:`||t===`.`||t===Fp||!t?!1:t===Lp?(e.peek(),r()):D(e,!1)},i=r();return e.resetPeek(),i}function E(e){h(e);let t=e.currentPeek()===`|`;return e.resetPeek(),t}function D(e,t=!0){let n=(t=!1,r=``)=>{let i=e.currentPeek();return i===`{`||i===`@`||!i?t:i===`|`?r!==Fp&&r!==Lp:i===Fp?(e.peek(),n(!0,Fp)):i!==Lp||(e.peek(),n(!0,Lp))},r=n();return t&&e.resetPeek(),r}function ee(e,t){let n=e.currentChar();if(n!==Vp)return t(n)?(e.next(),n):null}function te(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function O(e){return ee(e,te)}function k(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function ne(e){return ee(e,k)}function re(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function ie(e){return ee(e,re)}function ae(e){let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function oe(e){return ee(e,ae)}function se(e){let t=``,n=``;for(;t=ie(e);)n+=t;return n}function ce(e){let t=``;for(;;){let n=e.currentChar();if(n===`\\`){let r=e.peek();r===`{`||r===`}`||r===`@`||r===`|`||r===`\\`?(t+=n+r,e.next(),e.next()):(e.resetPeek(),t+=n,e.next())}else if(n===`{`||n===`}`||n===`@`||n===`|`||!n)break;else if(n===Fp||n===Lp){if(D(e))t+=n,e.next();else if(E(e))break;else t+=n,e.next()}else t+=n,e.next()}return t}function le(e){g(e);let t=``,n=``;for(;t=ne(e);)n+=t;let r=e.currentChar();if(r&&r!==`}`&&r!==Vp&&r!==Fp&&r!==Lp&&r!==`ã`){let t=me(e);return d(J.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n+t),n+t}return e.currentChar()===Vp&&d(J.UNTERMINATED_CLOSING_BRACE,a(),0),n}function A(e){g(e);let t=``;return e.currentChar()===`-`?(e.next(),t+=`-${se(e)}`):t+=se(e),e.currentChar()===Vp&&d(J.UNTERMINATED_CLOSING_BRACE,a(),0),t}function ue(e){return e!==Hp&&e!==Lp}function de(e){g(e),m(e,`'`);let t=``,n=``;for(;t=ee(e,ue);)n+=t===`\\`?j(e):t;let r=e.currentChar();return r===Lp||r===Vp?(d(J.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),r===Lp&&(e.next(),m(e,`'`)),n):(m(e,`'`),n)}function j(e){let t=e.currentChar();switch(t){case`\\`:case`'`:return e.next(),`\\${t}`;case`u`:return fe(e,t,4);case`U`:return fe(e,t,6);default:return d(J.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),``}}function fe(e,t,n){m(e,t);let r=``;for(let i=0;i<n;i++){let n=oe(e);if(!n){d(J.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function pe(e){return e!==`{`&&e!==`}`&&e!==Fp&&e!==Lp}function me(e){g(e);let t=``,n=``;for(;t=ee(e,pe);)n+=t;return n}function he(e){let t=``,n=``;for(;t=O(e);)n+=t;return n}function ge(e){let t=n=>{let r=e.currentChar();return r===`{`||r===`@`||r===`|`||r===`(`||r===`)`||!r||r===Fp?n:(n+=r,e.next(),t(n))};return t(``)}function _e(e){g(e);let t=m(e,`|`);return g(e),t}function ve(e,t){let n=null;switch(e.currentChar()){case`{`:return t.braceNest>=1&&d(J.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=f(t,2,`{`),g(e),t.braceNest++,n;case`}`:return t.braceNest>0&&t.currentType===2&&d(J.EMPTY_PLACEHOLDER,a(),0),e.next(),n=f(t,3,`}`),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),n;case`@`:return t.braceNest>0&&d(J.UNTERMINATED_CLOSING_BRACE,a(),0),n=ye(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,i=!0,o=!0;if(E(e))return t.braceNest>0&&d(J.UNTERMINATED_CLOSING_BRACE,a(),0),n=f(t,1,_e(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(t.currentType===4||t.currentType===5||t.currentType===6))return d(J.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,M(e,t);if(r=y(e,t))return n=f(t,4,le(e)),g(e),n;if(i=b(e,t))return n=f(t,5,A(e)),g(e),n;if(o=x(e,t))return n=f(t,6,de(e)),g(e),n;if(!r&&!i&&!o)return n=f(t,12,me(e)),d(J.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),g(e),n;break}}return n}function ye(e,t){let{currentType:n}=t,r=null,i=e.currentChar();switch((n===7||n===8||n===11||n===9)&&(i===Lp||i===Fp)&&d(J.INVALID_LINKED_FORMAT,a(),0),i){case`@`:return e.next(),r=f(t,7,`@`),t.inLinked=!0,r;case`.`:return g(e),e.next(),f(t,8,`.`);case`:`:return g(e),e.next(),f(t,9,`:`);default:return E(e)?(r=f(t,1,_e(e)),t.braceNest=0,t.inLinked=!1,r):S(e,t)||w(e,t)?(g(e),ye(e,t)):C(e,t)?(g(e),f(t,11,he(e))):T(e,t)?(g(e),i===`{`?ve(e,t)||r:f(t,10,ge(e))):(n===7&&d(J.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,M(e,t))}}function M(e,t){let n={type:13};if(t.braceNest>0)return ve(e,t)||p(t);if(t.inLinked)return ye(e,t)||p(t);switch(e.currentChar()){case`{`:return ve(e,t)||p(t);case`}`:return d(J.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),f(t,3,`}`);case`@`:return ye(e,t)||p(t);default:if(E(e))return n=f(t,1,_e(e)),t.braceNest=0,t.inLinked=!1,n;if(D(e))return f(t,0,ce(e))}return n}function be(){let{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=i(),c.startLoc=a(),r.currentChar()===Vp?f(c,13):M(r,c)}return{nextToken:be,currentOffset:i,currentPosition:a,context:l}}var Gp=`parser`,Kp=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,qp=/\\([\\@{}|])/g;function Jp(e,t){return t}function Yp(e,t,n){switch(e){case`\\\\`:return`\\`;case`\\'`:return`'`;default:{let e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):`�`}}}function Xp(e={}){let t=e.location!==!1,{onError:n}=e;function r(e,r,i,a,...o){let s=e.currentPosition();if(s.offset+=a,s.column+=a,n){let e=Np(r,t?Mp(i,s):null,{domain:Gp,args:o});n(e)}}function i(e,n,r){let i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function a(e,n,r,i){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){let n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t.replace(qp,Jp),a(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(5,n,r);return o.index=parseInt(t,10),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function c(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(4,n,r);return o.key=t,e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function l(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(9,n,r);return o.value=t.replace(Kp,Yp),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function u(e){let t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,c=i(8,o,s);return t.type===11?(t.value??r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,Zp(t)),c.value=t.value||``,a(c,e.currentOffset(),e.currentPosition()),{node:c}):(r(e,J.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),c.value=``,a(c,o,s),{nextConsumeToken:t,node:c})}function d(e,t){let n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function f(e){let t=e.context(),n=i(6,t.offset,t.startLoc),o=e.nextToken();if(o.type===8){let t=u(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(o.type!==9&&r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Zp(o)),o=e.nextToken(),o.type===2&&(o=e.nextToken()),o.type){case 10:o.value??r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Zp(o)),n.key=d(e,o.value||``);break;case 4:o.value??r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Zp(o)),n.key=c(e,o.value||``);break;case 5:o.value??r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Zp(o)),n.key=s(e,o.value||``);break;case 6:o.value??r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Zp(o)),n.key=l(e,o.value||``);break;default:{r(e,J.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);let s=e.context(),c=i(7,s.offset,s.startLoc);return c.value=``,a(c,s.offset,s.startLoc),n.key=c,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function p(e){let t=e.context(),n=i(2,t.currentType===1?e.currentOffset():t.offset,t.currentType===1?t.endLoc:t.startLoc);n.items=[];let u=null;do{let i=u||e.nextToken();switch(u=null,i.type){case 0:i.value??r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Zp(i)),n.items.push(o(e,i.value||``));break;case 5:i.value??r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Zp(i)),n.items.push(s(e,i.value||``));break;case 4:i.value??r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Zp(i)),n.items.push(c(e,i.value||``));break;case 6:i.value??r(e,J.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,Zp(i)),n.items.push(l(e,i.value||``));break;case 7:{let t=f(e);n.items.push(t.node),u=t.nextConsumeToken||null;break}}}while(t.currentType!==13&&t.currentType!==1);return a(n,t.currentType===1?t.lastOffset:e.currentOffset(),t.currentType===1?t.lastEndLoc:e.currentPosition()),n}function m(e,t,n,o){let s=e.context(),c=o.items.length===0,l=i(1,t,n);l.cases=[],l.cases.push(o);do{let t=p(e);c||=t.items.length===0,l.cases.push(t)}while(s.currentType!==13);return c&&r(e,J.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(l,e.currentOffset(),e.currentPosition()),l}function h(e){let t=e.context(),{offset:n,startLoc:r}=t,i=p(e);return t.currentType===13?i:m(e,n,r,i)}function g(n){let o=Wp(n,xd({},e)),s=o.context(),c=i(0,s.offset,s.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=h(o),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),s.currentType!==13&&r(o,J.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,0,n[s.offset]||``),a(c,o.currentOffset(),o.currentPosition()),c}return{parse:g}}function Zp(e){if(e.type===13)return`EOF`;let t=(e.value||``).replace(/\r?\n/gu,`\\n`);return t.length>10?t.slice(0,9)+`â¦`:t}function Qp(e,t={}){let n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}function $p(e,t){for(let n=0;n<e.length;n++)em(e[n],t)}function em(e,t){switch(e.type){case 1:$p(e.cases,t),t.helper(`plural`);break;case 2:$p(e.items,t);break;case 6:em(e.key,t),t.helper(`linked`),t.helper(`type`);break;case 5:t.helper(`interpolate`),t.helper(`list`);break;case 4:t.helper(`interpolate`),t.helper(`named`)}}function tm(e,t={}){let n=Qp(e);n.helper(`normalize`),e.body&&em(e.body,n);let r=n.context();e.helpers=Array.from(r.helpers)}function nm(e){let t=e.body;
7return t.type===2?rm(t):t.cases.forEach(e=>rm(e)),e}function rm(e){if(e.items.length===1){let t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{let t=[];for(let n=0;n<e.items.length;n++){let r=e.items[n];if(r.type!==3&&r.type!==9||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Md(t);for(let t=0;t<e.items.length;t++){let n=e.items[t];(n.type===3||n.type===9)&&delete n.value}}}}function im(e){switch(e.t=e.type,e.type){case 0:{let t=e;im(t.body),t.b=t.body,delete t.body;break}case 1:{let t=e,n=t.cases;for(let e=0;e<n.length;e++)im(n[e]);t.c=n,delete t.cases;break}case 2:{let t=e,n=t.items;for(let e=0;e<n.length;e++)im(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{let t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{let t=e;im(t.key),t.k=t.key,delete t.key,t.modifier&&(im(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{let t=e;t.i=t.index,delete t.index;break}case 4:{let t=e;t.k=t.key,delete t.key;break}}delete e.type}function am(e,t){let{filename:n,breakLineCode:r,needIndent:i}=t,a=t.location!==!1,o={filename:n,code:``,column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);let s=()=>o;function c(e,t){o.code+=e}function l(e,t=!0){let n=t?r:``;c(i?n+` `.repeat(e):n)}function u(e=!0){let t=++o.indentLevel;e&&l(t)}
vendor: 30,638 bytes, lines 7-8
7function d(e=!0){let t=--o.indentLevel;e&&l(t)}function f(){l(o.indentLevel)}return{context:s,push:c,indent:u,deindent:d,newline:f,helper:e=>`_${e}`,needIndent:()=>o.needIndent}}function om(e,t){let{helper:n}=e;e.push(`${n(`linked`)}(`),um(e,t.key),t.modifier?(e.push(`, `),um(e,t.modifier),e.push(`, _type`)):e.push(`, undefined, _type`),e.push(`)`)}function sm(e,t){let{helper:n,needIndent:r}=e;e.push(`${n(`normalize`)}([`),e.indent(r());let i=t.items.length;for(let n=0;n<i&&(um(e,t.items[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}function cm(e,t){let{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n(`plural`)}([`),e.indent(r());let i=t.cases.length;for(let n=0;n<i&&(um(e,t.cases[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}}function lm(e,t){t.body?um(e,t.body):e.push(`null`)}function um(e,t){let{helper:n}=e;switch(t.type){case 0:lm(e,t);break;case 1:cm(e,t);break;case 2:sm(e,t);break;case 6:om(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n(`interpolate`)}(${n(`list`)}(${t.index}))`,t);break;case 4:e.push(`${n(`interpolate`)}(${n(`named`)}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t)}}var dm=(e,t={})=>{let n=G(t.mode)?t.mode:`normal`,r=G(t.filename)?t.filename:`message.intl`;t.sourceMap;let i=t.breakLineCode==null?n===`arrow`?`;`:` 8`:t.breakLineCode,a=t.needIndent?t.needIndent:n!==`arrow`,o=e.helpers||[],s=am(e,{filename:r,breakLineCode:i,needIndent:a});s.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),s.indent(a),o.length>0&&(s.push(`const { ${Md(o.map(e=>`${e}: _${e}`),`, `)} } = ctx`),s.newline()),s.push(`return `),um(s,e),s.deindent(a),s.push(`}`),delete e.helpers;let{code:c,map:l}=s.context();return{ast:e,code:c,map:l?l.toJSON():void 0}};function fm(e,t={}){let n=xd({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null||n.optimize,o=Xp(n).parse(e);return r?(a&&nm(o),i&&im(o),{ast:o,code:``}):(tm(o,n),dm(o,n))}function pm(e){return K(e)&&Cm(e)===0&&(Ed(e,`b`)||Ed(e,`body`))}var mm=[`b`,`body`];function hm(e){return Am(e,mm)}var gm=[`c`,`cases`];function _m(e){return Am(e,gm,[])}var vm=[`s`,`static`];function ym(e){return Am(e,vm)}var bm=[`i`,`items`];function xm(e){return Am(e,bm,[])}var Sm=[`t`,`type`];function Cm(e){return Am(e,Sm)}var wm=[`v`,`value`];function Tm(e,t){let n=Am(e,wm);if(n!=null)return n;throw Mm(t)}var Em=[`m`,`modifier`];function Dm(e){return Am(e,Em)}var Om=[`k`,`key`];function km(e){let t=Am(e,Om);if(t)return t;throw Mm(6)}function Am(e,t,n){for(let n=0;n<t.length;n++){let r=t[n];if(Ed(e,r)&&e[r]!=null)return e[r]}return n}var jm=[...mm,...gm,...vm,...bm,...Om,...Em,...wm,...Sm];function Mm(e){return Error(`unhandled node type: ${e}`)}function Nm(e){return t=>Pm(t,e)}function Pm(e,t){let n=hm(t);if(n==null)throw Mm(0);if(Cm(n)===1){let t=_m(n);return e.plural(t.reduce((t,n)=>[...t,Fm(e,n)],[]))}return Fm(e,n)}function Fm(e,t){let n=ym(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=xm(t).reduce((t,n)=>[...t,Im(e,n)],[]);return e.normalize(n)}}function Im(e,t){let n=Cm(t);switch(n){case 3:return Tm(t,n);case 9:return Tm(t,n);case 4:{let r=t;if(Ed(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(Ed(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw Mm(n)}case 5:{let r=t;if(Ed(r,`i`)&&_d(r.i))return e.interpolate(e.list(r.i));if(Ed(r,`index`)&&_d(r.index))return e.interpolate(e.list(r.index));throw Mm(n)}case 6:{let n=t,r=Dm(n),i=km(n);return e.linked(Im(e,i),r?Im(e,r):void 0,e.type)}case 7:return Tm(t,n);case 8:return Tm(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}var Lm=e=>e,Rm=H();function zm(e,t={}){let n=!1,r=t.onError||Pp;return t.onError=e=>{n=!0,r(e)},{...fm(e,t),detectError:n}}function Bm(e,t){if(G(e)){Dd(t.warnHtmlMessage)&&t.warnHtmlMessage;let n=(t.onCacheKey||Lm)(e),r=Rm[n];if(r)return r;let{ast:i,detectError:a}=zm(e,{...t,location:!1,jit:!0}),o=Nm(i);return a?o:Rm[n]=o}{let t=e.cacheKey;return t?Rm[t]||(Rm[t]=Nm(e)):Nm(e)}}var Vm={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function Hm(e){return Np(e,null,void 0)}Vm.INVALID_ARGUMENT,Vm.INVALID_DATE_ARGUMENT,Vm.INVALID_ISO_DATE_ARGUMENT,Vm.NOT_SUPPORT_NON_STRING_MESSAGE,Vm.NOT_SUPPORT_LOCALE_PROMISE_VALUE,Vm.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,Vm.NOT_SUPPORT_LOCALE_TYPE;function Um(e,t){return t.locale==null?Gm(e.locale):Gm(t.locale)}var Wm;function Gm(e){if(G(e))return e;if(W(e)){if(e.resolvedOnce&&Wm!=null)return Wm;if(e.constructor.name===`Function`){let t=e();if(Od(t))throw Hm(Vm.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Wm=t}throw Hm(Vm.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Hm(Vm.NOT_SUPPORT_LOCALE_TYPE)}function Km(e,t,n){return[...new Set([n,...U(t)?t:K(t)?Object.keys(t).filter(e=>e!=="default"):G(t)?[t]:[n]])]}function qm(e,t,n){let r=G(n)?n:lh,i=e;i.__localeChainCache||=new Map;let a=gd(t),o=i.__localeChainCache.get(r);o||(o=new Map,i.__localeChainCache.set(r,o));let s=o.get(a);if(s)return s;let c=[],l=[n];for(;U(l);)l=Jm(c,l,t);let u=U(t)||!q(t)?t:t.default?t.default:null;return l=G(u)?[u]:u,U(l)&&Jm(c,l,!1),o.set(a,c),c}function Jm(e,t,n){let r=!0;for(let i=0;i<t.length&&Dd(r);i++){let a=t[i];G(a)&&(r=Ym(e,t[i],n))}return r}function Ym(e,t,n){let r,i=t.split(`-`);do r=Xm(e,i.join(`-`),n),i.splice(-1,1);while(i.length&&r===!0);return r}function Xm(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!==`!`;let i=t.replace(/!/g,``);e.push(i),(U(n)||q(n))&&n[i]&&(r=n[i])}return r}var Zm=[];Zm[0]={w:[0],i:[3,0],"[":[4],o:[7]},Zm[1]={w:[1],".":[2],"[":[4],o:[7]},Zm[2]={w:[2],i:[3,0],0:[3,0]},Zm[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Zm[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Zm[5]={"'":[4,0],o:8,l:[5,0]},Zm[6]={'"':[4,0],o:8,l:[6,0]};var Qm=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function $m(e){return Qm.test(e)}function eh(e){let t=e.charCodeAt(0);return t===e.charCodeAt(e.length-1)&&(t===34||t===39)?e.slice(1,-1):e}function th(e){if(e==null)return`o`;switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return`i`;case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return`w`}return`i`}function nh(e){let t=e.trim();return e.charAt(0)===`0`&&isNaN(parseInt(e))?!1:$m(t)?eh(t):`*`+t}function rh(e){let t=[],n=-1,r=0,i=0,a,o,s,c,l,u,d,f=[];f[0]=()=>{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=nh(o),o===!1))return!1;f[1]()}};function p(){let t=e[n+1];if(r===5&&t===`'`||r===6&&t===`"`)return n++,s=`\\`+t,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a===`\\`&&p())){if(c=th(a),d=Zm[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(s=a,u()===!1))))return;if(r===7)return t}}var ih=new Map;function ah(e,t){return K(e)?e[t]:null}function oh(e,t){if(!K(e))return null;let n=ih.get(t);if(n||(n=rh(t),n&&ih.set(t,n)),!n)return null;let r=n.length,i=e,a=0;for(;a<r;){let e=n[a];if(jm.includes(e)&&pm(i)||!K(i)||!Ed(i,e))return null;let t=i[e];if(t===void 0||W(i))return null;i=t,a++}return i}var sh={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9};sh.NOT_FOUND_KEY,sh.FALLBACK_TO_TRANSLATE,sh.CANNOT_FORMAT_NUMBER,sh.FALLBACK_TO_NUMBER_FORMAT,sh.CANNOT_FORMAT_DATE,sh.FALLBACK_TO_DATE_FORMAT,sh.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER,sh.INVALID_NUMBER_ARGUMENT,sh.INVALID_DATE_ARGUMENT;var ch=`11.4.10`,lh=`en-US`,uh=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function dh(){return{upper:(e,t)=>t===`text`&&G(e)?e.toUpperCase():t===`vnode`&&K(e)&&`__v_isVNode`in e?e.children.toUpperCase():e,lower:(e,t)=>t===`text`&&G(e)?e.toLowerCase():t===`vnode`&&K(e)&&`__v_isVNode`in e?e.children.toLowerCase():e,capitalize:(e,t)=>t===`text`&&G(e)?uh(e):t===`vnode`&&K(e)&&`__v_isVNode`in e?uh(e.children):e}}var fh;function ph(e){fh=e}var mh;function hh(e){mh=e}var gh;function _h(e){gh=e}var vh=null,yh=e=>{vh=e},bh=()=>vh,xh=0;function Sh(e={}){let t=W(e.onWarn)?e.onWarn:Nd,n=G(e.version)?e.version:ch,r=G(e.locale)||W(e.locale)?e.locale:lh,i=W(r)?lh:r,a=U(e.fallbackLocale)||q(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=q(e.messages)?e.messages:Ch(i),s=q(e.datetimeFormats)?e.datetimeFormats:Ch(i),c=q(e.numberFormats)?e.numberFormats:Ch(i),l=xd(H(),e.modifiers,dh()),u=e.pluralRules||H(),d=W(e.missing)?e.missing:null,f=Dd(e.missingWarn)||yd(e.missingWarn)?e.missingWarn:!0,p=Dd(e.fallbackWarn)||yd(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,h=!!e.unresolving,g=W(e.postTranslation)?e.postTranslation:null,_=q(e.processor)?e.processor:null,v=!Dd(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,b=W(e.messageCompiler)?e.messageCompiler:fh,x=W(e.messageResolver)?e.messageResolver:mh||ah,S=W(e.localeFallbacker)?e.localeFallbacker:gh||Km,C=K(e.fallbackContext)?e.fallbackContext:void 0,w=e,T=K(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,E=K(w.__numberFormatters)?w.__numberFormatters:new Map,D=K(w.__meta)?w.__meta:{};xh++;let ee={version:n,cid:xh,locale:r,fallbackLocale:a,messages:o,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:h,postTranslation:g,processor:_,warnHtmlMessage:v,escapeParameter:y,messageCompiler:b,messageResolver:x,localeFallbacker:S,fallbackContext:C,onWarn:t,__meta:D};return ee.datetimeFormats=s,ee.numberFormats=c,ee.__datetimeFormatters=T,ee.__numberFormatters=E,ee}var Ch=e=>({[e]:H()});function wh(e,t,n,r,i){let{missing:a,onWarn:o}=e;if(a!==null){let r=a(e,n,t,i);return G(r)?r:t}return t}function Th(e,t,n){let r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Eh(e,t){return e!==t&&e.split(`-`)[0]===t.split(`-`)[0]}function Dh(e,t){let n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(Eh(e,t[r]))return!0;return!1}function Oh(e,t,n,r,i,a,o){let{fallbackLocale:s,localeFallbacker:c,onWarn:l}=e,u=c(e,s,n);for(let n=0;n<u.length;n++){let a=u[n],s=(r[a]||{})[t];if(q(s)&&G(a))return a;wh(e,t,a,i,o)}return null}function kh(e,t,n){let r=`${e}__${t}`;return q(n)&&!bd(n)&&(r=`${r}__${JSON.stringify(n)}`),r}function Ah(e,t,n){for(let r in n){let n=`${t}__${r}`;for(let t of e.keys())(t===n||t.startsWith(`${n}__`))&&e.delete(t)}}function jh(e,t,n,r){let[,i,a,o]=e,s=n;return G(i)?t.key=i:q(i)&&Object.keys(i).forEach(e=>{r.includes(e)?s[e]=i[e]:t[e]=i[e]}),G(a)?t.locale=a:q(a)&&(s=a),q(o)&&(s=o),s}var Mh=typeof Intl<`u`;Mh&&Intl.DateTimeFormat,Mh&&Intl.NumberFormat;function Nh(e,...t){let{datetimeFormats:n,unresolving:r,onWarn:i}=e,{__datetimeFormatters:a}=e;if(!G(t[0])&&!vd(t[0])&&!_d(t[0]))return``;let[o,s,c,l]=Fh(...t),u=Dd(c.missingWarn)?c.missingWarn:e.missingWarn,d=Dd(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=!!c.part,p=Um(e,c);if(!G(o)||o===``){let e=new Intl.DateTimeFormat(p.replace(/!/g,``),l);return f?e.formatToParts(s):e.format(s)}let m=Oh(e,o,p,n,u,d,`datetime format`);if(!G(m))return r?-1:o;let h=n[m][o],g=kh(m,o,l),_=a.get(g);return _||(_=new Intl.DateTimeFormat(m,xd({},h,l)),a.set(g,_)),f?_.formatToParts(s):_.format(s)}var Ph=[`localeMatcher`,`weekday`,`era`,`year`,`month`,`day`,`hour`,`minute`,`second`,`timeZoneName`,`formatMatcher`,`hour12`,`timeZone`,`dateStyle`,`timeStyle`,`calendar`,`dayPeriod`,`numberingSystem`,`hourCycle`,`fractionalSecondDigits`];function Fh(...e){let[t]=e,n=H(),r=H(),i;if(G(t)){let e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Hm(Vm.INVALID_ISO_DATE_ARGUMENT);let n=e[3]?e[3].trim().startsWith(`T`)?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();i=new Date(n);try{i.toISOString()}catch{throw Hm(Vm.INVALID_ISO_DATE_ARGUMENT)}}else if(vd(t)){if(isNaN(t.getTime()))throw Hm(Vm.INVALID_DATE_ARGUMENT);i=t}else if(_d(t))i=t;else throw Hm(Vm.INVALID_ARGUMENT);let a=jh(e,n,r,Ph);return[n.key||``,i,n,a]}function Ih(e,t,n){Ah(e.__datetimeFormatters,t,n)}function Lh(e,...t){let{numberFormats:n,unresolving:r,onWarn:i}=e,{__numberFormatters:a}=e;if(!_d(t[0]))return``;let[o,s,c,l]=zh(...t),u=Dd(c.missingWarn)?c.missingWarn:e.missingWarn,d=Dd(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=!!c.part,p=Um(e,c);if(!G(o)||o===``){let e=new Intl.NumberFormat(p.replace(/!/g,``),l);return f?e.formatToParts(s):e.format(s)}let m=Oh(e,o,p,n,u,d,`number format`);if(!G(m))return r?-1:o;let h=n[m][o],g=kh(m,o,l),_=a.get(g);return _||(_=new Intl.NumberFormat(m,xd({},h,l)),a.set(g,_)),f?_.formatToParts(s):_.format(s)}var Rh=[`localeMatcher`,`style`,`currency`,`currencyDisplay`,`currencySign`,`useGrouping`,`minimumIntegerDigits`,`minimumFractionDigits`,`maximumFractionDigits`,`minimumSignificantDigits`,`maximumSignificantDigits`,`compactDisplay`,`notation`,`signDisplay`,`unit`,`unitDisplay`,`roundingMode`,`roundingPriority`,`roundingIncrement`,`trailingZeroDisplay`];function zh(...e){let[t]=e,n=H(),r=H();if(!_d(t))throw Hm(Vm.INVALID_ARGUMENT);let i=t,a=jh(e,n,r,Rh);return[n.key||``,i,n,a]}function Bh(e,t,n){Ah(e.__numberFormatters,t,n)}var Vh=e=>e,Hh=e=>``,Uh=`text`,Wh=e=>e.length===0?``:Md(e),Gh=jd;function Kh(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function qh(e){let t=_d(e.pluralIndex)?e.pluralIndex:-1;return _d(e.named?.count)?e.named.count:_d(e.named?.n)?e.named.n:t}function Jh(e={}){let t=e.locale,n=qh(e),r=G(t)&&W(e.pluralRules?.[t])?e.pluralRules[t]:Kh,i=r===Kh?void 0:Kh,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],c=e.named||H();_d(e.pluralIndex)&&(c.count||=e.pluralIndex,c.n||=e.pluralIndex);let l=e=>c[e];function u(t,n){return(W(e.messages)?e.messages(t,!!n):K(e.messages)?e.messages[t]:!1)||(e.parent?e.parent.message(t):Hh)}let d=t=>e.modifiers?e.modifiers[t]:Vh,f=W(e.processor?.normalize)?e.processor.normalize:Wh,p=W(e.processor?.interpolate)?e.processor.interpolate:Gh,m={list:s,named:l,plural:a,linked:(e,...t)=>{let[n,r]=t,i=`text`,a=``;t.length===1?K(n)?(a=n.modifier||a,i=n.type||i):G(n)&&(a=n||a):t.length===2&&(G(n)&&(a=n||a),G(r)&&(i=r||i));let o=u(e,!0)(m),s=o===``||o===void 0?e:o,c=i===`vnode`&&U(s)&&a?s[0]:s;return a?d(a)(c,i):c},message:u,type:G(e.processor?.type)?e.processor.type:Uh,interpolate:p,normalize:f,values:xd(H(),o,c)};return m}var Yh=()=>``,Xh=e=>W(e);function Zh(e,...t){let{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[c,l]=ng(...t),u=Dd(l.missingWarn)?l.missingWarn:e.missingWarn,d=Dd(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=Dd(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,m=G(l.default)||Dd(l.default)?Dd(l.default)?a?c:()=>c:l.default:n?a?c:()=>c:null,h=n||m!=null&&(G(m)||W(m)),g=Um(e,l);f&&Qh(l);let[_,v,y]=p?[c,g,s[g]||H()]:$h(e,c,g,o,d,u),b=_,x=c;if(!p&&!(G(b)||pm(b)||Xh(b))&&h&&(b=m,x=b),!p&&(!(G(b)||pm(b)||Xh(b))||!G(v)))return i?-1:c;let S=!1,C=Xh(b)?b:eg(e,c,v,b,x,()=>{S=!0});if(S)return b;let w=tg(e,C,Jh(ig(e,v,y,l))),T=r?r(w,c):w;return f&&G(T)&&(T=Yd(T)),T}function Qh(e){U(e.list)?e.list=e.list.map(e=>G(e)?Pd(e):e):K(e.named)&&Object.keys(e.named).forEach(t=>{G(e.named[t])&&(e.named[t]=Pd(e.named[t]))})}function $h(e,t,n,r,i,a){let{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n),d=H(),f,p=null;for(let n=0;n<u.length&&(f=u[n],d=o[f]||H(),(p=c(d,t))===null&&(p=d[t]),!(G(p)||pm(p)||Xh(p)));n++)if(!Dh(f,u)){let n=wh(e,t,f,a,`translate`);n!==t&&(p=n)}return[p,f,d]}function eg(e,t,n,r,i,a){let{messageCompiler:o,warnHtmlMessage:s}=e;if(Xh(r)){let e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(o==null){let e=(()=>r);return e.locale=n,e.key=t,e}let c=o(r,rg(e,n,i,r,s,a));return c.locale=n,c.key=t,c.source=r,c}function tg(e,t,n){return t(n)}function ng(...e){let[t,n,r]=e,i=H();if(!G(t)&&!_d(t)&&!Xh(t)&&!pm(t))throw Hm(Vm.INVALID_ARGUMENT);let a=_d(t)?String(t):(Xh(t),t);return _d(n)?i.plural=n:G(n)?i.default=n:q(n)&&!bd(n)?i.named=n:U(n)&&(i.list=n),_d(r)?i.plural=r:G(r)?i.default=r:q(r)&&xd(i,r),[a,i]}function rg(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:e=>{throw a&&a(e),e},onCacheKey:e=>hd(t,n,e)}}function ig(e,t,n,r){let{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d={locale:t,modifiers:i,pluralRules:a,messages:(r,i)=>{let a=o(n,r);if(a==null&&(u||i)){let[n,,i]=$h(u||e,r,t,s,c,l);a=n??o(i,r)}if(G(a)||pm(a)){let n=!1,i=eg(e,r,t,a,r,()=>{n=!0});return n?Yh:i}return Xh(a)?a:Yh}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),_d(r.plural)&&(d.pluralIndex=r.plural),d}var ag=`11.4.10`,og={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function sg(e,...t){return Np(e,null,void 0)}og.UNEXPECTED_RETURN_TYPE,og.INVALID_ARGUMENT,og.MUST_BE_CALL_SETUP_TOP,og.NOT_INSTALLED,og.UNEXPECTED_ERROR,og.REQUIRED_VALUE,og.INVALID_VALUE,og.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,og.NOT_INSTALLED_WITH_PROVIDE,og.NOT_COMPATIBLE_LEGACY_VUE_I18N,og.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;var cg=md(`__translateVNode`),lg=md(`__datetimeParts`),ug=md(`__numberParts`),dg=md(`__setPluralRules`);md(`__intlifyMeta`);var fg=md(`__injectWithOption`),pg=md(`__dispose`),mg={FALLBACK_TO_ROOT:10,NOT_FOUND_PARENT_SCOPE:11,IGNORE_OBJ_FLATTEN:12,DEPRECATE_LEGACY_MODE:13,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:14,DUPLICATE_USE_I18N_CALLING:15};mg.FALLBACK_TO_ROOT,mg.NOT_FOUND_PARENT_SCOPE,mg.IGNORE_OBJ_FLATTEN,mg.DEPRECATE_LEGACY_MODE,mg.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE,mg.DUPLICATE_USE_I18N_CALLING;var hg=null;{let e=wd().__VUE_INSTANCE_SETTERS__;U(e)&&e.push(e=>{hg=e})}function gg(e){if(!K(e)||pm(e))return e;for(let t in e)if(Ed(e,t)){if(!t.includes(`.`))K(e[t])&&gg(e[t]);else{let n=t.split(`.`),r=n.length-1,i=e,a=!1;for(let e=0;e<r;e++){if(n[e]===`__proto__`)throw Error(`unsafe key: ${n[e]}`);if(n[e]in i||(i[n[e]]=H()),!K(i[n[e]])){a=!0;break}i=i[n[e]]}if(a||(pm(i)?jm.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!pm(i)){let e=i[n[r]];K(e)&&gg(e)}}}return e}function _g(e,t){let{messages:n,__i18n:r,messageResolver:i,flatJson:a}=t,o=q(n)?n:U(r)?H():{[e]:H()};if(U(r)&&r.forEach(e=>{if(`locale`in e&&`resource`in e){let{locale:t,resource:n}=e;t?(o[t]=o[t]||H(),Zd(n,o[t])):Zd(n,o)}else G(e)&&Zd(JSON.parse(e),o)}),i==null&&a)for(let e in o)Ed(o,e)&&gg(o[e]);return o}function vg(e){return e.type}function yg(e,t,n){let r=K(t.messages)?t.messages:H();`__i18nGlobal`in n&&(r=_g(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));let i=Object.keys(r);if(i.length&&i.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),K(t.datetimeFormats)){let n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(K(t.numberFormats)){let n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function bg(e){return S(he,null,e,0)}function xg(){return hg??ee()}var Sg=()=>[],Cg=()=>!1,wg=0;function Tg(e){return((t,n,r,i)=>e(n,r,xg()||void 0,i))}function Eg(e={}){let{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,a=pd?L:He,o=!Dd(e.inheritLocale)||e.inheritLocale,s=a(t&&o?t.locale.value:G(e.locale)?e.locale:lh),c=a(t&&o?t.fallbackLocale.value:G(e.fallbackLocale)||U(e.fallbackLocale)||q(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),l=a(_g(s.value,e)),u=a(q(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),d=a(q(e.numberFormats)?e.numberFormats:{[s.value]:{}}),f=t?t.missingWarn:Dd(e.missingWarn)||yd(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:Dd(e.fallbackWarn)||yd(e.fallbackWarn)?e.fallbackWarn:!0,m=t?t.fallbackRoot:!Dd(e.fallbackRoot)||e.fallbackRoot,h=!!e.fallbackFormat,g=W(e.missing)?e.missing:null,_=W(e.missing)?Tg(e.missing):null,v=W(e.postTranslation)?e.postTranslation:null,y=t?t.warnHtmlMessage:!Dd(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter,x=t?t.modifiers:q(e.modifiers)?e.modifiers:{},S=e.pluralRules||t&&t.pluralRules,C;C=(()=>{r&&yh(null);let t={version:ag,locale:s.value,fallbackLocale:c.value,messages:l.value,modifiers:x,pluralRules:S,missing:_===null?void 0:_,missingWarn:f,fallbackWarn:p,fallbackFormat:h,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:y,escapeParameter:b,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:`vue`}};t.datetimeFormats=u.value,t.numberFormats=d.value,t.__datetimeFormatters=q(C)?C.__datetimeFormatters:void 0,t.__numberFormatters=q(C)?C.__numberFormatters:void 0;let n=Sh(t);return r&&yh(n),n})(),Th(C,s.value,c.value);function w(){return[s.value,c.value,l.value,u.value,d.value]}let T=M({get:()=>s.value,set:e=>{C.locale=e,s.value=e}}),D=M({get:()=>c.value,set:e=>{C.fallbackLocale=e,c.value=e,Th(C,s.value,e)}}),ee=M(()=>l.value),te=M(()=>u.value),O=M(()=>d.value);function k(){return W(v)?v:null}function ne(e){v=e,C.postTranslation=e}function re(){return g}function ie(e){e!==null&&(_=Tg(e)),g=e,C.missing=_}let ae=(e,n,i,a,o,s)=>{w();let c;try{r||(C.fallbackContext=t?bh():void 0),c=e(C)}finally{r||(C.fallbackContext=void 0)}if(i!==`translate exists`&&_d(c)&&c===-1||i===`translate exists`&&!c){let[e,r]=n();return t&&m?a(t):o(e)}if(s(c))return c;throw sg(og.UNEXPECTED_RETURN_TYPE)};function oe(...e){return ae(t=>Reflect.apply(Zh,null,[t,...e]),()=>ng(...e),`translate`,t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>G(e))}function se(...e){let[t,n,r]=e;if(r&&!K(r))throw sg(og.INVALID_ARGUMENT);return oe(t,n,xd({resolvedMessage:!0},r||{}))}function ce(...e){return ae(t=>Reflect.apply(Nh,null,[t,...e]),()=>Fh(...e),`datetime format`,t=>Reflect.apply(t.d,t,[...e]),()=>``,e=>G(e)||U(e))}function le(...e){return ae(t=>Reflect.apply(Lh,null,[t,...e]),()=>zh(...e),`number format`,t=>Reflect.apply(t.n,t,[...e]),()=>``,e=>G(e)||U(e))}function A(e){return e.map(e=>G(e)||_d(e)||Dd(e)?bg(String(e)):e)}let ue={normalize:A,interpolate:e=>e,type:`vnode`};function de(...e){return ae(t=>{let n,r=t;try{r.processor=ue,n=Reflect.apply(Zh,null,[r,...e])}finally{r.processor=null}return n},()=>ng(...e),`translate`,t=>t[cg](...e),e=>[bg(e)],e=>U(e))}function j(...e){return ae(t=>Reflect.apply(Lh,null,[t,...e]),()=>zh(...e),`number format`,t=>t[ug](...e),Sg,e=>G(e)||U(e))}function fe(...e){return ae(t=>Reflect.apply(Nh,null,[t,...e]),()=>Fh(...e),`datetime format`,t=>t[lg](...e),Sg,e=>G(e)||U(e))}function pe(e){S=e,C.pluralRules=S}function me(e,t){return ae(()=>{if(!e)return!1;let n=G(t)?t:s.value,r=G(t)?[n]:qm(C,c.value,n);for(let t=0;t<r.length;t++){let n=_e(r[t]),i=C.messageResolver(n,e);if(i===null&&(i=n[e]),pm(i)||Xh(i)||G(i))return!0}return!1},()=>[e],`translate exists`,n=>Reflect.apply(n.te,n,[e,t]),Cg,e=>Dd(e))}function he(e){let t=null,n=qm(C,c.value,s.value);for(let r=0;r<n.length;r++){let i=l.value[n[r]]||{},a=C.messageResolver(i,e);if(a!=null){t=a;break}}return t}function ge(e){return he(e)??(t&&t.tm(e)||{})}function _e(e){return l.value[e]||{}}function ve(e,t){if(i){let n={[e]:t};for(let e in n)Ed(n,e)&&gg(n[e]);t=n[e]}l.value[e]=t,C.messages=l.value}function ye(e,t){l.value[e]=l.value[e]||{};let n={[e]:t};if(i)for(let e in n)Ed(n,e)&&gg(n[e]);t=n[e],Zd(t,l.value[e]),C.messages=l.value}function be(e){return u.value[e]||{}}function xe(e,t){u.value[e]=t,C.datetimeFormats=u.value,Ih(C,e,t)}function Se(e,t){u.value[e]=xd(u.value[e]||{},t),C.datetimeFormats=u.value,Ih(C,e,t)}function Ce(e){return d.value[e]||{}}function we(e,t){d.value[e]=t,C.numberFormats=d.value,Bh(C,e,t)}function N(e,t){d.value[e]=xd(d.value[e]||{},t),C.numberFormats=d.value,Bh(C,e,t)}wg++,t&&pd&&(E(t.locale,e=>{o&&(s.value=e,C.locale=e,Th(C,s.value,c.value))}),E(t.fallbackLocale,e=>{o&&(c.value=e,C.fallbackLocale=e,Th(C,s.value,c.value))}));let Te={id:wg,locale:T,fallbackLocale:D,get inheritLocale(){return o},set inheritLocale(e){o=e,e&&t&&(s.value=t.locale.value,c.value=t.fallbackLocale.value,Th(C,s.value,c.value))},get availableLocales(){return Object.keys(l.value).sort()},messages:ee,get modifiers(){return x},get pluralRules(){return S||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(e){f=e,C.missingWarn=f},get fallbackWarn(){return p},set fallbackWarn(e){p=e,C.fallbackWarn=p},get fallbackRoot(){return m},set fallbackRoot(e){m=e},get fallbackFormat(){return h},set fallbackFormat(e){h=e,C.fallbackFormat=h},get warnHtmlMessage(){return y},set warnHtmlMessage(e){y=e,C.warnHtmlMessage=e},get escapeParameter(){return b},set escapeParameter(e){b=e,C.escapeParameter=e},t:oe,getLocaleMessage:_e,setLocaleMessage:ve,mergeLocaleMessage:ye,getPostTranslationHandler:k,setPostTranslationHandler:ne,getMissingHandler:re,setMissingHandler:ie,[dg]:pe};return Te.datetimeFormats=te,Te.numberFormats=O,Te.rt=se,Te.te=me,Te.tm=ge,Te.d=ce,Te.n=le,Te.getDateTimeFormat=be,Te.setDateTimeFormat=xe,Te.mergeDateTimeFormat=Se,Te.getNumberFormat=Ce,Te.setNumberFormat=we,Te.mergeNumberFormat=N,Te[fg]=n,Te[cg]=de,Te[lg]=fe,Te[ug]=j,Te}var Dg={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e===`parent`||e===`global`,default:`parent`},i18n:{type:Object}};function Og({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((e,t)=>[...e,...t.type===Ae?t.children:[t]],[]):t.reduce((t,n)=>{let r=e[n];return r&&(t[n]=r()),t},H())}function kg(){return Ae}var Ag=N({name:`i18n-t`,props:xd({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>_d(e)||!isNaN(e)}},Dg),setup(e,t){let{slots:n,attrs:r}=t,i=e.i18n||Vg({useScope:e.scope,__useComponent:!0});return()=>{let a=()=>{let r=Object.keys(n).filter(e=>e[0]!==`_`),a=H();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=G(e.plural)?+e.plural:e.plural);let o=Og(t,r);return i[cg](e.keypath,o,a)},o=xd(H(),r),s=G(e.tag)||K(e.tag)?e.tag:kg();return K(s)?b(s,o,{default:a}):b(s,o,a())}}});function jg(e){return U(e)&&!G(e[0])}function Mg(e,t,n,r){let{slots:i,attrs:a}=t;return()=>{let t=()=>{let t={part:!0},a=H();e.locale&&(t.locale=e.locale),G(e.format)?t.key=e.format:K(e.format)&&(G(e.format.key)&&(t.key=e.format.key),a=Object.keys(e.format).reduce((t,r)=>n.includes(r)?xd(H(),t,{[r]:e.format[r]}):t,H()));let o=r(e.value,t,a),s=[t.key];return U(o)?s=o.map((e,t)=>{let n=i[e.type],r=n?n({[e.type]:e.value,index:t,parts:o}):[e.value];return jg(r)&&(r[0].key=`${e.type}-${t}`),r}):G(o)&&(s=[o]),s},o=xd(H(),a),s=G(e.tag)||K(e.tag)?e.tag:kg();return K(s)?b(s,o,{default:t}):b(s,o,t())}}var Ng=N({name:`i18n-n`,props:xd({value:{type:Number,required:!0},format:{type:[String,Object]}},Dg),setup(e,t){let n=e.i18n||Vg({useScope:e.scope,__useComponent:!0});return Mg(e,t,Rh,(...e)=>n[ug](...e))}});function Pg(e,t){let n=e;if(e.mode===`composition`)return n.__getInstance(t)||e.global;{let r=n.__getInstance(t);return r==null?e.global.__composer:r.__composer}}function Fg(e){let t=t=>{let{instance:n,value:r}=t;if(!n||!n.$)throw sg(og.UNEXPECTED_ERROR);let i=Pg(e,n.$),a=Ig(r);return[Reflect.apply(i.t,i,[...Lg(a)]),i]};return{created:(e,n)=>{let[r,i]=t(n);pd&&(e.__i18nWatcher=E(i.locale,()=>{n.instance&&n.instance.$forceUpdate()})),e.__composer=i,e.textContent=r},unmounted:e=>{pd&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){let n=e.__composer,r=Ig(t);e.textContent=Reflect.apply(n.t,n,[...Lg(r)])}},getSSRProps:e=>{let[n]=t(e);return{textContent:n}}}}function Ig(e){if(G(e))return{path:e};if(q(e)){if(!(`path`in e))throw sg(og.REQUIRED_VALUE,`path`);return e}throw sg(og.INVALID_VALUE)}function Lg(e){let{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return G(n)&&(o.locale=n),_d(i)&&(o.plural=i),_d(a)&&(o.plural=a),[t,s,o]}function Rg(e,t,...n){let r=q(n[0])?n[0]:{};(!Dd(r.globalInstall)||r.globalInstall)&&([Ag.name,`I18nT`].forEach(t=>e.component(t,Ag)),[Ng.name,`I18nN`].forEach(t=>e.component(t,Ng)),[Qg.name,`I18nD`].forEach(t=>e.component(t,Qg))),e.directive(`t`,Fg(t))}var zg=md(`global-vue-i18n`);function Bg(e={}){let t=!Dd(e.globalInjection)||e.globalInjection,n=new Map,[r,i]=Hg(e,!1),a=md(``);function o(e){return n.get(e)||null}function s(e,t){n.set(e,t)}function c(e){n.delete(e)}let l={get mode(){return`composition`},async install(e,...n){if(e.__VUE_I18N_SYMBOL__=a,e.provide(e.__VUE_I18N_SYMBOL__,l),q(n[0])){let e=n[0];l.__composerExtend=e.__composerExtend,l.__vueI18nExtend=e.__vueI18nExtend}let r=null;t&&(r=Zg(e,l.global)),Rg(e,l,...n);let i=e.unmount;e.unmount=()=>{r&&r(),l.dispose(),i()}},get global(){return i},dispose(){r.stop()},__instances:n,__getInstance:o,__setInstance:s,__deleteInstance:c};return l}function Vg(e={}){let t=xg();if(t==null)throw sg(og.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw sg(og.NOT_INSTALLED);let n=Ug(t),r=Gg(n),i=vg(t),a=Wg(e,i);if(a===`global`)return yg(r,e,i),r;if(a===`parent`){let i=Kg(n,t,e.__useComponent);return i??=r,i}if(a===`isolated`){if(n.mode!==`composition`)throw sg(og.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);let i=n,a=xd({},e);a.__root=Kg(n,t)||r;let o=Eg(a);return i.__composerExtend&&(o[pg]=i.__composerExtend(o)),de()&&Me(()=>{let e=o[pg];e&&(e(),delete o[pg])}),o}let o=n,s=o.__getInstance(t);if(s==null){let n=xd({},e);`__i18n`in i&&(n.__i18n=i.__i18n),r&&(n.__root=r),s=Eg(n),o.__composerExtend&&(s[pg]=o.__composerExtend(s)),Jg(o,t,s),o.__setInstance(t,s)}return s}function Hg(e,t){let n=Ce(),r=n.run(()=>Eg(e));if(r==null)throw sg(og.UNEXPECTED_ERROR);return[n,r]}function Ug(e){let t=D(e.isCE?zg:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw sg(e.isCE?og.NOT_INSTALLED_WITH_PROVIDE:og.UNEXPECTED_ERROR);return t}function Wg(e,t){return bd(e)?`__i18n`in t?`local`:`global`:e.useScope?e.useScope:`local`}function Gg(e){return e.mode===`composition`?e.global:e.global.__composer}function Kg(e,t,n=!1){let r=null,i=t.root,a=qg(t,n);for(;a!=null;){let t=e;if(e.mode===`composition`&&(r=t.__getInstance(a)),r!=null||i===a)break;a=a.parent}return r}function qg(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Jg(e,t,n){me(()=>{},t),ye(()=>{let r=n;e.__deleteInstance(t);let i=r[pg];i&&(i(),delete r[pg])},t)}var Yg=[`locale`,`fallbackLocale`,`availableLocales`],Xg=[`t`,`rt`,`d`,`n`,`tm`,`te`];function Zg(e,t){let n=Object.create(null);
8return Yg.forEach(e=>{let r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw sg(og.UNEXPECTED_ERROR);let i=Re(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,i)}),e.config.globalProperties.$i18n=n,Xg.forEach(n=>{let r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw sg(og.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}),()=>{delete e.config.globalProperties.$i18n,Xg.forEach(t=>{delete e.config.globalProperties[`$${t}`]})}}var Qg=N({name:`i18n-d`,props:xd({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Dg),setup(e,t){let n=e.i18n||Vg({useScope:e.scope,__useComponent:!0});return Mg(e,t,Ph,(...e)=>n[lg](...e))}});ph(Bm),hh(oh),_h(qm);function $g(e,{extendComposer:t,extendComposerInstance:n}){let r=Ce(),i=e.install.bind(e);e.install=(a,...o)=>{let s=xd({},o[0]);s.__composerExtend=t=>(n(t,Xf(e)),()=>{}),e.mode===`legacy`&&(s.__vueI18nExtend=e=>(n(e,Xf(e)),()=>{})),Reflect.apply(i,e,[a,s]);let c=Xf(e);if(r.run(()=>{t(c),e.mode===`legacy`&&`__composer`in e.global&&n(e.global,Xf(e.global))}),e.mode===`composition`&&a.config.globalProperties.$i18n!=null&&n(a.config.globalProperties.$i18n,c),a.unmount){let e=a.unmount.bind(a);a.unmount=()=>{r.stop(),e()}}}}function e_(e,t=e.getCurrentLanguage(),n=e.getCurrentDirection()){let r={htmlAttrs:{},link:[],meta:[]};if(e.dir&&(r.htmlAttrs.dir=n),e.lang&&t&&(r.htmlAttrs.lang=t),e.seo){let t=e.strictCanonicals?e.getRouteWithoutQuery():void 0,n=n_(e,t),i=i_(e,t);r.link=r.link.concat(n,a_(e,i)),r.meta=r.meta.concat(s_(e,i),c_(e),u_(e,l_(e,n)))}return r}function t_(e){let t=new Map;for(let n of e){if(!n.language){console.warn("Locale `language` ISO code is required to generate alternate link");continue}let[e,r]=n.language.split(`-`);e&&r&&(n.isCatchallLocale||!t.has(e))&&t.set(e,n),t.set(n.language,n)}return t}function n_(e,t=e.strictCanonicals?e.getRouteWithoutQuery():void 0){if(!e.hreflangLinks)return[];let n=[],r=t_(e.locales),i=new Map;for(let[a,o]of r.entries()){let r=i.get(o.code)??r_(o.code,e,t);if(!r)continue;i.set(o.code,r);let s=e.strictSeo?{rel:`alternate`,href:r,hreflang:a}:{[e.key]:`i18n-alt-${a}`,rel:`alternate`,href:r,hreflang:a};n.push(s),e.defaultLocale&&e.defaultLocale===o.code&&n[0].hreflang!==`x-default`&&n.unshift(e.strictSeo?{rel:`alternate`,href:r,hreflang:`x-default`}:{[e.key]:`i18n-xd`,rel:`alternate`,href:r,hreflang:`x-default`})}return n}function r_(e,t,n=t.strictCanonicals?t.getRouteWithoutQuery():void 0){let r=t.getLocalizedRoute(e,n);if(r)return cn(pn(r,t.baseUrl),t.strictCanonicals?o_(t):{})}function i_(e,t=e.strictCanonicals?e.getRouteWithoutQuery():void 0){let n=e.getLocalizedRoute(e.currentLocale,t);return n?cn(pn(n,e.baseUrl),o_(e)):``}function a_(e,t=i_(e)){return t?[e.strictSeo?{rel:`canonical`,href:t}:{[e.key]:`i18n-can`,rel:`canonical`,href:t}]:[]}function o_(e,t=e.getCurrentRoute()){if(!e.canonicalQueries.length)return{};let n=e.getLocaleRoute(Object.assign({},t,{path:void 0,name:e.getRouteBaseName(t)}))?.query??{},r={};for(let t of e.canonicalQueries.filter(e=>e in n)){r[t]??=[];for(let e of f_(n[t]))r[t].push(e||``)}return r}function s_(e,t=i_(e)){return t?[e.strictSeo?{property:`og:url`,content:t}:{[e.key]:`i18n-og-url`,property:`og:url`,content:t}]:[]}function c_(e,t=e.getCurrentLanguage()){return t?[e.strictSeo?{property:`og:locale`,content:d_(t)}:{[e.key]:`i18n-og`,property:`og:locale`,content:d_(t)}]:[]}function l_(e,t){let n=e.locales.map(e=>e.language||e.code);if(!e.strictSeo)return n;let r=new Set(t.map(e=>e.hreflang));return n.filter(e=>r.has(e))}function u_(e,t,n=e.getCurrentLanguage()){return t.filter(e=>e&&e!==n).map(t=>e.strictSeo?{property:`og:locale:alternate`,content:d_(t)}:{[e.key]:`i18n-og-alt-${t}`,property:`og:locale:alternate`,content:d_(t)})}function d_(e=``){return e.replace(/-/g,`_`)}function f_(e){return Array.isArray(e)?e:[e]}function p_(e,t,n=e.getLocale(),r=e.getLocales(),i=e.routingOptions.domains?e.getBaseUrl(n):e.getBaseUrl()){let a=r.find(e=>e.code===n)||{code:n},o=[...new Set(typeof t.seo==`object`&&t.seo?.canonicalQueries||[])],s={...e,afterSwitchLocalePath:e.getAlternatePath};
8if(!i&&!e.routingOptions.domains){if(e.strictSeo)throw Error("I18n `baseUrl` is required to generate valid SEO tag links.");console.warn("I18n `baseUrl` is required to generate valid SEO tag links.")}return{...t,key:e.strictSeo?`key`:`id`,strictSeo:e.strictSeo,locales:r,currentLocale:n,baseUrl:i,canonicalQueries:o,hreflangLinks:e.routingOptions.hreflangLinks,defaultLocale:e.routingOptions.defaultLocale,strictCanonicals:e.strictSeo||e.routingOptions.strictCanonicals,getRouteBaseName:e.getRouteBaseName,getCurrentRoute:()=>e.router.currentRoute.value,getCurrentLanguage:()=>a.language,getCurrentDirection:()=>a.dir||`ltr`,getLocaleRoute:t=>dp(e,t),getLocalizedRoute:(e,t)=>mp(s,e,t),getRouteWithoutQuery:()=>{try{return xd({},e.router.resolve({query:{}}),{meta:e.router.currentRoute.value.meta})}catch{return}}}}function m_(e,{dir:t=!0,lang:n=!0,seo:r=!0}){return e_(p_(e,{dir:t,lang:n,seo:r}))}function h_(e=d()){let t=Kf(e);return e=>{if(e!=null)return t.getRouteBaseName(e)||void 0}}function g_(e=d()){let t=Kf(e);return(e,n)=>up(t,e,n)}function __(e=d()){let t=Kf(e);return(e,n)=>dp(t,e,n)}function v_(e=d()){let t=Kf(e);return e=>mp(t,e)}var y_=async e=>{let t=await tf(dd);t.locale=e||t.locale||`en-US`,t.defaultLocale=e,t.fallbackLocale??=!1,t.messages??={};for(let e of ld)t.messages[e]??={};return t},b_=p({name:`i18n:plugin`,parallel:!1,async setup(e){let t,n;Object.defineProperty(e.versions,"nuxtI18n",{get:()=>`10.6.0`});let r=d(e._id),i=Zf(r),a=r.ssrContext?.event?.context?.nuxtI18n?.vueI18nOptions,s=Vf(hu({xForwardedHost:!0}).host,i.defaultLocale),c=a||([t,n]=o(()=>y_(s)),t=await t,n(),t),l=np();l.value??=If(c.fallbackLocale),ld.filter(sp).map(e=>`/_i18n/${{ja:`650dc72b`,en:`650dc72b`}[e]}/${e}/messages.json`);let u=Bg(c),f=Tp(void 0,Qf(r),r),p=cp(r,u,c.defaultLocale,!!c.flatJson);r._nuxtI18n=p,$g(u,{extendComposer(e){e.locales=M(()=>i.locales.map(e=>Ff(e,i.domainLocales))),e.localeCodes=M(()=>ld);let t=L(p.getBaseUrl());e.baseUrl=M(()=>t.value),E(e.locale,()=>t.value=p.getBaseUrl()),e.strategy=`prefix_except_default`,e.localeProperties=M(()=>Ff(fd.find(t=>t.code===e.locale.value)||{code:e.locale.value,domains:[],defaultForDomains:[]},i.domainLocales)),e.setLocale=async e=>{await Dp(r,e),await r.runWithContext(()=>kp(r,r.$router.currentRoute.value,e))},e.loadLocaleMessages=p.loadMessages,e.differentDomains=!1,e.defaultLocale=c.defaultLocale,e.getBrowserLocale=()=>Uf(f.navigator()),e.getLocaleCookie=()=>Uf(f.cookie()),e.setLocaleCookie=p.setCookieLocale,e.finalizePendingLocaleChange=async()=>{u.__pendingLocale&&await u.__resolvePendingLocalePromise?.()},e.waitForPendingLocaleChange=async()=>{await u?.__pendingLocalePromise}},extendComposerInstance(e,t){let n=[[`locales`,()=>t.locales],[`localeCodes`,()=>t.localeCodes],[`baseUrl`,()=>t.baseUrl],[`strategy`,()=>`prefix_except_default`],[`localeProperties`,()=>t.localeProperties],[`setLocale`,()=>e=>Reflect.apply(t.setLocale,t,[e])],[`loadLocaleMessages`,()=>e=>Reflect.apply(t.loadLocaleMessages,t,[e])],[`differentDomains`,()=>!1],[`defaultLocale`,()=>t.defaultLocale],[`getBrowserLocale`,()=>()=>Reflect.apply(t.getBrowserLocale,t,[])],[`getLocaleCookie`,()=>()=>Reflect.apply(t.getLocaleCookie,t,[])],[`setLocaleCookie`,()=>e=>Reflect.apply(t.setLocaleCookie,t,[e])],[`finalizePendingLocaleChange`,()=>()=>Reflect.apply(t.finalizePendingLocaleChange,t,[])],[`waitForPendingLocaleChange`,()=>()=>Reflect.apply(t.waitForPendingLocaleChange,t,[])]];for(let[t,r]of n)Object.defineProperty(e,t,{get:r})}}),r.vueApp.use(u),Object.defineProperty(r,"$i18n",{get:()=>Yf(u)}),r.provide(`localeHead`,e=>m_(r._nuxtI18n.composableCtx,e)),r.provide(`localePath`,g_(r)),r.provide(`localeRoute`,__(r)),r.provide(`routeBaseName`,h_(r)),r.provide(`getRouteBaseName`,h_(r)),r.provide(`switchLocalePath`,v_(r))}},1),x_=`nuxt-i18n-slp`,S_=new RegExp([`<!--${x_}-\\[(\\w+)\\]-->`,`.+?`,`<!--/${x_}-->`].join(``),`g`),C_=p({name:`i18n:plugin:switch-locale-path-ssr`,dependsOn:[`i18n:plugin`],setup(e){let t=d(e._id),n=v_(t);t.hook(`app:rendered`,e=>{e.renderResult?.html!=null&&(e.renderResult.html=e.renderResult.html.replaceAll(S_,(e,t)=>{let r=tp(n(t??``));return e.replace(/href="([^"]+)"/,()=>`href="${r||`#`}" `)}))})}}),w_=p({name:`i18n:plugin:preload`,dependsOn:[`i18n:plugin`],async setup(e){}},1);function T_(...e){window.dataLayer?.push(arguments)}var E_=new Set;function D_({tags:e}){window.dataLayer=window.dataLayer||[];for(let t of e)for(let e of t.initCommands??[])T_(...e);T_(`js`,new Date);for(let t of e)T_(`config`,t.id,t.config??{}),E_.add(t.id)}
8function O_(e){let t=e.tags.filter(Boolean).map(e=>typeof e==`string`?{id:e}:e);if(e.id){let{id:n,config:r,initCommands:i}=e;t.unshift({id:n,config:r,initCommands:i})}let n=new Map;for(let e of t)n.has(e.id)||n.set(e.id,e);return[...n.values()]}var k_=p({parallel:!0,setup(){let e=m().public.gtag,t=O_(e);if(!t.length||(D_({tags:t}),e.initMode===`manual`))return;let n=e.loadingStrategy===`async`?`async`:`defer`;Va({link:[{rel:`preload`,as:`script`,href:cn(e.url,{id:t[0]?.id})}],script:[{src:cn(e.url,{id:t[0]?.id}),[n]:!0,"data-gtag":``}]})}}),A_=p(()=>{let e=m();return{provide:{firebaseApp:hr(e.public.vuefire.config)}}});function j_(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}var M_=j_,N_=new En(`auth`,`Firebase`,j_()),P_=new gr(`@firebase/auth`);function F_(e,...t){P_.logLevel<=Tn.WARN&&P_.warn(`Auth (${ar}): ${e}`,...t)}function I_(e,...t){P_.logLevel<=Tn.ERROR&&P_.error(`Auth (${ar}): ${e}`,...t)}function L_(e,...t){throw V_(e,...t)}function R_(e,...t){return V_(e,...t)}function z_(e,t,n){let r={...M_(),[t]:n};return new En(`auth`,`Firebase`,r).create(t,{appName:e.name})}function B_(e){return z_(e,`operation-not-supported-in-this-environment`,`Operations that alter the current user are not supported in conjunction with FirebaseServerApp`)}function V_(e,...t){if(typeof e!=`string`){let n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return N_.create(e,...t)}function Y(e,t,...n){if(!e)throw V_(t,...n)}function H_(e){let t=`INTERNAL ASSERTION FAILED: `+e;throw I_(t),Error(t)}function U_(e,t){e||H_(t)}function W_(){return G_()===`http:`||G_()===`https:`}function G_(){return typeof self<`u`&&self.location?.protocol||null}function K_(){return typeof navigator<`u`&&navigator&&`onLine`in navigator&&typeof navigator.onLine==`boolean`&&(W_()||Gn()||`connection`in navigator)?navigator.onLine:!0}function q_(){if(typeof navigator>`u`)return null;let e=navigator;return e.languages&&e.languages[0]||e.language||null}var J_=class{constructor(e,t){this.shortDelay=e,this.longDelay=t,U_(t>e,`Short delay should be less than long delay!`),this.isMobile=fr()||ur()}get(){return K_()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}};function Y_(e,t){U_(e.emulator,`Emulator should always be set here`);let{url:n}=e.emulator;return t?`${n}${t.startsWith(`/`)?t.slice(1):t}`:n}var X_=class{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<`u`&&`fetch`in self)return self.fetch;if(typeof globalThis<`u`&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<`u`)return fetch;H_(`Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill`)}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<`u`&&`Headers`in self)return self.Headers;if(typeof globalThis<`u`&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<`u`)return Headers;H_(`Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill`)}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<`u`&&`Response`in self)return self.Response;if(typeof globalThis<`u`&&globalThis.Response)return globalThis.Response;if(typeof Response<`u`)return Response;H_(`Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill`)}},Z_={CREDENTIAL_MISMATCH:`custom-token-mismatch`,MISSING_CUSTOM_TOKEN:`internal-error`,INVALID_IDENTIFIER:`invalid-email`,MISSING_CONTINUE_URI:`internal-error`,INVALID_PASSWORD:`wrong-password`,MISSING_PASSWORD:`missing-password`,INVALID_LOGIN_CREDENTIALS:`invalid-credential`,EMAIL_EXISTS:`email-already-in-use`,PASSWORD_LOGIN_DISABLED:`operation-not-allowed`,INVALID_IDP_RESPONSE:`invalid-credential`,INVALID_PENDING_TOKEN:`invali
8d-credential`,FEDERATED_USER_ID_ALREADY_LINKED:`credential-already-in-use`,MISSING_REQ_TYPE:`internal-error`,EMAIL_NOT_FOUND:`user-not-found`,RESET_PASSWORD_EXCEED_LIMIT:`too-many-requests`,EXPIRED_OOB_CODE:`expired-action-code`,INVALID_OOB_CODE:`invalid-action-code`,MISSING_OOB_CODE:`internal-error`,CREDENTIAL_TOO_OLD_LOGIN_AGAIN:`requires-recent-login`,INVALID_ID_TOKEN:`invalid-user-token`,TOKEN_EXPIRED:`user-token-expired`,USER_NOT_FOUND:`user-token-expired`,TOO_MANY_ATTEMPTS_TRY_LATER:`too-many-requests`,PASSWORD_DOES_NOT_MEET_REQUIREMENTS:`password-does-not-meet-requirements`,INVALID_CODE:`invalid-verification-code`,INVALID_SESSION_INFO:`invalid-verification-id`,INVALID_TEMPORARY_PROOF:`invalid-credential`,MISSING_SESSION_INFO:`missing-verification-id`,SESSION_EXPIRED:`code-expired`,MISSING_ANDROID_PACKAGE_NAME:`missing-android-pkg-name`,UNAUTHORIZED_DOMAIN:`unauthorized-continue-uri`,INVALID_OAUTH_CLIENT_ID:`invalid-oauth-client-id`,ADMIN_ONLY_OPERATION:`admin-restricted-operation`,INVALID_MFA_PENDING_CREDENTIAL:`invalid-multi-factor-session`,MFA_ENROLLMENT_NOT_FOUND:`multi-factor-info-not-found`,MISSING_MFA_ENROLLMENT_ID:`missing-multi-factor-info`,MISSING_MFA_PENDING_CREDENTIAL:`missing-multi-factor-session`,SECOND_FACTOR_EXISTS:`second-factor-already-in-use`,SECOND_FACTOR_LIMIT_EXCEEDED:`maximum-second-factor-count-exceeded`,BLOCKING_FUNCTION_ERROR_RESPONSE:`internal-error`,RECAPTCHA_NOT_ENABLED:`recaptcha-not-enabled`,MISSING_RECAPTCHA_TOKEN:`missing-recaptcha-token`,INVALID_RECAPTCHA_TOKEN:`invalid-recaptcha-token`,INVALID_RECAPTCHA_ACTION:`invalid-recaptcha-action`,MISSING_CLIENT_TYPE:`missing-client-type`,MISSING_RECAPTCHA_VERSION:`missing-recaptcha-version`,INVALID_RECAPTCHA_VERSION:`invali
8d-recaptcha-version`,INVALID_REQ_TYPE:`invalid-req-type`},Q_=[`/v1/accounts:signInWithCustomToken`,`/v1/accounts:signInWithEmailLink`,`/v1/accounts:signInWithIdp`,`/v1/accounts:signInWithPassword`,`/v1/accounts:signInWithPhoneNumber`,`/v1/token`],$_=new J_(3e4,6e4);function ev(e,t){return e.tenantId&&!t.tenantId?{...t,tenantId:e.tenantId}:t}async function tv(e,t,n,r,i={}){return nv(e,i,async()=>{let i={},a={};r&&(t===`GET`?a=r:i={body:JSON.stringify(r)});let o=mr({...a,key:e.config.apiKey}).slice(1),s=await e._getAdditionalHeaders();s[`Content-Type`]=`application/json`,e.languageCode&&(s[`X-Firebase-Locale`]=e.languageCode);let c={method:t,headers:s,...i};return Kn()||(c.referrerPolicy=`strict-origin-when-cross-origin`),e.emulatorConfig&&Wn(e.emulatorConfig.host)&&(c.credentials=`include`),X_.fetch()(await iv(e,e.config.apiHost,n,o),c)})}async function nv(e,t,n){e._canInitEmulator=!1;let r={...Z_,...t};try{let t=new av(e),i=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();let a=await i.json();if(`needConfirmation`in a)throw ov(e,`account-exists-with-different-credential`,a);if(i.ok&&!(`errorMessage`in a))return a;{let[t,n]=(i.ok?a.errorMessage:a.error.message).split(` : `);if(t===`FEDERATED_USER_ID_ALREADY_LINKED`)throw ov(e,`credential-already-in-use`,a);if(t===`EMAIL_EXISTS`)throw ov(e,`email-already-in-use`,a);if(t===`USER_DISABLED`)throw ov(e,`user-disabled`,a);let o=r[t]||t.toLowerCase().replace(/[_\s]+/g,`-`);if(n)throw z_(e,o,n);L_(e,o)}}catch(t){if(t instanceof In)throw t;L_(e,`network-request-failed`,{message:String(t)})}}async function rv(e,t,n,r,i={}){let a=await tv(e,t,n,r,i);return`mfaPendingCredential`in a&&L_(e,`multi-factor-auth-required`,{_serverResponse:a}),a}async function iv(e,t,n,r){let i=`${t}${n}?${r}`,a=e,o=a.config.emulator?Y_(e.config,i):`${e.config.apiScheme}://${i}`;return Q_.includes(n)&&(await a._persistenceManagerAvailable,a._getPersistenceType()===`COOKIE`)?a._getPersistence()._getFinalTarget(o).toString():o}var av=class{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((e,t)=>{this.timer=setTimeout(()=>t(R_(this.auth,`network-request-failed`)),$_.get())})}};function ov(e,t,n){let r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);let i=R_(e,t,r);return i.customData._tokenResponse=n,i}async function sv(e,t){return tv(e,`POST`,`/v1/accounts:delete`,t)}async function cv(e,t){return tv(e,`POST`,`/v1/accounts:lookup`,t)}function lv(e){if(e)try{let t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch{}}async function uv(e,t=!1){let n=Mn(e),r=await n.getIdToken(t),i=fv(r);Y(i&&i.exp&&i.auth_time&&i.iat,n.auth,`internal-error`);let a=typeof i.firebase==`object`?i.firebase:void 0,o=a?.sign_in_provider;return{claims:i,token:r,authTime:lv(dv(i.auth_time)),issuedAtTime:lv(dv(i.iat)),expirationTime:lv(dv(i.exp)),signInProvider:o||null,signInSecondFactor:a?.sign_in_second_factor||null}}function dv(e){return Number(e)*1e3}function fv(e){let[t,n,r]=e.split(`.`);if(t===void 0||n===void 0||r===void 0)return I_(`JWT malformed, contained fewer than 3 sections`),null;try{let e=Fn(n);return e?JSON.parse(e):(I_(`Failed to decode base64 JWT payload`),null)}catch(e){return I_(`Caught error parsing JWT payload as JSON`,e?.toString()),null}}function pv(e){let t=fv(e);return Y(t,`internal-error`),Y(t.exp!==void 0,`internal-error`),Y(t.iat!==void 0,`internal-error`),Number(t.exp)-Number(t.iat)}async function mv(e,t,n=!1){if(n)return t;try{return await t}catch(t){throw t instanceof In&&hv(t)&&e.auth.currentUser===e&&await e.auth.signOut(),t}}function hv({code:e}){return e===`auth/user-disabled`||e===`auth/user-token-expired`}var gv=class{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){if(e){let e=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),e}{this.errorBackoff=3e4;let e=(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5;return Math.max(0,e)}}schedule(e=!1){if(!this.isRunning)return;let t=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){e?.code===`auth/network-request-failed`&&this.schedule(!0);return}this.schedule()}},_v=class{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=lv(this.lastLoginAt),this.creationTime=lv(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}};async function vv(e){let t=e.auth,n=await mv(e,cv(t,{idToken:await e.getIdToken()}));Y(n?.users.length,t,`internal-error`);let r=n.users[0];e._notifyReloadListener(r);let i=r.providerUserInfo?.length?xv(r.providerUserInfo):[],a=bv(e.providerData,i),o=e.isAnonymous,s=!(e.email&&r.passwordHash)&&!a?.length,c=o?s:!1,l={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:a,metadata:new _v(r.createdAt,r.lastLoginAt),isAnonymous:c};Object.assign(e,l)}async function yv(e){let t=Mn(e);await vv(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function bv(e,t){return[...e.filter(e=>!t.some(t=>t.providerId===e.providerId)),...t]}function xv(e){return e.map(({providerId:e,...t})=>({providerId:e,uid:t.rawId||``,displayName:t.displayName||null,email:t.email||null,phoneNumber:t.phoneNumber||null,photoURL:t.photoUrl||null}))}async function Sv(e,t){let n=await nv(e,{},async()=>{let n=mr({grant_type:`refresh_token`,refresh_token:t}).slice(1),{tokenApiHost:r,apiKey:i}=e.config,a=await iv(e,r,`/v1/token`,`key=${i}`),o=await e._getAdditionalHeaders();o[`Content-Type`]=`application/x-www-form-urlencoded`;let s={method:`POST`,headers:o,body:n};return e.emulatorConfig&&Wn(e.emulatorConfig.host)&&(s.credentials=`include`),X_.fetch()(a,s)});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function Cv(e,t){return tv(e,`POST`,`/v2/accounts:revokeToken`,ev(e,t))}var wv=class e{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){Y(e.idToken,`internal-error`),Y(e.idToken!==void 0,`internal-error`),Y(e.refreshToken!==void 0,`internal-error`);
8let t=`expiresIn`in e&&e.expiresIn!==void 0?Number(e.expiresIn):pv(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){Y(e.length!==0,`internal-error`);let t=pv(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e,t=!1){return!t&&this.accessToken&&!this.isExpired?this.accessToken:(Y(this.refreshToken,e,`user-token-expired`),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){let{accessToken:n,refreshToken:r,expiresIn:i}=await Sv(e,t);this.updateTokensAndExpiration(n,r,Number(i))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+n*1e3}static fromJSON(t,n){let{refreshToken:r,accessToken:i,expirationTime:a}=n,o=new e;return r&&(Y(typeof r==`string`,`internal-error`,{appName:t}),o.refreshToken=r),i&&(Y(typeof i==`string`,`internal-error`,{appName:t}),o.accessToken=i),a&&(Y(typeof a==`number`,`internal-error`,{appName:t}),o.expirationTime=a),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new e,this.toJSON())}_performRefresh(){return H_(`not implemented`)}};function Tv(e,t){Y(typeof e==`string`||e===void 0,`internal-error`,{appName:t})}var Ev=class e{constructor({uid:e,auth:t,stsTokenManager:n,...r}){this.providerId=`firebase`,this.proactiveRefresh=new gv(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=e,this.auth=t,this.stsTokenManager=n,this.accessToken=n.accessToken,this.displayName=r.displayName||null,this.email=r.email||null,this.emailVerified=r.emailVerified||!1,this.phoneNumber=r.phoneNumber||null,this.photoURL=r.photoURL||null,this.isAnonymous=r.isAnonymous||!1,this.tenantId=r.tenantId||null,this.providerData=r.providerData?[...r.providerData]:[],this.metadata=new _v(r.createdAt||void 0,r.lastLoginAt||void 0)}async getIdToken(e){let t=await mv(this,this.stsTokenManager.getToken(this.auth,e));return Y(t,this.auth,`internal-error`),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return uv(this,e)}reload(){return yv(this)}_assign(e){this!==e&&(Y(this.uid===e.uid,this.auth,`internal-error`),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(e=>({...e})),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(t){let n=new e({...this,auth:t,stsTokenManager:this.stsTokenManager._clone()});return n.metadata._copy(this.metadata),n}_onReload(e){Y(!this.reloadListener,this.auth,`internal-error`),this.reloadListener=e,this.reloadUserInfo&&=(this._notifyReloadListener(this.reloadUserInfo),null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,t=!1){let n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await vv(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(pr(this.auth.app))return Promise.reject(B_(this.auth));let e=await this.getIdToken();return await mv(this,sv(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return{uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>({...e})),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId,...this.metadata.toJSON(),apiKey:this.auth.config.apiKey,appName:this.auth.name}}get refreshToken(){return this.stsTokenManager.refreshToken||``}static _fromJSON(t,n){let r=n.displayName??void 0,i=n.email??void 0,a=n.phoneNumber??void 0,o=n.photoURL??void 0,s=n.tenantId??void 0,c=n._redirectEventId??void 0,l=n.createdAt??void 0,u=n.lastLoginAt??void 0,{uid:d,emailVerified:f,isAnonymous:p,providerData:m,stsTokenManager:h}=n;Y(d&&h,t,`internal-error`);let g=wv.fromJSON(this.name,h);Y(typeof d==`string`,t,`internal-error`),Tv(r,t.name),Tv(i,t.name),Y(typeof f==`boolean`,t,`internal-error`),Y(typeof p==`boolean`,t,`internal-error`),Tv(a,t.name),Tv(
8o,t.name),Tv(s,t.name),Tv(c,t.name),Tv(l,t.name),Tv(u,t.name);let _=new e({uid:d,auth:t,email:i,emailVerified:f,displayName:r,isAnonymous:p,photoURL:o,phoneNumber:a,tenantId:s,stsTokenManager:g,createdAt:l,lastLoginAt:u});return m&&Array.isArray(m)&&(_.providerData=m.map(e=>({...e}))),c&&(_._redirectEventId=c),_}static async _fromIdTokenResponse(t,n,r=!1){let i=new wv;i.updateFromServerResponse(n);let a=new e({uid:n.localId,auth:t,stsTokenManager:i,isAnonymous:r});return await vv(a),a}static async _fromGetAccountInfoResponse(t,n,r){let i=n.users[0];Y(i.localId!==void 0,`internal-error`);let a=i.providerUserInfo===void 0?[]:xv(i.providerUserInfo),o=!(i.email&&i.passwordHash)&&!a?.length,s=new wv;s.updateFromIdToken(r);let c=new e({uid:i.localId,auth:t,stsTokenManager:s,isAnonymous:o}),l={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:a,metadata:new _v(i.createdAt,i.lastLoginAt),isAnonymous:!(i.email&&i.passwordHash)&&!a?.length};return Object.assign(c,l),c}},Dv=new Map;function Ov(e){U_(e instanceof Function,`Expected a class definition`);let t=Dv.get(e);return t?(U_(t instanceof e,`Instance stored in cache mismatched with class`),t):(t=new e,Dv.set(e,t),t)}var kv=class{constructor(){this.type=`NONE`,this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){let t=this.storage[e];return t===void 0?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}};kv.type=`NONE`;var Av=kv;function jv(e,t,n){return`firebase:${e}:${t}:${n}`}var Mv=class e{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;let{config:r,name:i}=this.auth;this.fullUserKey=jv(this.userKey,r.apiKey,i),this.fullPersistenceKey=jv(`persistence`,r.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){let e=await this.persistence._get(this.fullUserKey);if(!e)return null;if(typeof e==`string`){let t=await cv(this.auth,{idToken:e}).catch(()=>void 0);return t?Ev._fromGetAccountInfoResponse(this.auth,t,e):null}return Ev._fromJSON(this.auth,e)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;let t=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,t)return this.setCurrentUser(t)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(t,n,r=`authUser`){if(!n.length)return new e(Ov(Av),t,r);let i=(await Promise.all(n.map(async e=>{if(await e._isAvailable())return e}))).filter(e=>e),a=i[0]||Ov(Av),o=jv(r,t.config.apiKey,t.name),s=null;for(let e of n)try{let n=await e._get(o);if(n){let r;if(typeof n==`string`){let e=await cv(t,{idToken:n}).catch(()=>void 0);if(!e)break;r=await Ev._fromGetAccountInfoResponse(t,e,n)}else r=Ev._fromJSON(t,n);e!==a&&(s=r),a=e;break}}catch{}let c=i.filter(e=>e._shouldAllowMigration);return!a._shouldAllowMigration||!c.length?new e(a,t,r):(a=c[0],s&&await a._set(o,s.toJSON()),await Promise.all(n.map(async e=>{if(e!==a)try{await e._remove(o)}catch{}})),new e(a,t,r))}};function Nv(e){let t=e.toLowerCase();if(t.includes(`opera/`)||t.includes(`opr/`)||t.includes(`opios/`))return`Opera`;if(Lv(t))return`IEMobile`;if(t.includes(`msie`)||t.includes(`trident/`))return`IE`;if(t.includes(`edge/`))return`Edge`;if(Pv(t))return`Firefox`;if(t.includes(`silk/`))return`Silk`;if(zv(t))return`Blackberry`;if(Bv(t))return`Webos`;if(Fv(t))return`Safari`;if((t.includes(`chrome/`)||Iv(t))&&!t.includes(`edge/`))return`Chrome`;if(Rv(t))return`Android`;{let t=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(t?.length===2)return t[1]}return`Other`}function Pv(e=lr()){return/firefox\//i.test(e)}function Fv(e=lr()){let t=e.toLowerCase();return t.includes(`safari/`)&&!t.includes(`chrome/`)&&!t.includes(`crios/`)&&!t.includes(`android`)}function Iv(e=lr()){return/crios\//i.test(e)}function Lv(e=lr()){return/iemobile/i.test(e)}function Rv(e=lr()){return/android/i.test(e)}function zv(e=lr()){return/blackberry/i.test(e)}function Bv(e=lr()){return/webos/i.test(e)}function Vv(e=lr()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function Hv(){return wn()&&document.documentMode===10}function Uv(e=lr()){return Vv(e)||Rv(e)||Bv(e)||zv(e)||/windows phone/i.test(e)||Lv(e)}
8function Wv(e,t=[]){let n;switch(e){case`Browser`:n=Nv(lr());break;case`Worker`:n=`${Nv(lr())}-${e}`;break;default:n=e}let r=t.length?t.join(`,`):`FirebaseCore-web`;return`${n}/JsCore/${ar}/${r}`}var Gv=class{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){let n=t=>new Promise((n,r)=>{try{n(e(t))}catch(e){r(e)}});n.onAbort=t,this.queue.push(n);let r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;let t=[];try{for(let n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(e){t.reverse();for(let e of t)try{e()}catch{}throw this.auth._errorFactory.create(`login-blocked`,{originalMessage:e?.message})}}};async function Kv(e,t={}){return tv(e,`GET`,`/v2/passwordPolicy`,ev(e,t))}var qv=6,Jv=class{constructor(e){let t=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=t.minPasswordLength??qv,t.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=t.maxPasswordLength),t.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=t.containsLowercaseCharacter),t.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=t.containsUppercaseCharacter),t.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=t.containsNumericCharacter),t.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=t.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState===`ENFORCEMENT_STATE_UNSPECIFIED`&&(this.enforcementState=`OFF`),this.allowedNonAlphanumericCharacters=e.allowedNonAlphanumericCharacters?.join(``)??``,this.forceUpgradeOnSignin=e.forceUpgradeOnSignin??!1,this.schemaVersion=e.schemaVersion}validatePassword(e){let t={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,t),this.validatePasswordCharacterOptions(e,t),t.isValid&&=t.meetsMinPasswordLength??!0,t.isValid&&=t.meetsMaxPasswordLength??!0,t.isValid&&=t.containsLowercaseLetter??!0,t.isValid&&=t.containsUppercaseLetter??!0,t.isValid&&=t.containsNumericCharacter??!0,t.isValid&&=t.containsNonAlphanumericCharacter??!0,t}validatePasswordLengthOptions(e,t){let n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),r&&(t.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,t){this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);let n;for(let r=0;r<e.length;r++)n=e.charAt(r),this.updatePasswordCharacterOptionsStatuses(t,n>=`a`&&n<=`z`,n>=`A`&&n<=`Z`,n>=`0`&&n<=`9`,this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,t,n,r,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||=t),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||=n),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||=r),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||=i)}},Yv=class{constructor(e,t,n,r){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Zv(this),this.idTokenSubscription=new Zv(this),this.beforeStateQueue=new Gv(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=N_,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion,this._persistenceManagerAvailable=new Promise(e=>this._resolvePersistenceManagerAvailable=e)}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=Ov(t)),this._initializationPromise=this.queue(async()=>
8{if(!this._deleted&&(this.persistenceManager=await Mv.create(this,e),this._resolvePersistenceManagerAvailable?.(),!this._deleted)){if(this._popupRedirectResolver?._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(t),this.lastNotifiedUid=this.currentUser?.uid||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;let e=await this.assertedPersistence.getCurrentUser();if(this.currentUser||e){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUserFromIdToken(e){try{let t=await cv(this,{idToken:e}),n=await Ev._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(n)}catch(e){console.warn(`FirebaseServerApp could not login user with provided authIdToken: `,e),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){if(pr(this.app)){let e=this.app.settings.authIdToken;return e?new Promise(t=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(e).then(t,t))}):this.directlySetCurrentUser(null)}let t=await this.assertedPersistence.getCurrentUser(),n=t,r=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();let t=this.redirectUser?._redirectEventId,i=n?._redirectEventId,a=await this.tryRedirectSignIn(e);(!t||t===i)&&a?.user&&(n=a.user,r=!0)}if(!n)return this.directlySetCurrentUser(null);if(!n._redirectEventId){if(r)try{await this.beforeStateQueue.runMiddleware(n)}catch(e){n=t,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(e))}return n?this.reloadAndSetCurrentUserOrClear(n):this.directlySetCurrentUser(null)}return Y(this._popupRedirectResolver,this,`argument-error`),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===n._redirectEventId?this.directlySetCurrentUser(n):this.reloadAndSetCurrentUserOrClear(n)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await vv(e)}catch(e){if(e?.code!==`auth/network-request-failed`)return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=q_()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if(pr(this.app))return Promise.reject(B_(this));let t=e?Mn(e):null;return t&&Y(t.auth.config.apiKey===this.config.apiKey,this,`invalid-user-token`),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=!1){if(!this._deleted)return e&&Y(this.tenantId===e.tenantId,this,`tenant-id-mismatch`),t||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return pr(this.app)?Promise.reject(B_(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return pr(this.app)?Promise.reject(B_(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(Ov(e))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();let t=this._getPasswordPolicyInternal();return t.schemaVersion===this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?t.validatePassword(e):Promise.reject(this._errorFactory.create(`unsupported-password-policy-schema-version`,{}))}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){let e=new Jv(await Kv(this));this.tenantId===null?this._projectPasswordPolicy=e:this._tenantPasswordPolicies[this.tenantId]=e}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new En(`auth`,`Firebase`,e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}authStateReady(){return new Promise((e,t)=>
8{if(this.currentUser)e();else{let n=this.onAuthStateChanged(()=>{n(),e()},t)}})}async revokeAccessToken(e){if(this.currentUser){let t={providerId:`apple.com`,tokenType:`ACCESS_TOKEN`,token:e,idToken:await this.currentUser.getIdToken()};this.tenantId!=null&&(t.tenantId=this.tenantId),await Cv(this,t)}}toJSON(){return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:this._currentUser?.toJSON()}}async _setRedirectUser(e,t){let n=await this.getOrInitRedirectPersistenceManager(t);return e===null?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){let t=e&&Ov(e)||this._popupRedirectResolver;Y(t,this,`argument-error`),this.redirectPersistenceManager=await Mv.create(this,[Ov(t._redirectPersistence)],`redirectUser`),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){return this._isInitialized&&await this.queue(async()=>{}),this._currentUser?._redirectEventId===e?this._currentUser:this.redirectUser?._redirectEventId===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);let e=this.currentUser?.uid??null;this.lastNotifiedUid!==e&&(this.lastNotifiedUid=e,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};let i=typeof t==`function`?t:t.next.bind(t),a=!1,o=this._isInitialized?Promise.resolve():this._initializationPromise;if(Y(o,this,`internal-error`),o.then(()=>{a||i(this.currentUser)}),typeof t==`function`){let i=e.addObserver(t,n,r);return()=>{a=!0,i()}}{let n=e.addObserver(t);return()=>{a=!0,n()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return Y(this.persistenceManager,this,`internal-error`),this.persistenceManager}_logFramework(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=Wv(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){let e={"X-Client-Version":this.clientVersion};this.app.options.appId&&(e[`X-Firebase-gmpid`]=this.app.options.appId);let t=await this.heartbeatServiceProvider.getImmediate({optional:!0})?.getHeartbeatsHeader();t&&(e[`X-Firebase-Client`]=t);let n=await this._getAppCheckToken();return n&&(e[`X-Firebase-AppCheck`]=n),e}async _getAppCheckToken(){if(pr(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let e=await this.appCheckServiceProvider.getImmediate({optional:!0})?.getToken();return e?.error&&F_(`Error while retrieving App Check token: ${e.error}`),e?.token}};function Xv(e){return Mn(e)}var Zv=class{constructor(e){this.auth=e,this.observer=null,this.addObserver=zn(e=>this.observer=e)}get next(){return Y(this.observer,this.auth,`internal-error`),this.observer.next.bind(this.observer)}};function Qv(e){return`__${e}${Math.floor(Math.random()*1e6)}`}function $v(e,t){let n=t?.persistence||[],r=(Array.isArray(n)?n:[n]).map(Ov);t?.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,t?.popupRedirectResolver)}var ey=class{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return H_(`not implemented`)}_getIdTokenResponse(e){return H_(`not implemented`)}_linkToIdToken(e,t){return H_(`not implemented`)}_getReauthenticationResolver(e){return H_(`not implemented`)}};async function ty(e,t){return rv(e,`POST`,`/v1/accounts:signInWithIdp`,ev(e,t))}var ny=`http://localhost`,ry=class e extends ey{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(t){let n=new e(t.providerId,t.signInMethod);return t.idToken||t.accessToken?(t.idToken&&(n.idToken=t.idToken),t.accessToken&&(n.accessToken=t.accessToken),t.nonce&&!t.pen
8dingToken&&(n.nonce=t.nonce),t.pendingToken&&(n.pendingToken=t.pendingToken)):t.oauthToken&&t.oauthTokenSecret?(n.accessToken=t.oauthToken,n.secret=t.oauthTokenSecret):L_(`argument-error`),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(t){let{providerId:n,signInMethod:r,...i}=typeof t==`string`?JSON.parse(t):t;if(!n||!r)return null;let a=new e(n,r);return a.idToken=i.idToken||void 0,a.accessToken=i.accessToken||void 0,a.secret=i.secret,a.nonce=i.nonce,a.pendingToken=i.pendingToken||null,a}_getIdTokenResponse(e){return ty(e,this.buildRequest())}_linkToIdToken(e,t){let n=this.buildRequest();return n.idToken=t,ty(e,n)}_getReauthenticationResolver(e){let t=this.buildRequest();return t.autoCreate=!1,ty(e,t)}buildRequest(){let e={requestUri:ny,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{let t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=mr(t)}return e}},iy=class{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}},ay=class extends iy{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}},oy=class e extends ay{constructor(){super(`facebook.com`)}static credential(t){return ry._fromParams({providerId:e.PROVIDER_ID,signInMethod:e.FACEBOOK_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return e.credentialFromTaggedObject(t)}static credentialFromError(t){return e.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!(`oauthAccessToken`in t)||!t.oauthAccessToken)return null;try{return e.credential(t.oauthAccessToken)}catch{return null}}};oy.FACEBOOK_SIGN_IN_METHOD=`facebook.com`,oy.PROVIDER_ID=`facebook.com`;var sy=class e extends ay{constructor(){super(`google.com`),this.addScope(`profile`)}static credential(t,n){return ry._fromParams({providerId:e.PROVIDER_ID,signInMethod:e.GOOGLE_SIGN_IN_METHOD,idToken:t,accessToken:n})}static credentialFromResult(t){return e.credentialFromTaggedObject(t)}static credentialFromError(t){return e.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;let{oauthIdToken:n,oauthAccessToken:r}=t;if(!n&&!r)return null;try{return e.credential(n,r)}catch{return null}}};sy.GOOGLE_SIGN_IN_METHOD=`google.com`,sy.PROVIDER_ID=`google.com`;var cy=class e extends ay{constructor(){super(`github.com`)}static credential(t){return ry._fromParams({providerId:e.PROVIDER_ID,signInMethod:e.GITHUB_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return e.credentialFromTaggedObject(t)}static credentialFromError(t){return e.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!(`oauthAccessToken`in t)||!t.oauthAccessToken)return null;try{return e.credential(t.oauthAccessToken)}catch{return null}}};cy.GITHUB_SIGN_IN_METHOD=`github.com`,cy.PROVIDER_ID=`github.com`;var ly=class e extends ay{constructor(){super(`twitter.com`)}static credential(t,n){return ry._fromParams({providerId:e.PROVIDER_ID,signInMethod:e.TWITTER_SIGN_IN_METHOD,oauthToken:t,oauthTokenSecret:n})}static credentialFromResult(t){return e.credentialFromTaggedObject(t)}static credentialFromError(t){return e.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;let{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return e.credential(n,r)}catch{return null}}};ly.TWITTER_SIGN_IN_METHOD=`twitter.com`,ly.PROVIDER_ID=`twitter.com`;var uy=class e{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(t,n,r,i=!1){let a=await Ev._fromIdTokenResponse(t,r,i),o=dy(r);return new e({user:a,providerId:o,_tokenResponse:r,operationType:n})}static async _forOperation(t,n,r){await t._updateTokensIfNecessary(r,!0);let i=dy(r);return new e({user:t,providerId:i,_tokenResponse:r,operationType:n})}};function dy(e){return e.providerId?e.providerId:`phoneNumber`in e?`phone`:null}var fy=class e extends In{constructor(t,n,r,i){super(n.code,n.message),this.operationType=r,this.user=i,Object.setPrototypeOf(this,e.prototype),this.customData={appName:t.name,tenantId:t.tenantId??void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(t,n,r,i){return new e(t,n,r,i)}};function py(e,t,n,r){return(t===`reauthenticate`?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(n=>{throw n.code===`auth/multi-factor-auth-required`?fy._fromErrorAndOperation(e,n,t,r):n})}async function my(e,t,n=!1){let r=await mv(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return uy._forOperation(e,`link`,r)}async function hy(e,t,n=!1){let{auth:r}=e;if(pr(r.app))return Promise.reject(B_(r));let i=`reauthenticate`;
8try{let a=await mv(e,py(r,i,t,e),n);Y(a.idToken,r,`internal-error`);let o=fv(a.idToken);Y(o,r,`internal-error`);let{sub:s}=o;return Y(e.uid===s,r,`user-mismatch`),uy._forOperation(e,i,a)}catch(e){throw e?.code===`auth/user-not-found`&&L_(r,`user-mismatch`),e}}async function gy(e,t,n=!1){if(pr(e.app))return Promise.reject(B_(e));let r=`signIn`,i=await py(e,r,t),a=await uy._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(a.user),a}var _y=`__sak`,vy=class{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(_y,`1`),this.storage.removeItem(_y),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){let t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}},yy=1e3,by=10,xy=class extends vy{constructor(){super(()=>window.localStorage,`LOCAL`),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=Uv(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(let t of Object.keys(this.listeners)){let n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}onStorageEvent(e,t=!1){if(!e.key){this.forAllChangedKeys((e,t,n)=>{this.notifyListeners(e,n)});return}let n=e.key;t?this.detachListener():this.stopPolling();let r=()=>{let e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},i=this.storage.getItem(n);Hv()&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,by):r()}notifyListeners(e,t){this.localCache[e]=t;let n=this.listeners[e];if(n)for(let e of Array.from(n))e(t&&JSON.parse(t))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,t,n)=>{this.onStorageEvent(new StorageEvent(`storage`,{key:e,oldValue:t,newValue:n}),!0)})},yy)}stopPolling(){this.pollTimer&&=(clearInterval(this.pollTimer),null)}attachListener(){window.addEventListener(`storage`,this.boundEventHandler)}detachListener(){window.removeEventListener(`storage`,this.boundEventHandler)}_addListener(e,t){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),this.listeners[e].size===0&&delete this.listeners[e]),Ob
8ject.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){let t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}};xy.type=`LOCAL`;var Sy=class extends vy{constructor(){super(()=>window.sessionStorage,`SESSION`)}_addListener(e,t){}_removeListener(e,t){}};Sy.type=`SESSION`;function Cy(e=``,t=10){let n=``;for(let e=0;e<t;e++)n+=Math.floor(Math.random()*10);return e+n}Qv(`rcb`),new J_(3e4,6e4);var wy=class extends ey{constructor(e){super(`custom`,`custom`),this.params=e}_getIdTokenResponse(e){return ty(e,this._buildIdpRequest())}_linkToIdToken(e,t){return ty(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return ty(e,this._buildIdpRequest())}_buildIdpRequest(e){let t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}};function Ty(e){return gy(e.auth,new wy(e),e.bypassAuthState)}function Ey(e){let{auth:t,user:n}=e;return Y(n,t,`internal-error`),hy(n,new wy(e),e.bypassAuthState)}async function Dy(e){let{auth:t,user:n}=e;return Y(n,t,`internal-error`),my(n,new wy(e),e.bypassAuthState)}var Oy=class{constructor(e,t,n,r,i=!1){this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise(async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(e){this.reject(e)}})}async onAuthEvent(e){let{urlResponse:t,sessionId:n,postBody:r,tenantId:i,error:a,type:o}=e;if(a){this.reject(a);return}let s={auth:this.auth,requestUri:t,sessionId:n,tenantId:i||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(o)(s))}catch(e){this.reject(e)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case`signInViaPopup`:case`signInViaRedirect`:return Ty;case`linkViaPopup`:case`linkViaRedirect`:return Dy;case`reauthViaPopup`:case`reauthViaRedirect`:return Ey;default:L_(this.auth,`internal-error`)}}resolve(e){U_(this.pendingPromise,`Pending promise was never set`),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){U_(this.pendingPromise,`Pending promise was never set`),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}},ky=new J_(2e3,1e4),Ay=class e extends Oy{constructor(t,n,r,i,a){super(t,n,i,a),this.provider=r,this.authWindow=null,this.pollId=null,e.currentPopupAction&&e.currentPopupAction.cancel(),e.currentPopupAction=this}async executeNotNull(){let e=await this.execute();return Y(e,this.auth,`internal-error`),e}async onExecution(){U_(this.filter.length===1,`Popup operations only handle one event`);let e=Cy();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(e=>{this.reject(e)}),this.resolver._isIframeWebStorageSupported(this.auth,e=>{e||this.reject(R_(this.auth,`web-storage-unsupported`))}),this.pollUserCancellation()}get eventId(){return this.authWindow?.associatedEvent||null}cancel(){this.reject(R_(this.auth,`cancelled-popup-request`))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,e.currentPopupAction=null}pollUserCancellation(){let e=()=>{if(this.authWindow?.window?.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(R_(this.auth,`popup-closed-by-user`))},8e3);return}this.pollId=window.setTimeout(e,ky.get())};e()}};Ay.currentPopupAction=null,new J_(3e4,6e4),new J_(5e3,15e3);var jy=`@firebase/auth`,My=`1.13.5`,Ny=class{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){return this.assertAuthConfigured(),this.auth.currentUser?.uid||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;let t=this.auth.onIdTokenChanged(t=>{e(t?.stsTokenManager.accessToken||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();let t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){Y(this.auth._initializationPromise,`dependent-sdk-initialized-before-auth`)}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}};function Py(e){switch(e){case`Node`:return`node`;case`ReactNative`:return`rn`;case`Worker`:return`webworker`;case`Cordova`:return`cordova`;case`WebExtension`:return`web-extension`;default:return}}function Fy(e){Zn(new Bn(`auth`,(t,{options:n})=>{let r=t.getProvider(`app`).getImmediate(),i=t.getProvider(`heartbeat`),a=t.getProvider(`app-check-internal`),{apiKey:o,authDomain:s}=r.options;Y(o&&!o.includes(`:`),`invalid-api-key`,{appName:r.name});let c=new Yv(r,i,a,{apiKey:o,authDomain:s,clientPlatform:e,apiHost:`identitytoolkit.googleapis.com`,tokenApiHost:`securetoken.googleapis.com`,apiScheme:`https`,sdkClientVersion:Wv(e)});return $v(c,n),c},`PUBLIC`).setInstantiationMode(`EXPLICIT`).setInstanceCreatedCallback((e,t,n)=>{e.getProvider(`auth-internal`).initialize()})),Zn(new Bn(`auth-internal`,e=>(e=>new Ny(e))(Xv(e.getProvider(`auth`).getImmediate())),`PRIVATE`).setInstantiationMode(`EXPLICIT`)),_r(jy,My,Py(e)),_r(jy,My,`esm2020`)}Un(`authIdTokenMaxAge`),Fy(`Browser`);var Iy=new Map,Ly={activated:!1,tokenObservers:[]},Ry={initialized:!1,enabled:!1};function zy(e){return Iy.get(e)||{...Ly}}function By(e,t){return Iy.set(e,t),Iy.get(e)}function Vy(){return Ry}var Hy=`https://content-firebaseappcheck.googleapis.com/v1`,Uy=`exchangeRecaptchaV3Token`,Wy=`exchangeRecaptchaEnterpriseToken`,Gy=`exchangeDebugToken`,Ky={RETRIAL_MIN_WAIT:3e4,RETRIAL_MAX_WAIT:96e4},qy=864e5,Jy=class{constructor(e,t,n,r,i){if(this.operation=e,this.retryPolicy=t,this.getWaitDuration=n,this.lowerBound=r,this.up
8perBound=i,this.pending=null,this.nextErrorWaitInterval=r,r>i)throw Error(`Proactive refresh lower bound greater than upper bound!`)}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&=(this.pending.reject(`cancelled`),null)}isRunning(){return!!this.pending}async process(e){this.stop();try{this.pending=new Dn,this.pending.promise.catch(e=>{}),await Yy(this.getNextRun(e)),this.pending.resolve(),await this.pending.promise,this.pending=new Dn,this.pending.promise.catch(e=>{}),await this.operation(),this.pending.resolve(),await this.pending.promise,this.process(!0).catch(()=>{})}catch(e){this.retryPolicy(e)?this.process(!1).catch(()=>{}):this.stop()}}getNextRun(e){if(e)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{let e=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),e}}};function Yy(e){return new Promise(t=>{setTimeout(t,e)})}var Xy=new En(`appCheck`,`AppCheck`,{"already-initialized":`You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.`,"use-before-activation":`App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.`,"fetch-network-error":`Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.`,"fetch-parse-error":`Fetch client could not parse response. Original error: {$originalErrorMessage}.`,"fetch-status-error":`Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.`,"storage-open":`Error thrown when opening storage. Original error: {$originalErrorMessage}.`,"storage-get":`Error thrown when reading from storage. Original error: {$originalErrorMessage}.`,"storage-set":`Error thrown when writing to storage. Original error: {$originalErrorMessage}.`,"recaptcha-error":`ReCAPTCHA error.`,"initial-throttle":`{$httpStatus} error. Attempts allowed again after {$time}`,throttled:`Requests throttled due to previous {$httpStatus} error. Attempts allowed again after {$time}`});function Zy(e=!1){return e?self.grecaptcha?.enterprise:self.grecaptcha}function Qy(e){if(!zy(e).activated)throw Xy.create(`use-before-activation`,{appName:e.name})}function $y(e){let t=Math.round(e/1e3),n=Math.floor(t/86400),r=Math.floor((t-n*3600*24)/3600),i=Math.floor((t-n*3600*24-r*3600)/60),a=t-n*3600*24-r*3600-i*60,o=``;return n&&(o+=eb(n)+`d:`),r&&(o+=eb(r)+`h:`),o+=eb(i)+`m:`+eb(a)+`s`,o}function eb(e){return e===0?`00`:e>=10?e.toString():`0`+e}async function tb({url:e,body:t},n){let r={"Content-Type":`application/json`},i=n.getImmediate({optional:!0});if(i){let e=await i.getHeartbeatsHeader();e&&(r[`X-Firebase-Client`]=e)}let a={method:`POST`,body:JSON.stringify(t),headers:r},o;try{o=await fetch(e,a)}catch(e){throw Xy.create(`fetch-network-error`,{originalErrorMessage:e?.message})}if(o.status!==200)throw Xy.create(`fetch-status-error`,{httpStatus:o.status});let s;try{s=await o.json()}catch(e){throw Xy.create(`fetch-parse-error`,{originalErrorMessage:e?.message})}let c=s.ttl.match(/^([\d.]+)(s)$/);if(!c||!c[2]||isNaN(Number(c[1])))throw Xy.create(`fetch-parse-error`,{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${s.ttl}`});let l=Number(c[1])*1e3,u=Date.now();return{token:s.token,expireTimeMillis:u+l,issuedAtTimeMillis:u}}function nb(e,t){let{projectId:n,appId:r,apiKey:i}=e.options;return{url:`${Hy}/projects/${n}/apps/${r}:${Uy}?key=${i}`,body:{recaptcha_v3_token:t}}}function rb(e,t){let{projectId:n,appId:r,apiKey:i}=e.options;return{url:`${Hy}/projects/${n}/apps/${r}:${Wy}?key=${i}`,body:{recaptcha_enterprise_token:t}}}function ib(e,t){let{projectId:n,appId:r,apiKey:i}=e.options;return{url:`${Hy}/projects/${n}/apps/${r}:${Gy}?key=${i}`,body:{debug_token:t}}}var ab=`firebase-app-check-database`,ob=1,sb=`firebase-app-check-store`,cb=`debug-token`,lb=null;function ub(){return lb||(lb=new Promise((e,t)=>
8{try{let n=indexedDB.open(ab,ob);n.onsuccess=t=>{e(t.target.result)},n.onerror=e=>{t(Xy.create(`storage-open`,{originalErrorMessage:e.target.error?.message}))},n.onupgradeneeded=e=>{let t=e.target.result;e.oldVersion===0&&t.createObjectStore(sb,{keyPath:`compositeKey`})}}catch(e){t(Xy.create(`storage-open`,{originalErrorMessage:e?.message}))}}),lb)}function db(e){return gb(_b(e))}function fb(e,t){return hb(_b(e),t)}function pb(e){return hb(cb,e)}function mb(){return gb(cb)}async function hb(e,t){let n=(await ub()).transaction(sb,`readwrite`),r=n.objectStore(sb).put({compositeKey:e,value:t});return new Promise((e,t)=>{r.onsuccess=t=>{e()},n.onerror=e=>{t(Xy.create(`storage-set`,{originalErrorMessage:e.target.error?.message}))}})}async function gb(e){let t=(await ub()).transaction(sb,`readonly`),n=t.objectStore(sb).get(e);return new Promise((e,r)=>{n.onsuccess=t=>{let n=t.target.result;e(n?n.value:void 0)},t.onerror=e=>{r(Xy.create(`storage-get`,{originalErrorMessage:e.target.error?.message}))}})}function _b(e){return`${e.options.appId}-${e.name}`}var vb=new gr(`@firebase/app-check`);async function yb(e){if(Xn()){let t;try{t=await db(e)}catch(e){vb.warn(`Failed to read token from IndexedDB. Error: ${e}`)}return t}}function bb(e,t){return Xn()?fb(e,t).catch(e=>{vb.warn(`Failed to write token to IndexedDB. Error: ${e}`)}):Promise.resolve()}async function xb(e){let t;try{t=await mb()}catch{}if(t)return t;{let t=crypto.randomUUID(),n=`To use this token for app debugging, register it with your project.\n\nFirebase App Check debug token: ${t}\n\n`,r=e?.options.appId,i=e?.options.projectId;return n+=i&&r?`You can do so in the Firebase Console:\nhttps://console.firebase.google.com/project/${i}/appcheck/apps?selectedAppId=${r}\n\nOr using the Firebase CLI:\nfirebase appcheck:debugtokens:create ${t} --project ${i} --app ${r}\n\n`:`You will need to add it to your app's App Check settings in the Firebase Console for it to work. 9 10`,n+=`Note: To keep your project secure, please revoke and delete this token using the 11Firebase Console or the CLI (\`firebase appcheck:debugtokens:delete\`) when you finish debugging. 12 13Warning: This debug token is a secret and should not be shared or uploaded to source code. 14 15Debug Token Guide: https://firebase.google.com/docs/app-check/web/debug-provider 16Firebase CLI install instructions: https://firebase.google.com/docs/cli 17`,console.log(n),pb(t).catch(e=>vb.warn(`Failed to persist debug token to IndexedDB. Error: ${e}`)),t}}function Sb(){return Vy().enabled}async function Cb(){let e=Vy();if(e.enabled&&e.token)return e.token.promise;throw Error(` 18 Can't get debug token in production mode. 19 `)}function wb(e){let t=kn(),n=Vy();if(n.initialized=!0,typeof t.FIREBASE_APPCHECK_DEBUG_TOKEN!=`string`&&t.FIREBASE_APPCHECK_DEBUG_TOKEN!==!0)return;n.enabled=!0;let r=new Dn;n.token=r,typeof t.FIREBASE_APPCHECK_DEBUG_TOKEN==`string`?r.resolve(t.FIREBASE_APPCHECK_DEBUG_TOKEN):r.resolve(xb(e))}var Tb={error:`UNKNOWN_ERROR`};function Eb(e){return Pn.encodeString(JSON.stringify(e),!1)}async function Db(e,t=!1,n=!1){let r=e.app;Qy(r);let i=zy(r),a=i.token,o;if(a&&!Pb(a)&&(i.token=void 0,a=void 0),!a){let e=await i.cachedTokenPromise;e&&(Pb(e)?a=e:await bb(r,void 0))}if(!t&&a&&Pb(a))return{token:a.token};let s=!1;if(Sb())try{let t=await Cb();i.exchangeTokenPromise||(i.exchangeTokenPromise=tb(ib(r,t),e.heartbeatServiceProvider).finally(()=>{i.exchangeTokenPromise=void 0}),s=!0);let n=await i.exchangeTokenPromise;return await bb(r,n),i.token=n,{token:n.token}}catch(e){return e.code===`appCheck/throttled`||e.code===`appCheck/initial-throttle`?vb.warn(e.message):n&&vb.error(e),Fb(e)}try{i.exchangeTokenPromise||(i.exchangeTokenPromise=i.provider.getToken().finally(()=>{i.exchangeTokenPromise=void 0}),s=!0),a=await zy(r).exchangeTokenPromise}catch(e){e.code===`appCheck/throttled`||e.code===`appCheck/initial-throttle`?vb.warn(e.message):n&&vb.error(e),o=e}let c;return a?o?c=Pb(a)?{token:a.token,internalError:o}:Fb(o):(c={token:a.token},i.token=a,await bb(r,a)):c=Fb(o),s&&Nb(r,c),c}async function Ob(e){let t=e.app;Qy(t);let{provider:n}=zy(t);
19if(Sb()){let n=ib(t,await Cb());n.body.limited_use=!0;let{token:r}=await tb(n,e.heartbeatServiceProvider);return{token:r}}{let{token:e}=await n.getToken(!0);return{token:e}}}function kb(e,t,n,r){let{app:i}=e,a=zy(i),o={next:n,error:r,type:t};if(a.tokenObservers=[...a.tokenObservers,o],a.token&&Pb(a.token)){let t=a.token;Promise.resolve().then(()=>{n({token:t.token}),jb(e)}).catch(()=>{})}a.cachedTokenPromise.then(()=>jb(e))}function Ab(e,t){let n=zy(e),r=n.tokenObservers.filter(e=>e.next!==t);r.length===0&&n.tokenRefresher&&n.tokenRefresher.isRunning()&&n.tokenRefresher.stop(),n.tokenObservers=r}function jb(e){let{app:t}=e,n=zy(t),r=n.tokenRefresher;r||(r=Mb(e),n.tokenRefresher=r),!r.isRunning()&&n.isTokenAutoRefreshEnabled&&r.start()}function Mb(e){let{app:t}=e;return new Jy(async()=>{let n=zy(t),r;if(r=n.token?await Db(e,!0):await Db(e),r.error)throw r.error;if(r.internalError)throw r.internalError},()=>!0,()=>{let e=zy(t);if(e.token){let t=e.token.issuedAtTimeMillis+(e.token.expireTimeMillis-e.token.issuedAtTimeMillis)*.5+3e5,n=e.token.expireTimeMillis-3e5;return t=Math.min(t,n),Math.max(0,t-Date.now())}return 0},Ky.RETRIAL_MIN_WAIT,Ky.RETRIAL_MAX_WAIT)}function Nb(e,t){let n=zy(e).tokenObservers;for(let e of n)try{e.type===`EXTERNAL`&&t.error!=null?e.error(t.error):e.next(t)}catch{}}function Pb(e){return e.expireTimeMillis-Date.now()>0}function Fb(e){return{token:Eb(Tb),error:e}}var Ib=class{constructor(e,t){this.app=e,this.heartbeatServiceProvider=t}_delete(){let{tokenObservers:e}=zy(this.app);for(let t of e)Ab(this.app,t.next);return Promise.resolve()}};
19function Lb(e,t){return new Ib(e,t)}function Rb(e){return{getToken:t=>Db(e,t),getLimitedUseToken:()=>Ob(e),addTokenListener:t=>kb(e,`INTERNAL`,t),removeTokenListener:t=>Ab(e.app,t)}}var zb=`@firebase/app-check`,Bb=`0.13.1`,Vb=`https://www.google.com/recaptcha/api.js`;function Hb(e,t){let n=new Dn,r=zy(e);r.reCAPTCHAState={initialized:n};let i=Gb(e),a=Zy(!1);return a?Wb(e,t,a,i,n):Jb(()=>{let r=Zy(!1);if(!r)throw Error(`no recaptcha`);Wb(e,t,r,i,n)}),n.promise}function Ub(e,t){let n=new Dn,r=zy(e);r.reCAPTCHAState={initialized:n};let i=Gb(e),a=Zy(!0);return a?Wb(e,t,a,i,n):Yb(()=>{let r=Zy(!0);if(!r)throw Error(`no recaptcha`);Wb(e,t,r,i,n)}),n.promise}function Wb(e,t,n,r,i){n.ready(()=>{qb(e,t,n,r),i.resolve(n)})}function Gb(e){let t=`fire_app_check_${e.name}`,n=document.createElement(`div`);return n.id=t,n.style.display=`none`,document.body.appendChild(n),t}async function Kb(e){Qy(e);let t=await zy(e).reCAPTCHAState.initialized.promise;return new Promise((n,r)=>{let i=zy(e).reCAPTCHAState;t.ready(()=>{n(t.execute(i.widgetId,{action:`fire_app_check`}))})})}function qb(e,t,n,r){let i=n.render(r,{sitekey:t,size:`invisible`,callback:()=>{zy(e).reCAPTCHAState.succeeded=!0},"error-callback":()=>{zy(e).reCAPTCHAState.succeeded=!1}}),a=zy(e);a.reCAPTCHAState={...a.reCAPTCHAState,widgetId:i}}function Jb(e){let t=document.createElement(`script`);t.src=Vb,t.onload=e,document.head.appendChild(t)}function Yb(e){let t=document.createElement(`script`);t.src=`https://www.google.com/recaptcha/enterprise.js?render=explicit`,t.onload=e,document.head.appendChild(t)}var Xb=class e{constructor(e){this._siteKey=e,this._throttleData=null}async getToken(e=!1){ex(this._throttleData);let t=await Kb(this._app).catch(e=>{throw Xy.create(`recaptcha-error`)});if(!zy(this._app).reCAPTCHAState?.succeeded)throw Xy.create(`recaptcha-error`);let n;try{let r=nb(this._app,t);e&&(r.body.limited_use=!0),n=await tb(r,this._heartbeatServiceProvider)}catch(e){throw e.code?.includes(`fetch-status-error`)?(this._throttleData=$b(Number(e.customData?.httpStatus),this._throttleData),Xy.create(`initial-throttle`,{time:$y(this._throttleData.allowRequestsAfter-Date.now()),httpStatus:this._throttleData.httpStatus})):e}return this._throttleData=null,n}initialize(e){this._app=e,this._heartbeatServiceProvider=Jn(e,`heartbeat`),Hb(e,this._siteKey).catch(()=>{})}isEqual(t){return t instanceof e&&this._siteKey===t._siteKey}},Zb=class e{constructor(e){this._siteKey=e,this._throttleData=null}async getToken(e=!1){ex(this._throttleData);let t=await Kb(this._app).catch(e=>{throw Xy.create(`recaptcha-error`)});if(!zy(this._app).reCAPTCHAState?.succeeded)throw Xy.create(`recaptcha-error`);let n;try{let r=rb(this._app,t);e&&(r.body.limited_use=!0),n=await tb(r,this._heartbeatServiceProvider)}catch(e){throw e.code?.includes(`fetch-status-error`)?(this._throttleData=$b(Number(e.customData?.httpStatus),this._throttleData),Xy.create(`initial-throttle`,{time:$y(this._throttleData.allowRequestsAfter-Date.now()),httpStatus:this._throttleData.httpStatus})):e}return this._throttleData=null,n}initialize(e){this._app=e,this._heartbeatServiceProvider=Jn(e,`heartbeat`),Ub(e,this._siteKey).catch(()=>{})}isEqual(t){return t instanceof e&&this._siteKey===t._siteKey}},Qb=class e{constructor(e){this._customProviderOptions=e}async getToken(){let e=await this._customProviderOptions.getToken(),t=sr(e.token),n=t!==null&&t<Date.now()&&t>0?t*1e3:Date.now();return{...e,issuedAtTimeMillis:n}}initialize(e){this._app=e}isEqual(t){return t instanceof e&&this._customProviderOptions.getToken.toString()===t._customProviderOptions.getToken.toString()}};function $b(e,t){if(e===404||e===403)return{backoffCount:1,allowRequestsAfter:Date.now()+qy,httpStatus:e};{let n=t?t.backoffCount:0,r=On(n,1e3,2);return{backoffCount:n+1,allowRequestsAfter:Date.now()+r,httpStatus:e}}}function ex(e){if(e&&Date.now()-e.allowRequestsAfter<=0)throw Xy.create(`throttled`,{time:$y(e.allowRequestsAfter-Date.now()),httpStatus:e.httpStatus})}function tx(e=$n(),t){e=Mn(e);let n=Jn(e,`app-check`);if(Vy().initialized||wb(e),Sb()&&Cb().then(e=>{console.log(`Firebase App Check debug token: ${e}`)}),n.isInitialized()){let r=n.getImmediate(),i=n.getOptions();if(i&&!!i.isTokenAutoRefreshEnabled==!!t.isTokenAutoRefreshEnabled&&i.provider?.isEqual(t.provider))return r;
19throw Xy.create(`already-initialized`,{appName:e.name})}let r=n.initialize({options:t});return nx(e,t.provider,t.isTokenAutoRefreshEnabled),zy(e).isTokenAutoRefreshEnabled&&kb(r,`INTERNAL`,()=>{}),r}function nx(e,t,n=!1){let r=By(e,{...Ly});r.activated=!0,r.provider=t,r.cachedTokenPromise=yb(e).then(t=>(t&&Pb(t)&&(r.token=t,Nb(e,{token:t.token})),t)),r.isTokenAutoRefreshEnabled=n&&e.automaticDataCollectionEnabled,!e.automaticDataCollectionEnabled&&n&&vb.warn("`isTokenAutoRefreshEnabled` is true but `automaticDataCollectionEnabled` was set to false during `initializeApp()`. This blocks automatic token refresh."),r.provider.initialize(e)}function rx(e,t){let n=e.app,r=zy(n);r.tokenRefresher&&(t===!0?r.tokenRefresher.start():r.tokenRefresher.stop()),r.isTokenAutoRefreshEnabled=t}async function ix(e,t){let n=await Db(e,t);if(n.error)throw n.error;if(n.internalError)throw n.internalError;return{token:n.token}}function ax(e){return Ob(e)}function ox(e,t,n,r){let i=()=>{},a=()=>{};return i=t.next==null?t:t.next.bind(t),t.error==null?n&&(a=n):a=t.error.bind(t),kb(e,`EXTERNAL`,i,a),()=>Ab(e.app,i)}var sx=`app-check`,cx=`app-check-internal`;function lx(){Zn(new Bn(sx,e=>Lb(e.getProvider(`app`).getImmediate(),e.getProvider(`heartbeat`)),`PUBLIC`).setInstantiationMode(`EXPLICIT`).setInstanceCreatedCallback((e,t,n)=>{e.getProvider(cx).initialize()})),Zn(new Bn(cx,e=>Rb(e.getProvider(`app-check`).getImmediate()),`PUBLIC`).setInstantiationMode(`EXPLICIT`)),_r(zb,Bb)}lx();var ux=e({CustomProvider:()=>Qb,ReCaptchaEnterpriseProvider:()=>Zb,ReCaptchaV3Provider:()=>Xb,getLimitedUseToken:()=>ax,getToken:()=>ix,initializeAppCheck:()=>tx,onTokenChanged:()=>ox,setTokenAutoRefreshEnabled:()=>rx}),dx=Symbol(`firebaseApp`);function fx(e){return ee()&&D(dx,null)||$n(e)}var px=`@firebase/database`,mx=`1.1.5`,hx=``;function gx(e){hx=e}var _x=class{constructor(e){this.domStorage_=e,this.prefix_=`firebase:`}set(e,t){t==null?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),er(t))}get(e){let t=this.domStorage_.getItem(this.prefixedName_(e));return t==null?null:dr(t)}remove(e){this.domStorage_.removeItem(this.prefixedName_(e))}prefixedName_(e){return this.prefix_+e}toString(){return this.domStorage_.toString()}},vx=class{constructor(){this.cache_={},this.isInMemoryStorage=!0}set(e,t){t==null?delete this.cache_[e]:this.cache_[e]=t}get(e){return An(this.cache_,e)?this.cache_[e]:null}remove(e){delete this.cache_[e]}},yx=function(e){try{if(typeof window<`u`&&window[e]!==void 0){let t=window[e];return t.setItem(`firebase:sentinel`,`cache`),t.removeItem(`firebase:sentinel`),new _x(t)}}catch{}return new vx},bx=yx(`localStorage`),xx=yx(`sessionStorage`),Sx=new gr(`@firebase/database`),Cx=(function(){let e=1;return function(){return e++}})(),wx=function(e){let t=ir(e),n=new nr;n.update(t);let r=n.digest();return Pn.encodeByteArray(r)},Tx=function(...e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)||r&&typeof r==`object`&&typeof r.length==`number`?t+=Tx.apply(null,r):t+=typeof r==`object`?er(r):r,t+=` `}return t},Ex=null,Dx=!0,Ox=function(e,t){B(!t||e===!0||e===!1,`Can't turn on custom loggers persistently.`),e===!0?(Sx.logLevel=Tn.VERBOSE,Ex=Sx.log.bind(Sx),t&&xx.set(`logging_enabled`,!0)):typeof e==`function`?Ex=e:(Ex=null,xx.remove(`logging_enabled`))},kx=function(...e){if(Dx===!0&&(Dx=!1,Ex===null&&xx.get(`logging_enabled`)===!0&&Ox(!0)),Ex){let t=Tx.apply(null,e);Ex(t)}},Ax=function(e){return function(...t){kx(e,...t)}},jx=function(...e){let t=`FIREBASE INTERNAL ERROR: `+Tx(...e);Sx.error(t)},Mx=function(...e){let t=`FIREBASE FATAL ERROR: ${Tx(...e)}`;throw Sx.error(t),Error(t)},Nx=function(...e){let t=`FIREBASE WARNING: `+Tx(...e);Sx.warn(t)},Px=function(){typeof window<`u`&&window.location&&window.location.protocol&&window.location.protocol.indexOf(`https:`)!==-1&&Nx(`Insecure Firebase access from a secure page. Please use https in calls to new Firebase().`)},Fx=function(e){return typeof e==`number`&&(e!==e||e===1/0||e===-1/0)},Ix=function(e){if(or()||document.readyState===`complete`)e();else{let t=!1,n=function(){if(!document.body){setTimeout(n,10);return}t||(t=!0,e())};document.addEventListener?(document.addEventListener(`DOMContentLoaded`,n,!1),window.addEventListener(`load`,n,!1)):document.attachEvent&&(document.attachEvent(`onreadystatechange`,()=>{document.readyState===`complete`&&n()}),window.attachEvent(`onload`,n))}},Lx=`[MIN_NAME]`,Rx=`[MAX_NAME]`,zx=function(e,t){if(e===t)return 0;if(e===Lx||t===Rx)return-1;if(t===Lx||e===Rx)return 1;{let n=Zx(e),r=Zx(t);return n===null?r===null&&e<t?-1:1:r===null?-1:n-r===0?e.length-t.length:n-r}},Bx=function(e,t){return e===t?0:e<t?-1:1},Vx=function(e,t){if(t&&e in t)return t[e];throw Error(`Missing required key (`+e+`) in object: `+er(t))},Hx=function(e){if(typeof e!=`object`||!e)return er(e);let t=[];for(let n in e)t.push(n);
vendor: 90,424 bytes, lines 19-22
19t.sort();let n=`{`;for(let r=0;r<t.length;r++)r!==0&&(n+=`,`),n+=er(t[r]),n+=`:`,n+=Hx(e[t[r]]);return n+=`}`,n},Ux=function(e,t){let n=e.length;if(n<=t)return[e];let r=[];for(let i=0;i<n;i+=t)i+t>n?r.push(e.substring(i,n)):r.push(e.substring(i,i+t));return r};function Wx(e,t){for(let n in e)e.hasOwnProperty(n)&&t(n,e[n])}var Gx=function(e){B(!Fx(e),`Invalid JSON number`);let t=1023,n,r,i,a,o;e===0?(r=0,i=0,n=+(1/e==-1/0)):(n=e<0,e=Math.abs(e),e>=2**-1022?(a=Math.min(Math.floor(Math.log(e)/Math.LN2),t),r=a+t,i=Math.round(e*2**(52-a)-2**52)):(r=0,i=Math.round(e/2**-1074)));let s=[];for(o=52;o;--o)s.push(i%2?1:0),i=Math.floor(i/2);for(o=11;o;--o)s.push(r%2?1:0),r=Math.floor(r/2);s.push(+!!n),s.reverse();let c=s.join(``),l=``;for(o=0;o<64;o+=8){let e=parseInt(c.substr(o,8),2).toString(16);e.length===1&&(e=`0`+e),l+=e}return l.toLowerCase()},Kx=function(){return!!(typeof window==`object`&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href))},qx=function(){return typeof Windows==`object`&&typeof Windows.UI==`object`},Jx=RegExp(`^-?(0*)\\d{1,10}$`),Yx=-2147483648,Xx=2147483647,Zx=function(e){if(Jx.test(e)){let t=Number(e);if(t>=Yx&&t<=Xx)return t}return null},Qx=function(e){try{e()}catch(e){setTimeout(()=>{throw Nx(`Exception was thrown by user callback.`,e.stack||``),e},0)}},$x=function(){return(typeof window==`object`&&window.navigator&&window.navigator.userAgent||``).search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0},eS=function(e,t){let n=setTimeout(e,t);return typeof n==`number`&&typeof Deno<`u`&&Deno.unrefTimer?Deno.unrefTimer(n):typeof n==`object`&&n.unref&&n.unref(),n},tS=class{constructor(e,t){this.appCheckProvider=t,this.appName=e.name,pr(e)&&e.settings.appCheckToken&&(this.serverAppAppCheckToken=e.settings.appCheckToken),this.appCheck=t?.getImmediate({optional:!0}),this.appCheck||t?.get().then(e=>this.appCheck=e)}getToken(e){if(this.serverAppAppCheckToken){if(e)throw Error("Attempted reuse of `FirebaseServerApp.appCheckToken` after previous usage failed.");return Promise.resolve({token:this.serverAppAppCheckToken})}return this.appCheck?this.appCheck.getToken(e):new Promise((t,n)=>{setTimeout(()=>{this.appCheck?this.getToken(e).then(t,n):t(null)},0)})}addTokenChangeListener(e){this.appCheckProvider?.get().then(t=>t.addTokenListener(e))}notifyForInvalidToken(){Nx(`Provided AppCheck credentials for the app named "${this.appName}" are invalid. This usually indicates your app was not initialized correctly.`)}},nS=class{constructor(e,t,n){this.appName_=e,this.firebaseOptions_=t,this.authProvider_=n,this.auth_=null,this.auth_=n.getImmediate({optional:!0}),this.auth_||n.onInit(e=>this.auth_=e)}getToken(e){return this.auth_?this.auth_.getToken(e).catch(e=>e&&e.code===`auth/token-not-initialized`?(kx(`Got auth/token-not-initialized error. Treating as null token.`),null):Promise.reject(e)):new Promise((t,n)=>{setTimeout(()=>{this.auth_?this.getToken(e).then(t,n):t(null)},0)})}addTokenChangeListener(e){this.auth_?this.auth_.addAuthTokenListener(e):this.authProvider_.get().then(t=>t.addAuthTokenListener(e))}removeTokenChangeListener(e){this.authProvider_.get().then(t=>t.removeAuthTokenListener(e))}notifyForInvalidToken(){let e=`Provided authentication credentials for the app named "`+this.appName_+`" are invalid. This usually indicates your app was not initialized correctly. `;`credential`in this.firebaseOptions_?e+=`Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.`:`serviceAccount`in this.firebaseOptions_?e+=`Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.`:e+=`Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.`,Nx(e)}},rS=class{constructor(e){this.accessToken=e}getToken(e){return Promise.resolve({accessToken:this.accessToken})}addTokenChangeListener(e){e(this.accessToken)}removeTokenChangeListener(e){}notifyForInvalidToken(){}};rS.OWNER=`owner`;var iS=`5`,aS=`v`,oS=`s`,sS=`r`,cS=`f`,lS=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,uS=`ls`,dS=`p`,fS=`ac`,pS=`websocket`,mS=`long_polling`,hS=class{constructor(e,t,n,r,i=!1,a=``,o=!1,s=!1,c=null){this.secure=t,this.namespace=n,this.webSocketOnly=r,this.nodeAdmin=i,this.persistenceKey=a,this.includeNamespaceInQueryParams=o,this.isUsingEmulator=s,this.emulatorOptions=c,this._host=e.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(`.`)+1),this.internalHost=bx.get(`host:`+e)||this._host}isCacheableHost(){return this.internalHost.substr(0,2)===`s-`}isCustomHost(){return this._domain!==`firebaseio.com`&&this._domain!==`firebaseio-demo.com`}get host(){return this._host}set host(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&bx.set(`host:`+this._host,this.internalHost))}toString(){let e=this.toURLString();return this.persistenceKey&&(e+=`<`+this.persistenceKey+`>`),e}toURLString(){let e=this.secure?`https://`:`http://`,t=this.includeNamespaceInQueryParams?`?ns=${this.namespace}`:``;return`${e}${this.host}/${t}`}};function gS(e){return e.host!==e.internalHost||e.isCustomHost()||e.includeNamespaceInQueryParams}function _S(e,t,n){B(typeof t==`string`,`typeof type must == string`),B(typeof n==`object`,`typeof params must == object`);let r;if(t===pS)r=(e.secure?`wss://`:`ws://`)+e.internalHost+`/.ws?`;else if(t===mS)r=(e.secure?`https://`:`http://`)+e.internalHost+`/.lp?`;else throw Error(`Unknown connection type: `+t);gS(e)&&(n.ns=e.namespace);let i=[];return Wx(n,(e,t)=>{i.push(e+`=`+t)}),r+i.join(`&`)}var vS=class{constructor(){this.counters_={}}incrementCounter(e,t=1){An(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t}get(){return vr(this.counters_)}},yS={},bS={};function xS(e){let t=e.toString();return yS[t]||(yS[t]=new vS),yS[t]}function SS(e,t){let n=e.toString();return bS[n]||(bS[n]=t()),bS[n]}var CS=class{constructor(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}closeAfter(e,t){this.closeAfterResponse=e,this.onClose=t,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)}handleResponse(e,t){for(this.pendingResponses[e]=t;this.pendingResponses[this.currentResponseNum];){let e=this.pendingResponses[this.currentResponseNum];delete this.pendingResponses[this.currentResponseNum];for(let t=0;t<e.length;++t)e[t]&&Qx(()=>{this.onMessage_(e[t])});if(this.currentResponseNum===this.closeAfterResponse){this.onClose&&=(this.onClose(),null);break}this.currentResponseNum++}}},wS=`start`,TS=`close`,ES=`pLPCommand`,DS=`pRTLPCB`,OS=`id`,kS=`pw`,AS=`ser`,jS=`cb`,MS=`dframe`,NS=1870,PS=30,FS=1840,IS=25e3,LS=3e4,RS=class e{constructor(e,t,n,r,i,a,o){this.connId=e,this.repoInfo=t,this.applicationId=n,this.appCheckToken=r,this.authToken=i,this.transportSessionId=a,this.lastSessionId=o,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=Ax(e),this.stats_=xS(t),this.urlFn=e=>(this.appCheckToken&&(e[fS]=this.appCheckToken),_S(t,mS,e))}open(e,t){this.curSegmentNum=0,this.onDisconnect_=t,this.myPacketOrderer=new CS(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(()=>{this.log_(`Timed out trying to connect.`),this.onClosed_(),this.connectTimeoutTimer_=null},Math.floor(LS)),Ix(()=>{if(this.isClosed_)return;this.scriptTagHolder=new zS((...e)=>{let[t,n,r,i,a]=e;if(this.incrementIncomingBytes_(e),this.scriptTagHolder){if(this.connectTimeoutTimer_&&=(clearTimeout(this.connectTimeoutTimer_),null),this.everConnected_=!0,t===wS)this.id=n,this.password=r;else if(t===TS)n?(this.scriptTagHolder.sendNewPolls=!1,this.myPacketOrderer.closeAfter(n,()=>{this.onClosed_()})):this.onClosed_();else throw Error(`Unrecognized command received: `+t)}},(...e)=>{let[t,n]=e;this.incrementIncomingBytes_(e),this.myPacketOrderer.handleResponse(t,n)},()=>{this.onClosed_()},this.urlFn);let e={};e[wS]=`t`,e[AS]=Math.floor(Math.random()*1e8),this.scriptTagHolder.uniqueCallbackIdentifier&&(e[jS]=this.scriptTagHolder.uniqueCallbackIdentifier),e[aS]=iS,this.transportSessionId&&(e[oS]=this.transportSessionId),this.lastSessionId&&(e[uS]=this.lastSessionId),this.applicationId&&(e[dS]=this.applicationId),this.appCheckToken&&(e[fS]=this.appCheckToken),typeof location<`u`&&location.hostname&&lS.test(location.hostname)&&(e[sS]=cS);let t=this.urlFn(e);this.log_(`Connecting via long-poll to `+t),this.scriptTagHolder.addTag(t,()=>{})})}start(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)}static forceAllow(){e.forceAllow_=!0}static forceDisallow(){e.forceDisallow_=!0}static isAvailable(){return or()?!1:e.forceAllow_?!0:!e.forceDisallow_&&typeof document<`u`&&document.createElement!=null&&!Kx()&&!qx()}markConnectionHealthy(){}shutdown_(){this.isClosed_=!0,this.scriptTagHolder&&=(this.scriptTagHolder.close(),null),this.myDisconnFrame&&=(document.body.removeChild(this.myDisconnFrame),null),this.connectTimeoutTimer_&&=(clearTimeout(this.connectTimeoutTimer_),null)}onClosed_(){this.isClosed_||(this.log_(`Longpoll is closing itself`),this.shutdown_(),this.onDisconnect_&&=(this.onDisconnect_(this.everConnected_),null))}close(){this.isClosed_||(this.log_(`Longpoll is being closed.`),this.shutdown_())}send(e){let t=er(e);this.bytesSent+=t.length,this.stats_.incrementCounter(`bytes_sent`,t.length);let n=Ux(Ln(t),FS);for(let e=0;e<n.length;e++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,n.length,n[e]),this.curSegmentNum++}addDisconnectPingFrame(e,t){if(or())return;this.myDisconnFrame=document.createElement(`iframe`);let n={};n[MS]=`t`,n[OS]=e,n[kS]=t,this.myDisconnFrame.src=this.urlFn(n),this.myDisconnFrame.style.display=`none`,document.body.appendChild(this.myDisconnFrame)}incrementIncomingBytes_(e){let t=er(e).length;this.bytesReceived+=t,this.stats_.incrementCounter(`bytes_received`,t)}},zS=class e{constructor(t,n,r,i){if(this.onDisconnect=r,this.urlFn=i,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(Math.random()*1e8),this.sendNewPolls=!0,or())this.commandCB=t,this.onMessageCB=n;else{this.uniqueCallbackIdentifier=Cx(),window[ES+this.uniqueCallbackIdentifier]=t,window[DS+this.uniqueCallbackIdentifier]=n,this.myIFrame=e.createIFrame_();let r=``;this.myIFrame.src&&this.myIFrame.src.substr(0,11)===`javascript:`&&(r=`<script>document.domain="`+document.domain+`";<\/script>`);let i=`<html><body>`+r+`</body></html>`;try{this.myIFrame.doc.open(),this.myIFrame.doc.write(i),this.myIFrame.doc.close()}catch(e){kx(`frame writing exception`),e.stack&&kx(e.stack),kx(e)}}}static createIFrame_(){let e=document.createElement(`iframe`);if(e.style.display=`none`,document.body){document.body.appendChild(e);try{e.contentWindow.document||kx(`No IE domain setting required`)}catch{e.src=`javascript:void((function(){document.open();document.domain='`+document.domain+`';document.close();})())`}}else throw`Document body has not initialized. Wait to initialize Firebase until after the document is ready.`;return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e}close(){this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.textContent=``,setTimeout(()=>{this.myIFrame!==null&&(document.body.removeChild(this.myIFrame),this.myIFrame=null)},0));let e=this.onDisconnect;e&&(this.onDisconnect=null,e())}startLongPoll(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););}newRequest_(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;let e={};e[OS]=this.myID,e[kS]=this.myPW,e[AS]=this.currentSerial;let t=this.urlFn(e),n=``,r=0;for(;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+PS+n.length<=NS;){let e=this.pendingSegs.shift();n=n+`&seg`+r+`=`+e.seg+`&ts`+r+`=`+e.ts+`&d`+r+`=`+e.d,r++}return t+=n,this.addLongPollTag_(t,this.currentSerial),!0}return!1}enqueueSegment(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()}addLongPollTag_(e,t){this.outstandingRequests.add(t);let n=()=>{this.outstandingRequests.delete(t),this.newRequest_()},r=setTimeout(n,Math.floor(IS));this.addTag(e,()=>{clearTimeout(r),n()})}addTag(e,t){or()?this.doNodeLongPoll(e,t):setTimeout(()=>{try{if(!this.sendNewPolls)return;let n=this.myIFrame.doc.createElement(`script`);n.type=`text/javascript`,n.async=!0,n.src=e,n.onload=n.onreadystatechange=function(){let e=n.readyState;(!e||e===`loaded`||e===`complete`)&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),t())},n.onerror=()=>{kx(`Long-poll script failed to load: `+e),this.sendNewPolls=!1,this.close()},this.myIFrame.doc.body.appendChild(n)}catch{}},1)}},BS=16384,VS=45e3,HS=null;typeof MozWebSocket<`u`?HS=MozWebSocket:typeof WebSocket<`u`&&(HS=WebSocket);var US=class e{constructor(t,n,r,i,a,o,s){this.connId=t,this.applicationId=r,this.appCheckToken=i,this.authToken=a,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=Ax(this.connId),this.stats_=xS(n),this.connURL=e.connectionURL_(n,o,s,i,r),this.nodeAdmin=n.nodeAdmin}static connectionURL_(e,t,n,r,i){let a={};return a[aS]=iS,!or()&&typeof location<`u`&&location.hostname&&lS.test(location.hostname)&&(a[sS]=cS),t&&(a[oS]=t),n&&(a[uS]=n),r&&(a[fS]=r),i&&(a[dS]=i),_S(e,pS,a)}open(e,t){this.onDisconnect=t,this.onMessage=e,this.log_(`Websocket connecting to `+this.connURL),this.everConnected_=!1,bx.set(`previous_websocket_failure`,!0);try{let e;if(or()){let t=this.nodeAdmin?`AdminNode`:`Node`;e={headers:{"User-Agent":`Firebase/${iS}/${hx}/${process.platform}/${t}`,"X-Firebase-GMPID":this.applicationId||``}},this.authToken&&(e.headers.Authorization=`Bearer ${this.authToken}`),this.appCheckToken&&(e.headers[`X-Firebase-AppCheck`]=this.appCheckToken);let n={},r=this.connURL.indexOf(`wss://`)===0?n.HTTPS_PROXY||n.https_proxy:n.HTTP_PROXY||n.http_proxy;r&&(e.proxy={origin:r})}this.mySock=new HS(this.connURL,[],e)}catch(e){this.log_(`Error instantiating WebSocket.`);let t=e.message||e.data;t&&this.log_(t),this.onClosed_();return}this.mySock.onopen=()=>{this.log_(`Websocket connected.`),this.everConnected_=!0},this.mySock.onclose=()=>{this.log_(`Websocket connection was disconnected.`),this.mySock=null,this.onClosed_()},this.mySock.onmessage=e=>{this.handleIncomingFrame(e)},this.mySock.onerror=e=>{this.log_(`WebSocket error. Closing connection.`);let t=e.message||e.data;t&&this.log_(t),this.onClosed_()}}start(){}static forceDisallow(){e.forceDisallow_=!0}static isAvailable(){let t=!1;if(typeof navigator<`u`&&navigator.userAgent){let e=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);e&&e.length>1&&parseFloat(e[1])<4.4&&(t=!0)}return!t&&HS!==null&&!e.forceDisallow_}static previouslyFailed(){return bx.isInMemoryStorage||bx.get(`previous_websocket_failure`)===!0}markConnectionHealthy(){bx.remove(`previous_websocket_failure`)}appendFrame_(e){if(this.frames.push(e),this.frames.length===this.totalFrames){let e=this.frames.join(``);this.frames=null;let t=dr(e);this.onMessage(t)}}handleNewFrameCount_(e){this.totalFrames=e,this.frames=[]}extractFrameCount_(e){if(B(this.frames===null,`We already have a frame buffer`),e.length<=6){let t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e}handleIncomingFrame(e){if(this.mySock===null)return;let t=e.data;if(this.bytesReceived+=t.length,this.stats_.incrementCounter(`bytes_received`,t.length),this.resetKeepAlive(),this.frames!==null)this.appendFrame_(t);else{let e=this.extractFrameCount_(t);e!==null&&this.appendFrame_(e)}}send(e){this.resetKeepAlive();let t=er(e);this.bytesSent+=t.length,this.stats_.incrementCounter(`bytes_sent`,t.length);let n=Ux(t,BS);n.length>1&&this.sendString_(String(n.length));for(let e=0;e<n.length;e++)this.sendString_(n[e])}shutdown_(){this.isClosed_=!0,this.keepaliveTimer&&=(clearInterval(this.keepaliveTimer),null),this.mySock&&=(this.mySock.close(),null)}onClosed_(){this.isClosed_||(this.log_(`WebSocket is closing itself`),this.shutdown_(),this.onDisconnect&&=(this.onDisconnect(this.everConnected_),null))}close(){this.isClosed_||(this.log_(`WebSocket is being closed`),this.shutdown_())}resetKeepAlive(){clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval(()=>{this.mySock&&this.sendString_(`0`),this.resetKeepAlive()},Math.floor(VS))}sendString_(e){try{this.mySock.send(e)}catch(e){this.log_(`Exception thrown from WebSocket.send():`,e.message||e.data,`Closing connection.`),setTimeout(this.onClosed_.bind(this),0)}}};US.responsesRequiredToBeHealthy=2,US.healthyTimeout=3e4;var WS=class e{static get ALL_TRANSPORTS(){return[RS,US]}static get IS_TRANSPORT_INITIALIZED(){return this.globalTransportInitialized_}constructor(e){this.initTransports_(e)}initTransports_(t){let n=US&&US.isAvailable(),r=n&&!US.previouslyFailed();if(t.webSocketOnly&&(n||Nx(`wss:// URL used, but browser isn't known to support websockets. Trying anyway.`),r=!0),r)this.transports_=[US];else{let t=this.transports_=[];for(let n of e.ALL_TRANSPORTS)n&&n.isAvailable()&&t.push(n);e.globalTransportInitialized_=!0}}initialTransport(){if(this.transports_.length>0)return this.transports_[0];throw Error(`No transports available`)}upgradeTransport(){return this.transports_.length>1?this.transports_[1]:null}};WS.globalTransportInitialized_=!1;var GS=6e4,KS=5e3,qS=10240,JS=102400,YS=`t`,XS=`d`,ZS=`s`,QS=`r`,$S=`e`,eC=`o`,tC=`a`,nC=`n`,rC=`p`,iC=`h`,aC=class{constructor(e,t,n,r,i,a,o,s,c,l){this.id=e,this.repoInfo_=t,this.applicationId_=n,this.appCheckToken_=r,this.authToken_=i,this.onMessage_=a,this.onReady_=o,this.onDisconnect_=s,this.onKill_=c,this.lastSessionId=l,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=Ax(`c:`+this.id+`:`),this.transportManager_=new WS(t),this.log_(`Connection created`),this.start_()}start_(){let e=this.transportManager_.initialTransport();this.conn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;let t=this.connReceiver_(this.conn_),n=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(()=>{this.conn_&&this.conn_.open(t,n)},0);let r=e.healthyTimeout||0;r>0&&(this.healthyTimeout_=eS(()=>{this.healthyTimeout_=null,this.isHealthy_||(this.conn_&&this.conn_.bytesReceived>JS?(this.log_(`Connection exceeded healthy timeout but has received `+this.conn_.bytesReceived+` bytes. Marking connection healthy.`),this.isHealthy_=!0,this.conn_.markConnectionHealthy()):this.conn_&&this.conn_.bytesSent>qS?this.log_(`Connection exceeded healthy timeout but has sent `+this.conn_.bytesSent+` bytes. Leaving connection alive.`):(this.log_(`Closing unhealthy connection after timeout.`),this.close()))},Math.floor(r)))}nextTransportId_(){return`c:`+this.id+`:`+this.connectionCount++}disconnReceiver_(e){return t=>{e===this.conn_?this.onConnectionLost_(t):e===this.secondaryConn_?(this.log_(`Secondary connection lost.`),this.onSecondaryConnectionLost_()):this.log_(`closing an old connection`)}}connReceiver_(e){return t=>{this.state_!==2&&(e===this.rx_?this.onPrimaryMessageReceived_(t):e===this.secondaryConn_?this.onSecondaryMessageReceived_(t):this.log_(`message on old connection`))}}sendRequest(e){let t={t:`d`,d:e};this.sendData_(t)}tryCleanupConnection(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_(`cleaning up and promoting a connection: `+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)}onSecondaryControl_(e){if(YS in e){let t=e[YS];t===tC?this.upgradeIfSecondaryHealthy_():t===QS?(this.log_(`Got a reset on secondary, closing it`),this.secondaryConn_.close(),(this.tx_===this.secondaryConn_||this.rx_===this.secondaryConn_)&&this.close()):t===eC&&(this.log_(`got pong on secondary.`),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}}onSecondaryMessageReceived_(e){let t=Vx(`t`,e),n=Vx(`d`,e);if(t===`c`)this.onSecondaryControl_(n);else if(t===`d`)this.pendingDataMessages.push(n);else throw Error(`Unknown protocol layer: `+t)}upgradeIfSecondaryHealthy_(){this.secondaryResponsesRequired_<=0?(this.log_(`Secondary connection is healthy.`),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_(`sending ping on secondary.`),this.secondaryConn_.send({t:`c`,d:{t:rC,d:{}}}))}proceedWithUpgrade_(){this.secondaryConn_.start(),this.log_(`sending client ack on secondary`),this.secondaryConn_.send({t:`c`,d:{t:tC,d:{}}}),this.log_(`Ending transmission on primary`),this.conn_.send({t:`c`,d:{t:nC,d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()}onPrimaryMessageReceived_(e){let t=Vx(`t`,e),n=Vx(`d`,e);t===`c`?this.onControl_(n):t===`d`&&this.onDataMessage_(n)}onDataMessage_(e){this.onPrimaryResponse_(),this.onMessage_(e)}onPrimaryResponse_(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_(`Primary connection is healthy.`),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))}onControl_(e){let t=Vx(YS,e);if(XS in e){let n=e[XS];if(t===iC){let e={...n};this.repoInfo_.isUsingEmulator&&(e.h=this.repoInfo_.host),this.onHandshake_(e)}else if(t===nC){this.log_(`recvd end transmission on primary`),this.rx_=this.secondaryConn_;for(let e=0;e<this.pendingDataMessages.length;++e)this.onDataMessage_(this.pendingDataMessages[e]);this.pendingDataMessages=[],this.tryCleanupConnection()}else t===ZS?this.onConnectionShutdown_(n):t===QS?this.onReset_(n):t===$S?jx(`Server Error: `+n):t===eC?(this.log_(`got pong on primary.`),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):jx(`Unknown control packet command: `+t)}}onHandshake_(e){let t=e.ts,n=e.v,r=e.h;this.sessionId=e.s,this.repoInfo_.host=r,this.state_===0&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,t),iS!==n&&Nx(`Protocol version mismatch detected`),this.tryStartUpgrade_())}tryStartUpgrade_(){let e=this.transportManager_.upgradeTransport();e&&this.startUpgrade_(e)}startUpgrade_(e){this.secondaryConn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,this.sessionId),this.secondaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;let t=this.connReceiver_(this.secondaryConn_),n=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(t,n),eS(()=>{this.secondaryConn_&&(this.log_(`Timed out trying to upgrade.`),this.secondaryConn_.close())},Math.floor(GS))}onReset_(e){this.log_(`Reset packet received. New host: `+e),this.repoInfo_.host=e,this.state_===1?this.close():(this.closeConnections_(),this.start_())}onConnectionEstablished_(e,t){this.log_(`Realtime connection established.`),this.conn_=e,this.state_=1,this.onReady_&&=(this.onReady_(t,this.sessionId),null),this.primaryResponsesRequired_===0?(this.log_(`Primary connection is healthy.`),this.isHealthy_=!0):eS(()=>{this.sendPingOnPrimaryIfNecessary_()},Math.floor(KS))}sendPingOnPrimaryIfNecessary_(){!this.isHealthy_&&this.state_===1&&(this.log_(`sending ping on primary.`),this.sendData_({t:`c`,d:{t:rC,d:{}}}))}onSecondaryConnectionLost_(){let e=this.secondaryConn_;this.secondaryConn_=null,(this.tx_===e||this.rx_===e)&&this.close()}onConnectionLost_(e){this.conn_=null,!e&&this.state_===0?(this.log_(`Realtime connection failed.`),this.repoInfo_.isCacheableHost()&&(bx.remove(`host:`+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)):this.state_===1&&this.log_(`Realtime connection lost.`),this.close()}onConnectionShutdown_(e){this.log_(`Connection shutdown command received. Shutting down...`),this.onKill_&&=(this.onKill_(e),null),this.onDisconnect_=null,this.close()}sendData_(e){if(this.state_!==1)throw`Connection is not connected`;this.tx_.send(e)}close(){this.state_!==2&&(this.log_(`Closing realtime connection.`),this.state_=2,this.closeConnections_(),this.onDisconnect_&&=(this.onDisconnect_(),null))}closeConnections_(){this.log_(`Shutting down all connections`),this.conn_&&=(this.conn_.close(),null),this.secondaryConn_&&=(this.secondaryConn_.close(),null),this.healthyTimeout_&&=(clearTimeout(this.healthyTimeout_),null)}},oC=class{put(e,t,n,r){}merge(e,t,n,r){}refreshAuthToken(e){}refreshAppCheckToken(e){}onDisconnectPut(e,t,n){}onDisconnectMerge(e,t,n){}onDisconnectCancel(e,t){}reportStats(e){}},sC=class{constructor(e){this.allowedEvents_=e,this.listeners_={},B(Array.isArray(e)&&e.length>0,`Requires a non-empty array`)}trigger(e,...t){if(Array.isArray(this.listeners_[e])){let n=[...this.listeners_[e]];for(let e=0;e<n.length;e++)n[e].callback.apply(n[e].context,t)}}on(e,t,n){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:t,context:n});let r=this.getInitialEvent(e);r&&t.apply(n,r)}off(e,t,n){this.validateEventType_(e);let r=this.listeners_[e]||[];for(let e=0;e<r.length;e++)if(r[e].callback===t&&(!n||n===r[e].context)){r.splice(e,1);return}}validateEventType_(e){B(this.allowedEvents_.find(t=>t===e),`Unknown event: `+e)}},cC=class e extends sC{static getInstance(){return new e}constructor(){super([`online`]),this.online_=!0,typeof window<`u`&&window.addEventListener!==void 0&&!fr()&&(window.addEventListener(`online`,()=>{this.online_||(this.online_=!0,this.trigger(`online`,!0))},!1),window.addEventListener(`offline`,()=>{this.online_&&(this.online_=!1,this.trigger(`online`,!1))},!1))}getInitialEvent(e){return B(e===`online`,`Unknown event type: `+e),[this.online_]}currentlyOnline(){return this.online_}},lC=32,uC=768,dC=class{constructor(e,t){if(t===void 0){this.pieces_=e.split(`/`);let t=0;for(let e=0;e<this.pieces_.length;e++)this.pieces_[e].length>0&&(this.pieces_[t]=this.pieces_[e],t++);this.pieces_.length=t,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}toString(){let e=``;for(let t=this.pieceNum_;t<this.pieces_.length;t++)this.pieces_[t]!==``&&(e+=`/`+this.pieces_[t]);return e||`/`}};function X(){return new dC(``)}function Z(e){return e.pieceNum_>=e.pieces_.length?null:e.pieces_[e.pieceNum_]}function fC(e){return e.pieces_.length-e.pieceNum_}function pC(e){let t=e.pieceNum_;return t<e.pieces_.length&&t++,new dC(e.pieces_,t)}function mC(e){return e.pieceNum_<e.pieces_.length?e.pieces_[e.pieces_.length-1]:null}function hC(e){let t=``;for(let n=e.pieceNum_;n<e.pieces_.length;n++)e.pieces_[n]!==``&&(t+=`/`+encodeURIComponent(String(e.pieces_[n])));return t||`/`}function gC(e,t=0){return e.pieces_.slice(e.pieceNum_+t)}function _C(e){if(e.pieceNum_>=e.pieces_.length)return null;let t=[];for(let n=e.pieceNum_;n<e.pieces_.length-1;n++)t.push(e.pieces_[n]);return new dC(t,0)}function vC(e,t){let n=[];for(let t=e.pieceNum_;t<e.pieces_.length;t++)n.push(e.pieces_[t]);if(t instanceof dC)for(let e=t.pieceNum_;e<t.pieces_.length;e++)n.push(t.pieces_[e]);else{let e=t.split(`/`);for(let t=0;t<e.length;t++)e[t].length>0&&n.push(e[t])}return new dC(n,0)}function Q(e){return e.pieceNum_>=e.pieces_.length}function yC(e,t){let n=Z(e),r=Z(t);if(n===null)return t;if(n===r)return yC(pC(e),pC(t));throw Error(`INTERNAL ERROR: innerPath (`+t+`) is not within outerPath (`+e+`)`)}function bC(e,t){if(fC(e)!==fC(t))return!1;for(let n=e.pieceNum_,r=t.pieceNum_;n<=e.pieces_.length;n++,r++)if(e.pieces_[n]!==t.pieces_[r])return!1;return!0}function xC(e,t){let n=e.pieceNum_,r=t.pieceNum_;if(fC(e)>fC(t))return!1;for(;n<e.pieces_.length;){if(e.pieces_[n]!==t.pieces_[r])return!1;++n,++r}return!0}var SC=class{constructor(e,t){this.errorPrefix_=t,this.parts_=gC(e,0),this.byteLength_=Math.max(1,this.parts_.length);for(let e=0;e<this.parts_.length;e++)this.byteLength_+=cr(this.parts_[e]);TC(this)}};function CC(e,t){e.parts_.length>0&&(e.byteLength_+=1),e.parts_.push(t),e.byteLength_+=cr(t),TC(e)}function wC(e){let t=e.parts_.pop();e.byteLength_-=cr(t),e.parts_.length>0&&--e.byteLength_}function TC(e){if(e.byteLength_>uC)throw Error(e.errorPrefix_+`has a key path longer than 768 bytes (`+e.byteLength_+`).`);if(e.parts_.length>lC)throw Error(e.errorPrefix_+`path specified exceeds the maximum depth that can be written (32) or object contains a cycle `+EC(e))}function EC(e){return e.parts_.length===0?``:`in property '`+e.parts_.join(`.`)+`'`}var DC=class e extends sC{static getInstance(){return new e}constructor(){super([`visible`]);let e,t;typeof document<`u`&&document.addEventListener!==void 0&&(document.hidden===void 0?document.mozHidden===void 0?document.msHidden===void 0?document.webkitHidden!==void 0&&(t=`webkitvisibilitychange`,e=`webkitHidden`):(t=`msvisibilitychange`,e=`msHidden`):(t=`mozvisibilitychange`,e=`mozHidden`):(t=`visibilitychange`,e=`hidden`)),this.visible_=!0,t&&document.addEventListener(t,()=>{let t=!document[e];t!==this.visible_&&(this.visible_=t,this.trigger(`visible`,t))},!1)}getInitialEvent(e){return B(e===`visible`,`Unknown event type: `+e),[this.visible_]}},OC=1e3,kC=3e5,AC=3e4,jC=1.3,MC=3e4,NC=`server_kill`,PC=3,FC=class e extends oC{constructor(t,n,r,i,a,o,s,c){if(super(),this.repoInfo_=t,this.applicationId_=n,this.onDataUpdate_=r,this.onConnectStatus_=i,this.onServerInfoUpdate_=a,this.authTokenProvider_=o,this.appCheckTokenProvider_=s,this.authOverride_=c,this.id=e.nextPersistentConnectionId_++,this.log_=Ax(`p:`+this.id+`:`),this.interruptReasons_={},this.listens=new Map,this.outstandingPuts_=[],this.outstandingGets_=[],this.outstandingPutCount_=0,this.outstandingGetCount_=0,this.onDisconnectRequestQueue_=[],this.connected_=!1,this.reconnectDelay_=OC,this.maxReconnectDelay_=kC,this.securityDebugCallback_=null,this.lastSessionId=null,this.establishConnectionTimer_=null,this.visible_=!1,this.requestCBHash_={},this.requestNumber_=0,this.realtime_=null,this.authToken_=null,this.appCheckToken_=null,this.forceTokenRefresh_=!1,this.invalidAuthTokenCount_=0,this.invalidAppCheckTokenCount_=0,this.firstConnection_=!0,this.lastConnectionAttemptTime_=null,this.lastConnectionEstablishedTime_=null,c&&!or())throw Error(`Auth override specified in options, but not supported on non Node.js platforms`);DC.getInstance().on(`visible`,this.onVisible_,this),t.host.indexOf(`fblocal`)===-1&&cC.getInstance().on(`online`,this.onOnline_,this)}sendRequest(e,t,n){let r=++this.requestNumber_,i={r,a:e,b:t};this.log_(er(i)),B(this.connected_,`sendRequest call when we're not connected not allowed.`),this.realtime_.sendRequest(i),n&&(this.requestCBHash_[r]=n)}get(e){this.initConnection_();let t=new Dn,n={action:`g`,request:{p:e._path.toString(),q:e._queryObject},onComplete:e=>{let n=e.d;e.s===`ok`?t.resolve(n):t.reject(n)}};this.outstandingGets_.push(n),this.outstandingGetCount_++;let r=this.outstandingGets_.length-1;return this.connected_&&this.sendGet_(r),t.promise}listen(e,t,n,r){this.initConnection_();let i=e._queryIdentifier,a=e._path.toString();this.log_(`Listen called for `+a+` `+i),this.listens.has(a)||this.listens.set(a,new Map),B(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),`listen() called for non-default but complete query`),B(!this.listens.get(a).has(i),`listen() called twice for same path/queryId.`);let o={onComplete:r,hashFn:t,query:e,tag:n};this.listens.get(a).set(i,o),this.connected_&&this.sendListen_(o)}sendGet_(e){let t=this.outstandingGets_[e];this.sendRequest(`g`,t.request,n=>{delete this.outstandingGets_[e],this.outstandingGetCount_--,this.outstandingGetCount_===0&&(this.outstandingGets_=[]),t.onComplete&&t.onComplete(n)})}sendListen_(t){let n=t.query,r=n._path.toString(),i=n._queryIdentifier;this.log_(`Listen on `+r+` for `+i);let a={p:r};t.tag&&(a.q=n._queryObject,a.t=t.tag),a.h=t.hashFn(),this.sendRequest(`q`,a,a=>{let o=a.d,s=a.s;e.warnOnListenWarnings_(o,n),(this.listens.get(r)&&this.listens.get(r).get(i))===t&&(this.log_(`listen response`,a),s!==`ok`&&this.removeListen_(r,i),t.onComplete&&t.onComplete(s,o))})}static warnOnListenWarnings_(e,t){if(e&&typeof e==`object`&&An(e,`w`)){let n=Qn(e,`w`);Array.isArray(n)&&~n.indexOf(`no_index`)&&Nx(`Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding ${`".indexOn": "`+t._queryParams.getIndex().toString()+`"`} at ${t._path.toString()} to your security rules for better performance.`)}}refreshAuthToken(e){this.authToken_=e,this.log_(`Auth token refreshed`),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest(`unauth`,{},()=>{}),this.reduceReconnectDelayIfAdminCredential_(e)}reduceReconnectDelayIfAdminCredential_(e){(e&&e.length===40||jn(e))&&(this.log_(`Admin auth credential detected. Reducing max reconnect time.`),this.maxReconnectDelay_=AC)}refreshAppCheckToken(e){this.appCheckToken_=e,this.log_(`App check token refreshed`),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest(`unappeck`,{},()=>{})}tryAuth(){if(this.connected_&&this.authToken_){let e=this.authToken_,t=qn(e)?`auth`:`gauth`,n={cred:e};this.authOverride_===null?n.noauth=!0:typeof this.authOverride_==`object`&&(n.authvar=this.authOverride_),this.sendRequest(t,n,t=>{let n=t.s,r=t.d||`error`;this.authToken_===e&&(n===`ok`?this.invalidAuthTokenCount_=0:this.onAuthRevoked_(n,r))})}}tryAppCheck(){this.connected_&&this.appCheckToken_&&this.sendRequest(`appcheck`,{token:this.appCheckToken_},e=>{let t=e.s,n=e.d||`error`;t===`ok`?this.invalidAppCheckTokenCount_=0:this.onAppCheckRevoked_(t,n)})}unlisten(e,t){let n=e._path.toString(),r=e._queryIdentifier;this.log_(`Unlisten called for `+n+` `+r),B(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),`unlisten() called for non-default but complete query`),this.removeListen_(n,r)&&this.connected_&&this.sendUnlisten_(n,r,e._queryObject,t)}sendUnlisten_(e,t,n,r){this.log_(`Unlisten on `+e+` for `+t);let i={p:e};r&&(i.q=n,i.t=r),this.sendRequest(`n`,i)}onDisconnectPut(e,t,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_(`o`,e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:`o`,data:t,onComplete:n})}onDisconnectMerge(e,t,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_(`om`,e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:`om`,data:t,onComplete:n})}onDisconnectCancel(e,t){this.initConnection_(),this.connected_?this.sendOnDisconnect_(`oc`,e,null,t):this.onDisconnectRequestQueue_.push({pathString:e,action:`oc`,data:null,onComplete:t})}sendOnDisconnect_(e,t,n,r){let i={p:t,d:n};this.log_(`onDisconnect `+e,i),this.sendRequest(e,i,e=>{r&&setTimeout(()=>{r(e.s,e.d)},0)})}put(e,t,n,r){this.putInternal(`p`,e,t,n,r)}merge(e,t,n,r){this.putInternal(`m`,e,t,n,r)}putInternal(e,t,n,r,i){this.initConnection_();let a={p:t,d:n};i!==void 0&&(a.h=i),this.outstandingPuts_.push({action:e,request:a,onComplete:r}),this.outstandingPutCount_++;let o=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(o):this.log_(`Buffering put: `+t)}sendPut_(e){let t=this.outstandingPuts_[e].action,n=this.outstandingPuts_[e].request,r=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(t,n,n=>{this.log_(t+` response`,n),delete this.outstandingPuts_[e],this.outstandingPutCount_--,this.outstandingPutCount_===0&&(this.outstandingPuts_=[]),r&&r(n.s,n.d)})}reportStats(e){if(this.connected_){let t={c:e};this.log_(`reportStats`,t),this.sendRequest(`s`,t,e=>{if(e.s!==`ok`){let t=e.d;this.log_(`reportStats`,`Error sending stats: `+t)}})}}onDataMessage_(e){if(`r`in e){this.log_(`from server: `+er(e));let t=e.r,n=this.requestCBHash_[t];n&&(delete this.requestCBHash_[t],n(e.b))}else if(`error`in e)throw`A server-side error has occurred: `+e.error;else`a`in e&&this.onDataPush_(e.a,e.b)}onDataPush_(e,t){this.log_(`handleServerMessage`,e,t),e===`d`?this.onDataUpdate_(t.p,t.d,!1,t.t):e===`m`?this.onDataUpdate_(t.p,t.d,!0,t.t):e===`c`?this.onListenRevoked_(t.p,t.q):e===`ac`?this.onAuthRevoked_(t.s,t.d):e===`apc`?this.onAppCheckRevoked_(t.s,t.d):e===`sd`?this.onSecurityDebugPacket_(t):jx(`Unrecognized action received from server: `+er(e)+` 20Are you using the latest client?`)}onReady_(e,t){this.log_(`connection ready`),this.connected_=!0,this.lastConnectionEstablishedTime_=new Date().getTime(),this.handleTimestamp_(e),this.lastSessionId=t,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)}scheduleConnect_(e){B(!this.realtime_,`Scheduling a connect when we're already connected/ing?`),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(()=>{this.establishConnectionTimer_=null,this.establishConnection_()},Math.floor(e))}initConnection_(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)}onVisible_(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_(`Window became visible. Reducing delay.`),this.reconnectDelay_=OC,this.realtime_||this.scheduleConnect_(0)),this.visible_=e}onOnline_(e){e?(this.log_(`Browser went online.`),this.reconnectDelay_=OC,this.realtime_||this.scheduleConnect_(0)):(this.log_(`Browser went offline. Killing connection.`),this.realtime_&&this.realtime_.close())}onRealtimeDisconnect_(){if(this.log_(`data client disconnected`),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){this.visible_?this.lastConnectionEstablishedTime_&&=(new Date().getTime()-this.lastConnectionEstablishedTime_>MC&&(this.reconnectDelay_=OC),null):(this.log_(`Window isn't visible. Delaying reconnect.`),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=new Date().getTime());let e=Math.max(0,new Date().getTime()-this.lastConnectionAttemptTime_),t=Math.max(0,this.reconnectDelay_-e);t=Math.random()*t,this.log_(`Trying to reconnect in `+t+`ms`),this.scheduleConnect_(t),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,this.reconnectDelay_*jC)}this.onConnectStatus_(!1)}async establishConnection_(){if(this.shouldReconnect_()){this.log_(`Making a connection attempt`),this.lastConnectionAttemptTime_=new Date().getTime(),this.lastConnectionEstablishedTime_=null;let t=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),i=this.id+`:`+e.nextConnectionId_++,a=this.lastSessionId,o=!1,s=null,c=function(){s?s.close():(o=!0,r())},l=function(e){B(s,`sendRequest call when we're not connected not allowed.`),s.sendRequest(e)};this.realtime_={close:c,sendRequest:l};let u=this.forceTokenRefresh_;this.forceTokenRefresh_=!1;try{let[e,c]=await Promise.all([this.authTokenProvider_.getToken(u),this.appCheckTokenProvider_.getToken(u)]);o?kx(`getToken() completed but was canceled`):(kx(`getToken() completed. Creating connection.`),this.authToken_=e&&e.accessToken,this.appCheckToken_=c&&c.token,s=new aC(i,this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,t,n,r,e=>{Nx(e+` (`+this.repoInfo_.toString()+`)`),this.interrupt(NC)},a))}catch(e){this.log_(`Failed to get token: `+e),o||(this.repoInfo_.nodeAdmin&&Nx(e),c())}}}interrupt(e){kx(`Interrupting connection for reason: `+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&=(clearTimeout(this.establishConnectionTimer_),null),this.connected_&&this.onRealtimeDisconnect_())}resume(e){kx(`Resuming connection for reason: `+e),delete this.interruptReasons_[e],Rn(this.interruptReasons_)&&(this.reconnectDelay_=OC,this.realtime_||this.scheduleConnect_(0))}handleTimestamp_(e){let t=e-new Date().getTime();this.onServerInfoUpdate_({serverTimeOffset:t})}cancelSentTransactions_(){for(let e=0;e<this.outstandingPuts_.length;e++){let t=this.outstandingPuts_[e];t&&`h`in t.request&&t.queued&&(t.onComplete&&t.onComplete(`disconnect`),delete this.outstandingPuts_[e],this.outstandingPutCount_--)}this.outstandingPutCount_===0&&(this.outstandingPuts_=[])}onListenRevoked_(e,t){let n;n=t?t.map(e=>Hx(e)).join(`$`):`default`;let r=this.removeListen_(e,n);r&&r.onComplete&&r.onComplete(`permission_denied`)}removeListen_(e,t){let n=new dC(e).toString(),r;if(this.listens.has(n)){let e=this.listens.get(n);r=e.get(t),e.delete(t),e.size===0&&this.listens.delete(n)}else r=void 0;return r}onAuthRevoked_(e,t){kx(`Auth token revoked: `+e+`/`+t),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),(e===`invalid_token`||e===`permission_denied`)&&(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=PC&&(this.reconnectDelay_=AC,this.authTokenProvider_.notifyForInvalidToken()))}onAppCheckRevoked_(e,t){kx(`App check token revoked: `+e+`/`+t),this.appCheckToken_=null,this.forceTokenRefresh_=!0,(e===`invalid_token`||e===`permission_denied`)&&(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=PC&&this.appCheckTokenProvider_.notifyForInvalidToken())}onSecurityDebugPacket_(e){this.securityDebugCallback_?this.securityDebugCallback_(e):`msg`in e&&console.log(`FIREBASE: `+e.msg.replace(` 21`,` 22FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(let e of this.listens.values())for(let t of e.values())this.sendListen_(t);for(let e=0;e<this.outstandingPuts_.length;e++)this.outstandingPuts_[e]&&this.sendPut_(e);for(;this.onDisconnectRequestQueue_.length;){let e=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(e.action,e.pathString,e.data,e.onComplete)}for(let e=0;e<this.outstandingGets_.length;e++)this.outstandingGets_[e]&&this.sendGet_(e)}sendConnectStats_(){let e={},t=`js`;or()&&(t=this.repoInfo_.nodeAdmin?`admin_node`:`node`),e[`sdk.`+t+`.`+hx.replace(/\./g,`-`)]=1,fr()?e[`framework.cordova`]=1:ur()&&(e[`framework.reactnative`]=1),this.reportStats(e)}shouldReconnect_(){let e=cC.getInstance().currentlyOnline();return Rn(this.interruptReasons_)&&e}};FC.nextPersistentConnectionId_=0,FC.nextConnectionId_=0;var $=class e{constructor(e,t){this.name=e,this.node=t}static Wrap(t,n){return new e(t,n)}},IC=class{getCompare(){return this.compare.bind(this)}indexedValueChanged(e,t){let n=new $(Lx,e),r=new $(Lx,t);return this.compare(n,r)!==0}minPost(){return $.MIN}},LC,RC=class extends IC{static get __EMPTY_NODE(){return LC}static set __EMPTY_NODE(e){LC=e}compare(e,t){return zx(e.name,t.name)}isDefinedOn(e){throw tr(`KeyIndex.isDefinedOn not expected to be called.`)}indexedValueChanged(e,t){return!1}minPost(){return $.MIN}maxPost(){return new $(Rx,LC)}makePost(e,t){return B(typeof e==`string`,`KeyIndex indexValue must always be a string.`),new $(e,LC)}toString(){return`.key`}},zC=new RC,BC=class{constructor(e,t,n,r,i=null){this.isReverse_=r,this.resultGenerator_=i,this.nodeStack_=[];let a=1;for(;!e.isEmpty();)if(e=e,a=t?n(e.key,t):1,r&&(a*=-1),a<0)e=this.isReverse_?e.left:e.right;else if(a===0){this.nodeStack_.push(e);break}else this.nodeStack_.push(e),e=this.isReverse_?e.right:e.left}getNext(){if(this.nodeStack_.length===0)return null;let e=this.nodeStack_.pop(),t;if(t=this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value},this.isReverse_)for(e=e.left;!e.isEmpty();)this.nodeStack_.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack_.push(e),e=e.left;return t}hasNext(){return this.nodeStack_.length>0}peek(){if(this.nodeStack_.length===0)return null;let e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}}},VC=class e{constructor(t,n,r,i,a){this.key=t,this.value=n,this.color=r??e.RED,this.left=i??UC.EMPTY_NODE,this.right=a??UC.EMPTY_NODE}copy(t,n,r,i,a){return new e(t??this.key,n??this.value,r??this.color,i??this.left,a??this.right)}count(){return this.left.count()+1+this.right.count()}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||!!e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min_(){return this.left.isEmpty()?this:this.left.min_()}minKey(){return this.min_().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,n){let r=this,i=n(e,r.key);return r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):i===0?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n)),r.fixUp_()}removeMin_(){if(this.left.isEmpty())return UC.EMPTY_NODE;let e=this;return!e.left.isRed_()&&!e.left.left.isRed_()&&(e=e.moveRedLeft_()),e=e.copy(null,null,null,e.left.removeMin_(),null),e.fixUp_()}remove(e,t){let n,r;if(n=this,t(e,n.key)<0)!n.left.isEmpty()&&!n.left.isRed_()&&!n.left.left.isRed_()&&(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),!n.right.isEmpty()&&!n.right.isRed_()&&!n.right.left.isRed_()&&(n=n.moveRedRight_()),t(e,n.key)===0){if(n.right.isEmpty())return UC.EMPTY_NODE;r=n.right.min_(),n=n.copy(r.key,r.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp_()}isRed_(){return this.color}fixUp_(){let e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e}moveRedLeft_(){let e=this.colorFlip_();return e.right.left.isRed_()&&(e=e.copy(null,null,null,null,e.right.rotateRight_()),e=e.rotateLeft_(),e=e.colorFlip_()),e}moveRedRight_(){let e=this.colorFlip_();return e.left.left.isRed_()&&(e=e.rotateRight_(),e=e.colorFlip_()),e}rotateLeft_(){let t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)}rotateRight_(){let t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)}colorFlip_(){let e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth_(){return 2**this.check_()<=this.count()+1}check_(){if(this.isRed_()&&this.left.isRed_())throw Error(`Red node has red child(`+this.key+`,`+this.value+`)`);if(this.right.isRed_())throw Error(`Right child of (`+this.key+`,`+this.value+`) is red`);let e=this.left.check_();if(e!==this.right.check_())throw Error(`Black depths differ`);return e+ +!this.isRed_()}};VC.RED=!0,VC.BLACK=!1;var HC=class{copy(e,t,n,r,i){return this}insert(e,t,n){return new VC(e,t,null)}remove(e,t){return this}count(){return 0}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}check_(){return 0}isRed_(){return!1}},UC=class e{constructor(t,n=e.EMPTY_NODE){this.comparator_=t,this.root_=n}insert(t,n){return new e(this.comparator_,this.root_.insert(t,n,this.comparator_).copy(null,null,VC.BLACK,null,null))}remove(t){return new e(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,VC.BLACK,null,null))}get(e){let t,n=this.root_;for(;!n.isEmpty();){if(t=this.comparator_(e,n.key),t===0)return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null}getPredecessorKey(e){let t,n=this.root_,r=null;for(;!n.isEmpty();){if(t=this.comparator_(e,n.key),t===0){if(!n.left.isEmpty()){for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}return r?r.key:null}t<0?n=n.left:t>0&&(r=n,n=n.right)}throw Error(`Attempted to find predecessor key for a nonexistent key. What gives?`)}isEmpty(){return this.root_.isEmpty()}count(){return this.root_.count()}minKey(){return this.root_.minKey()}maxKey(){return this.root_.maxKey()}inorderTraversal(e){return this.root_.inorderTraversal(e)}reverseTraversal(e){return this.root_.reverseTraversal(e)}getIterator(e){return new BC(this.root_,null,this.comparator_,!1,e)}getIteratorFrom(e,t){return new BC(this.root_,e,this.comparator_,!1,t)}getReverseIteratorFrom(e,t){return new BC(this.root_,e,this.comparator_,!0,t)}getReverseIterator(e){return new BC(this.root_,null,this.comparator_,!0,e)}};UC.EMPTY_NODE=new HC;function WC(e,t){return zx(e.name,t.name)}function GC(e,t){return zx(e,t)}var KC;function qC(e){KC=e}var JC=function(e){return typeof e==`number`?`number:`+Gx(e):`string:`+e},YC=function(e){if(e.isLeafNode()){let t=e.val();B(typeof t==`string`||typeof t==`number`||typeof t==`object`&&An(t,`.sv`),`Priority must be a string or number.`)}else B(e===KC||e.isEmpty(),`priority of unexpected type.`);B(e===KC||e.getPriority().isEmpty(),`Priority nodes can't have a priority of their own.`)},XC,ZC=class e{static set __childrenNodeConstructor(e){XC=e}static get __childrenNodeConstructor(){return XC}constructor(t,n=e.__childrenNodeConstructor.EMPTY_NODE){this.value_=t,this.priorityNode_=n,this.lazyHash_=null,B(this.value_!==void 0&&this.value_!==null,`LeafNode shouldn't be created with null/undefined value.`),YC(this.priorityNode_)}isLeafNode(){return!0}getPriority(){return this.priorityNode_}updatePriority(t){return new e(this.value_,t)}getImmediateChild(t){return t===`.priority`?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE}getChild(t){return Q(t)?this:Z(t)===`.priority`?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE}hasChild(){return!1}getPredecessorChildName(e,t){return null}updateImmediateChild(t,n){return t===`.priority`?this.updatePriority(n):n.isEmpty()&&t!==`.priority`?this:e.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(t,n).updatePriority(this.priorityNode_)}updateChild(t,n){let r=Z(t);return r===null?n:n.isEmpty()&&r!==`.priority`?this:(B(r!==`.priority`||fC(t)===1,`.priority must be the last token in a path`),this.updateImmediateChild(r,e.__childrenNodeConstructor.EMPTY_NODE.updateChild(pC(t),n)))}isEmpty(){return!1}numChildren(){return 0}forEachChild(e,t){return!1}val(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()}hash(){if(this.lazyHash_===null){let e=``;this.priorityNode_.isEmpty()||(e+=`priority:`+JC(this.priorityNode_.val())+`:`);let t=typeof this.value_;e+=t+`:`,e+=t===`number`?Gx(this.value_):this.value_,this.lazyHash_=wx(e)}return this.lazyHash_}getValue(){return this.value_}compareTo(t){return t===e.__childrenNodeConstructor.EMPTY_NODE?1:t instanceof e.__childrenNodeConstructor?-1:(B(t.isLeafNode(),`Unknown node type`),this.compareToLeafNode_(t))}compareToLeafNode_(t){let n=typeof t.value_,r=typeof this.value_,i=e.VALUE_TYPE_ORDER.indexOf(n),a=e.VALUE_TYPE_ORDER.indexOf(r);return B(i>=0,`Unknown leaf type: `+n),B(a>=0,`Unknown leaf type: `+r),i===a?r===`object`?0:this.value_<t.value_?-1:this.value_===t.value_?0:1:a-i}withIndex(){return this}isIndexed(){return!0}equals(e){if(e===this)return!0;if(e.isLeafNode()){let t=e;return this.value_===t.value_&&this.priorityNode_.equals(t.priorityNode_)}return!1}};ZC.VALUE_TYPE_ORDER=[`object`,`boolean`,`number`,`string`];var QC,$C;function ew(e){QC=e}function tw(e){$C=e}var nw=new class extends IC{compare(e,t){let n=e.node.getPriority(),r=t.node.getPriority(),i=n.compareTo(r);return i===0?zx(e.name,t.name):i}isDefinedOn(e){return!e.getPriority().isEmpty()}indexedValueChanged(e,t){return!e.getPriority().equals(t.getPriority())}minPost(){return $.MIN}maxPost(){return new $(Rx,new ZC(`[PRIORITY-POST]`,$C))}makePost(e,t){return new $(t,new ZC(`[PRIORITY-POST]`,QC(e)))}toString(){return`.priority`}},rw=Math.log(2),iw=class{constructor(e){let t=e=>parseInt(Math.log(e)/rw,10),n=e=>parseInt(Array(e+1).join(`1`),2);this.count=t(e+1),this.current_=this.count-1;let r=n(this.count);this.bits_=e+1&r}nextBitIsOne(){let e=!(this.bits_&1<<this.current_);return this.current_--,e}},aw=function(e,t,n,r){e.sort(t);let i=function(t,r){let a=r-t,o,s;if(a===0)return null;if(a===1)return o=e[t],s=n?n(o):o,new VC(s,o.node,VC.BLACK,null,null);{let c=parseInt(a/2,10)+t,l=i(t,c),u=i(c+1,r);return o=e[c],s=n?n(o):o,new VC(s,o.node,VC.BLACK,l,u)}},a=function(t){let r=null,a=null,o=e.length,s=function(t,r){let a=o-t,s=o;o-=t;let l=i(a+1,s),u=e[a],d=n?n(u):u;c(new VC(d,u.node,r,null,l))},c=function(e){r?(r.left=e,r=e):(a=e,r=e)};for(let e=0;e<t.count;++e){let n=t.nextBitIsOne(),r=2**(t.count-(e+1));n?s(r,VC.BLACK):(s(r,VC.BLACK),s(r,VC.RED))}return a}(new iw(e.length));return new UC(r||t,a)},ow,sw={},cw=class e{static get Default(){return B(sw&&nw,`ChildrenNode.ts has not been loaded`),ow||=new e({".priority":sw},{".priority":nw}),ow}constructor(e,t){this.indexes_=e,this.indexSet_=t}get(e){let t=Qn(this.indexes_,e);if(!t)throw Error(`No index defined for `+e);return t instanceof UC?t:null}hasIndex(e){return An(this.indexSet_,e.toString())}addIndex(t,n){B(t!==zC,`KeyIndex always exists and isn't meant to be added to the IndexMap.`);let r=[],i=!1,a=n.getIterator($.Wrap),o=a.getNext();for(;o;)i||=t.isDefinedOn(o.node),r.push(o),o=a.getNext();let s;s=i?aw(r,t.getCompare()):sw;let c=t.toString(),l={...this.indexSet_};l[c]=t;let u={...this.indexes_};return u[c]=s,new e(u,l)}addToIndexes(t,n){let r=Yn(this.indexes_,(e,r)=>{let i=Qn(this.indexSet_,r);if(B(i,`Missing index implementation for `+r),e===sw){if(i.isDefinedOn(t.node)){let e=[],r=n.getIterator($.Wrap),a=r.getNext();for(;a;)a.name!==t.name&&e.push(a),a=r.getNext();return e.push(t),aw(e,i.getCompare())}return sw}{let r=n.get(t.name),i=e;return r&&(i=i.remove(new $(t.name,r))),i.insert(t,t.node)}});return new e(r,this.indexSet_)}removeFromIndexes(t,n){let r=Yn(this.indexes_,e=>{if(e===sw)return e;{let r=n.get(t.name);return r?e.remove(new $(t.name,r)):e}});return new e(r,this.indexSet_)}},lw,uw=class e{static get EMPTY_NODE(){return lw||=new e(new UC(GC),null,cw.Default)}constructor(e,t,n){this.children_=e,this.priorityNode_=t,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&YC(this.priorityNode_),this.children_.isEmpty()&&B(!this.priorityNode_||this.priorityNode_.isEmpty(),`An empty node cannot have a priority`)}isLeafNode(){return!1}getPriority(){return this.priorityNode_||lw}updatePriority(t){return this.children_.isEmpty()?this:new e(this.children_,t,this.indexMap_)}getImmediateChild(e){if(e===`.priority`)return this.getPriority();{let t=this.children_.get(e);return t===null?lw:t}}getChild(e){let t=Z(e);return t===null?this:this.getImmediateChild(t).getChild(pC(e))}hasChild(e){return this.children_.get(e)!==null}updateImmediateChild(t,n){if(B(n,`We should always be passing snapshot nodes`),t===`.priority`)return this.updatePriority(n);{let r=new $(t,n),i,a;n.isEmpty()?(i=this.children_.remove(t),a=this.indexMap_.removeFromIndexes(r,this.children_)):(i=this.children_.insert(t,n),a=this.indexMap_.addToIndexes(r,this.children_));let o=i.isEmpty()?lw:this.priorityNode_;return new e(i,o,a)}}updateChild(e,t){let n=Z(e);if(n===null)return t;{B(Z(e)!==`.priority`||fC(e)===1,`.priority must be the last token in a path`);let r=this.getImmediateChild(n).updateChild(pC(e),t);return this.updateImmediateChild(n,r)}}isEmpty(){return this.children_.isEmpty()}numChildren(){return this.children_.count()}val(t){if(this.isEmpty())return null;let n={},r=0,i=0,a=!0;if(this.forEachChild(nw,(o,s)=>{n[o]=s.val(t),r++,a&&e.INTEGER_REGEXP_.test(o)?i=Math.max(i,Number(o)):a=!1}),!t&&a&&i<2*r){let e=[];for(let t in n)e[t]=n[t];return e}return t&&!this.getPriority().isEmpty()&&(n[`.priority`]=this.getPriority().val()),n}hash(){if(this.lazyHash_===null){let e=``;this.getPriority().isEmpty()||(e+=`priority:`+JC(this.getPriority().val())+`:`),this.forEachChild(nw,(t,n)=>{let r=n.hash();r!==``&&(e+=`:`+t+`:`+r)}),this.lazyHash_=e===``?``:wx(e)}return this.lazyHash_}getPredecessorChildName(e,t,n){let r=this.resolveIndex_(n);if(r){let n=r.getPredecessorKey(new $(e,t));return n?n.name:null}return this.children_.getPredecessorKey(e)}getFirstChildName(e){let t=this.resolveIndex_(e);if(t){let e=t.minKey();return e&&e.name}return this.children_.minKey()}getFirstChild(e){let t=this.getFirstChildName(e);return t?new $(t,this.children_.get(t)):null}getLastChildName(e){let t=this.resolveIndex_(e);if(t){let e=t.maxKey();return e&&e.name}return this.children_.maxKey()}getLastChild(e){let t=this.getLastChildName(e);return t?new $(t,this.children_.get(t)):null}forEachChild(e,t){let n=this.resolveIndex_(e);return n?n.inorderTraversal(e=>t(e.name,e.node)):this.children_.inorderTraversal(t)}getIterator(e){return this.getIteratorFrom(e.minPost(),e)}getIteratorFrom(e,t){let n=this.resolveIndex_(t);if(n)return n.getIteratorFrom(e,e=>e);{let n=this.children_.getIteratorFrom(e.name,$.Wrap),r=n.peek();for(;r!=null&&t.compare(r,e)<0;)n.getNext(),r=n.peek();return n}}getReverseIterator(e){return this.getReverseIteratorFrom(e.maxPost(),e)}getReverseIteratorFrom(e,t){let n=this.resolveIndex_(t);if(n)return n.getReverseIteratorFrom(e,e=>e);{let n=this.children_.getReverseIteratorFrom(e.name,$.Wrap),r=n.peek();for(;r!=null&&t.compare(r,e)>0;)n.getNext(),r=n.peek();return n}}compareTo(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===dw?-1:0}withIndex(t){if(t===zC||this.indexMap_.hasIndex(t))return this;{let n=this.indexMap_.addIndex(t,this.children_);return new e(this.children_,this.priorityNode_,n)}}isIndexed(e){return e===zC||this.indexMap_.hasIndex(e)}equals(e){if(e===this)return!0;if(e.isLeafNode())return!1;{let t=e;if(!this.getPriority().equals(t.getPriority()))return!1;if(this.children_.count()===t.children_.count()){let e=this.getIterator(nw),n=t.getIterator(nw),r=e.getNext(),i=n.getNext();for(;r&&i;){if(r.name!==i.name||!r.node.equals(i.node))return!1;r=e.getNext(),i=n.getNext()}return r===null&&i===null}return!1}}resolveIndex_(e){return e===zC?null:this.indexMap_.get(e.toString())}};uw.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/;var dw=new class extends uw{constructor(){super(new UC(GC),uw.EMPTY_NODE,cw.Default)}compareTo(e){return e===this?0:1}equals(e){return e===this}getPriority(){return this}getImmediateChild(e){return uw.EMPTY_NODE}isEmpty(){return!1}};Object.defineProperties($,{MIN:{value:new $(Lx,uw.EMPTY_NODE)},MAX:{value:new $(Rx,dw)}}),RC.__EMPTY_NODE=uw.EMPTY_NODE,ZC.__childrenNodeConstructor=uw,qC(dw),tw(dw);var fw=!0;function pw(e,t=null){if(e===null)return uw.EMPTY_NODE;if(typeof e==`object`&&`.priority`in e&&(t=e[`.priority`]),B(t===null||typeof t==`string`||typeof t==`number`||typeof t==`object`&&`.sv`in t,`Invalid priority type found: `+typeof t),typeof e==`object`&&`.value`in e&&e[`.value`]!==null&&(e=e[`.value`]),typeof e!=`object`||`.sv`in e)return new ZC(e,pw(t));if(!(e instanceof Array)&&fw){let n=[],r=!1;if(Wx(e,(e,t)=>{if(e.substring(0,1)!==`.`){let i=pw(t);i.isEmpty()||(r||=!i.getPriority().isEmpty(),n.push(new $(e,i)))}}),n.length===0)return uw.EMPTY_NODE;let i=aw(n,WC,e=>e.name,GC);if(r){let e=aw(n,nw.getCompare());return new uw(i,pw(t),new cw({".priority":e},{".priority":nw}))}return new uw(i,pw(t),cw.Default)}{let n=uw.EMPTY_NODE;return Wx(e,(t,r)=>{if(An(e,t)&&t.substring(0,1)!==`.`){let e=pw(r);(e.isLeafNode()||!e.isEmpty())&&(n=n.updateImmediateChild(t,e))}}),n.updatePriority(pw(t))}}ew(pw);var mw=class extends IC{constructor(e){super(),this.indexPath_=e,B(!Q(e)&&Z(e)!==`.priority`,`Can't create PathIndex with empty path or .priority key`)}extractChild(e){return e.getChild(this.indexPath_)}isDefinedOn(e){return!e.getChild(this.indexPath_).isEmpty()}compare(e,t){let n=this.extractChild(e.node),r=this.extractChild(t.node),i=n.compareTo(r);return i===0?zx(e.name,t.name):i}makePost(e,t){let n=pw(e);return new $(t,uw.EMPTY_NODE.updateChild(this.indexPath_,n))}maxPost(){return new $(Rx,uw.EMPTY_NODE.updateChild(this.indexPath_,dw))}toString(){return gC(this.indexPath_,0).join(`/`)}},hw=new class extends IC{compare(e,t){let n=e.node.compareTo(t.node);return n===0?zx(e.name,t.name):n}isDefinedOn(e){return!0}indexedValueChanged(e,t){return!e.equals(t)}minPost(){return $.MIN}maxPost(){return $.MAX}makePost(e,t){return new $(t,pw(e))}toString(){return`.value`}};function gw(e){return{type:`value`,snapshotNode:e}}function _w(e,t){return{type:`child_added`,snapshotNode:t,childName:e}}function vw(e,t){return{type:`child_removed`,snapshotNode:t,childName:e}}function yw(e,t,n){return{type:`child_changed`,snapshotNode:t,childName:e,oldSnap:n}}function bw(e,t){return{type:`child_moved`,snapshotNode:t,childName:e}}var xw=class e{constructor(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_=``,this.indexStartValue_=null,this.indexStartName_=``,this.indexEndValue_=null,this.indexEndName_=``,this.index_=nw}hasStart(){return this.startSet_}isViewFromLeft(){return this.viewFrom_===``?this.startSet_:this.viewFrom_===`l`}getIndexStartValue(){return B(this.startSet_,`Only valid if start has been set`),this.indexStartValue_}getIndexStartName(){return B(this.startSet_,`Only valid if start has been set`),this.startNameSet_?this.indexStartName_:Lx}hasEnd(){return this.endSet_}getIndexEndValue(){return B(this.endSet_,`Only valid if end has been set`),this.indexEndValue_}getIndexEndName(){return B(this.endSet_,`Only valid if end has been set`),this.endNameSet_?this.indexEndName_:Rx}hasLimit(){return this.limitSet_}hasAnchoredLimit(){return this.limitSet_&&this.viewFrom_!==``}getLimit(){return B(this.limitSet_,`Only valid if limit has been set`),this.limit_}getIndex(){return this.index_}loadsAllData(){return!(this.startSet_||this.endSet_||this.limitSet_)}isDefault(){return this.loadsAllData()&&this.index_===nw}copy(){let t=new e;return t.limitSet_=this.limitSet_,t.limit_=this.limit_,t.startSet_=this.startSet_,t.startAfterSet_=this.startAfterSet_,t.indexStartValue_=this.indexStartValue_,t.startNameSet_=this.startNameSet_,t.indexStartName_=this.indexStartName_,t.endSet_=this.endSet_,t.endBeforeSet_=this.endBeforeSet_,t.indexEndValue_=this.indexEndValue_,t.endNameSet_=this.endNameSet_,t.indexEndName_=this.indexEndName_,t.index_=this.index_,t.viewFrom_=this.viewFrom_,t}};function Sw(e){let t={};if(e.isDefault())return t;let n;if(e.index_===nw?n=`$priority`:e.index_===hw?n=`$value`:e.index_===zC?n=`$key`:(B(e.index_ instanceof mw,`Unrecognized index type!`),n=e.index_.toString()),t.orderBy=er(n),e.startSet_){let n=e.startAfterSet_?`startAfter`:`startAt`;t[n]=er(e.indexStartValue_),e.startNameSet_&&(t[n]+=`,`+er(e.indexStartName_))}if(e.endSet_){let n=e.endBeforeSet_?`endBefore`:`endAt`;t[n]=er(e.indexEndValue_),e.endNameSet_&&(t[n]+=`,`+er(e.indexEndName_))}return e.limitSet_&&(e.isViewFromLeft()?t.limitToFirst=e.limit_:t.limitToLast=e.limit_),t}function Cw(e){let t={};if(e.startSet_&&(t.sp=e.indexStartValue_,e.startNameSet_&&(t.sn=e.indexStartName_),t.sin=!e.startAfterSet_),e.endSet_&&(t.ep=e.indexEndValue_,e.endNameSet_&&(t.en=e.indexEndName_),t.ein=!e.endBeforeSet_),e.limitSet_){t.l=e.limit_;let n=e.viewFrom_;n===``&&(n=e.isViewFromLeft()?`l`:`r`),t.vf=n}return e.index_!==nw&&(t.i=e.index_.toString()),t}var ww=class e extends oC{reportStats(e){throw Error(`Method not implemented.`)}static getListenId_(e,t){return t===void 0?(B(e._queryParams.isDefault(),`should have a tag if it's not a default query.`),e._path.toString()):`tag$`+t}constructor(e,t,n,r){super(),this.repoInfo_=e,this.onDataUpdate_=t,this.authTokenProvider_=n,this.appCheckTokenProvider_=r,this.log_=Ax(`p:rest:`),this.listens_={}}listen(t,n,r,i){let a=t._path.toString();this.log_(`Listen called for `+a+` `+t._queryIdentifier);let o=e.getListenId_(t,r),s={};this.listens_[o]=s;let c=Sw(t._queryParams);this.restRequest_(a+`.json`,c,(e,t)=>{let n=t;if(e===404&&(n=null,e=null),e===null&&this.onDataUpdate_(a,n,!1,r),Qn(this.listens_,o)===s){let t;t=e?e===401?`permission_denied`:`rest_error:`+e:`ok`,i(t,null)}})}unlisten(t,n){let r=e.getListenId_(t,n);delete this.listens_[r]}get(e){let t=Sw(e._queryParams),n=e._path.toString(),r=new Dn;return this.restRequest_(n+`.json`,t,(e,t)=>{let i=t;e===404&&(i=null,e=null),e===null?(this.onDataUpdate_(n,i,!1,null),r.resolve(i)):r.reject(Error(i))}),r.promise}refreshAuthToken(e){}restRequest_(e,t={},n){return t.format=`export`,Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then(([r,i])=>{r&&r.accessToken&&(t.auth=r.accessToken),i&&i.token&&(t.ac=i.token);let a=(this.repoInfo_.secure?`https://`:`http://`)+this.repoInfo_.host+e+`?ns=`+this.repoInfo_.namespace+mr(t);this.log_(`Sending REST request for `+a);let o=new XMLHttpRequest;o.onreadystatechange=()=>{if(n&&o.readyState===4){this.log_(`REST Response for `+a+` received. status:`,o.status,`response:`,o.responseText);let e=null;if(o.status>=200&&o.status<300){try{e=dr(o.responseText)}catch{Nx(`Failed to parse JSON response for `+a+`: `+o.responseText)}n(null,e)}else o.status!==401&&o.status!==404&&Nx(`Got unsuccessful REST response for `+a+` Status: `+o.status),n(o.status);n=null}},o.open(`GET`,a,!0),o.send()})}},Tw=class{constructor(){this.rootNode_=uw.EMPTY_NODE}getNode(e){return this.rootNode_.getChild(e)}updateSnapshot(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)}};function Ew(){return{value:null,children:new Map}}function Dw(e,t,n){if(Q(t))e.value=n,e.children.clear();else if(e.value!==null)e.value=e.value.updateChild(t,n);else{let r=Z(t);e.children.has(r)||e.children.set(r,Ew());let i=e.children.get(r);t=pC(t),Dw(i,t,n)}}function Ow(e,t,n){e.value===null?kw(e,(e,r)=>{Ow(r,new dC(t.toString()+`/`+e),n)}):n(t,e.value)}function kw(e,t){e.children.forEach((e,n)=>{t(n,e)})}var Aw=class{constructor(e){this.collection_=e,this.last_=null}get(){let e=this.collection_.get(),t={...e};return this.last_&&Wx(this.last_,(e,n)=>{t[e]=t[e]-n}),this.last_=e,t}},jw=1e4,Mw=3e5,Nw=class{constructor(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new Aw(e);let n=jw+2e4*Math.random();eS(this.reportStats_.bind(this),Math.floor(n))}reportStats_(){let e=this.statsListener_.get(),t={},n=!1;Wx(e,(e,r)=>{r>0&&An(this.statsToReport_,e)&&(t[e]=r,n=!0)}),n&&this.server_.reportStats(t),eS(this.reportStats_.bind(this),Math.floor(Math.random()*2*Mw))}},Pw;(function(e){e[e.OVERWRITE=0]=`OVERWRITE`,e[e.MERGE=1]=`MERGE`,e[e.ACK_USER_WRITE=2]=`ACK_USER_WRITE`,e[e.LISTEN_COMPLETE=3]=`LISTEN_COMPLETE`})(Pw||={});function Fw(){return{fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}function Iw(){return{fromUser:!1,fromServer:!0,queryId:null,tagged:!1}}function Lw(e){return{fromUser:!1,fromServer:!0,queryId:e,tagged:!0}}var Rw=class e{constructor(e,t,n){this.path=e,this.affectedTree=t,this.revert=n,this.type=Pw.ACK_USER_WRITE,this.source=Fw()}operationForChild(t){if(!Q(this.path))return B(Z(this.path)===t,`operationForChild called for unrelated child.`),new e(pC(this.path),this.affectedTree,this.revert);if(this.affectedTree.value!=null)return B(this.affectedTree.children.isEmpty(),`affectedTree should not have overlapping affected paths.`),this;{let n=this.affectedTree.subtree(new dC(t));return new e(X(),n,this.revert)}}},zw=class e{constructor(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=Pw.OVERWRITE}operationForChild(t){return Q(this.path)?new e(this.source,X(),this.snap.getImmediateChild(t)):new e(this.source,pC(this.path),this.snap)}},Bw=class e{constructor(e,t,n){this.source=e,this.path=t,this.children=n,this.type=Pw.MERGE}operationForChild(t){if(Q(this.path)){let n=this.children.subtree(new dC(t));return n.isEmpty()?null:n.value?new zw(this.source,X(),n.value):new e(this.source,X(),n)}return B(Z(this.path)===t,`Can't get a merge for a child not on the path of the operation`),new e(this.source,pC(this.path),this.children)}toString(){return`Operation(`+this.path+`: `+this.source.toString()+` merge: `+this.children.toString()+`)`}},Vw=class{constructor(e,t,n){this.node_=e,this.fullyInitialized_=t,this.filtered_=n}isFullyInitialized(){return this.fullyInitialized_}isFiltered(){return this.filtered_}isCompleteForPath(e){if(Q(e))return this.isFullyInitialized()&&!this.filtered_;let t=Z(e);return this.isCompleteForChild(t)}isCompleteForChild(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)}getNode(){return this.node_}};function Hw(e,t,n,r){let i=[],a=[];return t.forEach(t=>{t.type===`child_changed`&&e.index_.indexedValueChanged(t.oldSnap,t.snapshotNode)&&a.push(bw(t.childName,t.snapshotNode))}),Uw(e,i,`child_removed`,t,r,n),Uw(e,i,`child_added`,t,r,n),Uw(e,i,`child_moved`,a,r,n),Uw(e,i,`child_changed`,t,r,n),Uw(e,i,`value`,t,r,n),i}function Uw(e,t,n,r,i,a){let o=r.filter(e=>e.type===n);o.sort((t,n)=>Gw(e,t,n)),o.forEach(n=>{let r=Ww(e,n,a);i.forEach(i=>{i.respondsTo(n.type)&&t.push(i.createEvent(r,e.query_))})})}function Ww(e,t,n){return t.type===`value`||t.type===`child_removed`||(t.prevName=n.getPredecessorChildName(t.childName,t.snapshotNode,e.index_)),t}function Gw(e,t,n){if(t.childName==null||n.childName==null)throw tr(`Should only compare child_ events.`);let r=new $(t.childName,t.snapshotNode),i=new $(n.childName,n.snapshotNode);return e.index_.compare(r,i)}function Kw(e,t){return{eventCache:e,serverCache:t}}function qw(e,t,n,r){return Kw(new Vw(t,n,r),e.serverCache)}function Jw(e,t,n,r){return Kw(e.eventCache,new Vw(t,n,r))}function Yw(e){return e.eventCache.isFullyInitialized()?e.eventCache.getNode():null}function Xw(e){return e.serverCache.isFullyInitialized()?e.serverCache.getNode():null}var Zw,Qw=()=>(Zw||=new UC(Bx),Zw),$w=class e{static fromObject(t){let n=new e(null);return Wx(t,(e,t)=>{n=n.set(new dC(e),t)}),n}constructor(e,t=Qw()){this.value=e,this.children=t}isEmpty(){return this.value===null&&this.children.isEmpty()}findRootMostMatchingPathAndValue(e,t){if(this.value!=null&&t(this.value))return{path:X(),value:this.value};if(Q(e))return null;{let n=Z(e),r=this.children.get(n);if(r!==null){let i=r.findRootMostMatchingPathAndValue(pC(e),t);return i==null?null:{path:vC(new dC(n),i.path),value:i.value}}return null}}findRootMostValueAndPath(e){return this.findRootMostMatchingPathAndValue(e,()=>!0)}subtree(t){if(Q(t))return this;{let n=Z(t),r=this.children.get(n);return r===null?new e(null):r.subtree(pC(t))}}set(t,n){if(Q(t))return new e(n,this.children);{let r=Z(t),i=(this.children.get(r)||new e(null)).set(pC(t),n),a=this.children.insert(r,i);return new e(this.value,a)}}remove(t){if(Q(t))return this.children.isEmpty()?new e(null):new e(null,this.children);{let n=Z(t),r=this.children.get(n);if(r){let i=r.remove(pC(t)),a;return a=i.isEmpty()?this.children.remove(n):this.children.insert(n,i),this.value===null&&a.isEmpty()?new e(null):new e(this.value,a)}return this}}get(e){if(Q(e))return this.value;{let t=Z(e),n=this.children.get(t);return n?n.get(pC(e)):null}}setTree(t,n){if(Q(t))return n;{let r=Z(t),i=(this.children.get(r)||new e(null)).setTree(pC(t),n),a;return a=i.isEmpty()?this.children.remove(r):this.children.insert(r,i),new e(this.value,a)}}fold(e){return this.fold_(X(),e)}fold_(e,t){let n={};return this.children.inorderTraversal((r,i)=>{n[r]=i.fold_(vC(e,r),t)}),t(e,this.value,n)}findOnPath(e,t){return this.findOnPath_(e,X(),t)}findOnPath_(e,t,n){let r=this.value?n(t,this.value):!1;if(r)return r;if(Q(e))return null;{let r=Z(e),i=this.children.get(r);return i?i.findOnPath_(pC(e),vC(t,r),n):null}}foreachOnPath(e,t){return this.foreachOnPath_(e,X(),t)}foreachOnPath_(t,n,r){if(Q(t))return this;{this.value&&r(n,this.value);let i=Z(t),a=this.children.get(i);return a?a.foreachOnPath_(pC(t),vC(n,i),r):new e(null)}}foreach(e){this.foreach_(X(),e)}foreach_(e,t){this.children.inorderTraversal((n,r)=>{r.foreach_(vC(e,n),t)}),this.value&&t(e,this.value)}foreachChild(e){this.children.inorderTraversal((t,n)=>{n.value&&e(t,n.value)})}},eT=class e{constructor(e){this.writeTree_=e}static empty(){return new e(new $w(null))}};function tT(e,t,n){if(Q(t))return new eT(new $w(n));{let r=e.writeTree_.findRootMostValueAndPath(t);if(r!=null){let i=r.path,a=r.value,o=yC(i,t);return a=a.updateChild(o,n),new eT(e.writeTree_.set(i,a))}{let r=new $w(n);return new eT(e.writeTree_.setTree(t,r))}}}function nT(e,t,n){let r=e;return Wx(n,(e,n)=>{r=tT(r,vC(t,e),n)}),r}function rT(e,t){return Q(t)?eT.empty():new eT(e.writeTree_.setTree(t,new $w(null)))}function iT(e,t){return aT(e,t)!=null}function aT(e,t){let n=e.writeTree_.findRootMostValueAndPath(t);return n==null?null:e.writeTree_.get(n.path).getChild(yC(n.path,t))}function oT(e){let t=[],n=e.writeTree_.value;return n==null?e.writeTree_.children.inorderTraversal((e,n)=>{n.value!=null&&t.push(new $(e,n.value))}):n.isLeafNode()||n.forEachChild(nw,(e,n)=>{t.push(new $(e,n))}),t}function sT(e,t){if(Q(t))return e;{let n=aT(e,t);return n==null?new eT(e.writeTree_.subtree(t)):new eT(new $w(n))}}function cT(e){return e.writeTree_.isEmpty()}function lT(e,t){return uT(X(),e.writeTree_,t)}function uT(e,t,n){if(t.value!=null)return n.updateChild(e,t.value);{let r=null;return t.children.inorderTraversal((t,i)=>{t===`.priority`?(B(i.value!==null,`Priority writes must always be leaf nodes`),r=i.value):n=uT(vC(e,t),i,n)}),!n.getChild(e).isEmpty()&&r!==null&&(n=n.updateChild(vC(e,`.priority`),r)),n}}function dT(e,t){return NT(t,e)}function fT(e,t,n,r,i){B(r>e.lastWriteId,`Stacking an older write on top of newer ones`),i===void 0&&(i=!0),e.allWrites.push({path:t,snap:n,writeId:r,visible:i}),i&&(e.visibleWrites=tT(e.visibleWrites,t,n)),e.lastWriteId=r}function pT(e,t){for(let n=0;n<e.allWrites.length;n++){let r=e.allWrites[n];if(r.writeId===t)return r}return null}function mT(e,t){let n=e.allWrites.findIndex(e=>e.writeId===t);B(n>=0,`removeWrite called with nonexistent writeId.`);let r=e.allWrites[n];e.allWrites.splice(n,1);let i=r.visible,a=!1,o=e.allWrites.length-1;for(;i&&o>=0;){let t=e.allWrites[o];t.visible&&(o>=n&&hT(t,r.path)?i=!1:xC(r.path,t.path)&&(a=!0)),o--}if(!i)return!1;if(a)return gT(e),!0;if(r.snap)e.visibleWrites=rT(e.visibleWrites,r.path);else{let t=r.children;Wx(t,t=>{e.visibleWrites=rT(e.visibleWrites,vC(r.path,t))})}return!0}function hT(e,t){if(e.snap)return xC(e.path,t);for(let n in e.children)if(e.children.hasOwnProperty(n)&&xC(vC(e.path,n),t))return!0;return!1}function gT(e){e.visibleWrites=vT(e.allWrites,_T,X()),e.lastWriteId=e.allWrites.length>0?e.allWrites[e.allWrites.length-1].writeId:-1}function _T(e){return e.visible}function vT(e,t,n){let r=eT.empty();for(let i=0;i<e.length;++i){let a=e[i];if(t(a)){let e=a.path,t;if(a.snap)xC(n,e)?(t=yC(n,e),r=tT(r,t,a.snap)):xC(e,n)&&(t=yC(e,n),r=tT(r,X(),a.snap.getChild(t)));else if(a.children){if(xC(n,e))t=yC(n,e),r=nT(r,t,a.children);else if(xC(e,n)){if(t=yC(e,n),Q(t))r=nT(r,X(),a.children);else{let e=Qn(a.children,Z(t));if(e){let n=e.getChild(pC(t));r=tT(r,X(),n)}}}}else throw tr(`WriteRecord should have .snap or .children`)}}return r}function yT(e,t,n,r,i){if(!r&&!i){let r=aT(e.visibleWrites,t);if(r!=null)return r;{let r=sT(e.visibleWrites,t);return cT(r)?n:n==null&&!iT(r,X())?null:lT(r,n||uw.EMPTY_NODE)}}{let a=sT(e.visibleWrites,t);return!i&&cT(a)?n:!i&&n==null&&!iT(a,X())?null:lT(vT(e.allWrites,function(e){return(e.visible||i)&&(!r||!~r.indexOf(e.writeId))&&(xC(e.path,t)||xC(t,e.path))},t),n||uw.EMPTY_NODE)}}function bT(e,t,n){let r=uw.EMPTY_NODE,i=aT(e.visibleWrites,t);if(i)return i.isLeafNode()||i.forEachChild(nw,(e,t)=>{r=r.updateImmediateChild(e,t)}),r;if(n){let i=sT(e.visibleWrites,t);return n.forEachChild(nw,(e,t)=>{let n=lT(sT(i,new dC(e)),t);r=r.updateImmediateChild(e,n)}),oT(i).forEach(e=>{r=r.updateImmediateChild(e.name,e.node)}),r}return oT(sT(e.visibleWrites,t)).forEach(e=>{r=r.updateImmediateChild(e.name,e.node)}),r}function xT(e,t,n,r,i){B(r||i,`Either existingEventSnap or existingServerSnap must exist`);let a=vC(t,n);if(iT(e.visibleWrites,a))return null;{let t=sT(e.visibleWrites,a);return cT(t)?i.getChild(n):lT(t,i.getChild(n))}}function ST(e,t,n,r){let i=vC(t,n);return aT(e.visibleWrites,i)??(r.isCompleteForChild(n)?lT(sT(e.visibleWrites,i),r.getNode().getImmediateChild(n)):null)}function CT(e,t){return aT(e.visibleWrites,t)}function wT(e,t,n,r,i,a,o){let s,c=sT(e.visibleWrites,t),l=aT(c,X());if(l!=null)s=l;else if(n!=null)s=lT(c,n);else return[];if(s=s.withIndex(o),!s.isEmpty()&&!s.isLeafNode()){let e=[],t=o.getCompare(),n=a?s.getReverseIteratorFrom(r,o):s.getIteratorFrom(r,o),c=n.getNext();for(;c&&e.length<i;)t(c,r)!==0&&e.push(c),c=n.getNext();return e}return[]}function TT(){return{visibleWrites:eT.empty(),allWrites:[],lastWriteId:-1}}function ET(e,t,n,r){return yT(e.writeTree,e.treePath,t,n,r)}function DT(e,t){return bT(e.writeTree,e.treePath,t)}function OT(e,t,n,r){return xT(e.writeTree,e.treePath,t,n,r)}function kT(e,t){return CT(e.writeTree,vC(e.treePath,t))}function AT(e,t,n,r,i,a){return wT(e.writeTree,e.treePath,t,n,r,i,a)}function jT(e,t,n){return ST(e.writeTree,e.treePath,t,n)}function MT(e,t){return NT(vC(e.treePath,t),e.writeTree)}function NT(e,t){return{treePath:e,writeTree:t}}var PT=class{constructor(){this.changeMap=new Map}trackChildChange(e){let t=e.type,n=e.childName;B(t===`child_added`||t===`child_changed`||t===`child_removed`,`Only child changes supported for tracking`),B(n!==`.priority`,`Only non-priority child changes can be tracked.`);let r=this.changeMap.get(n);if(r){let i=r.type;if(t===`child_added`&&i===`child_removed`)this.changeMap.set(n,yw(n,e.snapshotNode,r.snapshotNode));else if(t===`child_removed`&&i===`child_added`)this.changeMap.delete(n);else if(t===`child_removed`&&i===`child_changed`)this.changeMap.set(n,vw(n,r.oldSnap));else if(t===`child_changed`&&i===`child_added`)this.changeMap.set(n,_w(n,e.snapshotNode));else if(t===`child_changed`&&i===`child_changed`)this.changeMap.set(n,yw(n,e.snapshotNode,r.oldSnap));else throw tr(`Illegal combination of changes: `+e+` occurred after `+r)}else this.changeMap.set(n,e)}getChanges(){return Array.from(this.changeMap.values())}},FT=new class{getCompleteChild(e){return null}getChildAfterChild(e,t,n){return null}},IT=class{constructor(e,t,n=null){this.writes_=e,this.viewCache_=t,this.optCompleteServerCache_=n}getCompleteChild(e){let t=this.viewCache_.eventCache;if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);{let t=this.optCompleteServerCache_==null?this.viewCache_.serverCache:new Vw(this.optCompleteServerCache_,!0,!1);return jT(this.writes_,e,t)}}getChildAfterChild(e,t,n){let r=this.optCompleteServerCache_==null?Xw(this.viewCache_):this.optCompleteServerCache_,i=AT(this.writes_,r,t,1,n,e);return i.length===0?null:i[0]}};function LT(e,t){B(t.eventCache.getNode().isIndexed(e.filter.getIndex()),`Event snap not indexed`),B(t.serverCache.getNode().isIndexed(e.filter.getIndex()),`Server snap not indexed`)}function RT(e,t,n,r,i){let a=new PT,o,s;if(n.type===Pw.OVERWRITE){let c=n;c.source.fromUser?o=HT(e,t,c.path,c.snap,r,i,a):(B(c.source.fromServer,`Unknown source.`),s=c.source.tagged||t.serverCache.isFiltered()&&!Q(c.path),o=VT(e,t,c.path,c.snap,r,i,s,a))}else if(n.type===Pw.MERGE){let c=n;c.source.fromUser?o=WT(e,t,c.path,c.children,r,i,a):(B(c.source.fromServer,`Unknown source.`),s=c.source.tagged||t.serverCache.isFiltered(),o=KT(e,t,c.path,c.children,r,i,s,a))}else if(n.type===Pw.ACK_USER_WRITE){let s=n;o=s.revert?YT(e,t,s.path,r,i,a):qT(e,t,s.path,s.affectedTree,r,i,a)}else if(n.type===Pw.LISTEN_COMPLETE)o=JT(e,t,n.path,r,a);else throw tr(`Unknown operation type: `+n.type);let c=a.getChanges();return zT(t,o,c),{viewCache:o,changes:c}}function zT(e,t,n){let r=t.eventCache;if(r.isFullyInitialized()){let i=r.getNode().isLeafNode()||r.getNode().isEmpty(),a=Yw(e);(n.length>0||!e.eventCache.isFullyInitialized()||i&&!r.getNode().equals(a)||!r.getNode().getPriority().equals(a.getPriority()))&&n.push(gw(Yw(t)))}}function BT(e,t,n,r,i,a){let o=t.eventCache;if(kT(r,n)!=null)return t;{let s,c;if(Q(n)){if(B(t.serverCache.isFullyInitialized(),`If change path is empty, we must have complete server data`),t.serverCache.isFiltered()){let n=Xw(t),i=DT(r,n instanceof uw?n:uw.EMPTY_NODE);s=e.filter.updateFullNode(t.eventCache.getNode(),i,a)}else{let n=ET(r,Xw(t));s=e.filter.updateFullNode(t.eventCache.getNode(),n,a)}}else{let l=Z(n);if(l===`.priority`){B(fC(n)===1,`Can't have a priority with additional path components`);let i=o.getNode();c=t.serverCache.getNode();let a=OT(r,n,i,c);s=a==null?o.getNode():e.filter.updatePriority(i,a)}else{let u=pC(n),d;if(o.isCompleteForChild(l)){c=t.serverCache.getNode();let e=OT(r,n,o.getNode(),c);d=e==null?o.getNode().getImmediateChild(l):o.getNode().getImmediateChild(l).updateChild(u,e)}else d=jT(r,l,t.serverCache);s=d==null?o.getNode():e.filter.updateChild(o.getNode(),l,d,u,i,a)}}return qw(t,s,o.isFullyInitialized()||Q(n),e.filter.filtersNodes())}}function VT(e,t,n,r,i,a,o,s){let c=t.serverCache,l,u=o?e.filter:e.filter.getIndexedFilter();if(Q(n))l=u.updateFullNode(c.getNode(),r,null);else if(u.filtersNodes()&&!c.isFiltered()){let e=c.getNode().updateChild(n,r);l=u.updateFullNode(c.getNode(),e,null)}else{let e=Z(n);if(!c.isCompleteForPath(n)&&fC(n)>1)return t;let i=pC(n),a=c.getNode().getImmediateChild(e).updateChild(i,r);l=e===`.priority`?u.updatePriority(c.getNode(),a):u.updateChild(c.getNode(),e,a,i,FT,null)}let d=Jw(t,l,c.isFullyInitialized()||Q(n),u.filtersNodes());return BT(e,d,n,i,new IT(i,d,a),s)}function HT(e,t,n,r,i,a,o){let s=t.eventCache,c,l,u=new IT(i,t,a);if(Q(n))l=e.filter.updateFullNode(t.eventCache.getNode(),r,o),c=qw(t,l,!0,e.filter.filtersNodes());else{let i=Z(n);if(i===`.priority`)l=e.filter.updatePriority(t.eventCache.getNode(),r),c=qw(t,l,s.isFullyInitialized(),s.isFiltered());else{let a=pC(n),l=s.getNode().getImmediateChild(i),d;if(Q(a))d=r;else{let e=u.getCompleteChild(i);d=e==null?uw.EMPTY_NODE:mC(a)===`.priority`&&e.getChild(_C(a)).isEmpty()?e:e.updateChild(a,r)}c=l.equals(d)?t:qw(t,e.filter.updateChild(s.getNode(),i,d,a,u,o),s.isFullyInitialized(),e.filter.filtersNodes())}}return c}function UT(e,t){return e.eventCache.isCompleteForChild(t)}function WT(e,t,n,r,i,a,o){let s=t;return r.foreach((r,c)=>{let l=vC(n,r);UT(t,Z(l))&&(s=HT(e,s,l,c,i,a,o))}),r.foreach((r,c)=>{let l=vC(n,r);UT(t,Z(l))||(s=HT(e,s,l,c,i,a,o))}),s}function GT(e,t,n){return n.foreach((e,n)=>{t=t.updateChild(e,n)}),t}function KT(e,t,n,r,i,a,o,s){if(t.serverCache.getNode().isEmpty()&&!t.serverCache.isFullyInitialized())return t;let c=t,l;l=Q(n)?r:new $w(null).setTree(n,r);let u=t.serverCache.getNode();return l.children.inorderTraversal((n,r)=>{if(u.hasChild(n)){let l=GT(e,t.serverCache.getNode().getImmediateChild(n),r);c=VT(e,c,new dC(n),l,i,a,o,s)}}),l.children.inorderTraversal((n,r)=>{let l=!t.serverCache.isCompleteForChild(n)&&r.value===null;if(!u.hasChild(n)&&!l){let l=GT(e,t.serverCache.getNode().getImmediateChild(n),r);c=VT(e,c,new dC(n),l,i,a,o,s)}}),c}function qT(e,t,n,r,i,a,o){if(kT(i,n)!=null)return t;let s=t.serverCache.isFiltered(),c=t.serverCache;if(r.value!=null){if(Q(n)&&c.isFullyInitialized()||c.isCompleteForPath(n))return VT(e,t,n,c.getNode().getChild(n),i,a,s,o);if(Q(n)){let r=new $w(null);return c.getNode().forEachChild(zC,(e,t)=>{r=r.set(new dC(e),t)}),KT(e,t,n,r,i,a,s,o)}return t}{let l=new $w(null);return r.foreach((e,t)=>{let r=vC(n,e);c.isCompleteForPath(r)&&(l=l.set(e,c.getNode().getChild(r)))}),KT(e,t,n,l,i,a,s,o)}}function JT(e,t,n,r,i){let a=t.serverCache;return BT(e,Jw(t,a.getNode(),a.isFullyInitialized()||Q(n),a.isFiltered()),n,r,FT,i)}function YT(e,t,n,r,i,a){let o;if(kT(r,n)!=null)return t;{let s=new IT(r,t,i),c=t.eventCache.getNode(),l;if(Q(n)||Z(n)===`.priority`){let n;if(t.serverCache.isFullyInitialized())n=ET(r,Xw(t));else{let e=t.serverCache.getNode();B(e instanceof uw,`serverChildren would be complete if leaf node`),n=DT(r,e)}n=n,l=e.filter.updateFullNode(c,n,a)}else{let i=Z(n),u=jT(r,i,t.serverCache);u==null&&t.serverCache.isCompleteForChild(i)&&(u=c.getImmediateChild(i)),l=u==null?t.eventCache.getNode().hasChild(i)?e.filter.updateChild(c,i,uw.EMPTY_NODE,pC(n),s,a):c:e.filter.updateChild(c,i,u,pC(n),s,a),l.isEmpty()&&t.serverCache.isFullyInitialized()&&(o=ET(r,Xw(t)),o.isLeafNode()&&(l=e.filter.updateFullNode(l,o,a)))}return o=t.serverCache.isFullyInitialized()||kT(r,X())!=null,qw(t,l,o,e.filter.filtersNodes())}}function XT(e,t){let n=Xw(e.viewCache_);return n&&(e.query._queryParams.loadsAllData()||!Q(t)&&!n.getImmediateChild(Z(t)).isEmpty())?n.getChild(t):null}function ZT(e,t,n,r){t.type===Pw.MERGE&&t.source.queryId!==null&&(B(Xw(e.viewCache_),`We should always have a full cache before handling merges`),B(Yw(e.viewCache_),`Missing event cache, even though we have a server cache`));let i=e.viewCache_,a=RT(e.processor_,i,t,n,r);return LT(e.processor_,a.viewCache),B(a.viewCache.serverCache.isFullyInitialized()||!i.serverCache.isFullyInitialized(),`Once a server snap is complete, it should never go back`),e.viewCache_=a.viewCache,QT(e,a.changes,a.viewCache.eventCache.getNode(),null)}function QT(e,t,n,r){let i=r?[r]:e.eventRegistrations_;return Hw(e.eventGenerator_,t,n,i)}var $T;function eE(e){B(!$T,`__referenceConstructor has already been defined`),$T=e}function tE(e,t,n,r){let i=t.source.queryId;if(i!==null){let a=e.views.get(i);return B(a!=null,`SyncTree gave us an op for an invalid query.`),ZT(a,t,n,r)}{let i=[];for(let a of e.views.values())i=i.concat(ZT(a,t,n,r));return i}}function nE(e,t){let n=null;for(let r of e.views.values())n||=XT(r,t);return n}var rE;function iE(e){B(!rE,`__referenceConstructor has already been defined`),rE=e}var aE=class{constructor(e){this.listenProvider_=e,this.syncPointTree_=new $w(null),this.pendingWriteTree_=TT(),this.tagToQueryMap=new Map,this.queryToTagMap=new Map}};function oE(e,t,n,r,i){return fT(e.pendingWriteTree_,t,n,r,i),i?pE(e,new zw(Fw(),t,n)):[]}function sE(e,t,n=!1){let r=pT(e.pendingWriteTree_,t);if(mT(e.pendingWriteTree_,t)){let t=new $w(null);return r.snap==null?Wx(r.children,e=>{t=t.set(new dC(e),!0)}):t=t.set(X(),!0),pE(e,new Rw(r.path,t,n))}return[]}function cE(e,t,n){return pE(e,new zw(Iw(),t,n))}function lE(e,t,n){let r=$w.fromObject(n);return pE(e,new Bw(Iw(),t,r))}function uE(e,t,n,r){let i=gE(e,r);if(i!=null){let r=_E(i),a=r.path,o=r.queryId,s=yC(a,t);return vE(e,a,new zw(Lw(o),s,n))}return[]}function dE(e,t,n,r){let i=gE(e,r);if(i){let r=_E(i),a=r.path,o=r.queryId,s=yC(a,t),c=$w.fromObject(n);return vE(e,a,new Bw(Lw(o),s,c))}return[]}function fE(e,t,n){let r=e.pendingWriteTree_;return yT(r,t,e.syncPointTree_.findOnPath(t,(e,n)=>{let r=nE(n,yC(e,t));if(r)return r}),n,!0)}function pE(e,t){return mE(t,e.syncPointTree_,null,dT(e.pendingWriteTree_,X()))}function mE(e,t,n,r){if(Q(e.path))return hE(e,t,n,r);{let i=t.get(X());n==null&&i!=null&&(n=nE(i,X()));let a=[],o=Z(e.path),s=e.operationForChild(o),c=t.children.get(o);if(c&&s){let e=n?n.getImmediateChild(o):null,t=MT(r,o);a=a.concat(mE(s,c,e,t))}return i&&(a=a.concat(tE(i,e,r,n))),a}}function hE(e,t,n,r){let i=t.get(X());n==null&&i!=null&&(n=nE(i,X()));let a=[];return t.children.inorderTraversal((t,i)=>{let o=n?n.getImmediateChild(t):null,s=MT(r,t),c=e.operationForChild(t);c&&(a=a.concat(hE(c,i,o,s)))}),i&&(a=a.concat(tE(i,e,r,n))),a}function gE(e,t){return e.tagToQueryMap.get(t)}function _E(e){let t=e.indexOf(`$`);return B(t!==-1&&t<e.length-1,`Bad queryKey.`),{queryId:e.substr(t+1),path:new dC(e.substr(0,t))}}function vE(e,t,n){let r=e.syncPointTree_.get(t);return B(r,`Missing sync point for query tag that we're tracking`),tE(r,n,dT(e.pendingWriteTree_,t),null)}var yE=class e{constructor(e){this.node_=e}getImmediateChild(t){let n=this.node_.getImmediateChild(t);return new e(n)}node(){return this.node_}},bE=class e{constructor(e,t){this.syncTree_=e,this.path_=t}getImmediateChild(t){let n=vC(this.path_,t);return new e(this.syncTree_,n)}node(){return fE(this.syncTree_,this.path_)}},xE=function(e){return e||={},e.timestamp=e.timestamp||new Date().getTime(),e},SE=function(e,t,n){if(!e||typeof e!=`object`)return e;if(B(`.sv`in e,`Unexpected leaf node or priority contents`),typeof e[`.sv`]==`string`)return CE(e[`.sv`],t,n);if(typeof e[`.sv`]==`object`)return wE(e[`.sv`],t);B(!1,`Unexpected server value: `+JSON.stringify(e,null,2))},CE=function(e,t,n){switch(e){case`timestamp`:return n.timestamp;default:B(!1,`Unexpected server value: `+e)}},wE=function(e,t,n){e.hasOwnProperty(`increment`)||B(!1,`Unexpected server value: `+JSON.stringify(e,null,2));let r=e.increment;typeof r!=`number`&&B(!1,`Unexpected increment value: `+r);let i=t.node();if(B(i!=null,`Expected ChildrenNode.EMPTY_NODE for nulls`),!i.isLeafNode())return r;let a=i.getValue();return typeof a==`number`?a+r:r},TE=function(e,t,n,r){return DE(t,new bE(n,e),r)},EE=function(e,t,n){return DE(e,new yE(t),n)};function DE(e,t,n){let r=SE(e.getPriority().val(),t.getImmediateChild(`.priority`),n),i;if(e.isLeafNode()){let i=e,a=SE(i.getValue(),t,n);return a!==i.getValue()||r!==i.getPriority().val()?new ZC(a,pw(r)):e}{let a=e;return i=a,r!==a.getPriority().val()&&(i=i.updatePriority(new ZC(r))),a.forEachChild(nw,(e,r)=>{let a=DE(r,t.getImmediateChild(e),n);a!==r&&(i=i.updateImmediateChild(e,a))}),i}}var OE=class{constructor(e=``,t=null,n={children:{},childCount:0}){this.name=e,this.parent=t,this.node=n}};function kE(e,t){let n=t instanceof dC?t:new dC(t),r=e,i=Z(n);for(;i!==null;){let e=Qn(r.node.children,i)||{children:{},childCount:0};r=new OE(i,r,e),n=pC(n),i=Z(n)}return r}function AE(e){return e.node.value}function jE(e,t){e.node.value=t,RE(e)}function ME(e){return e.node.childCount>0}function NE(e){return AE(e)===void 0&&!ME(e)}function PE(e,t){Wx(e.node.children,(n,r)=>{t(new OE(n,e,r))})}function FE(e,t,n,r){n&&t(e),PE(e,e=>{FE(e,t,!0)})}function IE(e,t,n){let r=e.parent;for(;r!==null;){if(t(r))return!0;r=r.parent}return!1}function LE(e){return new dC(e.parent===null?e.name:LE(e.parent)+`/`+e.name)}function RE(e){e.parent!==null&&zE(e.parent,e.name,e)}function zE(e,t,n){let r=NE(n),i=An(e.node.children,t);r&&i?(delete e.node.children[t],e.node.childCount--,RE(e)):!r&&!i&&(e.node.children[t]=n.node,e.node.childCount++,RE(e))}var BE=/[\[\].#$\/\u0000-\u001F\u007F]/,VE=/[\[\].#$\u0000-\u001F\u007F]/,HE=10485760,UE=function(e){return typeof e==`string`&&e.length!==0&&!BE.test(e)},WE=function(e){return typeof e==`string`&&e.length!==0&&!VE.test(e)},GE=function(e){return e&&=e.replace(/^\/*\.info(\/|$)/,`/`),WE(e)},KE=function(e,t,n){let r=n instanceof dC?new SC(n,e):n;if(t===void 0)throw Error(e+`contains undefined `+EC(r));if(typeof t==`function`)throw Error(e+`contains a function `+EC(r)+` with contents = `+t.toString());if(Fx(t))throw Error(e+`contains `+t.toString()+` `+EC(r));if(typeof t==`string`&&t.length>HE/3&&cr(t)>HE)throw Error(e+`contains a string greater than 10485760 utf8 bytes `+EC(r)+` ('`+t.substring(0,50)+`...')`);if(t&&typeof t==`object`){let n=!1,i=!1;if(Wx(t,(t,a)=>{if(t===`.value`)n=!0;else if(t!==`.priority`&&t!==`.sv`&&(i=!0,!UE(t)))throw Error(e+` contains an invali
22d key (`+t+`) `+EC(r)+`. Keys must be non-empty strings and can't contain ".", "#", "$", "/", "[", or "]"`);CC(r,t),KE(e,a,r),wC(r)}),n&&i)throw Error(e+` contains ".value" child `+EC(r)+` in addition to actual children.`)}},qE=function(e,t){let n=t.path.toString();if(typeof t.repoInfo.host!=`string`||t.repoInfo.host.length===0||!UE(t.repoInfo.namespace)&&t.repoInfo.host.split(`:`)[0]!==`localhost`||n.length!==0&&!GE(n))throw Error(Hn(e,`url`)+`must be a valid firebase URL and the path can't contain ".", "#", "$", "[", or "]".`)},JE=class{constructor(){this.eventLists_=[],this.recursionDepth_=0}};function YE(e,t){let n=null;for(let r=0;r<t.length;r++){let i=t[r],a=i.getPath();n!==null&&!bC(a,n.path)&&(e.eventLists_.push(n),n=null),n===null&&(n={events:[],path:a}),n.events.push(i)}n&&e.eventLists_.push(n)}function XE(e,t,n){YE(e,n),ZE(e,e=>xC(e,t)||xC(t,e))}function ZE(e,t){e.recursionDepth_++;let n=!0;for(let r=0;r<e.eventLists_.length;r++){let i=e.eventLists_[r];if(i){let a=i.path;t(a)?(QE(e.eventLists_[r]),e.eventLists_[r]=null):n=!1}}n&&(e.eventLists_=[]),e.recursionDepth_--}function QE(e){for(let t=0;t<e.events.length;t++){let n=e.events[t];if(n!==null){e.events[t]=null;let r=n.getEventRunner();Ex&&kx(`event: `+n.toString()),Qx(r)}}}var $E=`repo_interrupt`,eD=25,tD=class{constructor(e,t,n,r){this.repoInfo_=e,this.forceRestClient_=t,this.authTokenProvider_=n,this.appCheckProvider_=r,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new JE,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=Ew(),this.transactionQueueTree_=new OE,this.persistentConnection_=null,this.key=this.repoInfo_.toURLString()}toString(){return(this.repoInfo_.secure?`https://`:`http://`)+this.repoInfo_.host}};function nD(e,t,n){if(e.stats_=xS(e.repoInfo_),e.forceRestClient_||$x())e.server_=new ww(e.repoInfo_,(t,n,r,i)=>{aD(e,t,n,r,i)},e.authTokenProvider_,e.appCheckProvider_),setTimeout(()=>oD(e,!0),0);else{if(n!=null){if(typeof n!=`object`)throw Error(`Only objects are supported for option databaseAuthVariableOverride`);try{er(n)}catch(e){throw Error(`Invalid authOverride provided: `+e)}}e.persistentConnection_=new FC(e.repoInfo_,t,(t,n,r,i)=>{aD(e,t,n,r,i)},t=>{oD(e,t)},t=>{sD(e,t)},e.authTokenProvider_,e.appCheckProvider_,n),e.server_=e.persistentConnection_}e.authTokenProvider_.addTokenChangeListener(t=>{e.server_.refreshAuthToken(t)}),e.appCheckProvider_.addTokenChangeListener(t=>{e.server_.refreshAppCheckToken(t.token)}),e.statsReporter_=SS(e.repoInfo_,()=>new Nw(e.stats_,e.server_)),e.infoData_=new Tw,e.infoSyncTree_=new aE({startListening:(t,n,r,i)=>{let a=[],o=e.infoData_.getNode(t._path);return o.isEmpty()||(a=cE(e.infoSyncTree_,t._path,o),setTimeout(()=>{i(`ok`)},0)),a},stopListening:()=>{}}),cD(e,`connected`,!1),e.serverSyncTree_=new aE({startListening:(t,n,r,i)=>(e.server_.listen(t,r,n,(n,r)=>{let a=i(n,r);XE(e.eventQueue_,t._path,a)}),[]),stopListening:(t,n)=>{e.server_.unlisten(t,n)}})}function rD(e){let t=e.infoData_.getNode(new dC(`.info/serverTimeOffset`)).val()||0;return new Date().getTime()+t}function iD(e){return xE({timestamp:rD(e)})}function aD(e,t,n,r,i){e.dataUpdateCount++;let a=new dC(t);n=e.interceptServerDataCallback_?e.interceptServerDataCallback_(t,n):n;let o=[];if(i){if(r){let t=Yn(n,e=>pw(e));o=dE(e.serverSyncTree_,a,t,i)}else{let t=pw(n);o=uE(e.serverSyncTree_,a,t,i)}}else if(r){let t=Yn(n,e=>pw(e));o=lE(e.serverSyncTree_,a,t)}else{let t=pw(n);o=cE(e.serverSyncTree_,a,t)}let s=a;o.length>0&&(s=gD(e,a)),XE(e.eventQueue_,s,o)}function oD(e,t){cD(e,`connected`,t),t===!1&&uD(e)}function sD(e,t){Wx(t,(t,n)=>{cD(e,t,n)})}function cD(e,t,n){let r=new dC(`/.info/`+t),i=pw(n);e.infoData_.updateSnapshot(r,i);let a=cE(e.infoSyncTree_,r,i);XE(e.eventQueue_,r,a)}function lD(e){return e.nextWriteId_++}function uD(e){fD(e,`onDisconnectEvents`);let t=iD(e),n=Ew();Ow(e.onDisconnect_,X(),(r,i)=>{let a=TE(r,i,e.serverSyncTree_,t);Dw(n,r,a)});let r=[];Ow(n,X(),(t,n)=>{r=r.concat(cE(e.serverSyncTree_,t,n)),gD(e,SD(e,t))}),e.onDisconnect_=Ew(),XE(e.eventQueue_,X(),r)}function dD(e){e.persistentConnection_&&e.persistentConnection_.interrupt($E)}function fD(e,...t){let n=``;
vendor: 9,350 bytes, line 22
22e.persistentConnection_&&(n=e.persistentConnection_.id+`:`),kx(n,...t)}function pD(e,t,n){return fE(e.serverSyncTree_,t,n)||uw.EMPTY_NODE}function mD(e,t=e.transactionQueueTree_){if(t||xD(e,t),AE(t)){let n=yD(e,t);B(n.length>0,`Sending zero length transaction queue`),n.every(e=>e.status===0)&&hD(e,LE(t),n)}else ME(t)&&PE(t,t=>{mD(e,t)})}function hD(e,t,n){let r=pD(e,t,n.map(e=>e.currentWriteId)),i=r,a=r.hash();for(let e=0;e<n.length;e++){let r=n[e];B(r.status===0,`tryToSendTransactionQueue_: items in queue should all be run.`),r.status=1,r.retryCount++;let a=yC(t,r.path);i=i.updateChild(a,r.currentOutputSnapshotRaw)}let o=i.val(!0),s=t;e.server_.put(s.toString(),o,r=>{fD(e,`transaction put response`,{path:s.toString(),status:r});let i=[];if(r===`ok`){let r=[];for(let t=0;t<n.length;t++)n[t].status=2,i=i.concat(sE(e.serverSyncTree_,n[t].currentWriteId)),n[t].onComplete&&r.push(()=>n[t].onComplete(null,!0,n[t].currentOutputSnapshotResolved)),n[t].unwatcher();xD(e,kE(e.transactionQueueTree_,t)),mD(e,e.transactionQueueTree_),XE(e.eventQueue_,t,i);for(let e=0;e<r.length;e++)Qx(r[e])}else{if(r===`datastale`)for(let e=0;e<n.length;e++)n[e].status===3?n[e].status=4:n[e].status=0;else{Nx(`transaction at `+s.toString()+` failed: `+r);for(let e=0;e<n.length;e++)n[e].status=4,n[e].abortReason=r}gD(e,t)}},a)}function gD(e,t){let n=vD(e,t),r=LE(n);return _D(e,yD(e,n),r),r}function _D(e,t,n){if(t.length===0)return;let r=[],i=[],a=t.filter(e=>e.status===0).map(e=>e.currentWriteId);for(let o=0;o<t.length;o++){let s=t[o],c=yC(n,s.path),l=!1,u;if(B(c!==null,`rerunTransactionsUnderNode_: relativePath should not be null.`),s.status===4)l=!0,u=s.abortReason,i=i.concat(sE(e.serverSyncTree_,s.currentWriteId,!0));else if(s.status===0){if(s.retryCount>=eD)l=!0,u=`maxretry`,i=i.concat(sE(e.serverSyncTree_,s.currentWriteId,!0));else{let n=pD(e,s.path,a);s.currentInputSnapshot=n;let r=t[o].update(n.val());if(r!==void 0){KE(`transaction failed: Data returned `,r,s.path);let t=pw(r);typeof r==`object`&&r&&An(r,`.priority`)||(t=t.updatePriority(n.getPriority()));let o=s.currentWriteId,c=iD(e),l=EE(t,n,c);s.currentOutputSnapshotRaw=t,s.currentOutputSnapshotResolved=l,s.currentWriteId=lD(e),a.splice(a.indexOf(o),1),i=i.concat(oE(e.serverSyncTree_,s.path,l,s.currentWriteId,s.applyLocally)),i=i.concat(sE(e.serverSyncTree_,o,!0))}else l=!0,u=`nodata`,i=i.concat(sE(e.serverSyncTree_,s.currentWriteId,!0))}}XE(e.eventQueue_,n,i),i=[],l&&(t[o].status=2,(function(e){setTimeout(e,0)})(t[o].unwatcher),t[o].onComplete&&(u===`nodata`?r.push(()=>t[o].onComplete(null,!1,t[o].currentInputSnapshot)):r.push(()=>t[o].onComplete(Error(u),!1,null))))}xD(e,e.transactionQueueTree_);for(let e=0;e<r.length;e++)Qx(r[e]);mD(e,e.transactionQueueTree_)}function vD(e,t){let n,r=e.transactionQueueTree_;for(n=Z(t);n!==null&&AE(r)===void 0;)r=kE(r,n),t=pC(t),n=Z(t);return r}function yD(e,t){let n=[];return bD(e,t,n),n.sort((e,t)=>e.order-t.order),n}function bD(e,t,n){let r=AE(t);if(r)for(let e=0;e<r.length;e++)n.push(r[e]);PE(t,t=>{bD(e,t,n)})}function xD(e,t){let n=AE(t);if(n){let e=0;for(let t=0;t<n.length;t++)n[t].status!==2&&(n[e]=n[t],e++);n.length=e,jE(t,n.length>0?n:void 0)}PE(t,t=>{xD(e,t)})}function SD(e,t){let n=LE(vD(e,t)),r=kE(e.transactionQueueTree_,t);return IE(r,t=>{CD(e,t)}),CD(e,r),FE(r,t=>{CD(e,t)}),n}function CD(e,t){let n=AE(t);if(n){let r=[],i=[],a=-1;for(let t=0;t<n.length;t++)n[t].status===3||(n[t].status===1?(B(a===t-1,`All SENT items should be at beginning of queue.`),a=t,n[t].status=3,n[t].abortReason=`set`):(B(n[t].status===0,`Unexpected transaction status in abort`),n[t].unwatcher(),i=i.concat(sE(e.serverSyncTree_,n[t].currentWriteId,!0)),n[t].onComplete&&r.push(n[t].onComplete.bind(null,Error(`set`),!1,null))));a===-1?jE(t,void 0):n.length=a+1,XE(e.eventQueue_,LE(t),i);for(let e=0;e<r.length;e++)Qx(r[e])}}function wD(e){let t=``,n=e.split(`/`);for(let e=0;e<n.length;e++)if(n[e].length>0){let r=n[e];try{r=decodeURIComponent(r.replace(/\+/g,` `))}catch{}t+=`/`+r}return t}function TD(e){let t={};e.charAt(0)===`?`&&(e=e.substring(1));for(let n of e.split(`&`)){if(n.length===0)continue;let r=n.split(`=`);r.length===2?t[decodeURIComponent(r[0])]=decodeURIComponent(r[1]):Nx(`Invalid query segment '${n}' in query '${e}'`)}return t}var ED=function(e,t){let n=DD(e),r=n.namespace;n.domain===`firebase.com`&&Mx(n.host+` is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead`),(!r||r===`undefined`)&&n.domain!==`localhost`&&Mx(`Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com`),n.secure||Px();let i=n.scheme===`ws`||n.scheme===`wss`;return{repoInfo:new hS(n.host,n.secure,r,i,t,``,r!==n.subdomain),path:new dC(n.pathString)}},DD=function(e){let t=``,n=``,r=``,i=``,a=``,o=!0,s=`https`,c=443;if(typeof e==`string`){let l=e.indexOf(`//`);l>=0&&(s=e.substring(0,l-1),e=e.substring(l+2));let u=e.indexOf(`/`);u===-1&&(u=e.length);let d=e.indexOf(`?`);d===-1&&(d=e.length),t=e.substring(0,Math.min(u,d)),u<d&&(i=wD(e.substring(u,d)));let f=TD(e.substring(Math.min(e.length,d)));l=t.indexOf(`:`),l>=0?(o=s===`https`||s===`wss`,c=parseInt(t.substring(l+1),10)):l=t.length;let p=t.slice(0,l);if(p.toLowerCase()===`localhost`)n=`localhost`;else if(p.split(`.`).length<=2)n=p;else{let e=t.indexOf(`.`);r=t.substring(0,e).toLowerCase(),n=t.substring(e+1),a=r}`ns`in f&&(a=f.ns)}return{host:t,port:c,domain:n,subdomain:r,secure:o,scheme:s,pathString:i,namespace:a}},OD=class e{constructor(e,t,n,r){this._repo=e,this._path=t,this._queryParams=n,this._orderByCalled=r}get key(){return Q(this._path)?null:mC(this._path)}get ref(){return new kD(this._repo,this._path)}get _queryIdentifier(){let e=Hx(Cw(this._queryParams));return e===`{}`?`default`:e}get _queryObject(){return Cw(this._queryParams)}isEqual(t){if(t=Mn(t),!(t instanceof e))return!1;let n=this._repo===t._repo,r=bC(this._path,t._path),i=this._queryIdentifier===t._queryIdentifier;return n&&r&&i}toJSON(){return this.toString()}toString(){return this._repo.toString()+hC(this._path)}},kD=class e extends OD{constructor(e,t){super(e,t,new xw,!1)}get parent(){let t=_C(this._path);return t===null?null:new e(this._repo,t)}get root(){let e=this;for(;e.parent!==null;)e=e.parent;return e}};eE(kD),iE(kD);var AD=`FIREBASE_DATABASE_EMULATOR_HOST`,jD={},MD=!1;function ND(e,t,n,r,i){let a=r||e.options.databaseURL;a===void 0&&(e.options.projectId||Mx(`Can't determine Firebase Database URL. Be sure to include a Project ID when calling firebase.initializeApp().`),kx(`Using default host for project `,e.options.projectId),a=`${e.options.projectId}-default-rtdb.firebaseio.com`);let o=ED(a,i),s=o.repoInfo,c,l;typeof process<`u`&&(l={}[AD]),l?(c=!0,a=`http://${l}?ns=${s.namespace}`,o=ED(a,i),s=o.repoInfo):c=!o.repoInfo.secure;let u=i&&c?new rS(rS.OWNER):new nS(e.name,e.options,t);return qE(`Invalid Firebase Database URL`,o),Q(o.path)||Mx(`Database URL must point to the root of a Firebase Database (not including a child path).`),new ID(FD(s,e,u,new tS(e,n)),e)}function PD(e,t){let n=jD[t];(!n||n[e.key]!==e)&&Mx(`Database ${t}(${e.repoInfo_}) has already been deleted.`),dD(e),delete n[e.key]}function FD(e,t,n,r){let i=jD[t.name];i||(i={},jD[t.name]=i);let a=i[e.toURLString()];return a&&Mx(`Database initialized multiple times. Please make sure the format of the database URL matches with each database() call.`),a=new tD(e,MD,n,r),i[e.toURLString()]=a,a}var ID=class{constructor(e,t){this._repoInternal=e,this.app=t,this.type=`database`,this._instanceStarted=!1}get _repo(){return this._instanceStarted||=(nD(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),!0),this._repoInternal}get _root(){return this._rootInternal||=new kD(this._repo,X()),this._rootInternal}_delete(){return this._rootInternal!==null&&(PD(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null),Promise.resolve()}_checkNotDeleted(e){this._rootInternal===null&&Mx(`Cannot call `+e+` on a deleted database.`)}};function LD(e){gx(ar),Zn(new Bn(`database`,(e,{instanceIdentifier:t})=>ND(e.getProvider(`app`).getImmediate(),e.getProvider(`auth-internal`),e.getProvider(`app-check-internal`),t),`PUBLIC`).setMultipleInstances(!0)),_r(px,mx,e),_r(px,mx,`esm2020`)}FC.prototype.simpleListen=function(e,t){this.sendRequest(`q`,{p:e},t)},FC.prototype.echo=function(e,t){this.sendRequest(`echo`,{d:e},t)},LD();var RD=`firebasestorage.googleapis.com`,zD=`storageBucket`,BD=12e4,VD=6e5,HD=class e extends In{constructor(t,n,r=0){super(WD(t),`Firebase Storage: ${n} (${WD(t)})`),this.status_=r,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,e.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return WD(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.message=this.customData.serverResponse?`${this._baseMessage}\n${this.customData.serverResponse}`:this._baseMessage}},UD;(function(e){e.UNKNOWN=`unknown`,e.OBJECT_NOT_FOUND=`object-not-found`,e.BUCKET_NOT_FOUND=`bucket-not-found`,e.PROJECT_NOT_FOUND=`project-not-found`,e.QUOTA_EXCEEDED=`quota-exceeded`,e.UNAUTHENTICATED=`unauthenticated`,e.UNAUTHORIZED=`unauthorized`,e.UNAUTHORIZED_APP=`unauthorized-app`,e.RETRY_LIMIT_EXCEEDED=`retry-limit-exceeded`,e.INVALID_CHECKSUM=`invali
22d-checksum`,e.CANCELED=`canceled`,e.INVALID_EVENT_NAME=`invalid-event-name`,e.INVALID_URL=`invalid-url`,e.INVALID_DEFAULT_BUCKET=`invalid-default-bucket`,e.NO_DEFAULT_BUCKET=`no-default-bucket`,e.CANNOT_SLICE_BLOB=`cannot-slice-blob`,e.SERVER_FILE_WRONG_SIZE=`server-file-wrong-size`,e.NO_DOWNLOAD_URL=`no-download-url`,e.INVALID_ARGUMENT=`invalid-argument`,e.INVALID_ARGUMENT_COUNT=`invalid-argument-count`,e.APP_DELETED=`app-deleted`,e.INVALID_ROOT_OPERATION=`invalid-root-operation`,e.INVALID_FORMAT=`invalid-format`,e.INTERNAL_ERROR=`internal-error`,e.UNSUPPORTED_ENVIRONMENT=`unsupported-environment`})(UD||={});function WD(e){return`storage/`+e}function GD(){return new HD(UD.UNKNOWN,`An unknown error occurred, please check the error payload for server response.`)}function KD(e){return new HD(UD.OBJECT_NOT_FOUND,`Object '`+e+`' does not exist.`)}function qD(e){return new HD(UD.QUOTA_EXCEEDED,`Quota for bucket '`+e+`' exceeded, please view quota on https://firebase.google.com/pricing/.`)}function JD(){return new HD(UD.UNAUTHENTICATED,`User is not authenticated, please authenticate using Firebase Authentication and try again.`)}function YD(){return new HD(UD.UNAUTHORIZED_APP,`This app does not have permission to access Firebase Storage on this project.`)}function XD(e){return new HD(UD.UNAUTHORIZED,`User does not have permission to access '`+e+`'.`)}function ZD(){return new HD(UD.RETRY_LIMIT_EXCEEDED,`Max retry time for operation exceeded, please try again.`)}function QD(){return new HD(UD.CANCELED,`User canceled the upload/download.`)}function $D(e){return new HD(UD.INVALID_URL,`Invalid URL '`+e+`'.`)}function eO(e){return new HD(UD.INVALID_DEFAULT_BUCKET,`Invalid default bucket '`+e+`'.`)}function tO(){return new HD(UD.NO_DEFAULT_BUCKET,`No default bucket found. Did you set the 'storageBucket' property when initializing the app?`)}function nO(){return new HD(UD.CANNOT_SLICE_BLOB,`Cannot slice blob for upload. Please retry the upload.`)}function rO(){return new HD(UD.NO_DOWNLOAD_URL,`The given file does not have any download URLs.`)}function iO(e){return new HD(UD.UNSUPPORTED_ENVIRONMENT,`${e} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}function aO(e){return new HD(UD.INVALID_ARGUMENT,e)}function oO(){return new HD(UD.APP_DELETED,`The Firebase app was deleted.`)}function sO(e){return new HD(UD.INVALID_ROOT_OPERATION,`The operation '`+e+`' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').`)}function cO(e,t){return new HD(UD.INVALID_FORMAT,`String does not match format '`+e+`': `+t)}function lO(e){throw new HD(UD.INTERNAL_ERROR,`Internal error: `+e)}var uO=class e{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return this.path.length===0}fullServerUrl(){let e=encodeURIComponent;return`/b/`+e(this.bucket)+`/o/`+e(this.path)}bucketOnlyServerUrl(){return`/b/`+encodeURIComponent(this.bucket)+`/o`}static makeFromBucketSpec(t,n){let r;try{r=e.makeFromUrl(t,n)}catch{return new e(t,``)}if(r.path===``)return r;throw eO(t)}static makeFromUrl(t,n){let r=null,i=`([A-Za-z0-9.\\-_]+)`;function a(e){e.path.charAt(e.path.length-1)===`/`&&(e.path_=e.path_.slice(0,-1))}let o=RegExp(`^gs://`+i+`(/(.*))?$`,`i`),s={bucket:1,path:3};function c(e){e.path_=decodeURIComponent(e.path)}let l=n.replace(/[.]/g,`\\.`),u=RegExp(`^https?://${l}/v[A-Za-z0-9_]+/b/${i}/o(/([^?#]*).*)?\$`,`i`),d={bucket:1,path:3},f=RegExp(`^https?://${n===RD?`(?:storage.googleapis.com|storage.cloud.google.com)`:n}/${i}/([^?#]*)`,`i`),p=[{regex:o,indices:s,postModify:a},{regex:u,indices:d,postModify:c},{regex:f,indices:{bucket:1,path:2},postModify:c}];for(let n=0;n<p.length;n++){let i=p[n],a=i.regex.exec(t);if(a){let t=a[i.indices.bucket],n=a[i.indices.path];n||=``,r=new e(t,n),i.postModify(r);break}}if(r==null)throw $D(t);return r}},dO=class{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}};function fO(e,t,n){let r=1,i=null,a=null,o=!1,s=0;function c(){return s===2}let l=!1;function u(...e){l||(l=!0,t.apply(null,e))}function d(t){i=setTimeout(()=>{i=null,e(p,c())},t)}function f(){a&&clearTimeout(a)}function p(e,...t){if(l){f();return}if(e){f(),u.call(null,e,...t);return}if(c()||o){f(),u.call(null,e,...t);return}r<64&&(r*=2);let n;s===1?(s=2,n=0):n=(r+Math.random())*1e3,d(n)}let m=!1;function h(e){m||(m=!0,f(),!l&&(i===null?e||(s=1):(e||(s=2),clearTimeout(i),d(0))))}return d(0),a=setTimeout(()=>{o=!0,h(!0)},n),h}function pO(e){e(!1)}function mO(e){return e!==void 0}function hO(e){return typeof e==`object`&&!Array.isArray(e)}function gO(e){return typeof e==`string`||e instanceof String}function _O(e){return vO()&&e instanceof Blob}function vO(){return typeof Blob<`u`}function yO(e,t,n,r){if(r<t)throw aO(`Invalid value for '${e}'. Expected ${t} or greater.`);if(r>n)throw aO(`Invalid value for '${e}'. Expected ${n} or less.`)}function bO(e,t,n){let r=t;return n??(r=`https://${t}`),`${n}://${r}/v0${e}`}function xO(e){let t=encodeURIComponent,n=`?`;for(let r in e)if(e.hasOwnProperty(r)){let i=t(r)+`=`+t(e[r]);n=n+i+`&`}return n=n.slice(0,-1),n}var SO;
22(function(e){e[e.NO_ERROR=0]=`NO_ERROR`,e[e.NETWORK_ERROR=1]=`NETWORK_ERROR`,e[e.ABORT=2]=`ABORT`})(SO||={});function CO(e,t){let n=e>=500&&e<600,r=[408,429].indexOf(e)!==-1,i=t.indexOf(e)!==-1;return n||r||i}var wO=class{constructor(e,t,n,r,i,a,o,s,c,l,u,d=!0,f=!1){this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=i,this.additionalRetryCodes_=a,this.callback_=o,this.errorCallback_=s,this.timeout_=c,this.progressCallback_=l,this.connectionFactory_=u,this.retry=d,this.isUsingEmulator=f,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((e,t)=>{this.resolve_=e,this.reject_=t,this.start_()})}start_(){let e=(e,t)=>{if(t){e(!1,new TO(!1,null,!0));return}let n=this.connectionFactory_();this.pendingConnection_=n;let r=e=>{let t=e.loaded,n=e.lengthComputable?e.total:-1;this.progressCallback_!==null&&this.progressCallback_(t,n)};this.progressCallback_!==null&&n.addUploadProgressListener(r),n.send(this.url_,this.method_,this.isUsingEmulator,this.body_,this.headers_).then(()=>{this.progressCallback_!==null&&n.removeUploadProgressListener(r),this.pendingConnection_=null;let t=n.getErrorCode()===SO.NO_ERROR,i=n.getStatus();if(!t||CO(i,this.additionalRetryCodes_)&&this.retry){e(!1,new TO(!1,null,n.getErrorCode()===SO.ABORT));return}e(!0,new TO(this.successCodes_.indexOf(i)!==-1,n))})},t=(e,t)=>{let n=this.resolve_,r=this.reject_,i=t.connection;if(t.wasSuccessCode)try{let e=this.callback_(i,i.getResponse());mO(e)?n(e):n()}catch(e){r(e)}else if(i!==null){let e=GD();e.serverResponse=i.getErrorText(),this.errorCallback_?r(this.errorCallback_(i,e)):r(e)}else t.canceled?r(this.appDelete_?oO():QD()):r(ZD())};this.canceled_?t(!1,new TO(!1,null,!0)):this.backoffId_=fO(e,t,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,this.backoffId_!==null&&pO(this.backoffId_),this.pendingConnection_!==null&&this.pendingConnection_.abort()}},TO=class{constructor(e,t,n){this.wasSuccessCode=e,this.connection=t,this.canceled=!!n}};function EO(e,t){t!==null&&t.length>0&&(e.Authorization=`Firebase `+t)}function DO(e,t){e[`X-Firebase-Storage-Version`]=`webjs/`+(t??`AppManager`)}function OO(e,t){t&&(e[`X-Firebase-GMPID`]=t)}function kO(e,t){t!==null&&(e[`X-Firebase-AppCheck`]=t)}function AO(e,t,n,r,i,a,o=!0,s=!1){let c=xO(e.urlParams),l=e.url+c,u=Object.assign({},e.headers);return OO(u,t),EO(u,n),DO(u,a),kO(u,r),new wO(l,e.method,u,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,i,o,s)}function jO(){if(typeof BlobBuilder<`u`)return BlobBuilder;if(typeof WebKitBlobBuilder<`u`)return WebKitBlobBuilder}function MO(...e){let t=jO();if(t!==void 0){let n=new t;for(let t=0;t<e.length;t++)n.append(e[t]);return n.getBlob()}if(vO())return new Blob(e);throw new HD(UD.UNSUPPORTED_ENVIRONMENT,`This browser doesn't seem to support creating Blobs`)}function NO(e,t,n){return e.webkitSlice?e.webkitSlice(t,n):e.mozSlice?e.mozSlice(t,n):e.slice?e.slice(t,n):null}function PO(e){if(typeof atob>`u`)throw iO(`base-64`);return atob(e)}var FO={RAW:`raw`,BASE64:`base64`,BASE64URL:`base64url`,DATA_URL:`data_url`},IO=class{constructor(e,t){this.data=e,this.contentType=t||null}};function LO(e,t){switch(e){case FO.RAW:return new IO(RO(t));case FO.BASE64:case FO.BASE64URL:return new IO(BO(e,t));case FO.DATA_URL:return new IO(HO(t),UO(t))}throw GD()}function RO(e){let t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>6,128|r&63);else if((r&64512)==55296){if(!(n<e.length-1&&(e.charCodeAt(n+1)&64512)==56320))t.push(239,191,189);else{let i=r,a=e.charCodeAt(++n);r=65536|(i&1023)<<10|a&1023,t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|r&63)}}else(r&64512)==56320?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|r&63)}return new Uint8Array(t)}function zO(e){let t;try{t=decodeURIComponent(e)}catch{throw cO(FO.DATA_URL,`Malformed data URL.`)}return RO(t)}function BO(e,t){switch(e){case FO.BASE64:{let n=t.indexOf(`-`)!==-1,r=t.indexOf(`_`)!==-1;if(n||r)throw cO(e,`Invalid character '`+(n?`-`:`_`)+`' found: is it base64url encoded?`);break}case FO.BASE64URL:{let n=t.indexOf(`+`)!==-1,r=t.indexOf(`/`)!==-1;if(n||r)throw cO(e,`Invalid character '`+(n?`+`:`/`)+`' found: is it base64 encoded?`);t=t.replace(/-/g,`+`).replace(/_/g,`/`);break}}let n;try{n=PO(t)}catch(t){throw t.message.includes(`polyfill`)?t:cO(e,`Invalid character found`)}let r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r}var VO=class{constructor(e){this.base64=!1,this.contentType=null;let t=e.match(/^data:([^,]+)?,/);if(t===null)throw cO(FO.DATA_URL,`Must be formatted 'data:[<mediatype>][;base64],<data>`);let n=t[1]||null;n!=null&&(this.base64=WO(n,`;base64`),this.contentType=this.base64?n.substring(0,n.length-7):n),this.rest=e.substring(e.indexOf(`,`)+1)}};function HO(e){let t=new VO(e);return t.base64?BO(FO.BASE64,t.rest):zO(t.rest)}function UO(e){return new VO(e).contentType}function WO(e,t){return e.length>=t.length&&e.substring(e.length-t.length)===t}var GO=class e{constructor(e,t){let n=0,r=``;_O(e)?(this.data_=e,n=e.size,r=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=r}size(){return this.size_}type(){return this.type_}slice(t,n){if(_O(this.data_)){let r=this.data_,i=NO(r,t,n);return i===null?null:new e(i)}{let r=new Uint8Array(this.data_.buffer,t,n-t);return new e(r,!0)}}static getBlob(...t){if(vO()){let n=t.map(t=>t instanceof e?t.data_:t);return new e(MO.apply(null,n))}{let n=t.map(e=>gO(e)?LO(FO.RAW,e).data:e.data_),r=0;
22n.forEach(e=>{r+=e.byteLength});let i=new Uint8Array(r),a=0;return n.forEach(e=>{for(let t=0;t<e.length;t++)i[a++]=e[t]}),new e(i,!0)}}uploadData(){return this.data_}};function KO(e){let t;try{t=JSON.parse(e)}catch{return null}return hO(t)?t:null}function qO(e){if(e.length===0)return null;let t=e.lastIndexOf(`/`);return t===-1?``:e.slice(0,t)}function JO(e,t){let n=t.split(`/`).filter(e=>e.length>0).join(`/`);return e.length===0?n:e+`/`+n}function YO(e){let t=e.lastIndexOf(`/`,e.length-2);return t===-1?e:e.slice(t+1)}function XO(e,t){return t}var ZO=class{constructor(e,t,n,r){this.server=e,this.local=t||e,this.writable=!!n,this.xform=r||XO}},QO=null;function $O(e){return!gO(e)||e.length<2?e:YO(e)}function ek(){if(QO)return QO;let e=[];e.push(new ZO(`bucket`)),e.push(new ZO(`generation`)),e.push(new ZO(`metageneration`)),e.push(new ZO(`name`,`fullPath`,!0));function t(e,t){return $O(t)}let n=new ZO(`name`);n.xform=t,e.push(n);function r(e,t){return t===void 0?t:Number(t)}let i=new ZO(`size`);return i.xform=r,e.push(i),e.push(new ZO(`timeCreated`)),e.push(new ZO(`updated`)),e.push(new ZO(`md5Hash`,null,!0)),e.push(new ZO(`cacheControl`,null,!0)),e.push(new ZO(`contentDisposition`,null,!0)),e.push(new ZO(`contentEncoding`,null,!0)),e.push(new ZO(`contentLanguage`,null,!0)),e.push(new ZO(`contentType`,null,!0)),e.push(new ZO(`metadata`,`customMetadata`,!0)),QO=e,QO}function tk(e,t){function n(){let n=e.bucket,r=e.fullPath,i=new uO(n,r);return t._makeStorageReference(i)}Object.defineProperty(e,"ref",{get:n})}function nk(e,t,n){let r={};r.type=`file`;let i=n.length;for(let e=0;e<i;e++){let i=n[e];r[i.local]=i.xform(r,t[i.server])}return tk(r,e),r}function rk(e,t,n){let r=KO(t);return r===null?null:nk(e,r,n)}function ik(e,t,n,r){let i=KO(t);if(i===null||!gO(i.downloadTokens))return null;let a=i.downloadTokens;if(a.length===0)return null;let o=encodeURIComponent;return a.split(`,`).map(t=>{let i=e.bucket,a=e.fullPath;return bO(`/b/`+o(i)+`/o/`+o(a),n,r)+xO({alt:`media`,token:t})})[0]}function ak(e,t){let n={},r=t.length;for(let i=0;i<r;i++){let r=t[i];r.writable&&(n[r.server]=e[r.local])}return JSON.stringify(n)}var ok=class{constructor(e,t,n,r){this.url=e,this.method=t,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}};function sk(e){if(!e)throw GD()}function ck(e,t){function n(n,r){let i=rk(e,r,t);return sk(i!==null),i}return n}function lk(e,t){function n(n,r){let i=rk(e,r,t);return sk(i!==null),ik(i,r,e.host,e._protocol)}return n}function uk(e){function t(t,n){let r;return r=t.getStatus()===401?t.getErrorText().includes(`Firebase App Check token is invalid`)?YD():JD():t.getStatus()===402?qD(e.bucket):t.getStatus()===403?XD(e.path):n,r.status=t.getStatus(),r.serverResponse=n.serverResponse,r}return t}function dk(e){let t=uk(e);function n(n,r){let i=t(n,r);return n.getStatus()===404&&(i=KD(e.path)),i.serverResponse=r.serverResponse,i}return n}function fk(e,t,n){let r=bO(t.fullServerUrl(),e.host,e._protocol),i=e.maxOperationRetryTime,a=new ok(r,`GET`,lk(e,n),i);return a.errorHandler=dk(t),a}function pk(e,t){let n=bO(t.fullServerUrl(),e.host,e._protocol),r=e.maxOperationRetryTime;function i(e,t){}let a=new ok(n,`DELETE`,i,r);return a.successCodes=[200,204],a.errorHandler=dk(t),a}function mk(e,t){return e&&e.contentType||t&&t.type()||`application/octet-stream`}function hk(e,t,n){let r=Object.assign({},n);return r.fullPath=e.path,r.size=t.size(),r.contentType||=mk(null,t),r}function gk(e,t,n,r,i){let a=t.bucketOnlyServerUrl(),o={"X-Goog-Upload-Protocol":`multipart`};function s(){let e=``;for(let t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}let c=s();o[`Content-Type`]=`multipart/related; boundary=`+c;let l=hk(t,r,i),u=ak(l,n),d=`--`+c+`\r 23Content-Type: application/json; charset=utf-8\r 24\r 25`+u+`\r 26--`+c+`\r 27Content-Type: `+l.contentType+`\r 28\r 29`,f=`\r 30--`+c+`--`,p=GO.getBlob(d,r,f);if(p===null)throw nO();let m={name:l.fullPath},h=bO(a,e.host,e._protocol),g=e.maxUploadRetryTime,_=new ok(h,`POST`,ck(e,n),g);
30return _.urlParams=m,_.headers=o,_.body=p.uploadData(),_.errorHandler=uk(t),_}var _k=class{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=SO.NO_ERROR,this.sendPromise_=new Promise(e=>{this.xhr_.addEventListener(`abort`,()=>{this.errorCode_=SO.ABORT,e()}),this.xhr_.addEventListener(`error`,()=>{this.errorCode_=SO.NETWORK_ERROR,e()}),this.xhr_.addEventListener(`load`,()=>{e()})})}send(e,t,n,r,i){if(this.sent_)throw lO(`cannot .send() more than once`);if(Wn(e)&&n&&(this.xhr_.withCredentials=!0),this.sent_=!0,this.xhr_.open(t,e,!0),i!==void 0)for(let e in i)i.hasOwnProperty(e)&&this.xhr_.setRequestHeader(e,i[e].toString());return r===void 0?this.xhr_.send():this.xhr_.send(r),this.sendPromise_}getErrorCode(){if(!this.sent_)throw lO(`cannot .getErrorCode() before sending`);return this.errorCode_}getStatus(){if(!this.sent_)throw lO(`cannot .getStatus() before sending`);try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw lO(`cannot .getResponse() before sending`);return this.xhr_.response}getErrorText(){if(!this.sent_)throw lO(`cannot .getErrorText() before sending`);return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){this.xhr_.upload!=null&&this.xhr_.upload.addEventListener(`progress`,e)}removeUploadProgressListener(e){this.xhr_.upload!=null&&this.xhr_.upload.removeEventListener(`progress`,e)}},vk=class extends _k{initXhr(){this.xhr_.responseType=`text`}};function yk(){return new vk}var bk=class e{constructor(e,t){this._service=e,this._location=t instanceof uO?t:uO.makeFromUrl(t,e.host)}toString(){return`gs://`+this._location.bucket+`/`+this._location.path}_newRef(t,n){return new e(t,n)}get root(){let e=new uO(this._location.bucket,``);return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return YO(this._location.path)}get storage(){return this._service}get parent(){let t=qO(this._location.path);if(t===null)return null;let n=new uO(this._location.bucket,t);return new e(this._service,n)}_throwIfRoot(e){if(this._location.path===``)throw sO(e)}};function xk(e,t,n){e._throwIfRoot(`uploadBytes`);let r=gk(e.storage,e._location,ek(),new GO(t,!0),n);return e.storage.makeRequestWithTokens(r,yk).then(t=>({metadata:t,ref:e}))}function Sk(e){e._throwIfRoot(`getDownloadURL`);let t=fk(e.storage,e._location,ek());return e.storage.makeRequestWithTokens(t,yk).then(e=>{if(e===null)throw rO();return e})}function Ck(e){e._throwIfRoot(`deleteObject`);let t=pk(e.storage,e._location);return e.storage.makeRequestWithTokens(t,yk)}function wk(e,t){let n=JO(e._location.path,t),r=new uO(e._location.bucket,n);return new bk(e.storage,r)}function Tk(e){return/^[A-Za-z]+:\/\//.test(e)}function Ek(e,t){return new bk(e,t)}function Dk(e,t){if(e instanceof jk){let n=e;if(n._bucket==null)throw tO();let r=new bk(n,n._bucket);return t==null?r:Dk(r,t)}return t===void 0?e:wk(e,t)}function Ok(e,t){if(t&&Tk(t)){if(e instanceof jk)return Ek(e,t);throw aO(`To use ref(service, url), the first argument must be a Storage instance.`)}return Dk(e,t)}function kk(e,t){let n=t?.[zD];return n==null?null:uO.makeFromBucketSpec(n,e)}function Ak(e,t,n,r={}){e.host=`${t}:${n}`;let i=Wn(t);i&&rr(`https://${e.host}/b`),e._isUsingEmulator=!0,e._protocol=i?`https`:`http`;let{mockUserToken:a}=r;a&&(e._overrideAuthToken=typeof a==`string`?a:Nn(a,e.app.options.projectId))}var jk=class{constructor(e,t,n,r,i,a=!1){this.app=e,this._authProvider=t,this._appCheckProvider=n,this._url=r,this._firebaseVersion=i,this._isUsingEmulator=a,this._bucket=null,this._host=RD,this._protocol=`https`,this._appId=null,this._deleted=!1,this._maxOperationRetryTime=BD,this._maxUploadRetryTime=VD,this._requests=new Set,this._bucket=r==null?kk(this._host,this.app.options):uO.makeFromBucketSpec(r,this._host)}get host(){return this._host}set host(e){this._host=e,this._bucket=this._url==null?kk(e,this.app.options):uO.makeFromBucketSpec(this._url,e)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){yO(`time`,0,1/0,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){yO(`time`,0,1/0,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;let e=this._authProvider.getImmediate({optional:!0});if(e){let t=await e.getToken();if(t!==null)return t.accessToken}return null}async _getAppCheckToken(){if(pr(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let e=this._appCheckProvider.getImmediate({optional:!0});
30return e?(await e.getToken()).token:null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new bk(this,e)}_makeRequest(e,t,n,r,i=!0){if(this._deleted)return new dO(oO());{let a=AO(e,this._appId,n,r,t,this._firebaseVersion,i,this._isUsingEmulator);return this._requests.add(a),a.getPromise().then(()=>this._requests.delete(a),()=>this._requests.delete(a)),a}}async makeRequestWithTokens(e,t){let[n,r]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,t,n,r).getPromise()}},Mk=`@firebase/storage`,Nk=`0.14.5`,Pk=`storage`;function Fk(e,t,n){return e=Mn(e),xk(e,t,n)}function Ik(e){return e=Mn(e),Sk(e)}function Lk(e){return e=Mn(e),Ck(e)}function Rk(e,t){return e=Mn(e),Ok(e,t)}function zk(e=$n(),t){e=Mn(e);let n=Jn(e,Pk).getImmediate({identifier:t}),r=Vn(`storage`);return r&&Bk(n,...r),n}function Bk(e,t,n,r={}){Ak(e,t,n,r)}function Vk(e,{instanceIdentifier:t}){return new jk(e.getProvider(`app`).getImmediate(),e.getProvider(`auth-internal`),e.getProvider(`app-check-internal`),t,ar)}function Hk(){Zn(new Bn(Pk,Vk,`PUBLIC`).setMultipleInstances(!0)),_r(Mk,Nk,``),_r(Mk,Nk,`esm2020`)}Hk();var Uk=e({StorageError:()=>HD,StorageErrorCode:()=>UD,StringFormat:()=>FO,_FbsBlob:()=>GO,_Location:()=>uO,_dataFromString:()=>LO,_invalidArgument:()=>aO,_invalidRootOperation:()=>sO,connectStorageEmulator:()=>Bk,deleteObject:()=>Lk,getDownloadURL:()=>Ik,getStorage:()=>zk,ref:()=>Rk,uploadBytes:()=>Fk}),Wk=new WeakMap;function Gk(e,t){return Wk.has(t)||Wk.set(t,e||{f:{},r:{},s:{},u:{}}),Wk.get(t)}function Kk(e){return br(fx(e))}function qk(e,{firebaseApp:t,modules:n=[]}){e.provide(dx,t);for(let r of n)r(t,e)}var Jk=p(e=>{let t=e.$firebaseApp;e.vueApp.use(qk,{firebaseApp:t}),e.payload?.vuefire&&Gk(e.payload.vuefire,t)});function Yk(e){return e?.defaultForDomains?.[0]||e?.domain||e?.domains?.[0]}function Xk(e,t){return Yk(e)||Yk(t)}var Zk=[`i18n:plugin`,`i18n:plugin:ssg-detect`,`i18n:plugin:route-locale-detect`];function Qk(){return d().$nuxtSiteConfig}function $k(e){let t=w(e.locales).find(t=>t.code===e.defaultLocale);return t?.language||t?.iso||e.defaultLocale}function eA(e,t){let n=w(e.baseUrl)||void 0;if(!w(e.differentDomains))return n;let r=w(e.locales).find(t=>t.code===w(e.defaultLocale)),i=Xk(w(e.localeProperties),r);return i?ln(i,{strict:!0})?i:`${t}//${i}`:n}function tA(e){let t=w(e.localeProperties);return t.language?t.language:$k(e)}function nA(e){return e.te(`nuxtSiteConfig.description`)?e.t(`nuxtSiteConfig.description`):void 0}function rA(e){return e.te(`nuxtSiteConfig.name`)?e.t(`nuxtSiteConfig.name`):void 0}var iA=p({name:`nuxt-site-config:i18n`,dependsOn:Zk,setup(e){let t=e.$i18n;if(!t)return;let n=Qk(),r=hu().protocol,i=w(t.baseUrl);if(i){let e=n.get({resolveRefs:!0}),t=e.url;if(t&&!t.includes(`localhost`)){let n=sn(i,`https://`),r=sn(t,`https://`);n.host!==r.host&&e.env===`production`&&console.error(`[Nuxt Site Config] Your I18n baseUrl \`${n.host}\` doesn't match your site url ${r.host}. This will cause production SEO issues. Either provide a matching baseUrl or remove the site url config.`)}}let a=M(()=>$k(t)),o=M(()=>eA(t,r)),s=M(()=>tA(t)),c=M(()=>nA(t)),l=M(()=>rA(t)),u;E(t.locale,()=>{u&&u(),u=n.push({_priority:Kc.build,_context:`@nuxtjs/i18n`,url:o,defaultLocale:a,currentLocale:s,description:c,name:l})},{immediate:!0})}}),aA=`1.3.26`;function oA(e,t,n){return Math.max(e,Math.min(t,n))}function sA(e,t,n){return(1-n)*e+n*t}function cA(e,t,n,r){return sA(e,t,1-Math.exp(-n*r))}function lA(e,t){return(e%t+t)%t}var uA=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(e){if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;let n=oA(0,this.currentTime/this.duration,1);t=n>=1;let r=t?1:this.easing(n);this.value=this.from+(this.to-this.from)*r}else this.lerp?(this.value=cA(this.value,this.to,this.lerp*60,e),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),this.onUpdate?.(this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:n,duration:r,easing:i,onStart:a,onUpdate:o}){this.from=this.value=e,this.to=t,this.lerp=n,this.duration=r,this.easing=i,this.currentTime=0,this.isRunning=!0,a?.(),this.onUpdate=o}};function dA(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>{n=void 0,e.apply(this,r)},t)}}var fA=class{width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;constructor(e,t,{autoResize:n=!0,debounce:r=250}={}){this.wrapper=e,this.content=t,n&&(this.debouncedResize=dA(this.resize,r),this.wrapper instanceof Window?window.addEventListener(`resize`,this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener(`resize`,this.debouncedResize)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},pA=class{events={};emit(e,...t){let n=this.events[e]||[];for(let e=0,r=n.length;e<r;e++)n[e]?.(...t)}on(e,t){return this.events[e]?this.events[e].push(t):this.events[e]=[t],()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}off(e,t){this.events[e]=this.events[e]?.filter(e=>t!==e)}destroy(){this.events={}}},mA=100/6,hA={passive:!1};function gA(e,t){return e===1?mA:e===2?t:1}var _A=class{touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new pA;constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){this.element=e,this.options=t,window.addEventListener(`resize`,this.onWindowResize),this.onWindowResize(),this.element.addEventListener(`wheel`,this.onWheel,hA),this.element.addEventListener(`touchstart`,this.onTouchStart,hA),this.element.addEventListener(`touchmove`,this.onTouchMove,hA),this.element.addEventListener(`touchend`,this.onTouchEnd,hA)}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener(`resize`,this.onWindowResize),this.element.removeEventListener(`wheel`,this.onWheel,hA),this.element.removeEventListener(`touchstart`,this.onTouchStart,hA),this.element.removeEventListener(`touchmove`,this.onTouchMove,hA),this.element.removeEventListener(`touchend`,this.onTouchEnd,hA)}onTouchStart=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit(`scroll`,{deltaX:0,deltaY:0,event:e})};onTouchMove=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e,r=-(t-this.touchStart.x)*this.options.touchMultiplier,i=-(n-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:r,y:i},this.emitter.emit(`scroll`,{deltaX:r,deltaY:i,event:e})};onTouchEnd=e=>{this.emitter.emit(`scroll`,{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})};onWheel=e=>{let{deltaX:t,deltaY:n,deltaMode:r}=e,i=gA(r,this.window.width),a=gA(r,this.window.height);t*=i,n*=a,t*=this.options.wheelMultiplier,n*=this.options.wheelMultiplier,this.emitter.emit(`scroll`,{deltaX:t,deltaY:n,event:e})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},vA=e=>Math.min(1,1.001-2**(-10*e)),yA=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;_isDraggingSelection=!1;reducedMotionMediaQuery=window.matchMedia(`(prefers-reduced-motion: reduce)`);isTouching;isIos;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new uA;emitter=new pA;dimensions;virtualScroll;constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:n=e,smoothWheel:r=!0,syncTouch:i=!1,syncTouchLerp:a=.075,touchInertiaExponent:o=1.7,duration:s,easing:c,lerp:l=.1,infinite:u=!1,orientation:d=`vertical`,gestureOrientation:f=d===`horizontal`?`both`:`vertical`,touchMultiplier:p=1,wheelMultiplier:m=1,autoResize:h=!0,prevent:g,virtualScroll:_,overscroll:v=!0,autoRaf:y=!1,anchors:b=!1,autoToggle:x=!1,allowNestedScroll:S=!1,__experimental__naiveDimensions:C=!1,naiveDimensions:w=C,stopInertiaOnNavigate:T=!1,respectReducedMotion:E=!0}={}){window.lenisVersion=aA,window.lenis||(window.lenis={}),window.lenis.version=aA,d===`horizontal`&&(window.lenis.horizontal=!0),i===!0&&(window.lenis.touch=!0),this.isIos=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),(!e||e===document.documentElement)&&(e=window),typeof s==`
30number`&&typeof c!=`function`?c=vA:typeof c==`function`&&typeof s!=`number`&&(s=1),this.options={wrapper:e,content:t,eventsTarget:n,smoothWheel:r,syncTouch:i,syncTouchLerp:a,touchInertiaExponent:o,duration:s,easing:c,lerp:l,infinite:u,gestureOrientation:f,orientation:d,touchMultiplier:p,wheelMultiplier:m,autoResize:h,prevent:g,virtualScroll:_,overscroll:v,autoRaf:y,anchors:b,autoToggle:x,allowNestedScroll:S,naiveDimensions:w,stopInertiaOnNavigate:T,respectReducedMotion:E},this.dimensions=new fA(e,t,{autoResize:h}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener(`scroll`,this.onNativeScroll),this.options.wrapper.addEventListener(`scrollend`,this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener(`click`,this.onClick),this.options.wrapper.addEventListener(`pointerdown`,this.onPointerDown),this.virtualScroll=new _A(n,{touchMultiplier:p,wheelMultiplier:m}),this.virtualScroll.on(`scroll`,this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener(`transitionend`,this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener(`scroll`,this.onNativeScroll),this.options.wrapper.removeEventListener(`scrollend`,this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener(`pointerdown`,this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener(`click`,this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}onScrollEnd=e=>{e instanceof CustomEvent||(this.isScrolling===`smooth`||this.isScrolling===!1)&&e.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent(`scrollend`,{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){let e=this.isHorizontal?`overflow-x`:`overflow-y`;return getComputedStyle(this.rootElement)[e]}checkOverflow(){[`hidden`,`clip`].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=e=>{e.propertyName?.includes(`overflow`)&&e.target===this.rootElement&&this.checkOverflow()};setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:`instant`}):this.options.wrapper.scrollTo({top:e,behavior:`instant`})}onClick=e=>{let t=e.composedPath().filter(e=>e instanceof HTMLAnchorElement&&e.href).map(e=>new URL(e.href)),n=new URL(window.location.href);if(this.options.anchors){let e=t.find(e=>n.host===e.host&&n.pathname===e.pathname&&e.hash);if(e){let t=typeof this.options.anchors==`object`&&this.options.anchors?this.options.anchors:void 0,n=decodeURIComponent(e.hash);this.scrollTo(n,t);return}}if(this.options.stopInertiaOnNavigate&&t.some(e=>n.host===e.host&&n.pathname!==e.pathname)){this.reset();return}};onPointerDown=e=>{e.button===1&&this.reset()};isTouchOnSelectionHandle(e){let t=window.getSelection();if(!t||t.isCollapsed||t.rangeCount===0)return!1;let n=e.targetTouches[0]??e.changedTouches[0];if(!n)return!1;let r=t.getRangeAt(0).getClientRects();if(r.length===0)return!1;let i=r[0],a=r[r.length-1],o=Math.hypot(n.clientX-i.left,n.clientY-i.top)<=40,s=Math.hypot(n.clientX-a.right,n.clientY-a.bottom)<=40;return o||s}onVirtualScroll=e=>{if(typeof this.options.virtualScroll==`function`&&this.options.virtualScroll(e)===!1)return;let{deltaX:t,deltaY:n,event:r}=e;if(this.emitter.emit(`virtual-scroll`,{deltaX:t,deltaY:n,event:r}),r.ctrlKey||r.lenisStopPropagation)return;let i=r.type.includes(`touch`),a=r.type.includes(`wheel`);if(i&&this.isIos&&(r.type===`touchstart`&&(this._isDraggingSelection=this.isTouchOnSelectionHandle(r)),this._isDraggingSelection)){r.type===`touchend`&&(this._isDraggingSelection=!1);return}this.isTouching=r.type===`touchstart`||r.type===`touchmove`;let o=t===0&&n===0;if(this.options.syncTouch&&i&&r.type===`touchstart`&&o&&!this.isStopped&&!this.isLocked){this.reset();return}let s=this.options.gestureOrientation===`vertical`&&n===0||this.options.gestureOrientation===`horizontal`&&t===0;if(o||s)return;let c=r.composedPath();c=c.slice(0,c.indexOf(this.rootElement));let l=this.options.prevent,u=Math.abs(t)>=Math.abs(n)?`horizontal`:`vertical`;if(c.find(e=>e instanceof HTMLElement&&(typeof l==`function`&&l?.(e)||e.hasAttribute?.(`data-lenis-prevent`)||u===`vertical`&&e.hasAttribute?.(`data-lenis-prevent-vertical`)||u===`horizontal`&&e.hasAttribute?.(`data-lenis-prevent-horizontal`)||i&&e.hasAttribute?.(`data-lenis-prevent-touch`)||a&&e.hasAttribute?.(`data-lenis-prevent-wheel`)||this.options.allowNestedScroll&&this.hasNestedScroll(e,{deltaX:t,deltaY:n}))))return;if(this.isStopped||this.isLocked){r.cancelable&&r.preventDefault();return}if(!(this.options.syncTouch&&i||this.options.smoothWheel&&a)){this.isScrolling=`native`,this.animate.stop(),r.lenisStopPropagation=!0;return}let d=n;this.options.gestureOrientation===`both`?d=Math.abs(n)>Math.abs(t)?n:t:this.options.gestureOrientation===`horizontal`&&(d=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&n>0||this.animatedScroll===this.limit&&n<0))&&(r.lenisStopPropagation=!0),r.cancelable&&r.preventDefault();let f=i&&this.options.syncTouch,p=i&&r.type===`touchend`;p&&(d=Math.sign(d)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+d,{programmatic:!1,...f?{lerp:p?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit
vendor: 4,160 bytes, line 30
30()}emit(){this.emitter.emit(`scroll`,this)}onNativeScroll=()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling===`native`){let e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling=`native`),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty(`overflow`);return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty(`overflow`,`clip`);return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=e=>{let t=e-(this.time||e);this.time=e,this.animate.advance(t*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))};scrollTo(e,{offset:t=0,immediate:n=!1,lock:r=!1,programmatic:i=!0,lerp:a=i?this.options.lerp:void 0,duration:o=i?this.options.duration:void 0,easing:s=i?this.options.easing:void 0,onStart:c,onComplete:l,force:u=!1,userData:d}={}){if(this.prefersReducedMotion&&(i?n=!0:(a=1,o=void 0,s=void 0)),(this.isStopped||this.isLocked)&&!u)return;let f=e,p=t;if(typeof f==`string`&&[`top`,`left`,`start`,`#`].includes(f))f=0;else if(typeof f==`string`&&[`bottom`,`right`,`end`].includes(f))f=this.limit;else{let e=null;if(typeof f==`string`?(e=f.startsWith(`#`)?document.getElementById(f.slice(1)):document.querySelector(f),e||(f===`#top`?f=0:console.warn(`Lenis: Target not found`,f))):f instanceof HTMLElement&&f?.nodeType&&(e=f),e){if(this.options.wrapper!==window){let e=this.rootElement.getBoundingClientRect();p-=this.isHorizontal?e.left:e.top}let t=e.getBoundingClientRect(),n=getComputedStyle(e),r=this.isHorizontal?Number.parseFloat(n.scrollMarginLeft):Number.parseFloat(n.scrollMarginTop),i=getComputedStyle(this.rootElement),a=this.isHorizontal?Number.parseFloat(i.scrollPaddingLeft):Number.parseFloat(i.scrollPaddingTop);f=(this.isHorizontal?t.left:t.top)+this.animatedScroll-(Number.isNaN(r)?0:r)-(Number.isNaN(a)?0:a)}}if(typeof f==`number`){if(f+=p,this.options.infinite){if(i){this.targetScroll=this.animatedScroll=this.scroll;let e=f-this.animatedScroll;e>this.limit/2?f-=this.limit:e<-this.limit/2&&(f+=this.limit)}}else f=oA(0,f,this.limit);if(f===this.targetScroll){c?.(this),l?.(this);return}if(this.userData=d??{},n){this.animatedScroll=this.targetScroll=f,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}i||(this.targetScroll=f),typeof o==`number`&&typeof s!=`function`?s=vA:typeof s==`function`&&typeof o!=`number`&&(o=1),this.animate.fromTo(this.animatedScroll,f,{duration:o,easing:s,lerp:a,onStart:()=>{r&&(this.isLocked=!0),this.isScrolling=`smooth`,c?.(this)},onUpdate:(e,t)=>{this.isScrolling=`smooth`,this.lastVelocity=this.velocity,this.velocity=e-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=e,this.setScroll(this.scroll),i&&(this.targetScroll=e),t||this.emit(),t&&(this.reset(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(e,{deltaX:t,deltaY:n}){let r=Date.now();e._lenis||={};let i=e._lenis,a,o,s,c,l,u,d,f,p,m;if(r-(i.time??0)>2e3){i.time=Date.now();let t=window.getComputedStyle(e);
30if(i.computedStyle=t,a=[`auto`,`overlay`,`scroll`].includes(t.overflowX),o=[`auto`,`overlay`,`scroll`].includes(t.overflowY),l=[`auto`].includes(t.overscrollBehaviorX),u=[`auto`].includes(t.overscrollBehaviorY),i.hasOverflowX=a,i.hasOverflowY=o,!(a||o))return!1;d=e.scrollWidth,f=e.scrollHeight,p=e.clientWidth,m=e.clientHeight,s=d>p,c=f>m,i.isScrollableX=s,i.isScrollableY=c,i.scrollWidth=d,i.scrollHeight=f,i.clientWidth=p,i.clientHeight=m,i.hasOverscrollBehaviorX=l,i.hasOverscrollBehaviorY=u}else s=i.isScrollableX,c=i.isScrollableY,a=i.hasOverflowX,o=i.hasOverflowY,d=i.scrollWidth,f=i.scrollHeight,p=i.clientWidth,m=i.clientHeight,l=i.hasOverscrollBehaviorX,u=i.hasOverscrollBehaviorY;if(!(a&&s||o&&c))return!1;let h=Math.abs(t)>=Math.abs(n)?`horizontal`:`vertical`,g,_,v,y,b,x;if(h===`horizontal`)g=Math.round(e.scrollLeft),_=d-p,v=t,y=a,b=s,x=l;else if(h===`vertical`)g=Math.round(e.scrollTop),_=f-m,v=n,y=o,b=c,x=u;else return!1;return!x&&(g>=_||g<=0)||(v>0?g<_:g>0)&&y&&b}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?`x`:`y`]}get isHorizontal(){return this.options.orientation===`horizontal`}get actualScroll(){let e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?lA(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling===`smooth`}get prefersReducedMotion(){return this.options.respectReducedMotion&&this.reducedMotionMediaQuery.matches}get className(){let e=`lenis`;return this.options.autoToggle&&(e+=` lenis-autoToggle`),this.isStopped&&(e+=` lenis-stopped`),this.isLocked&&(e+=` lenis-locked`),this.isScrolling&&(e+=` lenis-scrolling`),this.isScrolling===`smooth`&&(e+=` lenis-smooth`),e}updateClassName(){this.cleanUpClassName(),this.className.split(` `).forEach(e=>{this.rootElement.classList.add(e)})}cleanUpClassName(){for(let e of Array.from(this.rootElement.classList))(e===`lenis`||e.startsWith(`lenis-`))&&this.rootElement.classList.remove(e)}},bA=p(e=>{let t=new yA({duration:1.1,easing:e=>Math.min(1,1-2**(-10*e)),smoothWheel:!0,smoothTouch:!1,gestureOrientation:`vertical`,wheelMultiplier:1.05,allowNestedScroll:!0}),n,r=e=>{t.raf(e),n=requestAnimationFrame(r)};n=requestAnimationFrame(r);let i=()=>{document.hidden?t.stop():t.start()};document.addEventListener(`visibilitychange`,i,{passive:!0}),e.hook(`page:finish`,()=>{t.scrollTo(0,{immediate:!0})}),e.hook(`app:unmounted`,()=>{cancelAnimationFrame(n),document.removeEventListener(`visibilitychange`,i),t.destroy()}),e.provide(`lenis`,t)});function xA(e,t){if(e==null)return;let n=e;for(let e=0;e<t.length;e++){if(n===void 0||n[t[e]]===void 0)return;if(n===null||n[t[e]]===null)return null;n=n[t[e]]}return n}function SA(e,t,n){if(n.length===0)return t;let r=n[0];return n.length>1&&(t=SA(typeof e!=`object`||!e||!Object.prototype.hasOwnProperty.call(e,r)?Number.isInteger(Number(n[1]))?[]:{}:e[r],t,Array.prototype.slice.call(n,1))),Number.isInteger(Number(r))&&Array.isArray(e)?e.slice()[r]:Object.assign({},e,{[r]:t})}function CA(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);let n={};for(let t in e)n[t]=e[t];return delete n[t[0]],n}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);let n={};for(let t in e)n[t]=e[t];return n}return SA(e,CA(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function wA(e,t){return t.map(e=>e.split(`.`)).map(t=>[t,xA(e,t)]).filter(e=>e[1]!==void 0).reduce((e,t)=>
30SA(e,t[1],t[0]),{})}function TA(e,t){return t.map(e=>e.split(`.`)).reduce((e,t)=>CA(e,t),e)}function EA(e,{storage:t,serializer:n,key:r,debug:i,pick:a,omit:o,beforeHydrate:s,afterHydrate:c},l,u=!0){try{u&&s?.(l);let i=t.getItem(r);if(i){let t=n.deserialize(i),r=a?wA(t,a):t,s=o?TA(r,o):r;e.$patch(s)}u&&c?.(l)}catch(e){i&&console.error(`[pinia-plugin-persistedstate]`,e)}}function DA(e,{storage:t,serializer:n,key:r,debug:i,pick:a,omit:o}){try{let i=a?wA(e,a):e,s=o?TA(i,o):i,c=n.serialize(s);t.setItem(r,c)}catch(e){i&&console.error(`[pinia-plugin-persistedstate]`,e)}}function OA(e,t){return typeof e==`function`?e(t):typeof e==`string`?e:t}function kA(e,t,n){let{pinia:r,store:i,options:{persist:a=n}}=e;if(!a)return;if(!(i.$id in r.state.value)){let e=r._s.get(i.$id.replace(`__hot:`,``));e&&Promise.resolve().then(()=>e.$persist());return}let o=(Array.isArray(a)?a:a===!0?[{}]:[a]).map(t);i.$hydrate=({runHooks:t=!0}={})=>{o.forEach(n=>{EA(i,n,e,t)})},i.$persist=()=>{o.forEach(e=>{DA(i.$state,e)})},o.forEach(t=>{EA(i,t,e),i.$subscribe((e,n)=>DA(n,t),{detached:!0})})}function AA(e={}){return function(t){kA(t,n=>{let r=OA(n.key,t.store.$id);return{key:(e.key?e.key:e=>e)(r),debug:n.debug??e.debug??!1,serializer:n.serializer??e.serializer??{serialize:e=>JSON.stringify(e),deserialize:e=>JSON.parse(e)},storage:n.storage??e.storage??window.localStorage,beforeHydrate:n.beforeHydrate??e.beforeHydrate,afterHydrate:n.afterHydrate??e.afterHydrate,pick:n.pick,omit:n.omit}},e.auto??!1)}}var jA=[dc,fc,hc,Dc,Gc,Du,Ou,ku,Au,ju,Mu,Nu,Pu,od,cd,Ap,b_,C_,w_,k_,A_,Jk,iA,bA,p(e=>{e.$pinia.use(AA())}),p({name:`i18n:plugin:ssg-detect`,dependsOn:[`i18n:plugin`,`i18n:plugin:route-locale-detect`],enforce:`post`,setup(e){}})],MA=(e=`RouteProvider`)=>N({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean,routeRecord:Object},setup(e){let t=e.renderKey,n=e.route,r={};for(let i in e.route)Object.defineProperty(r,i,{get:()=>t===e.renderKey?e.route[i]:n[i],enumerable:!0});return xe(kr,We(r)),()=>e.vnode?b(e.vnode,{ref:e.vnodeRef}):e.vnode}}),NA=MA(),PA=new WeakMap,FA=N({name:`NuxtPage`,inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){let i=d(),a=L(),o=D(kr,null),s=new Set,c;r({pageRef:a});let l=D(Dr,null),u,f=i.deferHydration(),p=!1,m=!1,h,g=0;if(i.isHydrating){let e=i.hooks.hookOnce(`app:error`,f),t=zr().beforeEach(()=>{e(),t()})}e.pageKey&&E(()=>e.pageKey,(e,t)=>{e!==t&&i.callHook(`page:loading:start`)});let _=!1;{let e=zr().beforeResolve(()=>{_=!1});we(()=>{e(),f()})}return()=>b(Oo,{name:e.name,route:e.route,...t},{default:RA(t=>{let r=IA(o,t.route,t.Component),d=o&&o.matched.length===t.route.matched.length;if(!t.Component){if(u&&!d&&!BA(u))return u;f();return}if(u&&l&&!BA(u)&&!l.isCurrent(t.route))return u;if(r&&o&&(!l||l?.isCurrent(o)))return(d||u)&&!BA(u)?u:null;let v=Mc(t,e.pageKey),y=LA(o,t.route,t.Component);!i.isHydrating&&c===v&&!y&&Le(()=>{_||(_=!0,i.callHook(`page:loading:end`))}),p&&c!==v&&m&&g++,c=v;let x=!!(e.transition??t.route.meta.pageTransition??!1),S=x&&Pt([e.transition,t.route.meta.pageTransition,!1,{onAfterLeave(){i[`~transitionFinish`]?.(),delete i[`~transitionFinish`],delete i[`~transitionPromise`],i.callHook(`page:transition:finish`,t.Component)}}]),C=e.keepalive??t.route.meta.keepalive??!1,w=t.Component.type,T=w.name||w.__name;t.route.meta.keepalive&&T&&s.add(T);let E;if(s.size>0&&e.keepalive==null&&(!C||typeof C==`object`&&C&&C.include)){let e=typeof C==`object`&&C?{...C}:{},t=e.include?Array.isArray(e.include)?e.include:[e.include]:[];E={...e,include:Array.from(new Set([...t,...s]))}}else E=C;return u=Ot(x&&S,Nc(E,b(Te,{key:g,suspensible:!0,onPending:()=>{p=!0,x&&!i[`~transitionPromise`]&&(i[`~transitionPromise`]=new Promise(e=>{i[`~transitionFinish`]=e})),h=i.callHook(`page:start`,t.Component)}
30,onResolve:async()=>{p=!1,m=!0,i.isHydrating&&i[`~restoreDeferredRoute`]?.();try{await Le(),i._route.sync?.(),await h,await i.callHook(`page:finish`,t.Component),!_&&!y&&(_=!0,await i.callHook(`page:loading:end`))}finally{f()}}},{default:()=>{let e={key:v||void 0,vnode:n.default?zA(n.default,t):t.Component,route:t.route,renderKey:v||void 0,trackRootNodes:x,vnodeRef:a,routeRecord:void 0};if(!E)return b(NA,e);let r=w,i=PA.get(r);return i||(i=MA(T),PA.set(r,i)),b(i,e)}}))).default(),u})})}});function IA(e,t,n){if(!e)return!1;let r=t.matched.findIndex(e=>e.components?.default===n?.type);if(r===-1)return!1;let i=t.matched.slice(0,r).filter(e=>e.components?.default);if(!i.length)return!1;let a=e.matched.filter(e=>e.components?.default);return i.some((e,t)=>e.components?.default!==a[t]?.components?.default)||n&&Mc({route:t,Component:n})!==Mc({route:e,Component:n})}function LA(e,t,n){return e?t.matched.findIndex(e=>e.components?.default===n?.type)<t.matched.length-1:!1}function RA(e){let t=(t=>{let n=e(t);return Array.isArray(n)?n:n==null||!le(n)?[Ue()]:[n]});return t._n=!0,t}function zA(e,t){let n=e(t);return n.length===1?b(n[0]):b(Ae,void 0,n)}function BA(e){return!!e&&(!!e.suspense?.isUnmounted||!!e.component?.isUnmounted)}var VA=N({name:`LayoutLoader`,inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(e,t){return()=>b(sd[e.name],e.layoutProps,t.slots)}}),HA=N({name:`NuxtLayout`,inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(e,t){let n=d(),r=D(kr),i=!r||r===Vr()?dt():r,a=M(()=>{let t=_u(i,e.name);return t&&!(t in sd)&&e.fallback&&(t=k(e.fallback)),t});xe(Or,a);let o=He();t.expose({layoutRef:o});let s=n.deferHydration();if(n.isHydrating){let e=n.hooks.hookOnce(`app:error`,s),t=zr().beforeEach(()=>{e(),t()})}let c;return()=>{let r=!!a.value&&a.value in sd&&!!(i?.meta.layoutTransition??!1),l=r&&Pt([i?.meta.layoutTransition,!1,{onBeforeLeave(){n[`~transitionPromise`]=new Promise(e=>{n[`~transitionFinish`]=e})},onAfterLeave(){n[`~transitionFinish`]?.(),delete n[`~transitionFinish`],delete n[`~transitionPromise`]}}]),u=c;return c=a.value,Ot(l,{default:()=>b(Te,{suspensible:!0,onResolve:async()=>{await Le(s)}},{default:()=>b(UA,{layoutProps:_e(t.attrs,i.meta.layoutProps??{},{ref:o}),key:a.value||void 0,name:a.value,shouldProvide:!e.name,isRenderingNewLayout:e=>e!==u&&e===a.value,hasTransition:r},t.slots)})}).default()}}}),UA=N({name:`NuxtLayoutProvider`,inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(e,t){let n=e.name;e.shouldProvide&&xe(Dr,{isCurrent:e=>n===!1||n===_u(e)});let r=D(kr),i=r&&r===Vr(),a=D(Dr,null);if(i){let t=dt(),n={};for(let i in t){let o=i;Object.defineProperty(n,o,{enumerable:!0,get:()=>e.isRenderingNewLayout(e.name)&&(!a||a.isCurrent(t))?t[o]:r[o]})}xe(kr,We(n))}return()=>
30!n||typeof n==`string`&&!(n in sd)?t.slots.default?.():b(VA,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}),[WA,GA]=$t(`DialogRoot`),KA=N({inheritAttrs:!1,__name:`DialogRoot`,props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0},unmountOnHide:{type:Boolean,required:!1,default:!0}},emits:[`update:open`],setup(e,{emit:t}){let n=e,r=Sr(n,`open`,t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=L(),a=L(),{modal:o,unmountOnHide:s}=ie(n);return GA({open:r,modal:o,unmountOnHide:s,openModal:()=>{r.value=!0},onOpenChange:e=>{r.value=e},onOpenToggle:()=>{r.value=!r.value},contentId:``,titleId:``,descriptionId:``,triggerElement:i,contentElement:a}),(e,t)=>R(e.$slots,`default`,{open:k(r),close:()=>r.value=!1})}}),qA=N({__name:`DialogClose`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e;Ht();let n=WA();return(e,r)=>(P(),I(k(wr),_e(t,{type:e.as===`button`?`button`:void 0,onClick:r[0]||=e=>k(n).onOpenChange(!1)}),{default:F(()=>[R(e.$slots,`default`)]),_:3},16,[`type`]))}}),JA=N({__name:`DialogContentImpl`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=WA(),{forwardRef:a,currentElement:o}=Ht();return i.titleId||=Jt(void 0,`reka-dialog-title`),i.descriptionId||=Jt(void 0,`reka-dialog-description`),me(()=>{i.contentElement=o,Vt()!==document.body&&(i.triggerElement.value=Vt())}),(e,t)=>(P(),I(k(Zt),{"as-child":``,loop:``,trapped:n.trapFocus,present:n.present,onMountAutoFocus:t[5]||=e=>r(`openAutoFocus`,e),onUnmountAutoFocus:t[6]||=e=>r(`closeAutoFocus`,e)},{default:F(()=>[S(k(Ut),_e({id:k(i).contentId,ref:k(a),as:e.as,"as-child":e.asChild,present:n.present,"disable-outside-pointer-events":e.disableOutsidePointerEvents,role:`dialog`,"aria-describedby":k(i).descriptionId,"aria-labelledby":k(i).titleId,"data-state":k(Yt)(k(i).open.value)},e.$attrs,{onDismiss:t[0]||=e=>k(i).onOpenChange(!1),onEscapeKeyDown:t[1]||=e=>r(`escapeKeyDown`,e),onFocusOutside:t[2]||=e=>r(`focusOutside`,e),onInteractOutside:t[3]||=e=>r(`interactOutside`,e),onPointerDownOutside:t[4]||=e=>r(`pointerDownOutside`,e)}),{default:F(()=>[R(e.$slots,`default`)]),_:3},16,[`id`,`as`,`as-child`,`present`,`disable-outside-pointer-events`,`aria-describedby`,`aria-labelledby`,`data-state`])]),_:3},8,[`trapped`,`present`]))}}),YA=N({__name:`DialogContentModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=WA(),a=Qt(r),{forwardRef:o,currentElement:s}=Ht(),c=M(()=>n.present?s.value:void 0);qt(c);let l=M(()=>{let{present:e,...t}=n;return t});return E(()=>n.present,(e,t)=>{!e&&t&&i.triggerElement.value?.focus()}),(e,t)=>(P(),I(JA,_e({...l.value,...k(a)},{ref:k(o),present:e.present,"trap-focus":k(i).open.value,"disable-outside-pointer-events":n.disableOutsidePointerEvents,onCloseAutoFocus:t[0]||=e=>{e.defaultPrevented||(e.preventDefault(),k(i).triggerElement.value?.focus())},onPointerDownOutside:t[1]||=e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()},onFocusOutside:t[2]||=e=>{e.preventDefault()}}),{default:F(()=>[R(e.$slots,`default`)]),_:3},16,[`present`,`trap-focus`,`disable-outside-pointer-events`]))}}),XA=N({__name:`DialogContentNonModal`,props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=Qt(t);Ht();let i=WA(),a=L(!1),o=L(!1),s=M(()=>{let{present:e,...t}=n;return t});return E(()=>n.present,(e,t)=>{!e&&t&&(a.value||i.triggerElement.value?.focus(),a.value=!1,o.value=!1)}),(e,t)=>(P(),I(JA,_e({...s.value,...k(r)},{present:e.present,"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:t[0]||=e=>{e.defaultPrevented||(a.value||k(i).triggerElement.value?.focus(),e.preventDefault()),a.value=!1,o.value=!1},onInteractOutside:t[1]||=e=>{e.defaultPrevented||(a.value=!0,e.detail.originalEvent.type===`pointerdown`&&(o.value=!0));let t=e.target;k(i).triggerElement.value?.contains(t)&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&o.value&&e.preventDefault()}}),{default:F(()=>[R(e.$slots,`default`)]),_:3},16,[`present`]))}}),ZA=N({__name:`DialogContent`,props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=WA(),a=Qt(r),{forwardRef:o}=Ht();return(e,t)=>(P(),I(k(Wt),{present:e.forceMount||k(i).open.value,"force-mount":e.forceMount||!k(i).unmountOnHide.value},{default:F(({present:t})=>[k(i).modal.value?ce((P(),I(YA,_e({key:0,ref:k(o),present:k(i).unmountOnHide.value||t},{...n,...k(a),...e.$attrs}),{default:F(()=>[R(e.$slots,`default`)]),_:2},1040,[`present`])),[[jt,k(i).unmountOnHide.value||t]]):ce((P(),I(XA,_e({key:1,ref:k(o),present:k(i).unmountOnHide.value||t},{...n,...k(a),...e.$attrs}),{default:F(()=>[R(e.$slots,`default`)]),_:2},1040,[`present`])),[[jt,k(i).unmountOnHide.value||t]])]),_:3},8,[`present`,`force-mount`]))}}),QA=N({__name:`DialogDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`p`}},setup(e){let t=e;Ht();let n=WA();return(e,r)=>(P(),I(k(wr),_e(t,{id:k(n).descriptionId}),{default:F(()=>[R(e.$slots,`default`)]),_:3},16,[`id`]))}}),$A=N({__name:`DialogOverlayImpl`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},setup(e){let t=e,n=WA(),r=en(t.present);return E(()=>t.present,e=>r.value=e),Ht(),(e,t)=>(P(),I(k(wr),{as:e.as,"as-child":e.asChild,"data-state":k(n).open.value?`open`:`closed`,style:{"pointer-events":`auto`},onPointerdown:t[0]||=St(()=>{},[`left`,`self`,`prevent`])},{default:F(()=>[R(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-state`]))}}),ej=N({__name:`DialogOverlay`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=WA(),{forwardRef:n}=Ht();return(e,r)=>k(t)?.modal.value?(P(),I(k(Wt),{key:0,present:e.forceMount||k(t).open.value,"force-mount":e.forceMount||!k(t).unmountOnHide.value},{default:F(({present:r})=>[ce(S($A,_e(e.$attrs,{ref:k(n),as:e.as,"as-child":e.asChild,present:k(t).unmountOnHide.value||r}),{default:F(()=>[R(e.$slots,`default`)]),_:2},1040,[`as`,`as-child`,`present`]),[[jt,k(t).unmountOnHide.value||r]])]),_:3},8,[`present`,`force-mount`])):Ue(`v-if`,!0)}}),tj=N({__name:`DialogPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>
30(P(),I(k(Xt),ge(Ge(t)),{default:F(()=>[R(e.$slots,`default`)]),_:3},16))}}),nj=N({__name:`DialogTitle`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`h2`}},setup(e){let t=e,n=WA();return Ht(),(e,r)=>(P(),I(k(wr),_e(t,{id:k(n).titleId}),{default:F(()=>[R(e.$slots,`default`)]),_:3},16,[`id`]))}}),rj=N({__name:`Dialog`,props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean},unmountOnHide:{type:Boolean}},emits:[`update:open`],setup(e,{emit:t}){let n=Kt(e,t);return(e,t)=>(P(),I(k(KA),_e({"data-slot":`dialog`},k(n)),{default:F(()=>[R(e.$slots,`default`)]),_:3},16))}}),ij=e=>e===``,aj=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),oj=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),sj=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),cj=e=>{let t=sj(e);return t.charAt(0).toUpperCase()+t.slice(1)},lj={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},uj=Symbol(`lucide-icons`);function dj(){return D(uj,{})}var fj=({name:e,iconNode:t,"icon-node":n,absoluteStrokeWidth:r,"absolute-stroke-width":i,strokeWidth:a,"stroke-width":o,size:s,color:c,...l},{slots:u})=>{let{size:d,color:f,strokeWidth:p=2,absoluteStrokeWidth:m=!1,class:h=``}=dj(),g=M(()=>{let e=ij(r)||ij(i)||r===!0||i===!0||m===!0,t=a||o||p||lj[`stroke-width`];return e?Number(t)*24/Number(s??d??lj.width):t});return b(`svg`,{...lj,...l,width:s??d??lj.width,height:s??d??lj.height,stroke:c??f??lj.stroke,"stroke-width":g.value,class:aj(`lucide`,h,...e?[`lucide-${oj(cj(e))}-icon`,`lucide-${oj(e)}`]:[`lucide-icon`])},[...(t??n??[]).map(e=>b(...e)),...u.default?[u.default()]:[]])},pj=(e,t)=>(n,{slots:r,attrs:i})=>b(fj,{...i,...n,iconNode:t,name:e},r.default?{default:r.default}:void 0),mj=pj(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),hj=N({__name:`DialogOverlay`,props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=Cr(t,`class`);return(e,r)=>(P(),I(k(ej),_e({"data-slot":`dialog-overlay`},k(n),{class:k(Tr)(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-[140] bg-black/80`,t.class)}),{default:F(()=>[R(e.$slots,`default`)]),_:3},16,[`class`]))}}),gj=N({__name:`DialogContent`,props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=Cr(n,`class`),a=Kt(i,r);return(e,t)=>(P(),I(k(tj),null,{default:F(()=>[S(hj),S(k(ZA),_e({"data-slot":`dialog-content`},k(a),{class:k(Tr)(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-[150] grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg`,n.class)}),{default:F(()=>[R(e.$slots,`default`),S(k(qA),{class:`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`},{default:F(()=>[S(k(mj)),t[0]||=A(`span`,{class:`sr-only`},`Close`,-1)]),_:1})]),_:3},16,[`class`])]),_:3}))}}),_j=N({__name:`DialogDescription`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=Cr(t,`class`),r=Gt(n);return(e,n)=>(P(),I(k(QA),_e({"data-slot":`dialog-description`},k(r),{class:k(Tr)(`text-muted-foreground text-sm`,t.class)}),{default:F(()=>[R(e.$slots,`default`)]),_:3},16,[`class`]))}}),vj=N({__name:`DialogTitle`,props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e,n=Cr(t,`class`),r=Gt(n);return(e,n)=>
30(P(),I(k(nj),_e({"data-slot":`dialog-title`},k(r),{class:k(Tr)(`text-lg leading-none font-semibold`,t.class)}),{default:F(()=>[R(e.$slots,`default`)]),_:3},16,[`class`]))}}),yj=L({isOpen:!1,images:[],currentIndex:0,alt:``,descriptions:[],finishNames:[]}),bj=()=>{let e=e=>e?Array.isArray(e)?e:[e]:[];return{imageViewerState:ue(yj),showImage:(t,n=``,r=0,i,a)=>{let o=Array.isArray(t)?t:[t],s=e(i),c=e(a),l=s.length>=o.length?s.slice(0,o.length):[...s,...Array(o.length-s.length).fill(``)],u=c.length>=o.length?c.slice(0,o.length):[...c,...Array(o.length-c.length).fill(``)];yj.value={isOpen:!0,images:o,currentIndex:Math.max(0,Math.min(r,o.length-1)),alt:n,descriptions:l,finishNames:u}},hideImage:()=>{yj.value.isOpen=!1,yj.value={...yj.value,descriptions:yj.value.descriptions.map(()=>``),finishNames:yj.value.finishNames.map(()=>``)}},nextImage:()=>{let e=yj.value;e.images.length>1&&(yj.value={...e,currentIndex:(e.currentIndex+1)%e.images.length})},prevImage:()=>{let e=yj.value;e.images.length>1&&(yj.value={...e,currentIndex:e.currentIndex===0?e.images.length-1:e.currentIndex-1})},setCurrentIndex:e=>{let t=yj.value;t.images.length>e&&e>=0&&(yj.value={...t,currentIndex:e})}}},xj={class:`fixed inset-0 z-50 flex items-center justify-center`},Sj={class:`relative z-10 w-full h-full flex items-center justify-center p-8`},Cj=[`src`,`alt`],wj={key:1,class:`pointer-events-none absolute inset-x-0 bottom-0 z-20 bg-linear-to-t from-black/70 via-black/20 to-transparent px-6 py-16`},Tj={class:`mx-auto max-w-4xl text-center space-y-2`},Ej={key:0,class:`text-xs font-semibold uppercase tracking-[0.35em] text-white/85 drop-shadow-sm`},Dj={key:1,class:`text-sm text-white/90 leading-relaxed drop-shadow-sm`},Oj={key:0,class:`absolute bottom-8 left-1/2 transform -translate-x-1/2 z-20`},kj={class:`flex space-x-2 bg-black/50 backdrop-blur-sm px-3 py-2 rounded-full`},Aj=[`onClick`,`aria-label`],jj=N({__name:`GlobalImageViewer`,setup(e){let{imageViewerState:t,hideImage:n,nextImage:r,prevImage:i,setCurrentIndex:a}=bj(),o=M(()=>{let{images:e,currentIndex:n}=t.value;return e.length>0?e[n]:``}),s=M(()=>{let{descriptions:e,currentIndex:n}=t.value;return e?.[n]??``}),c=M(()=>{let{finishNames:e,currentIndex:n}=t.value;return e?.[n]??``}),l=M(()=>t.value.images.length>1),u=e=>{if(t.value.isOpen)switch(e.key){case`ArrowLeft`:e.preventDefault(),i();break;case`ArrowRight`:e.preventDefault(),r();break;case`Escape`:e.preventDefault(),n()}};return me(()=>{document.addEventListener(`keydown`,u)}),ye(()=>{document.removeEventListener(`keydown`,u)}),(e,u)=>{let d=vj,f=_j,p=gj,m=rj;return P(),I(m,{open:k(t).isOpen,"onUpdate:open":k(n)},{default:F(()=>[S(p,{class:`!fixed !inset-0 !max-w-none !w-screen !h-screen !p-0 !border-0 !bg-transparent !transform-none !top-0 !left-0 !translate-x-0 !translate-y-0`},{default:F(()=>[S(d,{class:`sr-only`},{default:F(()=>[...u[5]||=[C(`ç»åãã¥ã¼ã¯ã¼`,-1)]]),_:1}),S(f,{class:`sr-only`},{default:F(()=>[C(Oe(k(t).alt),1)]),_:1}),A(`div`,xj,[A(`div`,{class:`absolute inset-0 bg-black/90 cursor-pointer`,onClick:u[0]||=(...e)=>k(n)&&k(n)(...e)}),A(`div`,Sj,[k(l)?(P(),j(`button`,{key:0,onClick:u[1]||=(...e)=>k(i)&&k(i)(...e),class:`absolute left-8 z-20 w-12 h-12 rounded-full bg-white/10 backdrop-blur-sm text-white hover:bg-white/20 transition-colors flex items-center justify-center cursor-pointer`,"aria-label":`åã®ç»å`},[...u[6]||=[A(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[A(`polyline`,{points:`15,18 9,12 15,6`})],-1)]])):Ue(``,!0),S(tt,{name:`image-fade`,mode:`out-in`},{default:F(()=>[(P(),j(`img`,{key:k(o),src:k(o),alt:k(t).alt,class:`w-full h-full object-contain cursor-pointer`,onClick:u[2]||=(...e)=>k(n)&&k(n)(...e)},null,8,Cj))]),_:1}),k(c)||k(s)?(P(),j(`div`,wj,[A(`div`,Tj,[k(c)?(P(),j(`p`,Ej,Oe(k(c)),1)):Ue(``,!0),k(s)?(P(),j(`p`,Dj,Oe(k(s)),1)):Ue(``,!0)])])):Ue(``,!0),k(l)?(P(),j(`button`,{key:2,onClick:u[3]||=(...e)=>k(r)&&k(r)(...e),class:`absolute right-8 z-20 w-12 h-12 rounded-full bg-white/10 backdrop-blur-sm text-white hover:bg-white/20 transition-colors flex items-center justify-center cursor-pointer`,"aria-label":`次ã®ç»å`}
30,[...u[7]||=[A(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[A(`polyline`,{points:`9,18 15,12 9,6`})],-1)]])):Ue(``,!0)]),k(l)?(P(),j(`div`,Oj,[A(`div`,kj,[(P(!0),j(Ae,null,fe(k(t).images,(e,n)=>(P(),j(`button`,{key:n,onClick:e=>k(a)(n),class:ne([[`w-2 h-2 rounded-full transition-all duration-300`,n===k(t).currentIndex?`bg-white w-6`:`bg-white/40 hover:bg-white/60`],`cursor-pointer`]),"aria-label":`ç»å${n+1}ã«åãæ¿ã`},null,10,Aj))),128))])])):Ue(``,!0),A(`button`,{onClick:u[4]||=(...e)=>k(n)&&k(n)(...e),class:`cursor-pointer absolute top-8 right-8 z-20 w-12 h-12 rounded-full bg-white/10 backdrop-blur-sm text-white hover:bg-white/20 transition-colors flex items-center justify-center`,"aria-label":`éãã`},[...u[8]||=[A(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[A(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),A(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})],-1)]])])]),_:1})]),_:1},8,[`open`,`onUpdate:open`])}}}),Mj=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},Nj=Object.assign(Mj(jj,[[`__scopeId`,`data-v-762e1863`]]),{__name:`UtilGlobalImageViewer`}),Pj=1,Fj=new class{subscribers;toasts;dismissedToasts;constructor(){this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)});publish=e=>{this.subscribers.forEach(t=>t(e))};addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]};create=e=>{let{message:t,...n}=e,r=typeof e.id==`number`||e.id&&e.id?.length>0?e.id:Pj++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0||e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r};dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e);message=(e,t)=>this.create({...t,message:e,type:`default`});error=(e,t)=>this.create({...t,type:`error`,message:e});success=(e,t)=>this.create({...t,type:`success`,message:e});info=(e,t)=>this.create({...t,type:`info`,message:e});warning=(e,t)=>this.create({...t,type:`warning`,message:e});loading=(e,t)=>
30this.create({...t,type:`loading`,message:e});promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],le(e))i=!1,this.create({id:n,type:`default`,message:e});else if(Lj(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!le(r)?r:{message:r||``,id:n||``};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!le(r)?r:{message:r||``,id:n||``};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!le(r)?r:{message:r||``,id:n||``};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!le(r)?r:{message:r||``,id:n||``};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally?.()}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})};custom=(e,t)=>{let n=t?.id||Pj++,r=this.toasts.find(e=>e.id===n),i=t?.dismissible===void 0||t.dismissible;return this.dismissedToasts.has(n)&&this.dismissedToasts.delete(n),r?this.toasts=this.toasts.map(r=>r.id===n?(this.publish({...r,component:e,dismissible:i,id:n,...t}),{...r,component:e,dismissible:i,id:n,...t}):r):this.addToast({component:e,dismissible:i,id:n,...t}),n};getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id))};function Ij(e,t){let n=t?.id||Pj++;return Fj.create({message:e,id:n,type:`default`,...t}),n}var Lj=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,Rj=Object.assign(Ij,{success:Fj.success,info:Fj.info,warning:Fj.warning,error:Fj.error,custom:Fj.custom,message:Fj.message,promise:Fj.promise,dismiss:Fj.dismiss,loading:Fj.loading},{getHistory:()=>Fj.toasts,getToasts:()=>Fj.getActiveToasts()});function zj(e){return e.label!==void 0}var Bj=3,Vj=`24px`,Hj=`16px`,Uj=4e3,Wj=356,Gj=14,Kj=45,qj=200;function Jj(){let e=L(!1);return oe(()=>{let t=()=>{e.value=document.hidden};return document.addEventListener(`visibilitychange`,t),()=>window.removeEventListener(`visibilitychange`,t)}),{isDocumentHidden:e}}function Yj(...e){return e.filter(Boolean).join(` `)}function Xj(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function Zj(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Hj:Vj;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var Qj=[`data-rich-colors`,`data-styled`,`data-mounted`,`data-promise`,`data-swiped`,`data-removed`,`data-visible`,`data-y-position`,`data-x-position`,`data-index`,`data-front`,`data-swiping`,`data-dismissible`,`data-type`,`data-invert`,`data-swipe-out`,`data-swipe-direction`,`data-expanded`,`data-testid`],$j=[`aria-label`,`data-disabled`,`data-close-button-position`],eM=N({__name:`Toast`,props:{toast:{},toasts:{},index:{},swipeDirections:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},gap:{},position:{},closeButtonPosition:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},style:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},class:{},unstyled:{type:Boolean},descriptionClass:{},loadingIcon:{},classes:{},icons:{},closeButtonAriaLabel:{},defaultRichColors:{type:Boolean}},emits:[`update:heights`,`update:height`,`removeToast`],setup(e,{emit:t}){let n=e,r=t,i=L(null),a=L(null),o=L(!1),s=L(!1),c=L(!1),l=L(!1),u=L(!1),d=L(0),f=L(0),p=L(n.toast.duration||n.duration||Uj),m=L(null),h=L(null),g=M(()=>n.index===0),_=M(()=>n.index+1<=n.visibleToasts),v=M(()=>n.toast.type),y=M(()=>n.toast.dismissible!==!1),b=M(()=>n.toast.class||``),x=M(()=>n.descriptionClass||``),S=M(()=>{let e=n.toast.position||n.position,t=n.heights.filter(t=>t.position===e).findIndex(e=>e.toastId===n.toast.id);return t>=0?t:0}),w=M(()=>{let e=n.toast.position||n.position;return n.heights.filter(t=>
30t.position===e).reduce((e,t,n)=>n>=S.value?e:e+t.height,0)}),T=M(()=>S.value*n.gap+w.value||0),D=M(()=>n.toast.closeButton??n.closeButton),ee=M(()=>n.toast.duration||n.duration||Uj),te=L(0),O=L(0),re=L(null),ie=M(()=>n.position.split(`-`)),ae=M(()=>ie.value[0]),se=M(()=>ie.value[1]),ce=M(()=>typeof n.toast.title!=`string`),le=M(()=>typeof n.toast.description!=`string`),{isDocumentHidden:ue}=Jj(),de=M(()=>v.value&&v.value===`loading`);me(()=>{o.value=!0,p.value=ee.value}),oe(async()=>{if(!o.value||!h.value)return;await Le();let e=h.value,t=e.style.height;e.style.height=`auto`;let i=e.getBoundingClientRect().height;e.style.height=t,f.value=i,r(`update:height`,{toastId:n.toast.id,height:i,position:n.toast.position||n.position})});function fe(){s.value=!0,d.value=T.value,setTimeout(()=>{r(`removeToast`,n.toast)},qj)}function pe(){if(de.value||!y.value)return{};fe(),n.toast.onDismiss?.(n.toast)}function he(e){e.button!==2&&!de.value&&y.value&&(m.value=new Date,d.value=T.value,e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(c.value=!0,re.value={x:e.clientX,y:e.clientY}))}function ve(){if(l.value||!y.value)return;re.value=null;let e=Number(h.value?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(h.value?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-(m.value?.getTime()||0),o=i.value===`x`?e:t,s=Math.abs(o)/r;if(Math.abs(o)>=Kj||s>.11){d.value=T.value,n.toast.onDismiss?.(n.toast),i.value===`x`?a.value=e>0?`right`:`left`:a.value=t>0?`down`:`up`,fe(),l.value=!0;return}h.value?.style.setProperty(`--swipe-amount-x`,`0px`),h.value?.style.setProperty(`--swipe-amount-y`,`0px`),u.value=!1,c.value=!1,i.value=null}function ye(e){if(!re.value||!y.value||(window?.getSelection()?.toString()?.length??!1))return;let t=e.clientY-re.value.y,r=e.clientX-re.value.x,a=n.swipeDirections??Xj(n.position);!i.value&&(Math.abs(r)>1||Math.abs(t)>1)&&(i.value=Math.abs(r)>Math.abs(t)?`x`:`y`);let o={x:0,y:0},s=e=>1/(1.5+Math.abs(e)/20);if(i.value===`y`){if(a.includes(`top`)||a.includes(`bottom`)){if(a.includes(`top`)&&t<0||a.includes(`bottom`)&&t>0)o.y=t;else{let e=t*s(t);o.y=Math.abs(e)<Math.abs(t)?e:t}}}else if(i.value===`x`&&(a.includes(`left`)||a.includes(`right`))){if(a.includes(`left`)&&r<0||a.includes(`right`)&&r>0)o.x=r;else{let e=r*s(r);o.x=Math.abs(e)<Math.abs(r)?e:r}}(Math.abs(o.x)>0||Math.abs(o.y)>0)&&(u.value=!0),h.value?.style.setProperty(`--swipe-amount-x`,`${o.x}px`),h.value?.style.setProperty(`--swipe-amount-y`,`${o.y}px`)}me(()=>{if(o.value=!0,!h.value)return;let e=h.value.getBoundingClientRect().height;f.value=e;let t=[{toastId:n.toast.id,height:e,position:n.toast.position},...n.heights];r(`update:heights`,t)}),we(()=>{h.value&&r(`removeToast`,n.toast)}),oe(e=>{if(n.toast.promise&&v.value===`loading`||n.toast.duration===1/0||n.toast.type===`loading`)return;let t;n.expanded||n.interacting||ue.value?(()=>{if(O.value<te.value){let e=new Date().getTime()-te.value;p.value-=e}O.value=new Date().getTime()})():p.value!==1/0&&(te.value=new Date().getTime(),t=setTimeout(()=>{n.toast.onAutoClose?.(n.toast),fe()},p.value)),e(()=>{clearTimeout(t)})}),E(()=>n.toast.delete,e=>{e!==void 0&&e&&(fe(),n.toast.onDismiss?.(n.toast))},{deep:!0});function be(){c.value=!1,i.value=null,re.value=null}return(e,t)=>(P(),j(`li`,{tabindex:`0`,ref_key:`toastRef`,ref:h,class:ne(k(Yj)(n.class,b.value,e.classes?.toast,e.toast.classes?.toast,e.classes?.[v.value],e.toast?.classes?.[v.value])),"data-sonner-toast":``,"data-rich-colors":e.toast.richColors??e.defaultRichColors,"data-styled":!(e.toast.component||e.toast?.unstyled||e.unstyled),"data-mounted":o.value,"data-promise":!!e.toast.promise,"data-swiped":u.value,"data-removed":s.value,"data-visible":_.value,"data-y-position":ae.value,"data-x-position":se.value,"data-index":e.index,"data-front":g.value,"data-swiping":c.value,"data-dismissible":y.value,"data-type":v.value,"data-invert":e.toast.invert||e.invert,"data-swipe-out":l.value,"data-swipe-direction":a.value,"data-expanded":!!(e.expanded||e.expandByDefault&&o.value),"data-testid":e.toast.testId,style:Ie({"--index":e.index,"--toasts-before":e.index,"--z-index":e.toasts.length-e.index,"--offset":`${s.value?d.value:T.value}px`,"--initial-height":e.expandByDefault?`auto`:`${f.value}px`,...e.style,...n.toast.style}),onDragend:be,onPointerdown:he,onPointerup:ve,onPointermove:ye},[D.value&&!e.toast.component&&v.value!==`loading`?(P(),j(`button`,{key:0,"aria-label":e.closeButtonAriaLabel||`Close toast`,"data-disabled":de.value,"data-close-button":`true`,"data-close-button-position":e.closeButtonPosition,class:ne(k(Yj)(e.classes?.closeButton,e.toast?.classes?.closeButton)),onClick:pe},[e.icons?.close?(P(),I(Ve(e.icons?.close),{key:0}
30)):R(e.$slots,`close-icon`,{key:1})],10,$j)):Ue(`v-if`,!0),e.toast.component?(P(),I(Ve(e.toast.component),_e({key:1},e.toast.componentProps,{onCloseToast:pe,isPaused:e.$props.expanded||e.$props.interacting||k(ue)}),null,16,[`isPaused`])):(P(),j(Ae,{key:2},[v.value!=="default"||e.toast.icon||e.toast.promise?(P(),j(`div`,{key:0,"data-icon":``,class:ne(k(Yj)(e.classes?.icon,e.toast?.classes?.icon))},[e.toast.icon?(P(),I(Ve(e.toast.icon),{key:0})):(P(),j(Ae,{key:1},[v.value===`loading`?R(e.$slots,`loading-icon`,{key:0}):v.value===`success`?R(e.$slots,`success-icon`,{key:1}):v.value===`error`?R(e.$slots,`error-icon`,{key:2}):v.value===`warning`?R(e.$slots,`warning-icon`,{key:3}):v.value===`info`?R(e.$slots,`info-icon`,{key:4}):Ue(`v-if`,!0)],64))],2)):Ue(`v-if`,!0),A(`div`,{"data-content":``,class:ne(k(Yj)(e.classes?.content,e.toast?.classes?.content))},[A(`div`,{"data-title":``,class:ne(k(Yj)(e.classes?.title,e.toast.classes?.title))},[ce.value?(P(),I(Ve(e.toast.title),ge(_e({key:0},e.toast.componentProps)),null,16)):(P(),j(Ae,{key:1},[C(Oe(e.toast.title),1)],64))],2),e.toast.description?(P(),j(`div`,{key:0,"data-description":``,class:ne(k(Yj)(e.descriptionClass,x.value,e.classes?.description,e.toast.classes?.description))},[le.value?(P(),I(Ve(e.toast.description),ge(_e({key:0},e.toast.componentProps)),null,16)):(P(),j(Ae,{key:1},[C(Oe(e.toast.description),1)],64))],2)):Ue(`v-if`,!0)],2),e.toast.cancel?(P(),j(`button`,{key:1,style:Ie(e.toast.cancelButtonStyle||e.cancelButtonStyle),class:ne(k(Yj)(e.classes?.cancelButton,e.toast.classes?.cancelButton)),"data-button":``,"data-cancel":``,onClick:t[0]||=t=>{k(zj)(e.toast.cancel)&&y.value&&(e.toast.cancel.onClick?.(t),fe())}},Oe(k(zj)(e.toast.cancel)?e.toast.cancel?.label:e.toast.cancel),7)):Ue(`v-if`,!0),e.toast.action?(P(),j(`button`,{key:2,style:Ie(e.toast.actionButtonStyle||e.actionButtonStyle),class:ne(k(Yj)(e.classes?.actionButton,e.toast.classes?.actionButton)),"data-button":``,"data-action":``,onClick:t[1]||=t=>{k(zj)(e.toast.action)&&(e.toast.action.onClick?.(t),!t.defaultPrevented&&fe())}},Oe(k(zj)(e.toast.action)?e.toast.action?.label:e.toast.action),7)):Ue(`v-if`,!0)],64))],46,Qj))}}),tM=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},nM={},rM={xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stoke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`};function iM(e,t){return P(),j(`svg`,rM,t[0]||=[A(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`},null,-1),A(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`},null,-1)])}var aM=tM(nM,[[`render`,iM]]),oM=[`data-visible`],sM={class:`sonner-spinner`},cM=N({__name:`Loader`,props:{visible:{type:Boolean}},setup(e){let t=Array(12).fill(0);return(e,n)=>(P(),j(`div`,{class:`sonner-loading-wrapper`,"data-visible":e.visible},[A(`div`,sM,[(P(!0),j(Ae,null,fe(k(t),e=>(P(),j(`div`,{key:`spinner-bar-${e}`,class:`sonner-loading-bar`}))),128))])],8,oM))}}),lM={},uM={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function dM(e,t){return P(),j(`svg`,uM,t[0]||=[A(`path`,{"fill-rule":`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,"clip-rule":`evenodd`},null,-1)])}var fM=tM(lM,[[`render`,dM]]),pM={},mM={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function hM(e,t){return P(),j(`svg`,mM,t[0]||=[A(`path`,{"fill-rule":`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,"clip-rule":`evenodd`},null,-1)])}var gM=tM(pM,[[`render`,hM]]),_M={},vM={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`};function yM(e,t){return P(),j(`svg`,vM,t[0]||=[A(`path`,{"fill-rule":`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,"clip-rule":`evenodd`},null,-1)])}var bM=tM(_M,[[`render`,yM]]),xM={},SM={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function CM(e,t){return P(),j(`svg`,SM,t[0]||=[A(`path`,{"fill-rule":`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,"clip-rule":`evenodd`},null,-1)])}var wM=tM(xM,[[`render`,CM]]),TM=[`aria-label`],EM=[`data-sonner-theme`,`dir`,`data-theme`,`data-rich-colors`,`data-y-position`,`data-x-position`],DM=typeof window<`u`&&typeof document<`u`;function OM(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}var kM=N({name:`Toaster`,inheritAttrs:!1,__name:`Toaster`,props:{id:{},invert:{type:Boolean,default:!1},theme:{default:`light`},position:{default:`bottom-right`},closeButtonPosition:{default:`top-left`},hotkey:{default:()=>[`altKey`,`KeyT`]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{},gap:{default:Gj},visibleToasts:{default:Bj},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},class:{default:``},style:{},offset:{default:Vj},mobileOffset:{default:Hj},dir:{default:`auto`},swipeDirections:{},icons:{},containerAriaLabel:{default:`Notifications`}},setup(e){let t=e,n=te(),r=L([]),i=M(()=>t.id?r.value.filter(e=>e.toasterId===t.id):r.value.filter(e=>!e.toasterId));function a(e,t){return i.value.filter(n=>!n.position&&t===0||n.position===e)}let o=M(()=>{let e=i.value.filter(e=>e.position).map(e=>e.position);return e.length>0?Array.from(new Set([t.position].concat(e))):[t.position]}),s=M(()=>{let e={};return o.value.forEach(t=>{e[t]=r.value.filter(e=>e.position===t)}),e}),c=L([]),l=L({}),u=L(!1);oe(()=>
30{o.value.forEach(e=>{e in l.value||(l.value[e]=!1)})});let d=L(t.theme===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:t.theme),f=L(null),p=L(null),m=L(!1),h=t.hotkey.join(`+`).replace(/Key/g,``).replace(/Digit/g,``);function g(e){r.value.find(t=>t.id===e.id)?.delete||Fj.dismiss(e.id),r.value=r.value.filter(({id:t})=>t!==e.id),setTimeout(()=>{r.value.find(t=>t.id===e.id)||(c.value=c.value.filter(t=>t.toastId!==e.id))},250)}function _(e){m.value&&!e.currentTarget?.contains?.(e.relatedTarget)&&(m.value=!1,p.value&&=(p.value.focus({preventScroll:!0}),null))}function v(e){e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||m.value||(m.value=!0,p.value=e.relatedTarget)}function y(e){e.target&&e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||(u.value=!0)}oe(e=>{e(Fj.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{r.value=r.value.map(t=>t.id===e.id?{...t,delete:!0}:t)});return}Le(()=>{let t=r.value.findIndex(t=>t.id===e.id);t===-1?r.value=[e,...r.value]:r.value=[...r.value.slice(0,t),{...r.value[t],...e},...r.value.slice(t+1)]})}))}),oe(e=>{if(typeof window>`u`)return;if(t.theme!==`system`){d.value=t.theme;return}let n=window.matchMedia(`(prefers-color-scheme: dark)`),r=e=>{d.value=e?`dark`:`light`};r(n.matches);let i=e=>{r(e.matches)};try{n.addEventListener(`change`,i)}catch{n.addListener(i)}e(()=>{try{n.removeEventListener(`change`,i)}catch{n.removeListener(i)}})}),oe(()=>{f.value&&p.value&&(p.value.focus({preventScroll:!0}),p.value=null,m.value=!1)}),oe(()=>{r.value.length<=1&&Object.keys(l.value).forEach(e=>{l.value[e]=!1})}),oe(e=>{function n(e){let n=t.hotkey.every(t=>e[t]||e.code===t),r=Array.isArray(f.value)?f.value[0]:f.value;n&&(o.value.forEach(e=>{l.value[e]=!0}),r?.focus());let i=document.activeElement===f.value||r?.contains(document.activeElement);e.code===`Escape`&&i&&o.value.forEach(e=>{l.value[e]=!1})}DM&&(document.addEventListener(`keydown`,n),e(()=>{document.removeEventListener(`keydown`,n)}))});function b(e){let t=e.currentTarget,n=t.getAttribute(`data-y-position`)+`-`+t.getAttribute(`data-x-position`);l.value[n]=!0}function x(e){if(!u.value){let t=e.currentTarget,n=t.getAttribute(`data-y-position`)+`-`+t.getAttribute(`data-x-position`);l.value[n]=!1}}function C(){Object.keys(l.value).forEach(e=>{l.value[e]=!1})}function w(){u.value=!1}function T(e){c.value=e}function E(e){let t=c.value.findIndex(t=>t.toastId===e.toastId);if(t!==-1)c.value[t]=e;else{let t=c.value.findIndex(t=>t.position===e.position);t===-1?c.value.unshift(e):c.value.splice(t,0,e)}}return(e,r)=>(P(),j(Ae,null,[Ue(` Remove item from normal navigation flow, only available via hotkey `),A(`section`,{"aria-label":`${e.containerAriaLabel} ${k(h)}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`},[(P(!0),j(Ae,null,fe(o.value,(r,i)=>(P(),j(`ol`,_e({key:r,ref_for:!0,ref_key:`listRef`,ref:f,"data-sonner-toaster":``,"data-sonner-theme":d.value,class:t.class,dir:e.dir===`auto`?OM():e.dir,tabIndex:-1,"data-theme":e.theme,"data-rich-colors":e.richColors,"data-y-position":r.split(`-`)[0],"data-x-position":r.split(`-`)[1],style:{"--front-toast-height":`${c.value[0]?.height||0}px`,"--width":`${k(Wj)}px`,"--gap":`${e.gap}px`,...e.style,...k(n).style,...k(Zj)(e.offset,e.mobileOffset)}},{ref_for:!0},e.$attrs,{onBlur:_,onFocus:v,onMouseenter:b,onMousemove:b,onMouseleave:x,onDragend:C,onPointerdown:y,onPointerup:w}),[(P(!0),j(Ae,null,fe(a(r,i),(n,i)=>(P(),I(eM,{key:n.id,heights:c.value,icons:e.icons,index:i,toast:n,defaultRichColors:e.richColors,duration:e.toastOptions?.duration??e.duration,class:ne(e.toastOptions?.class??``),descriptionClass:e.toastOptions?.descriptionClass,invert:e.invert,visibleToasts:e.visibleToasts,closeButton:e.toastOptions?.closeButton??e.closeButton,interacting:u.value,position:r,closeButtonPosition:e.toastOptions?.closeButtonPosition??e.closeButtonPosition,style:Ie(e.toastOptions?.style),unstyled:e.toastOptions?.unstyled,classes:e.toastOptions?.classes,cancelButtonStyle:e.toastOptions?.cancelButtonStyle,actionButtonStyle:e.toastOptions?.actionButtonStyle,"close-button-aria-label":e.toastOptions?.closeButtonAriaLabel,toasts:s.value[r],expandByDefault:e.expand,gap:e.gap,expanded:l.value[r]||!1,swipeDirections:t.swipeDirections,"onUpdate:heights":T,"onUpdate:height":E,onRemoveToast:g},{"close-icon":F(()=>[R(e.$slots,`close-icon`,{},()=>[S(aM)])]),"loading-icon":F(()=>[R(e.$slots,`loading-icon`,{},()=>[S(cM,{visible:n.type===`loading`},null,8,[`visible`])])]),"success-icon":F(()=>[R(e.$slots,`success-icon`,{},()=>[S(fM)])]),"error-icon":F(()=>[R(e.$slots,`error-icon`,{},()=>[S(wM)])]),"warning-icon":F(()=>[R(e.$slots,`warning-icon`,{},()=>[S(bM)])]),"info-icon":F(()=>[R(e.$slots,`info-icon`,{},()=>[S(gM)])]),_:2},1032,[`heights`,`icons`,`index`,`toast`,`defaultRichColors`,`duration`,`class`,`descriptionClass`,`invert`,`visibleToasts`,`closeButton`,`interacting`,`position`,`closeButtonPosition`,`style`,`unstyled`,`classes`,`cancelButtonStyle`,`actionButtonStyle`,`close-button-aria-label`,`toasts`,`expandByDefault`,`gap`,`expanded`,`swipeDirections`]))),128))],16,EM))),128))],8,TM)],2112))}}),AM=N({__name:`Sonner`,props:{id:{},invert:{type:Boolean},theme:{},position:{},closeButtonPosition:{},hotkey:{},richColors:{type:Boolean},expand:{type:Boolean},duration:{},gap:{},visibleToasts:{},closeButton:{type:Boolean},toastOptions:{},class:{},style:{},offset:{},mobileOffset:{},dir:{},swipeDirections:{},icons:{},containerAriaLabel:{}},setup(e){let t=e;return(e,n)=>
30(P(),I(k(kM),_e({class:`toaster group`},t,{style:{"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`}}),null,16))}}),jM=`https://stuccoplus.co.jp`,MM=N({__name:`app`,setup(e){let t=Vr();m();let{t:n,locale:r}=Vg();return Va({htmlAttrs:{lang:r},titleTemplate:e=>{let t=n(`meta.title_template`,`%s | æ ªå¼ä¼ç¤¾ã¹ã¿ãã³ãã©ã¹`);return e?t.replace(`%s`,e):n(`meta.default_title`,`æ ªå¼ä¼ç¤¾ã¹ã¿ãã³ãã©ã¹`)},link:[{rel:`canonical`,href:()=>`${jM}${t.path}`.replace(/\/$/,``)}],meta:[{property:`og:url`,content:()=>`${jM}${t.path}`.replace(/\/$/,``)}]}),(e,t)=>{let n=FA,r=HA,i=Nj;return P(),j(Ae,null,[S(r,null,{default:F(()=>[S(n)]),_:1}),S(k(AM)),S(i)],64)}}}),NM={class:`min-h-[calc(100vh-var(--header-h))] flex flex-col items-center justify-center p-6 text-center`},PM={key:0,class:`space-y-8 max-w-lg mx-auto animate-blur-fade-in`},FM={class:`text-[10rem] font-bold leading-none select-none text-muted-foreground/10 tracking-tighter`},IM={class:`space-y-4 relative -mt-20`},LM={class:`text-2xl md:text-3xl font-bold tracking-tight text-foreground`},RM={class:`text-muted-foreground leading-relaxed text-balance`},zM={class:`flex items-center justify-center gap-4 pt-4`},BM=N({__name:`error`,setup(e){let t=Yr(),{t:n}=Vg(),r=g_(),i=M(()=>t.value?.statusCode===404),a=M(()=>i.value?n(`error.404.title`):n(`error.500.title`)),o=M(()=>i.value?n(`error.404.description`):n(`error.500.description`)),s=()=>{$r({redirect:r(`/`)})};return me(()=>{if(t.value)try{Sn(`/api/error-notify`,{method:`POST`,body:{statusCode:t.value.statusCode,message:t.value.message,stack:t.value.stack,url:window.location.href,userAgent:navigator.userAgent,timestamp:new Date().toISOString()}})}catch(e){console.error(`Failed to notify error to Slack:`,e)}}),(e,r)=>{let i=HA;return P(),I(i,{name:`default`},{default:F(()=>[A(`div`,NM,[k(t)?(P(),j(`div`,PM,[A(`h1`,FM,Oe(k(t).statusCode),1),A(`div`,IM,[A(`h2`,LM,Oe(k(a)),1),A(`p`,RM,Oe(k(o)),1)]),A(`div`,zM,[S(k(Er),{size:`lg`,onClick:s,class:`min-w-[160px]`},{default:F(()=>[C(Oe(k(n)(`error.back_home`)),1)]),_:1})])])):Ue(``,!0)])]),_:1})}}}),VM=()=>null,HM={key:0},UM={__name:`nuxt-root`,setup(e){let t=d(),n=t.deferHydration();if(t.isHydrating){let e=t.hooks.hookOnce(`app:error`,n),r=zr().beforeEach(()=>{e(),r()})}window.location.pathname,xe(kr,Vr()),t.hooks.callHookWith(e=>e.map(e=>e()),`vue:setup`,[]);let r=Yr();function i(e,n,r){let i=t.vueApp.config.errorHandler;if(i&&!i.__nuxt_default)try{i(e,n,r)}catch(e){console.error("[nuxt] Error in `app.config.errorHandler`",e)}}return Fe((e,n,r)=>{if(t.hooks.callHook(`vue:error`,e,n,r)?.catch(e=>console.error("[nuxt] Error in `vue:error` hook",e)),tn(navigator.userAgent))return Zr(t,e),!1;if(ei(e)&&(e.fatal||e.unhandled))return t.runWithContext(()=>Xr(e)),i(e,n,r),!1}),(e,t)=>(P(),I(Te,{onResolve:k(n)},{default:F(()=>[k(!1)?(P(),j(`div`,HM)):k(r)?(P(),I(k(BM),{key:1,error:k(r)},null,8,[`error`])):k(!1)?(P(),I(k(VM),{key:2,context:k(!1)},null,8,[`context`])):k(!1)?(P(),I(Ve(k(!1)),{key:3})):(P(),I(k(MM),{key:4}))]),_:1},8,[`onResolve`]))}},WM;{let e;WM=async function(){if(e)return e;let t=!!(window.__NUXT__?.serverRendered??document.getElementById(`__NUXT_DATA__`)?.dataset.ssr===`true`),n=t?ft(UM):pt(UM),r=u({vueApp:n});async function i(e){await r.callHook(`app:error`,e),r.payload.error||=ti(e)}i.__nuxt_default=!0,n.config.errorHandler=i,r.hook(`app:suspense:resolve`,()=>{n.config.errorHandler===i&&(n.config.errorHandler=void 0)}),!t&&g.id&&r.hook(`app:suspense:resolve`,()=>{document.getElementById(g.id)?.remove()});try{await h(r,jA)}catch(e){i(e)}try{await r.hooks.callHook(`app:created`,n),await r.hooks.callHook(`app:beforeMount`,n),n.mount(s),await r.hooks.callHook(`app:mounted`,n),await Le()}catch(e){i(e)}return n},e=WM().catch(e=>{throw _.NUXT_E1009({cause:e}),e})}export{vu as A,Ha as B,Fk as C,v_ as D,g_ as E,hl as F,Vr as H,lc as I,uc as L,Al as M,bl as N,Vg as O,pl as P,V as R,Rk as S,ux as T,zr as U,Gr as V,Fr as W,Kk as _,_j as a,Ik as b,pj as c,tj as d,ej as f,KA as g,qA as h,vj as i,eu as j,Su as k,rj as l,ZA as m,Mj as n,gj as o,QA as p,bj as r,mj as s,Rj as t,nj as u,Uk as v,fx as w,zk as x,Lk as y,Va as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.