# Amplitude Nuxt 3.6 Example Project

Repository: https://github.com/amplitude/context-hub
Path: basics/nuxt-3.6

---

## README.md

# Amplitude Nuxt 3.6 Example

This is a [Nuxt 3.6](https://nuxt.com) example demonstrating Amplitude integration with product analytics and event tracking.

### Amplitude SDKs

The browser uses the [Browser Unified SDK (npm)](https://amplitude.com/docs/sdks/analytics/browser/browser-unified-sdk#unified-sdk-npm): `@amplitude/unified` with `initAll` in [plugins/amplitude.client.ts](plugins/amplitude.client.ts). [Initialize the Unified SDK](https://amplitude.com/docs/sdks/analytics/browser/browser-unified-sdk#initialize-the-unified-sdk) documents one `initAll` call as initializing every product bundled with Unified npm; optional tuning is in [Unified SDK configuration](https://amplitude.com/docs/sdks/analytics/browser/browser-unified-sdk#configuration) (`analytics`, `sessionReplay`, `experiment`, `engagement`, plus shared options).

The `experiment` block configures **Feature Experiment** (`@amplitude/experiment-js-client`). Amplitude’s [product support table](https://amplitude.com/docs/sdks/analytics/browser/browser-unified-sdk#product-support-by-installation-method) lists **Web Experiment** (`@amplitude/experiment-tag`, including the visual editor) for the Unified **CDN** script, not the Unified **npm** row.

Nitro and API routes use `@amplitude/analytics-node`.

## Features

- **Product Analytics**: Track user events and behaviors
- **User Authentication**: Demo login system with Amplitude user identification
- **Server-side & Client-side Tracking**: Examples of both tracking methods
- **SSR Support**: Server-side rendering with Nuxt 3.6

## Getting Started

### 1. Install Dependencies

```bash
npm install
# or
pnpm install
```

### 2. Configure Environment Variables

Create a `.env` file in the root directory:

```bash
NUXT_PUBLIC_AMPLITUDE_API_KEY=your_amplitude_api_key
```

Get your Amplitude API key from your [Amplitude project settings](https://app.amplitude.com).

### 3. Run the Development Server

```bash
npm run dev
# or
pnpm dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the app.

## Project Structure

```
├── assets/
│   └── css/
│       └── main.css          # Global styles
├── components/
│   └── Header.vue            # Navigation header with auth state
├── composables/
│   └── useAuth.ts            # Authentication composable
├── pages/
│   ├── index.vue             # Home/Login page
│   ├── burrito.vue           # Demo feature page with event tracking
│   └── profile.vue           # User profile page
├── plugins/
│   └── amplitude.client.ts   # Client-side Amplitude plugin
├── server/
│   ├── api/
│   │   ├── auth/
│   │   │   └── login.post.ts # Login API with server-side tracking
│   │   └── burrito/
│   │       └── consider.post.ts # Burrito API with server-side tracking
│   └── utils/
│       └── users.ts          # In-memory user storage utilities
├── types/
│   └── nuxt-app.d.ts          # TypeScript declarations for Amplitude
├── app.vue                    # Root component
└── nuxt.config.ts             # Nuxt configuration
```

## Key Integration Points

### Client-side initialization (plugins/amplitude.client.ts)

```typescript
import * as amplitude from '@amplitude/unified'

export default defineNuxtPlugin((nuxtApp) => {
  const runtimeConfig = useRuntimeConfig()
  const apiKey = runtimeConfig.public.amplitudeApiKey as string | undefined

  if (apiKey) {
    void amplitude.initAll(apiKey)
  }

  return {
    provide: {
      amplitude,
    },
  }
})
```

### User identification (pages/index.vue)

```typescript
import { Identify } from '@amplitude/unified'

const { $amplitude: amplitude } = useNuxtApp()

const handleSubmit = async () => {
  const success = await auth.login(username.value, password.value)
  if (success) {
    amplitude.setUserId(username.value)
    const identifyObj = new Identify()
    identifyObj.set('username', username.value)
    amplitude.identify(identifyObj)

    amplitude.track('User Logged In', { username: username.value })
  }
}
```

### Event tracking (pages/burrito.vue)

```typescript
const { $amplitude: amplitude } = useNuxtApp()

amplitude.track('Burrito Considered', {
  total_considerations: response.user.burritoConsiderations,
  username: response.user.username,
})
```

### Server-side tracking (server/api/auth/login.post.ts)

```typescript
import { NodeClient, createInstance } from '@amplitude/analytics-node'

const amplitudeClient: NodeClient = createInstance()
amplitudeClient.init(apiKey)
amplitudeClient.track('Server Login Completed', { username }, { user_id: username })
await amplitudeClient.flush()
```

### Accessing Amplitude in components

Amplitude is accessed via `useNuxtApp()`:

```typescript
const { $amplitude: amplitude } = useNuxtApp()
amplitude.track('Event Name', { property: 'value' })
```

TypeScript types are provided via `types/nuxt-app.d.ts`:

```typescript
import type * as amplitude from '@amplitude/unified'

declare module '#app' {
  interface NuxtApp {
    $amplitude: typeof amplitude
  }
}
```

## Learn More

- [Amplitude Documentation](https://amplitude.com/docs)
- [Nuxt 3 Documentation](https://nuxt.com/docs)
- [Amplitude Browser SDK](https://amplitude.com/docs/sdks/analytics/browser/browser-sdk-2)

---

## .env.example

```example

NUXT_PUBLIC_AMPLITUDE_API_KEY=

```

---

## .nuxt/app.config.mjs

```mjs

import { _replaceAppConfig } from '#app/config'
import { defuFn } from 'defu'

const inlineConfig = {
  "nuxt": {}
}

// Vite - webpack is handled directly in #app/config
if (import.meta.hot) {
  import.meta.hot.accept((newModule) => {
    _replaceAppConfig(newModule.default)
  })
}



export default /*@__PURE__*/ defuFn(inlineConfig)

```

---

## .nuxt/components.d.ts

```ts

import type { DefineComponent, SlotsType } from 'vue'
type IslandComponent<T> = DefineComponent<{}, {refresh: () => Promise<void>}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, SlotsType<{ fallback: { error: unknown } }>> & T

type HydrationStrategies = {
  hydrateOnVisible?: IntersectionObserverInit | true
  hydrateOnIdle?: number | true
  hydrateOnInteraction?: keyof HTMLElementEventMap | Array<keyof HTMLElementEventMap> | true
  hydrateOnMediaQuery?: string
  hydrateAfter?: number
  hydrateWhen?: boolean
  hydrateNever?: true
}
type LazyComponent<T> = DefineComponent<HydrationStrategies, {}, {}, {}, {}, {}, {}, { hydrated: () => void }> & T


export const Header: typeof import("../components/Header.vue").default
export const NuxtWelcome: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/welcome.vue").default
export const NuxtLayout: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-layout").default
export const NuxtErrorBoundary: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-error-boundary.vue").default
export const ClientOnly: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/client-only").default
export const DevOnly: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/dev-only").default
export const ServerPlaceholder: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/server-placeholder").default
export const NuxtLink: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-link").default
export const NuxtLoadingIndicator: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-loading-indicator").default
export const NuxtTime: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-time.vue").default
export const NuxtRouteAnnouncer: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-route-announcer").default
export const NuxtImg: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-stubs").NuxtImg
export const NuxtPicture: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-stubs").NuxtPicture
export const NuxtPage: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/pages/runtime/page").default
export const NoScript: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").NoScript
export const Link: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Link
export const Base: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Base
export const Title: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Title
export const Meta: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Meta
export const Style: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Style
export const Head: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Head
export const Html: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Html
export const Body: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Body
export const NuxtIsland: typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-island").default
export const LazyHeader: LazyComponent<typeof import("../components/Header.vue").default>
export const LazyNuxtWelcome: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/welcome.vue").default>
export const LazyNuxtLayout: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-layout").default>
export const LazyNuxtErrorBoundary: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-error-boundary.vue").default>
export const LazyClientOnly: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/client-only").default>
export const LazyDevOnly: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/dev-only").default>
export const LazyServerPlaceholder: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/server-placeholder").default>
export const LazyNuxtLink: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-link").default>
export const LazyNuxtLoadingIndicator: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-loading-indicator").default>
export const LazyNuxtTime: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-time.vue").default>
export const LazyNuxtRouteAnnouncer: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-route-announcer").default>
export const LazyNuxtImg: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-stubs").NuxtImg>
export const LazyNuxtPicture: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-stubs").NuxtPicture>
export const LazyNuxtPage: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/pages/runtime/page").default>
export const LazyNoScript: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").NoScript>
export const LazyLink: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Link>
export const LazyBase: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Base>
export const LazyTitle: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Title>
export const LazyMeta: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Meta>
export const LazyStyle: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Style>
export const LazyHead: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Head>
export const LazyHtml: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Html>
export const LazyBody: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Body>
export const LazyNuxtIsland: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-island").default>

export const componentNames: string[]

```

---

## .nuxt/imports.d.ts

```ts
export { useScriptTriggerConsent, useScriptEventPage, useScriptTriggerElement, useScript, useScriptGoogleAnalytics, useScriptPlausibleAnalytics, useScriptCrisp, useScriptClarity, useScriptCloudflareWebAnalytics, useScriptFathomAnalytics, useScriptMatomoAnalytics, useScriptGoogleTagManager, useScriptGoogleAdsense, useScriptSegment, useScriptMetaPixel, useScriptXPixel, useScriptIntercom, useScriptHotjar, useScriptStripe, useScriptLemonSqueezy, useScriptVimeoPlayer, useScriptYouTubePlayer, useScriptGoogleMaps, useScriptNpm, useScriptUmamiAnalytics, useScriptSnapchatPixel, useScriptRybbitAnalytics, useScriptDatabuddyAnalytics, useScriptRedditPixel, useScriptPayPal } from '#app/composables/script-stubs';
export { isVue2, isVue3 } from 'vue-demi';
export { defineNuxtLink } from '#app/components/nuxt-link';
export { useNuxtApp, tryUseNuxtApp, defineNuxtPlugin, definePayloadPlugin, useRuntimeConfig, defineAppConfig } from '#app/nuxt';
export { useAppConfig, updateAppConfig } from '#app/config';
export { defineNuxtComponent } from '#app/composables/component';
export { useAsyncData, useLazyAsyncData, useNuxtData, refreshNuxtData, clearNuxtData } from '#app/composables/asyncData';
export { useHydration } from '#app/composables/hydrate';
export { callOnce } from '#app/composables/once';
export { useState, clearNuxtState } from '#app/composables/state';
export { clearError, createError, isNuxtError, showError, useError } from '#app/composables/error';
export { useFetch, useLazyFetch } from '#app/composables/fetch';
export { useCookie, refreshCookie } from '#app/composables/cookie';
export { onPrehydrate, prerenderRoutes, useRequestHeader, useRequestHeaders, useResponseHeader, useRequestEvent, useRequestFetch, setResponseStatus } from '#app/composables/ssr';
export { onNuxtReady } from '#app/composables/ready';
export { preloadComponents, prefetchComponents, preloadRouteComponents } from '#app/composables/preload';
export { abortNavigation, addRouteMiddleware, defineNuxtRouteMiddleware, setPageLayout, navigateTo, useRoute, useRouter } from '#app/composables/router';
export { isPrerendered, loadPayload, preloadPayload, definePayloadReducer, definePayloadReviver } from '#app/composables/payload';
export { useLoadingIndicator } from '#app/composables/loading-indicator';
export { getAppManifest, getRouteRules } from '#app/composables/manifest';
export { reloadNuxtApp } from '#app/composables/chunk';
export { useRequestURL } from '#app/composables/url';
export { usePreviewMode } from '#app/composables/preview';
export { useRouteAnnouncer } from '#app/composables/route-announcer';
export { useRuntimeHook } from '#app/composables/runtime-hook';
export { useHead, useHeadSafe, useServerHeadSafe, useServerHead, useSeoMeta, useServerSeoMeta, injectHead } from '#app/composables/head';
export { onBeforeRouteLeave, onBeforeRouteUpdate, useLink } from 'vue-router';
export { withCtx, withDirectives, withKeys, withMemo, withModifiers, withScopeId, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onServerPrefetch, onUnmounted, onUpdated, computed, customRef, isProxy, isReactive, isReadonly, isRef, markRaw, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toRefs, triggerRef, unref, watch, watchEffect, watchPostEffect, watchSyncEffect, onWatcherCleanup, isShallow, effect, effectScope, getCurrentScope, onScopeDispose, defineComponent, defineAsyncComponent, resolveComponent, getCurrentInstance, h, inject, hasInjectionContext, nextTick, provide, toValue, useModel, useAttrs, useCssModule, useCssVars, useSlots, useTransitionState, useId, useTemplateRef, useShadowRoot, Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue';
export { requestIdleCallback, cancelIdleCallback } from '#app/compat/idle-callback';
export { setInterval } from '#app/compat/interval';
export { definePageMeta } from '../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/pages/runtime/composables';
export { defineLazyHydrationComponent } from '#app/composables/lazy-hydration';
export { useAuth } from '../composables/useAuth';
```

---

## .nuxt/nuxt.d.ts

```ts
/// <reference types="@nuxt/devtools" />
/// <reference types="@nuxt/telemetry" />
/// <reference path="types/nitro-layouts.d.ts" />
/// <reference path="types/builder-env.d.ts" />
/// <reference types="nuxt" />
/// <reference path="types/app-defaults.d.ts" />
/// <reference path="types/plugins.d.ts" />
/// <reference path="types/build.d.ts" />
/// <reference path="types/schema.d.ts" />
/// <reference path="types/app.config.d.ts" />
/// <reference types="/Users/kaia/code/amp/context-hub/basics/nuxt-3.6/node_modules/.pnpm/@nuxt+nitro-server@3.21.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@_b2c4b6af65a3b405b9ab78da468773bd/node_modules/@nuxt/nitro-server/dist/index.mjs" />
/// <reference types="vue-router" />
/// <reference path="types/middleware.d.ts" />
/// <reference path="types/nitro-middleware.d.ts" />
/// <reference path="types/layouts.d.ts" />
/// <reference path="types/components.d.ts" />
/// <reference path="imports.d.ts" />
/// <reference path="types/imports.d.ts" />
/// <reference path="schema/nuxt.schema.d.ts" />
/// <reference path="types/nitro.d.ts" />

export {}

```

---

## .nuxt/schema/nuxt.schema.d.ts

```ts
export interface NuxtCustomSchema {

}
export type CustomAppConfig = Exclude<NuxtCustomSchema['appConfig'], undefined>
type _CustomAppConfig = CustomAppConfig

declare module '@nuxt/schema' {
  interface NuxtConfig extends Omit<NuxtCustomSchema, 'appConfig'> {}
  interface NuxtOptions extends Omit<NuxtCustomSchema, 'appConfig'> {}
  interface CustomAppConfig extends _CustomAppConfig {}
}

declare module 'nuxt/schema' {
  interface NuxtConfig extends Omit<NuxtCustomSchema, 'appConfig'> {}
  interface NuxtOptions extends Omit<NuxtCustomSchema, 'appConfig'> {}
  interface CustomAppConfig extends _CustomAppConfig {}
}

```

---

## .nuxt/types/app-defaults.d.ts

```ts

declare module 'nuxt/app/defaults' {
  type DefaultAsyncDataErrorValue = null
  type DefaultAsyncDataValue = null
  type DefaultErrorValue = null
  type DedupeOption = boolean | 'cancel' | 'defer'
}
```

---

## .nuxt/types/app.config.d.ts

```ts

import type { CustomAppConfig } from 'nuxt/schema'
import type { Defu } from 'defu'


declare const inlineConfig = {
  "nuxt": {}
}
type ResolvedAppConfig = Defu<typeof inlineConfig, []>
type IsAny<T> = 0 extends 1 & T ? true : false

type MergedAppConfig<Resolved extends Record<string, unknown>, Custom extends Record<string, unknown>> = {
  [K in keyof (Resolved & Custom)]: K extends keyof Custom
    ? unknown extends Custom[K]
      ? Resolved[K]
      : IsAny<Custom[K]> extends true
        ? Resolved[K]
        : Custom[K] extends Record<string, any>
            ? Resolved[K] extends Record<string, any>
              ? MergedAppConfig<Resolved[K], Custom[K]>
              : Exclude<Custom[K], undefined>
            : Exclude<Custom[K], undefined>
    : Resolved[K]
}

declare module 'nuxt/schema' {
  interface AppConfig extends MergedAppConfig<ResolvedAppConfig, CustomAppConfig> { }
}
declare module '@nuxt/schema' {
  interface AppConfig extends MergedAppConfig<ResolvedAppConfig, CustomAppConfig> { }
}

```

---

## .nuxt/types/components.d.ts

```ts

import type { DefineComponent, SlotsType } from 'vue'
type IslandComponent<T> = DefineComponent<{}, {refresh: () => Promise<void>}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, SlotsType<{ fallback: { error: unknown } }>> & T

type HydrationStrategies = {
  hydrateOnVisible?: IntersectionObserverInit | true
  hydrateOnIdle?: number | true
  hydrateOnInteraction?: keyof HTMLElementEventMap | Array<keyof HTMLElementEventMap> | true
  hydrateOnMediaQuery?: string
  hydrateAfter?: number
  hydrateWhen?: boolean
  hydrateNever?: true
}
type LazyComponent<T> = DefineComponent<HydrationStrategies, {}, {}, {}, {}, {}, {}, { hydrated: () => void }> & T

interface _GlobalComponents {
  'Header': typeof import("../../components/Header.vue").default
  'NuxtWelcome': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/welcome.vue").default
  'NuxtLayout': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-layout").default
  'NuxtErrorBoundary': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-error-boundary.vue").default
  'ClientOnly': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/client-only").default
  'DevOnly': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/dev-only").default
  'ServerPlaceholder': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/server-placeholder").default
  'NuxtLink': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-link").default
  'NuxtLoadingIndicator': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-loading-indicator").default
  'NuxtTime': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-time.vue").default
  'NuxtRouteAnnouncer': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-route-announcer").default
  'NuxtImg': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-stubs").NuxtImg
  'NuxtPicture': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-stubs").NuxtPicture
  'NuxtPage': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/pages/runtime/page").default
  'NoScript': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").NoScript
  'Link': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Link
  'Base': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Base
  'Title': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Title
  'Meta': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Meta
  'Style': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Style
  'Head': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Head
  'Html': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Html
  'Body': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Body
  'NuxtIsland': typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-island").default
  'LazyHeader': LazyComponent<typeof import("../../components/Header.vue").default>
  'LazyNuxtWelcome': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/welcome.vue").default>
  'LazyNuxtLayout': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-layout").default>
  'LazyNuxtErrorBoundary': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-error-boundary.vue").default>
  'LazyClientOnly': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/client-only").default>
  'LazyDevOnly': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/dev-only").default>
  'LazyServerPlaceholder': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/server-placeholder").default>
  'LazyNuxtLink': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-link").default>
  'LazyNuxtLoadingIndicator': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-loading-indicator").default>
  'LazyNuxtTime': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-time.vue").default>
  'LazyNuxtRouteAnnouncer': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-route-announcer").default>
  'LazyNuxtImg': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-stubs").NuxtImg>
  'LazyNuxtPicture': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-stubs").NuxtPicture>
  'LazyNuxtPage': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/pages/runtime/page").default>
  'LazyNoScript': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").NoScript>
  'LazyLink': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Link>
  'LazyBase': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Base>
  'LazyTitle': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Title>
  'LazyMeta': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Meta>
  'LazyStyle': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Style>
  'LazyHead': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Head>
  'LazyHtml': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Html>
  'LazyBody': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/components").Body>
  'LazyNuxtIsland': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-island").default>
}

declare module 'vue' {
  export interface GlobalComponents extends _GlobalComponents { }
}

export {}

```

---

## .nuxt/types/imports.d.ts

```ts
// Generated by auto imports
export {}
declare global {
  const abortNavigation: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/router').abortNavigation
  const addRouteMiddleware: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/router').addRouteMiddleware
  const callOnce: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/once').callOnce
  const cancelIdleCallback: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/compat/idle-callback').cancelIdleCallback
  const clearError: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/error').clearError
  const clearNuxtData: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/asyncData').clearNuxtData
  const clearNuxtState: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/state').clearNuxtState
  const computed: typeof import('vue').computed
  const createError: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/error').createError
  const customRef: typeof import('vue').customRef
  const defineAppConfig: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/nuxt').defineAppConfig
  const defineAsyncComponent: typeof import('vue').defineAsyncComponent
  const defineComponent: typeof import('vue').defineComponent
  const defineLazyHydrationComponent: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/lazy-hydration').defineLazyHydrationComponent
  const defineNuxtComponent: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/component').defineNuxtComponent
  const defineNuxtLink: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-link').defineNuxtLink
  const defineNuxtPlugin: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/nuxt').defineNuxtPlugin
  const defineNuxtRouteMiddleware: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/router').defineNuxtRouteMiddleware
  const definePageMeta: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/pages/runtime/composables').definePageMeta
  const definePayloadPlugin: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/nuxt').definePayloadPlugin
  const definePayloadReducer: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/payload').definePayloadReducer
  const definePayloadReviver: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/payload').definePayloadReviver
  const effect: typeof import('vue').effect
  const effectScope: typeof import('vue').effectScope
  const getAppManifest: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/manifest').getAppManifest
  const getCurrentInstance: typeof import('vue').getCurrentInstance
  const getCurrentScope: typeof import('vue').getCurrentScope
  const getRouteRules: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/manifest').getRouteRules
  const h: typeof import('vue').h
  const hasInjectionContext: typeof import('vue').hasInjectionContext
  const inject: typeof import('vue').inject
  const injectHead: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/head').injectHead
  const isNuxtError: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/error').isNuxtError
  const isPrerendered: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/payload').isPrerendered
  const isProxy: typeof import('vue').isProxy
  const isReactive: typeof import('vue').isReactive
  const isReadonly: typeof import('vue').isReadonly
  const isRef: typeof import('vue').isRef
  const isShallow: typeof import('vue').isShallow
  const isVue2: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/compat/vue-demi').isVue2
  const isVue3: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/compat/vue-demi').isVue3
  const loadPayload: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/payload').loadPayload
  const markRaw: typeof import('vue').markRaw
  const navigateTo: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/router').navigateTo
  const nextTick: typeof import('vue').nextTick
  const onActivated: typeof import('vue').onActivated
  const onBeforeMount: typeof import('vue').onBeforeMount
  const onBeforeRouteLeave: typeof import('vue-router').onBeforeRouteLeave
  const onBeforeRouteUpdate: typeof import('vue-router').onBeforeRouteUpdate
  const onBeforeUnmount: typeof import('vue').onBeforeUnmount
  const onBeforeUpdate: typeof import('vue').onBeforeUpdate
  const onDeactivated: typeof import('vue').onDeactivated
  const onErrorCaptured: typeof import('vue').onErrorCaptured
  const onMounted: typeof import('vue').onMounted
  const onNuxtReady: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/ready').onNuxtReady
  const onPrehydrate: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/ssr').onPrehydrate
  const onRenderTracked: typeof import('vue').onRenderTracked
  const onRenderTriggered: typeof import('vue').onRenderTriggered
  const onScopeDispose: typeof import('vue').onScopeDispose
  const onServerPrefetch: typeof import('vue').onServerPrefetch
  const onUnmounted: typeof import('vue').onUnmounted
  const onUpdated: typeof import('vue').onUpdated
  const onWatcherCleanup: typeof import('vue').onWatcherCleanup
  const prefetchComponents: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/preload').prefetchComponents
  const preloadComponents: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/preload').preloadComponents
  const preloadPayload: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/payload').preloadPayload
  const preloadRouteComponents: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/preload').preloadRouteComponents
  const prerenderRoutes: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/ssr').prerenderRoutes
  const provide: typeof import('vue').provide
  const proxyRefs: typeof import('vue').proxyRefs
  const reactive: typeof import('vue').reactive
  const readonly: typeof import('vue').readonly
  const ref: typeof import('vue').ref
  const refreshCookie: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/cookie').refreshCookie
  const refreshNuxtData: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/asyncData').refreshNuxtData
  const reloadNuxtApp: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/chunk').reloadNuxtApp
  const requestIdleCallback: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/compat/idle-callback').requestIdleCallback
  const resolveComponent: typeof import('vue').resolveComponent
  const setInterval: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/compat/interval').setInterval
  const setPageLayout: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/router').setPageLayout
  const setResponseStatus: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/ssr').setResponseStatus
  const shallowReactive: typeof import('vue').shallowReactive
  const shallowReadonly: typeof import('vue').shallowReadonly
  const shallowRef: typeof import('vue').shallowRef
  const showError: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/error').showError
  const toRaw: typeof import('vue').toRaw
  const toRef: typeof import('vue').toRef
  const toRefs: typeof import('vue').toRefs
  const toValue: typeof import('vue').toValue
  const triggerRef: typeof import('vue').triggerRef
  const tryUseNuxtApp: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/nuxt').tryUseNuxtApp
  const unref: typeof import('vue').unref
  const updateAppConfig: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/config').updateAppConfig
  const useAppConfig: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/config').useAppConfig
  const useAsyncData: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/asyncData').useAsyncData
  const useAttrs: typeof import('vue').useAttrs
  const useAuth: typeof import('../../composables/useAuth').useAuth
  const useCookie: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/cookie').useCookie
  const useCssModule: typeof import('vue').useCssModule
  const useCssVars: typeof import('vue').useCssVars
  const useError: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/error').useError
  const useFetch: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/fetch').useFetch
  const useHead: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/head').useHead
  const useHeadSafe: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/head').useHeadSafe
  const useHydration: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/hydrate').useHydration
  const useId: typeof import('vue').useId
  const useLazyAsyncData: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/asyncData').useLazyAsyncData
  const useLazyFetch: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/fetch').useLazyFetch
  const useLink: typeof import('vue-router').useLink
  const useLoadingIndicator: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/loading-indicator').useLoadingIndicator
  const useModel: typeof import('vue').useModel
  const useNuxtApp: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/nuxt').useNuxtApp
  const useNuxtData: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/asyncData').useNuxtData
  const usePreviewMode: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/preview').usePreviewMode
  const useRequestEvent: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/ssr').useRequestEvent
  const useRequestFetch: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/ssr').useRequestFetch
  const useRequestHeader: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/ssr').useRequestHeader
  const useRequestHeaders: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/ssr').useRequestHeaders
  const useRequestURL: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/url').useRequestURL
  const useResponseHeader: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/ssr').useResponseHeader
  const useRoute: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/router').useRoute
  const useRouteAnnouncer: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/route-announcer').useRouteAnnouncer
  const useRouter: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/router').useRouter
  const useRuntimeConfig: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/nuxt').useRuntimeConfig
  const useRuntimeHook: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/runtime-hook').useRuntimeHook
  const useScript: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScript
  const useScriptClarity: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptClarity
  const useScriptCloudflareWebAnalytics: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptCloudflareWebAnalytics
  const useScriptCrisp: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptCrisp
  const useScriptDatabuddyAnalytics: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptDatabuddyAnalytics
  const useScriptEventPage: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptEventPage
  const useScriptFathomAnalytics: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptFathomAnalytics
  const useScriptGoogleAdsense: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptGoogleAdsense
  const useScriptGoogleAnalytics: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptGoogleAnalytics
  const useScriptGoogleMaps: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptGoogleMaps
  const useScriptGoogleTagManager: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptGoogleTagManager
  const useScriptHotjar: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptHotjar
  const useScriptIntercom: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptIntercom
  const useScriptLemonSqueezy: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptLemonSqueezy
  const useScriptMatomoAnalytics: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptMatomoAnalytics
  const useScriptMetaPixel: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptMetaPixel
  const useScriptNpm: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptNpm
  const useScriptPayPal: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptPayPal
  const useScriptPlausibleAnalytics: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptPlausibleAnalytics
  const useScriptRedditPixel: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptRedditPixel
  const useScriptRybbitAnalytics: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptRybbitAnalytics
  const useScriptSegment: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptSegment
  const useScriptSnapchatPixel: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptSnapchatPixel
  const useScriptStripe: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptStripe
  const useScriptTriggerConsent: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptTriggerConsent
  const useScriptTriggerElement: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptTriggerElement
  const useScriptUmamiAnalytics: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptUmamiAnalytics
  const useScriptVimeoPlayer: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptVimeoPlayer
  const useScriptXPixel: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptXPixel
  const useScriptYouTubePlayer: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs').useScriptYouTubePlayer
  const useSeoMeta: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/head').useSeoMeta
  const useServerHead: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/head').useServerHead
  const useServerHeadSafe: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/head').useServerHeadSafe
  const useServerSeoMeta: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/head').useServerSeoMeta
  const useShadowRoot: typeof import('vue').useShadowRoot
  const useSlots: typeof import('vue').useSlots
  const useState: typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/state').useState
  const useTemplateRef: typeof import('vue').useTemplateRef
  const useTransitionState: typeof import('vue').useTransitionState
  const watch: typeof import('vue').watch
  const watchEffect: typeof import('vue').watchEffect
  const watchPostEffect: typeof import('vue').watchPostEffect
  const watchSyncEffect: typeof import('vue').watchSyncEffect
  const withCtx: typeof import('vue').withCtx
  const withDirectives: typeof import('vue').withDirectives
  const withKeys: typeof import('vue').withKeys
  const withMemo: typeof import('vue').withMemo
  const withModifiers: typeof import('vue').withModifiers
  const withScopeId: typeof import('vue').withScopeId
}
// for type re-export
declare global {
  // @ts-ignore
  export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
  import('vue')
}
// for vue template auto import
import { UnwrapRef } from 'vue'
declare module 'vue' {
  interface ComponentCustomProperties {
    readonly abortNavigation: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/router')['abortNavigation']>
    readonly addRouteMiddleware: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/router')['addRouteMiddleware']>
    readonly callOnce: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/once')['callOnce']>
    readonly cancelIdleCallback: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/compat/idle-callback')['cancelIdleCallback']>
    readonly clearError: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/error')['clearError']>
    readonly clearNuxtData: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/asyncData')['clearNuxtData']>
    readonly clearNuxtState: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/state')['clearNuxtState']>
    readonly computed: UnwrapRef<typeof import('vue')['computed']>
    readonly createError: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/error')['createError']>
    readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
    readonly defineAppConfig: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/nuxt')['defineAppConfig']>
    readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
    readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>
    readonly defineLazyHydrationComponent: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/lazy-hydration')['defineLazyHydrationComponent']>
    readonly defineNuxtComponent: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/component')['defineNuxtComponent']>
    readonly defineNuxtLink: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/components/nuxt-link')['defineNuxtLink']>
    readonly defineNuxtPlugin: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/nuxt')['defineNuxtPlugin']>
    readonly defineNuxtRouteMiddleware: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/router')['defineNuxtRouteMiddleware']>
    readonly definePageMeta: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/pages/runtime/composables')['definePageMeta']>
    readonly definePayloadPlugin: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/nuxt')['definePayloadPlugin']>
    readonly definePayloadReducer: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/payload')['definePayloadReducer']>
    readonly definePayloadReviver: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/payload')['definePayloadReviver']>
    readonly effect: UnwrapRef<typeof import('vue')['effect']>
    readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
    readonly getAppManifest: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/manifest')['getAppManifest']>
    readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
    readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>
    readonly getRouteRules: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/manifest')['getRouteRules']>
    readonly h: UnwrapRef<typeof import('vue')['h']>
    readonly hasInjectionContext: UnwrapRef<typeof import('vue')['hasInjectionContext']>
    readonly inject: UnwrapRef<typeof import('vue')['inject']>
    readonly injectHead: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/head')['injectHead']>
    readonly isNuxtError: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/error')['isNuxtError']>
    readonly isPrerendered: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/payload')['isPrerendered']>
    readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
    readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
    readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
    readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
    readonly isShallow: UnwrapRef<typeof import('vue')['isShallow']>
    readonly isVue2: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/compat/vue-demi')['isVue2']>
    readonly isVue3: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/compat/vue-demi')['isVue3']>
    readonly loadPayload: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/payload')['loadPayload']>
    readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>
    readonly navigateTo: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/router')['navigateTo']>
    readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
    readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
    readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
    readonly onBeforeRouteLeave: UnwrapRef<typeof import('vue-router')['onBeforeRouteLeave']>
    readonly onBeforeRouteUpdate: UnwrapRef<typeof import('vue-router')['onBeforeRouteUpdate']>
    readonly onBeforeUnmount: UnwrapRef<typeof import('vue')['onBeforeUnmount']>
    readonly onBeforeUpdate: UnwrapRef<typeof import('vue')['onBeforeUpdate']>
    readonly onDeactivated: UnwrapRef<typeof import('vue')['onDeactivated']>
    readonly onErrorCaptured: UnwrapRef<typeof import('vue')['onErrorCaptured']>
    readonly onMounted: UnwrapRef<typeof import('vue')['onMounted']>
    readonly onNuxtReady: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/ready')['onNuxtReady']>
    readonly onPrehydrate: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/ssr')['onPrehydrate']>
    readonly onRenderTracked: UnwrapRef<typeof import('vue')['onRenderTracked']>
    readonly onRenderTriggered: UnwrapRef<typeof import('vue')['onRenderTriggered']>
    readonly onScopeDispose: UnwrapRef<typeof import('vue')['onScopeDispose']>
    readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>
    readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>
    readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
    readonly onWatcherCleanup: UnwrapRef<typeof import('vue')['onWatcherCleanup']>
    readonly prefetchComponents: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/preload')['prefetchComponents']>
    readonly preloadComponents: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/preload')['preloadComponents']>
    readonly preloadPayload: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/payload')['preloadPayload']>
    readonly preloadRouteComponents: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/preload')['preloadRouteComponents']>
    readonly prerenderRoutes: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/ssr')['prerenderRoutes']>
    readonly provide: UnwrapRef<typeof import('vue')['provide']>
    readonly proxyRefs: UnwrapRef<typeof import('vue')['proxyRefs']>
    readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
    readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
    readonly ref: UnwrapRef<typeof import('vue')['ref']>
    readonly refreshCookie: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/cookie')['refreshCookie']>
    readonly refreshNuxtData: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/asyncData')['refreshNuxtData']>
    readonly reloadNuxtApp: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/chunk')['reloadNuxtApp']>
    readonly requestIdleCallback: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/compat/idle-callback')['requestIdleCallback']>
    readonly resolveComponent: UnwrapRef<typeof import('vue')['resolveComponent']>
    readonly setInterval: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/compat/interval')['setInterval']>
    readonly setPageLayout: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/router')['setPageLayout']>
    readonly setResponseStatus: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/ssr')['setResponseStatus']>
    readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>
    readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>
    readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
    readonly showError: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/error')['showError']>
    readonly toRaw: UnwrapRef<typeof import('vue')['toRaw']>
    readonly toRef: UnwrapRef<typeof import('vue')['toRef']>
    readonly toRefs: UnwrapRef<typeof import('vue')['toRefs']>
    readonly toValue: UnwrapRef<typeof import('vue')['toValue']>
    readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']>
    readonly tryUseNuxtApp: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/nuxt')['tryUseNuxtApp']>
    readonly unref: UnwrapRef<typeof import('vue')['unref']>
    readonly updateAppConfig: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/config')['updateAppConfig']>
    readonly useAppConfig: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/config')['useAppConfig']>
    readonly useAsyncData: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/asyncData')['useAsyncData']>
    readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>
    readonly useAuth: UnwrapRef<typeof import('../../composables/useAuth')['useAuth']>
    readonly useCookie: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/cookie')['useCookie']>
    readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>
    readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>
    readonly useError: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/error')['useError']>
    readonly useFetch: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/fetch')['useFetch']>
    readonly useHead: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/head')['useHead']>
    readonly useHeadSafe: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/head')['useHeadSafe']>
    readonly useHydration: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/hydrate')['useHydration']>
    readonly useId: UnwrapRef<typeof import('vue')['useId']>
    readonly useLazyAsyncData: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/asyncData')['useLazyAsyncData']>
    readonly useLazyFetch: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/fetch')['useLazyFetch']>
    readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']>
    readonly useLoadingIndicator: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/loading-indicator')['useLoadingIndicator']>
    readonly useModel: UnwrapRef<typeof import('vue')['useModel']>
    readonly useNuxtApp: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/nuxt')['useNuxtApp']>
    readonly useNuxtData: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/asyncData')['useNuxtData']>
    readonly usePreviewMode: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/preview')['usePreviewMode']>
    readonly useRequestEvent: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/ssr')['useRequestEvent']>
    readonly useRequestFetch: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/ssr')['useRequestFetch']>
    readonly useRequestHeader: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/ssr')['useRequestHeader']>
    readonly useRequestHeaders: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/ssr')['useRequestHeaders']>
    readonly useRequestURL: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/url')['useRequestURL']>
    readonly useResponseHeader: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/ssr')['useResponseHeader']>
    readonly useRoute: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/router')['useRoute']>
    readonly useRouteAnnouncer: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/route-announcer')['useRouteAnnouncer']>
    readonly useRouter: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/router')['useRouter']>
    readonly useRuntimeConfig: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/nuxt')['useRuntimeConfig']>
    readonly useRuntimeHook: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/runtime-hook')['useRuntimeHook']>
    readonly useScript: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScript']>
    readonly useScriptClarity: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptClarity']>
    readonly useScriptCloudflareWebAnalytics: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptCloudflareWebAnalytics']>
    readonly useScriptCrisp: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptCrisp']>
    readonly useScriptDatabuddyAnalytics: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptDatabuddyAnalytics']>
    readonly useScriptEventPage: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptEventPage']>
    readonly useScriptFathomAnalytics: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptFathomAnalytics']>
    readonly useScriptGoogleAdsense: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptGoogleAdsense']>
    readonly useScriptGoogleAnalytics: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptGoogleAnalytics']>
    readonly useScriptGoogleMaps: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptGoogleMaps']>
    readonly useScriptGoogleTagManager: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptGoogleTagManager']>
    readonly useScriptHotjar: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptHotjar']>
    readonly useScriptIntercom: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptIntercom']>
    readonly useScriptLemonSqueezy: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptLemonSqueezy']>
    readonly useScriptMatomoAnalytics: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptMatomoAnalytics']>
    readonly useScriptMetaPixel: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptMetaPixel']>
    readonly useScriptNpm: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptNpm']>
    readonly useScriptPayPal: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptPayPal']>
    readonly useScriptPlausibleAnalytics: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptPlausibleAnalytics']>
    readonly useScriptRedditPixel: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptRedditPixel']>
    readonly useScriptRybbitAnalytics: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptRybbitAnalytics']>
    readonly useScriptSegment: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptSegment']>
    readonly useScriptSnapchatPixel: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptSnapchatPixel']>
    readonly useScriptStripe: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptStripe']>
    readonly useScriptTriggerConsent: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptTriggerConsent']>
    readonly useScriptTriggerElement: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptTriggerElement']>
    readonly useScriptUmamiAnalytics: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptUmamiAnalytics']>
    readonly useScriptVimeoPlayer: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptVimeoPlayer']>
    readonly useScriptXPixel: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptXPixel']>
    readonly useScriptYouTubePlayer: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptYouTubePlayer']>
    readonly useSeoMeta: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/head')['useSeoMeta']>
    readonly useServerHead: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/head')['useServerHead']>
    readonly useServerHeadSafe: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/head')['useServerHeadSafe']>
    readonly useServerSeoMeta: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/head')['useServerSeoMeta']>
    readonly useShadowRoot: UnwrapRef<typeof import('vue')['useShadowRoot']>
    readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>
    readonly useState: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/composables/state')['useState']>
    readonly useTemplateRef: UnwrapRef<typeof import('vue')['useTemplateRef']>
    readonly useTransitionState: UnwrapRef<typeof import('vue')['useTransitionState']>
    readonly watch: UnwrapRef<typeof import('vue')['watch']>
    readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
    readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>
    readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
    readonly withCtx: UnwrapRef<typeof import('vue')['withCtx']>
    readonly withDirectives: UnwrapRef<typeof import('vue')['withDirectives']>
    readonly withKeys: UnwrapRef<typeof import('vue')['withKeys']>
    readonly withMemo: UnwrapRef<typeof import('vue')['withMemo']>
    readonly withModifiers: UnwrapRef<typeof import('vue')['withModifiers']>
    readonly withScopeId: UnwrapRef<typeof import('vue')['withScopeId']>
  }
}
```

---

## .nuxt/types/layouts.d.ts

```ts
import type { ComputedRef, MaybeRef } from 'vue'
declare module 'nuxt/app' {
  interface NuxtLayouts {
}
  export type LayoutKey = keyof NuxtLayouts extends never ? string : keyof NuxtLayouts
  interface PageMeta {
    layout?: MaybeRef<LayoutKey | false> | ComputedRef<LayoutKey | false>
  }
}
```

---

## .nuxt/types/middleware.d.ts

```ts
import type { NavigationGuard } from 'vue-router'
export type MiddlewareKey = never
declare module 'nuxt/app' {
  interface PageMeta {
    middleware?: MiddlewareKey | NavigationGuard | Array<MiddlewareKey | NavigationGuard>
  }
}
```

---

## .nuxt/types/nitro-config.d.ts

```ts
// Generated by nitro

// App Config
import type { Defu } from 'defu'



type UserAppConfig = Defu<{}, []>

declare module "nitropack/types" {
  interface AppConfig extends UserAppConfig {}

}
export {}
```

---

## .nuxt/types/nitro-imports.d.ts

```ts
declare global {
  const H3Error: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').H3Error
  const H3Event: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').H3Event
  const __buildAssetsURL: typeof import('../../node_modules/.pnpm/@nuxt+nitro-server@3.21.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@_b2c4b6af65a3b405b9ab78da468773bd/node_modules/@nuxt/nitro-server/dist/runtime/utils/paths').buildAssetsURL
  const __publicAssetsURL: typeof import('../../node_modules/.pnpm/@nuxt+nitro-server@3.21.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@_b2c4b6af65a3b405b9ab78da468773bd/node_modules/@nuxt/nitro-server/dist/runtime/utils/paths').publicAssetsURL
  const appendCorsHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').appendCorsHeaders
  const appendCorsPreflightHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').appendCorsPreflightHeaders
  const appendHeader: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').appendHeader
  const appendHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').appendHeaders
  const appendResponseHeader: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').appendResponseHeader
  const appendResponseHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').appendResponseHeaders
  const assertMethod: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').assertMethod
  const cachedEventHandler: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/cache').cachedEventHandler
  const cachedFunction: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/cache').cachedFunction
  const callNodeListener: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').callNodeListener
  const clearResponseHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').clearResponseHeaders
  const clearSession: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').clearSession
  const createApp: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').createApp
  const createAppEventHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').createAppEventHandler
  const createError: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').createError
  const createEvent: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').createEvent
  const createEventStream: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').createEventStream
  const createRouter: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').createRouter
  const defaultContentType: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').defaultContentType
  const defineAppConfig: typeof import('../../node_modules/.pnpm/@nuxt+nitro-server@3.21.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@_b2c4b6af65a3b405b9ab78da468773bd/node_modules/@nuxt/nitro-server/dist/runtime/utils/config').defineAppConfig
  const defineCachedEventHandler: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/cache').defineCachedEventHandler
  const defineCachedFunction: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/cache').defineCachedFunction
  const defineEventHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').defineEventHandler
  const defineLazyEventHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').defineLazyEventHandler
  const defineNitroErrorHandler: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/error/utils').defineNitroErrorHandler
  const defineNitroPlugin: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/plugin').defineNitroPlugin
  const defineNodeListener: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').defineNodeListener
  const defineNodeMiddleware: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').defineNodeMiddleware
  const defineRenderHandler: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/renderer').defineRenderHandler
  const defineRequestMiddleware: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').defineRequestMiddleware
  const defineResponseMiddleware: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').defineResponseMiddleware
  const defineRouteMeta: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/meta').defineRouteMeta
  const defineTask: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/task').defineTask
  const defineWebSocket: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').defineWebSocket
  const defineWebSocketHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').defineWebSocketHandler
  const deleteCookie: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').deleteCookie
  const dynamicEventHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').dynamicEventHandler
  const eventHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').eventHandler
  const fetchWithEvent: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').fetchWithEvent
  const fromNodeMiddleware: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').fromNodeMiddleware
  const fromPlainHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').fromPlainHandler
  const fromWebHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').fromWebHandler
  const getCookie: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getCookie
  const getHeader: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getHeader
  const getHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getHeaders
  const getMethod: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getMethod
  const getOrCreateUser: typeof import('../../server/utils/users').getOrCreateUser
  const getProxyRequestHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getProxyRequestHeaders
  const getQuery: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getQuery
  const getRequestFingerprint: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRequestFingerprint
  const getRequestHeader: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRequestHeader
  const getRequestHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRequestHeaders
  const getRequestHost: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRequestHost
  const getRequestIP: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRequestIP
  const getRequestPath: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRequestPath
  const getRequestProtocol: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRequestProtocol
  const getRequestURL: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRequestURL
  const getRequestWebStream: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRequestWebStream
  const getResponseHeader: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getResponseHeader
  const getResponseHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getResponseHeaders
  const getResponseStatus: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getResponseStatus
  const getResponseStatusText: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getResponseStatusText
  const getRouteRules: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/route-rules').getRouteRules
  const getRouterParam: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRouterParam
  const getRouterParams: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRouterParams
  const getSession: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getSession
  const getValidatedQuery: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getValidatedQuery
  const getValidatedRouterParams: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getValidatedRouterParams
  const handleCacheHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').handleCacheHeaders
  const handleCors: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').handleCors
  const incrementBurritoConsiderations: typeof import('../../server/utils/users').incrementBurritoConsiderations
  const isCorsOriginAllowed: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').isCorsOriginAllowed
  const isError: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').isError
  const isEvent: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').isEvent
  const isEventHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').isEventHandler
  const isMethod: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').isMethod
  const isPreflightRequest: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').isPreflightRequest
  const isStream: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').isStream
  const isWebResponse: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').isWebResponse
  const lazyEventHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').lazyEventHandler
  const nitroPlugin: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/plugin').nitroPlugin
  const parseCookies: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').parseCookies
  const promisifyNodeListener: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').promisifyNodeListener
  const proxyRequest: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').proxyRequest
  const readBody: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').readBody
  const readFormData: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').readFormData
  const readMultipartFormData: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').readMultipartFormData
  const readRawBody: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').readRawBody
  const readValidatedBody: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').readValidatedBody
  const removeResponseHeader: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').removeResponseHeader
  const runTask: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/task').runTask
  const sanitizeStatusCode: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sanitizeStatusCode
  const sanitizeStatusMessage: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sanitizeStatusMessage
  const sealSession: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sealSession
  const send: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').send
  const sendError: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sendError
  const sendIterable: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sendIterable
  const sendNoContent: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sendNoContent
  const sendProxy: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sendProxy
  const sendRedirect: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sendRedirect
  const sendStream: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sendStream
  const sendWebResponse: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sendWebResponse
  const serveStatic: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').serveStatic
  const setCookie: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').setCookie
  const setHeader: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').setHeader
  const setHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').setHeaders
  const setResponseHeader: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').setResponseHeader
  const setResponseHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').setResponseHeaders
  const setResponseStatus: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').setResponseStatus
  const splitCookiesString: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').splitCookiesString
  const toEventHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').toEventHandler
  const toNodeListener: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').toNodeListener
  const toPlainHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').toPlainHandler
  const toWebHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').toWebHandler
  const toWebRequest: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').toWebRequest
  const unsealSession: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').unsealSession
  const updateSession: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').updateSession
  const useAppConfig: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/config').useAppConfig
  const useBase: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').useBase
  const useEvent: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/context').useEvent
  const useNitroApp: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/app').useNitroApp
  const useRuntimeConfig: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/config').useRuntimeConfig
  const useSession: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').useSession
  const useStorage: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/storage').useStorage
  const users: typeof import('../../server/utils/users').users
  const writeEarlyHints: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').writeEarlyHints
}
// for type re-export
declare global {
  // @ts-ignore
  export type { EventHandler, EventHandlerRequest, EventHandlerResponse, EventHandlerObject, H3EventContext } from '../../node_modules/.pnpm/h3@1.15.5/node_modules/h3'
  import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3')
}
export { H3Event, H3Error, appendCorsHeaders, appendCorsPreflightHeaders, appendHeader, appendHeaders, appendResponseHeader, appendResponseHeaders, assertMethod, callNodeListener, clearResponseHeaders, clearSession, createApp, createAppEventHandler, createError, createEvent, createEventStream, createRouter, defaultContentType, defineEventHandler, defineLazyEventHandler, defineNodeListener, defineNodeMiddleware, defineRequestMiddleware, defineResponseMiddleware, defineWebSocket, defineWebSocketHandler, deleteCookie, dynamicEventHandler, eventHandler, fetchWithEvent, fromNodeMiddleware, fromPlainHandler, fromWebHandler, getCookie, getHeader, getHeaders, getMethod, getProxyRequestHeaders, getQuery, getRequestFingerprint, getRequestHeader, getRequestHeaders, getRequestHost, getRequestIP, getRequestPath, getRequestProtocol, getRequestURL, getRequestWebStream, getResponseHeader, getResponseHeaders, getResponseStatus, getResponseStatusText, getRouterParam, getRouterParams, getSession, getValidatedQuery, getValidatedRouterParams, handleCacheHeaders, handleCors, isCorsOriginAllowed, isError, isEvent, isEventHandler, isMethod, isPreflightRequest, isStream, isWebResponse, lazyEventHandler, parseCookies, promisifyNodeListener, proxyRequest, readBody, readFormData, readMultipartFormData, readRawBody, readValidatedBody, removeResponseHeader, sanitizeStatusCode, sanitizeStatusMessage, sealSession, send, sendError, sendIterable, sendNoContent, sendProxy, sendRedirect, sendStream, sendWebResponse, serveStatic, setCookie, setHeader, setHeaders, setResponseHeader, setResponseHeaders, setResponseStatus, splitCookiesString, toEventHandler, toNodeListener, toPlainHandler, toWebHandler, toWebRequest, unsealSession, updateSession, useBase, useSession, writeEarlyHints } from 'h3';
export { useNitroApp } from 'nitropack/runtime/internal/app';
export { useRuntimeConfig, useAppConfig } from 'nitropack/runtime/internal/config';
export { defineNitroPlugin, nitroPlugin } from 'nitropack/runtime/internal/plugin';
export { defineCachedFunction, defineCachedEventHandler, cachedFunction, cachedEventHandler } from 'nitropack/runtime/internal/cache';
export { useStorage } from 'nitropack/runtime/internal/storage';
export { defineRenderHandler } from 'nitropack/runtime/internal/renderer';
export { defineRouteMeta } from 'nitropack/runtime/internal/meta';
export { getRouteRules } from 'nitropack/runtime/internal/route-rules';
export { useEvent } from 'nitropack/runtime/internal/context';
export { defineTask, runTask } from 'nitropack/runtime/internal/task';
export { defineNitroErrorHandler } from 'nitropack/runtime/internal/error/utils';
export { buildAssetsURL as __buildAssetsURL, publicAssetsURL as __publicAssetsURL } from '/Users/kaia/code/amp/context-hub/basics/nuxt-3.6/node_modules/.pnpm/@nuxt+nitro-server@3.21.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@_b2c4b6af65a3b405b9ab78da468773bd/node_modules/@nuxt/nitro-server/dist/runtime/utils/paths';
export { defineAppConfig } from '/Users/kaia/code/amp/context-hub/basics/nuxt-3.6/node_modules/.pnpm/@nuxt+nitro-server@3.21.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@_b2c4b6af65a3b405b9ab78da468773bd/node_modules/@nuxt/nitro-server/dist/runtime/utils/config';
export { users, getOrCreateUser, incrementBurritoConsiderations } from '/Users/kaia/code/amp/context-hub/basics/nuxt-3.6/server/utils/users';
```

---

## .nuxt/types/nitro-layouts.d.ts

```ts
export type LayoutKey = string
declare module 'nitropack' {
  interface NitroRouteConfig {
    appLayout?: LayoutKey | false
  }
  interface NitroRouteRules {
    appLayout?: LayoutKey | false
  }
}
declare module 'nitropack/types' {
  interface NitroRouteConfig {
    appLayout?: LayoutKey | false
  }
  interface NitroRouteRules {
    appLayout?: LayoutKey | false
  }
}
```

---

## .nuxt/types/nitro-middleware.d.ts

```ts
export type MiddlewareKey = never
declare module 'nitropack' {
  interface NitroRouteConfig {
    appMiddleware?: MiddlewareKey | MiddlewareKey[] | Record<MiddlewareKey, boolean>
  }
  interface NitroRouteRules {
    appMiddleware?: MiddlewareKey | MiddlewareKey[] | Record<MiddlewareKey, boolean>
  }
}
declare module 'nitropack/types' {
  interface NitroRouteConfig {
    appMiddleware?: MiddlewareKey | MiddlewareKey[] | Record<MiddlewareKey, boolean>
  }
  interface NitroRouteRules {
    appMiddleware?: MiddlewareKey | MiddlewareKey[] | Record<MiddlewareKey, boolean>
  }
}
```

---

## .nuxt/types/nitro-nuxt.d.ts

```ts

/// <reference path="nitro-layouts.d.ts" />
/// <reference path="app.config.d.ts" />
/// <reference path="runtime-config.d.ts" />
/// <reference types="/Users/kaia/code/amp/context-hub/basics/nuxt-3.6/node_modules/.pnpm/@nuxt+nitro-server@3.21.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@_b2c4b6af65a3b405b9ab78da468773bd/node_modules/@nuxt/nitro-server/dist/index.mjs" />
/// <reference path="nitro-middleware.d.ts" />
/// <reference path="./schema.d.ts" />

import type { RuntimeConfig } from 'nuxt/schema'
import type { H3Event } from 'h3'
import type { LogObject } from 'consola'
import type { NuxtIslandContext, NuxtIslandResponse, NuxtRenderHTMLContext } from 'nuxt/app'

declare module 'nitropack' {
  interface NitroRuntimeConfigApp {
    buildAssetsDir: string
    cdnURL: string
  }
  interface NitroRuntimeConfig extends RuntimeConfig {}
  interface NitroRouteConfig {
    ssr?: boolean
    noScripts?: boolean
    /** @deprecated Use `noScripts` instead */
    experimentalNoScripts?: boolean
  }
  interface NitroRouteRules {
    ssr?: boolean
    noScripts?: boolean
    /** @deprecated Use `noScripts` instead */
    experimentalNoScripts?: boolean
    appMiddleware?: Record<string, boolean>
    appLayout?: string | false
  }
  interface NitroRuntimeHooks {
    'dev:ssr-logs': (ctx: { logs: LogObject[], path: string }) => void | Promise<void>
    'render:html': (htmlContext: NuxtRenderHTMLContext, context: { event: H3Event }) => void | Promise<void>
    'render:island': (islandResponse: NuxtIslandResponse, context: { event: H3Event, islandContext: NuxtIslandContext }) => void | Promise<void>
  }
}

```

---

## .nuxt/types/nitro-routes.d.ts

```ts
// Generated by nitro
import type { Serialize, Simplify } from "nitropack/types";
declare module "nitropack/types" {
  type Awaited<T> = T extends PromiseLike<infer U> ? Awaited<U> : T
  interface InternalApi {
    '/api/auth/login': {
      'post': Simplify<Serialize<Awaited<ReturnType<typeof import('../../server/api/auth/login.post').default>>>>
    }
    '/api/burrito/consider': {
      'post': Simplify<Serialize<Awaited<ReturnType<typeof import('../../server/api/burrito/consider.post').default>>>>
    }
    '/__nuxt_error': {
      'default': Simplify<Serialize<Awaited<ReturnType<typeof import('../../node_modules/.pnpm/@nuxt+nitro-server@3.21.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@_b2c4b6af65a3b405b9ab78da468773bd/node_modules/@nuxt/nitro-server/dist/runtime/handlers/renderer').default>>>>
    }
    '/__nuxt_island/**': {
      'default': Simplify<Serialize<Awaited<ReturnType<typeof import('../../server/#internal/nuxt/island-renderer').default>>>>
    }
  }
}
export {}
```

---

## .nuxt/types/nitro.d.ts

```ts
/// <reference path="./nitro-routes.d.ts" />
/// <reference path="./nitro-config.d.ts" />
/// <reference path="./nitro-imports.d.ts" />
```

---

## .nuxt/types/plugins.d.ts

```ts
// Generated by Nuxt'
import type { Plugin } from '#app'

type Decorate<T extends Record<string, any>> = { [K in keyof T as K extends string ? `$${K}` : never]: T[K] }

type InjectionType<A extends Plugin> = A extends {default: Plugin<infer T>} ? Decorate<T> : unknown

type NuxtAppInjections = 
  InjectionType<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/plugins/revive-payload.client.js")> &
  InjectionType<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/head/runtime/plugins/unhead.js")> &
  InjectionType<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/pages/runtime/plugins/router.js")> &
  InjectionType<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/plugins/payload.client.js")> &
  InjectionType<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/plugins/navigation-repaint.client.js")> &
  InjectionType<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/plugins/check-outdated-build.client.js")> &
  InjectionType<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/plugins/revive-payload.server.js")> &
  InjectionType<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/plugins/chunk-reload.client.js")> &
  InjectionType<typeof import("../../node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/pages/runtime/plugins/prefetch.client.js")> &
  InjectionType<typeof import("../../plugins/amplitude.client")>

declare module '#app' {
  interface NuxtApp extends NuxtAppInjections { }

  interface NuxtAppLiterals {
    pluginName: 'nuxt:revive-payload:client' | 'nuxt:head' | 'nuxt:router' | 'nuxt:payload' | 'nuxt:revive-payload:server' | 'nuxt:chunk-reload' | 'nuxt:global-components' | 'nuxt:prefetch'
  }
}

declare module 'vue' {
  interface ComponentCustomProperties extends NuxtAppInjections { }
}

export { }

```

---

## .nuxt/types/schema.d.ts

```ts
import { RuntimeConfig as UserRuntimeConfig, PublicRuntimeConfig as UserPublicRuntimeConfig } from 'nuxt/schema'
import { NuxtModule, ModuleDependencyMeta } from '@nuxt/schema'
  interface SharedRuntimeConfig {
   app: {
      buildId: string,

      baseURL: string,

      buildAssetsDir: string,

      cdnURL: string,
   },

   nitro: {
      envPrefix: string,
   },
  }
  interface SharedPublicRuntimeConfig {
   amplitudeApiKey: string,
  }
declare module '@nuxt/schema' {
  interface ModuleDependencies {
    ["@nuxt/devtools"]?: ModuleDependencyMeta<typeof import("@nuxt/devtools").default extends NuxtModule<infer O> ? O | false : Record<string, unknown>> | false
    ["@nuxt/telemetry"]?: ModuleDependencyMeta<typeof import("@nuxt/telemetry").default extends NuxtModule<infer O> ? O | false : Record<string, unknown>> | false
  }
  interface NuxtOptions {
    /**
     * Configuration for `@nuxt/devtools`
     */
    ["devtools"]: typeof import("@nuxt/devtools").default extends NuxtModule<infer O, unknown, boolean> ? O | false : Record<string, any> | false
    /**
     * Configuration for `@nuxt/telemetry`
     */
    ["telemetry"]: typeof import("@nuxt/telemetry").default extends NuxtModule<infer O, unknown, boolean> ? O | false : Record<string, any> | false
  }
  interface NuxtConfig {
    /**
     * Configuration for `@nuxt/devtools`
     */
    ["devtools"]?: typeof import("@nuxt/devtools").default extends NuxtModule<infer O, unknown, boolean> ? Partial<O> | false : Record<string, any> | false
    /**
     * Configuration for `@nuxt/telemetry`
     */
    ["telemetry"]?: typeof import("@nuxt/telemetry").default extends NuxtModule<infer O, unknown, boolean> ? Partial<O> | false : Record<string, any> | false
    modules?: (undefined | null | false | NuxtModule<any> | string | [NuxtModule | string, Record<string, any>] | ["@nuxt/devtools", Exclude<NuxtConfig["devtools"], boolean>] | ["@nuxt/telemetry", Exclude<NuxtConfig["telemetry"], boolean>])[],
  }
  interface RuntimeConfig extends UserRuntimeConfig {}
  interface PublicRuntimeConfig extends UserPublicRuntimeConfig {}
}
declare module 'nuxt/schema' {
  interface ModuleDependencies {
    ["@nuxt/devtools"]?: ModuleDependencyMeta<typeof import("@nuxt/devtools").default extends NuxtModule<infer O> ? O | false : Record<string, unknown>> | false
    ["@nuxt/telemetry"]?: ModuleDependencyMeta<typeof import("@nuxt/telemetry").default extends NuxtModule<infer O> ? O | false : Record<string, unknown>> | false
  }
  interface NuxtOptions {
    /**
     * Configuration for `@nuxt/devtools`
     * @see https://www.npmjs.com/package/@nuxt/devtools
     */
    ["devtools"]: typeof import("@nuxt/devtools").default extends NuxtModule<infer O, unknown, boolean> ? O | false : Record<string, any> | false
    /**
     * Configuration for `@nuxt/telemetry`
     * @see https://www.npmjs.com/package/@nuxt/telemetry
     */
    ["telemetry"]: typeof import("@nuxt/telemetry").default extends NuxtModule<infer O, unknown, boolean> ? O | false : Record<string, any> | false
  }
  interface NuxtConfig {
    /**
     * Configuration for `@nuxt/devtools`
     * @see https://www.npmjs.com/package/@nuxt/devtools
     */
    ["devtools"]?: typeof import("@nuxt/devtools").default extends NuxtModule<infer O, unknown, boolean> ? Partial<O> | false : Record<string, any> | false
    /**
     * Configuration for `@nuxt/telemetry`
     * @see https://www.npmjs.com/package/@nuxt/telemetry
     */
    ["telemetry"]?: typeof import("@nuxt/telemetry").default extends NuxtModule<infer O, unknown, boolean> ? Partial<O> | false : Record<string, any> | false
    modules?: (undefined | null | false | NuxtModule<any> | string | [NuxtModule | string, Record<string, any>] | ["@nuxt/devtools", Exclude<NuxtConfig["devtools"], boolean>] | ["@nuxt/telemetry", Exclude<NuxtConfig["telemetry"], boolean>])[],
  }
  interface RuntimeConfig extends SharedRuntimeConfig {}
  interface PublicRuntimeConfig extends SharedPublicRuntimeConfig {}
}
declare module 'vue' {
        interface ComponentCustomProperties {
          $config: UserRuntimeConfig
        }
      }
```

---

## .output/public/_nuxt/B77IIWzB.js

```js
import{f as x,g as c,h as U,o as a,c as l,i as o,F as f,a as s,t as v,j as y,v as g,k as w,l as V,m as B,n as C,r as d,I}from"./BMw6m4EL.js";const N={class:"container"},S={class:"form-group"},j={class:"form-group"},A={key:0,class:"error"},P=x({__name:"index",setup(E){const p=c(),m=C(()=>p.user.value),n=d(""),t=d(""),r=d(""),{$amplitude:u}=U(),b=async()=>{if(r.value="",await p.login(n.value,t.value)){u.setUserId(n.value);const e=new I;e.set("username",n.value),u.identify(e),u.track("user_logged_in",{username:n.value}),n.value="",t.value=""}else r.value="Please provide both username and password"};return(k,e)=>(a(),l("div",N,[o(m)?(a(),l(f,{key:0},[s("h1",null,"Welcome back, "+v(o(m).username)+"!",1),e[2]||(e[2]=s("p",null,"You are now logged in. Feel free to explore:",-1)),e[3]||(e[3]=s("ul",null,[s("li",null,"Consider the potential of burritos"),s("li",null,"View your profile and statistics")],-1))],64)):(a(),l(f,{key:1},[e[7]||(e[7]=s("h1",null,"Welcome to Burrito Consideration App",-1)),e[8]||(e[8]=s("p",null,"Please sign in to begin your burrito journey",-1)),s("form",{onSubmit:B(b,["prevent"]),class:"form"},[s("div",S,[e[4]||(e[4]=s("label",{for:"username"},"Username:",-1)),y(s("input",{type:"text",id:"username","onUpdate:modelValue":e[0]||(e[0]=i=>w(n)?n.value=i:null),placeholder:"Enter any username"},null,512),[[g,o(n)]])]),s("div",j,[e[5]||(e[5]=s("label",{for:"password"},"Password:",-1)),y(s("input",{type:"password",id:"password","onUpdate:modelValue":e[1]||(e[1]=i=>w(t)?t.value=i:null),placeholder:"Enter any password"},null,512),[[g,o(t)]])]),o(r)?(a(),l("p",A,v(o(r)),1)):V("",!0),e[6]||(e[6]=s("button",{type:"submit",class:"btn-primary"},"Sign In",-1))],32),e[9]||(e[9]=s("p",{class:"note"}," Note: This is a demo app. Use any username and password to sign in. ",-1))],64))]))}});export{P as default};

```

---

## .output/public/_nuxt/BMw6m4EL.js

```js
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./MzFTpsyS.js","./error-404.Cz778Gtt.css","./z593H3Qg.js","./error-500.D1XFhX37.css"])))=>i.map(i=>d[i]);
function sy(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();function il(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const xe={},Rn=[],Jt=()=>{},Rh=()=>!1,Ji=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ol=e=>e.startsWith("onUpdate:"),Je=Object.assign,sl=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},ay=Object.prototype.hasOwnProperty,Ie=(e,t)=>ay.call(e,t),ve=Array.isArray,On=e=>Qi(e)==="[object Map]",Oh=e=>Qi(e)==="[object Set]",uy=e=>Qi(e)==="[object RegExp]",he=e=>typeof e=="function",Be=e=>typeof e=="string",Hr=e=>typeof e=="symbol",Ue=e=>e!==null&&typeof e=="object",al=e=>(Ue(e)||he(e))&&he(e.then)&&he(e.catch),xh=Object.prototype.toString,Qi=e=>xh.call(e),ly=e=>Qi(e).slice(8,-1),Nh=e=>Qi(e)==="[object Object]",Ts=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,tn=il(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),As=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},cy=/-\w/g,Mt=As(e=>e.replace(cy,t=>t.slice(1).toUpperCase())),fy=/\B([A-Z])/g,dn=As(e=>e.replace(fy,"-$1").toLowerCase()),Cs=As(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ys=As(e=>e?`on${Cs(e)}`:""),Dr=(e,t)=>!Object.is(e,t),xn=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},Lh=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},ul=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Mh=e=>{const t=Be(e)?Number(e):NaN;return isNaN(t)?e:t};let ac;const Is=()=>ac||(ac=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ks(e){if(ve(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=Be(n)?py(n):ks(n);if(i)for(const o in i)t[o]=i[o]}return t}else if(Be(e)||Ue(e))return e}const dy=/;(?![^(]*\))/g,hy=/:([^]+)/,vy=/\/\*[^]*?\*\//g;function py(e){const t={};return e.replace(vy,"").split(dy).forEach(r=>{if(r){const n=r.split(hy);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ps(e){let t="";if(Be(e))t=e;else if(ve(e))for(let r=0;r<e.length;r++){const n=Ps(e[r]);n&&(t+=n+" ")}else if(Ue(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function gy(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Be(t)&&(e.class=Ps(t)),r&&(e.style=ks(r)),e}const my="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",yy=il(my);function Dh(e){return!!e||e===""}const Uh=e=>!!(e&&e.__v_isRef===!0),Fh=e=>Be(e)?e:e==null?"":ve(e)||Ue(e)&&(e.toString===xh||!he(e.toString))?Uh(e)?Fh(e.value):JSON.stringify(e,Hh,2):String(e),Hh=(e,t)=>Uh(t)?Hh(e,t.value):On(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],o)=>(r[Js(n,o)+" =>"]=i,r),{})}:Oh(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Js(r))}:Hr(t)?Js(t):Ue(t)&&!ve(t)&&!Nh(t)?String(t):t,Js=(e,t="")=>{var r;return Hr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};let st;class Bh{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=st,!t&&st&&(this.index=(st.scopes||(st.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=st;try{return st=this,t()}finally{st=r}}}on(){++this._on===1&&(this.prevScope=st,st=this)}off(){this._on>0&&--this._on===0&&(st=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function by(e){return new Bh(e)}function ll(){return st}function Ey(e,t=!1){st&&st.cleanups.push(e)}let Le;const Qs=new WeakSet;class jh{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,st&&st.active&&st.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Qs.has(this)&&(Qs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Vh(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,uc(this),$h(this);const t=Le,r=jt;Le=this,jt=!0;try{return this.fn()}finally{Wh(this),Le=t,jt=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)dl(t);this.deps=this.depsTail=void 0,uc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Qs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ka(this)&&this.run()}get dirty(){return Ka(this)}}let qh=0,wi,Ti;function Vh(e,t=!1){if(e.flags|=8,t){e.next=Ti,Ti=e;return}e.next=wi,wi=e}function cl(){qh++}function fl(){if(--qh>0)return;if(Ti){let t=Ti;for(Ti=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;wi;){let t=wi;for(wi=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function $h(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Wh(e){let t,r=e.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),dl(n),_y(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=r}function Ka(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Gh(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Gh(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Bi)||(e.globalVersion=Bi,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ka(e))))return;e.flags|=2;const t=e.dep,r=Le,n=jt;Le=e,jt=!0;try{$h(e);const i=e.fn(e._value);(t.version===0||Dr(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Le=r,jt=n,Wh(e),e.flags&=-3}}function dl(e,t=!1){const{dep:r,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let o=r.computed.deps;o;o=o.nextDep)dl(o,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function _y(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let jt=!0;const Kh=[];function pr(){Kh.push(jt),jt=!1}function gr(){const e=Kh.pop();jt=e===void 0?!0:e}function uc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Le;Le=void 0;try{t()}finally{Le=r}}}let Bi=0;class Sy{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hl{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Le||!jt||Le===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Le)r=this.activeLink=new Sy(Le,this),Le.deps?(r.prevDep=Le.depsTail,Le.depsTail.nextDep=r,Le.depsTail=r):Le.deps=Le.depsTail=r,zh(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=Le.depsTail,r.nextDep=void 0,Le.depsTail.nextDep=r,Le.depsTail=r,Le.deps===r&&(Le.deps=n)}return r}trigger(t){this.version++,Bi++,this.notify(t)}notify(t){cl();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{fl()}}}function zh(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)zh(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const ts=new WeakMap,rn=Symbol(""),za=Symbol(""),ji=Symbol("");function ut(e,t,r){if(jt&&Le){let n=ts.get(e);n||ts.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new hl),i.map=n,i.key=r),i.track()}}function fr(e,t,r,n,i,o){const s=ts.get(e);if(!s){Bi++;return}const a=u=>{u&&u.trigger()};if(cl(),t==="clear")s.forEach(a);else{const u=ve(e),c=u&&Ts(r);if(u&&r==="length"){const l=Number(n);s.forEach((f,d)=>{(d==="length"||d===ji||!Hr(d)&&d>=l)&&a(f)})}else switch((r!==void 0||s.has(void 0))&&a(s.get(r)),c&&a(s.get(ji)),t){case"add":u?c&&a(s.get("length")):(a(s.get(rn)),On(e)&&a(s.get(za)));break;case"delete":u||(a(s.get(rn)),On(e)&&a(s.get(za)));break;case"set":On(e)&&a(s.get(rn));break}}fl()}function wy(e,t){const r=ts.get(e);return r&&r.get(t)}function gn(e){const t=Ae(e);return t===e?t:(ut(t,"iterate",ji),Ot(e)?t:t.map(yr))}function vl(e){return ut(e=Ae(e),"iterate",ji),e}function Tr(e,t){return mr(e)?qi(nn(e)?yr(t):t):yr(t)}const Ty={__proto__:null,[Symbol.iterator](){return Zs(this,Symbol.iterator,e=>Tr(this,e))},concat(...e){return gn(this).concat(...e.map(t=>ve(t)?gn(t):t))},entries(){return Zs(this,"entries",e=>(e[1]=Tr(this,e[1]),e))},every(e,t){return nr(this,"every",e,t,void 0,arguments)},filter(e,t){return nr(this,"filter",e,t,r=>r.map(n=>Tr(this,n)),arguments)},find(e,t){return nr(this,"find",e,t,r=>Tr(this,r),arguments)},findIndex(e,t){return nr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return nr(this,"findLast",e,t,r=>Tr(this,r),arguments)},findLastIndex(e,t){return nr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return nr(this,"forEach",e,t,void 0,arguments)},includes(...e){return ea(this,"includes",e)},indexOf(...e){return ea(this,"indexOf",e)},join(e){return gn(this).join(e)},lastIndexOf(...e){return ea(this,"lastIndexOf",e)},map(e,t){return nr(this,"map",e,t,void 0,arguments)},pop(){return oi(this,"pop")},push(...e){return oi(this,"push",e)},reduce(e,...t){return lc(this,"reduce",e,t)},reduceRight(e,...t){return lc(this,"reduceRight",e,t)},shift(){return oi(this,"shift")},some(e,t){return nr(this,"some",e,t,void 0,arguments)},splice(...e){return oi(this,"splice",e)},toReversed(){return gn(this).toReversed()},toSorted(e){return gn(this).toSorted(e)},toSpliced(...e){return gn(this).toSpliced(...e)},unshift(...e){return oi(this,"unshift",e)},values(){return Zs(this,"values",e=>Tr(this,e))}};function Zs(e,t,r){const n=vl(e),i=n[t]();return n!==e&&!Ot(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=r(o.value)),o}),i}const Ay=Array.prototype;function nr(e,t,r,n,i,o){const s=vl(e),a=s!==e&&!Ot(e),u=s[t];if(u!==Ay[t]){const f=u.apply(e,o);return a?yr(f):f}let c=r;s!==e&&(a?c=function(f,d){return r.call(this,Tr(e,f),d,e)}:r.length>2&&(c=function(f,d){return r.call(this,f,d,e)}));const l=u.call(s,c,n);return a&&i?i(l):l}function lc(e,t,r,n){const i=vl(e);let o=r;return i!==e&&(Ot(e)?r.length>3&&(o=function(s,a,u){return r.call(this,s,a,u,e)}):o=function(s,a,u){return r.call(this,s,Tr(e,a),u,e)}),i[t](o,...n)}function ea(e,t,r){const n=Ae(e);ut(n,"iterate",ji);const i=n[t](...r);return(i===-1||i===!1)&&Rs(r[0])?(r[0]=Ae(r[0]),n[t](...r)):i}function oi(e,t,r=[]){pr(),cl();const n=Ae(e)[t].apply(e,r);return fl(),gr(),n}const Cy=il("__proto__,__v_isRef,__isVue"),Xh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Hr));function Iy(e){Hr(e)||(e=String(e));const t=Ae(this);return ut(t,"has",e),t.hasOwnProperty(e)}class Yh{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return o;if(r==="__v_raw")return n===(i?o?Uy:ev:o?Zh:Qh).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const s=ve(t);if(!i){let u;if(s&&(u=Ty[r]))return u;if(r==="hasOwnProperty")return Iy}const a=Reflect.get(t,r,Ve(t)?t:n);if((Hr(r)?Xh.has(r):Cy(r))||(i||ut(t,"get",r),o))return a;if(Ve(a)){const u=s&&Ts(r)?a:a.value;return i&&Ue(u)?Ya(u):u}return Ue(a)?i?Ya(a):Br(a):a}}class Jh extends Yh{constructor(t=!1){super(!1,t)}set(t,r,n,i){let o=t[r];const s=ve(t)&&Ts(r);if(!this._isShallow){const c=mr(o);if(!Ot(n)&&!mr(n)&&(o=Ae(o),n=Ae(n)),!s&&Ve(o)&&!Ve(n))return c||(o.value=n),!0}const a=s?Number(r)<t.length:Ie(t,r),u=Reflect.set(t,r,n,Ve(t)?t:i);return t===Ae(i)&&(a?Dr(n,o)&&fr(t,"set",r,n):fr(t,"add",r,n)),u}deleteProperty(t,r){const n=Ie(t,r);t[r];const i=Reflect.deleteProperty(t,r);return i&&n&&fr(t,"delete",r,void 0),i}has(t,r){const n=Reflect.has(t,r);return(!Hr(r)||!Xh.has(r))&&ut(t,"has",r),n}ownKeys(t){return ut(t,"iterate",ve(t)?"length":rn),Reflect.ownKeys(t)}}class ky extends Yh{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const Py=new Jh,Ry=new ky,Oy=new Jh(!0);const Xa=e=>e,ao=e=>Reflect.getPrototypeOf(e);function xy(e,t,r){return function(...n){const i=this.__v_raw,o=Ae(i),s=On(o),a=e==="entries"||e===Symbol.iterator&&s,u=e==="keys"&&s,c=i[e](...n),l=r?Xa:t?qi:yr;return!t&&ut(o,"iterate",u?za:rn),Je(Object.create(c),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[l(f[0]),l(f[1])]:l(f),done:d}}})}}function uo(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ny(e,t){const r={get(i){const o=this.__v_raw,s=Ae(o),a=Ae(i);e||(Dr(i,a)&&ut(s,"get",i),ut(s,"get",a));const{has:u}=ao(s),c=t?Xa:e?qi:yr;if(u.call(s,i))return c(o.get(i));if(u.call(s,a))return c(o.get(a));o!==s&&o.get(i)},get size(){const i=this.__v_raw;return!e&&ut(Ae(i),"iterate",rn),i.size},has(i){const o=this.__v_raw,s=Ae(o),a=Ae(i);return e||(Dr(i,a)&&ut(s,"has",i),ut(s,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const s=this,a=s.__v_raw,u=Ae(a),c=t?Xa:e?qi:yr;return!e&&ut(u,"iterate",rn),a.forEach((l,f)=>i.call(o,c(l),c(f),s))}};return Je(r,e?{add:uo("add"),set:uo("set"),delete:uo("delete"),clear:uo("clear")}:{add(i){!t&&!Ot(i)&&!mr(i)&&(i=Ae(i));const o=Ae(this);return ao(o).has.call(o,i)||(o.add(i),fr(o,"add",i,i)),this},set(i,o){!t&&!Ot(o)&&!mr(o)&&(o=Ae(o));const s=Ae(this),{has:a,get:u}=ao(s);let c=a.call(s,i);c||(i=Ae(i),c=a.call(s,i));const l=u.call(s,i);return s.set(i,o),c?Dr(o,l)&&fr(s,"set",i,o):fr(s,"add",i,o),this},delete(i){const o=Ae(this),{has:s,get:a}=ao(o);let u=s.call(o,i);u||(i=Ae(i),u=s.call(o,i)),a&&a.call(o,i);const c=o.delete(i);return u&&fr(o,"delete",i,void 0),c},clear(){const i=Ae(this),o=i.size!==0,s=i.clear();return o&&fr(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=xy(i,e,t)}),r}function pl(e,t){const r=Ny(e,t);return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Ie(r,i)&&i in n?r:n,i,o)}const Ly={get:pl(!1,!1)},My={get:pl(!1,!0)},Dy={get:pl(!0,!1)};const Qh=new WeakMap,Zh=new WeakMap,ev=new WeakMap,Uy=new WeakMap;function Fy(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Hy(e){return e.__v_skip||!Object.isExtensible(e)?0:Fy(ly(e))}function Br(e){return mr(e)?e:gl(e,!1,Py,Ly,Qh)}function hr(e){return gl(e,!1,Oy,My,Zh)}function Ya(e){return gl(e,!0,Ry,Dy,ev)}function gl(e,t,r,n,i){if(!Ue(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Hy(e);if(o===0)return e;const s=i.get(e);if(s)return s;const a=new Proxy(e,o===2?n:r);return i.set(e,a),a}function nn(e){return mr(e)?nn(e.__v_raw):!!(e&&e.__v_isReactive)}function mr(e){return!!(e&&e.__v_isReadonly)}function Ot(e){return!!(e&&e.__v_isShallow)}function Rs(e){return e?!!e.__v_raw:!1}function Ae(e){const t=e&&e.__v_raw;return t?Ae(t):e}function By(e){return!Ie(e,"__v_skip")&&Object.isExtensible(e)&&Lh(e,"__v_skip",!0),e}const yr=e=>Ue(e)?Br(e):e,qi=e=>Ue(e)?Ya(e):e;function Ve(e){return e?e.__v_isRef===!0:!1}function Qt(e){return tv(e,!1)}function br(e){return tv(e,!0)}function tv(e,t){return Ve(e)?e:new jy(e,t)}class jy{constructor(t,r){this.dep=new hl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Ae(t),this._value=r?t:yr(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Ot(t)||mr(t);t=n?t:Ae(t),Dr(t,r)&&(this._rawValue=t,this._value=n?t:yr(t),this.dep.trigger())}}function ke(e){return Ve(e)?e.value:e}function qy(e){return he(e)?e():ke(e)}const Vy={get:(e,t,r)=>t==="__v_raw"?e:ke(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return Ve(i)&&!Ve(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function rv(e){return nn(e)?e:new Proxy(e,Vy)}class $y{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=Ae(t);let i=!0,o=t;if(!ve(t)||!Ts(String(r)))do i=!Rs(o)||Ot(o);while(i&&(o=o.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=ke(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ve(this._raw[this._key])){const r=this._object[this._key];if(Ve(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return wy(this._raw,this._key)}}class Wy{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function nv(e,t,r){return Ve(e)?e:he(e)?new Wy(e):Ue(e)&&arguments.length>1?Gy(e,t,r):Qt(e)}function Gy(e,t,r){return new $y(e,t,r)}class Ky{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new hl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Le!==this)return Vh(this,!0),!0}get value(){const t=this.dep.track();return Gh(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function zy(e,t,r=!1){let n,i;return he(e)?n=e:(n=e.get,i=e.set),new Ky(n,i,r)}const lo={},rs=new WeakMap;let Xr;function Xy(e,t=!1,r=Xr){if(r){let n=rs.get(r);n||rs.set(r,n=[]),n.push(e)}}function Yy(e,t,r=xe){const{immediate:n,deep:i,once:o,scheduler:s,augmentJob:a,call:u}=r,c=y=>i?y:Ot(y)||i===!1||i===0?dr(y,1):dr(y);let l,f,d,h,v=!1,p=!1;if(Ve(e)?(f=()=>e.value,v=Ot(e)):nn(e)?(f=()=>c(e),v=!0):ve(e)?(p=!0,v=e.some(y=>nn(y)||Ot(y)),f=()=>e.map(y=>{if(Ve(y))return y.value;if(nn(y))return c(y);if(he(y))return u?u(y,2):y()})):he(e)?t?f=u?()=>u(e,2):e:f=()=>{if(d){pr();try{d()}finally{gr()}}const y=Xr;Xr=l;try{return u?u(e,3,[h]):e(h)}finally{Xr=y}}:f=Jt,t&&i){const y=f,_=i===!0?1/0:i;f=()=>dr(y(),_)}const b=ll(),E=()=>{l.stop(),b&&b.active&&sl(b.effects,l)};if(o&&t){const y=t;t=(..._)=>{y(..._),E()}}let m=p?new Array(e.length).fill(lo):lo;const g=y=>{if(!(!(l.flags&1)||!l.dirty&&!y))if(t){const _=l.run();if(i||v||(p?_.some((S,A)=>Dr(S,m[A])):Dr(_,m))){d&&d();const S=Xr;Xr=l;try{const A=[_,m===lo?void 0:p&&m[0]===lo?[]:m,h];m=_,u?u(t,3,A):t(...A)}finally{Xr=S}}}else l.run()};return a&&a(g),l=new jh(f),l.scheduler=s?()=>s(g,!1):g,h=y=>Xy(y,!1,l),d=l.onStop=()=>{const y=rs.get(l);if(y){if(u)u(y,4);else for(const _ of y)_();rs.delete(l)}},t?n?g(!0):m=l.run():s?s(g.bind(null,!0),!0):l.run(),E.pause=l.pause.bind(l),E.resume=l.resume.bind(l),E.stop=E,E}function dr(e,t=1/0,r){if(t<=0||!Ue(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,Ve(e))dr(e.value,t,r);else if(ve(e))for(let n=0;n<e.length;n++)dr(e[n],t,r);else if(Oh(e)||On(e))e.forEach(n=>{dr(n,t,r)});else if(Nh(e)){for(const n in e)dr(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&dr(e[n],t,r)}return e}function Zi(e,t,r,n){try{return n?e(...n):e()}catch(i){Zn(i,t,r)}}function qt(e,t,r,n){if(he(e)){const i=Zi(e,t,r,n);return i&&al(i)&&i.catch(o=>{Zn(o,t,r)}),i}if(ve(e)){const i=[];for(let o=0;o<e.length;o++)i.push(qt(e[o],t,r,n));return i}}function Zn(e,t,r,n=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||xe;if(t){let a=t.parent;const u=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${r}`;for(;a;){const l=a.ec;if(l){for(let f=0;f<l.length;f++)if(l[f](e,u,c)===!1)return}a=a.parent}if(o){pr(),Zi(o,null,10,[e,u,c]),gr();return}}Jy(e,r,i,n,s)}function Jy(e,t,r,n=!0,i=!1){if(i)throw e;console.error(e)}const pt=[];let Gt=-1;const Nn=[];let Ar=null,_n=0;const iv=Promise.resolve();let ns=null;function Vi(e){const t=ns||iv;return e?t.then(this?e.bind(this):e):t}function Qy(e){let t=Gt+1,r=pt.length;for(;t<r;){const n=t+r>>>1,i=pt[n],o=$i(i);o<e||o===e&&i.flags&2?t=n+1:r=n}return t}function ml(e){if(!(e.flags&1)){const t=$i(e),r=pt[pt.length-1];!r||!(e.flags&2)&&t>=$i(r)?pt.push(e):pt.splice(Qy(t),0,e),e.flags|=1,ov()}}function ov(){ns||(ns=iv.then(sv))}function Ja(e){ve(e)?Nn.push(...e):Ar&&e.id===-1?Ar.splice(_n+1,0,e):e.flags&1||(Nn.push(e),e.flags|=1),ov()}function cc(e,t,r=Gt+1){for(;r<pt.length;r++){const n=pt[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;pt.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function is(e){if(Nn.length){const t=[...new Set(Nn)].sort((r,n)=>$i(r)-$i(n));if(Nn.length=0,Ar){Ar.push(...t);return}for(Ar=t,_n=0;_n<Ar.length;_n++){const r=Ar[_n];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Ar=null,_n=0}}const $i=e=>e.id==null?e.flags&2?-1:1/0:e.id;function sv(e){try{for(Gt=0;Gt<pt.length;Gt++){const t=pt[Gt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Zi(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Gt<pt.length;Gt++){const t=pt[Gt];t&&(t.flags&=-2)}Gt=-1,pt.length=0,is(),ns=null,(pt.length||Nn.length)&&sv()}}let Ct=null,av=null;function os(e){const t=Ct;return Ct=e,av=e&&e.type.__scopeId||null,t}function Ai(e,t=Ct,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&cs(-1);const o=os(t);let s;try{s=e(...i)}finally{os(o),n._d&&cs(1)}return s};return n._n=!0,n._c=!0,n._d=!0,n}function mN(e,t){if(Ct===null)return e;const r=Ms(Ct),n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,s,a,u=xe]=t[i];o&&(he(o)&&(o={mounted:o,updated:o}),o.deep&&dr(s),n.push({dir:o,instance:r,value:s,oldValue:void 0,arg:a,modifiers:u}))}return e}function zt(e,t,r,n){const i=e.dirs,o=t&&t.dirs;for(let s=0;s<i.length;s++){const a=i[s];o&&(a.oldValue=o[s].value);let u=a.dir[n];u&&(pr(),qt(u,r,8,[e.el,a,e,t]),gr())}}function Ln(e,t){if(it){let r=it.provides;const n=it.parent&&it.parent.provides;n===r&&(r=it.provides=Object.create(n)),r[e]=t}}function _t(e,t,r=!1){const n=hn();if(n||on){let i=on?on._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return r&&he(t)?t.call(n&&n.proxy):t}}function Os(){return!!(hn()||on)}const Zy=Symbol.for("v-scx"),e0=()=>_t(Zy);function t0(e,t){return yl(e,null,t)}function Mn(e,t,r){return yl(e,t,r)}function yl(e,t,r=xe){const{immediate:n,deep:i,flush:o,once:s}=r,a=Je({},r),u=t&&n||!t&&o!=="post";let c;if(Gn){if(o==="sync"){const h=e0();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!u){const h=()=>{};return h.stop=Jt,h.resume=Jt,h.pause=Jt,h}}const l=it;a.call=(h,v,p)=>qt(h,l,v,p);let f=!1;o==="post"?a.scheduler=h=>{Qe(h,l&&l.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(h,v)=>{v?h():ml(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,l&&(h.id=l.uid,h.i=l))};const d=Yy(e,t,a);return Gn&&(c?c.push(d):u&&d()),d}function r0(e,t,r){const n=this.proxy,i=Be(e)?e.includes(".")?uv(n,e):()=>n[e]:e.bind(n,n);let o;he(t)?o=t:(o=t.handler,r=t);const s=to(this),a=yl(i,o.bind(n),r);return s(),a}function uv(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}const n0=Symbol("_vte"),lv=e=>e.__isTeleport,ur=Symbol("_leaveCb"),co=Symbol("_enterCb");function i0(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Vn(()=>{e.isMounted=!0}),ei(()=>{e.isUnmounting=!0}),e}const It=[Function,Array],cv={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:It,onEnter:It,onAfterEnter:It,onEnterCancelled:It,onBeforeLeave:It,onLeave:It,onAfterLeave:It,onLeaveCancelled:It,onBeforeAppear:It,onAppear:It,onAfterAppear:It,onAppearCancelled:It},fv=e=>{const t=e.subTree;return t.component?fv(t.component):t},o0={name:"BaseTransition",props:cv,setup(e,{slots:t}){const r=hn(),n=i0();return()=>{const i=t.default&&vv(t.default(),!0);if(!i||!i.length)return;const o=dv(i),s=Ae(e),{mode:a}=s;if(n.isLeaving)return ta(o);const u=fc(o);if(!u)return ta(o);let c=Qa(u,s,n,r,f=>c=f);u.type!==Ye&&qn(u,c);let l=r.subTree&&fc(r.subTree);if(l&&l.type!==Ye&&!Bt(l,u)&&fv(r).type!==Ye){let f=Qa(l,s,n,r);if(qn(l,f),a==="out-in"&&u.type!==Ye)return n.isLeaving=!0,f.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete f.afterLeave,l=void 0},ta(o);a==="in-out"&&u.type!==Ye?f.delayLeave=(d,h,v)=>{const p=hv(n,l);p[String(l.key)]=l,d[ur]=()=>{h(),d[ur]=void 0,delete c.delayedLeave,l=void 0},c.delayedLeave=()=>{v(),delete c.delayedLeave,l=void 0}}:l=void 0}else l&&(l=void 0);return o}}};function dv(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==Ye){t=r;break}}return t}const s0=o0;function hv(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Qa(e,t,r,n,i){const{appear:o,mode:s,persisted:a=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:l,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:v,onLeaveCancelled:p,onBeforeAppear:b,onAppear:E,onAfterAppear:m,onAppearCancelled:g}=t,y=String(e.key),_=hv(r,e),S=(I,P)=>{I&&qt(I,n,9,P)},A=(I,P)=>{const R=P[1];S(I,P),ve(I)?I.every(k=>k.length<=1)&&R():I.length<=1&&R()},C={mode:s,persisted:a,beforeEnter(I){let P=u;if(!r.isMounted)if(o)P=b||u;else return;I[ur]&&I[ur](!0);const R=_[y];R&&Bt(e,R)&&R.el[ur]&&R.el[ur](),S(P,[I])},enter(I){let P=c,R=l,k=f;if(!r.isMounted)if(o)P=E||c,R=m||l,k=g||f;else return;let N=!1;const $=I[co]=ee=>{N||(N=!0,ee?S(k,[I]):S(R,[I]),C.delayedLeave&&C.delayedLeave(),I[co]=void 0)};P?A(P,[I,$]):$()},leave(I,P){const R=String(e.key);if(I[co]&&I[co](!0),r.isUnmounting)return P();S(d,[I]);let k=!1;const N=I[ur]=$=>{k||(k=!0,P(),$?S(p,[I]):S(v,[I]),I[ur]=void 0,_[R]===e&&delete _[R])};_[R]=e,h?A(h,[I,N]):N()},clone(I){const P=Qa(I,t,r,n,i);return i&&i(P),P}};return C}function ta(e){if(eo(e))return e=xt(e),e.children=null,e}function fc(e){if(!eo(e))return lv(e.type)&&e.children?dv(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&he(r.default))return r.default()}}function qn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,qn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function vv(e,t=!1,r){let n=[],i=0;for(let o=0;o<e.length;o++){let s=e[o];const a=r==null?s.key:String(r)+String(s.key!=null?s.key:o);s.type===lt?(s.patchFlag&128&&i++,n=n.concat(vv(s.children,t,a))):(t||s.type!==Ye)&&n.push(a!=null?xt(s,{key:a}):s)}if(i>1)for(let o=0;o<n.length;o++)n[o].patchFlag=-2;return n}function jr(e,t){return he(e)?Je({name:e.name},t,{setup:e}):e}function bl(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const ss=new WeakMap;function Dn(e,t,r,n,i=!1){if(ve(e)){e.forEach((v,p)=>Dn(v,t&&(ve(t)?t[p]:t),r,n,i));return}if(Ur(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Dn(e,t,r,n.component.subTree);return}const o=n.shapeFlag&4?Ms(n.component):n.el,s=i?null:o,{i:a,r:u}=e,c=t&&t.r,l=a.refs===xe?a.refs={}:a.refs,f=a.setupState,d=Ae(f),h=f===xe?Rh:v=>Ie(d,v);if(c!=null&&c!==u){if(dc(t),Be(c))l[c]=null,h(c)&&(f[c]=null);else if(Ve(c)){c.value=null;const v=t;v.k&&(l[v.k]=null)}}if(he(u))Zi(u,a,12,[s,l]);else{const v=Be(u),p=Ve(u);if(v||p){const b=()=>{if(e.f){const E=v?h(u)?f[u]:l[u]:u.value;if(i)ve(E)&&sl(E,o);else if(ve(E))E.includes(o)||E.push(o);else if(v)l[u]=[o],h(u)&&(f[u]=l[u]);else{const m=[o];u.value=m,e.k&&(l[e.k]=m)}}else v?(l[u]=s,h(u)&&(f[u]=s)):p&&(u.value=s,e.k&&(l[e.k]=s))};if(s){const E=()=>{b(),ss.delete(e)};E.id=-1,ss.set(e,E),Qe(E,r)}else dc(e),b()}}}function dc(e){const t=ss.get(e);t&&(t.flags|=8,ss.delete(e))}let hc=!1;const mn=()=>{hc||(console.error("Hydration completed but contains mismatches."),hc=!0)},a0=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",u0=e=>e.namespaceURI.includes("MathML"),fo=e=>{if(e.nodeType===1){if(a0(e))return"svg";if(u0(e))return"mathml"}},An=e=>e.nodeType===8;function l0(e){const{mt:t,p:r,o:{patchProp:n,createText:i,nextSibling:o,parentNode:s,remove:a,insert:u,createComment:c}}=e,l=(g,y)=>{if(!y.hasChildNodes()){r(null,g,y),is(),y._vnode=g;return}f(y.firstChild,g,null,null,null),is(),y._vnode=g},f=(g,y,_,S,A,C=!1)=>{C=C||!!y.dynamicChildren;const I=An(g)&&g.data==="[",P=()=>p(g,y,_,S,A,I),{type:R,ref:k,shapeFlag:N,patchFlag:$}=y;let ee=g.nodeType;y.el=g,$===-2&&(C=!1,y.dynamicChildren=null);let B=null;switch(R){case sn:ee!==3?y.children===""?(u(y.el=i(""),s(g),g),B=g):B=P():(g.data!==y.children&&(mn(),g.data=y.children),B=o(g));break;case Ye:m(g)?(B=o(g),E(y.el=g.content.firstChild,g,_)):ee!==8||I?B=P():B=o(g);break;case Ii:if(I&&(g=o(g),ee=g.nodeType),ee===1||ee===3){B=g;const z=!y.children.length;for(let K=0;K<y.staticCount;K++)z&&(y.children+=B.nodeType===1?B.outerHTML:B.data),K===y.staticCount-1&&(y.anchor=B),B=o(B);return I?o(B):B}else P();break;case lt:I?B=v(g,y,_,S,A,C):B=P();break;default:if(N&1)(ee!==1||y.type.toLowerCase()!==g.tagName.toLowerCase())&&!m(g)?B=P():B=d(g,y,_,S,A,C);else if(N&6){y.slotScopeIds=A;const z=s(g);if(I?B=b(g):An(g)&&g.data==="teleport start"?B=b(g,g.data,"teleport end"):B=o(g),t(y,z,null,_,S,fo(z),C),Ur(y)&&!y.type.__asyncResolved){let K;I?(K=De(lt),K.anchor=B?B.previousSibling:z.lastChild):K=g.nodeType===3?Pi(""):De("div"),K.el=g,y.component.subTree=K}}else N&64?ee!==8?B=P():B=y.type.hydrate(g,y,_,S,A,C,e,h):N&128&&(B=y.type.hydrate(g,y,_,S,fo(s(g)),A,C,e,f))}return k!=null&&Dn(k,null,S,y),B},d=(g,y,_,S,A,C)=>{C=C||!!y.dynamicChildren;const{type:I,props:P,patchFlag:R,shapeFlag:k,dirs:N,transition:$}=y,ee=I==="input"||I==="option";if(ee||R!==-1){N&&zt(y,null,_,"created");let B=!1;if(m(g)){B=Uv(null,$)&&_&&_.vnode.props&&_.vnode.props.appear;const K=g.content.firstChild;if(B){const Q=K.getAttribute("class");Q&&(K.$cls=Q),$.beforeEnter(K)}E(K,g,_),y.el=g=K}if(k&16&&!(P&&(P.innerHTML||P.textContent))){let K=h(g.firstChild,y,g,_,S,A,C);for(;K;){ho(g,1)||mn();const Q=K;K=K.nextSibling,a(Q)}}else if(k&8){let K=y.children;K[0]===`
`&&(g.tagName==="PRE"||g.tagName==="TEXTAREA")&&(K=K.slice(1));const{textContent:Q}=g;Q!==K&&Q!==K.replace(/\r\n|\r/g,`
`)&&(ho(g,0)||mn(),g.textContent=y.children)}if(P){if(ee||!C||R&48){const K=g.tagName.includes("-");for(const Q in P)(ee&&(Q.endsWith("value")||Q==="indeterminate")||Ji(Q)&&!tn(Q)||Q[0]==="."||K&&!tn(Q))&&n(g,Q,null,P[Q],void 0,_)}else if(P.onClick)n(g,"onClick",null,P.onClick,void 0,_);else if(R&4&&nn(P.style))for(const K in P.style)P.style[K]}let z;(z=P&&P.onVnodeBeforeMount)&&yt(z,_,y),N&&zt(y,null,_,"beforeMount"),((z=P&&P.onVnodeMounted)||N||B)&&Vv(()=>{z&&yt(z,_,y),B&&$.enter(g),N&&zt(y,null,_,"mounted")},S)}return g.nextSibling},h=(g,y,_,S,A,C,I)=>{I=I||!!y.dynamicChildren;const P=y.children,R=P.length;for(let k=0;k<R;k++){const N=I?P[k]:P[k]=At(P[k]),$=N.type===sn;g?($&&!I&&k+1<R&&At(P[k+1]).type===sn&&(u(i(g.data.slice(N.children.length)),_,o(g)),g.data=N.children),g=f(g,N,S,A,C,I)):$&&!N.children?u(N.el=i(""),_):(ho(_,1)||mn(),r(null,N,_,null,S,A,fo(_),C))}return g},v=(g,y,_,S,A,C)=>{const{slotScopeIds:I}=y;I&&(A=A?A.concat(I):I);const P=s(g),R=h(o(g),y,P,_,S,A,C);return R&&An(R)&&R.data==="]"?o(y.anchor=R):(mn(),u(y.anchor=c("]"),P,R),R)},p=(g,y,_,S,A,C)=>{if(ho(g.parentElement,1)||mn(),y.el=null,C){const R=b(g);for(;;){const k=o(g);if(k&&k!==R)a(k);else break}}const I=o(g),P=s(g);return a(g),r(null,y,P,I,_,S,fo(P),A),_&&(_.vnode.el=y.el,Ls(_,y.el)),I},b=(g,y="[",_="]")=>{let S=0;for(;g;)if(g=o(g),g&&An(g)&&(g.data===y&&S++,g.data===_)){if(S===0)return o(g);S--}return g},E=(g,y,_)=>{const S=y.parentNode;S&&S.replaceChild(g,y);let A=_;for(;A;)A.vnode.el===y&&(A.vnode.el=A.subTree.el=g),A=A.parent},m=g=>g.nodeType===1&&g.tagName==="TEMPLATE";return[l,f]}const vc="data-allow-mismatch",c0={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function ho(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(vc);)e=e.parentElement;const r=e&&e.getAttribute(vc);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:n.includes(c0[t])}}Is().requestIdleCallback;Is().cancelIdleCallback;function f0(e,t){if(An(e)&&e.data==="["){let r=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(An(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else t(e)}const Ur=e=>!!e.type.__asyncLoader;function pc(e){he(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:i=200,hydrate:o,timeout:s,suspensible:a=!0,onError:u}=e;let c=null,l,f=0;const d=()=>(f++,c=null,h()),h=()=>{let v;return c||(v=c=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),u)return new Promise((b,E)=>{u(p,()=>b(d()),()=>E(p),f+1)});throw p}).then(p=>v!==c&&c?c:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),l=p,p)))};return jr({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(v,p,b){let E=!1;(p.bu||(p.bu=[])).push(()=>E=!0);const m=()=>{E||b()},g=o?()=>{const y=o(m,_=>f0(v,_));y&&(p.bum||(p.bum=[])).push(y)}:m;l?g():h().then(()=>!p.isUnmounted&&g())},get __asyncResolved(){return l},setup(){const v=it;if(bl(v),l)return()=>vo(l,v);const p=g=>{c=null,Zn(g,v,13,!n)};if(a&&v.suspense||Gn)return h().then(g=>()=>vo(g,v)).catch(g=>(p(g),()=>n?De(n,{error:g}):null));const b=Qt(!1),E=Qt(),m=Qt(!!i);return i&&setTimeout(()=>{m.value=!1},i),s!=null&&setTimeout(()=>{if(!b.value&&!E.value){const g=new Error(`Async component timed out after ${s}ms.`);p(g),E.value=g}},s),h().then(()=>{b.value=!0,v.parent&&eo(v.parent.vnode)&&v.parent.update()}).catch(g=>{p(g),E.value=g}),()=>{if(b.value&&l)return vo(l,v);if(E.value&&n)return De(n,{error:E.value});if(r&&!m.value)return vo(r,v)}}})}function vo(e,t){const{ref:r,props:n,children:i,ce:o}=t.vnode,s=De(e,n,i);return s.ref=r,s.ce=o,delete t.vnode.ce,s}const eo=e=>e.type.__isKeepAlive,d0={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=hn(),n=r.ctx;if(!n.renderer)return()=>{const m=t.default&&t.default();return m&&m.length===1?m[0]:m};const i=new Map,o=new Set;let s=null;const a=r.suspense,{renderer:{p:u,m:c,um:l,o:{createElement:f}}}=n,d=f("div");n.activate=(m,g,y,_,S)=>{const A=m.component;c(m,g,y,0,a),u(A.vnode,m,g,y,A,a,_,m.slotScopeIds,S),Qe(()=>{A.isDeactivated=!1,A.a&&xn(A.a);const C=m.props&&m.props.onVnodeMounted;C&&yt(C,A.parent,m)},a)},n.deactivate=m=>{const g=m.component;us(g.m),us(g.a),c(m,d,null,1,a),Qe(()=>{g.da&&xn(g.da);const y=m.props&&m.props.onVnodeUnmounted;y&&yt(y,g.parent,m),g.isDeactivated=!0},a)};function h(m){ra(m),l(m,r,a,!0)}function v(m){i.forEach((g,y)=>{const _=su(Ur(g)?g.type.__asyncResolved||{}:g.type);_&&!m(_)&&p(y)})}function p(m){const g=i.get(m);g&&(!s||!Bt(g,s))?h(g):s&&ra(s),i.delete(m),o.delete(m)}Mn(()=>[e.include,e.exclude],([m,g])=>{m&&v(y=>bi(m,y)),g&&v(y=>!bi(g,y))},{flush:"post",deep:!0});let b=null;const E=()=>{b!=null&&(ls(r.subTree.type)?Qe(()=>{i.set(b,po(r.subTree))},r.subTree.suspense):i.set(b,po(r.subTree)))};return Vn(E),yv(E),ei(()=>{i.forEach(m=>{const{subTree:g,suspense:y}=r,_=po(g);if(m.type===_.type&&m.key===_.key){ra(_);const S=_.component.da;S&&Qe(S,y);return}h(m)})}),()=>{if(b=null,!t.default)return s=null;const m=t.default(),g=m[0];if(m.length>1)return s=null,m;if(!Wn(g)||!(g.shapeFlag&4)&&!(g.shapeFlag&128))return s=null,g;let y=po(g);if(y.type===Ye)return s=null,y;const _=y.type,S=su(Ur(y)?y.type.__asyncResolved||{}:_),{include:A,exclude:C,max:I}=e;if(A&&(!S||!bi(A,S))||C&&S&&bi(C,S))return y.shapeFlag&=-257,s=y,g;const P=y.key==null?_:y.key,R=i.get(P);return y.el&&(y=xt(y),g.shapeFlag&128&&(g.ssContent=y)),b=P,R?(y.el=R.el,y.component=R.component,y.transition&&qn(y,y.transition),y.shapeFlag|=512,o.delete(P),o.add(P)):(o.add(P),I&&o.size>parseInt(I,10)&&p(o.values().next().value)),y.shapeFlag|=256,s=y,ls(g.type)?g:y}}},h0=d0;function bi(e,t){return ve(e)?e.some(r=>bi(r,t)):Be(e)?e.split(",").includes(t):uy(e)?(e.lastIndex=0,e.test(t)):!1}function pv(e,t){mv(e,"a",t)}function gv(e,t){mv(e,"da",t)}function mv(e,t,r=it){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(xs(t,n,r),r){let i=r.parent;for(;i&&i.parent;)eo(i.parent.vnode)&&v0(n,t,r,i),i=i.parent}}function v0(e,t,r,n){const i=xs(t,e,n,!0);bv(()=>{sl(n[t],i)},r)}function ra(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function po(e){return e.shapeFlag&128?e.ssContent:e}function xs(e,t,r=it,n=!1){if(r){const i=r[e]||(r[e]=[]),o=t.__weh||(t.__weh=(...s)=>{pr();const a=to(r),u=qt(t,r,e,s);return a(),gr(),u});return n?i.unshift(o):i.push(o),o}}const Er=e=>(t,r=it)=>{(!Gn||e==="sp")&&xs(e,(...n)=>t(...n),r)},p0=Er("bm"),Vn=Er("m"),g0=Er("bu"),yv=Er("u"),ei=Er("bum"),bv=Er("um"),m0=Er("sp"),y0=Er("rtg"),b0=Er("rtc");function Ev(e,t=it){xs("ec",e,t)}const _v="components";function gc(e,t){return wv(_v,e,!0,t)||e}const Sv=Symbol.for("v-ndc");function E0(e){return Be(e)?wv(_v,e,!1)||e:e||Sv}function wv(e,t,r=!0,n=!1){const i=Ct||it;if(i){const o=i.type;{const a=su(o,!1);if(a&&(a===t||a===Mt(t)||a===Cs(Mt(t))))return o}const s=mc(i[e]||o[e],t)||mc(i.appContext[e],t);return!s&&n?o:s}}function mc(e,t){return e&&(e[t]||e[Mt(t)]||e[Cs(Mt(t))])}const Za=e=>e?zv(e)?Ms(e):Za(e.parent):null,Ci=Je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Za(e.parent),$root:e=>Za(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Av(e),$forceUpdate:e=>e.f||(e.f=()=>{ml(e.update)}),$nextTick:e=>e.n||(e.n=Vi.bind(e.proxy)),$watch:e=>r0.bind(e)}),na=(e,t)=>e!==xe&&!e.__isScriptSetup&&Ie(e,t),_0={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:o,accessCache:s,type:a,appContext:u}=e;if(t[0]!=="$"){const d=s[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return o[t]}else{if(na(n,t))return s[t]=1,n[t];if(i!==xe&&Ie(i,t))return s[t]=2,i[t];if(Ie(o,t))return s[t]=3,o[t];if(r!==xe&&Ie(r,t))return s[t]=4,r[t];eu&&(s[t]=0)}}const c=Ci[t];let l,f;if(c)return t==="$attrs"&&ut(e.attrs,"get",""),c(e);if((l=a.__cssModules)&&(l=l[t]))return l;if(r!==xe&&Ie(r,t))return s[t]=4,r[t];if(f=u.config.globalProperties,Ie(f,t))return f[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:o}=e;return na(i,t)?(i[t]=r,!0):n!==xe&&Ie(n,t)?(n[t]=r,!0):Ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,props:o,type:s}},a){let u;return!!(r[a]||e!==xe&&a[0]!=="$"&&Ie(e,a)||na(t,a)||Ie(o,a)||Ie(n,a)||Ie(Ci,a)||Ie(i.config.globalProperties,a)||(u=s.__cssModules)&&u[a])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Ie(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function yc(e){return ve(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let eu=!0;function S0(e){const t=Av(e),r=e.proxy,n=e.ctx;eu=!1,t.beforeCreate&&bc(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:a,provide:u,inject:c,created:l,beforeMount:f,mounted:d,beforeUpdate:h,updated:v,activated:p,deactivated:b,beforeDestroy:E,beforeUnmount:m,destroyed:g,unmounted:y,render:_,renderTracked:S,renderTriggered:A,errorCaptured:C,serverPrefetch:I,expose:P,inheritAttrs:R,components:k,directives:N,filters:$}=t;if(c&&w0(c,n,null),s)for(const z in s){const K=s[z];he(K)&&(n[z]=K.bind(r))}if(i){const z=i.call(r,r);Ue(z)&&(e.data=Br(z))}if(eu=!0,o)for(const z in o){const K=o[z],Q=he(K)?K.bind(r,r):he(K.get)?K.get.bind(r,r):Jt,ae=!he(K)&&he(K.set)?K.set.bind(r):Jt,fe=We({get:Q,set:ae});Object.defineProperty(n,z,{enumerable:!0,configurable:!0,get:()=>fe.value,set:pe=>fe.value=pe})}if(a)for(const z in a)Tv(a[z],n,r,z);if(u){const z=he(u)?u.call(r):u;Reflect.ownKeys(z).forEach(K=>{Ln(K,z[K])})}l&&bc(l,e,"c");function B(z,K){ve(K)?K.forEach(Q=>z(Q.bind(r))):K&&z(K.bind(r))}if(B(p0,f),B(Vn,d),B(g0,h),B(yv,v),B(pv,p),B(gv,b),B(Ev,C),B(b0,S),B(y0,A),B(ei,m),B(bv,y),B(m0,I),ve(P))if(P.length){const z=e.exposed||(e.exposed={});P.forEach(K=>{Object.defineProperty(z,K,{get:()=>r[K],set:Q=>r[K]=Q,enumerable:!0})})}else e.exposed||(e.exposed={});_&&e.render===Jt&&(e.render=_),R!=null&&(e.inheritAttrs=R),k&&(e.components=k),N&&(e.directives=N),I&&bl(e)}function w0(e,t,r=Jt){ve(e)&&(e=tu(e));for(const n in e){const i=e[n];let o;Ue(i)?"default"in i?o=_t(i.from||n,i.default,!0):o=_t(i.from||n):o=_t(i),Ve(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[n]=o}}function bc(e,t,r){qt(ve(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Tv(e,t,r,n){let i=n.includes(".")?uv(r,n):()=>r[n];if(Be(e)){const o=t[e];he(o)&&Mn(i,o)}else if(he(e))Mn(i,e.bind(r));else if(Ue(e))if(ve(e))e.forEach(o=>Tv(o,t,r,n));else{const o=he(e.handler)?e.handler.bind(r):t[e.handler];he(o)&&Mn(i,o,e)}}function Av(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,a=o.get(t);let u;return a?u=a:!i.length&&!r&&!n?u=t:(u={},i.length&&i.forEach(c=>as(u,c,s,!0)),as(u,t,s)),Ue(t)&&o.set(t,u),u}function as(e,t,r,n=!1){const{mixins:i,extends:o}=t;o&&as(e,o,r,!0),i&&i.forEach(s=>as(e,s,r,!0));for(const s in t)if(!(n&&s==="expose")){const a=T0[s]||r&&r[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const T0={data:Ec,props:_c,emits:_c,methods:Ei,computed:Ei,beforeCreate:dt,created:dt,beforeMount:dt,mounted:dt,beforeUpdate:dt,updated:dt,beforeDestroy:dt,beforeUnmount:dt,destroyed:dt,unmounted:dt,activated:dt,deactivated:dt,errorCaptured:dt,serverPrefetch:dt,components:Ei,directives:Ei,watch:C0,provide:Ec,inject:A0};function Ec(e,t){return t?e?function(){return Je(he(e)?e.call(this,this):e,he(t)?t.call(this,this):t)}:t:e}function A0(e,t){return Ei(tu(e),tu(t))}function tu(e){if(ve(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function dt(e,t){return e?[...new Set([].concat(e,t))]:t}function Ei(e,t){return e?Je(Object.create(null),e,t):t}function _c(e,t){return e?ve(e)&&ve(t)?[...new Set([...e,...t])]:Je(Object.create(null),yc(e),yc(t??{})):t}function C0(e,t){if(!e)return t;if(!t)return e;const r=Je(Object.create(null),e);for(const n in t)r[n]=dt(e[n],t[n]);return r}function Cv(){return{app:null,config:{isNativeTag:Rh,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let I0=0;function k0(e,t){return function(n,i=null){he(n)||(n=Je({},n)),i!=null&&!Ue(i)&&(i=null);const o=Cv(),s=new WeakSet,a=[];let u=!1;const c=o.app={_uid:I0++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:lb,get config(){return o.config},set config(l){},use(l,...f){return s.has(l)||(l&&he(l.install)?(s.add(l),l.install(c,...f)):he(l)&&(s.add(l),l(c,...f))),c},mixin(l){return o.mixins.includes(l)||o.mixins.push(l),c},component(l,f){return f?(o.components[l]=f,c):o.components[l]},directive(l,f){return f?(o.directives[l]=f,c):o.directives[l]},mount(l,f,d){if(!u){const h=c._ceVNode||De(n,i);return h.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(h,l):e(h,l,d),u=!0,c._container=l,l.__vue_app__=c,Ms(h.component)}},onUnmount(l){a.push(l)},unmount(){u&&(qt(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(l,f){return o.provides[l]=f,c},runWithContext(l){const f=on;on=c;try{return l()}finally{on=f}}};return c}}let on=null;const P0=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Mt(t)}Modifiers`]||e[`${dn(t)}Modifiers`];function R0(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||xe;let i=r;const o=t.startsWith("update:"),s=o&&P0(n,t.slice(7));s&&(s.trim&&(i=r.map(l=>Be(l)?l.trim():l)),s.number&&(i=r.map(ul)));let a,u=n[a=Ys(t)]||n[a=Ys(Mt(t))];!u&&o&&(u=n[a=Ys(dn(t))]),u&&qt(u,e,6,i);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,qt(c,e,6,i)}}const O0=new WeakMap;function Iv(e,t,r=!1){const n=r?O0:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const o=e.emits;let s={},a=!1;if(!he(e)){const u=c=>{const l=Iv(c,t,!0);l&&(a=!0,Je(s,l))};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!a?(Ue(e)&&n.set(e,null),null):(ve(o)?o.forEach(u=>s[u]=null):Je(s,o),Ue(e)&&n.set(e,s),s)}function Ns(e,t){return!e||!Ji(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ie(e,t[0].toLowerCase()+t.slice(1))||Ie(e,dn(t))||Ie(e,t))}function ia(e){const{type:t,vnode:r,proxy:n,withProxy:i,propsOptions:[o],slots:s,attrs:a,emit:u,render:c,renderCache:l,props:f,data:d,setupState:h,ctx:v,inheritAttrs:p}=e,b=os(e);let E,m;try{if(r.shapeFlag&4){const y=i||n,_=y;E=At(c.call(_,y,l,f,h,d,v)),m=a}else{const y=t;E=At(y.length>1?y(f,{attrs:a,slots:s,emit:u}):y(f,null)),m=t.props?a:N0(a)}}catch(y){ki.length=0,Zn(y,e,1),E=De(Ye)}let g=E;if(m&&p!==!1){const y=Object.keys(m),{shapeFlag:_}=g;y.length&&_&7&&(o&&y.some(ol)&&(m=L0(m,o)),g=xt(g,m,!1,!0))}return r.dirs&&(g=xt(g,null,!1,!0),g.dirs=g.dirs?g.dirs.concat(r.dirs):r.dirs),r.transition&&qn(g,r.transition),E=g,os(b),E}function x0(e,t=!0){let r;for(let n=0;n<e.length;n++){const i=e[n];if(Wn(i)){if(i.type!==Ye||i.children==="v-if"){if(r)return;r=i}}else return}return r}const N0=e=>{let t;for(const r in e)(r==="class"||r==="style"||Ji(r))&&((t||(t={}))[r]=e[r]);return t},L0=(e,t)=>{const r={};for(const n in e)(!ol(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function M0(e,t,r){const{props:n,children:i,component:o}=e,{props:s,children:a,patchFlag:u}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&u>=0){if(u&1024)return!0;if(u&16)return n?Sc(n,s,c):!!s;if(u&8){const l=t.dynamicProps;for(let f=0;f<l.length;f++){const d=l[f];if(s[d]!==n[d]&&!Ns(c,d))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===s?!1:n?s?Sc(n,s,c):!0:!!s;return!1}function Sc(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const o=n[i];if(t[o]!==e[o]&&!Ns(r,o))return!0}return!1}function Ls({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}const kv={},Pv=()=>Object.create(kv),Rv=e=>Object.getPrototypeOf(e)===kv;function D0(e,t,r,n=!1){const i={},o=Pv();e.propsDefaults=Object.create(null),Ov(e,t,i,o);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);r?e.props=n?i:hr(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function U0(e,t,r,n){const{props:i,attrs:o,vnode:{patchFlag:s}}=e,a=Ae(i),[u]=e.propsOptions;let c=!1;if((n||s>0)&&!(s&16)){if(s&8){const l=e.vnode.dynamicProps;for(let f=0;f<l.length;f++){let d=l[f];if(Ns(e.emitsOptions,d))continue;const h=t[d];if(u)if(Ie(o,d))h!==o[d]&&(o[d]=h,c=!0);else{const v=Mt(d);i[v]=ru(u,a,v,h,e,!1)}else h!==o[d]&&(o[d]=h,c=!0)}}}else{Ov(e,t,i,o)&&(c=!0);let l;for(const f in a)(!t||!Ie(t,f)&&((l=dn(f))===f||!Ie(t,l)))&&(u?r&&(r[f]!==void 0||r[l]!==void 0)&&(i[f]=ru(u,a,f,void 0,e,!0)):delete i[f]);if(o!==a)for(const f in o)(!t||!Ie(t,f))&&(delete o[f],c=!0)}c&&fr(e.attrs,"set","")}function Ov(e,t,r,n){const[i,o]=e.propsOptions;let s=!1,a;if(t)for(let u in t){if(tn(u))continue;const c=t[u];let l;i&&Ie(i,l=Mt(u))?!o||!o.includes(l)?r[l]=c:(a||(a={}))[l]=c:Ns(e.emitsOptions,u)||(!(u in n)||c!==n[u])&&(n[u]=c,s=!0)}if(o){const u=Ae(r),c=a||xe;for(let l=0;l<o.length;l++){const f=o[l];r[f]=ru(i,u,f,c[f],e,!Ie(c,f))}}return s}function ru(e,t,r,n,i,o){const s=e[r];if(s!=null){const a=Ie(s,"default");if(a&&n===void 0){const u=s.default;if(s.type!==Function&&!s.skipFactory&&he(u)){const{propsDefaults:c}=i;if(r in c)n=c[r];else{const l=to(i);n=c[r]=u.call(null,t),l()}}else n=u;i.ce&&i.ce._setProp(r,n)}s[0]&&(o&&!a?n=!1:s[1]&&(n===""||n===dn(r))&&(n=!0))}return n}const F0=new WeakMap;function xv(e,t,r=!1){const n=r?F0:t.propsCache,i=n.get(e);if(i)return i;const o=e.props,s={},a=[];let u=!1;if(!he(e)){const l=f=>{u=!0;const[d,h]=xv(f,t,!0);Je(s,d),h&&a.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!o&&!u)return Ue(e)&&n.set(e,Rn),Rn;if(ve(o))for(let l=0;l<o.length;l++){const f=Mt(o[l]);wc(f)&&(s[f]=xe)}else if(o)for(const l in o){const f=Mt(l);if(wc(f)){const d=o[l],h=s[f]=ve(d)||he(d)?{type:d}:Je({},d),v=h.type;let p=!1,b=!0;if(ve(v))for(let E=0;E<v.length;++E){const m=v[E],g=he(m)&&m.name;if(g==="Boolean"){p=!0;break}else g==="String"&&(b=!1)}else p=he(v)&&v.name==="Boolean";h[0]=p,h[1]=b,(p||Ie(h,"default"))&&a.push(f)}}const c=[s,a];return Ue(e)&&n.set(e,c),c}function wc(e){return e[0]!=="$"&&!tn(e)}const El=e=>e==="_"||e==="_ctx"||e==="$stable",_l=e=>ve(e)?e.map(At):[At(e)],H0=(e,t,r)=>{if(t._n)return t;const n=Ai((...i)=>_l(t(...i)),r);return n._c=!1,n},Nv=(e,t,r)=>{const n=e._ctx;for(const i in e){if(El(i))continue;const o=e[i];if(he(o))t[i]=H0(i,o,n);else if(o!=null){const s=_l(o);t[i]=()=>s}}},Lv=(e,t)=>{const r=_l(t);e.slots.default=()=>r},Mv=(e,t,r)=>{for(const n in t)(r||!El(n))&&(e[n]=t[n])},B0=(e,t,r)=>{const n=e.slots=Pv();if(e.vnode.shapeFlag&32){const i=t._;i?(Mv(n,t,r),r&&Lh(n,"_",i,!0)):Nv(t,n)}else t&&Lv(e,t)},j0=(e,t,r)=>{const{vnode:n,slots:i}=e;let o=!0,s=xe;if(n.shapeFlag&32){const a=t._;a?r&&a===1?o=!1:Mv(i,t,r):(o=!t.$stable,Nv(t,i)),s=t}else t&&(Lv(e,t),s={default:1});if(o)for(const a in i)!El(a)&&s[a]==null&&delete i[a]},Qe=Vv;function q0(e){return Dv(e)}function V0(e){return Dv(e,l0)}function Dv(e,t){const r=Is();r.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:s,createText:a,createComment:u,setText:c,setElementText:l,parentNode:f,nextSibling:d,setScopeId:h=Jt,insertStaticContent:v}=e,p=(w,T,L,H=null,U=null,q=null,te=void 0,G=null,Y=!!T.dynamicChildren)=>{if(w===T)return;w&&!Bt(w,T)&&(H=M(w),pe(w,U,q,!0),w=null),T.patchFlag===-2&&(Y=!1,T.dynamicChildren=null);const{type:V,ref:W,shapeFlag:j}=T;switch(V){case sn:b(w,T,L,H);break;case Ye:E(w,T,L,H);break;case Ii:w==null&&m(T,L,H,te);break;case lt:k(w,T,L,H,U,q,te,G,Y);break;default:j&1?_(w,T,L,H,U,q,te,G,Y):j&6?N(w,T,L,H,U,q,te,G,Y):(j&64||j&128)&&V.process(w,T,L,H,U,q,te,G,Y,re)}W!=null&&U?Dn(W,w&&w.ref,q,T||w,!T):W==null&&w&&w.ref!=null&&Dn(w.ref,null,q,w,!0)},b=(w,T,L,H)=>{if(w==null)n(T.el=a(T.children),L,H);else{const U=T.el=w.el;T.children!==w.children&&c(U,T.children)}},E=(w,T,L,H)=>{w==null?n(T.el=u(T.children||""),L,H):T.el=w.el},m=(w,T,L,H)=>{[w.el,w.anchor]=v(w.children,T,L,H,w.el,w.anchor)},g=({el:w,anchor:T},L,H)=>{let U;for(;w&&w!==T;)U=d(w),n(w,L,H),w=U;n(T,L,H)},y=({el:w,anchor:T})=>{let L;for(;w&&w!==T;)L=d(w),i(w),w=L;i(T)},_=(w,T,L,H,U,q,te,G,Y)=>{if(T.type==="svg"?te="svg":T.type==="math"&&(te="mathml"),w==null)S(T,L,H,U,q,te,G,Y);else{const V=w.el&&w.el._isVueCE?w.el:null;try{V&&V._beginPatch(),I(w,T,U,q,te,G,Y)}finally{V&&V._endPatch()}}},S=(w,T,L,H,U,q,te,G)=>{let Y,V;const{props:W,shapeFlag:j,transition:J,dirs:ne}=w;if(Y=w.el=s(w.type,q,W&&W.is,W),j&8?l(Y,w.children):j&16&&C(w.children,Y,null,H,U,oa(w,q),te,G),ne&&zt(w,null,H,"created"),A(Y,w,w.scopeId,te,H),W){for(const Se in W)Se!=="value"&&!tn(Se)&&o(Y,Se,null,W[Se],q,H);"value"in W&&o(Y,"value",null,W.value,q),(V=W.onVnodeBeforeMount)&&yt(V,H,w)}ne&&zt(w,null,H,"beforeMount");const ie=Uv(U,J);ie&&J.beforeEnter(Y),n(Y,T,L),((V=W&&W.onVnodeMounted)||ie||ne)&&Qe(()=>{V&&yt(V,H,w),ie&&J.enter(Y),ne&&zt(w,null,H,"mounted")},U)},A=(w,T,L,H,U)=>{if(L&&h(w,L),H)for(let q=0;q<H.length;q++)h(w,H[q]);if(U){let q=U.subTree;if(T===q||ls(q.type)&&(q.ssContent===T||q.ssFallback===T)){const te=U.vnode;A(w,te,te.scopeId,te.slotScopeIds,U.parent)}}},C=(w,T,L,H,U,q,te,G,Y=0)=>{for(let V=Y;V<w.length;V++){const W=w[V]=G?Cr(w[V]):At(w[V]);p(null,W,T,L,H,U,q,te,G)}},I=(w,T,L,H,U,q,te)=>{const G=T.el=w.el;let{patchFlag:Y,dynamicChildren:V,dirs:W}=T;Y|=w.patchFlag&16;const j=w.props||xe,J=T.props||xe;let ne;if(L&&Vr(L,!1),(ne=J.onVnodeBeforeUpdate)&&yt(ne,L,T,w),W&&zt(T,w,L,"beforeUpdate"),L&&Vr(L,!0),(j.innerHTML&&J.innerHTML==null||j.textContent&&J.textContent==null)&&l(G,""),V?P(w.dynamicChildren,V,G,L,H,oa(T,U),q):te||K(w,T,G,null,L,H,oa(T,U),q,!1),Y>0){if(Y&16)R(G,j,J,L,U);else if(Y&2&&j.class!==J.class&&o(G,"class",null,J.class,U),Y&4&&o(G,"style",j.style,J.style,U),Y&8){const ie=T.dynamicProps;for(let Se=0;Se<ie.length;Se++){const ue=ie[Se],$e=j[ue],Oe=J[ue];(Oe!==$e||ue==="value")&&o(G,ue,$e,Oe,U,L)}}Y&1&&w.children!==T.children&&l(G,T.children)}else!te&&V==null&&R(G,j,J,L,U);((ne=J.onVnodeUpdated)||W)&&Qe(()=>{ne&&yt(ne,L,T,w),W&&zt(T,w,L,"updated")},H)},P=(w,T,L,H,U,q,te)=>{for(let G=0;G<T.length;G++){const Y=w[G],V=T[G],W=Y.el&&(Y.type===lt||!Bt(Y,V)||Y.shapeFlag&198)?f(Y.el):L;p(Y,V,W,null,H,U,q,te,!0)}},R=(w,T,L,H,U)=>{if(T!==L){if(T!==xe)for(const q in T)!tn(q)&&!(q in L)&&o(w,q,T[q],null,U,H);for(const q in L){if(tn(q))continue;const te=L[q],G=T[q];te!==G&&q!=="value"&&o(w,q,G,te,U,H)}"value"in L&&o(w,"value",T.value,L.value,U)}},k=(w,T,L,H,U,q,te,G,Y)=>{const V=T.el=w?w.el:a(""),W=T.anchor=w?w.anchor:a("");let{patchFlag:j,dynamicChildren:J,slotScopeIds:ne}=T;ne&&(G=G?G.concat(ne):ne),w==null?(n(V,L,H),n(W,L,H),C(T.children||[],L,W,U,q,te,G,Y)):j>0&&j&64&&J&&w.dynamicChildren&&w.dynamicChildren.length===J.length?(P(w.dynamicChildren,J,L,U,q,te,G),(T.key!=null||U&&T===U.subTree)&&Fv(w,T,!0)):K(w,T,L,W,U,q,te,G,Y)},N=(w,T,L,H,U,q,te,G,Y)=>{T.slotScopeIds=G,w==null?T.shapeFlag&512?U.ctx.activate(T,L,H,te,Y):$(T,L,H,U,q,te,Y):ee(w,T,Y)},$=(w,T,L,H,U,q,te)=>{const G=w.component=nb(w,H,U);if(eo(w)&&(G.ctx.renderer=re),ib(G,!1,te),G.asyncDep){if(U&&U.registerDep(G,B,te),!w.el){const Y=G.subTree=De(Ye);E(null,Y,T,L),w.placeholder=Y.el}}else B(G,w,T,L,U,q,te)},ee=(w,T,L)=>{const H=T.component=w.component;if(M0(w,T,L))if(H.asyncDep&&!H.asyncResolved){z(H,T,L);return}else H.next=T,H.update();else T.el=w.el,H.vnode=T},B=(w,T,L,H,U,q,te)=>{const G=()=>{if(w.isMounted){let{next:j,bu:J,u:ne,parent:ie,vnode:Se}=w;{const ot=Hv(w);if(ot){j&&(j.el=Se.el,z(w,j,te)),ot.asyncDep.then(()=>{w.isUnmounted||G()});return}}let ue=j,$e;Vr(w,!1),j?(j.el=Se.el,z(w,j,te)):j=Se,J&&xn(J),($e=j.props&&j.props.onVnodeBeforeUpdate)&&yt($e,ie,j,Se),Vr(w,!0);const Oe=ia(w),mt=w.subTree;w.subTree=Oe,p(mt,Oe,f(mt.el),M(mt),w,U,q),j.el=Oe.el,ue===null&&Ls(w,Oe.el),ne&&Qe(ne,U),($e=j.props&&j.props.onVnodeUpdated)&&Qe(()=>yt($e,ie,j,Se),U)}else{let j;const{el:J,props:ne}=T,{bm:ie,m:Se,parent:ue,root:$e,type:Oe}=w,mt=Ur(T);if(Vr(w,!1),ie&&xn(ie),!mt&&(j=ne&&ne.onVnodeBeforeMount)&&yt(j,ue,T),Vr(w,!0),J&&ge){const ot=()=>{w.subTree=ia(w),ge(J,w.subTree,w,U,null)};mt&&Oe.__asyncHydrate?Oe.__asyncHydrate(J,w,ot):ot()}else{$e.ce&&$e.ce._def.shadowRoot!==!1&&$e.ce._injectChildStyle(Oe);const ot=w.subTree=ia(w);p(null,ot,L,H,w,U,q),T.el=ot.el}if(Se&&Qe(Se,U),!mt&&(j=ne&&ne.onVnodeMounted)){const ot=T;Qe(()=>yt(j,ue,ot),U)}(T.shapeFlag&256||ue&&Ur(ue.vnode)&&ue.vnode.shapeFlag&256)&&w.a&&Qe(w.a,U),w.isMounted=!0,T=L=H=null}};w.scope.on();const Y=w.effect=new jh(G);w.scope.off();const V=w.update=Y.run.bind(Y),W=w.job=Y.runIfDirty.bind(Y);W.i=w,W.id=w.uid,Y.scheduler=()=>ml(W),Vr(w,!0),V()},z=(w,T,L)=>{T.component=w;const H=w.vnode.props;w.vnode=T,w.next=null,U0(w,T.props,H,L),j0(w,T.children,L),pr(),cc(w),gr()},K=(w,T,L,H,U,q,te,G,Y=!1)=>{const V=w&&w.children,W=w?w.shapeFlag:0,j=T.children,{patchFlag:J,shapeFlag:ne}=T;if(J>0){if(J&128){ae(V,j,L,H,U,q,te,G,Y);return}else if(J&256){Q(V,j,L,H,U,q,te,G,Y);return}}ne&8?(W&16&&me(V,U,q),j!==V&&l(L,j)):W&16?ne&16?ae(V,j,L,H,U,q,te,G,Y):me(V,U,q,!0):(W&8&&l(L,""),ne&16&&C(j,L,H,U,q,te,G,Y))},Q=(w,T,L,H,U,q,te,G,Y)=>{w=w||Rn,T=T||Rn;const V=w.length,W=T.length,j=Math.min(V,W);let J;for(J=0;J<j;J++){const ne=T[J]=Y?Cr(T[J]):At(T[J]);p(w[J],ne,L,null,U,q,te,G,Y)}V>W?me(w,U,q,!0,!1,j):C(T,L,H,U,q,te,G,Y,j)},ae=(w,T,L,H,U,q,te,G,Y)=>{let V=0;const W=T.length;let j=w.length-1,J=W-1;for(;V<=j&&V<=J;){const ne=w[V],ie=T[V]=Y?Cr(T[V]):At(T[V]);if(Bt(ne,ie))p(ne,ie,L,null,U,q,te,G,Y);else break;V++}for(;V<=j&&V<=J;){const ne=w[j],ie=T[J]=Y?Cr(T[J]):At(T[J]);if(Bt(ne,ie))p(ne,ie,L,null,U,q,te,G,Y);else break;j--,J--}if(V>j){if(V<=J){const ne=J+1,ie=ne<W?T[ne].el:H;for(;V<=J;)p(null,T[V]=Y?Cr(T[V]):At(T[V]),L,ie,U,q,te,G,Y),V++}}else if(V>J)for(;V<=j;)pe(w[V],U,q,!0),V++;else{const ne=V,ie=V,Se=new Map;for(V=ie;V<=J;V++){const Tt=T[V]=Y?Cr(T[V]):At(T[V]);Tt.key!=null&&Se.set(Tt.key,V)}let ue,$e=0;const Oe=J-ie+1;let mt=!1,ot=0;const ii=new Array(Oe);for(V=0;V<Oe;V++)ii[V]=0;for(V=ne;V<=j;V++){const Tt=w[V];if($e>=Oe){pe(Tt,U,q,!0);continue}let Wt;if(Tt.key!=null)Wt=Se.get(Tt.key);else for(ue=ie;ue<=J;ue++)if(ii[ue-ie]===0&&Bt(Tt,T[ue])){Wt=ue;break}Wt===void 0?pe(Tt,U,q,!0):(ii[Wt-ie]=V+1,Wt>=ot?ot=Wt:mt=!0,p(Tt,T[Wt],L,null,U,q,te,G,Y),$e++)}const ic=mt?$0(ii):Rn;for(ue=ic.length-1,V=Oe-1;V>=0;V--){const Tt=ie+V,Wt=T[Tt],oc=T[Tt+1],sc=Tt+1<W?oc.el||Bv(oc):H;ii[V]===0?p(null,Wt,L,sc,U,q,te,G,Y):mt&&(ue<0||V!==ic[ue]?fe(Wt,L,sc,2):ue--)}}},fe=(w,T,L,H,U=null)=>{const{el:q,type:te,transition:G,children:Y,shapeFlag:V}=w;if(V&6){fe(w.component.subTree,T,L,H);return}if(V&128){w.suspense.move(T,L,H);return}if(V&64){te.move(w,T,L,re);return}if(te===lt){n(q,T,L);for(let j=0;j<Y.length;j++)fe(Y[j],T,L,H);n(w.anchor,T,L);return}if(te===Ii){g(w,T,L);return}if(H!==2&&V&1&&G)if(H===0)G.beforeEnter(q),n(q,T,L),Qe(()=>G.enter(q),U);else{const{leave:j,delayLeave:J,afterLeave:ne}=G,ie=()=>{w.ctx.isUnmounted?i(q):n(q,T,L)},Se=()=>{q._isLeaving&&q[ur](!0),j(q,()=>{ie(),ne&&ne()})};J?J(q,ie,Se):Se()}else n(q,T,L)},pe=(w,T,L,H=!1,U=!1)=>{const{type:q,props:te,ref:G,children:Y,dynamicChildren:V,shapeFlag:W,patchFlag:j,dirs:J,cacheIndex:ne}=w;if(j===-2&&(U=!1),G!=null&&(pr(),Dn(G,null,L,w,!0),gr()),ne!=null&&(T.renderCache[ne]=void 0),W&256){T.ctx.deactivate(w);return}const ie=W&1&&J,Se=!Ur(w);let ue;if(Se&&(ue=te&&te.onVnodeBeforeUnmount)&&yt(ue,T,w),W&6)de(w.component,L,H);else{if(W&128){w.suspense.unmount(L,H);return}ie&&zt(w,null,T,"beforeUnmount"),W&64?w.type.remove(w,T,L,re,H):V&&!V.hasOnce&&(q!==lt||j>0&&j&64)?me(V,T,L,!1,!0):(q===lt&&j&384||!U&&W&16)&&me(Y,T,L),H&&ye(w)}(Se&&(ue=te&&te.onVnodeUnmounted)||ie)&&Qe(()=>{ue&&yt(ue,T,w),ie&&zt(w,null,T,"unmounted")},L)},ye=w=>{const{type:T,el:L,anchor:H,transition:U}=w;if(T===lt){be(L,H);return}if(T===Ii){y(w);return}const q=()=>{i(L),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(w.shapeFlag&1&&U&&!U.persisted){const{leave:te,delayLeave:G}=U,Y=()=>te(L,q);G?G(w.el,q,Y):Y()}else q()},be=(w,T)=>{let L;for(;w!==T;)L=d(w),i(w),w=L;i(T)},de=(w,T,L)=>{const{bum:H,scope:U,job:q,subTree:te,um:G,m:Y,a:V}=w;us(Y),us(V),H&&xn(H),U.stop(),q&&(q.flags|=8,pe(te,w,T,L)),G&&Qe(G,T),Qe(()=>{w.isUnmounted=!0},T)},me=(w,T,L,H=!1,U=!1,q=0)=>{for(let te=q;te<w.length;te++)pe(w[te],T,L,H,U)},M=w=>{if(w.shapeFlag&6)return M(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();const T=d(w.anchor||w.el),L=T&&T[n0];return L?d(L):T};let Z=!1;const X=(w,T,L)=>{let H;w==null?T._vnode&&(pe(T._vnode,null,null,!0),H=T._vnode.component):p(T._vnode||null,w,T,null,null,null,L),T._vnode=w,Z||(Z=!0,cc(H),is(),Z=!1)},re={p,um:pe,m:fe,r:ye,mt:$,mc:C,pc:K,pbc:P,n:M,o:e};let F,ge;return t&&([F,ge]=t(re)),{render:X,hydrate:F,createApp:k0(X,F)}}function oa({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Vr({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Uv(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fv(e,t,r=!1){const n=e.children,i=t.children;if(ve(n)&&ve(i))for(let o=0;o<n.length;o++){const s=n[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=Cr(i[o]),a.el=s.el),!r&&a.patchFlag!==-2&&Fv(s,a)),a.type===sn&&(a.patchFlag!==-1?a.el=s.el:a.__elIndex=o+(e.type===lt?1:0)),a.type===Ye&&!a.el&&(a.el=s.el)}}function $0(e){const t=e.slice(),r=[0];let n,i,o,s,a;const u=e.length;for(n=0;n<u;n++){const c=e[n];if(c!==0){if(i=r[r.length-1],e[i]<c){t[n]=i,r.push(n);continue}for(o=0,s=r.length-1;o<s;)a=o+s>>1,e[r[a]]<c?o=a+1:s=a;c<e[r[o]]&&(o>0&&(t[n]=r[o-1]),r[o]=n)}}for(o=r.length,s=r[o-1];o-- >0;)r[o]=s,s=t[s];return r}function Hv(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Hv(t)}function us(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Bv(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Bv(t.subTree):null}const ls=e=>e.__isSuspense;let nu=0;const W0={name:"Suspense",__isSuspense:!0,process(e,t,r,n,i,o,s,a,u,c){if(e==null)G0(t,r,n,i,o,s,a,u,c);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}K0(e,t,r,n,i,s,a,u,c)}},hydrate:z0,normalize:X0},jv=W0;function Wi(e,t){const r=e.props&&e.props[t];he(r)&&r()}function G0(e,t,r,n,i,o,s,a,u){const{p:c,o:{createElement:l}}=u,f=l("div"),d=e.suspense=qv(e,i,n,t,f,r,o,s,a,u);c(null,d.pendingBranch=e.ssContent,f,null,n,d,o,s),d.deps>0?(Wi(e,"onPending"),Wi(e,"onFallback"),c(null,e.ssFallback,t,r,n,null,o,s),Un(d,e.ssFallback)):d.resolve(!1,!0)}function K0(e,t,r,n,i,o,s,a,{p:u,um:c,o:{createElement:l}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:v,pendingBranch:p,isInFallback:b,isHydrating:E}=f;if(p)f.pendingBranch=d,Bt(p,d)?(u(p,d,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0?f.resolve():b&&(E||(u(v,h,r,n,i,null,o,s,a),Un(f,h)))):(f.pendingId=nu++,E?(f.isHydrating=!1,f.activeBranch=p):c(p,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=l("div"),b?(u(null,d,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0?f.resolve():(u(v,h,r,n,i,null,o,s,a),Un(f,h))):v&&Bt(v,d)?(u(v,d,r,n,i,f,o,s,a),f.resolve(!0)):(u(null,d,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0&&f.resolve()));else if(v&&Bt(v,d))u(v,d,r,n,i,f,o,s,a),Un(f,d);else if(Wi(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=nu++,u(null,d,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0)f.resolve();else{const{timeout:m,pendingId:g}=f;m>0?setTimeout(()=>{f.pendingId===g&&f.fallback(h)},m):m===0&&f.fallback(h)}}function qv(e,t,r,n,i,o,s,a,u,c,l=!1){const{p:f,m:d,um:h,n:v,o:{parentNode:p,remove:b}}=c;let E;const m=Y0(e);m&&t&&t.pendingBranch&&(E=t.pendingId,t.deps++);const g=e.props?Mh(e.props.timeout):void 0,y=o,_={vnode:e,parent:t,parentComponent:r,namespace:s,container:n,hiddenContainer:i,deps:0,pendingId:nu++,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!l,isHydrating:l,isUnmounted:!1,effects:[],resolve(S=!1,A=!1){const{vnode:C,activeBranch:I,pendingBranch:P,pendingId:R,effects:k,parentComponent:N,container:$,isInFallback:ee}=_;let B=!1;_.isHydrating?_.isHydrating=!1:S||(B=I&&P.transition&&P.transition.mode==="out-in",B&&(I.transition.afterLeave=()=>{R===_.pendingId&&(d(P,$,o===y?v(I):o,0),Ja(k),ee&&C.ssFallback&&(C.ssFallback.el=null))}),I&&(p(I.el)===$&&(o=v(I)),h(I,N,_,!0),!B&&ee&&C.ssFallback&&Qe(()=>C.ssFallback.el=null,_)),B||d(P,$,o,0)),Un(_,P),_.pendingBranch=null,_.isInFallback=!1;let z=_.parent,K=!1;for(;z;){if(z.pendingBranch){z.effects.push(...k),K=!0;break}z=z.parent}!K&&!B&&Ja(k),_.effects=[],m&&t&&t.pendingBranch&&E===t.pendingId&&(t.deps--,t.deps===0&&!A&&t.resolve()),Wi(C,"onResolve")},fallback(S){if(!_.pendingBranch)return;const{vnode:A,activeBranch:C,parentComponent:I,container:P,namespace:R}=_;Wi(A,"onFallback");const k=v(C),N=()=>{_.isInFallback&&(f(null,S,P,k,I,null,R,a,u),Un(_,S))},$=S.transition&&S.transition.mode==="out-in";$&&(C.transition.afterLeave=N),_.isInFallback=!0,h(C,I,null,!0),$||N()},move(S,A,C){_.activeBranch&&d(_.activeBranch,S,A,C),_.container=S},next(){return _.activeBranch&&v(_.activeBranch)},registerDep(S,A,C){const I=!!_.pendingBranch;I&&_.deps++;const P=S.vnode.el;S.asyncDep.catch(R=>{Zn(R,S,0)}).then(R=>{if(S.isUnmounted||_.isUnmounted||_.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:k}=S;ou(S,R),P&&(k.el=P);const N=!P&&S.subTree.el;A(S,k,p(P||S.subTree.el),P?null:v(S.subTree),_,s,C),N&&(k.placeholder=null,b(N)),Ls(S,k.el),I&&--_.deps===0&&_.resolve()})},unmount(S,A){_.isUnmounted=!0,_.activeBranch&&h(_.activeBranch,r,S,A),_.pendingBranch&&h(_.pendingBranch,r,S,A)}};return _}function z0(e,t,r,n,i,o,s,a,u){const c=t.suspense=qv(t,n,r,e.parentNode,document.createElement("div"),null,i,o,s,a,!0),l=u(e,c.pendingBranch=t.ssContent,r,c,o,s);return c.deps===0&&c.resolve(!1,!0),l}function X0(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=Tc(n?r.default:r),e.ssFallback=n?Tc(r.fallback):De(Ye)}function Tc(e){let t;if(he(e)){const r=$n&&e._c;r&&(e._d=!1,bt()),e=e(),r&&(e._d=!0,t=Et,$v())}return ve(e)&&(e=x0(e)),e=At(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Vv(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):Ja(e)}function Un(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;r.el=i,n&&n.subTree===r&&(n.vnode.el=i,Ls(n,i))}function Y0(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const lt=Symbol.for("v-fgt"),sn=Symbol.for("v-txt"),Ye=Symbol.for("v-cmt"),Ii=Symbol.for("v-stc"),ki=[];let Et=null;function bt(e=!1){ki.push(Et=e?null:[])}function $v(){ki.pop(),Et=ki[ki.length-1]||null}let $n=1;function cs(e,t=!1){$n+=e,e<0&&Et&&t&&(Et.hasOnce=!0)}function Wv(e){return e.dynamicChildren=$n>0?Et||Rn:null,$v(),$n>0&&Et&&Et.push(e),e}function Cn(e,t,r,n,i,o){return Wv(xr(e,t,r,n,i,o,!0))}function Qr(e,t,r,n,i){return Wv(De(e,t,r,n,i,!0))}function Wn(e){return e?e.__v_isVNode===!0:!1}function Bt(e,t){return e.type===t.type&&e.key===t.key}const Gv=({key:e})=>e??null,Uo=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||Ve(e)||he(e)?{i:Ct,r:e,k:t,f:!!r}:e:null);function xr(e,t=null,r=null,n=0,i=null,o=e===lt?0:1,s=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gv(t),ref:t&&Uo(t),scopeId:av,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ct};return a?(Sl(u,r),o&128&&e.normalize(u)):r&&(u.shapeFlag|=Be(r)?8:16),$n>0&&!s&&Et&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&Et.push(u),u}const De=J0;function J0(e,t=null,r=null,n=0,i=null,o=!1){if((!e||e===Sv)&&(e=Ye),Wn(e)){const a=xt(e,t,!0);return r&&Sl(a,r),$n>0&&!o&&Et&&(a.shapeFlag&6?Et[Et.indexOf(e)]=a:Et.push(a)),a.patchFlag=-2,a}if(ub(e)&&(e=e.__vccOpts),t){t=Kv(t);let{class:a,style:u}=t;a&&!Be(a)&&(t.class=Ps(a)),Ue(u)&&(Rs(u)&&!ve(u)&&(u=Je({},u)),t.style=ks(u))}const s=Be(e)?1:ls(e)?128:lv(e)?64:Ue(e)?4:he(e)?2:0;return xr(e,t,r,n,i,s,o,!0)}function Kv(e){return e?Rs(e)||Rv(e)?Je({},e):e:null}function xt(e,t,r=!1,n=!1){const{props:i,ref:o,patchFlag:s,children:a,transition:u}=e,c=t?eb(i||{},t):i,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Gv(c),ref:t&&t.ref?r&&o?ve(o)?o.concat(Uo(t)):[o,Uo(t)]:Uo(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==lt?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xt(e.ssContent),ssFallback:e.ssFallback&&xt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&qn(l,u.clone(l)),l}function Pi(e=" ",t=0){return De(sn,null,e,t)}function Q0(e,t){const r=De(Ii,null,e);return r.staticCount=t,r}function Z0(e="",t=!1){return t?(bt(),Qr(Ye,null,e)):De(Ye,null,e)}function At(e){return e==null||typeof e=="boolean"?De(Ye):ve(e)?De(lt,null,e.slice()):Wn(e)?Cr(e):De(sn,null,String(e))}function Cr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xt(e)}function Sl(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ve(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Sl(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!Rv(t)?t._ctx=Ct:i===3&&Ct&&(Ct.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else he(t)?(t={default:t,_ctx:Ct},r=32):(t=String(t),n&64?(r=16,t=[Pi(t)]):r=8);e.children=t,e.shapeFlag|=r}function eb(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=Ps([t.class,n.class]));else if(i==="style")t.style=ks([t.style,n.style]);else if(Ji(i)){const o=t[i],s=n[i];s&&o!==s&&!(ve(o)&&o.includes(s))&&(t[i]=o?[].concat(o,s):s)}else i!==""&&(t[i]=n[i])}return t}function yt(e,t,r,n=null){qt(e,t,7,[r,n])}const tb=Cv();let rb=0;function nb(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||tb,o={uid:rb++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Bh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:xv(n,i),emitsOptions:Iv(n,i),emit:null,emitted:null,propsDefaults:xe,inheritAttrs:n.inheritAttrs,ctx:xe,data:xe,props:xe,attrs:xe,slots:xe,refs:xe,setupState:xe,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=R0.bind(null,o),e.ce&&e.ce(o),o}let it=null;const hn=()=>it||Ct;let fs,iu;{const e=Is(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};fs=t("__VUE_INSTANCE_SETTERS__",r=>it=r),iu=t("__VUE_SSR_SETTERS__",r=>Gn=r)}const to=e=>{const t=it;return fs(e),e.scope.on(),()=>{e.scope.off(),fs(t)}},Ac=()=>{it&&it.scope.off(),fs(null)};function zv(e){return e.vnode.shapeFlag&4}let Gn=!1;function ib(e,t=!1,r=!1){t&&iu(t);const{props:n,children:i}=e.vnode,o=zv(e);D0(e,n,o,t),B0(e,i,r||t);const s=o?ob(e,t):void 0;return t&&iu(!1),s}function ob(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,_0);const{setup:n}=r;if(n){pr();const i=e.setupContext=n.length>1?ab(e):null,o=to(e),s=Zi(n,e,0,[e.props,i]),a=al(s);if(gr(),o(),(a||e.sp)&&!Ur(e)&&bl(e),a){if(s.then(Ac,Ac),t)return s.then(u=>{ou(e,u)}).catch(u=>{Zn(u,e,0)});e.asyncDep=s}else ou(e,s)}else Xv(e)}function ou(e,t,r){he(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ue(t)&&(e.setupState=rv(t)),Xv(e)}function Xv(e,t,r){const n=e.type;e.render||(e.render=n.render||Jt);{const i=to(e);pr();try{S0(e)}finally{gr(),i()}}}const sb={get(e,t){return ut(e,"get",""),e[t]}};function ab(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,sb),slots:e.slots,emit:e.emit,expose:t}}function Ms(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(rv(By(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ci)return Ci[r](e)},has(t,r){return r in t||r in Ci}})):e.proxy}function su(e,t=!0){return he(e)?e.displayName||e.name:e.name||t&&e.__name}function ub(e){return he(e)&&"__vccOpts"in e}const We=(e,t)=>zy(e,t,Gn);function Ke(e,t,r){try{cs(-1);const n=arguments.length;return n===2?Ue(t)&&!ve(t)?Wn(t)?De(e,null,[t]):De(e,t):De(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Wn(r)&&(r=[r]),De(e,t,r))}finally{cs(1)}}const lb="3.5.27";let au;const Cc=typeof window<"u"&&window.trustedTypes;if(Cc)try{au=Cc.createPolicy("vue",{createHTML:e=>e})}catch{}const Yv=au?e=>au.createHTML(e):e=>e,cb="http://www.w3.org/2000/svg",fb="http://www.w3.org/1998/Math/MathML",ar=typeof document<"u"?document:null,Ic=ar&&ar.createElement("template"),db={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t==="svg"?ar.createElementNS(cb,e):t==="mathml"?ar.createElementNS(fb,e):r?ar.createElement(e,{is:r}):ar.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>ar.createTextNode(e),createComment:e=>ar.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ar.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,o){const s=r?r.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===o||!(i=i.nextSibling)););else{Ic.innerHTML=Yv(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=Ic.content;if(n==="svg"||n==="mathml"){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,r)}return[s?s.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},_r="transition",si="animation",Gi=Symbol("_vtc"),Jv={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},hb=Je({},cv,Jv),vb=e=>(e.displayName="Transition",e.props=hb,e),pb=vb((e,{slots:t})=>Ke(s0,gb(e),t)),$r=(e,t=[])=>{ve(e)?e.forEach(r=>r(...t)):e&&e(...t)},kc=e=>e?ve(e)?e.some(t=>t.length>1):e.length>1:!1;function gb(e){const t={};for(const k in e)k in Jv||(t[k]=e[k]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:o=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:a=`${r}-enter-to`,appearFromClass:u=o,appearActiveClass:c=s,appearToClass:l=a,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,v=mb(i),p=v&&v[0],b=v&&v[1],{onBeforeEnter:E,onEnter:m,onEnterCancelled:g,onLeave:y,onLeaveCancelled:_,onBeforeAppear:S=E,onAppear:A=m,onAppearCancelled:C=g}=t,I=(k,N,$,ee)=>{k._enterCancelled=ee,Wr(k,N?l:a),Wr(k,N?c:s),$&&$()},P=(k,N)=>{k._isLeaving=!1,Wr(k,f),Wr(k,h),Wr(k,d),N&&N()},R=k=>(N,$)=>{const ee=k?A:m,B=()=>I(N,k,$);$r(ee,[N,B]),Pc(()=>{Wr(N,k?u:o),ir(N,k?l:a),kc(ee)||Rc(N,n,p,B)})};return Je(t,{onBeforeEnter(k){$r(E,[k]),ir(k,o),ir(k,s)},onBeforeAppear(k){$r(S,[k]),ir(k,u),ir(k,c)},onEnter:R(!1),onAppear:R(!0),onLeave(k,N){k._isLeaving=!0;const $=()=>P(k,N);ir(k,f),k._enterCancelled?(ir(k,d),Nc(k)):(Nc(k),ir(k,d)),Pc(()=>{k._isLeaving&&(Wr(k,f),ir(k,h),kc(y)||Rc(k,n,b,$))}),$r(y,[k,$])},onEnterCancelled(k){I(k,!1,void 0,!0),$r(g,[k])},onAppearCancelled(k){I(k,!0,void 0,!0),$r(C,[k])},onLeaveCancelled(k){P(k),$r(_,[k])}})}function mb(e){if(e==null)return null;if(Ue(e))return[sa(e.enter),sa(e.leave)];{const t=sa(e);return[t,t]}}function sa(e){return Mh(e)}function ir(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Gi]||(e[Gi]=new Set)).add(t)}function Wr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[Gi];r&&(r.delete(t),r.size||(e[Gi]=void 0))}function Pc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let yb=0;function Rc(e,t,r,n){const i=e._endId=++yb,o=()=>{i===e._endId&&n()};if(r!=null)return setTimeout(o,r);const{type:s,timeout:a,propCount:u}=bb(e,t);if(!s)return n();const c=s+"end";let l=0;const f=()=>{e.removeEventListener(c,d),o()},d=h=>{h.target===e&&++l>=u&&f()};setTimeout(()=>{l<u&&f()},a+1),e.addEventListener(c,d)}function bb(e,t){const r=window.getComputedStyle(e),n=v=>(r[v]||"").split(", "),i=n(`${_r}Delay`),o=n(`${_r}Duration`),s=Oc(i,o),a=n(`${si}Delay`),u=n(`${si}Duration`),c=Oc(a,u);let l=null,f=0,d=0;t===_r?s>0&&(l=_r,f=s,d=o.length):t===si?c>0&&(l=si,f=c,d=u.length):(f=Math.max(s,c),l=f>0?s>c?_r:si:null,d=l?l===_r?o.length:u.length:0);const h=l===_r&&/\b(?:transform|all)(?:,|$)/.test(n(`${_r}Property`).toString());return{type:l,timeout:f,propCount:d,hasTransform:h}}function Oc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>xc(r)+xc(e[n])))}function xc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Nc(e){return(e?e.ownerDocument:document).body.offsetHeight}function Eb(e,t,r){const n=e[Gi];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Lc=Symbol("_vod"),_b=Symbol("_vsh"),Sb=Symbol(""),wb=/(?:^|;)\s*display\s*:/;function Tb(e,t,r){const n=e.style,i=Be(r);let o=!1;if(r&&!i){if(t)if(Be(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();r[a]==null&&Fo(n,a,"")}else for(const s in t)r[s]==null&&Fo(n,s,"");for(const s in r)s==="display"&&(o=!0),Fo(n,s,r[s])}else if(i){if(t!==r){const s=n[Sb];s&&(r+=";"+s),n.cssText=r,o=wb.test(r)}}else t&&e.removeAttribute("style");Lc in e&&(e[Lc]=o?n.display:"",e[_b]&&(n.display="none"))}const Mc=/\s*!important$/;function Fo(e,t,r){if(ve(r))r.forEach(n=>Fo(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=Ab(e,t);Mc.test(r)?e.setProperty(dn(n),r.replace(Mc,""),"important"):e[n]=r}}const Dc=["Webkit","Moz","ms"],aa={};function Ab(e,t){const r=aa[t];if(r)return r;let n=Mt(t);if(n!=="filter"&&n in e)return aa[t]=n;n=Cs(n);for(let i=0;i<Dc.length;i++){const o=Dc[i]+n;if(o in e)return aa[t]=o}return t}const Uc="http://www.w3.org/1999/xlink";function Fc(e,t,r,n,i,o=yy(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Uc,t.slice(6,t.length)):e.setAttributeNS(Uc,t,r):r==null||o&&!Dh(r)?e.removeAttribute(t):e.setAttribute(t,o?"":Hr(r)?String(r):r)}function Hc(e,t,r,n,i){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?Yv(r):r);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,u=r==null?e.type==="checkbox"?"on":"":String(r);(a!==u||!("_value"in e))&&(e.value=u),r==null&&e.removeAttribute(t),e._value=r;return}let s=!1;if(r===""||r==null){const a=typeof e[t];a==="boolean"?r=Dh(r):r==null&&a==="string"?(r="",s=!0):a==="number"&&(r=0,s=!0)}try{e[t]=r}catch{}s&&e.removeAttribute(i||t)}function Sn(e,t,r,n){e.addEventListener(t,r,n)}function Cb(e,t,r,n){e.removeEventListener(t,r,n)}const Bc=Symbol("_vei");function Ib(e,t,r,n,i=null){const o=e[Bc]||(e[Bc]={}),s=o[t];if(n&&s)s.value=n;else{const[a,u]=kb(t);if(n){const c=o[t]=Ob(n,i);Sn(e,a,c,u)}else s&&(Cb(e,a,s,u),o[t]=void 0)}}const jc=/(?:Once|Passive|Capture)$/;function kb(e){let t;if(jc.test(e)){t={};let n;for(;n=e.match(jc);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):dn(e.slice(2)),t]}let ua=0;const Pb=Promise.resolve(),Rb=()=>ua||(Pb.then(()=>ua=0),ua=Date.now());function Ob(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;qt(xb(n,r.value),t,5,[n])};return r.value=e,r.attached=Rb(),r}function xb(e,t){if(ve(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const qc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Nb=(e,t,r,n,i,o)=>{const s=i==="svg";t==="class"?Eb(e,n,s):t==="style"?Tb(e,r,n):Ji(t)?ol(t)||Ib(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Lb(e,t,n,s))?(Hc(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Fc(e,t,n,s,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Be(n))?Hc(e,Mt(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Fc(e,t,n,s))};function Lb(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&qc(t)&&he(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return qc(t)&&Be(r)?!1:t in e}const Vc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ve(t)?r=>xn(t,r):t};function Mb(e){e.target.composing=!0}function $c(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const la=Symbol("_assign");function Wc(e,t,r){return t&&(e=e.trim()),r&&(e=ul(e)),e}const yN={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e[la]=Vc(i);const o=n||i.props&&i.props.type==="number";Sn(e,t?"change":"input",s=>{s.target.composing||e[la](Wc(e.value,r,o))}),(r||o)&&Sn(e,"change",()=>{e.value=Wc(e.value,r,o)}),t||(Sn(e,"compositionstart",Mb),Sn(e,"compositionend",$c),Sn(e,"change",$c))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:i,number:o}},s){if(e[la]=Vc(s),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?ul(e.value):e.value,u=t??"";a!==u&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||i&&e.value.trim()===u)||(e.value=u))}},Db=["ctrl","shift","alt","meta"],Ub={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Db.some(r=>e[`${r}Key`]&&!t.includes(r))},bN=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=((i,...o)=>{for(let s=0;s<t.length;s++){const a=Ub[t[s]];if(a&&a(i,t))return}return e(i,...o)}))},Qv=Je({patchProp:Nb},db);let Ri,Gc=!1;function Fb(){return Ri||(Ri=q0(Qv))}function Hb(){return Ri=Gc?Ri:V0(Qv),Gc=!0,Ri}const Bb=((...e)=>{const t=Fb().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=ep(n);if(!i)return;const o=t._component;!he(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=r(i,!1,Zv(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t}),jb=((...e)=>{const t=Hb().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=ep(n);if(i)return r(i,!0,Zv(i))},t});function Zv(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ep(e){return Be(e)?document.querySelector(e):e}const qb=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Vb=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,$b=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Wb(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Gb(e);return}return t}function Gb(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function ds(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!$b.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(qb.test(e)||Vb.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Wb)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const Kb=/#/g,zb=/&/g,Xb=/\//g,Yb=/=/g,wl=/\+/g,Jb=/%5e/gi,Qb=/%60/gi,Zb=/%7c/gi,eE=/%20/gi,tE=/%2f/gi;function rE(e){return encodeURI(""+e).replace(Zb,"|")}function uu(e){return rE(typeof e=="string"?e:JSON.stringify(e)).replace(wl,"%2B").replace(eE,"+").replace(Kb,"%23").replace(zb,"%26").replace(Qb,"`").replace(Jb,"^").replace(Xb,"%2F")}function ca(e){return uu(e).replace(Yb,"%3D")}function Ki(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Kc(e){return Ki(e.replace(tE,"%252F"))}function nE(e){return Ki(e.replace(wl," "))}function iE(e){return Ki(e.replace(wl," "))}function Tl(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const r of e.split("&")){const n=r.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const i=nE(n[1]);if(i==="__proto__"||i==="constructor")continue;const o=iE(n[2]||"");t[i]===void 0?t[i]=o:Array.isArray(t[i])?t[i].push(o):t[i]=[t[i],o]}return t}function oE(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${ca(e)}=${uu(r)}`).join("&"):`${ca(e)}=${uu(t)}`:ca(e)}function sE(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>oE(t,e[t])).filter(Boolean).join("&")}const aE=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,uE=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,lE=/^([/\\]\s*){2,}[^/\\]/,cE=/^[\s\0]*(blob|data|javascript|vbscript):$/i,fE=/\/$|\/\?|\/#/,dE=/^\.?\//;function qr(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?aE.test(e):uE.test(e)||(t.acceptRelative?lE.test(e):!1)}function hE(e){return!!e&&cE.test(e)}function lu(e="",t){return t?fE.test(e):e.endsWith("/")}function zi(e="",t){if(!t)return(lu(e)?e.slice(0,-1):e)||"/";if(!lu(e,!0))return e||"/";let r=e,n="";const i=e.indexOf("#");i!==-1&&(r=e.slice(0,i),n=e.slice(i));const[o,...s]=r.split("?");return((o.endsWith("/")?o.slice(0,-1):o)||"/")+(s.length>0?`?${s.join("?")}`:"")+n}function tp(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(lu(e,!0))return e||"/";let r=e,n="";const i=e.indexOf("#");if(i!==-1&&(r=e.slice(0,i),n=e.slice(i),!r))return n;const[o,...s]=r.split("?");return o+"/"+(s.length>0?`?${s.join("?")}`:"")+n}function vE(e,t){if(np(t)||qr(e))return e;const r=zi(t);if(e.startsWith(r)){const n=e[r.length];if(!n||n==="/"||n==="?")return e}return Al(r,e)}function zc(e,t){if(np(t))return e;const r=zi(t);if(!e.startsWith(r))return e;const n=e[r.length];if(n&&n!=="/"&&n!=="?")return e;const i=e.slice(r.length);return i[0]==="/"?i:"/"+i}function rp(e,t){const r=sp(e),n={...Tl(r.search),...t};return r.search=sE(n),mE(r)}function np(e){return!e||e==="/"}function pE(e){return e&&e!=="/"}function Al(e,...t){let r=e||"";for(const n of t.filter(i=>pE(i)))if(r){const i=n.replace(dE,"");r=tp(r)+i}else r=n;return r}function ip(...e){const t=/\/(?!\/)/,r=e.filter(Boolean),n=[];let i=0;for(const s of r)if(!(!s||s==="/")){for(const[a,u]of s.split(t).entries())if(!(!u||u===".")){if(u===".."){if(n.length===1&&qr(n[0]))continue;n.pop(),i--;continue}if(a===1&&n[n.length-1]?.endsWith(":/")){n[n.length-1]+="/"+u;continue}n.push(u),i++}}let o=n.join("/");return i>=0?r[0]?.startsWith("/")&&!o.startsWith("/")?o="/"+o:r[0]?.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*i)+o,r[r.length-1]?.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function gE(e,t){return Ki(zi(e))===Ki(zi(t))}const op=Symbol.for("ufo:protocolRelative");function sp(e="",t){const r=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){const[,f,d=""]=r;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!qr(e,{acceptRelative:!0}))return Xc(e);const[,n="",i,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,s="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];n==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:u,search:c,hash:l}=Xc(a);return{protocol:n.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:s,pathname:u,search:c,hash:l,[op]:!n}}function Xc(e=""){const[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}function mE(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",i=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[op]?(e.protocol||"")+"//":"")+i+o+t+r+n}let yE=class extends Error{constructor(t,r){super(t,r),this.name="FetchError",r?.cause&&!this.cause&&(this.cause=r.cause)}};function bE(e){const t=e.error?.message||e.error?.toString()||"",r=e.request?.method||e.options?.method||"GET",n=e.request?.url||String(e.request)||"/",i=`[${r}] ${JSON.stringify(n)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",s=`${i}: ${o}${t?` ${t}`:""}`,a=new yE(s,e.error?{cause:e.error}:void 0);for(const u of["request","options","response"])Object.defineProperty(a,u,{get(){return e[u]}});for(const[u,c]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,u,{get(){return e.response&&e.response[c]}});return a}const EE=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Yc(e="GET"){return EE.has(e.toUpperCase())}function _E(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const SE=new Set(["image/svg","application/xml","application/xhtml","application/html"]),wE=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function TE(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return wE.test(t)?"json":t==="text/event-stream"?"stream":SE.has(t)||t.startsWith("text/")?"text":"blob"}function AE(e,t,r,n){const i=CE(t?.headers??e?.headers,r?.headers,n);let o;return(r?.query||r?.params||t?.params||t?.query)&&(o={...r?.params,...r?.query,...t?.params,...t?.query}),{...r,...t,query:o,params:o,headers:i}}function CE(e,t,r){if(!t)return new r(e);const n=new r(t);if(e)for(const[i,o]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))n.set(i,o);return n}async function go(e,t){if(t)if(Array.isArray(t))for(const r of t)await r(e);else await t(e)}const IE=new Set([408,409,425,429,500,502,503,504]),kE=new Set([101,204,205,304]);function ap(e={}){const{fetch:t=globalThis.fetch,Headers:r=globalThis.Headers,AbortController:n=globalThis.AbortController}=e;async function i(a){const u=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!u){let l;typeof a.options.retry=="number"?l=a.options.retry:l=Yc(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(l>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):IE.has(f))){const d=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return d>0&&await new Promise(h=>setTimeout(h,d)),o(a.request,{...a.options,retry:l-1})}}const c=bE(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,o),c}const o=async function(u,c={}){const l={request:u,options:AE(u,c,e.defaults,r),response:void 0,error:void 0};if(l.options.method&&(l.options.method=l.options.method.toUpperCase()),l.options.onRequest&&(await go(l,l.options.onRequest),l.options.headers instanceof r||(l.options.headers=new r(l.options.headers||{}))),typeof l.request=="string"&&(l.options.baseURL&&(l.request=vE(l.request,l.options.baseURL)),l.options.query&&(l.request=rp(l.request,l.options.query),delete l.options.query),"query"in l.options&&delete l.options.query,"params"in l.options&&delete l.options.params),l.options.body&&Yc(l.options.method))if(_E(l.options.body)){const h=l.options.headers.get("content-type");typeof l.options.body!="string"&&(l.options.body=h==="application/x-www-form-urlencoded"?new URLSearchParams(l.options.body).toString():JSON.stringify(l.options.body)),h||l.options.headers.set("content-type","application/json"),l.options.headers.has("accept")||l.options.headers.set("accept","application/json")}else("pipeTo"in l.options.body&&typeof l.options.body.pipeTo=="function"||typeof l.options.body.pipe=="function")&&("duplex"in l.options||(l.options.duplex="half"));let f;if(!l.options.signal&&l.options.timeout){const h=new n;f=setTimeout(()=>{const v=new Error("[TimeoutError]: The operation was aborted due to timeout");v.name="TimeoutError",v.code=23,h.abort(v)},l.options.timeout),l.options.signal=h.signal}try{l.response=await t(l.request,l.options)}catch(h){return l.error=h,l.options.onRequestError&&await go(l,l.options.onRequestError),await i(l)}finally{f&&clearTimeout(f)}if((l.response.body||l.response._bodyInit)&&!kE.has(l.response.status)&&l.options.method!=="HEAD"){const h=(l.options.parseResponse?"json":l.options.responseType)||TE(l.response.headers.get("content-type")||"");switch(h){case"json":{const v=await l.response.text(),p=l.options.parseResponse||ds;l.response._data=p(v);break}case"stream":{l.response._data=l.response.body||l.response._bodyInit;break}default:l.response._data=await l.response[h]()}}return l.options.onResponse&&await go(l,l.options.onResponse),!l.options.ignoreResponseError&&l.response.status>=400&&l.response.status<600?(l.options.onResponseError&&await go(l,l.options.onResponseError),await i(l)):l.response},s=async function(u,c){return(await o(u,c))._data};return s.raw=o,s.native=(...a)=>t(...a),s.create=(a={},u={})=>ap({...e,...u,defaults:{...e.defaults,...u.defaults,...a}}),s}const hs=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),PE=hs.fetch?(...e)=>hs.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),RE=hs.Headers,OE=hs.AbortController,xE=ap({fetch:PE,Headers:RE,AbortController:OE}),NE=xE,LE=()=>window?.__NUXT__?.config||{},Cl=()=>LE().app,ME=()=>Cl().baseURL,DE=()=>Cl().buildAssetsDir,Il=(...e)=>ip(up(),DE(),...e),up=(...e)=>{const t=Cl(),r=t.cdnURL||t.baseURL;return e.length?ip(r,...e):r};globalThis.__buildAssetsURL=Il,globalThis.__publicAssetsURL=up;globalThis.$fetch||(globalThis.$fetch=NE.create({baseURL:ME()}));"global"in globalThis||(globalThis.global=globalThis);function cu(e,t={},r){for(const n in e){const i=e[n],o=r?`${r}:${n}`:n;typeof i=="object"&&i!==null?cu(i,t,o):typeof i=="function"&&(t[o]=i)}return t}const UE={run:e=>e()},FE=()=>UE,lp=typeof console.createTask<"u"?console.createTask:FE;function HE(e,t){const r=t.shift(),n=lp(r);return e.reduce((i,o)=>i.then(()=>n.run(()=>o(...t))),Promise.resolve())}function BE(e,t){const r=t.shift(),n=lp(r);return Promise.all(e.map(i=>n.run(()=>i(...t))))}function fa(e,t){for(const r of[...e])r(t)}let jE=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,r,n={}){if(!t||typeof r!="function")return()=>{};const i=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!n.allowDeprecated){let s=o.message;s||(s=`${i} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(r),()=>{r&&(this.removeHook(t,r),r=void 0)}}hookOnce(t,r){let n,i=(...o)=>(typeof n=="function"&&n(),n=void 0,i=void 0,r(...o));return n=this.hook(t,i),n}removeHook(t,r){if(this._hooks[t]){const n=this._hooks[t].indexOf(r);n!==-1&&this._hooks[t].splice(n,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,r){this._deprecatedHooks[t]=typeof r=="string"?{to:r}:r;const n=this._hooks[t]||[];delete this._hooks[t];for(const i of n)this.hook(t,i)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const r in t)this.deprecateHook(r,t[r])}addHooks(t){const r=cu(t),n=Object.keys(r).map(i=>this.hook(i,r[i]));return()=>{for(const i of n.splice(0,n.length))i()}}removeHooks(t){const r=cu(t);for(const n in r)this.removeHook(n,r[n])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...r){return r.unshift(t),this.callHookWith(HE,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(BE,t,...r)}callHookWith(t,r,...n){const i=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&fa(this._before,i);const o=t(r in this._hooks?[...this._hooks[r]]:[],n);return o instanceof Promise?o.finally(()=>{this._after&&i&&fa(this._after,i)}):(this._after&&i&&fa(this._after,i),o)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const r=this._before.indexOf(t);r!==-1&&this._before.splice(r,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const r=this._after.indexOf(t);r!==-1&&this._after.splice(r,1)}}}};function qE(){return new jE}function VE(e={}){let t,r=!1;const n=s=>{if(t&&t!==s)throw new Error("Context conflict")};let i;if(e.asyncContext){const s=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;s?i=new s:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const o=()=>{if(i){const s=i.getStore();if(s!==void 0)return s}return t};return{use:()=>{const s=o();if(s===void 0)throw new Error("Context is not available");return s},tryUse:()=>o(),set:(s,a)=>{a||n(s),t=s,r=!0},unset:()=>{t=void 0,r=!1},call:(s,a)=>{n(s),t=s;try{return i?i.run(s,a):a()}finally{r||(t=void 0)}},async callAsync(s,a){t=s;const u=()=>{t=s},c=()=>t===s?u:void 0;fu.add(c);try{const l=i?i.run(s,a):a();return r||(t=void 0),await l}finally{fu.delete(c)}}}}function $E(e={}){const t={};return{get(r,n={}){return t[r]||(t[r]=VE({...e,...n})),t[r]}}}const vs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Jc="__unctx__",WE=vs[Jc]||(vs[Jc]=$E()),GE=(e,t={})=>WE.get(e,t),Qc="__unctx_async_handlers__",fu=vs[Qc]||(vs[Qc]=new Set);function Oi(e){const t=[];for(const i of fu){const o=i();o&&t.push(o)}const r=()=>{for(const i of t)i()};let n=e();return n&&typeof n=="object"&&"catch"in n&&(n=n.catch(i=>{throw r(),i})),[n,r]}const Zc=!1,KE=!1,zE={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},XE=null,YE="#__nuxt",cp="nuxt-app",ef=36e5,JE="vite:preloadError";function fp(e=cp){return GE(e,{asyncContext:!1})}const QE="__nuxt_plugin";function ZE(e){let t=0;const r={_id:e.id||cp||"nuxt-app",_scope:by(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.21.0"},get vue(){return r.vueApp.version}},payload:hr({...e.ssrContext?.payload||{},data:hr({}),state:Br({}),once:new Set,_errors:hr({})}),static:{data:{}},runWithContext(i){return r._scope.active&&!ll()?r._scope.run(()=>tf(r,i)):tf(r,i)},isHydrating:!0,deferHydration(){if(!r.isHydrating)return()=>{};t++;let i=!1;return()=>{if(!i&&(i=!0,t--,t===0))return r.isHydrating=!1,r.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:hr({}),_payloadRevivers:{},...e};{const i=window.__NUXT__;if(i)for(const o in i)switch(o){case"data":case"state":case"_errors":Object.assign(r.payload[o],i[o]);break;default:r.payload[o]=i[o]}}r.hooks=qE(),r.hook=r.hooks.hook,r.callHook=r.hooks.callHook,r.provide=(i,o)=>{const s="$"+i;mo(r,s,o),mo(r.vueApp.config.globalProperties,s,o)},mo(r.vueApp,"$nuxt",r),mo(r.vueApp.config.globalProperties,"$nuxt",r);{window.addEventListener(JE,o=>{r.callHook("app:chunkError",{error:o.payload}),o.payload.message.includes("Unable to preload CSS")&&o.preventDefault()}),window.useNuxtApp||=He;const i=r.hook("app:error",(...o)=>{console.error("[nuxt] error caught during app initialization",...o)});r.hook("app:mounted",i)}const n=r.payload.config;return r.provide("config",n),r}function e_(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function t_(e,t){if(typeof t=="function"){const{provide:r}=await e.runWithContext(()=>t(e))||{};if(r&&typeof r=="object")for(const n in r)e.provide(n,r[n])}}async function r_(e,t){const r=new Set,n=[],i=[];let o,s=0;async function a(u){const c=u.dependsOn?.filter(l=>t.some(f=>f._name===l)&&!r.has(l))??[];if(c.length>0)n.push([new Set(c),u]);else{const l=t_(e,u).then(async()=>{u._name&&(r.add(u._name),await Promise.all(n.map(async([f,d])=>{f.has(u._name)&&(f.delete(u._name),f.size===0&&(s++,await a(d)))})))}).catch(f=>{if(!u.parallel&&!e.payload.error)throw f;o||=f});u.parallel?i.push(l):await l}}for(const u of t)e_(e,u);for(const u of t)await a(u);if(await Promise.all(i),s)for(let u=0;u<s;u++)await Promise.all(i);if(o)throw e.payload.error||o}function rr(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[QE]:!0,_name:t})}function tf(e,t,r){const n=()=>t();return fp(e._id).set(e),e.vueApp.runWithContext(n)}function dp(e){let t;return Os()&&(t=hn()?.appContext.app.$nuxt),t||=fp(e).tryUse(),t||null}function He(e){const t=dp(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function ro(e){return He().$config}function mo(e,t,r){Object.defineProperty(e,t,{get:()=>r})}function da(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function du(e,t,r=".",n){if(!da(t))return du(e,{},r,n);const i=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const s=e[o];s!=null&&(n&&n(i,o,s,r)||(Array.isArray(s)&&Array.isArray(i[o])?i[o]=[...s,...i[o]]:da(s)&&da(i[o])?i[o]=du(s,i[o],(r?`${r}.`:"")+o.toString(),n):i[o]=s))}return i}function n_(e){return(...t)=>t.reduce((r,n)=>du(r,n,"",e),{})}const hp=n_();function i_(e,t){try{return t in e}catch{return!1}}class rf extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,r={}){super(t,r),r.cause&&!this.cause&&(this.cause=r.cause)}toJSON(){const t={message:this.message,statusCode:hu(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=vp(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function o_(e){if(typeof e=="string")return new rf(e);if(s_(e))return e;const t=new rf(e.message??e.statusMessage??"",{cause:e.cause||e});if(i_(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=hu(e.statusCode,t.statusCode):e.status&&(t.statusCode=hu(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const r=t.statusMessage;vp(t.statusMessage)!==r&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function s_(e){return e?.constructor?.__h3_error__===!0}const a_=/[^\u0009\u0020-\u007E]/g;function vp(e=""){return e.replace(a_,"")}function hu(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const u_=Symbol("layout-meta"),Ds=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const wt=()=>He()?.$router,l_=()=>Os()?_t(Ds,He()._route):He()._route;const c_=()=>{try{if(He()._processingMiddleware)return!0}catch{return!1}return!1},f_=(e,t)=>{e||="/";const r=typeof e=="string"?e:"path"in e?vu(e):wt().resolve(e).href;if(t?.open){const{target:u="_blank",windowFeatures:c={}}=t.open,l=[];for(const[f,d]of Object.entries(c))d!==void 0&&l.push(`${f.toLowerCase()}=${d}`);return open(r,u,l.join(", ")),Promise.resolve()}const n=qr(r,{acceptRelative:!0}),i=t?.external||n;if(i){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:u}=new URL(r,window.location.href);if(u&&hE(u))throw new Error(`Cannot navigate to a URL with '${u}' protocol.`)}const o=c_();if(!i&&o){if(t?.replace){if(typeof e=="string"){const{pathname:u,search:c,hash:l}=sp(e);return{path:u,...c&&{query:Tl(c)},...l&&{hash:l},replace:!0}}return{...e,replace:!0}}return e}const s=wt(),a=He();return i?(a._scope.stop(),t?.replace?location.replace(r):location.href=r,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?s.replace(e):s.push(e)};function vu(e){return rp(e.path||"",e.query||{})+(e.hash||"")}const pp="__nuxt_error",Us=()=>nv(He().payload,"error"),Yr=e=>{const t=an(e);try{const r=Us();He().hooks.callHook("app:error",t),r.value||=t}catch{throw t}return t},d_=async(e={})=>{const t=He(),r=Us();t.callHook("app:error:cleared",e),e.redirect&&await wt().replace(e.redirect),r.value=XE},gp=e=>!!e&&typeof e=="object"&&pp in e,an=e=>{typeof e!="string"&&e.statusText&&(e.message??=e.statusText);const t=o_(e);return Object.defineProperty(t,pp,{value:!0,configurable:!1,writable:!1}),t};function h_(e){const t=p_(e),r=new ArrayBuffer(t.length),n=new DataView(r);for(let i=0;i<r.byteLength;i++)n.setUint8(i,t.charCodeAt(i));return r}const v_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function p_(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",r=0,n=0;for(let i=0;i<e.length;i++)r<<=6,r|=v_.indexOf(e[i]),n+=6,n===24&&(t+=String.fromCharCode((r&16711680)>>16),t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255),r=n=0);return n===12?(r>>=4,t+=String.fromCharCode(r)):n===18&&(r>>=2,t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255)),t}const g_=-1,m_=-2,y_=-3,b_=-4,E_=-5,__=-6;function S_(e,t){return w_(JSON.parse(e),t)}function w_(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const r=e,n=Array(r.length);let i=null;function o(s,a=!1){if(s===g_)return;if(s===y_)return NaN;if(s===b_)return 1/0;if(s===E_)return-1/0;if(s===__)return-0;if(a||typeof s!="number")throw new Error("Invalid input");if(s in n)return n[s];const u=r[s];if(!u||typeof u!="object")n[s]=u;else if(Array.isArray(u))if(typeof u[0]=="string"){const c=u[0],l=t&&Object.hasOwn(t,c)?t[c]:void 0;if(l){let f=u[1];if(typeof f!="number"&&(f=r.push(u[1])-1),i??=new Set,i.has(f))throw new Error("Invalid circular reference");return i.add(f),n[s]=l(o(f)),i.delete(f),n[s]}switch(c){case"Date":n[s]=new Date(u[1]);break;case"Set":const f=new Set;n[s]=f;for(let v=1;v<u.length;v+=1)f.add(o(u[v]));break;case"Map":const d=new Map;n[s]=d;for(let v=1;v<u.length;v+=2)d.set(o(u[v]),o(u[v+1]));break;case"RegExp":n[s]=new RegExp(u[1],u[2]);break;case"Object":n[s]=Object(u[1]);break;case"BigInt":n[s]=BigInt(u[1]);break;case"null":const h=Object.create(null);n[s]=h;for(let v=1;v<u.length;v+=2)h[u[v]]=o(u[v+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{if(r[u[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const v=globalThis[c],p=o(u[1]),b=new v(p);n[s]=u[2]!==void 0?b.subarray(u[2],u[3]):b;break}case"ArrayBuffer":{const v=u[1];if(typeof v!="string")throw new Error("Invalid ArrayBuffer encoding");const p=h_(v);n[s]=p;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const v=c.slice(9);n[s]=Temporal[v].from(u[1]);break}case"URL":{const v=new URL(u[1]);n[s]=v;break}case"URLSearchParams":{const v=new URLSearchParams(u[1]);n[s]=v;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(u.length);n[s]=c;for(let l=0;l<u.length;l+=1){const f=u[l];f!==m_&&(c[l]=o(f))}}else{const c={};n[s]=c;for(const l in u){if(l==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const f=u[l];c[l]=o(f)}}return n[s]}return o(0)}const T_=new Set(["link","style","script","noscript"]),A_=new Set(["title","titleTemplate","script","style","noscript"]),nf=new Set(["base","meta","link","style","script","noscript"]),C_=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),I_=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),k_=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),P_=new Set(["templateParams","htmlAttrs","bodyAttrs"]),R_=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function pu(e,t={},r){for(const n in e){const i=e[n],o=r?`${r}:${n}`:n;typeof i=="object"&&i!==null?pu(i,t,o):typeof i=="function"&&(t[o]=i)}return t}const mp=(()=>{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function yp(e,t,r,n){for(let i=r;i<e.length;i+=1)try{const o=n?n.run(()=>e[i](...t)):e[i](...t);if(o instanceof Promise)return o.then(()=>yp(e,t,i+1,n))}catch(o){return Promise.reject(o)}}function O_(e,t,r){if(e.length>0)return yp(e,t,0,mp(r))}function x_(e,t,r){if(e.length>0){const n=mp(r);return Promise.all(e.map(i=>n.run(()=>i(...t))))}}function ha(e,t){for(const r of[...e])r(t)}var N_=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,r={}){if(!e||typeof t!="function")return()=>{};const n=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!r.allowDeprecated){let o=i.message;o||(o=`${n} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let r,n=(...i)=>(typeof r=="function"&&r(),r=void 0,n=void 0,t(...i));return r=this.hook(e,n),r}removeHook(e,t){const r=this._hooks[e];if(r){const n=r.indexOf(t);n!==-1&&r.splice(n,1),r.length===0&&(this._hooks[e]=void 0)}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const r=this._hooks[e]||[];this._hooks[e]=void 0;for(const n of r)this.hook(e,n)}deprecateHooks(e){for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=pu(e),r=Object.keys(t).map(n=>this.hook(n,t[n]));return()=>{for(const n of r)n();r.length=0}}removeHooks(e){const t=pu(e);for(const r in t)this.removeHook(r,t[r])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(O_,e,t)}callHookParallel(e,...t){return this.callHookWith(x_,e,t)}callHookWith(e,t,r){const n=this._before||this._after?{name:t,args:r,context:{}}:void 0;this._before&&ha(this._before,n);const i=e(this._hooks[t]?[...this._hooks[t]]:[],r,t);return i instanceof Promise?i.finally(()=>{this._after&&n&&ha(this._after,n)}):(this._after&&n&&ha(this._after,n),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function L_(){return new N_}const M_=["name","property","http-equiv"],D_=new Set(["viewport","description","keywords","robots"]);function bp(e){const t=e.split(":");return t.length?R_.has(t[1]):!1}function gu(e){const{props:t,tag:r}=e;if(I_.has(r))return r;if(r==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const n of M_)if(t[n]!==void 0){const i=t[n],o=i&&typeof i=="string"&&i.includes(":"),s=i&&D_.has(i),u=!(o||s)&&e.key?`:key:${e.key}`:"";return`${r}:${i}${u}`}}if(e.key)return`${r}:key:${e.key}`;if(t.id)return`${r}:id:${t.id}`;if(A_.has(r)){const n=e.textContent||e.innerHTML;if(n)return`${r}:content:${n}`}}function of(e){const t=e._h||e._d;if(t)return t;const r=e.textContent||e.innerHTML;return r||`${e.tag}:${Object.entries(e.props).map(([n,i])=>`${n}:${String(i)}`).join(",")}`}function ps(e,t,r){typeof e==="function"&&(!r||r!=="titleTemplate"&&!(r[0]==="o"&&r[1]==="n"))&&(e=e());const i=t?t(r,e):e;if(Array.isArray(i))return i.map(o=>ps(o,t));if(i?.constructor===Object){const o={};for(const s of Object.keys(i))o[s]=ps(i[s],t,s);return o}return i}function U_(e,t){const r=e==="style"?new Map:new Set;function n(i){if(i==null||i===void 0)return;const o=String(i).trim();if(o)if(e==="style"){const[s,...a]=o.split(":").map(u=>u?u.trim():"");s&&a.length&&r.set(s,a.join(":"))}else o.split(" ").filter(Boolean).forEach(s=>r.add(s))}return typeof t=="string"?e==="style"?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach(i=>n(i)):t&&typeof t=="object"&&Object.entries(t).forEach(([i,o])=>{o&&o!=="false"&&(e==="style"?r.set(String(i).trim(),String(o)):n(i))}),r}function Ep(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([r,n])=>{if(n===null){e.props[r]=null;return}if(r==="class"||r==="style"){e.props[r]=U_(r,n);return}if(k_.has(r)){if(["textContent","innerHTML"].includes(r)&&typeof n=="object"){let a=t.type;if(t.type||(a="application/json"),!a?.endsWith("json")&&a!=="speculationrules")return;t.type=a,e.props.type=a,e[r]=JSON.stringify(n)}else e[r]=n;return}const i=String(n),o=r.startsWith("data-"),s=e.tag==="meta"&&r==="content";i==="true"||i===""?e.props[r]=o||s?i:!0:!n&&o&&i==="false"?e.props[r]="false":n!==void 0&&(e.props[r]=n)}),e):e}function F_(e,t){const r=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},n=Ep({tag:e,props:{}},r);return n.key&&T_.has(n.tag)&&(n.props["data-hid"]=n._h=n.key),n.tag==="script"&&typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),Array.isArray(n.props.content)?n.props.content.map(i=>({...n,props:{...n.props,content:i}})):n}function H_(e,t){if(!e)return[];typeof e=="function"&&(e=e());const r=(i,o)=>{for(let s=0;s<t.length;s++)o=t[s](i,o);return o};e=r(void 0,e);const n=[];return e=ps(e,r),Object.entries(e||{}).forEach(([i,o])=>{if(o!==void 0)for(const s of Array.isArray(o)?o:[o])n.push(F_(i,s))}),n.flat()}const mu=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,sf={base:-10,title:10},B_={critical:-8,high:-1,low:2},af={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},j_=/@import/,ai=e=>e===""||e===!0;function q_(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let r=100;const n=B_[t.tagPriority]||0,i=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:af;if(t.tag in sf)r=sf[t.tag];else if(t.tag==="meta"){const o=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;o&&(r=af.meta[o])}else if(t.tag==="link"&&t.props.rel)r=i.link[t.props.rel];else if(t.tag==="script"){const o=String(t.props.type);ai(t.props.async)?r=i.script.async:t.props.src&&!ai(t.props.defer)&&!ai(t.props.async)&&o!=="module"&&!o.endsWith("json")||t.innerHTML&&!o.endsWith("json")?r=i.script.sync:(ai(t.props.defer)&&t.props.src&&!ai(t.props.async)||o==="module")&&(r=i.script.defer)}else t.tag==="style"&&(r=t.innerHTML&&j_.test(t.innerHTML)?i.style.imported:i.style.sync);return(r||100)+n}function uf(e,t){const r=typeof t=="function"?t(e):t,n=r.key||String(e.plugins.size+1);e.plugins.get(n)||(e.plugins.set(n,r),e.hooks.addHooks(r.hooks||{}))}function V_(e={}){const t=L_();t.addHooks(e.hooks||{});const r=!e.document,n=new Map,i=new Map,o=new Set,s={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:e,hooks:t,ssr:r,entries:n,headEntries(){return[...n.values()]},use:a=>uf(s,a),push(a,u){const c={...u||{}};delete c.head;const l=c._index??s._entryCount++,f={_i:l,input:a,options:c},d={_poll(h=!1){s.dirty=!0,!h&&o.add(l),t.callHook("entries:updated",s)},dispose(){n.delete(l)&&s.invalidate()},patch(h){(!c.mode||c.mode==="server"&&r||c.mode==="client"&&!r)&&(f.input=h,n.set(l,f),d._poll())}};return d.patch(a),d},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...s.entries.values()]};for(await t.callHook("entries:resolve",a);o.size;){const d=o.values().next().value;o.delete(d);const h=n.get(d);if(h){const v={tags:H_(h.input,e.propResolvers||[]).map(p=>Object.assign(p,h.options)),entry:h};await t.callHook("entries:normalize",v),h._tags=v.tags.map((p,b)=>(p._w=q_(s,p),p._p=(h._i<<10)+b,p._d=gu(p),p))}}let u=!1;a.entries.flatMap(d=>(d._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(mu).reduce((d,h)=>{const v=String(h._d||h._p);if(!d.has(v))return d.set(v,h);const p=d.get(v);if((h?.tagDuplicateStrategy||(P_.has(h.tag)?"merge":null)||(h.key&&h.key===p.key?"merge":null))==="merge"){const E={...p.props};Object.entries(h.props).forEach(([m,g])=>E[m]=m==="style"?new Map([...p.props.style||new Map,...g]):m==="class"?new Set([...p.props.class||new Set,...g]):g),d.set(v,{...h,props:E})}else h._p>>10===p._p>>10&&h.tag==="meta"&&bp(v)?(d.set(v,Object.assign([...Array.isArray(p)?p:[p],h],h)),u=!0):(h._w===p._w?h._p>p._p:h?._w<p?._w)&&d.set(v,h);return d},a.tagMap);const c=a.tagMap.get("title"),l=a.tagMap.get("titleTemplate");if(s._title=c?.textContent,l){const d=l?.textContent;if(s._titleTemplate=d,d){let h=typeof d=="function"?d(c?.textContent):d;typeof h=="string"&&!s.plugins.has("template-params")&&(h=h.replace("%s",c?.textContent||"")),c?h===null?a.tagMap.delete("title"):a.tagMap.set("title",{...c,textContent:h}):(l.tag="title",l.textContent=h)}}a.tags=Array.from(a.tagMap.values()),u&&(a.tags=a.tags.flat().sort(mu)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const f=[];for(const d of a.tags){const{innerHTML:h,tag:v,props:p}=d;if(C_.has(v)&&!(Object.keys(p).length===0&&!d.innerHTML&&!d.textContent)&&!(v==="meta"&&!p.content&&!p["http-equiv"]&&!p.charset)){if(v==="script"&&h){if(String(p.type).endsWith("json")){const b=typeof h=="string"?h:JSON.stringify(h);d.innerHTML=b.replace(/</g,"\\u003C")}else typeof h=="string"&&(d.innerHTML=h.replace(new RegExp(`</${v}`,"g"),`<\\/${v}`));d._d=gu(d)}f.push(d)}}return f},invalidate(){for(const a of n.values())o.add(a._i);s.dirty=!0,t.callHook("entries:updated",s)}};return(e?.plugins||[]).forEach(a=>uf(s,a)),s.hooks.callHook("init",s),e.init?.forEach(a=>a&&s.push(a)),s}const va="%separator";function $_(e,t,r=!1){let n;if(t==="s"||t==="pageTitle")n=e.pageTitle;else if(t.includes(".")){const i=t.indexOf(".");n=e[t.substring(0,i)]?.[t.substring(i+1)]}else n=e[t];if(n!==void 0)return r?(n||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):n||""}function yo(e,t,r,n=!1){if(typeof e!="string"||!e.includes("%"))return e;let i=e;try{i=decodeURI(e)}catch{}const o=i.match(/%\w+(?:\.\w+)?/g);if(!o)return e;const s=e.includes(va);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===va||!o.includes(a))return a;const u=$_(t,a.slice(1),n);return u!==void 0?u:a}).trim(),s&&(e=e.split(va).map(a=>a.trim()).filter(a=>a!=="").join(r?` ${r} `:" ")),e}const lf=e=>e.includes(":key")?e:e.split(":").join(":key:"),W_={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const r of e.tags){const n=r.tagPriority;if(!n)continue;const i=String(n);if(i.startsWith("before:")){const o=lf(i.slice(7)),s=e.tagMap.get(o);s&&(typeof s.tagPriority=="number"&&(r.tagPriority=s.tagPriority),r._p=s._p-1,t=!0)}else if(i.startsWith("after:")){const o=lf(i.slice(6)),s=e.tagMap.get(o);s&&(typeof s.tagPriority=="number"&&(r.tagPriority=s.tagPriority),r._p=s._p+1,t=!0)}}t&&(e.tags=e.tags.sort(mu))}}},G_={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function yu(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(r=>yu(r)));if(e?.constructor===Object){const r={};for(const n of Object.keys(e))r[n]=await yu(e[n]);return r}return e}const K_={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const r in e.entries)e.entries[r]._promisesProcessed||t.push(yu(e.entries[r].input).then(n=>{e.entries[r].input=n,e.entries[r]._promisesProcessed=!0}));await Promise.all(t)}}},z_={meta:"content",link:"href",htmlAttrs:"lang"},X_=["innerHTML","textContent"],Y_=e=>({key:"template-params",hooks:{"entries:normalize":t=>{const r=t.tags.filter(n=>n.tag==="templateParams"&&n.mode==="server")?.[0]?.props||{};Object.keys(r).length&&(e._ssrPayload={templateParams:{...e._ssrPayload?.templateParams||{},...r}})},"tags:resolve":({tagMap:t,tags:r})=>{const n=t.get("templateParams")?.props||{},i=n.separator||"|";delete n.separator,n.pageTitle=yo(n.pageTitle||e._title||"",n,i);for(const o of r){if(o.processTemplateParams===!1)continue;const s=z_[o.tag];if(s&&typeof o.props[s]=="string")o.props[s]=yo(o.props[s],n,i);else if(o.processTemplateParams||o.tag==="titleTemplate"||o.tag==="title")for(const a of X_)typeof o[a]=="string"&&(o[a]=yo(o[a],n,i,o.tag==="script"&&o.props.type.endsWith("json")))}e._templateParams=n,e._separator=i},"tags:afterResolve":({tagMap:t})=>{const r=t.get("title");r?.textContent&&r.processTemplateParams!==!1&&(r.textContent=yo(r.textContent,e._templateParams,e._separator))}}}),J_=(e,t)=>Ve(t)?qy(t):t,kl="usehead";function Q_(e){return{install(r){r.config.globalProperties.$unhead=e,r.config.globalProperties.$head=e,r.provide(kl,e)}}.install}function Z_(){if(Os()){const e=_t(kl);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function eS(e,t={}){const r=t.head||Z_();return r.ssr?r.push(e||{},t):tS(r,e,t)}function tS(e,t,r={}){const n=Qt(!1);let i;return t0(()=>{const s=n.value?{}:ps(t,J_);i?i.patch(s):i=e.push(s,r)}),hn()&&(ei(()=>{i.dispose()}),gv(()=>{n.value=!0}),pv(()=>{n.value=!1})),i}function _p(e){const t=e||dp();return t?.ssrContext?.head||t?.runWithContext(()=>{if(Os())return _t(kl)})}function SN(e,t={}){const r=_p(t.nuxt);if(r)return eS(e,{head:r,...t})}const rS=(e,t)=>[],nS=e=>hp({},...rS().map(t=>t.data).reverse()),iS=nS;let Ho;function oS(){return Ho=$fetch(Il(`builds/meta/${ro().app.buildId}.json`),{responseType:"json"}),Ho.catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),Ho}function Sp(){return Ho||oS()}function wp(e){const t=typeof e=="string"?e:e.path;try{return iS(t)}catch(r){return console.error("[nuxt] Error matching route rules.",r),{}}}async function cf(e,t={}){return null}async function sS(e){return null}let Gr=null;async function aS(){if(Gr)return Gr;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await uS(e.textContent||""),r=e.dataset.src?await sS(e.dataset.src):void 0;return Gr={...t,...r,...window.__NUXT__},Gr.config?.public&&(Gr.config.public=Br(Gr.config.public)),Gr}async function uS(e){return await S_(e,He()._payloadRevivers)}function lS(e,t){He()._payloadRevivers[e]=t}const cS=[["NuxtError",e=>an(e)],["EmptyShallowRef",e=>br(e==="_"?void 0:e==="0n"?BigInt(0):ds(e))],["EmptyRef",e=>Qt(e==="_"?void 0:e==="0n"?BigInt(0):ds(e))],["ShallowRef",e=>br(e)],["ShallowReactive",e=>hr(e)],["Ref",e=>Qt(e)],["Reactive",e=>Br(e)]],fS=rr({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,r;for(const[n,i]of cS)lS(n,i);Object.assign(e.payload,([t,r]=Oi(()=>e.runWithContext(aS)),t=await t,r(),t)),window.__NUXT__=e.payload}});async function Pl(e,t={}){const r=t.document||e.resolvedOptions.document;if(!r||!e.dirty)return;const n={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",n),!!n.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async i=>{const o=new Map,s=new Promise(h=>{e.resolveTags().then(v=>{h(v.map(p=>{const b=o.get(p._d)||0,E={tag:p,id:(b?`${p._d}:${b}`:p._d)||of(p),shouldRender:!0};return p._d&&bp(p._d)&&o.set(p._d,b+1),E}))})});let a=e._dom;if(!a){a={title:r.title,elMap:new Map().set("htmlAttrs",r.documentElement).set("bodyAttrs",r.body)};for(const h of["body","head"]){const v=r[h]?.children;for(const p of v){const b=p.tagName.toLowerCase();if(!nf.has(b))continue;const E=Ep({tag:b,props:{}},{innerHTML:p.innerHTML,...p.getAttributeNames().reduce((m,g)=>(m[g]=p.getAttribute(g),m),{})||{}});if(E.key=p.getAttribute("data-hid")||void 0,E._d=gu(E)||of(E),a.elMap.has(E._d)){let m=1,g=E._d;for(;a.elMap.has(g);)g=`${E._d}:${m++}`;a.elMap.set(g,p)}else a.elMap.set(E._d,p)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function u(h,v,p){const b=`${h}:${v}`;a.sideEffects[b]=p,delete a.pendingSideEffects[b]}function c({id:h,$el:v,tag:p}){const b=p.tag.endsWith("Attrs");a.elMap.set(h,v),b||(p.textContent&&p.textContent!==v.textContent&&(v.textContent=p.textContent),p.innerHTML&&p.innerHTML!==v.innerHTML&&(v.innerHTML=p.innerHTML),u(h,"el",()=>{v?.remove(),a.elMap.delete(h)}));for(const E in p.props){if(!Object.prototype.hasOwnProperty.call(p.props,E))continue;const m=p.props[E];if(E.startsWith("on")&&typeof m=="function"){const y=v?.dataset;if(y&&y[`${E}fired`]){const _=E.slice(0,-5);m.call(v,new Event(_.substring(2)))}v.getAttribute(`data-${E}`)!==""&&((p.tag==="bodyAttrs"?r.defaultView:v).addEventListener(E.substring(2),m.bind(v)),v.setAttribute(`data-${E}`,""));continue}const g=`attr:${E}`;if(E==="class"){if(!m)continue;for(const y of m)b&&u(h,`${g}:${y}`,()=>v.classList.remove(y)),!v.classList.contains(y)&&v.classList.add(y)}else if(E==="style"){if(!m)continue;for(const[y,_]of m)u(h,`${g}:${y}`,()=>{v.style.removeProperty(y)}),v.style.setProperty(y,_)}else m!==!1&&m!==null&&(v.getAttribute(E)!==m&&v.setAttribute(E,m===!0?"":String(m)),b&&u(h,g,()=>v.removeAttribute(E)))}}const l=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await s;for(const h of d){const{tag:v,shouldRender:p,id:b}=h;if(p){if(v.tag==="title"){r.title=v.textContent,u("title","",()=>r.title=a.title);continue}h.$el=h.$el||a.elMap.get(b),h.$el?c(h):nf.has(v.tag)&&l.push(h)}}for(const h of l){const v=h.tag.tagPosition||"head";h.$el=r.createElement(h.tag.tag),c(h),f[v]=f[v]||r.createDocumentFragment(),f[v].appendChild(h.$el)}for(const h of d)await e.hooks.callHook("dom:renderTag",h,r,u);f.head&&r.head.appendChild(f.head),f.bodyOpen&&r.body.insertBefore(f.bodyOpen,r.body.firstChild),f.bodyClose&&r.body.appendChild(f.bodyClose);for(const h in a.pendingSideEffects)a.pendingSideEffects[h]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:d}),i()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function dS(e={}){const t=e.domOptions?.render||Pl;e.document=e.document||(typeof window<"u"?document:void 0);const r=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return V_({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[r?JSON.parse(r):!1,...e.init||[]]})}function hS(e,t){let r=0;return()=>{const n=++r;t(()=>{r===n&&e()})}}function vS(e={}){const t=dS({domOptions:{render:hS(()=>Pl(t),r=>setTimeout(r,0))},...e});return t.install=Q_(t),t}const pS={disableDefaults:!0,disableCapoSorting:!1,plugins:[G_,K_,Y_,W_]},gS=rr({name:"nuxt:head",enforce:"pre",setup(e){const t=vS(pS);e.vueApp.use(t);{let r=!0;const n=async()=>{r=!1,await Pl(t)};t.hooks.hook("dom:beforeRender",i=>{i.shouldRender=!r}),e.hooks.hook("page:start",()=>{r=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||n()}),e.hooks.hook("app:error",n),e.hooks.hook("app:suspense:resolve",n)}}});const wn=typeof document<"u";function Tp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function mS(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Tp(e.default)}const Ce=Object.assign;function pa(e,t){const r={};for(const n in t){const i=t[n];r[n]=Vt(i)?i.map(e):e(i)}return r}const xi=()=>{},Vt=Array.isArray;function ff(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}const Ap=/#/g,yS=/&/g,bS=/\//g,ES=/=/g,_S=/\?/g,Cp=/\+/g,SS=/%5B/g,wS=/%5D/g,Ip=/%5E/g,TS=/%60/g,kp=/%7B/g,AS=/%7C/g,Pp=/%7D/g,CS=/%20/g;function Rl(e){return e==null?"":encodeURI(""+e).replace(AS,"|").replace(SS,"[").replace(wS,"]")}function IS(e){return Rl(e).replace(kp,"{").replace(Pp,"}").replace(Ip,"^")}function bu(e){return Rl(e).replace(Cp,"%2B").replace(CS,"+").replace(Ap,"%23").replace(yS,"%26").replace(TS,"`").replace(kp,"{").replace(Pp,"}").replace(Ip,"^")}function kS(e){return bu(e).replace(ES,"%3D")}function PS(e){return Rl(e).replace(Ap,"%23").replace(_S,"%3F")}function RS(e){return PS(e).replace(bS,"%2F")}function Xi(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const OS=/\/$/,xS=e=>e.replace(OS,"");function ga(e,t,r="/"){let n,i={},o="",s="";const a=t.indexOf("#");let u=t.indexOf("?");return u=a>=0&&u>a?-1:u,u>=0&&(n=t.slice(0,u),o=t.slice(u,a>0?a:t.length),i=e(o.slice(1))),a>=0&&(n=n||t.slice(0,a),s=t.slice(a,t.length)),n=DS(n??t,r),{fullPath:n+o+s,path:n,query:i,hash:Xi(s)}}function NS(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function df(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function LS(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Kn(t.matched[n],r.matched[i])&&Rp(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Kn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Rp(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!MS(e[r],t[r]))return!1;return!0}function MS(e,t){return Vt(e)?hf(e,t):Vt(t)?hf(t,e):e?.valueOf()===t?.valueOf()}function hf(e,t){return Vt(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function DS(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let o=r.length-1,s,a;for(s=0;s<n.length;s++)if(a=n[s],a!==".")if(a==="..")o>1&&o--;else break;return r.slice(0,o).join("/")+"/"+n.slice(s).join("/")}const Pt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Eu=(function(e){return e.pop="pop",e.push="push",e})({}),ma=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function US(e){if(!e)if(wn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),xS(e)}const FS=/^[^#]+#/;function HS(e,t){return e.replace(FS,"#")+t}function BS(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const Fs=()=>({left:window.scrollX,top:window.scrollY});function jS(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=BS(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function vf(e,t){return(history.state?history.state.position-t:-1)+e}const _u=new Map;function qS(e,t){_u.set(e,t)}function VS(e){const t=_u.get(e);return _u.delete(e),t}function $S(e){return typeof e=="string"||e&&typeof e=="object"}function Op(e){return typeof e=="string"||typeof e=="symbol"}let je=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const xp=Symbol("");je.MATCHER_NOT_FOUND+"",je.NAVIGATION_GUARD_REDIRECT+"",je.NAVIGATION_ABORTED+"",je.NAVIGATION_CANCELLED+"",je.NAVIGATION_DUPLICATED+"";function zn(e,t){return Ce(new Error,{type:e,[xp]:!0},t)}function or(e,t){return e instanceof Error&&xp in e&&(t==null||!!(e.type&t))}const WS=["params","query","hash"];function GS(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const r of WS)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}function KS(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<r.length;++n){const i=r[n].replace(Cp," "),o=i.indexOf("="),s=Xi(o<0?i:i.slice(0,o)),a=o<0?null:Xi(i.slice(o+1));if(s in t){let u=t[s];Vt(u)||(u=t[s]=[u]),u.push(a)}else t[s]=a}return t}function pf(e){let t="";for(let r in e){const n=e[r];if(r=kS(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(Vt(n)?n.map(i=>i&&bu(i)):[n&&bu(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function zS(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Vt(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const XS=Symbol(""),gf=Symbol(""),Ol=Symbol(""),Np=Symbol(""),Su=Symbol("");function ui(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Ir(e,t,r,n,i,o=s=>s()){const s=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((a,u)=>{const c=d=>{d===!1?u(zn(je.NAVIGATION_ABORTED,{from:r,to:t})):d instanceof Error?u(d):$S(d)?u(zn(je.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(s&&n.enterCallbacks[i]===s&&typeof d=="function"&&s.push(d),a())},l=o(()=>e.call(n&&n.instances[i],t,r,c));let f=Promise.resolve(l);e.length<3&&(f=f.then(c)),f.catch(d=>u(d))})}function ya(e,t,r,n,i=o=>o()){const o=[];for(const s of e)for(const a in s.components){let u=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(Tp(u)){const c=(u.__vccOpts||u)[t];c&&o.push(Ir(c,r,n,s,a,i))}else{let c=u();o.push(()=>c.then(l=>{if(!l)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const f=mS(l)?l.default:l;s.mods[a]=l,s.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&Ir(d,r,n,s,a,i)()}))}}return o}function YS(e,t){const r=[],n=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let s=0;s<o;s++){const a=t.matched[s];a&&(e.matched.find(c=>Kn(c,a))?n.push(a):r.push(a));const u=e.matched[s];u&&(t.matched.find(c=>Kn(c,u))||i.push(u))}return[r,n,i]}let JS=()=>location.protocol+"//"+location.host;function Lp(e,t){const{pathname:r,search:n,hash:i}=t,o=e.indexOf("#");if(o>-1){let s=i.includes(e.slice(o))?e.slice(o).length:1,a=i.slice(s);return a[0]!=="/"&&(a="/"+a),df(a,"")}return df(r,e)+n+i}function QS(e,t,r,n){let i=[],o=[],s=null;const a=({state:d})=>{const h=Lp(e,location),v=r.value,p=t.value;let b=0;if(d){if(r.value=h,t.value=d,s&&s===v){s=null;return}b=p?d.position-p.position:0}else n(h);i.forEach(E=>{E(r.value,v,{delta:b,type:Eu.pop,direction:b?b>0?ma.forward:ma.back:ma.unknown})})};function u(){s=r.value}function c(d){i.push(d);const h=()=>{const v=i.indexOf(d);v>-1&&i.splice(v,1)};return o.push(h),h}function l(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(Ce({},d.state,{scroll:Fs()}),"")}}function f(){for(const d of o)d();o=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",l),document.removeEventListener("visibilitychange",l)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",l),document.addEventListener("visibilitychange",l),{pauseListeners:u,listen:c,destroy:f}}function mf(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?Fs():null}}function ZS(e){const{history:t,location:r}=window,n={value:Lp(e,r)},i={value:t.state};i.value||o(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(u,c,l){const f=e.indexOf("#"),d=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+u:JS()+e+u;try{t[l?"replaceState":"pushState"](c,"",d),i.value=c}catch(h){console.error(h),r[l?"replace":"assign"](d)}}function s(u,c){o(u,Ce({},t.state,mf(i.value.back,u,i.value.forward,!0),c,{position:i.value.position}),!0),n.value=u}function a(u,c){const l=Ce({},i.value,t.state,{forward:u,scroll:Fs()});o(l.current,l,!0),o(u,Ce({},mf(n.value,u,null),{position:l.position+1},c),!1),n.value=u}return{location:n,state:i,push:a,replace:s}}function ew(e){e=US(e);const t=ZS(e),r=QS(e,t.state,t.location,t.replace);function n(o,s=!0){s||r.pauseListeners(),history.go(o)}const i=Ce({location:"",base:e,go:n,createHref:HS.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}let Zr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var ze=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(ze||{});const tw={type:Zr.Static,value:""},rw=/[a-zA-Z0-9_]/;function nw(e){if(!e)return[[]];if(e==="/")return[[tw]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${r})/"${c}": ${h}`)}let r=ze.Static,n=r;const i=[];let o;function s(){o&&i.push(o),o=[]}let a=0,u,c="",l="";function f(){c&&(r===ze.Static?o.push({type:Zr.Static,value:c}):r===ze.Param||r===ze.ParamRegExp||r===ze.ParamRegExpEnd?(o.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Zr.Param,value:c,regexp:l,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=u}for(;a<e.length;){if(u=e[a++],u==="\\"&&r!==ze.ParamRegExp){n=r,r=ze.EscapeNext;continue}switch(r){case ze.Static:u==="/"?(c&&f(),s()):u===":"?(f(),r=ze.Param):d();break;case ze.EscapeNext:d(),r=n;break;case ze.Param:u==="("?r=ze.ParamRegExp:rw.test(u)?d():(f(),r=ze.Static,u!=="*"&&u!=="?"&&u!=="+"&&a--);break;case ze.ParamRegExp:u===")"?l[l.length-1]=="\\"?l=l.slice(0,-1)+u:r=ze.ParamRegExpEnd:l+=u;break;case ze.ParamRegExpEnd:f(),r=ze.Static,u!=="*"&&u!=="?"&&u!=="+"&&a--,l="";break;default:t("Unknown state");break}}return r===ze.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),f(),s(),i}const yf="[^/]+?",iw={sensitive:!1,strict:!1,start:!0,end:!0};var ht=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(ht||{});const ow=/[.+*?^${}()[\]/\\]/g;function sw(e,t){const r=Ce({},iw,t),n=[];let i=r.start?"^":"";const o=[];for(const c of e){const l=c.length?[]:[ht.Root];r.strict&&!c.length&&(i+="/");for(let f=0;f<c.length;f++){const d=c[f];let h=ht.Segment+(r.sensitive?ht.BonusCaseSensitive:0);if(d.type===Zr.Static)f||(i+="/"),i+=d.value.replace(ow,"\\$&"),h+=ht.Static;else if(d.type===Zr.Param){const{value:v,repeatable:p,optional:b,regexp:E}=d;o.push({name:v,repeatable:p,optional:b});const m=E||yf;if(m!==yf){h+=ht.BonusCustomRegExp;try{`${m}`}catch(y){throw new Error(`Invalid custom RegExp for param "${v}" (${m}): `+y.message)}}let g=p?`((?:${m})(?:/(?:${m}))*)`:`(${m})`;f||(g=b&&c.length<2?`(?:/${g})`:"/"+g),b&&(g+="?"),i+=g,h+=ht.Dynamic,b&&(h+=ht.BonusOptional),p&&(h+=ht.BonusRepeatable),m===".*"&&(h+=ht.BonusWildcard)}l.push(h)}n.push(l)}if(r.strict&&r.end){const c=n.length-1;n[c][n[c].length-1]+=ht.BonusStrict}r.strict||(i+="/?"),r.end?i+="$":r.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const s=new RegExp(i,r.sensitive?"":"i");function a(c){const l=c.match(s),f={};if(!l)return null;for(let d=1;d<l.length;d++){const h=l[d]||"",v=o[d-1];f[v.name]=h&&v.repeatable?h.split("/"):h}return f}function u(c){let l="",f=!1;for(const d of e){(!f||!l.endsWith("/"))&&(l+="/"),f=!1;for(const h of d)if(h.type===Zr.Static)l+=h.value;else if(h.type===Zr.Param){const{value:v,repeatable:p,optional:b}=h,E=v in c?c[v]:"";if(Vt(E)&&!p)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const m=Vt(E)?E.join("/"):E;if(!m)if(b)d.length<2&&(l.endsWith("/")?l=l.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);l+=m}}return l||"/"}return{re:s,score:n,keys:o,parse:a,stringify:u}}function aw(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===ht.Static+ht.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===ht.Static+ht.Segment?1:-1:0}function Mp(e,t){let r=0;const n=e.score,i=t.score;for(;r<n.length&&r<i.length;){const o=aw(n[r],i[r]);if(o)return o;r++}if(Math.abs(i.length-n.length)===1){if(bf(n))return 1;if(bf(i))return-1}return i.length-n.length}function bf(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const uw={strict:!1,end:!0,sensitive:!1};function lw(e,t,r){const n=sw(nw(e.path),r),i=Ce(n,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function cw(e,t){const r=[],n=new Map;t=ff(uw,t);function i(f){return n.get(f)}function o(f,d,h){const v=!h,p=_f(f);p.aliasOf=h&&h.record;const b=ff(t,f),E=[p];if("alias"in f){const y=typeof f.alias=="string"?[f.alias]:f.alias;for(const _ of y)E.push(_f(Ce({},p,{components:h?h.record.components:p.components,path:_,aliasOf:h?h.record:p})))}let m,g;for(const y of E){const{path:_}=y;if(d&&_[0]!=="/"){const S=d.record.path,A=S[S.length-1]==="/"?"":"/";y.path=d.record.path+(_&&A+_)}if(m=lw(y,d,b),h?h.alias.push(m):(g=g||m,g!==m&&g.alias.push(m),v&&f.name&&!Sf(m)&&s(f.name)),Dp(m)&&u(m),p.children){const S=p.children;for(let A=0;A<S.length;A++)o(S[A],m,h&&h.children[A])}h=h||m}return g?()=>{s(g)}:xi}function s(f){if(Op(f)){const d=n.get(f);d&&(n.delete(f),r.splice(r.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=r.indexOf(f);d>-1&&(r.splice(d,1),f.record.name&&n.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function a(){return r}function u(f){const d=hw(f,r);r.splice(d,0,f),f.record.name&&!Sf(f)&&n.set(f.record.name,f)}function c(f,d){let h,v={},p,b;if("name"in f&&f.name){if(h=n.get(f.name),!h)throw zn(je.MATCHER_NOT_FOUND,{location:f});b=h.record.name,v=Ce(Ef(d.params,h.keys.filter(g=>!g.optional).concat(h.parent?h.parent.keys.filter(g=>g.optional):[]).map(g=>g.name)),f.params&&Ef(f.params,h.keys.map(g=>g.name))),p=h.stringify(v)}else if(f.path!=null)p=f.path,h=r.find(g=>g.re.test(p)),h&&(v=h.parse(p),b=h.record.name);else{if(h=d.name?n.get(d.name):r.find(g=>g.re.test(d.path)),!h)throw zn(je.MATCHER_NOT_FOUND,{location:f,currentLocation:d});b=h.record.name,v=Ce({},d.params,f.params),p=h.stringify(v)}const E=[];let m=h;for(;m;)E.unshift(m.record),m=m.parent;return{name:b,path:p,params:v,matched:E,meta:dw(E)}}e.forEach(f=>o(f));function l(){r.length=0,n.clear()}return{addRoute:o,resolve:c,removeRoute:s,clearRoutes:l,getRoutes:a,getRecordMatcher:i}}function Ef(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function _f(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:fw(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 fw(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function Sf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function dw(e){return e.reduce((t,r)=>Ce(t,r.meta),{})}function hw(e,t){let r=0,n=t.length;for(;r!==n;){const o=r+n>>1;Mp(e,t[o])<0?n=o:r=o+1}const i=vw(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function vw(e){let t=e;for(;t=t.parent;)if(Dp(t)&&Mp(e,t)===0)return t}function Dp({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function wf(e){const t=_t(Ol),r=_t(Np),n=We(()=>{const u=ke(e.to);return t.resolve(u)}),i=We(()=>{const{matched:u}=n.value,{length:c}=u,l=u[c-1],f=r.matched;if(!l||!f.length)return-1;const d=f.findIndex(Kn.bind(null,l));if(d>-1)return d;const h=Tf(u[c-2]);return c>1&&Tf(l)===h&&f[f.length-1].path!==h?f.findIndex(Kn.bind(null,u[c-2])):d}),o=We(()=>i.value>-1&&bw(r.params,n.value.params)),s=We(()=>i.value>-1&&i.value===r.matched.length-1&&Rp(r.params,n.value.params));function a(u={}){if(yw(u)){const c=t[ke(e.replace)?"replace":"push"](ke(e.to)).catch(xi);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:n,href:We(()=>n.value.href),isActive:o,isExactActive:s,navigate:a}}function pw(e){return e.length===1?e[0]:e}const gw=jr({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:wf,setup(e,{slots:t}){const r=Br(wf(e)),{options:n}=_t(Ol),i=We(()=>({[Af(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[Af(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const o=t.default&&pw(t.default(r));return e.custom?o:Ke("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},o)}}}),mw=gw;function yw(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function bw(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!Vt(i)||i.length!==n.length||n.some((o,s)=>o.valueOf()!==i[s].valueOf()))return!1}return!0}function Tf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Af=(e,t,r)=>e??t??r,Ew=jr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=_t(Su),i=We(()=>e.route||n.value),o=_t(gf,0),s=We(()=>{let c=ke(o);const{matched:l}=i.value;let f;for(;(f=l[c])&&!f.components;)c++;return c}),a=We(()=>i.value.matched[s.value]);Ln(gf,We(()=>s.value+1)),Ln(XS,a),Ln(Su,i);const u=Qt();return Mn(()=>[u.value,a.value,e.name],([c,l,f],[d,h,v])=>{l&&(l.instances[f]=c,h&&h!==l&&c&&c===d&&(l.leaveGuards.size||(l.leaveGuards=h.leaveGuards),l.updateGuards.size||(l.updateGuards=h.updateGuards))),c&&l&&(!h||!Kn(l,h)||!d)&&(l.enterCallbacks[f]||[]).forEach(p=>p(c))},{flush:"post"}),()=>{const c=i.value,l=e.name,f=a.value,d=f&&f.components[l];if(!d)return Cf(r.default,{Component:d,route:c});const h=f.props[l],v=h?h===!0?c.params:typeof h=="function"?h(c):h:null,b=Ke(d,Ce({},v,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(f.instances[l]=null)},ref:u}));return Cf(r.default,{Component:b,route:c})||b}}});function Cf(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const Up=Ew;function _w(e){const t=cw(e.routes,e),r=e.parseQuery||KS,n=e.stringifyQuery||pf,i=e.history,o=ui(),s=ui(),a=ui(),u=br(Pt);let c=Pt;wn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=pa.bind(null,M=>""+M),f=pa.bind(null,RS),d=pa.bind(null,Xi);function h(M,Z){let X,re;return Op(M)?(X=t.getRecordMatcher(M),re=Z):re=M,t.addRoute(re,X)}function v(M){const Z=t.getRecordMatcher(M);Z&&t.removeRoute(Z)}function p(){return t.getRoutes().map(M=>M.record)}function b(M){return!!t.getRecordMatcher(M)}function E(M,Z){if(Z=Ce({},Z||u.value),typeof M=="string"){const T=ga(r,M,Z.path),L=t.resolve({path:T.path},Z),H=i.createHref(T.fullPath);return Ce(T,L,{params:d(L.params),hash:Xi(T.hash),redirectedFrom:void 0,href:H})}let X;if(M.path!=null)X=Ce({},M,{path:ga(r,M.path,Z.path).path});else{const T=Ce({},M.params);for(const L in T)T[L]==null&&delete T[L];X=Ce({},M,{params:f(T)}),Z.params=f(Z.params)}const re=t.resolve(X,Z),F=M.hash||"";re.params=l(d(re.params));const ge=NS(n,Ce({},M,{hash:IS(F),path:re.path})),w=i.createHref(ge);return Ce({fullPath:ge,hash:F,query:n===pf?zS(M.query):M.query||{}},re,{redirectedFrom:void 0,href:w})}function m(M){return typeof M=="string"?ga(r,M,u.value.path):Ce({},M)}function g(M,Z){if(c!==M)return zn(je.NAVIGATION_CANCELLED,{from:Z,to:M})}function y(M){return A(M)}function _(M){return y(Ce(m(M),{replace:!0}))}function S(M,Z){const X=M.matched[M.matched.length-1];if(X&&X.redirect){const{redirect:re}=X;let F=typeof re=="function"?re(M,Z):re;return typeof F=="string"&&(F=F.includes("?")||F.includes("#")?F=m(F):{path:F},F.params={}),Ce({query:M.query,hash:M.hash,params:F.path!=null?{}:M.params},F)}}function A(M,Z){const X=c=E(M),re=u.value,F=M.state,ge=M.force,w=M.replace===!0,T=S(X,re);if(T)return A(Ce(m(T),{state:typeof T=="object"?Ce({},F,T.state):F,force:ge,replace:w}),Z||X);const L=X;L.redirectedFrom=Z;let H;return!ge&&LS(n,re,X)&&(H=zn(je.NAVIGATION_DUPLICATED,{to:L,from:re}),fe(re,re,!0,!1)),(H?Promise.resolve(H):P(L,re)).catch(U=>or(U)?or(U,je.NAVIGATION_GUARD_REDIRECT)?U:ae(U):K(U,L,re)).then(U=>{if(U){if(or(U,je.NAVIGATION_GUARD_REDIRECT))return A(Ce({replace:w},m(U.to),{state:typeof U.to=="object"?Ce({},F,U.to.state):F,force:ge}),Z||L)}else U=k(L,re,!0,w,F);return R(L,re,U),U})}function C(M,Z){const X=g(M,Z);return X?Promise.reject(X):Promise.resolve()}function I(M){const Z=be.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(M):M()}function P(M,Z){let X;const[re,F,ge]=YS(M,Z);X=ya(re.reverse(),"beforeRouteLeave",M,Z);for(const T of re)T.leaveGuards.forEach(L=>{X.push(Ir(L,M,Z))});const w=C.bind(null,M,Z);return X.push(w),me(X).then(()=>{X=[];for(const T of o.list())X.push(Ir(T,M,Z));return X.push(w),me(X)}).then(()=>{X=ya(F,"beforeRouteUpdate",M,Z);for(const T of F)T.updateGuards.forEach(L=>{X.push(Ir(L,M,Z))});return X.push(w),me(X)}).then(()=>{X=[];for(const T of ge)if(T.beforeEnter)if(Vt(T.beforeEnter))for(const L of T.beforeEnter)X.push(Ir(L,M,Z));else X.push(Ir(T.beforeEnter,M,Z));return X.push(w),me(X)}).then(()=>(M.matched.forEach(T=>T.enterCallbacks={}),X=ya(ge,"beforeRouteEnter",M,Z,I),X.push(w),me(X))).then(()=>{X=[];for(const T of s.list())X.push(Ir(T,M,Z));return X.push(w),me(X)}).catch(T=>or(T,je.NAVIGATION_CANCELLED)?T:Promise.reject(T))}function R(M,Z,X){a.list().forEach(re=>I(()=>re(M,Z,X)))}function k(M,Z,X,re,F){const ge=g(M,Z);if(ge)return ge;const w=Z===Pt,T=wn?history.state:{};X&&(re||w?i.replace(M.fullPath,Ce({scroll:w&&T&&T.scroll},F)):i.push(M.fullPath,F)),u.value=M,fe(M,Z,X,w),ae()}let N;function $(){N||(N=i.listen((M,Z,X)=>{if(!de.listening)return;const re=E(M),F=S(re,de.currentRoute.value);if(F){A(Ce(F,{replace:!0,force:!0}),re).catch(xi);return}c=re;const ge=u.value;wn&&qS(vf(ge.fullPath,X.delta),Fs()),P(re,ge).catch(w=>or(w,je.NAVIGATION_ABORTED|je.NAVIGATION_CANCELLED)?w:or(w,je.NAVIGATION_GUARD_REDIRECT)?(A(Ce(m(w.to),{force:!0}),re).then(T=>{or(T,je.NAVIGATION_ABORTED|je.NAVIGATION_DUPLICATED)&&!X.delta&&X.type===Eu.pop&&i.go(-1,!1)}).catch(xi),Promise.reject()):(X.delta&&i.go(-X.delta,!1),K(w,re,ge))).then(w=>{w=w||k(re,ge,!1),w&&(X.delta&&!or(w,je.NAVIGATION_CANCELLED)?i.go(-X.delta,!1):X.type===Eu.pop&&or(w,je.NAVIGATION_ABORTED|je.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),R(re,ge,w)}).catch(xi)}))}let ee=ui(),B=ui(),z;function K(M,Z,X){ae(M);const re=B.list();return re.length?re.forEach(F=>F(M,Z,X)):console.error(M),Promise.reject(M)}function Q(){return z&&u.value!==Pt?Promise.resolve():new Promise((M,Z)=>{ee.add([M,Z])})}function ae(M){return z||(z=!M,$(),ee.list().forEach(([Z,X])=>M?X(M):Z()),ee.reset()),M}function fe(M,Z,X,re){const{scrollBehavior:F}=e;if(!wn||!F)return Promise.resolve();const ge=!X&&VS(vf(M.fullPath,0))||(re||!X)&&history.state&&history.state.scroll||null;return Vi().then(()=>F(M,Z,ge)).then(w=>w&&jS(w)).catch(w=>K(w,M,Z))}const pe=M=>i.go(M);let ye;const be=new Set,de={currentRoute:u,listening:!0,addRoute:h,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:p,resolve:E,options:e,push:y,replace:_,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:o.add,beforeResolve:s.add,afterEach:a.add,onError:B.add,isReady:Q,install(M){M.component("RouterLink",mw),M.component("RouterView",Up),M.config.globalProperties.$router=de,Object.defineProperty(M.config.globalProperties,"$route",{enumerable:!0,get:()=>ke(u)}),wn&&!ye&&u.value===Pt&&(ye=!0,y(i.location).catch(re=>{}));const Z={};for(const re in Pt)Object.defineProperty(Z,re,{get:()=>u.value[re],enumerable:!0});M.provide(Ol,de),M.provide(Np,hr(Z)),M.provide(Su,u);const X=M.unmount;be.add(M),M.unmount=function(){be.delete(M),be.size<1&&(c=Pt,N&&N(),N=null,u.value=Pt,ye=!1,z=!1),X()}}};function me(M){return M.reduce((Z,X)=>Z.then(()=>I(X)),Promise.resolve())}return de}const Sw=/(:\w+)\([^)]+\)/g,ww=/(:\w+)[?+*]/g,Tw=/:\w+/g,Aw=(e,t)=>t.path.replace(Sw,"$1").replace(ww,"$1").replace(Tw,r=>e.params[r.slice(1)]?.toString()||""),wu=(e,t)=>{const r=e.route.matched.find(i=>i.components?.default===e.Component.type),n=t??r?.meta.key??(r&&Aw(e.route,r));return typeof n=="function"?n(e.route):n},Cw=(e,t)=>({default:()=>e?Ke(h0,e===!0?{}:e,t):t});function xl(e){return Array.isArray(e)?e:[e]}const Iw="modulepreload",kw=function(e,t){return new URL(e,t).href},If={},Yt=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){let c=function(l){return Promise.all(l.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),u=a?.nonce||a?.getAttribute("nonce");i=c(r.map(l=>{if(l=kw(l,n),l in If)return;If[l]=!0;const f=l.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(n)for(let v=s.length-1;v>=0;v--){const p=s[v];if(p.href===l&&(!f||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":Iw,f||(h.as="script"),h.crossOrigin="",h.href=l,u&&h.setAttribute("nonce",u),document.head.appendChild(h),f)return new Promise((v,p)=>{h.addEventListener("load",v),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})},ba=[{name:"index",path:"/",component:()=>Yt(()=>import("./B77IIWzB.js"),[],import.meta.url)},{name:"burrito",path:"/burrito",component:()=>Yt(()=>import("./MmvQX_eT.js"),[],import.meta.url)},{name:"profile",path:"/profile",component:()=>Yt(()=>import("./C_TnQn_7.js"),[],import.meta.url)}],Pw=(e,t)=>({default:()=>e?Ke(pb,e===!0?{}:e,t):t.default?.()}),Rw=/(:\w+)\([^)]+\)/g,Ow=/(:\w+)[?+*]/g,xw=/:\w+/g;function kf(e){const t=e?.meta.key??e.path.replace(Rw,"$1").replace(Ow,"$1").replace(xw,r=>e.params[r.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function Nw(e,t){return e===t||t===Pt?!1:kf(e)!==kf(t)?!0:!e.matched.every((n,i)=>n.components&&n.components.default===t.matched[i]?.components?.default)}function Lw(e,t=!1){if(e){if(e.nodeName==="#comment"&&e.nodeValue==="[")return Fp(e,[],t);if(t){const r=e.cloneNode(!0);return r.querySelectorAll("[data-island-slot]").forEach(n=>{n.innerHTML=""}),[r.outerHTML]}return[e.outerHTML]}}function Fp(e,t=[],r=!1){if(e&&e.nodeName){if(Dw(e))return t;if(!Mw(e)){const n=e.cloneNode(!0);r&&n.querySelectorAll?.("[data-island-slot]").forEach(i=>{i.innerHTML=""}),t.push(n.outerHTML)}Fp(e.nextSibling,t,r)}return t}function Ea(e,t){const r=e?Lw(e):[t];return r?Q0(r.join(""),r.length):Ke("div")}function Mw(e){return e.nodeName==="#comment"&&e.nodeValue==="["}function Dw(e){return e.nodeName==="#comment"&&e.nodeValue==="]"}const Uw={scrollBehavior(e,t,r){const n=He(),i=wt().options?.scrollBehaviorType??"auto";if(e.path.replace(/\/$/,"")===t.path.replace(/\/$/,""))return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:Hp(e.hash),behavior:i}:!1;if((typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1)return!1;const s=n._runningTransition?"page:transition:finish":"page:loading:end";return new Promise(a=>{if(t===Pt){a(Pf(e,t,r,i));return}n.hooks.hookOnce(s,()=>{requestAnimationFrame(()=>a(Pf(e,t,r,i)))})})}};function Hp(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function Pf(e,t,r,n){if(r)return r;const i=Nw(e,t);return e.hash?{el:e.hash,top:Hp(e.hash),behavior:i?n:"instant"}:{left:0,top:0}}const Fw={hashMode:!1,scrollBehaviorType:"auto"},Sr={...Fw,...Uw},Hw=async(e,t)=>{let r,n;if(!e.meta?.validate)return;const i=([r,n]=Oi(()=>Promise.resolve(e.meta.validate(e))),r=await r,n(),r);if(i===!0)return;const o=an({fatal:!0,status:i&&(i.status||i.statusCode)||404,statusText:i&&(i.statusText||i.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<"u"&&window.history.pushState({},"",t.fullPath),o},Bw=e=>{const t=wp({path:e.path});if(t.redirect){const r=t.redirect.includes("#")?t.redirect:t.redirect+e.hash;return qr(r,{acceptRelative:!0})?(window.location.href=r,!1):r}},jw=[Hw,Bw],Tu={};function qw(e,t,r){const{pathname:n,search:i,hash:o}=t,s=e.indexOf("#");if(s>-1){const c=o.includes(e.slice(s))?e.slice(s).length:1;let l=o.slice(c);return l[0]!=="/"&&(l="/"+l),Kc(zc(l,""))}const a=Kc(zc(n,e)),u=!r||gE(a,r)?a:r;return u+(u.includes("?")?"":i)+o}const Vw=rr({name:"nuxt:router",enforce:"pre",async setup(e){let t,r,n=ro().app.baseURL;const i=Sr.history?.(n)??ew(n),o=Sr.routes?([t,r]=Oi(()=>Sr.routes(ba)),t=await t,r(),t??ba):ba;let s;const a=_w({...Sr,scrollBehavior:(b,E,m)=>{if(E===Pt){s=m;return}if(Sr.scrollBehavior){if(a.options.scrollBehavior=Sr.scrollBehavior,"scrollRestoration"in window.history){const g=a.beforeEach(()=>{g(),window.history.scrollRestoration="manual"})}return Sr.scrollBehavior(b,Pt,s||m)}},history:i,routes:o});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const u=br(a.currentRoute.value);a.afterEach((b,E)=>{u.value=E}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>u.value});const c=qw(n,window.location,e.payload.path),l=br(a.currentRoute.value),f=()=>{l.value=a.currentRoute.value};a.afterEach((b,E)=>{b.matched.at(-1)?.components?.default===E.matched.at(-1)?.components?.default&&f()});const d={sync:f};for(const b in l.value)Object.defineProperty(d,b,{get:()=>l.value[b],enumerable:!0});e._route=hr(d),e._middleware||={global:[],named:{}};const h=Us();a.afterEach(async(b,E,m)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(d_),m&&await e.callHook("page:loading:end")});try{[t,r]=Oi(()=>a.isReady()),await t,r()}catch(b){[t,r]=Oi(()=>e.runWithContext(()=>Yr(b))),await t,r()}const v=c!==a.currentRoute.value.fullPath?a.resolve(c):a.currentRoute.value;f();const p=e.payload.state._layout;return a.beforeEach(async(b,E)=>{await e.callHook("page:loading:start"),b.meta=Br(b.meta),e.isHydrating&&p&&!mr(b.meta.layout)&&(b.meta.layout=p),e._processingMiddleware=!0;{const m=new Set([...jw,...e._middleware.global]);for(const y of b.matched){const _=y.meta.middleware;if(_)for(const S of xl(_))m.add(S)}const g=wp({path:b.path});if(g.appMiddleware)for(const y in g.appMiddleware)g.appMiddleware[y]?m.add(y):m.delete(y);for(const y of m){const _=typeof y=="string"?e._middleware.named[y]||await Tu[y]?.().then(S=>S.default||S):y;if(!_)throw new Error(`Unknown route middleware: '${y}'.`);try{const S=await e.runWithContext(()=>_(b,E));if(!e.payload.serverRendered&&e.isHydrating&&(S===!1||S instanceof Error)){const A=S||an({status:404,statusText:`Page Not Found: ${c}`});return await e.runWithContext(()=>Yr(A)),!1}if(S===!0)continue;if(S===!1)return S;if(S)return gp(S)&&S.fatal&&await e.runWithContext(()=>Yr(S)),S}catch(S){const A=an(S);return A.fatal&&await e.runWithContext(()=>Yr(A)),A}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(b=>{if(b.matched.length===0)return e.runWithContext(()=>Yr(an({status:404,fatal:!1,statusText:`Page not found: ${b.fullPath}`,data:{path:b.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in v&&(v.name=void 0),await a.replace({...v,force:!0}),a.options.scrollBehavior=Sr.scrollBehavior}catch(b){await e.runWithContext(()=>Yr(b))}}),{provide:{router:a}}}}),Au=globalThis.requestIdleCallback||(e=>{const t=Date.now(),r={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(r)},1)}),$w=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Hs=e=>{const t=He();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Au(()=>e())}):Au(()=>e())},Ww=rr({name:"nuxt:payload",setup(e){const t=new Set;wt().beforeResolve(async(r,n)=>{if(r.path===n.path)return;const i=await cf(r.path);if(i){for(const o of t)delete e.static.data[o];for(const o in i.data)o in e.static.data||t.add(o),e.static.data[o]=i.data[o]}}),Hs(()=>{e.hooks.hook("link:prefetch",async r=>{const{hostname:n}=new URL(r,window.location.href);n===window.location.hostname&&await cf().catch(()=>{console.warn("[nuxt] Error preloading payload for",r)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(Sp,1e3)})}}),Gw=rr(()=>{const e=wt();Hs(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),Kw=rr(e=>{let t;async function r(){let n;try{n=await Sp()}catch(i){const o=i;if(!("status"in o&&(o.status===404||o.status===403)))throw o}t&&clearTimeout(t),t=setTimeout(r,ef);try{const i=await $fetch(Il("builds/latest.json")+`?${Date.now()}`);i.id!==n?.id&&(e.hooks.callHook("app:manifest:update",i),t&&clearTimeout(t))}catch{}}Hs(()=>{t=setTimeout(r,ef)})});function zw(e={}){const t=e.path||window.location.pathname;let r={};try{r=ds(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:He().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const Xw=rr({name:"nuxt:chunk-reload",setup(e){const t=wt(),r=ro(),n=new Set;t.beforeEach(()=>{n.clear()}),e.hook("app:chunkError",({error:o})=>{n.add(o)});function i(o){const s=Al(r.app.baseURL,o.fullPath);zw({path:s,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(i)}),t.onError((o,s)=>{n.has(o)&&i(s)})}}),Yw=rr({name:"nuxt:global-components"}),bo={};function Jw(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function Bp(e,t=wt()){const{path:r,matched:n}=t.resolve(e);if(!n.length||(t._routePreloaded||=new Set,t._routePreloaded.has(r)))return;const i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>Bp(e,t));t._routePreloaded.add(r);for(const o of n){const s=o.components?.default;if(typeof s!="function")continue;const a=Promise.resolve(s()).catch(()=>{}).finally(()=>i.splice(i.indexOf(a)));i.push(a)}await Promise.all(i)}const Qw=rr({name:"nuxt:prefetch",setup(e){const t=wt();e.hooks.hook("app:mounted",()=>{t.beforeEach(async r=>{const n=r?.meta?.layout;n&&typeof bo[n]=="function"&&await bo[n]()})}),e.hooks.hook("link:prefetch",r=>{if(qr(r))return;const n=t.resolve(r);if(!n)return;const i=n.meta.layout;let o=xl(n.meta.middleware);o=o.filter(s=>typeof s=="string");for(const s of o)typeof Tu[s]=="function"&&Tu[s]();typeof i=="string"&&i in bo&&Jw(bo[i])})}});var Cu=function(e,t){return Cu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Cu(e,t)};function Dt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Cu(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var D=function(){return D=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},D.apply(this,arguments)};function gs(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function x(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{c(n.next(l))}catch(f){s(f)}}function u(l){try{c(n.throw(l))}catch(f){s(f)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((n=n.apply(e,t||[])).next())})}function O(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function ce(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function oe(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function Ee(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var vr;(function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"})(vr||(vr={}));var St;(function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"})(St||(St={}));var Rf="-",Bs="AMP",Zw="".concat(Bs,"_unsent"),jp="$default_instance",Nl="https://api2.amplitude.com/2/httpapi",qp="https://api.eu.amplitude.com/2/httpapi",Vp="https://api2.amplitude.com/batch",$p="https://api.eu.amplitude.com/batch",eT="utm_campaign",tT="utm_content",rT="utm_id",nT="utm_medium",iT="utm_source",oT="utm_term",Of="dclid",xf="fbclid",Nf="gbraid",Lf="gclid",Mf="ko_click_id",Df="li_fat_id",Uf="msclkid",Ff="rdt_cid",Hf="ttclid",Bf="twclid",jf="wbraid",js={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rdt_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},ms=["access-control-allow-origin","access-control-allow-credentials","access-control-expose-headers","access-control-max-age","access-control-allow-methods","access-control-allow-headers","accept-patch","accept-ranges","age","allow","alt-svc","cache-control","connection","content-disposition","content-encoding","content-language","content-length","content-location","content-md5","content-range","content-type","date","delta-base","etag","expires","im","last-modified","link","location","permanent","p3p","pragma","proxy-authenticate","public-key-pins","retry-after","server","status","strict-transport-security","trailer","transfer-encoding","tk","upgrade","vary","via","warning","www-authenticate","x-b3-traceid","x-frame-options"],sT=["authorization","cookie","set-cookie"],aT=1e3,Iu=function(e){if(Object.keys(e).length>aT)return!1;for(var t in e){var r=e[t];if(!Wp(t,r))return!1}return!0},Wp=function(e,t){var r,n;if(typeof e!="string")return!1;if(Array.isArray(t)){var i=!0;try{for(var o=ce(t),s=o.next();!s.done;s=o.next()){var a=s.value;if(Array.isArray(a))return!1;if(typeof a=="object")i=i&&Iu(a);else if(!["number","string"].includes(typeof a))return!1;if(!i)return!1}}catch(u){r={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}else{if(t==null)return!1;if(typeof t=="object")return Iu(t);if(!["number","string","boolean"].includes(typeof t))return!1}return!0},Fn=(function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return D({},this._properties)},e.prototype.set=function(t,r){return this._safeSet(Me.SET,t,r),this},e.prototype.setOnce=function(t,r){return this._safeSet(Me.SET_ONCE,t,r),this},e.prototype.append=function(t,r){return this._safeSet(Me.APPEND,t,r),this},e.prototype.prepend=function(t,r){return this._safeSet(Me.PREPEND,t,r),this},e.prototype.postInsert=function(t,r){return this._safeSet(Me.POSTINSERT,t,r),this},e.prototype.preInsert=function(t,r){return this._safeSet(Me.PREINSERT,t,r),this},e.prototype.remove=function(t,r){return this._safeSet(Me.REMOVE,t,r),this},e.prototype.add=function(t,r){return this._safeSet(Me.ADD,t,r),this},e.prototype.unset=function(t){return this._safeSet(Me.UNSET,t,Rf),this},e.prototype.clearAll=function(){return this._properties={},this._properties[Me.CLEAR_ALL]=Rf,this},e.prototype._safeSet=function(t,r,n){if(this._validate(t,r,n)){var i=this._properties[t];return i===void 0&&(i={},this._properties[t]=i),i[r]=n,this._propertySet.add(r),!0}return!1},e.prototype._validate=function(t,r,n){return this._properties[Me.CLEAR_ALL]!==void 0||this._propertySet.has(r)?!1:t===Me.ADD?typeof n=="number":t!==Me.UNSET&&t!==Me.REMOVE?Wp(r,n):!0},e})(),Me;(function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"})(Me||(Me={}));var uT=[Me.CLEAR_ALL,Me.UNSET,Me.SET,Me.SET_ONCE,Me.ADD,Me.APPEND,Me.PREPEND,Me.PREINSERT,Me.POSTINSERT,Me.REMOVE],lT="Event tracked successfully",cT="Unexpected error occurred",fT="Event rejected due to exceeded retry count",dT="Event skipped due to optOut config",hT="Event rejected due to missing API key",vT="Invalid API key",pT="Client not initialized",qe;(function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"})(qe||(qe={}));var Hn=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=qe.Unknown),{event:e,code:t,message:r}},le=function(){var e="ampIntegrationContext";if(typeof globalThis<"u"&&typeof globalThis[e]<"u")return globalThis[e];if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global},gT=function(e){return e?(e^Math.random()*16>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,Zt)},qf=Ee([],oe(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),Zt=function(e){var t,r=le();if(!(!((t=r?.crypto)===null||t===void 0)&&t.getRandomValues))return gT(e);var n=r.crypto.getRandomValues(new Uint8Array(16));return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Ee([],oe(n.entries()),!1).map(function(i){var o=oe(i,2),s=o[0],a=o[1];return[4,6,8,10].includes(s)?"-".concat(qf[a]):qf[a]}).join("")},mT=(function(){function e(t){this.client=t,this.queue=[],this.applying=!1,this.plugins=[],this._optOutListeners=[]}return e.prototype.register=function(t,r){var n,i;return x(this,void 0,void 0,function(){return O(this,function(o){switch(o.label){case 0:return this.plugins.some(function(s){return s.name===t.name})?(this.loggerProvider.warn("Plugin with name ".concat(t.name," already exists, skipping registration")),[2]):(t.name===void 0&&(t.name=Zt(),this.loggerProvider.warn(`Plugin name is undefined. 
      Generating a random UUID for plugin name: `.concat(t.name,`. 
      Set a name for the plugin to prevent it from being added multiple times.`))),t.type=(n=t.type)!==null&&n!==void 0?n:"enrichment",[4,(i=t.setup)===null||i===void 0?void 0:i.call(t,r,this.client)]);case 1:return o.sent(),this.plugins.push(t),[2]}})})},e.prototype.deregister=function(t,r){var n;return x(this,void 0,void 0,function(){var i,o;return O(this,function(s){switch(s.label){case 0:return i=this.plugins.findIndex(function(a){return a.name===t}),i===-1?(r.loggerProvider.warn("Plugin with name ".concat(t," does not exist, skipping deregistration")),[2]):(o=this.plugins[i],this.plugins.splice(i,1),[4,(n=o.teardown)===null||n===void 0?void 0:n.call(o)]);case 1:return s.sent(),[2]}})})},e.prototype.reset=function(t){this._clearOptOutListeners(),this.applying=!1;var r=this.plugins;r.map(function(n){var i;return(i=n.teardown)===null||i===void 0?void 0:i.call(n)}),this.plugins=[],this.client=t},e.prototype.push=function(t){var r=this;return new Promise(function(n){r.queue.push([t,n]),r.scheduleApply(0)})},e.prototype.scheduleApply=function(t){var r=this;this.applying||(this.applying=!0,setTimeout(function(){r.apply(r.queue.shift()).then(function(){r.applying=!1,r.queue.length>0&&r.scheduleApply(0)})},t))},e.prototype.apply=function(t){return x(this,void 0,void 0,function(){var r,n,i,o,s,a,u,h,v,c,l,f,d,h,v,p,b,E,m,g,y,_;return O(this,function(S){switch(S.label){case 0:if(!t)return[2];r=oe(t,1),n=r[0],i=oe(t,2),o=i[1],this.loggerProvider.log("Timeline.apply: Initial event",n),s=this.plugins.filter(function(A){return A.type==="before"}),S.label=1;case 1:S.trys.push([1,6,7,8]),a=ce(s),u=a.next(),S.label=2;case 2:return u.done?[3,5]:(h=u.value,h.execute?[4,h.execute(D({},n))]:[3,4]);case 3:if(v=S.sent(),v===null)return this.loggerProvider.log("Timeline.apply: Event filtered out by before plugin '".concat(String(h.name),"', event: ").concat(JSON.stringify(n))),o({event:n,code:0,message:""}),[2];n=v,this.loggerProvider.log("Timeline.apply: Event after before plugin '".concat(String(h.name),"', event: ").concat(JSON.stringify(n))),S.label=4;case 4:return u=a.next(),[3,2];case 5:return[3,8];case 6:return c=S.sent(),m={error:c},[3,8];case 7:try{u&&!u.done&&(g=a.return)&&g.call(a)}finally{if(m)throw m.error}return[7];case 8:l=this.plugins.filter(function(A){return A.type==="enrichment"||A.type===void 0}),S.label=9;case 9:S.trys.push([9,14,15,16]),f=ce(l),d=f.next(),S.label=10;case 10:return d.done?[3,13]:(h=d.value,h.execute?[4,h.execute(D({},n))]:[3,12]);case 11:if(v=S.sent(),v===null)return this.loggerProvider.log("Timeline.apply: Event filtered out by enrichment plugin '".concat(String(h.name),"', event: ").concat(JSON.stringify(n))),o({event:n,code:0,message:""}),[2];n=v,this.loggerProvider.log("Timeline.apply: Event after enrichment plugin '".concat(String(h.name),"', event: ").concat(JSON.stringify(n))),S.label=12;case 12:return d=f.next(),[3,10];case 13:return[3,16];case 14:return p=S.sent(),y={error:p},[3,16];case 15:try{d&&!d.done&&(_=f.return)&&_.call(f)}finally{if(y)throw y.error}return[7];case 16:return b=this.plugins.filter(function(A){return A.type==="destination"}),this.loggerProvider.log("Timeline.apply: Final event before destinations, event: ".concat(JSON.stringify(n))),E=b.map(function(A){var C=D({},n);return A.execute(C).catch(function(I){return Hn(C,0,String(I))})}),Promise.all(E).then(function(A){var C=oe(A,1),I=C[0],P=I||Hn(n,100,"Event not tracked, no destination plugins on the instance");o(P)}),[2]}})})},e.prototype.flush=function(){return x(this,void 0,void 0,function(){var t,r,n,i=this;return O(this,function(o){switch(o.label){case 0:return t=this.queue,this.queue=[],[4,Promise.all(t.map(function(s){return i.apply(s)}))];case 1:return o.sent(),r=this.plugins.filter(function(s){return s.type==="destination"}),n=r.map(function(s){return s.flush&&s.flush()}),[4,Promise.all(n)];case 2:return o.sent(),[2]}})})},e.prototype.addOptOutListener=function(t){this._optOutListeners.push(t)},e.prototype._clearOptOutListeners=function(){this._optOutListeners=[]},e.prototype.onIdentityChanged=function(t){this.plugins.forEach(function(r){var n;(n=r.onIdentityChanged)===null||n===void 0||n.call(r,t)})},e.prototype.onSessionIdChanged=function(t){this.plugins.forEach(function(r){var n;(n=r.onSessionIdChanged)===null||n===void 0||n.call(r,t)})},e.prototype.onOptOutChanged=function(t){this.plugins.forEach(function(r){var n;(n=r.onOptOutChanged)===null||n===void 0||n.call(r,t)}),this._callOptOutListeners(t)},e.prototype._callOptOutListeners=function(t){return x(this,void 0,void 0,function(){var r,n,i,o,s,a,u;return O(this,function(c){switch(c.label){case 0:c.trys.push([0,7,8,9]),r=ce(this._optOutListeners),n=r.next(),c.label=1;case 1:if(n.done)return[3,6];i=n.value,c.label=2;case 2:return c.trys.push([2,4,,5]),[4,i(t)];case 3:return c.sent(),[3,5];case 4:return o=c.sent(),this.loggerProvider.error("Error calling optOut listener",o),[3,5];case 5:return n=r.next(),[3,1];case 6:return[3,9];case 7:return s=c.sent(),a={error:s},[3,9];case 8:try{n&&!n.done&&(u=r.return)&&u.call(r)}finally{if(a)throw a.error}return[7];case 9:return[2]}})})},e.prototype.onReset=function(){this.plugins.forEach(function(t){var r;(r=t.onReset)===null||r===void 0||r.call(t)})},e})(),yT=function(e,t,r){var n=typeof e=="string"?{event_type:e}:e;return D(D(D({},n),r),t&&{event_properties:t})},Ll=function(e,t){var r=D(D({},t),{event_type:St.IDENTIFY,user_properties:e.getUserProperties()});return r},bT=function(e,t,r,n){var i,o=D(D({},n),{event_type:St.GROUP_IDENTIFY,group_properties:r.getUserProperties(),groups:(i={},i[e]=t,i)});return o},ET=function(e,t,r){var n,i=new Fn;i.set(e,t);var o=D(D({},r),{event_type:St.IDENTIFY,user_properties:i.getUserProperties(),groups:(n={},n[e]=t,n)});return o},_T=function(e,t){return D(D({},t),{event_type:St.REVENUE,event_properties:e.getEventProperties()})},rt=function(e){return{promise:e||Promise.resolve()}},ST=(function(){function e(t){t===void 0&&(t="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new mT(this),this.name=t}return e.prototype._init=function(t){return x(this,void 0,void 0,function(){return O(this,function(r){switch(r.label){case 0:return this.config=t,this.timeline.reset(this),this.timeline.loggerProvider=this.config.loggerProvider,[4,this.runQueuedFunctions("q")];case 1:return r.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(t){return x(this,void 0,void 0,function(){var r,n,i,o,s,a,u,c;return O(this,function(l){switch(l.label){case 0:r=this[t],this[t]=[],l.label=1;case 1:l.trys.push([1,8,9,10]),n=ce(r),i=n.next(),l.label=2;case 2:return i.done?[3,7]:(o=i.value,s=o(),s&&"promise"in s?[4,s.promise]:[3,4]);case 3:return l.sent(),[3,6];case 4:return[4,s];case 5:l.sent(),l.label=6;case 6:return i=n.next(),[3,2];case 7:return[3,10];case 8:return a=l.sent(),u={error:a},[3,10];case 9:try{i&&!i.done&&(c=n.return)&&c.call(n)}finally{if(u)throw u.error}return[7];case 10:return this[t].length?[4,this.runQueuedFunctions(t)]:[3,12];case 11:l.sent(),l.label=12;case 12:return[2]}})})},e.prototype.track=function(t,r,n){var i=yT(t,r,n);return this.userProperties=this.getOperationAppliedUserProperties(i.user_properties),rt(this.dispatch(i))},e.prototype.identify=function(t,r){var n=Ll(t,r);return this.userProperties=this.getOperationAppliedUserProperties(n.user_properties),rt(this.dispatch(n))},e.prototype.groupIdentify=function(t,r,n,i){var o=bT(t,r,n,i);return rt(this.dispatch(o))},e.prototype.setGroup=function(t,r,n){var i=ET(t,r,n);return this.userProperties=this.getOperationAppliedUserProperties(i.user_properties),rt(this.dispatch(i))},e.prototype.revenue=function(t,r){var n=_T(t,r);return rt(this.dispatch(n))},e.prototype.add=function(t){return this.isReady?this._addPlugin(t):(this.q.push(this._addPlugin.bind(this,t)),rt())},e.prototype._addPlugin=function(t){return rt(this.timeline.register(t,this.config))},e.prototype.remove=function(t){return this.isReady?this._removePlugin(t):(this.q.push(this._removePlugin.bind(this,t)),rt())},e.prototype._removePlugin=function(t){return rt(this.timeline.deregister(t,this.config))},e.prototype.dispatchWithCallback=function(t,r){if(!this.isReady)return r(Hn(t,0,pT));this.process(t).then(r)},e.prototype.dispatch=function(t){return x(this,void 0,void 0,function(){var r=this;return O(this,function(n){return this.isReady?[2,this.process(t)]:[2,new Promise(function(i){r.dispatchQ.push(r.dispatchWithCallback.bind(r,t,i))})]})})},e.prototype.getOperationAppliedUserProperties=function(t){var r,n=(r=this.userProperties)!==null&&r!==void 0?r:{},i=D({},n);if(t===void 0)return i;var o={};return Object.keys(t).forEach(function(s){Object.values(vr).includes(s)||(o[s]=t[s])}),uT.forEach(function(s){if(Object.keys(t).includes(s)){var a=t[s];switch(s){case vr.CLEAR_ALL:Object.keys(i).forEach(function(u){delete i[u]});break;case vr.UNSET:Object.keys(a).forEach(function(u){delete i[u]});break;case vr.SET:Object.assign(i,a);break}}}),Object.assign(i,o),i},e.prototype.process=function(t){return x(this,void 0,void 0,function(){var i,r,n,i;return O(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),this.config.optOut?[2,Hn(t,0,dT)]:(t.event_type===St.IDENTIFY&&this.timeline.onIdentityChanged({userProperties:this.userProperties}),[4,this.timeline.push(t)]);case 1:return i=o.sent(),i.code===200?this.config.loggerProvider.log(i.message):i.code===100?this.config.loggerProvider.warn(i.message):this.config.loggerProvider.error(i.message),[2,i];case 2:return r=o.sent(),n=String(r),this.config.loggerProvider.error(n),i=Hn(t,0,n),[2,i];case 3:return[2]}})})},e.prototype.setOptOut=function(t){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!t));return}this._setOptOut(t)},e.prototype._setOptOut=function(t){this.config.optOut!==t&&(this.config.optOut=!!t,this.timeline.onOptOutChanged(t))},e.prototype.flush=function(){return rt(this.timeline.flush())},e.prototype.plugin=function(t){var r=this.timeline.plugins.find(function(n){return n.name===t});if(r===void 0){this.config.loggerProvider.debug("Cannot find plugin with name ".concat(t));return}return r},e.prototype.plugins=function(t){return this.timeline.plugins.filter(function(r){return r instanceof t})},e})(),Gp=(function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(t){return this.productId=t,this},e.prototype.setQuantity=function(t){return t>0&&(this.quantity=t),this},e.prototype.setPrice=function(t){return this.price=t,this},e.prototype.setRevenueType=function(t){return this.revenueType=t,this},e.prototype.setCurrency=function(t){return this.currency=t,this},e.prototype.setRevenue=function(t){return this.revenue=t,this},e.prototype.setReceipt=function(t){return this.receipt=t,this},e.prototype.setReceiptSig=function(t){return this.receiptSig=t,this},e.prototype.setEventProperties=function(t){try{var r=JSON.parse(JSON.stringify(t));Iu(r)&&(this.properties=r)}catch{}return this},e.prototype.getEventProperties=function(){var t=this.properties?D({},this.properties):{};return t[Ft.REVENUE_PRODUCT_ID]=this.productId,t[Ft.REVENUE_QUANTITY]=this.quantity,t[Ft.REVENUE_PRICE]=this.price,t[Ft.REVENUE_TYPE]=this.revenueType,t[Ft.REVENUE_CURRENCY]=this.currency,t[Ft.REVENUE]=this.revenue,t[Ft.RECEIPT]=this.receipt,t[Ft.RECEIPT_SIG]=this.receiptSig,t},e})(),Ft;(function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE_CURRENCY="$currency",e.REVENUE="$revenue",e.RECEIPT="$receipt",e.RECEIPT_SIG="$receiptSig"})(Ft||(Ft={}));var wT=function(e,t){var r=Math.max(t,1);return e.reduce(function(n,i,o){var s=Math.floor(o/r);return n[s]||(n[s]=[]),n[s].push(i),n},[])},at;(function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"})(at||(at={}));var Eo="Amplitude Logger ",Xn=(function(){function e(){this.logLevel=at.None}return e.prototype.disable=function(){this.logLevel=at.None},e.prototype.enable=function(t){t===void 0&&(t=at.Warn),this.logLevel=t},e.prototype.log=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.logLevel<at.Verbose||console.log("".concat(Eo,"[Log]: ").concat(t.join(" ")))},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.logLevel<at.Warn||console.warn("".concat(Eo,"[Warn]: ").concat(t.join(" ")))},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.logLevel<at.Error||console.error("".concat(Eo,"[Error]: ").concat(t.join(" ")))},e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.logLevel<at.Debug||console.log("".concat(Eo,"[Debug]: ").concat(t.join(" ")))},e})(),Bo=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:jp,logLevel:at.Warn,loggerProvider:new Xn,offline:!1,optOut:!1,serverUrl:Nl,serverZone:"US",useBatch:!1}},Kp=(function(){function e(t){var r,n,i,o;this._optOut=!1;var s=Bo();this.apiKey=t.apiKey,this.flushIntervalMillis=(r=t.flushIntervalMillis)!==null&&r!==void 0?r:s.flushIntervalMillis,this.flushMaxRetries=t.flushMaxRetries||s.flushMaxRetries,this.flushQueueSize=t.flushQueueSize||s.flushQueueSize,this.instanceName=t.instanceName||s.instanceName,this.loggerProvider=t.loggerProvider||s.loggerProvider,this.logLevel=(n=t.logLevel)!==null&&n!==void 0?n:s.logLevel,this.minIdLength=t.minIdLength,this.plan=t.plan,this.ingestionMetadata=t.ingestionMetadata,this.offline=t.offline!==void 0?t.offline:s.offline,this.optOut=(i=t.optOut)!==null&&i!==void 0?i:s.optOut,this.serverUrl=t.serverUrl,this.serverZone=t.serverZone||s.serverZone,this.storageProvider=t.storageProvider,this.transportProvider=t.transportProvider,this.useBatch=(o=t.useBatch)!==null&&o!==void 0?o:s.useBatch,this.loggerProvider.enable(this.logLevel);var a=zp(t.serverUrl,t.serverZone,t.useBatch);this.serverZone=a.serverZone,this.serverUrl=a.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(t){this._optOut=t},enumerable:!1,configurable:!0}),e})(),TT=function(e,t){return e==="EU"?t?$p:qp:t?Vp:Nl},zp=function(e,t,r){if(e===void 0&&(e=""),t===void 0&&(t=Bo().serverZone),r===void 0&&(r=Bo().useBatch),e)return{serverUrl:e,serverZone:void 0};var n=["US","EU"].includes(t)?t:Bo().serverZone;return{serverZone:n,serverUrl:TT(n,r)}},AT=(function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(t,r){this.sdk.metrics.histogram[t]=r},e})();function ku(e){return e>=200&&e<300}var jo=function(e){e===void 0&&(e=0);var t=new Error().stack||"";return t.split(`
`).slice(2+e).map(function(r){return r.trim()})},Pe=function(e){return function(){var t=D({},e.config),r=t.loggerProvider,n=t.logLevel;return{logger:r,logLevel:n}}},CT=function(e,t){var r,n;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");try{for(var i=ce(t.split(".")),o=i.next();!o.done;o=i.next()){var s=o.value;if(s in e)e=e[s];else return}}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return e},Re=function(e,t){return function(){var r,n,i={};try{for(var o=ce(t),s=o.next();!s.done;s=o.next()){var a=s.value;i[a]=CT(e,a)}}catch(u){r={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i}},_e=function(e,t,r,n,i){return i===void 0&&(i=null),function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=r(),u=a.logger,c=a.logLevel;if(c&&c<at.Debug||!c||!u)return e.apply(i,o);var l={type:"invoke public method",name:t,args:o,stacktrace:jo(1),time:{start:new Date().toISOString()},states:{}};n&&l.states&&(l.states.before=n());var f=e.apply(i,o);return f&&f.promise?f.promise.then(function(){n&&l.states&&(l.states.after=n()),l.time&&(l.time.end=new Date().toISOString()),u.debug(JSON.stringify(l,null,2))}):(n&&l.states&&(l.states.after=n()),l.time&&(l.time.end=new Date().toISOString()),u.debug(JSON.stringify(l,null,2))),f}},IT=new Set([Nl,qp,Vp,$p]),kT=function(e,t){return t===void 0&&(t=!1),IT.has(e)?!0:t};function PT(e){return e instanceof Error?e.message:String(e)}function li(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch{}return t}var RT=(function(){function e(t){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[],this.diagnosticsClient=t?.diagnosticsClient}return e.prototype.setup=function(t){var r;return x(this,void 0,void 0,function(){var n,i=this;return O(this,function(o){switch(o.label){case 0:return this.config=t,this.storageKey="".concat(Zw,"_").concat(this.config.apiKey.substring(0,10)),[4,(r=this.config.storageProvider)===null||r===void 0?void 0:r.get(this.storageKey)];case 1:return n=o.sent(),n&&n.length>0&&Promise.all(n.map(function(s){return i.execute(s)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(t){var r=this;return t.insert_id||(t.insert_id=Zt()),new Promise(function(n){var i={event:t,attempts:0,callback:function(o){return n(o)},timeout:0};r.queue.push(i),r.schedule(r.config.flushIntervalMillis),r.saveEvents()})},e.prototype.removeEventsExceedFlushMaxRetries=function(t){var r=this;return t.filter(function(n){return n.attempts+=1,n.attempts<r.config.flushMaxRetries?!0:(r.fulfillRequest([n],500,fT),!1)})},e.prototype.scheduleEvents=function(t){var r=this;t.forEach(function(n){r.schedule(n.timeout===0?r.config.flushIntervalMillis:n.timeout)})},e.prototype.schedule=function(t){var r=this;if(!this.config.offline&&(this.scheduleId===null||this.scheduleId&&t>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=t,this.scheduleId=setTimeout(function(){r.queue=r.queue.map(function(n){return n.timeout=0,n}),r.flush(!0)},t);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(t){return t===void 0&&(t=!1),x(this,void 0,void 0,function(){var r,n,i,o=this;return O(this,function(s){switch(s.label){case 0:return this.config.offline?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2]):this.flushId?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2]):(this.flushId=this.scheduleId,this.resetSchedule(),r=[],n=[],this.queue.forEach(function(a){return a.timeout===0?r.push(a):n.push(a)}),i=wT(r,this.config.flushQueueSize),[4,i.reduce(function(a,u){return x(o,void 0,void 0,function(){return O(this,function(c){switch(c.label){case 0:return[4,a];case 1:return c.sent(),[4,this.send(u,t)];case 2:return[2,c.sent()]}})})},Promise.resolve())]);case 1:return s.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(t,r){var n;return r===void 0&&(r=!0),x(this,void 0,void 0,function(){var i,o,s,a,u,c;return O(this,function(l){switch(l.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(t,400,hT)];i={api_key:this.config.apiKey,events:t.map(function(f){var d=f.event;d.extra;var h=gs(d,["extra"]);return h}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new AT,l.label=1;case 1:return l.trys.push([1,3,,4]),o=zp(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,s=kT(o,this.config.enableRequestBodyCompression),[4,this.config.transportProvider.send(o,i,this.config._enableRequestBodyCompressionExperimental&&s)];case 2:return a=l.sent(),a===null?(this.fulfillRequest(t,0,cT),[2]):r?(this.handleResponse(a,t),[3,4]):("body"in a?this.fulfillRequest(t,a.statusCode,"".concat(a.status,": ").concat(li(a))):this.fulfillRequest(t,a.statusCode,a.status),[2]);case 3:return u=l.sent(),c=PT(u),this.config.loggerProvider.error(c),(n=this.diagnosticsClient)===null||n===void 0||n.recordEvent("analytics.events.unsuccessful.from.catch.error",{events:t.map(function(f){return f.event.event_type}),message:c,stack_trace:jo()}),this.handleResponse({status:qe.Failed,statusCode:0},t),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(t,r){var n;ku(t.statusCode)||(n=this.diagnosticsClient)===null||n===void 0||n.recordEvent("analytics.events.unsuccessful",{events:r.map(function(o){return o.event.event_type}),code:t.statusCode,status:t.status,body:li(t),stack_trace:jo()});var i=t.status;switch(i){case qe.Success:{this.handleSuccessResponse(t,r);break}case qe.Invalid:{this.handleInvalidResponse(t,r);break}case qe.PayloadTooLarge:{this.handlePayloadTooLargeResponse(t,r);break}case qe.RateLimit:{this.handleRateLimitResponse(t,r);break}default:{this.config.loggerProvider.warn(`{code: 0, error: "Status '`.concat(i,"' provided for ").concat(r.length,' events"}')),this.handleOtherResponse(r);break}}},e.prototype.handleSuccessResponse=function(t,r){this.fulfillRequest(r,t.statusCode,lT)},e.prototype.handleInvalidResponse=function(t,r){var n=this;if(t.body.missingField||t.body.error.startsWith(vT)){this.fulfillRequest(r,t.statusCode,t.body.error);return}var i=Ee(Ee(Ee(Ee([],oe(Object.values(t.body.eventsWithInvalidFields)),!1),oe(Object.values(t.body.eventsWithMissingFields)),!1),oe(Object.values(t.body.eventsWithInvalidIdLengths)),!1),oe(t.body.silencedEvents),!1).flat(),o=new Set(i),s=r.filter(function(u,c){if(o.has(c)){n.fulfillRequest([u],t.statusCode,t.body.error);return}return!0});s.length>0&&this.config.loggerProvider.warn(li(t));var a=this.removeEventsExceedFlushMaxRetries(s);this.scheduleEvents(a)},e.prototype.handlePayloadTooLargeResponse=function(t,r){if(r.length===1){this.fulfillRequest(r,t.statusCode,t.body.error);return}this.config.loggerProvider.warn(li(t)),this.config.flushQueueSize/=2;var n=this.removeEventsExceedFlushMaxRetries(r);this.scheduleEvents(n)},e.prototype.handleRateLimitResponse=function(t,r){var n=this,i=Object.keys(t.body.exceededDailyQuotaUsers),o=Object.keys(t.body.exceededDailyQuotaDevices),s=t.body.throttledEvents,a=new Set(i),u=new Set(o),c=new Set(s),l=r.filter(function(d,h){if(d.event.user_id&&a.has(d.event.user_id)||d.event.device_id&&u.has(d.event.device_id)){n.fulfillRequest([d],t.statusCode,t.body.error);return}return c.has(h)&&(d.timeout=n.throttleTimeout),!0});l.length>0&&this.config.loggerProvider.warn(li(t));var f=this.removeEventsExceedFlushMaxRetries(l);this.scheduleEvents(f)},e.prototype.handleOtherResponse=function(t){var r=this,n=t.map(function(o){return o.timeout=o.attempts*r.retryTimeout,o}),i=this.removeEventsExceedFlushMaxRetries(n);this.scheduleEvents(i)},e.prototype.fulfillRequest=function(t,r,n){var i,o,s;ku(r)?(s=this.diagnosticsClient)===null||s===void 0||s.increment("analytics.events.sent",t.length):((i=this.diagnosticsClient)===null||i===void 0||i.increment("analytics.events.dropped",t.length),(o=this.diagnosticsClient)===null||o===void 0||o.recordEvent("analytics.events.dropped",{events:t.map(function(a){return a.event.event_type}),code:r,message:n,stack_trace:jo()})),this.removeEvents(t),t.forEach(function(a){return a.callback(Hn(a.event,r,n))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var t=this.queue.map(function(r){return r.event});this.config.storageProvider.set(this.storageKey,t)}},e.prototype.removeEvents=function(t){this.queue=this.queue.filter(function(r){return!t.some(function(n){return n.event.insert_id===r.event.insert_id})}),this.saveEvents()},e})(),OT=(function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:xT(),platform:"Web",os:void 0,deviceModel:void 0}},e})(),xT=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},NT=(function(){function e(){this.queue=[]}return e.prototype.logEvent=function(t){this.receiver?this.receiver(t):this.queue.length<512&&this.queue.push(t)},e.prototype.setEventReceiver=function(t){this.receiver=t,this.queue.length>0&&(this.queue.forEach(function(r){t(r)}),this.queue=[])},e})(),kr=function(){return kr=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},kr.apply(this,arguments)};function qo(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vf(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}var Vo=function(e,t){var r,n,i=["string","number","boolean","undefined"],o=typeof e,s=typeof t;if(o!==s)return!1;try{for(var a=qo(i),u=a.next();!u.done;u=a.next()){var c=u.value;if(c===o)return e===t}}catch(b){r={error:b}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}if(e==null&&t==null)return!0;if(e==null||t==null||e.length!==t.length)return!1;var l=Array.isArray(e),f=Array.isArray(t);if(l!==f)return!1;if(l&&f){for(var d=0;d<e.length;d++)if(!Vo(e[d],t[d]))return!1}else{var h=Object.keys(e).sort(),v=Object.keys(t).sort();if(!Vo(h,v))return!1;var p=!0;return Object.keys(e).forEach(function(b){Vo(e[b],t[b])||(p=!1)}),p}return!0},LT="$set",MT="$unset",DT="$clearAll";Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n});var UT=(function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var t=this,r=kr({},this.identity.userProperties),n=kr(kr({},this.identity),{userProperties:r});return{setUserId:function(i){return n.userId=i,this},setDeviceId:function(i){return n.deviceId=i,this},setUserProperties:function(i){return n.userProperties=i,this},setOptOut:function(i){return n.optOut=i,this},updateUserProperties:function(i){var o,s,a,u,c,l,f=n.userProperties||{};try{for(var d=qo(Object.entries(i)),h=d.next();!h.done;h=d.next()){var v=Vf(h.value,2),p=v[0],b=v[1];switch(p){case LT:try{for(var E=(a=void 0,qo(Object.entries(b))),m=E.next();!m.done;m=E.next()){var g=Vf(m.value,2),y=g[0],_=g[1];f[y]=_}}catch(C){a={error:C}}finally{try{m&&!m.done&&(u=E.return)&&u.call(E)}finally{if(a)throw a.error}}break;case MT:try{for(var S=(c=void 0,qo(Object.keys(b))),A=S.next();!A.done;A=S.next()){var y=A.value;delete f[y]}}catch(C){c={error:C}}finally{try{A&&!A.done&&(l=S.return)&&l.call(S)}finally{if(c)throw c.error}}break;case DT:f={};break}}}catch(C){o={error:C}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}finally{if(o)throw o.error}}return n.userProperties=f,this},commit:function(){return t.setIdentity(n),this}}},e.prototype.getIdentity=function(){return kr({},this.identity)},e.prototype.setIdentity=function(t){var r=kr({},this.identity);this.identity=kr({},t),Vo(r,this.identity)||this.listeners.forEach(function(n){n(t)})},e.prototype.addIdentityListener=function(t){this.listeners.add(t)},e.prototype.removeIdentityListener=function(t){this.listeners.delete(t)},e})(),ci=typeof globalThis<"u"?globalThis:typeof global<"u"?global:self,Ml=(function(){function e(){this.identityStore=new UT,this.eventBridge=new NT,this.applicationContextProvider=new OT}return e.getInstance=function(t){return ci.analyticsConnectorInstances||(ci.analyticsConnectorInstances={}),ci.analyticsConnectorInstances[t]||(ci.analyticsConnectorInstances[t]=new e),ci.analyticsConnectorInstances[t]},e})(),Yn=function(e){return e===void 0&&(e=jp),Ml.getInstance(e)},FT=function(e,t){Yn(t).identityStore.editIdentity().setUserId(e).commit()},HT=function(e,t){Yn(t).identityStore.editIdentity().setDeviceId(e).commit()},BT=(function(){function e(){this.name="identity",this.type="before",this.identityStore=Yn().identityStore}return e.prototype.execute=function(t){return x(this,void 0,void 0,function(){var r;return O(this,function(n){return r=t.user_properties,r&&this.identityStore.editIdentity().updateUserProperties(r).commit(),[2,t]})})},e.prototype.setup=function(t){return x(this,void 0,void 0,function(){return O(this,function(r){return t.instanceName&&(this.identityStore=Yn(t.instanceName).identityStore),[2]})})},e})(),Xp=function(e,t){t===void 0&&(t=Date.now());var r=Date.now(),n=r-t;return n>e},Yp=function(e,t,r){return t===void 0&&(t=""),r===void 0&&(r=10),[Bs,t,e.substring(0,r)].filter(Boolean).join("_")},jT=function(e){return"".concat(Bs.toLowerCase(),"_").concat(e.substring(0,6))},qT=function(){var e,t,r,n;if(typeof navigator>"u")return"";var i=navigator.userLanguage;return(n=(r=(t=(e=navigator.languages)===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:navigator.language)!==null&&r!==void 0?r:i)!==null&&n!==void 0?n:""},ys=function(){var e,t=le();if(!(!((e=t?.location)===null||e===void 0)&&e.search))return{};var r=t.location.search.substring(1).split("&").filter(Boolean),n=r.reduce(function(i,o){var s=o.split("=",2),a=$f(s[0]),u=$f(s[1]);return u&&(i[a]=u),i},{});return n},$f=function(e){e===void 0&&(e="");try{return decodeURIComponent(e)}catch{return""}},Pu=function(e,t){return!t||!t.length?!0:t.some(function(r){return typeof r=="string"?e===r:e.match(r)})},Lr=function(e,t){var r=e;try{r=decodeURI(e)}catch(n){t?.error("Malformed URI sequence: ",n)}return r},Ru=function(e){var t=0;if(e.length===0)return t;for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);t=(t<<5)-t+n,t|=0}return t},Wf=function(e,t){var r=Ru(e.toString()),n=Math.abs(r),i=n*31,o=i%1e5;return o/1e5<t},Dl=(function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return x(this,void 0,void 0,function(){return O(this,function(t){return[2,!0]})})},e.prototype.get=function(t){return x(this,void 0,void 0,function(){return O(this,function(r){return[2,this.memoryStorage.get(t)]})})},e.prototype.getRaw=function(t){return x(this,void 0,void 0,function(){var r;return O(this,function(n){switch(n.label){case 0:return[4,this.get(t)];case 1:return r=n.sent(),[2,r?JSON.stringify(r):void 0]}})})},e.prototype.set=function(t,r){return x(this,void 0,void 0,function(){return O(this,function(n){return this.memoryStorage.set(t,r),[2]})})},e.prototype.remove=function(t){return x(this,void 0,void 0,function(){return O(this,function(r){return this.memoryStorage.delete(t),[2]})})},e.prototype.reset=function(){return x(this,void 0,void 0,function(){return O(this,function(t){return this.memoryStorage.clear(),[2]})})},e})(),VT=function(){var e,t=le();return(e=t?.navigator)===null||e===void 0?void 0:e.locks},bs=(function(){function e(t,r){r===void 0&&(r={}),this.options=D({},t),this.config=r}return e.prototype.isEnabled=function(){return x(this,void 0,void 0,function(){var t,r,n,i,o=this;return O(this,function(s){switch(s.label){case 0:return t="AMP_TEST",r=D({},this.options),n=new e(r),i=String(Date.now()),[4,n.transaction(t,function(a){var u,c;try{a.set(i);var l=a.get(),f=l===i;return!f&&o.config.diagnosticsClient&&((u=o.config.diagnosticsClient)===null||u===void 0||u.recordEvent("cookies.isEnabled.failure",{reason:"Test Value mismatch",testKey:t,testValue:i,sync:!0})),f}catch(h){if(o.config.diagnosticsClient){var d=h instanceof Error?h.message:String(h);(c=o.config.diagnosticsClient)===null||c===void 0||c.recordEvent("cookies.isEnabled.failure",{reason:"Cookie getter/setter failed",testKey:t,testValue:i,error:d,sync:!0})}return!1}finally{a.set(null)}})];case 1:return[2,s.sent()]}})})},e.prototype.get=function(t){return x(this,void 0,void 0,function(){var r;return O(this,function(n){switch(n.label){case 0:return[4,this.getRaw(t)];case 1:return r=n.sent(),[2,this.decodeCookieValue(t,r)]}})})},e.prototype.decodeCookieValue=function(t,r){if(r)try{var n=Jp(r);if(n===void 0){console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(t,", value: ").concat(r));return}return JSON.parse(n)}catch{console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(t,", value: ").concat(r));return}},e.prototype.getSync=function(t){var r=this.getRawSync(t);return this.decodeCookieValue(t,r)},e.prototype.getRaw=function(t){var r,n;return x(this,void 0,void 0,function(){var i,o,s,a,u,c,l,f,d;return O(this,function(h){switch(h.label){case 0:i=le(),o=i,h.label=1;case 1:return h.trys.push([1,4,,5]),s=o?.cookieStore,s?[4,s.getAll(t)]:[3,3];case 2:if(a=h.sent(),a){a.length>1&&((r=this.config.diagnosticsClient)===null||r===void 0||r.recordEvent("cookies.duplicate",{cookies:a.map(function(v){return v.domain})}),(n=this.config.diagnosticsClient)===null||n===void 0||n.increment("cookies.duplicate.occurrence.cookieStore"));try{for(u=ce(a),c=u.next();!c.done;c=u.next())if(l=c.value,Qp(l.domain,this.options.domain))return[2,l.value]}catch(v){f={error:v}}finally{try{c&&!c.done&&(d=u.return)&&d.call(u)}finally{if(f)throw f.error}}}h.label=3;case 3:return[3,5];case 4:return h.sent(),[3,5];case 5:return[2,this.getRawSync(t)]}})})},e.prototype.getRawSync=function(t){var r=this,n,i,o=le(),s=((i=(n=o?.document)===null||n===void 0?void 0:n.cookie.split("; "))!==null&&i!==void 0?i:[]).filter(function(c){return c.indexOf(t+"=")===0}),a=void 0,u=this.config.duplicateResolverFn;if(typeof u=="function"&&s.length>1&&(a=s.find(function(c){var l;try{var f=u(c.substring(t.length+1));return f||(l=r.config.diagnosticsClient)===null||l===void 0||l.increment("cookies.duplicate.occurrence.document.cookie"),f}catch{return!1}})),a||(a=s[0]),!!a)return a.substring(t.length+1)},e.prototype.set=function(t,r){return x(this,void 0,void 0,function(){return O(this,function(n){return this.setSync(t,r),[2]})})},e.prototype.setSync=function(t,r){var n;try{var i=(n=this.options.expirationDays)!==null&&n!==void 0?n:0,o=r!==null?i:-1,s=void 0;if(o){var a=new Date;a.setTime(a.getTime()+o*24*60*60*1e3),s=a}var u="".concat(t,"=").concat(btoa(encodeURIComponent(JSON.stringify(r))));s&&(u+="; expires=".concat(s.toUTCString())),u+="; path=/",this.options.domain&&(u+="; domain=".concat(this.options.domain)),this.options.secure&&(u+="; Secure"),this.options.sameSite&&(u+="; SameSite=".concat(this.options.sameSite));var c=le();c?.document&&(c.document.cookie=u)}catch(f){var l=f instanceof Error?f.message:String(f);console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(t,". Error: ").concat(l))}},e.prototype.remove=function(t){return x(this,void 0,void 0,function(){return O(this,function(r){switch(r.label){case 0:return[4,this.set(t,null)];case 1:return r.sent(),[2]}})})},e.prototype.reset=function(){return x(this,void 0,void 0,function(){return O(this,function(t){return[2]})})},e.isDomainWritable=function(t){return x(this,void 0,void 0,function(){var r,n,i,o;return O(this,function(s){switch(s.label){case 0:if(e.cachedTlds[t])return[2,!0];r={domain:"."+t},n="AMP_TLDTEST",i=new e(r),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,i.transaction(n,function(a){if(e.cachedTlds[t])return!0;try{a.set(1);var u=!!a.get();return u&&(e.cachedTlds[t]=!0),u}finally{a.set(null)}})];case 2:return o=s.sent(),[2,!!o];case 3:return s.sent(),[2,!1];case 4:return[2]}})})},e.prototype.transaction=function(t,r){return x(this,void 0,void 0,function(){var n,i,o=this;return O(this,function(s){switch(s.label){case 0:if(n=VT(),i=function(){var a={get:function(){return o.getSync(t)},set:function(u){return o.setSync(t,u)}};return r(a)},!n)return[2,i()];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,n.request("com.amplitude:cookie-lock:".concat(t),i)];case 2:return[2,s.sent()];case 3:return s.sent(),[2,i()];case 4:return[2]}})})},e.cachedTlds={},e})(),$T=function(e){try{return decodeURIComponent(atob(e))}catch{return}},WT=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch{return}},Jp=function(e){var t;return(t=$T(e))!==null&&t!==void 0?t:WT(e)},Qp=function(e,t){if(e===""&&t==="")return!0;if(!e||!t)return!1;var r=e.startsWith(".")?e.substring(1):e,n=t.startsWith(".")?t.substring(1):t;return r.toLowerCase()===n.toLowerCase()},Gf=function(e,t,r){return t===void 0&&(t=""),r===void 0&&(r=10),[Bs,t,e.substring(0,r)].filter(Boolean).join("_")},qs=(function(){function e(t){this.storage=t}return e.prototype.isEnabled=function(){return x(this,void 0,void 0,function(){var t,r,n,i;return O(this,function(o){switch(o.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),r=new e(this.storage),n="AMP_TEST",o.label=1;case 1:return o.trys.push([1,4,5,7]),[4,r.set(n,t)];case 2:return o.sent(),[4,r.get(n)];case 3:return i=o.sent(),[2,i===t];case 4:return o.sent(),[2,!1];case 5:return[4,r.remove(n)];case 6:return o.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(t){return x(this,void 0,void 0,function(){var r;return O(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getRaw(t)];case 1:return r=n.sent(),r?[2,JSON.parse(r)]:[2,void 0];case 2:return n.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(t){var r;return x(this,void 0,void 0,function(){return O(this,function(n){return[2,((r=this.storage)===null||r===void 0?void 0:r.getItem(t))||void 0]})})},e.prototype.set=function(t,r){var n;return x(this,void 0,void 0,function(){return O(this,function(i){try{(n=this.storage)===null||n===void 0||n.setItem(t,JSON.stringify(r))}catch{}return[2]})})},e.prototype.remove=function(t){var r;return x(this,void 0,void 0,function(){return O(this,function(n){try{(r=this.storage)===null||r===void 0||r.removeItem(t)}catch{}return[2]})})},e.prototype.reset=function(){var t;return x(this,void 0,void 0,function(){return O(this,function(r){try{(t=this.storage)===null||t===void 0||t.clear()}catch{}return[2]})})},e})(),GT=10,KT=1,we={TAGS:"tags",COUNTERS:"counters",HISTOGRAMS:"histograms",EVENTS:"events",INTERNAL:"internal"},Kf={LAST_FLUSH_TIMESTAMP:"last_flush_timestamp"},zf=(function(){function e(t,r){this.dbPromise=null,this.logger=r,this.dbName="AMP_diagnostics_".concat(t.substring(0,10))}return e.isSupported=function(){var t;return((t=le())===null||t===void 0?void 0:t.indexedDB)!==void 0},e.prototype.getDB=function(){return x(this,void 0,void 0,function(){return O(this,function(t){return this.dbPromise||(this.dbPromise=this.openDB()),[2,this.dbPromise]})})},e.prototype.openDB=function(){var t=this;return new Promise(function(r,n){var i=indexedDB.open(t.dbName,KT);i.onerror=function(){t.dbPromise=null,n(new Error("Failed to open IndexedDB"))},i.onsuccess=function(){var o=i.result;o.onclose=function(){t.dbPromise=null,t.logger.debug("DiagnosticsStorage: DB connection closed.")},o.onerror=function(s){t.logger.debug("DiagnosticsStorage: A global database error occurred.",s),o.close()},r(o)},i.onupgradeneeded=function(o){var s=o.target.result;t.createTables(s)}})},e.prototype.createTables=function(t){if(t.objectStoreNames.contains(we.TAGS)||t.createObjectStore(we.TAGS,{keyPath:"key"}),t.objectStoreNames.contains(we.COUNTERS)||t.createObjectStore(we.COUNTERS,{keyPath:"key"}),t.objectStoreNames.contains(we.HISTOGRAMS)||t.createObjectStore(we.HISTOGRAMS,{keyPath:"key"}),!t.objectStoreNames.contains(we.EVENTS)){var r=t.createObjectStore(we.EVENTS,{keyPath:"id",autoIncrement:!0});r.createIndex("time_idx","time",{unique:!1})}t.objectStoreNames.contains(we.INTERNAL)||t.createObjectStore(we.INTERNAL,{keyPath:"key"})},e.prototype.setTags=function(t){return x(this,void 0,void 0,function(){var r,n,i,o,s=this;return O(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),Object.entries(t).length===0?[2]:[4,this.getDB()];case 1:return r=a.sent(),n=r.transaction([we.TAGS],"readwrite"),i=n.objectStore(we.TAGS),[2,new Promise(function(u){var c=Object.entries(t);n.oncomplete=function(){u()},n.onabort=function(l){s.logger.debug("DiagnosticsStorage: Failed to set tags",l),u()},c.forEach(function(l){var f=oe(l,2),d=f[0],h=f[1],v=i.put({key:d,value:h});v.onerror=function(p){s.logger.debug("DiagnosticsStorage: Failed to set tag",d,h,p)}})})];case 2:return o=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to set tags",o),[3,3];case 3:return[2]}})})},e.prototype.incrementCounters=function(t){return x(this,void 0,void 0,function(){var r,n,i,o,s=this;return O(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),Object.entries(t).length===0?[2]:[4,this.getDB()];case 1:return r=a.sent(),n=r.transaction([we.COUNTERS],"readwrite"),i=n.objectStore(we.COUNTERS),[2,new Promise(function(u){var c=Object.entries(t);n.oncomplete=function(){u()},n.onabort=function(l){s.logger.debug("DiagnosticsStorage: Failed to increment counters",l),u()},c.forEach(function(l){var f=oe(l,2),d=f[0],h=f[1],v=i.get(d);v.onsuccess=function(){var p=v.result,b=p?p.value:0,E=i.put({key:d,value:b+h});E.onerror=function(m){s.logger.debug("DiagnosticsStorage: Failed to update counter",d,m)}},v.onerror=function(p){s.logger.debug("DiagnosticsStorage: Failed to read existing counter",d,p)}})})];case 2:return o=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to increment counters",o),[3,3];case 3:return[2]}})})},e.prototype.setHistogramStats=function(t){return x(this,void 0,void 0,function(){var r,n,i,o,s=this;return O(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),Object.entries(t).length===0?[2]:[4,this.getDB()];case 1:return r=a.sent(),n=r.transaction([we.HISTOGRAMS],"readwrite"),i=n.objectStore(we.HISTOGRAMS),[2,new Promise(function(u){var c=Object.entries(t);n.oncomplete=function(){u()},n.onabort=function(l){s.logger.debug("DiagnosticsStorage: Failed to set histogram stats",l),u()},c.forEach(function(l){var f=oe(l,2),d=f[0],h=f[1],v=i.get(d);v.onsuccess=function(){var p=v.result,b;p?b={key:d,count:p.count+h.count,min:Math.min(p.min,h.min),max:Math.max(p.max,h.max),sum:p.sum+h.sum}:b={key:d,count:h.count,min:h.min,max:h.max,sum:h.sum};var E=i.put(b);E.onerror=function(m){s.logger.debug("DiagnosticsStorage: Failed to set histogram stats",d,m)}},v.onerror=function(p){s.logger.debug("DiagnosticsStorage: Failed to read existing histogram stats",d,p)}})})];case 2:return o=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to set histogram stats",o),[3,3];case 3:return[2]}})})},e.prototype.addEventRecords=function(t){return x(this,void 0,void 0,function(){var r,n,i,o,s=this;return O(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),t.length===0?[2]:[4,this.getDB()];case 1:return r=a.sent(),n=r.transaction([we.EVENTS],"readwrite"),i=n.objectStore(we.EVENTS),[2,new Promise(function(u){n.oncomplete=function(){u()},n.onabort=function(l){s.logger.debug("DiagnosticsStorage: Failed to add event records",l),u()};var c=i.count();c.onsuccess=function(){var l=c.result,f=Math.max(0,GT-l);f<t.length&&s.logger.debug("DiagnosticsStorage: Only added ".concat(f," of ").concat(t.length," events due to storage limit")),t.slice(0,f).forEach(function(d){var h=i.add(d);h.onerror=function(v){s.logger.debug("DiagnosticsStorage: Failed to add event record",v)}})},c.onerror=function(l){s.logger.debug("DiagnosticsStorage: Failed to count existing events",l)}})];case 2:return o=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to add event records",o),[3,3];case 3:return[2]}})})},e.prototype.setInternal=function(t,r){return x(this,void 0,void 0,function(){var n,i,o,s;return O(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this.getDB()];case 1:return n=a.sent(),i=n.transaction([we.INTERNAL],"readwrite"),o=i.objectStore(we.INTERNAL),[2,new Promise(function(u,c){i.onabort=function(){return c(new Error("Failed to set internal value"))};var l=o.put({key:t,value:r});l.onsuccess=function(){return u()},l.onerror=function(){return c(new Error("Failed to set internal value"))}})];case 2:return s=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to set internal value",s),[3,3];case 3:return[2]}})})},e.prototype.getInternal=function(t){return x(this,void 0,void 0,function(){var r,n,i,o;return O(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,this.getDB()];case 1:return r=s.sent(),n=r.transaction([we.INTERNAL],"readonly"),i=n.objectStore(we.INTERNAL),[2,new Promise(function(a,u){n.onabort=function(){return u(new Error("Failed to get internal value"))};var c=i.get(t);c.onsuccess=function(){return a(c.result)},c.onerror=function(){return u(new Error("Failed to get internal value"))}})];case 2:return o=s.sent(),this.logger.debug("DiagnosticsStorage: Failed to get internal value",o),[2,void 0];case 3:return[2]}})})},e.prototype.getLastFlushTimestamp=function(){return x(this,void 0,void 0,function(){var t,r;return O(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getInternal(Kf.LAST_FLUSH_TIMESTAMP)];case 1:return t=n.sent(),[2,t?parseInt(t.value,10):void 0];case 2:return r=n.sent(),this.logger.debug("DiagnosticsStorage: Failed to get last flush timestamp",r),[2,void 0];case 3:return[2]}})})},e.prototype.setLastFlushTimestamp=function(t){return x(this,void 0,void 0,function(){var r;return O(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.setInternal(Kf.LAST_FLUSH_TIMESTAMP,t.toString())];case 1:return n.sent(),[3,3];case 2:return r=n.sent(),this.logger.debug("DiagnosticsStorage: Failed to set last flush timestamp",r),[3,3];case 3:return[2]}})})},e.prototype.clearTable=function(t,r){return new Promise(function(n,i){var o=t.objectStore(r),s=o.clear();s.onsuccess=function(){return n()},s.onerror=function(){return i(new Error("Failed to clear table ".concat(r)))}})},e.prototype.getAllAndClear=function(){return x(this,void 0,void 0,function(){var t,r,n,i,o,s,a,u;return O(this,function(c){switch(c.label){case 0:return c.trys.push([0,4,,5]),[4,this.getDB()];case 1:return t=c.sent(),r=t.transaction([we.TAGS,we.COUNTERS,we.HISTOGRAMS,we.EVENTS],"readwrite"),[4,Promise.all([this.getAllFromStore(r,we.TAGS),this.getAllFromStore(r,we.COUNTERS),this.getAllFromStore(r,we.HISTOGRAMS),this.getAllFromStore(r,we.EVENTS)])];case 2:return n=oe.apply(void 0,[c.sent(),4]),i=n[0],o=n[1],s=n[2],a=n[3],[4,Promise.all([this.clearTable(r,we.COUNTERS),this.clearTable(r,we.HISTOGRAMS),this.clearTable(r,we.EVENTS)])];case 3:return c.sent(),[2,{tags:i,counters:o,histogramStats:s,events:a}];case 4:return u=c.sent(),this.logger.debug("DiagnosticsStorage: Failed to get all and clear data",u),[2,{tags:[],counters:[],histogramStats:[],events:[]}];case 5:return[2]}})})},e.prototype.getAllFromStore=function(t,r){return new Promise(function(n,i){var o=t.objectStore(r),s=o.getAll();s.onsuccess=function(){return n(s.result)},s.onerror=function(){return i(new Error("Failed to get all from ".concat(r)))}})},e})(),zT="__AMPLITUDE_SCRIPT_URL__",XT="sdk.error.uncaught",YT=function(){var e=le();if(!e)return[];var t=e[zT];return Array.isArray(t)?t:typeof t=="string"?[t]:[]},JT=function(e){var t=le();if(!(!t||typeof t.addEventListener!="function")){var r=function(o){var s=o.error instanceof Error?o.error:void 0,a=s?.stack,u=Xf({filename:o.filename,stack:a});u&&i({type:"error",message:o.message,stack:a,filename:o.filename,errorName:s?.name,metadata:{colno:o.colno,lineno:o.lineno,isTrusted:o.isTrusted,matchReason:u}})},n=function(o){var s,a=o.reason instanceof Error?o.reason:void 0,u=a?.stack,c=QT(u),l=Xf({filename:c,stack:u});l&&i({type:"unhandledrejection",message:(s=a?.message)!==null&&s!==void 0?s:ZT(o.reason),stack:u,filename:c,errorName:a?.name,metadata:{isTrusted:o.isTrusted,matchReason:l}})},i=function(o){e.recordEvent(XT,D({type:o.type,message:o.message,filename:o.filename,error_name:o.errorName,stack:o.stack},o.metadata))};t.addEventListener("error",r,!0),t.addEventListener("unhandledrejection",n,!0)}},Xf=function(e){var t,r,n=YT();if(n.length!==0)try{for(var i=ce(n),o=i.next();!o.done;o=i.next()){var s=o.value;if(e.filename&&e.filename.includes(s))return"filename";if(e.stack&&e.stack.includes(s))return"stack"}}catch(a){t={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},QT=function(e){if(e){var t=e.match(/(https?:\/\/\S+?)(?=[)\s]|$)/);return t?t[1]:void 0}},ZT=function(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return"[object Object]"}},eA=1e3,_o=300*1e3,tA="https://diagnostics.prod.us-west-2.amplitude.com/v1/capture",rA="https://diagnostics.prod.eu-central-1.amplitude.com/v1/capture",_a=1e4,nA=10,iA=(function(){function e(t,r,n,i){n===void 0&&(n="US"),this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},this.inMemoryEvents=[],this.saveTimer=null,this.flushTimer=null,this.apiKey=t,this.logger=r,this.serverUrl=n==="US"?tA:rA,this.logger.debug("DiagnosticsClient: Initializing with options",JSON.stringify(i,null,2)),this.config=D({enabled:!0,sampleRate:0},i),this.startTimestamp=Date.now(),this.shouldTrack=Wf(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,zf.isSupported()?this.storage=new zf(t,r):this.logger.debug("DiagnosticsClient: IndexedDB is not supported"),this.initializeFlushInterval(),this.shouldTrack&&(this.increment("sdk.diagnostics.sampled.in.and.enabled"),JT(this))}return e.prototype.isStorageAndTrackEnabled=function(){return!!this.storage&&!!this.shouldTrack},e.prototype.setTag=function(t,r){if(this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryTags).length>=_a){this.logger.debug("DiagnosticsClient: Early return setTags as reaching memory limit");return}this.inMemoryTags[t]=r,this.startTimersIfNeeded()}},e.prototype.increment=function(t,r){if(r===void 0&&(r=1),!!this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryCounters).length>=_a){this.logger.debug("DiagnosticsClient: Early return increment as reaching memory limit");return}this.inMemoryCounters[t]=(this.inMemoryCounters[t]||0)+r,this.startTimersIfNeeded()}},e.prototype.recordHistogram=function(t,r){if(this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryHistograms).length>=_a){this.logger.debug("DiagnosticsClient: Early return recordHistogram as reaching memory limit");return}var n=this.inMemoryHistograms[t];n?(n.count+=1,n.min=Math.min(n.min,r),n.max=Math.max(n.max,r),n.sum+=r):this.inMemoryHistograms[t]={count:1,min:r,max:r,sum:r},this.startTimersIfNeeded()}},e.prototype.recordEvent=function(t,r){if(this.isStorageAndTrackEnabled()){if(this.inMemoryEvents.length>=nA){this.logger.debug("DiagnosticsClient: Early return recordEvent as reaching memory limit");return}this.inMemoryEvents.push({event_name:t,time:Date.now(),event_properties:r}),this.startTimersIfNeeded()}},e.prototype.startTimersIfNeeded=function(){var t=this;this.saveTimer||(this.saveTimer=setTimeout(function(){t.saveAllDataToStorage().catch(function(r){t.logger.debug("DiagnosticsClient: Failed to save all data to storage",r)}).finally(function(){t.saveTimer=null})},eA)),this.flushTimer||(this.flushTimer=setTimeout(function(){t._flush().catch(function(r){t.logger.debug("DiagnosticsClient: Failed to flush",r)}).finally(function(){t.flushTimer=null})},_o))},e.prototype.saveAllDataToStorage=function(){return x(this,void 0,void 0,function(){var t,r,n,i;return O(this,function(o){switch(o.label){case 0:return this.storage?(t=D({},this.inMemoryTags),r=D({},this.inMemoryCounters),n=D({},this.inMemoryHistograms),i=Ee([],oe(this.inMemoryEvents),!1),this.inMemoryEvents=[],this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},[4,Promise.all([this.storage.setTags(t),this.storage.incrementCounters(r),this.storage.setHistogramStats(n),this.storage.addEventRecords(i)])]):[2];case 1:return o.sent(),[2]}})})},e.prototype._flush=function(){return x(this,void 0,void 0,function(){var t,r,n,i,o,s,a,u,c,l;return O(this,function(f){switch(f.label){case 0:return this.storage?[4,this.saveAllDataToStorage()]:[2];case 1:return f.sent(),this.saveTimer=null,this.flushTimer=null,[4,this.storage.getAllAndClear()];case 2:return t=f.sent(),r=t.tags,n=t.counters,i=t.histogramStats,o=t.events,this.storage.setLastFlushTimestamp(Date.now()),s={},r.forEach(function(d){s[d.key]=d.value}),a={},n.forEach(function(d){a[d.key]=d.value}),u={},i.forEach(function(d){u[d.key]={count:d.count,min:d.min,max:d.max,avg:Math.round(d.sum/d.count*100)/100}}),c=o.map(function(d){return{event_name:d.event_name,time:d.time,event_properties:d.event_properties}}),Object.keys(a).length===0&&Object.keys(u).length===0&&c.length===0?[2]:(l={tags:s,histogram:u,counters:a,events:c},this.fetch(l),[2])}})})},e.prototype.fetch=function(t){return x(this,void 0,void 0,function(){var r,n;return O(this,function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),!le())throw new Error("DiagnosticsClient: Fetch is not supported");return[4,fetch(this.serverUrl,{method:"POST",headers:{"X-ApiKey":this.apiKey,"Content-Type":"application/json"},body:JSON.stringify(t)})];case 1:return r=i.sent(),r.ok?(this.logger.debug("DiagnosticsClient: Successfully sent diagnostics data"),[3,3]):(this.logger.debug("DiagnosticsClient: Failed to send diagnostics data."),[2]);case 2:return n=i.sent(),this.logger.debug("DiagnosticsClient: Failed to send diagnostics data. ",n),[3,3];case 3:return[2]}})})},e.prototype.initializeFlushInterval=function(){return x(this,void 0,void 0,function(){var t,r,n;return O(this,function(i){switch(i.label){case 0:return this.storage?(t=Date.now(),[4,this.storage.getLastFlushTimestamp()]):[2];case 1:return r=i.sent()||-1,r===-1?(this.storage.setLastFlushTimestamp(t),this._setFlushTimer(_o),[2]):(n=t-r,n>=_o?(this._flush(),[2]):(this._setFlushTimer(_o-n),[2]))}})})},e.prototype._setFlushTimer=function(t){var r=this;this.flushTimer=setTimeout(function(){r._flush().catch(function(n){r.logger.debug("DiagnosticsClient: Failed to flush",n)}).finally(function(){r.flushTimer=null})},t)},e.prototype._setSampleRate=function(t){this.logger.debug("DiagnosticsClient: Setting sample rate to",t),this.config.sampleRate=t,this.shouldTrack=Wf(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,this.logger.debug("DiagnosticsClient: Should track is",this.shouldTrack)},e})(),no=(function(){function e(){}return e.prototype.send=function(t,r,n){return Promise.resolve(null)},e.prototype.buildResponse=function(t){var r,n,i,o,s,a,u,c,l,f,d,h,v,p,b,E,m,g,y,_,S,A;if(typeof t!="object")return null;var C=t.code||0,I=this.buildStatus(C);switch(I){case qe.Success:return{status:I,statusCode:C,body:{eventsIngested:(r=t.events_ingested)!==null&&r!==void 0?r:0,payloadSizeBytes:(n=t.payload_size_bytes)!==null&&n!==void 0?n:0,serverUploadTime:(i=t.server_upload_time)!==null&&i!==void 0?i:0}};case qe.Invalid:return{status:I,statusCode:C,body:{error:(o=t.error)!==null&&o!==void 0?o:"",missingField:(s=t.missing_field)!==null&&s!==void 0?s:"",eventsWithInvalidFields:(a=t.events_with_invalid_fields)!==null&&a!==void 0?a:{},eventsWithMissingFields:(u=t.events_with_missing_fields)!==null&&u!==void 0?u:{},eventsWithInvalidIdLengths:(c=t.events_with_invalid_id_lengths)!==null&&c!==void 0?c:{},epsThreshold:(l=t.eps_threshold)!==null&&l!==void 0?l:0,exceededDailyQuotaDevices:(f=t.exceeded_daily_quota_devices)!==null&&f!==void 0?f:{},silencedDevices:(d=t.silenced_devices)!==null&&d!==void 0?d:[],silencedEvents:(h=t.silenced_events)!==null&&h!==void 0?h:[],throttledDevices:(v=t.throttled_devices)!==null&&v!==void 0?v:{},throttledEvents:(p=t.throttled_events)!==null&&p!==void 0?p:[]}};case qe.PayloadTooLarge:return{status:I,statusCode:C,body:{error:(b=t.error)!==null&&b!==void 0?b:""}};case qe.RateLimit:return{status:I,statusCode:C,body:{error:(E=t.error)!==null&&E!==void 0?E:"",epsThreshold:(m=t.eps_threshold)!==null&&m!==void 0?m:0,throttledDevices:(g=t.throttled_devices)!==null&&g!==void 0?g:{},throttledUsers:(y=t.throttled_users)!==null&&y!==void 0?y:{},exceededDailyQuotaDevices:(_=t.exceeded_daily_quota_devices)!==null&&_!==void 0?_:{},exceededDailyQuotaUsers:(S=t.exceeded_daily_quota_users)!==null&&S!==void 0?S:{},throttledEvents:(A=t.throttled_events)!==null&&A!==void 0?A:[]}};case qe.Timeout:default:return{status:I,statusCode:C}}},e.prototype.buildStatus=function(t){return ku(t)?qe.Success:t===429?qe.RateLimit:t===413?qe.PayloadTooLarge:t===408?qe.Timeout:t>=400&&t<500?qe.Invalid:t>=500?qe.Failed:qe.Unknown},e})(),oA=(function(e){Dt(t,e);function t(r){r===void 0&&(r={});var n=e.call(this)||this;return n.customHeaders=r,n}return t.prototype.send=function(r,n){return x(this,void 0,void 0,function(){var i,o,s;return O(this,function(a){switch(a.label){case 0:if(typeof fetch>"u")throw new Error("FetchTransport is not supported");return i={headers:D({"Content-Type":"application/json",Accept:"*/*"},this.customHeaders),body:JSON.stringify(n),method:"POST"},[4,fetch(r,i)];case 1:return o=a.sent(),[4,o.text()];case 2:s=a.sent();try{return[2,this.buildResponse(JSON.parse(s))]}catch{return[2,this.buildResponse({code:o.status})]}return[2]}})})},t})(no),Zp=2*1024;function eg(){return typeof CompressionStream<"u"}function tg(e){return x(this,void 0,void 0,function(){var t,r;return O(this,function(n){switch(n.label){case 0:if(t=CompressionStream,typeof t>"u")return[2,void 0];n.label=1;case 1:return n.trys.push([1,3,,4]),r=new Blob([e]).stream().pipeThrough(new t("gzip")),[4,new Response(r).arrayBuffer()];case 2:return[2,n.sent()];case 3:return n.sent(),[2,void 0];case 4:return[2]}})})}var sA=(function(){function e(t,r){this.key="AMP_remote_config_".concat(t.substring(0,10)),this.logger=r}return e.prototype.fetchConfig=function(){var t=null,r={remoteConfig:null,lastFetch:new Date};try{t=localStorage.getItem(this.key)}catch(i){return this.logger.debug("Remote config localstorage failed to access: ",i),Promise.resolve(r)}if(t===null)return this.logger.debug("Remote config localstorage gets null because the key does not exist"),Promise.resolve(r);try{var n=JSON.parse(t);return this.logger.debug("Remote config localstorage parsed successfully: ".concat(JSON.stringify(n))),Promise.resolve({remoteConfig:n.remoteConfig,lastFetch:new Date(n.lastFetch)})}catch(i){return this.logger.debug("Remote config localstorage failed to parse: ",i),localStorage.removeItem(this.key),Promise.resolve(r)}},e.prototype.setConfig=function(t){try{return localStorage.setItem(this.key,JSON.stringify(t)),this.logger.debug("Remote config localstorage set successfully."),Promise.resolve(!0)}catch(r){this.logger.debug("Remote config localstorage failed to set: ",r)}return Promise.resolve(!1)},e})(),aA="https://sr-client-cfg.amplitude.com/config",uA="https://sr-client-cfg.eu.amplitude.com/config",lA=3,Sa={INVALID_API_KEY:401,FORBIDDEN:403,RATE_LIMIT:429},cA=1e3,fA=300*1e3,rg=(function(){function e(t,r,n,i){n===void 0&&(n="US"),this.callbackInfos=[],this.lastSuccessfulFetch=null,this.fetchPromise=null,this.isLastFetchInvalidApiKey=!1,this.apiKey=t,this.serverUrl=i||(n==="US"?aA:uA),this.logger=r,this.storage=new sA(t,r)}return e.prototype.subscribe=function(t,r,n){var i=Zt(),o={id:i,key:t,deliveryMode:r,callback:n};return this.callbackInfos.push(o),r==="all"?this.subscribeAll(o):this.subscribeWaitForRemote(o,r.timeout),i},e.prototype.unsubscribe=function(t){var r=this.callbackInfos.findIndex(function(n){return n.id===t});return r===-1?(this.logger.debug("Remote config client unsubscribe failed because callback with id ".concat(t," doesn't exist.")),!1):(this.callbackInfos.splice(r,1),this.logger.debug("Remote config client unsubscribe succeeded removing callback with id ".concat(t,".")),!0)},e.prototype.updateConfigs=function(){return x(this,void 0,void 0,function(){var t,r,n=this;return O(this,function(i){switch(i.label){case 0:return this.lastSuccessfulFetch&&(t=Date.now()-this.lastSuccessfulFetch,t<fA)?(this.logger.debug("Remote config client skipping updateConfigs: Too recent"),[2]):[4,this.getOrCreateFetchPromise()];case 1:return r=i.sent(),this.storage.setConfig(r),this.callbackInfos.forEach(function(o){n.sendCallback(o,r,"remote")}),[2]}})})},e.prototype.getOrCreateFetchPromise=function(){var t=this;return this.fetchPromise?this.fetchPromise:this.isLastFetchInvalidApiKey?(this.logger.debug("Remote config client skipping fetch: Invalid API key"),this.fetchPromise=Promise.resolve({remoteConfig:null,lastFetch:new Date}).finally(function(){t.fetchPromise=null}),this.fetchPromise):(this.fetchPromise=this.fetch().then(function(r){return r.remoteConfig!==null&&(t.lastSuccessfulFetch=Date.now()),r}).finally(function(){t.fetchPromise=null}),this.fetchPromise)},e.prototype.subscribeAll=function(t){return x(this,void 0,void 0,function(){var r,n,i,o=this;return O(this,function(s){switch(s.label){case 0:return r=this.getOrCreateFetchPromise().then(function(a){o.logger.debug("Remote config client subscription all mode fetched from remote: ".concat(JSON.stringify(a))),o.sendCallback(t,a,"remote"),o.storage.setConfig(a)}),n=this.storage.fetchConfig().then(function(a){return a}),[4,Promise.race([r,n])];case 1:return i=s.sent(),i!==void 0&&(this.logger.debug("Remote config client subscription all mode fetched from cache: ".concat(JSON.stringify(i))),i.remoteConfig!==null?this.sendCallback(t,i,"cache"):this.logger.debug("Remote config client skips sending callback because cache is empty (first time user).")),[4,r];case 2:return s.sent(),[2]}})})},e.prototype.subscribeWaitForRemote=function(t,r){return x(this,void 0,void 0,function(){var n,i,i;return O(this,function(o){switch(o.label){case 0:n=new Promise(function(s,a){setTimeout(function(){a("Timeout exceeded")},r)}),o.label=1;case 1:return o.trys.push([1,3,,5]),[4,Promise.race([this.getOrCreateFetchPromise(),n])];case 2:return i=o.sent(),this.logger.debug("Remote config client subscription wait for remote mode returns from remote."),this.sendCallback(t,i,"remote"),this.storage.setConfig(i),[3,5];case 3:return o.sent(),this.logger.debug("Remote config client subscription wait for remote mode exceeded timeout. Try to fetch from cache."),[4,this.storage.fetchConfig()];case 4:return i=o.sent(),i.remoteConfig!==null?(this.logger.debug("Remote config client subscription wait for remote mode returns a cached copy."),this.sendCallback(t,i,"cache")):(this.logger.debug("Remote config client subscription wait for remote mode failed to fetch cache."),this.sendCallback(t,i,"remote")),[3,5];case 5:return[2]}})})},e.prototype.sendCallback=function(t,r,n){t.lastCallback=new Date;var i;t.key?i=t.key.split(".").reduce(function(o,s){return o===null?o:s in o?o[s]:null},r.remoteConfig):i=r.remoteConfig,t.callback(i,n,r.lastFetch)},e.prototype.fetch=function(t,r){return t===void 0&&(t=lA),r===void 0&&(r=cA),x(this,void 0,void 0,function(){var n,i,o,s,a,u,c=this;return O(this,function(l){switch(l.label){case 0:n=r/t,i={remoteConfig:null,lastFetch:new Date},o=function(f){var d,h,v,p,b,E,m;return O(this,function(g){switch(g.label){case 0:d=!0,h=new AbortController,v=setTimeout(function(){return h.abort()},r),g.label=1;case 1:return g.trys.push([1,7,8,9]),[4,fetch(s.getUrlParams(),{method:"GET",headers:{Accept:"*/*"},signal:h.signal})];case 2:return p=g.sent(),p.ok?[3,4]:[4,p.text()];case 3:return b=g.sent(),s.logger.debug("Remote config client fetch with retry time ".concat(t," failed with ").concat(p.status,": ").concat(b)),p.status===Sa.INVALID_API_KEY||p.status===Sa.FORBIDDEN?(s.logger.error("Remote config client fetch failed with ".concat(p.status,". Invalid API key; future fetches will be skipped.")),s.isLastFetchInvalidApiKey=!0,d=!1):p.status>=400&&p.status<500&&p.status!==Sa.RATE_LIMIT&&(d=!1),[3,6];case 4:return[4,p.json()];case 5:return E=g.sent(),[2,{value:{remoteConfig:E,lastFetch:new Date}}];case 6:return[3,9];case 7:return m=g.sent(),m instanceof Error&&m.name==="AbortError"?s.logger.debug("Remote config client fetch with retry time ".concat(t," timed out after ").concat(r,"ms")):s.logger.debug("Remote config client fetch with retry time ".concat(t," is rejected because: "),m),[3,9];case 8:return clearTimeout(v),[7];case 9:return d?f<t-1?[4,new Promise(function(y){return setTimeout(y,c.getJitterDelay(n))})]:[3,11]:[2,"break"];case 10:g.sent(),g.label=11;case 11:return[2]}})},s=this,a=0,l.label=1;case 1:return a<t?[5,o(a)]:[3,4];case 2:if(u=l.sent(),typeof u=="object")return[2,u.value];if(u==="break")return[3,4];l.label=3;case 3:return a++,[3,1];case 4:return[2,i]}})})},e.prototype.getJitterDelay=function(t){return Math.floor(Math.random()*t)},e.prototype.getUrlParams=function(){var t=encodeURIComponent(this.apiKey),r=new URLSearchParams;return r.append("config_group",e.CONFIG_GROUP),"".concat(this.serverUrl,"/").concat(t,"?").concat(r.toString())},e.CONFIG_GROUP="browser",e})(),wa=le(),Tn=wa?.console,un={},Ni={},Ta=!1;function dA(e){if(!Tn||typeof Tn[e]!="function")return!1;if(Ni[e])return!0;var t=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{if(un[e]&&!Ta){Ta=!0;var i=un[e];i&&i.forEach(function(o){try{o(e,r)}catch{}})}}catch{}return Ta=!1,Ni[e].apply(Tn,r)};return Ni[e]=Tn[e],Tn[e]=t,!0}function hA(e,t){var r=dA(e);if(!r)return new Error("Console override failed");un[e]?un[e].push(t):un[e]=[t]}function vA(e){var t,r;try{for(var n=ce(Object.values(un)),i=n.next();!i.done;i=n.next())for(var o=i.value,s=o.length-1;s>=0;s--)if(o[s]===e){o.splice(s,1);break}}catch(a){t={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}}function pA(){var e,t;try{for(var r=ce(Object.entries(Ni)),n=r.next();!n.done;n=r.next()){var i=oe(n.value,2),o=i[0],s=i[1];s&&(Tn[o]=s)}}catch(a){e={error:a}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}Ni={},un={}}var Yf={addListener:hA,removeListener:vA,_restoreConsole:pA},Jn;(function(e){e.US="US",e.EU="EU",e.STAGING="STAGING"})(Jn||(Jn={}));var ng=null,ig=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],Ul="data-amp-track-",og=["div","span","h1","h2","h3","h4","h5","h6"],sg=150,gA=["a","button",'[role="button"]','[role="link"]','[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]','[role="option"]','[role="tab"]','[role="treeitem"]','[contenteditable="true" i]'],ag=Ee(['input[type="button"]','input[type="submit"]','input[type="reset"]','input[type="image"]','input[type="file"]'],oe(gA),!1),mA=ag,yA=ag,bA=["*"],EA=1e3,_A=4,SA=50;function wA(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||e===null||e===void 0}function ug(e,t,r){if(e){var n=t.map(Jf),i=r.map(Jf);lg({json:e,allowlist:n,excludelist:i,ancestors:[]})}}function lg(e){var t,r,n=e.json,i=e.targetObject,o=e.allowlist,s=e.excludelist,a=e.ancestors,u=e.parentObject,c=e.targetKey;i||(i=n);var l=Object.keys(i);try{for(var f=ce(l),d=f.next();!d.done;d=f.next()){var h=d.value,v=Ee(Ee([],oe(a),!1),[h],!1);wA(i[h])?(!Qf(v,o)||Qf(v,s))&&delete i[h]:lg({json:n,targetObject:i[h],allowlist:o,excludelist:s,ancestors:v,parentObject:i,targetKey:h})}}catch(p){t={error:p}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(t)throw t.error}}Object.keys(i).length===0&&u&&c&&delete u[c]}function Jf(e){return e.startsWith("/")&&(e=e.slice(1)),e.split("/").map(function(t){return t.replace(/~0/g,"~").replace(/~1/g,"/")})}function Ou(e,t,r,n){if(r===void 0&&(r=0),n===void 0&&(n=0),n===t.length)return r===e.length;if(r===e.length){for(;n<t.length&&t[n]==="**";)n++;return n===t.length}var i=t[n];if(i==="**"){if(n+1===t.length)return!0;for(var o=r;o<=e.length;o++)if(Ou(e,t,o,n+1))return!0;return!1}else return i==="*"||i===e[r]?Ou(e,t,r+1,n+1):!1}function Qf(e,t){return t.some(function(r){return Ou(e,r)})}var TA=500,cg=100,AA=(function(){function e(t){this.request=t}return e.prototype.headers=function(t){var r,n;t===void 0&&(t=[]);var i=this.request.headers,o={};if(Array.isArray(i))i.forEach(function(f){var d=oe(f,2),h=d[0],v=d[1];o[h]=v});else if(i instanceof Headers)i.forEach(function(f,d){o[d]=f});else if(typeof i=="object"&&i!==null)try{for(var s=ce(Object.entries(i)),a=s.next();!a.done;a=s.next()){var u=oe(a.value,2),c=u[0],l=u[1];o[c]=l}}catch(f){r={error:f}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return Vs(o,{allow:t})},Object.defineProperty(e.prototype,"bodySize",{get:function(){if(typeof this._bodySize=="number")return this._bodySize;var t=le();if(t?.TextEncoder){var r=this.request.body;return this._bodySize=fg(r,cg),this._bodySize}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"method",{get:function(){return this.request.method},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return typeof this.request.body=="string"?this.request.body:null},enumerable:!1,configurable:!0}),e.prototype.json=function(t,r){return t===void 0&&(t=[]),r===void 0&&(r=[]),x(this,void 0,void 0,function(){var n;return O(this,function(i){return t.length===0?[2,null]:(n=this.body,[2,Fl(n,t,r)])})})},e})(),CA=(function(){function e(t,r){this.bodyRaw=t,this.requestHeaders=r}return e.prototype.headers=function(t){return t===void 0&&(t=[]),Vs(this.requestHeaders,{allow:t})},Object.defineProperty(e.prototype,"bodySize",{get:function(){return fg(this.bodyRaw,cg)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return typeof this.bodyRaw=="string"?this.bodyRaw:null},enumerable:!1,configurable:!0}),e.prototype.json=function(t,r){return t===void 0&&(t=[]),r===void 0&&(r=[]),x(this,void 0,void 0,function(){var n;return O(this,function(i){return t.length===0?[2,null]:(n=this.body,[2,Fl(n,t,r)])})})},e})();function fg(e,t){var r,n,i,o=le(),s=o?.TextEncoder;if(s){var a;if(typeof e=="string")a=e,i=new s().encode(a).length;else if(e instanceof Blob)a=e,i=a.size;else if(e instanceof URLSearchParams)a=e,i=new s().encode(a.toString()).length;else if(ArrayBuffer.isView(e))a=e,i=a.byteLength;else if(e instanceof ArrayBuffer)a=e,i=a.byteLength;else if(e instanceof FormData){var u=e,c=0,l=0;try{for(var f=ce(u.entries()),d=f.next();!d.done;d=f.next()){var h=oe(d.value,2),v=h[0],p=h[1];if(c+=v.length,typeof p=="string")c+=new s().encode(p).length;else if(p instanceof Blob)c+=p.size;else return;if(++l>=t)return}}catch(b){r={error:b}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}i=c}else if(e instanceof ReadableStream){a=e;return}return i}}var IA=(function(){function e(t){this.response=t}return e.prototype.headers=function(t){var r;if(t===void 0&&(t=[]),this.response.headers instanceof Headers){var n=this.response.headers,i={};return(r=n?.forEach)===null||r===void 0||r.call(n,function(o,s){i[s]=o}),Vs(i,{allow:t})}},Object.defineProperty(e.prototype,"bodySize",{get:function(){var t,r;if(this._bodySize!==void 0)return this._bodySize;var n=(r=(t=this.response.headers)===null||t===void 0?void 0:t.get)===null||r===void 0?void 0:r.call(t,"content-length"),i=n?parseInt(n,10):void 0;return this._bodySize=i,i},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.response.status},enumerable:!1,configurable:!0}),e.prototype.text=function(){return x(this,void 0,void 0,function(){var t,r,n;return O(this,function(i){switch(i.label){case 0:this.clonedResponse||(this.clonedResponse=this.response.clone()),i.label=1;case 1:return i.trys.push([1,3,,4]),t=this.clonedResponse.text(),r=new Promise(function(o){return setTimeout(function(){return o(null)},TA)}),[4,Promise.race([t,r])];case 2:return n=i.sent(),[2,n];case 3:return i.sent(),[2,null];case 4:return[2]}})})},e.prototype.json=function(t,r){return t===void 0&&(t=[]),r===void 0&&(r=[]),x(this,void 0,void 0,function(){var n;return O(this,function(i){switch(i.label){case 0:return t.length===0?[2,null]:[4,this.text()];case 1:return n=i.sent(),[2,Fl(n,t,r)]}})})},e})(),kA=(function(){function e(t,r,n,i){this.statusCode=t,this.headersString=r,this.size=n,this.getJson=i}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.statusCode},enumerable:!1,configurable:!0}),e.prototype.headers=function(t){var r,n;if(t===void 0&&(t=[]),!this.headersString)return{};var i={},o=this.headersString.split(`\r
`);try{for(var s=ce(o),a=s.next();!a.done;a=s.next()){var u=a.value,c=oe(u.split(": "),2),l=c[0],f=c[1];l&&f&&(i[l]=f)}}catch(d){r={error:d}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return Vs(i,{allow:t})},e.prototype.json=function(t,r){return t===void 0&&(t=[]),r===void 0&&(r=[]),x(this,void 0,void 0,function(){var n;return O(this,function(i){return t.length===0?[2,null]:(n=this.getJson(),n?(ug(n,t,r),[2,n]):[2,null])})})},e})();function Fl(e,t,r){if(!e)return null;try{var n=JSON.parse(e);return ug(n,t,r),n}catch{return null}}var Li;(function(e){e.REDACT="redact",e.REMOVE="remove"})(Li||(Li={}));var Zf="[REDACTED]",Vs=function(e,t){var r,n,i=t.allow,o=i===void 0?[]:i,s=t.strategy,a=s===void 0?Li.REMOVE:s,u=Ee([],oe(sT),!1),c={},l=function(v){var p=v.toLowerCase();u.find(function(b){return b.toLowerCase()===p})?a===Li.REDACT&&(c[v]=Zf):o.find(function(b){return b.toLowerCase()===p})?c[v]=e[v]:a===Li.REDACT&&(c[v]=Zf)};try{for(var f=ce(Object.keys(e)),d=f.next();!d.done;d=f.next()){var h=d.value;l(h)}}catch(v){r={error:v}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}return c},PA=(function(){function e(t,r,n,i,o,s,a,u,c,l,f){a===void 0&&(a=0),this.type=t,this.method=r,this.timestamp=n,this.startTime=i,this.url=o,this.requestWrapper=s,this.status=a,this.duration=u,this.responseWrapper=c,this.error=l,this.endTime=f}return e.prototype.toSerializable=function(){var t,r,n,i,o={type:this.type,method:this.method,url:this.url,timestamp:this.timestamp,status:this.status,duration:this.duration,error:this.error,startTime:this.startTime,endTime:this.endTime,requestHeaders:(t=this.requestWrapper)===null||t===void 0?void 0:t.headers(Ee([],oe(ms),!1)),requestBodySize:(r=this.requestWrapper)===null||r===void 0?void 0:r.bodySize,responseHeaders:(n=this.responseWrapper)===null||n===void 0?void 0:n.headers(Ee([],oe(ms),!1)),responseBodySize:(i=this.responseWrapper)===null||i===void 0?void 0:i.bodySize};return Object.fromEntries(Object.entries(o).filter(function(s){var a=oe(s,2);a[0];var u=a[1];return u!==void 0}))},e})();function RA(e){return typeof e=="object"&&e!==null&&"url"in e&&"method"in e}var OA=(function(){function e(t,r){r===void 0&&(r=Zt()),this.callback=t,this.id=r}return e})();function Kr(e){try{e()}catch{}}var xA=(function(){function e(t){this.eventCallbacks=new Map,this.isObserving=!1,this.logger=t;var r=le();e.isSupported()&&(this.globalScope=r)}return e.isSupported=function(){var t=le();return!!t&&!!t.fetch},e.prototype.subscribe=function(t,r){var n,i,o,s,a,u,c,l,f,d;if(this.logger||(this.logger=r),this.eventCallbacks.set(t.id,t),!this.isObserving){var h=(o=(i=(n=this.globalScope)===null||n===void 0?void 0:n.XMLHttpRequest)===null||i===void 0?void 0:i.prototype)===null||o===void 0?void 0:o.open,v=(u=(a=(s=this.globalScope)===null||s===void 0?void 0:s.XMLHttpRequest)===null||a===void 0?void 0:a.prototype)===null||u===void 0?void 0:u.send,p=(f=(l=(c=this.globalScope)===null||c===void 0?void 0:c.XMLHttpRequest)===null||l===void 0?void 0:l.prototype)===null||f===void 0?void 0:f.setRequestHeader;h&&v&&p&&this.observeXhr(h,v,p);var b=(d=this.globalScope)===null||d===void 0?void 0:d.fetch;b&&this.observeFetch(b),this.isObserving=!0}},e.prototype.unsubscribe=function(t){this.eventCallbacks.delete(t.id)},e.prototype.triggerEventCallbacks=function(t){var r=this;this.eventCallbacks.forEach(function(n){try{n.callback(t)}catch(i){Kr(function(){var o;(o=r.logger)===null||o===void 0||o.debug("an unexpected error occurred while triggering event callbacks",i)})}})},e.prototype.handleNetworkRequestEvent=function(t,r,n,i,o,s,a){var u;if(!(s===void 0||a===void 0)){var c,l="GET";if(RA(r)?(c=r.url,l=r.method):c=(u=r?.toString)===null||u===void 0?void 0:u.call(r),c)try{var f=new URL(c);c="".concat(f.protocol,"//").concat(f.host).concat(f.pathname).concat(f.search).concat(f.hash)}catch{}l=n?.method||l;var d,h;i&&(d=i.status),o&&(h={name:o.name||"UnknownError",message:o.message||"An unknown error occurred"},d=0);var v=Math.floor(performance.now()-a),p=Math.floor(s+v),b=new PA(t,l,s,s,c,n,d,v,i,h,p);this.triggerEventCallbacks(b)}},e.prototype.getTimestamps=function(){var t,r;return{startTime:(t=Date.now)===null||t===void 0?void 0:t.call(Date),durationStart:(r=performance?.now)===null||r===void 0?void 0:r.call(performance)}},e.prototype.observeFetch=function(t){var r=this;!this.globalScope||!t||(this.globalScope.fetch=function(n,i){return x(r,void 0,void 0,function(){var o,s,a,u,c=this;return O(this,function(l){switch(l.label){case 0:try{o=this.getTimestamps()}catch(f){Kr(function(){var d;return(d=c.logger)===null||d===void 0?void 0:d.debug("an unexpected error occurred while retrieving timestamps",f)})}l.label=1;case 1:return l.trys.push([1,3,,4]),[4,t(n,i)];case 2:return s=l.sent(),[3,4];case 3:return u=l.sent(),a=u,[3,4];case 4:try{this.handleNetworkRequestEvent("fetch",n,i?new AA(i):void 0,s?new IA(s):void 0,a,o?.startTime,o?.durationStart)}catch(f){Kr(function(){var d;return(d=c.logger)===null||d===void 0?void 0:d.debug("an unexpected error occurred while handling fetch",f)})}if(s)return[2,s];throw a}})})})},e.createXhrJsonParser=function(t,r){return function(){var n;try{if(t.responseType==="json"){if(!((n=r.globalScope)===null||n===void 0)&&n.structuredClone)return r.globalScope.structuredClone(t.response)}else if(["text",""].includes(t.responseType))return JSON.parse(t.responseText)}catch(i){return i instanceof Error&&i.name==="InvalidStateError"&&Kr(function(){var o;return(o=r.logger)===null||o===void 0?void 0:o.debug("unexpected error when retrieving responseText. responseType='".concat(t.responseType,"'"))}),null}return null}},e.prototype.observeXhr=function(t,r,n){if(!(!this.globalScope||!t||!r)){var i=this.globalScope.XMLHttpRequest.prototype,o=this;i.open=function(){for(var s,a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];var c=this,l=oe(a,2),f=l[0],d=l[1];try{c.$$AmplitudeAnalyticsEvent=D({method:f,url:(s=d?.toString)===null||s===void 0?void 0:s.call(d),headers:{}},o.getTimestamps())}catch(h){Kr(function(){var v;return(v=o.logger)===null||v===void 0?void 0:v.debug("an unexpected error occurred while calling xhr open",h)})}return t.apply(c,a)},i.send=function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var u=this,c=u,l=e.createXhrJsonParser(u,o),f=s[0],d=c.$$AmplitudeAnalyticsEvent;return c.$$AmplitudeAnalyticsEvent&&c.addEventListener("loadend",function(){try{var h=c.getAllResponseHeaders(),v=c.getResponseHeader("content-length"),p=new kA(c.status,h,v?parseInt(v,10):void 0,l),b=c.$$AmplitudeAnalyticsEvent.headers,E=new CA(f,b);d.status=c.status,o.handleNetworkRequestEvent("xhr",{url:d.url,method:d.method},E,p,void 0,d.startTime,d.durationStart)}catch(m){Kr(function(){var g;return(g=o.logger)===null||g===void 0?void 0:g.debug("an unexpected error occurred while handling xhr send",m)})}}),r.apply(c,s)},i.setRequestHeader=function(s,a){var u=this;try{var c=u.$$AmplitudeAnalyticsEvent;c&&(c.headers[s]=a)}catch(l){Kr(function(){var f;return(f=o.logger)===null||f===void 0?void 0:f.debug("an unexpected error occurred while calling xhr setRequestHeader",l)})}n.apply(u,[s,a])}}},e})(),ed=new xA,dg=(function(){function e(){}return e.prototype.parse=function(){return x(this,void 0,void 0,function(){return O(this,function(t){return[2,D(D(D(D({},js),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var t=ys(),r=t[eT],n=t[tT],i=t[rT],o=t[nT],s=t[iT],a=t[oT];return{utm_campaign:r,utm_content:n,utm_id:i,utm_medium:o,utm_source:s,utm_term:a}},e.prototype.getReferrer=function(){var t,r,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=(r=(t=n.referrer)===null||t===void 0?void 0:t.split("/")[2])!==null&&r!==void 0?r:void 0}catch{}return n},e.prototype.getClickIds=function(){var t,r=ys();return t={},t[Of]=r[Of],t[xf]=r[xf],t[Nf]=r[Nf],t[Lf]=r[Lf],t[Mf]=r[Mf],t[Df]=r[Df],t[Uf]=r[Uf],t[Ff]=r[Ff],t[Hf]=r[Hf],t[Bf]=r[Bf],t[jf]=r[jf],t},e})(),In="data-amp-mask",Mr="*****",NA=/\b(?:\d[ -]*?){13,16}\b/,LA=/(\d{3}-?\d{2}-?\d{4})/g,MA=/[^\s@]+@[^\s@.]+\.[^\s@]+/g,Hl=function(e,t){var r,n;if(t===void 0&&(t=[]),typeof e!="string")return"";var i=e;i=i.replace(NA,Mr),i=i.replace(LA,Mr),i=i.replace(MA,Mr);try{for(var o=ce(t),s=o.next();!s.done;s=o.next()){var a=s.value;try{i=i.replace(a,Mr)}catch{}}}catch(u){r={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},Bl=function(e){if(typeof document>"u"||!document.title)return"";var t=document.querySelector("title");return t&&t.hasAttribute(In)?Mr:e?e(document.title):document.title};function hg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fi={},td;function DA(){if(td)return fi;td=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.Observable=void 0;const e=E=>!!Symbol[E],t=E=>e(E)?Symbol[E]:"@@"+E,r=t("iterator"),n=t("observable"),i=t("species");function o(E,m){let g=E[m];if(g!=null){if(typeof g!="function")throw new TypeError(g+" is not a function");return g}}function s(E){let m=E.constructor;return m!==void 0&&(m=m[i],m===null&&(m=void 0)),m!==void 0?m:b}function a(E){return E instanceof b}function u(E){u.log?u.log(E):setTimeout(()=>{throw E})}function c(E){Promise.resolve().then(()=>{try{E()}catch(m){u(m)}})}function l(E){let m=E._cleanup;if(m!==void 0&&(E._cleanup=void 0,!!m))try{if(typeof m=="function")m();else{let g=o(m,"unsubscribe");g&&g.call(m)}}catch(g){u(g)}}function f(E){E._observer=void 0,E._queue=void 0,E._state="closed"}function d(E){let m=E._queue;if(m){E._queue=void 0,E._state="ready";for(let g=0;g<m.length&&(h(E,m[g].type,m[g].value),E._state!=="closed");++g);}}function h(E,m,g){E._state="running";let y=E._observer;try{let _=o(y,m);switch(m){case"next":_&&_.call(y,g);break;case"error":if(f(E),_)_.call(y,g);else throw g;break;case"complete":f(E),_&&_.call(y);break}}catch(_){u(_)}E._state==="closed"?l(E):E._state==="running"&&(E._state="ready")}function v(E,m,g){if(E._state!=="closed"){if(E._state==="buffering"){E._queue.push({type:m,value:g});return}if(E._state!=="ready"){E._state="buffering",E._queue=[{type:m,value:g}],c(()=>d(E));return}h(E,m,g)}}class p{constructor(m,g){this._cleanup=void 0,this._observer=m,this._queue=void 0,this._state="initializing";let y=this,_={get closed(){return y._state==="closed"},next(S){v(y,"next",S)},error(S){v(y,"error",S)},complete(){v(y,"complete")}};try{this._cleanup=g.call(void 0,_)}catch(S){_.error(S)}this._state==="initializing"&&(this._state="ready")}get closed(){return this._state==="closed"}unsubscribe(){this._state!=="closed"&&(f(this),l(this))}}class b{constructor(m){if(!(this instanceof b))throw new TypeError("Observable cannot be called as a function");if(typeof m!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=m}subscribe(m){return(typeof m!="object"||m===null)&&(m={next:m,error:arguments[1],complete:arguments[2]}),new p(m,this._subscriber)}forEach(m){return new Promise((g,y)=>{if(typeof m!="function"){y(new TypeError(m+" is not a function"));return}function _(){S.unsubscribe(),g()}let S=this.subscribe({next(A){try{m(A,_)}catch(C){y(C),S.unsubscribe()}},error:y,complete:g})})}map(m){if(typeof m!="function")throw new TypeError(m+" is not a function");let g=s(this);return new g(y=>this.subscribe({next(_){try{_=m(_)}catch(S){return y.error(S)}y.next(_)},error(_){y.error(_)},complete(){y.complete()}}))}filter(m){if(typeof m!="function")throw new TypeError(m+" is not a function");let g=s(this);return new g(y=>this.subscribe({next(_){try{if(!m(_))return}catch(S){return y.error(S)}y.next(_)},error(_){y.error(_)},complete(){y.complete()}}))}reduce(m){if(typeof m!="function")throw new TypeError(m+" is not a function");let g=s(this),y=arguments.length>1,_=!1,A=arguments[1];return new g(C=>this.subscribe({next(I){let P=!_;if(_=!0,!P||y)try{A=m(A,I)}catch(R){return C.error(R)}else A=I},error(I){C.error(I)},complete(){if(!_&&!y)return C.error(new TypeError("Cannot reduce an empty sequence"));C.next(A),C.complete()}}))}async all(){let m=[];return await this.forEach(g=>m.push(g)),m}concat(...m){let g=s(this);return new g(y=>{let _,S=0;function A(C){_=C.subscribe({next(I){y.next(I)},error(I){y.error(I)},complete(){S===m.length?(_=void 0,y.complete()):A(g.from(m[S++]))}})}return A(this),()=>{_&&(_.unsubscribe(),_=void 0)}})}flatMap(m){if(typeof m!="function")throw new TypeError(m+" is not a function");let g=s(this);return new g(y=>{let _=[],S=this.subscribe({next(C){if(m)try{C=m(C)}catch(P){return y.error(P)}let I=g.from(C).subscribe({next(P){y.next(P)},error(P){y.error(P)},complete(){let P=_.indexOf(I);P>=0&&_.splice(P,1),A()}});_.push(I)},error(C){y.error(C)},complete(){A()}});function A(){S.closed&&_.length===0&&y.complete()}return()=>{_.forEach(C=>C.unsubscribe()),S.unsubscribe()}})}[n](){return this}static from(m){let g=typeof this=="function"?this:b;if(m==null)throw new TypeError(m+" is not an object");let y=o(m,n);if(y){let _=y.call(m);if(Object(_)!==_)throw new TypeError(_+" is not an object");return a(_)&&_.constructor===g?_:new g(S=>_.subscribe(S))}if(e("iterator")&&(y=o(m,r),y))return new g(_=>{c(()=>{if(!_.closed){for(let S of y.call(m))if(_.next(S),_.closed)return;_.complete()}})});if(Array.isArray(m))return new g(_=>{c(()=>{if(!_.closed){for(let S=0;S<m.length;++S)if(_.next(m[S]),_.closed)return;_.complete()}})});throw new TypeError(m+" is not observable")}static of(...m){let g=typeof this=="function"?this:b;return new g(y=>{c(()=>{if(!y.closed){for(let _=0;_<m.length;++_)if(y.next(m[_]),y.closed)return;y.complete()}})})}static get[i](){return this}}return fi.Observable=b,Object.defineProperty(b,Symbol("extensions"),{value:{symbol:n,hostReportError:u},configurable:!0}),fi}var Aa,rd;function UA(){return rd||(rd=1,Aa=DA().Observable),Aa}var FA=UA();const tt=hg(FA);function jl(e,t){return new tt(function(r){e.subscribe({next:function(n){t(n).then(function(i){return r.next(i)}).catch(function(i){return r.error(i)})},error:function(n){r.error(n)},complete:function(){r.complete()}})})}function cn(e,t){return new tt(function(r){var n=!1,i=new Set,o=function(){var a,u;n=!0;try{for(var c=ce(i),l=c.next();!l.done;l=c.next()){var f=l.value;try{f.unsubscribe()}catch{}}}catch(d){a={error:d}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}i.clear()},s=function(a){var u=a.subscribe({next:function(c){n||r.next(c)},error:function(c){n||(n=!0,r.error(c),o())},complete:function(){i.delete(u),!n&&i.size===0&&(r.complete(),o(),n=!0)}});i.add(u)};return s(e),s(t),o})}function Xt(e){var t=new Set,r=null;function n(){r?.unsubscribe(),r=null,t.clear()}return new tt(function(i){return t.add(i),r===null&&(r=e.subscribe({next:function(o){var s,a,u;try{for(var c=ce(t),l=c.next();!l.done;l=c.next()){var f=l.value;(u=f.next)===null||u===void 0||u.call(f,o)}}catch(d){s={error:d}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(s)throw s.error}}},error:function(o){var s,a,u;try{for(var c=ce(t),l=c.next();!l.done;l=c.next()){var f=l.value;(u=f.error)===null||u===void 0||u.call(f,o)}}catch(d){s={error:d}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(s)throw s.error}}n()},complete:function(){var o,s,a;try{for(var u=ce(t),c=u.next();!c.done;c=u.next()){var l=c.value;(a=l.complete)===null||a===void 0||a.call(l)}}catch(f){o={error:f}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}n()}})),function(){t.delete(i),t.size===0&&r&&(r.unsubscribe(),r=null)}})}var So={exports:{}},nd;function HA(){if(nd)return So.exports;nd=1;var e=Object.prototype.hasOwnProperty;function t(i){return"[Throws: "+(i?i.message:"?")+"]"}function r(i,o){if(e.call(i,o))try{return i[o]}catch(s){return t(s)}return i[o]}function n(i){var o=[];function s(a){if(a===null||typeof a!="object")return a;if(o.indexOf(a)!==-1)return"[Circular]";if(o.push(a),typeof a.toJSON=="function")try{var u=s(a.toJSON());return o.pop(),u}catch(f){return t(f)}if(Array.isArray(a)){var c=a.map(s);return o.pop(),c}var l=Object.keys(a).reduce(function(f,d){return f[d]=s(r(a,d)),f},{});return o.pop(),l}return s(i)}return So.exports=function(i,o,s){return JSON.stringify(n(i),o,s)},So.exports.ensureProperties=n,So.exports}var vg=HA();const pg=hg(vg),BA=sy({__proto__:null,default:pg},[vg]);var jA=pg||BA,xu="https://app.amplitude.com",qA="https://app.eu.amplitude.com",VA="https://apps.stag2.amplitude.com",gg={US:xu,EU:qA,STAGING:VA},$A="https://cdn.amplitude.com/libs/background-capture-1.0.0-alpha.3.js.gz",WA=function(e){var t=document.querySelector('script[src="'.concat(CSS.escape(e),'"]'));return t?Promise.resolve({status:!0}):new Promise(function(r,n){var i;try{var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=e,o.addEventListener("load",function(){r({status:!0})},{once:!0}),o.addEventListener("error",function(){n({status:!1,message:"Failed to load the script ".concat(e)})}),(i=document.head)===null||i===void 0||i.appendChild(o)}catch(s){n(s)}})};function GA(){return"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9))}var mg,Nu="__AMPLITUDE_MESSENGER_INSTANCE__",Es="__AMPLITUDE_MESSENGER__",KA=(function(){function e(t){var r=t===void 0?{}:t,n=r.origin,i=n===void 0?xu:n;this[mg]=!0,this.isSetup=!1,this.messageHandler=null,this.requestCallbacks={},this.actionHandlers=new Map,this.pendingMessages=new Map,this.scriptLoadPromises=new Map,this.endpoint=i}return e.prototype.notify=function(t){var r,n,i,o;(n=(r=this.logger)===null||r===void 0?void 0:r.debug)===null||n===void 0||n.call(r,"Message sent: ",JSON.stringify(t)),(o=(i=window.opener)===null||i===void 0?void 0:i.postMessage)===null||o===void 0||o.call(i,t,this.endpoint)},e.prototype.sendRequest=function(t,r,n){var i=this;n===void 0&&(n={timeout:15e3});var o=GA(),s={id:o,action:t,args:r},a=new Promise(function(u,c){i.requestCallbacks[o]={resolve:u,reject:c},i.notify(s),n.timeout>0&&setTimeout(function(){c(new Error("".concat(t," timed out (id: ").concat(o,")"))),delete i.requestCallbacks[o]},n.timeout)});return a},e.prototype.handleResponse=function(t){var r;if(!this.requestCallbacks[t.id]){(r=this.logger)===null||r===void 0||r.warn("No callback found for request id: ".concat(t.id));return}this.requestCallbacks[t.id].resolve(t.responseData),delete this.requestCallbacks[t.id]},e.prototype.registerActionHandler=function(t,r){var n,i,o,s;this.actionHandlers.has(t)&&((s=(o=this.logger)===null||o===void 0?void 0:o.warn)===null||s===void 0||s.call(o,"Overwriting existing action handler for: ".concat(t))),this.actionHandlers.set(t,r);var a=this.pendingMessages.get(t);if(a){this.pendingMessages.delete(t);try{for(var u=ce(a),c=u.next();!c.done;c=u.next()){var l=c.value;r(l)}}catch(f){n={error:f}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}},e.prototype.loadScriptOnce=function(t){return x(this,void 0,void 0,function(){var r,n,i;return O(this,function(o){switch(o.label){case 0:if(r=this.scriptLoadPromises.get(t),r)return[2,r];n=WA(t).then(function(){}),this.scriptLoadPromises.set(t,n),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,n];case 2:return o.sent(),[3,4];case 3:throw i=o.sent(),this.scriptLoadPromises.delete(t),i;case 4:return[2]}})})},e.prototype.setup=function(t){var r=this,n,i,o=t===void 0?{}:t,s=o.logger,a=o.endpoint;s&&(this.logger=s),a&&this.endpoint===xu&&(this.endpoint=a),!this.isSetup&&(this.isSetup=!0,(i=(n=this.logger)===null||n===void 0?void 0:n.debug)===null||i===void 0||i.call(n,"Setting up messenger"),this.messageHandler=function(u){var c,l,f,d,h;if((l=(c=r.logger)===null||c===void 0?void 0:c.debug)===null||l===void 0||l.call(c,"Message received: ",JSON.stringify(u)),r.endpoint===u.origin){var v=u.data,p=v?.action;if(p)if("id"in v&&v.id)(d=(f=r.logger)===null||f===void 0?void 0:f.debug)===null||d===void 0||d.call(f,"Received Response to previous request: ",JSON.stringify(u)),r.handleResponse(v);else{if(p==="ping"){r.notify({action:"pong"});return}var b=r.actionHandlers.get(p);if(b)b(v.data);else{var E=(h=r.pendingMessages.get(p))!==null&&h!==void 0?h:[];E.push(v.data),r.pendingMessages.set(p,E)}}}},window.addEventListener("message",this.messageHandler),this.notify({action:"page-loaded"}))},e.prototype.destroy=function(){this.messageHandler&&(window.removeEventListener("message",this.messageHandler),this.messageHandler=null),this.isSetup=!1,this.actionHandlers.clear(),this.pendingMessages.clear(),this.requestCallbacks={},this.scriptLoadPromises.clear();var t=le();t?.[Es]===this&&delete t[Es]},e})();mg=Nu;function zA(e){return typeof e=="object"&&e!==null&&Nu in e&&e[Nu]===!0}function yg(e){var t=le(),r=t?.[Es];if(zA(r))return r;var n=new KA(e);return t&&(t[Es]=n),n}var id="__AMPLITUDE_BACKGROUND_CAPTURE__";function bg(e,t){var r,n=e;if(n[id]!==!0){n[id]=!0;var i=(r=void 0)!==null&&r!==void 0?r:$A,o=null,s=function(a,u){var c,l;a==="background-capture-complete"&&((l=(c=e.logger)===null||c===void 0?void 0:c.debug)===null||l===void 0||l.call(c,"Background capture complete"),e.notify({action:"background-capture-complete",data:u}))};e.registerActionHandler("initialize-background-capture",function(){var a,u;(u=(a=e.logger)===null||a===void 0?void 0:a.debug)===null||u===void 0||u.call(a,"Initializing background capture (external script)");var c=new URL(i,e.endpoint).toString();e.loadScriptOnce(c).then(function(){var l,f,d;(f=(l=e.logger)===null||l===void 0?void 0:l.debug)===null||f===void 0||f.call(l,"Background capture script loaded (external)"),o=(d=window?.amplitudeBackgroundCapture)===null||d===void 0?void 0:d.call(window,{messenger:e,onBackgroundCapture:s}),e.notify({action:"background-capture-loaded"})}).catch(function(){var l;(l=e.logger)===null||l===void 0||l.warn("Failed to initialize background capture")})}),e.registerActionHandler("close-background-capture",function(){var a;(a=o?.close)===null||a===void 0||a.call(o),o=null})}}var $o={always:"always",ifEmptyCampaign:"ifEmptyCampaign"},ti=function(e,t){return typeof e=="boolean"?e:e?.[t]!==!1},Eg=function(e){return ti(e,"attribution")},XA=function(e){return ti(e,"fileDownloads")},_g=function(e){return ti(e,"formInteractions")},Sg=function(e){return ti(e,"pageViews")},od=function(e){return ti(e,"sessions")},YA=function(e){return ti(e,"pageUrlEnrichment")},wg=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.networkTracking===!0||typeof e.networkTracking=="object")},Tg=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.elementInteractions===!0||typeof e.elementInteractions=="object")},JA=function(e){return typeof e=="boolean"?e:typeof e=="object"&&e.webVitals===!0},Ag=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.frustrationInteractions===!0||typeof e.frustrationInteractions=="object")},QA=function(e){return typeof e=="boolean"?e:typeof e=="object"&&e!==null&&e.enabled!==!1},ZA=function(e){if(Tg(e.autocapture)&&typeof e.autocapture=="object"&&typeof e.autocapture.elementInteractions=="object")return e.autocapture.elementInteractions},eC=function(e){if(Ag(e.autocapture)&&typeof e.autocapture=="object"&&typeof e.autocapture.frustrationInteractions=="object")return e.autocapture.frustrationInteractions},tC=function(e){var t;if(wg(e.autocapture)){var r=void 0;return typeof e.autocapture=="object"&&typeof e.autocapture.networkTracking=="object"?r=e.autocapture.networkTracking:e.networkTrackingOptions&&(r=e.networkTrackingOptions),D(D({},r),{captureRules:(t=r?.captureRules)===null||t===void 0?void 0:t.map(function(n){var i,o,s;if(!((i=n.urls)===null||i===void 0)&&i.length&&(!((o=n.hosts)===null||o===void 0)&&o.length)){var a=JSON.stringify(n.hosts),u=JSON.stringify(n.urls);return(s=e.loggerProvider)===null||s===void 0||s.warn("Found network capture rule with both urls='".concat(u,"' and hosts='").concat(a,"' set. ")+"Definition of urls takes precedence over hosts, so ignoring hosts."),D(D({},n),{hosts:void 0})}return n})})}},sd=function(e){var t=function(){return!1},r=void 0,n,i=e.pageCounter,o=Sg(e.defaultTracking);return o&&(t=void 0,n=void 0,e.defaultTracking&&typeof e.defaultTracking=="object"&&e.defaultTracking.pageViews&&typeof e.defaultTracking.pageViews=="object"&&("trackOn"in e.defaultTracking.pageViews&&(t=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(n=e.defaultTracking.pageViews.eventType))),{trackOn:t,trackHistoryChanges:r,eventType:n,pageCounter:i}},ad=function(e){return Eg(e.defaultTracking)&&e.defaultTracking&&typeof e.defaultTracking=="object"&&e.defaultTracking.attribution&&typeof e.defaultTracking.attribution=="object"?D({},e.defaultTracking.attribution):{}},rC=function(e){if(_g(e.defaultTracking)&&e.defaultTracking&&typeof e.defaultTracking=="object"&&typeof e.defaultTracking.formInteractions=="object")return e.defaultTracking.formInteractions},Ca=function(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.name,o=n.args,s=n.resolve,a=e&&e[i];if(typeof a=="function"){var u=a.apply(e,o);typeof s=="function"&&s(u?.promise)}}return e},Ia=function(e){var t=e;return t&&t._q!==void 0},ql="2.38.1",Cg="amplitude-ts",nC="Web",iC="$remote",oC=(function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat(Cg,"/").concat(ql),typeof navigator<"u"&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(t){return this.config=t,Promise.resolve(void 0)},e.prototype.execute=function(t){var r,n;return x(this,void 0,void 0,function(){var i,o,s,a;return O(this,function(u){return i=new Date().getTime(),o=(r=this.config.lastEventId)!==null&&r!==void 0?r:-1,s=(n=t.event_id)!==null&&n!==void 0?n:o+1,this.config.lastEventId=s,t.time||(this.config.lastEventTime=i),a=D(D(D(D(D(D(D(D({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:i},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:nC}),this.config.trackingOptions.language&&{language:qT()}),this.config.trackingOptions.ipAddress&&{ip:iC}),{insert_id:Zt(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),t),{event_id:s,library:this.library,user_agent:this.userAgent}),[2,a]})})},e})(),wo=1e3,Ig=(function(e){Dt(t,e);function t(r){var n=this,i,o,s;try{s=(i=le())===null||i===void 0?void 0:i.localStorage}catch(a){(o=r?.loggerProvider)===null||o===void 0||o.debug("Failed to access localStorage. error=".concat(JSON.stringify(a))),s=void 0}return n=e.call(this,s)||this,n.loggerProvider=r?.loggerProvider,n}return t.prototype.set=function(r,n){var i;return x(this,void 0,void 0,function(){var o;return O(this,function(s){switch(s.label){case 0:return Array.isArray(n)&&n.length>wo?(o=n.length-wo,[4,e.prototype.set.call(this,r,n.slice(0,wo))]):[3,2];case 1:return s.sent(),(i=this.loggerProvider)===null||i===void 0||i.error("Failed to save ".concat(o," events because the queue length exceeded ").concat(wo,".")),[3,4];case 2:return[4,e.prototype.set.call(this,r,n)];case 3:s.sent(),s.label=4;case 4:return[2]}})})},t})(qs),sC=(function(e){Dt(t,e);function t(){var r;return e.call(this,(r=le())===null||r===void 0?void 0:r.sessionStorage)||this}return t})(qs),aC=(function(e){Dt(t,e);function t(r){r===void 0&&(r={});var n=e.call(this)||this;return n.state={done:4},n.customHeaders=r,n}return t.prototype.send=function(r,n,i){return i===void 0&&(i=!1),x(this,void 0,void 0,function(){var o=this;return O(this,function(s){return[2,new Promise(function(a,u){typeof XMLHttpRequest>"u"&&u(new Error("XHRTransport is not supported."));var c=new XMLHttpRequest;c.open("POST",r,!0),c.onreadystatechange=function(){if(c.readyState===o.state.done){var p=c.responseText;try{a(o.buildResponse(JSON.parse(p)))}catch{a(o.buildResponse({code:c.status}))}}};var l={"Content-Type":"application/json",Accept:"*/*"},f=JSON.stringify(n),d=i&&f.length>=Zp&&eg(),h=function(p){var b,E;l=D(D({},o.customHeaders),l);try{for(var m=ce(Object.entries(l)),g=m.next();!g.done;g=m.next()){var y=oe(g.value,2),_=y[0],S=y[1];c.setRequestHeader(_,S)}}catch(A){b={error:A}}finally{try{g&&!g.done&&(E=m.return)&&E.call(m)}finally{if(b)throw b.error}}c.send(p)},v=function(){return x(o,void 0,void 0,function(){var p;return O(this,function(b){switch(b.label){case 0:return d?[4,tg(f)]:[3,2];case 1:return p=b.sent(),p?(l["Content-Encoding"]="gzip",h(p)):h(f),[3,3];case 2:h(f),b.label=3;case 3:return[2]}})})};v().catch(u)})]})})},t})(no),uC=(function(e){Dt(t,e);function t(r){r===void 0&&(r={});var n=e.call(this)||this;return n.customHeaders=r,n}return t.prototype.send=function(r,n,i){return i===void 0&&(i=!1),x(this,void 0,void 0,function(){var o,s,a,u,c,l,f,d;return O(this,function(h){switch(h.label){case 0:if(typeof fetch>"u")throw new Error("FetchTransport is not supported");return o=JSON.stringify(n),s=i&&o.length>=Zp&&eg(),a=o,u={"Content-Type":"application/json",Accept:"*/*"},s?[4,tg(o)]:[3,2];case 1:c=h.sent(),c&&(u["Content-Encoding"]="gzip",a=c),h.label=2;case 2:return u=D(D({},this.customHeaders),u),l={headers:u,body:a,method:"POST"},[4,fetch(r,l)];case 3:return f=h.sent(),[4,f.text()];case 4:d=h.sent();try{return[2,this.buildResponse(JSON.parse(d))]}catch{return[2,this.buildResponse({code:f.status})]}return[2]}})})},t})(no),lC=(function(e){Dt(t,e);function t(){return e.call(this)||this}return t.prototype.send=function(r,n,i){return x(this,void 0,void 0,function(){var o=this;return O(this,function(s){return[2,new Promise(function(a,u){var c=le();if(!c?.navigator.sendBeacon)throw new Error("SendBeaconTransport is not supported");try{var l=JSON.stringify(n),f=c.navigator.sendBeacon(r,l);return a(f?o.buildResponse({code:200,events_ingested:n.events.length,payload_size_bytes:l.length,server_upload_time:Date.now()}):o.buildResponse({code:500}))}catch(d){u(d)}})]})})},t})(no),cC=function(e,t,r){return r===void 0&&(r=!0),x(void 0,void 0,void 0,function(){var n,i,o,s,a,u,c,l,f;return O(this,function(d){switch(d.label){case 0:return n=jT(e),[4,t.getRaw(n)];case 1:return i=d.sent(),i?r?[4,t.remove(n)]:[3,3]:[2,{optOut:!1}];case 2:d.sent(),d.label=3;case 3:return o=oe(i.split("."),6),s=o[0],a=o[1],u=o[2],c=o[3],l=o[4],f=o[5],[2,{deviceId:s,userId:fC(a),sessionId:ka(c),lastEventId:ka(f),lastEventTime:ka(l),optOut:!!u}]}})})},ka=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},fC=function(e){if(!(!atob||!escape||!e))try{return decodeURIComponent(escape(atob(e)))}catch{return}},$t="[Amplitude]",ud="".concat($t," Form Started"),dC="".concat($t," Form Submitted"),hC="".concat($t," File Downloaded"),ld="session_start",cd="session_end",vC="".concat($t," File Extension"),pC="".concat($t," File Name"),gC="".concat($t," Link ID"),mC="".concat($t," Link Text"),yC="".concat($t," Link URL"),Pa="".concat($t," Form ID"),Ra="".concat($t," Form Name"),Oa="".concat($t," Form Destination"),_s="cookie",kg="US";const bC=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_ACTION_CLICK_ALLOWLIST:og,DEFAULT_CSS_SELECTOR_ALLOWLIST:ig,DEFAULT_DATA_ATTRIBUTE_PREFIX:Ul,EXCLUDE_INTERNAL_REFERRERS_CONDITIONS:$o,get IdentifyOperation(){return vr},get LogLevel(){return at},OfflineDisabled:ng,get RevenueProperty(){return Ft},get ServerZone(){return Jn},get SpecialEventType(){return St}},Symbol.toStringTag,{value:"Module"}));var fd=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},EC=function(e){return Object.values(e).every(function(t){return!t})},_C=function(e){var t=D(D({},e),{referring_domain:void 0,referrer:void 0});return Object.values(t).every(function(r){return!r})},SC=function(e,t,r,n,i,o){i===void 0&&(i=!0),e.referrer;var s=e.referring_domain,a=gs(e,["referrer","referring_domain"]),u=t||{};u.referrer;var c=u.referring_domain,l=gs(u,["referrer","referring_domain"]),f=r.excludeInternalReferrers;if(f){var d=IC(f,n);if(!(d instanceof TypeError)&&e.referring_domain&&kC(e.referring_domain,o)){if(d==="always")return dd(d,e.referring_domain,n),!1;if(d==="ifEmptyCampaign"&&_C(e))return dd(d,e.referring_domain,n),!1}}if(wC(r.excludeReferrers,e.referring_domain))return n.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!i&&EC(e)&&t)return n.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var h=JSON.stringify(a)!==JSON.stringify(l),v=fd(s||"")!==fd(c||""),p=!t||h||v;return p?n.debug("This is a new campaign. An $identify event will be sent."):n.debug("This is not a new campaign because it's the same as the previous one."),p},wC=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=""),e.some(function(r){return r instanceof RegExp?r.test(t):r===t})},TC=function(e,t){var r=t.startsWith(".")?t:".".concat(t),n=e.startsWith(".")?e:".".concat(e);return!!n.endsWith(r)},AC=function(e,t){var r=D(D({},js),e),n=Object.entries(r).reduce(function(i,o){var s,a=oe(o,2),u=a[0],c=a[1];return i.setOnce("initial_".concat(u),(s=c??t.initialEmptyValue)!==null&&s!==void 0?s:"EMPTY"),c?i.set(u,c):i.unset(u)},new Fn);return Ll(n)},CC=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},IC=function(e,t){if(e===!0)return $o.always;if(typeof e=="object"){var r=e.condition;if(typeof r=="string"&&Object.keys($o).includes(r))return r;if(typeof r>"u")return $o.always}var n="Invalid configuration provided for attribution.excludeInternalReferrers: ".concat(JSON.stringify(e));return t.error(n),new TypeError(n)};function dd(e,t,r){var n="This is not a new campaign because referring_domain=".concat(t," is on the same domain as the current page and it is configured to exclude internal referrers");e==="always"?r.debug(n):e==="ifEmptyCampaign"&&r.debug("".concat(n," with empty campaign parameters"))}var Pg=["ac.in","ac.jp","ac.kr","ac.th","ac.uk","ac.za","appspot.com","asn.au","azurewebsites.net","cloudfront.net","myshopify.com","blogspot.com","co.ca","co.in","co.jp","co.kr","co.nz","co.th","co.uk","co.za","com.ar","com.au","com.br","com.cn","com.hk","com.in","com.jp","com.kr","com.mx","com.pl","com.sg","com.tr","com.tw","ed.jp","edu.au","edu.br","edu.cn","edu.hk","edu.sg","edu.th","edu.tr","edu.tw","firebaseapp.com","fly.dev","gc.ca","geek.nz","github.io","gitlab.io","go.jp","go.kr","go.th","gob.ar","gob.mx","gov.au","gov.br","gov.cn","gov.hk","gov.in","gov.pl","gov.sg","gov.tr","gov.tw","gov.uk","gov.za","govt.nz","gr.jp","herokuapp.com","id.au","idv.hk","iwi.nz","lg.jp","ltd.uk","maori.nz","me.uk","mil.kr","ne.jp","ne.kr","net.au","net.br","net.cn","net.hk","net.in","net.nz","net.pl","net.sg","net.tr","net.tw","net.za","onrender.com","or.jp","or.kr","or.th","org.ar","org.au","org.br","org.cn","org.hk","org.in","org.mx","org.nz","org.pl","org.sg","org.tw","org.uk","org.za","pages.dev","pe.kr","plc.uk","re.kr","res.in","sch.uk","vercel.app","netlify.app","workers.dev"],Rg=function(e){var t,r,n=e||((r=(t=le())===null||t===void 0?void 0:t.location)===null||r===void 0?void 0:r.hostname);if(!n)return"";var i=n.split("."),o=i[i.length-1],s=i[i.length-2];return Pg.find(function(a){return n.endsWith(".".concat(a))})&&(o=i[i.length-2]+"."+i[i.length-1],s=i[i.length-3]),s?"".concat(s,".").concat(o):o},kC=function(e,t){var r=le();if(!r)return!1;var n=(t||"").trim()||Rg(r.location.hostname);return TC(e,n)},PC=(function(e){Dt(t,e);function t(r,n,i,o,s,a,u,c,l,f,d,h,v,p,b,E,m,g,y,_,S,A,C,I,P,R,k,N,$,ee,B,z,K,Q,ae,fe,pe,ye,be,de,me,M,Z,X,re){i===void 0&&(i=new Dl),o===void 0&&(o={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),c===void 0&&(c=1e3),l===void 0&&(l=5),f===void 0&&(f=30),d===void 0&&(d=_s),E===void 0&&(E=new Xn),m===void 0&&(m=at.Warn),y===void 0&&(y=!1),_===void 0&&(_=!1),C===void 0&&(C=""),I===void 0&&(I=kg),k===void 0&&(k=1800*1e3),N===void 0&&(N=new Ig({loggerProvider:E})),$===void 0&&($={ipAddress:!0,language:!0,platform:!0}),ee===void 0&&(ee="fetch"),B===void 0&&(B=!1),z===void 0&&(z=!0),ye===void 0&&(ye=!0),be===void 0&&(be=0),Z===void 0&&(Z=!1),X===void 0&&(X=!1);var F=this,ge;F=e.call(this,{apiKey:r,storageProvider:N,transportProvider:Og(ee)})||this,F.apiKey=r,F.appVersion=n,F.cookieOptions=o,F.defaultTracking=s,F.autocapture=a,F.flushIntervalMillis=c,F.flushMaxRetries=l,F.flushQueueSize=f,F.identityStorage=d,F.ingestionMetadata=h,F.instanceName=v,F.loggerProvider=E,F.logLevel=m,F.minIdLength=g,F.offline=y,F.partnerId=S,F.plan=A,F.serverUrl=C,F.serverZone=I,F.sessionTimeout=k,F.storageProvider=N,F.trackingOptions=$,F.transport=ee,F.useBatch=B,F.fetchRemoteConfig=z,F.networkTrackingOptions=fe,F.identify=pe,F.enableDiagnostics=ye,F.diagnosticsSampleRate=be,F.diagnosticsClient=de,F.remoteConfig=me,F.topLevelDomain=M,F.enableRequestBodyCompression=Z,F._enableRequestBodyCompressionExperimental=X,F.customEnrichment=re,F.version=ql,F._optOut=!1,F._cookieStorage=i,F.deviceId=u,F.lastEventId=p,F.lastEventTime=b,F.optOut=_,F.deferredSessionId=R,F.sessionId=P,F.pageCounter=Q,F.userId=K,F.debugLogsEnabled=ae,F.loggerProvider.enable(ae?at.Debug:F.logLevel),F.networkTrackingOptions=fe,F.identify=pe,F.enableDiagnostics=ye,F.diagnosticsSampleRate=be,F.diagnosticsClient=de;var w=(ge=me?.fetchRemoteConfig)!==null&&ge!==void 0?ge:z;return F.remoteConfig=F.remoteConfig||{},F.remoteConfig.fetchRemoteConfig=w,F.fetchRemoteConfig=w,F.topLevelDomain=M||Rg(),F}return Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(r){this._cookieStorage!==r&&(this._cookieStorage=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(r){this._deviceId!==r&&(this._deviceId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(r){this._userId!==r&&(this._userId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(r){this._sessionId!==r&&(this._sessionId=r,r!==void 0&&this._deferredSessionId!==void 0&&(this._deferredSessionId=void 0),this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deferredSessionId",{get:function(){return this._deferredSessionId},set:function(r){this._deferredSessionId!==r&&r!==this.sessionId&&(this._deferredSessionId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(r){this._optOut!==r&&(this._optOut=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(r){this._lastEventTime!==r&&(this._lastEventTime=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(r){this._lastEventId!==r&&(this._lastEventId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(r){this._pageCounter!==r&&(this._pageCounter=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(r){this._debugLogsEnabled!==r&&(this._debugLogsEnabled=r,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var r={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,deferredSessionId:this._deferredSessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled,cookieDomain:void 0};this.cookieStorage instanceof bs&&(r.cookieDomain=this.cookieStorage.options.domain),this.cookieStorage.set(Yp(this.apiKey),r)},t})(Kp),RC=function(e,t,r,n,i){return t===void 0&&(t={}),x(void 0,void 0,void 0,function(){var o,s,a,u,c,l,f,d,h,v,p,b,E,m,g,y,_,S,A,C,I,P,R,k,N,$,ee,B,z,K,Q,ae,fe,pe,ye,be,de,me,M,Z,X,re,F,ge,w,T,L,H,U,q,te;return O(this,function(G){switch(G.label){case 0:return o=t.identityStorage||_s,s="",o===_s&&!(!((P=t.cookieOptions)===null||P===void 0)&&P.domain)&&((R=t.cookieOptions)===null||R===void 0?void 0:R.domain)!==""?[4,NC(void 0,n)]:[3,2];case 1:s=G.sent(),G.label=2;case 2:return a=D({domain:(N=(k=t.cookieOptions)===null||k===void 0?void 0:k.domain)!==null&&N!==void 0?N:s,expiration:365,sameSite:"Lax",secure:!1,upgrade:!0},t.cookieOptions),u={duplicateResolverFn:function(Y){var V=Jp(Y);if(!V)return!1;var W=JSON.parse(V);return Qp(W.cookieDomain,a.domain)},diagnosticsClient:n},c=OC(t.identityStorage,a,u),[4,cC(e,c,(ee=($=t.cookieOptions)===null||$===void 0?void 0:$.upgrade)!==null&&ee!==void 0?ee:!0)];case 3:return l=G.sent(),[4,c.get(Yp(e))];case 4:return f=G.sent(),d=ys(),h=d.ampTimestamp?Number(d.ampTimestamp):void 0,v=h?Date.now()<h:!0,p=(ae=(Q=(K=(B=t.deviceId)!==null&&B!==void 0?B:v?(z=d.ampDeviceId)!==null&&z!==void 0?z:d.deviceId:void 0)!==null&&K!==void 0?K:f?.deviceId)!==null&&Q!==void 0?Q:l.deviceId)!==null&&ae!==void 0?ae:Zt(),b=(fe=f?.lastEventId)!==null&&fe!==void 0?fe:l.lastEventId,E=(pe=f?.lastEventTime)!==null&&pe!==void 0?pe:l.lastEventTime,m=(be=(ye=t.optOut)!==null&&ye!==void 0?ye:f?.optOut)!==null&&be!==void 0?be:l.optOut,g=(de=f?.sessionId)!==null&&de!==void 0?de:l.sessionId,y=f?.deferredSessionId,_=(M=(me=t.userId)!==null&&me!==void 0?me:f?.userId)!==null&&M!==void 0?M:l.userId,r.previousSessionDeviceId=(Z=f?.deviceId)!==null&&Z!==void 0?Z:l.deviceId,r.previousSessionUserId=(X=f?.userId)!==null&&X!==void 0?X:l.userId,S={ipAddress:(F=(re=t.trackingOptions)===null||re===void 0?void 0:re.ipAddress)!==null&&F!==void 0?F:!0,language:(w=(ge=t.trackingOptions)===null||ge===void 0?void 0:ge.language)!==null&&w!==void 0?w:!0,platform:(L=(T=t.trackingOptions)===null||T===void 0?void 0:T.platform)!==null&&L!==void 0?L:!0},A=f?.pageCounter,C=f?.debugLogsEnabled,t.autocapture!==void 0&&(t.defaultTracking=t.autocapture),I=new PC(e,t.appVersion,c,a,t.defaultTracking,t.autocapture,p,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,o,t.ingestionMetadata,t.instanceName,b,E,(H=i?.loggerProvider)!==null&&H!==void 0?H:t.loggerProvider,t.logLevel,t.minIdLength,t.offline,m,t.partnerId,t.plan,t.serverUrl,(U=i?.serverZone)!==null&&U!==void 0?U:t.serverZone,g,y,t.sessionTimeout,t.storageProvider,S,t.transport,t.useBatch,t.fetchRemoteConfig,_,A,C,t.networkTrackingOptions,t.identify,(q=i?.enableDiagnostics)!==null&&q!==void 0?q:t.enableDiagnostics,(te=i?.diagnosticsSampleRate)!==null&&te!==void 0?te:r._diagnosticsSampleRate,n,t.remoteConfig,s,t.enableRequestBodyCompression,r._enableRequestBodyCompressionExperimentalValue,t.customEnrichment),[4,I.storageProvider.isEnabled()];case 5:return G.sent()||(I.loggerProvider.warn("Storage provider ".concat(I.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),I.storageProvider=new Dl),[2,I]}})})},OC=function(e,t,r){switch(e===void 0&&(e=_s),t===void 0&&(t={}),e){case"localStorage":return new Ig;case"sessionStorage":return new sC;case"none":return new Dl;default:return new bs(D(D({},t),{expirationDays:t.expiration}),r)}},xC=function(e){var t,r;return e===void 0&&(e={}),((t=e.remoteConfig)===null||t===void 0?void 0:t.fetchRemoteConfig)===!0?!0:!(((r=e.remoteConfig)===null||r===void 0?void 0:r.fetchRemoteConfig)===!1||e.fetchRemoteConfig===!1)},Og=function(e){var t=typeof e=="object"?e.type:e,r=typeof e=="object"?e.headers:void 0;return t==="xhr"?new aC(r):t==="beacon"?new lC:new uC(r)},NC=function(e,t){return x(void 0,void 0,void 0,function(){var r,n,i,o,s,s,a,u,c;return O(this,function(l){switch(l.label){case 0:return[4,new bs(void 0,{diagnosticsClient:t}).isEnabled()];case 1:if(!l.sent()||typeof location>"u"||!location.hostname)return[2,""];if(r=location.hostname,n=r.split("."),n.length===1)return[2,""];for(i=[],o=1,Pg.find(function(f){return r.endsWith(".".concat(f))})&&(o=2),s=n.length-o-1;s>=0;--s)i.push(n.slice(s).join("."));s=0,l.label=2;case 2:if(!(s<i.length))return[3,7];a=i[s],l.label=3;case 3:return l.trys.push([3,5,,6]),[4,bs.isDomainWritable(a)];case 4:return u=l.sent(),u?[2,"."+a]:[3,6];case 5:return c=l.sent(),t&&t.recordEvent("cookies.tld.failure",{reason:"Unexpected exception checking domain is writable: ".concat(a),error:c instanceof Error?c.message:String(c)}),[3,6];case 6:return s++,[3,2];case 7:return t&&t.recordEvent("cookies.tld.failure",{reason:"Could not determine TLD for host ".concat(r)}),[2,""]}})})},LC=function(e){var t={};for(var r in e){var n=e[r];n&&(t[r]=n)}return t},MC="[Amplitude] Page Viewed",xa="AMP_PAGE_VIEW",hd=function(e){e===void 0&&(e={});var t,r=le(),n=void 0,i=!1,o,s,a=e.trackOn,u=e.trackHistoryChanges,c=e.eventType,l=c===void 0?MC:c,f=function(m){var g=m;try{g=decodeURI(m)}catch(y){n?.error("Malformed URI sequence: ",y)}return g},d=function(m){return x(void 0,void 0,void 0,function(){var g,y,_;return O(this,function(S){switch(S.label){case 0:return g=f(typeof location<"u"&&location.href||""),_={event_type:l},y=[{}],[4,DC()];case 1:return[2,(_.event_properties=D.apply(void 0,[D.apply(void 0,y.concat([S.sent()])),{"[Amplitude] Page Domain":typeof location<"u"&&location.hostname||"","[Amplitude] Page Location":g,"[Amplitude] Page Path":typeof location<"u"&&f(location.pathname)||"","[Amplitude] Page Title":Bl(Hl),"[Amplitude] Page URL":g.split("?")[0],"[Amplitude] Page View ID":m}]),_)]}})})},h=function(){return typeof a>"u"||typeof a=="function"&&a()},v=typeof location<"u"?location.href:null,p=function(){return x(void 0,void 0,void 0,function(){var m,g,y,_,S;return O(this,function(A){switch(A.label){case 0:return m=location.href,g=FC(u,m,v||"")&&h(),v=m,g?(y=void 0,s&&(y=Zt(),s.set(xa,{pageViewId:y})),n?.log("Tracking page view event"),t!=null?[3,1]:[3,3]):[3,4];case 1:return S=(_=t).track,[4,d(y)];case 2:S.apply(_,[A.sent()]),A.label=3;case 3:A.label=4;case 4:return[2]}})})},b=function(){p()},E={name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(m,g){return x(void 0,void 0,void 0,function(){var y,_,S;return O(this,function(A){switch(A.label){case 0:if(t=g,o=m,n=m.loggerProvider,n.log("Installing @amplitude/plugin-page-view-tracking-browser"),i=!0,r){try{s=new qs(r.sessionStorage)}catch{n?.debug("sessionStorage is not available in this environment.")}r.addEventListener("popstate",b),r.history.pushState=new Proxy(r.history.pushState,{apply:function(C,I,P){var R=oe(P,3),k=R[0],N=R[1],$=R[2];C.apply(I,[k,N,$]),i&&b()}})}return h()?(n.log("Tracking page view event"),y=void 0,s&&(y=Zt(),s.set(xa,{pageViewId:y})),S=(_=t).track,[4,d(y)]):[3,2];case 1:S.apply(_,[A.sent()]),A.label=2;case 2:return[2]}})})},execute:function(m){return x(void 0,void 0,void 0,function(){var g,y,_;return O(this,function(S){switch(S.label){case 0:return a==="attribution"&&UC(m)?(n?.log("Enriching campaign event to page view event with campaign parameters"),g=void 0,s?[4,s.get(xa)]:[3,2]):[3,4];case 1:y=S.sent(),g=y?.pageViewId,S.label=2;case 2:return[4,d(g)];case 3:_=S.sent(),m.event_type=_.event_type,m.event_properties=D(D({},m.event_properties),_.event_properties),S.label=4;case 4:return o&&m.event_type===l&&(o.pageCounter=o.pageCounter?o.pageCounter+1:1,m.event_properties=D(D({},m.event_properties),{"[Amplitude] Page Counter":o.pageCounter})),[2,m]}})})},teardown:function(){return x(void 0,void 0,void 0,function(){return O(this,function(m){return r&&(r.removeEventListener("popstate",b),i=!1),[2]})})}};return E},DC=function(){return x(void 0,void 0,void 0,function(){var e;return O(this,function(t){switch(t.label){case 0:return e=LC,[4,new dg().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},UC=function(e){if(e.event_type==="$identify"&&e.user_properties){var t=e.user_properties,r=t[vr.SET]||{},n=t[vr.UNSET]||{},i=Ee(Ee([],oe(Object.keys(r)),!1),oe(Object.keys(n)),!1);return Object.keys(js).every(function(o){return i.includes(o)})}return!1},FC=function(e,t,r){switch(e){case"pathOnly":{if(r=="")return!0;var n=new URL(t),i=new URL(r),o=n.origin+n.pathname,s=i.origin+i.pathname;return o!==s}default:return t!==r}},HC=function(){var e,t=[],r=function(l,f,d){l.addEventListener(f,d),t.push({element:l,type:f,handler:d})},n=function(){t.forEach(function(l){var f=l.element,d=l.type,h=l.handler;f?.removeEventListener(d,h)}),t=[]},i,o="@amplitude/plugin-form-interaction-tracking-browser",s="enrichment",a=function(l,f){return x(void 0,void 0,void 0,function(){var d,h;return O(this,function(v){return i=rC(l),d=function(){if(!f){l.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return}if(!(typeof document>"u")){var p=new WeakSet,b=function(m){if(!p.has(m)){p.add(m);var g=!1;r(m,"change",function(){var y,_=vd(m);g||f.track(ud,(y={},y[Pa]=yn(m.id),y[Ra]=yn(m.name),y[Oa]=_,y)),g=!0}),r(m,"submit",function(y){var _,S,A=vd(m);if(g||f.track(ud,(_={},_[Pa]=yn(m.id),_[Ra]=yn(m.name),_[Oa]=A,_)),g=!0,i?.shouldTrackSubmit!==void 0)if(typeof i.shouldTrackSubmit=="function"&&typeof SubmitEvent<"u"&&y instanceof SubmitEvent)try{var C=i.shouldTrackSubmit(y);if(!C)return}catch{l.loggerProvider.warn("shouldTrackSubmit callback threw an error, proceeding with tracking.")}else l.loggerProvider.warn("shouldTrackSubmit is ignored because it is not a function or event is not a SubmitEvent.");f.track(dC,(S={},S[Pa]=yn(m.id),S[Ra]=yn(m.name),S[Oa]=A,S)),g=!1})}},E=Array.from(document.getElementsByTagName("form"));E.forEach(b),typeof MutationObserver<"u"&&(e=new MutationObserver(function(m){m.forEach(function(g){g.addedNodes.forEach(function(y){y.nodeName==="FORM"&&b(y),"querySelectorAll"in y&&typeof y.querySelectorAll=="function"&&Array.from(y.querySelectorAll("form")).map(b)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}},document.readyState==="complete"?d():(h=le(),h?h.addEventListener("load",d):l.loggerProvider.debug("Form interaction tracking is not installed because global is undefined.")),[2]})})},u=function(l){return x(void 0,void 0,void 0,function(){return O(this,function(f){return[2,l]})})},c=function(){return x(void 0,void 0,void 0,function(){return O(this,function(l){return e?.disconnect(),n(),[2]})})};return{name:o,type:s,setup:a,execute:u,teardown:c}},yn=function(e){if(typeof e=="string")return e},vd=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(t??""),window.location.href).href}catch{}return t},BC=function(){var e,t=[],r=function(c,l,f){c.addEventListener(l,f),t.push({element:c,type:l,handler:f})},n=function(){t.forEach(function(c){var l=c.element,f=c.type,d=c.handler;l?.removeEventListener(f,d)}),t=[]},i="@amplitude/plugin-file-download-tracking-browser",o="enrichment",s=function(c,l){return x(void 0,void 0,void 0,function(){var f,d;return O(this,function(h){return f=function(){if(!l){c.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return}if(!(typeof document>"u")){var v=function(E){var m;try{m=new URL(E.href,window.location.href)}catch{return}var g=p.exec(m.href),y=g?.[1];y&&r(E,"click",function(){var _;y&&l.track(hC,(_={},_[vC]=y,_[pC]=m.pathname,_[gC]=E.id,_[mC]=E.text,_[yC]=E.href,_))})},p=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/,b=Array.from(document.getElementsByTagName("a"));b.forEach(v),typeof MutationObserver<"u"&&(e=new MutationObserver(function(E){E.forEach(function(m){m.addedNodes.forEach(function(g){g.nodeName==="A"&&v(g),"querySelectorAll"in g&&typeof g.querySelectorAll=="function"&&Array.from(g.querySelectorAll("a")).map(v)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}},document.readyState==="complete"?f():(d=le(),d?d.addEventListener("load",f):c.loggerProvider.debug("File download tracking is not installed because global is undefined.")),[2]})})},a=function(c){return x(void 0,void 0,void 0,function(){return O(this,function(l){return[2,c]})})},u=function(){return x(void 0,void 0,void 0,function(){return O(this,function(c){return e?.disconnect(),n(),[2]})})};return{name:i,type:o,setup:s,execute:a,teardown:u}},pd=!1,jC=function(e){if(!(pd||e.defaultTracking!==void 0)){var t=`\`options.defaultTracking\` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to \`options.defaultTracking\`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:

amplitude.init(<YOUR_API_KEY>, {
  defaultTracking: true,
});

Visit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details.`;e.loggerProvider.warn(t),pd=!0}},qC=function(){var e="@amplitude/plugin-network-checker-browser",t="before",r=le(),n=[],i=function(u,c){r?.addEventListener&&(r?.addEventListener(u,c),n.push({type:u,handler:c}))},o=function(){n.forEach(function(u){var c=u.type,l=u.handler;r?.removeEventListener(c,l)}),n=[]},s=function(u,c){return x(void 0,void 0,void 0,function(){return O(this,function(l){return typeof navigator>"u"?(u.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),u.offline=!1,[2]):(u.offline=!navigator.onLine,i("online",function(){u.loggerProvider.debug("Network connectivity changed to online."),u.offline=!1,setTimeout(function(){c.flush()},u.flushIntervalMillis)}),i("offline",function(){u.loggerProvider.debug("Network connectivity changed to offline."),u.offline=!0}),[2])})})},a=function(){return x(void 0,void 0,void 0,function(){return O(this,function(u){return o(),[2]})})};return{name:e,type:t,setup:s,teardown:a}};function xg(e){var t,r,n,i,o,s,a,u,c,l,f,d;if(!(typeof e!="object"||e===null)&&!Array.isArray(e)){var h=Object.keys(e);try{for(var v=ce(h),p=v.next();!p.done;p=v.next()){var b=p.value;try{var E=e[b];typeof E?.enabled=="boolean"&&(E.enabled?(delete E.enabled,Object.keys(E).length===0&&(e[b]=!0)):e[b]=!1),xg(E)}catch{}}}catch($){t={error:$}}finally{try{p&&!p.done&&(r=v.return)&&r.call(v)}finally{if(t)throw t.error}}try{if(!((c=(u=(a=e.autocapture)===null||a===void 0?void 0:a.networkTracking)===null||u===void 0?void 0:u.captureRules)===null||c===void 0)&&c.length)try{for(var m=ce(e.autocapture.networkTracking.captureRules),g=m.next();!g.done;g=m.next()){var y=g.value;try{for(var _=(o=void 0,ce(["responseHeaders","requestHeaders"])),S=_.next();!S.done;S=_.next()){var A=S.value,C=(l=y[A])!==null&&l!==void 0?l:{},I=C.captureSafeHeaders,P=C.allowlist;if(!(!I&&!P)){if(P!==void 0&&!Array.isArray(P)){delete y[A];continue}y[A]=Ee(Ee([],oe(I?ms:[]),!1),oe(P??[]),!1)}}}catch($){o={error:$}}finally{try{S&&!S.done&&(s=_.return)&&s.call(_)}finally{if(o)throw o.error}}}}catch($){n={error:$}}finally{try{g&&!g.done&&(i=m.return)&&i.call(m)}finally{if(n)throw n.error}}}catch{}var R=(f=e.autocapture)===null||f===void 0?void 0:f.frustrationInteractions;R&&(R.rageClick&&(R.rageClicks=R.rageClick,delete R.rageClick),R.deadClick&&(R.deadClicks=R.deadClick,delete R.deadClick));try{var k=(d=e.autocapture)===null||d===void 0?void 0:d.elementInteractions;if(k&&typeof k=="object"&&(k.viewportContentUpdated===!0&&(k.viewportContentUpdated={}),k.viewportContentUpdated===!1&&(k.viewportContentUpdated={enabled:!1}),k.exposureDuration!==void 0)){var N=k.viewportContentUpdated;N===void 0?k.viewportContentUpdated={exposureDuration:k.exposureDuration}:typeof N=="object"&&N.exposureDuration===void 0&&N.enabled!==!1&&(N.exposureDuration=k.exposureDuration),delete k.exposureDuration}}catch{}}}function gd(e,t,r){var n,i,o=[];try{for(var s=ce(t??[]),a=s.next();!a.done;a=s.next()){var u=a.value;try{o.push(new RegExp(u))}catch(c){r.loggerProvider.warn("Invalid regex pattern: ".concat(u),c)}}}catch(c){n={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return e.concat(o)}function VC(e,t){var r,n,i,o,s,a,u;if(e){xg(e);try{t.loggerProvider.debug("Update browser config with remote configuration:",JSON.stringify(e));var c=e;if(c&&"autocapture"in c){if(typeof c.autocapture=="boolean"&&(t.autocapture=c.autocapture),typeof c.autocapture=="object"&&c.autocapture!==null){var l=D({},c.autocapture);if(t.autocapture===void 0&&(t.autocapture=c.autocapture),typeof c.autocapture.elementInteractions=="object"&&c.autocapture.elementInteractions!==null&&(!((i=c.autocapture.elementInteractions.pageUrlAllowlistRegex)===null||i===void 0)&&i.length)){l.elementInteractions=D({},c.autocapture.elementInteractions);var f=l.elementInteractions,d=(o=f.pageUrlAllowlist)!==null&&o!==void 0?o:[],h=c.autocapture.elementInteractions.pageUrlAllowlistRegex;f.pageUrlAllowlist=gd(d,h,t),delete f.pageUrlAllowlistRegex}if(typeof c.autocapture.networkTracking=="object"&&c.autocapture.networkTracking!==null&&(!((s=c.autocapture.networkTracking.captureRules)===null||s===void 0)&&s.length)){l.networkTracking=D({},c.autocapture.networkTracking);var v=l.networkTracking,p=(a=v.captureRules)!==null&&a!==void 0?a:[];try{for(var b=ce(p),E=b.next();!E.done;E=b.next()){var m=E.value;m.urls=gd((u=m.urls)!==null&&u!==void 0?u:[],m.urlsRegex,t),delete m.urlsRegex}}catch(g){r={error:g}}finally{try{E&&!E.done&&(n=b.return)&&n.call(b)}finally{if(r)throw r.error}}}typeof t.autocapture=="boolean"&&(t.autocapture=D({attribution:t.autocapture,fileDownloads:t.autocapture,formInteractions:t.autocapture,pageViews:t.autocapture,sessions:t.autocapture,elementInteractions:t.autocapture,webVitals:t.autocapture,frustrationInteractions:t.autocapture},l)),typeof t.autocapture=="object"&&(t.autocapture=D(D({},t.autocapture),l))}t.defaultTracking=t.autocapture}"customEnrichment"in c&&c.customEnrichment!==null&&(t.customEnrichment=c.customEnrichment),t.loggerProvider.debug("Browser config after remote config update:",JSON.stringify(t))}catch(g){t.loggerProvider.error("Failed to apply remote configuration because of error: ",g)}}}var Ng="1.25.1",$C="@amplitude/plugin-autocapture-browser",WC="@amplitude/plugin-frustration-browser",Lg="[Amplitude] Element Clicked",GC="[Amplitude] Dead Click",KC="[Amplitude] Rage Click",zC="[Amplitude] Error Click",XC="[Amplitude] Element Changed",YC="[Amplitude] Thrashed Cursor",JC="[Amplitude] Element ID",QC="[Amplitude] Element Class",md="[Amplitude] Element Tag",yd="[Amplitude] Element Text",ZC="[Amplitude] Element Hierarchy",eI="[Amplitude] Element Href",tI="[Amplitude] Element Position Left",rI="[Amplitude] Element Position Top",nI="[Amplitude] Element Aria Label",iI="[Amplitude] Element Attributes",oI="[Amplitude] Element Path",sI="[Amplitude] Element Parent Label",Lu="[Amplitude] Page URL",aI="[Amplitude] Page Title",Mg="[Amplitude] Viewport Height",Dg="[Amplitude] Viewport Width",uI="[Amplitude] Max Page X",lI="[Amplitude] Max Page Y",Ug="[Amplitude] Page View ID",cI="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",fI="amp-visual-tagging-selector-highlight",Fg="data-amp-mask-attributes",dI=25,Hg=128,hI="AMP_PAGE_VIEW",vI=18e3,pI=["input","select","textarea"],Bg=function(e,t){var r,n=(r=window?.getComputedStyle)===null||r===void 0?void 0:r.call(window,e);return n?.getPropertyValue("cursor")==="pointer"&&t==="click"},jg=function(e){var t=e.pageUrlAllowlist,r=e.pageUrlExcludelist;return!(r&&r.length>0&&Pu(window.location.href,r)||!Pu(window.location.href,t))},Bn=function(e,t,r){return r===void 0&&(r=!1),function(n,i){var o,s,a=e.shouldTrackEventResolver,u=(s=(o=i?.tagName)===null||o===void 0?void 0:o.toLowerCase)===null||s===void 0?void 0:s.call(o);if(!u)return!1;if(a)return a(n,i);if(!jg(e))return!1;var c=String(i?.getAttribute("type"))||"";if(typeof c=="string")switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}var l=Bg(i,n);if(r&&l)return!0;if(t){var f=t.some(function(d){var h;return!!(!((h=i?.matches)===null||h===void 0)&&h.call(i,d))});if(!f)return!1}switch(u){case"input":case"select":case"textarea":return n==="change"||n==="click";default:return l?!0:n==="click"}}},gI=function(e){var t,r,n,i=(r=(t=e?.tagName)===null||t===void 0?void 0:t.toLowerCase)===null||r===void 0?void 0:r.call(t),o=e instanceof HTMLElement?((n=e.getAttribute("contenteditable"))===null||n===void 0?void 0:n.toLowerCase())==="true":!1;return!pI.includes(i)&&!o},mI=function(e){return e?e.split(",").map(function(t){return t.trim()}).filter(function(t){return t.length>0&&t!=="id"&&t!=="class"}):[]},yI=function(e,t){return Object.entries(e).reduce(function(r,n){var i=oe(n,2),o=i[0],s=i[1];if(o.startsWith(t)){var a=o.replace(t,"");a&&(r[a]=s||"")}return r},{})},bI=function(e){return e==null||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0},bd=function(e){return Object.keys(e).reduce(function(t,r){var n=e[r];return bI(n)||(t[r]=n),t},{})},qg=function(){var e;try{var t=le(),r=(e=t?.sessionStorage)===null||e===void 0?void 0:e.getItem(hI);if(!r)return;var n=JSON.parse(r);if(typeof n.pageViewId=="string")return n.pageViewId}catch{}},Vl=function(e,t){return e?t.some(function(r){var n;return(n=e?.matches)===null||n===void 0?void 0:n.call(e,r)})?e:Vl(e?.parentElement,t):null},io=function(e){return!(e.event.target===null||!e.closestTrackedAncestor)};function EI(e){return e.type==="click"||e.type==="change"}var Ss;(function(e){e[e.LEFT_OR_TOUCH_CONTACT=0]="LEFT_OR_TOUCH_CONTACT",e[e.MIDDLE=1]="MIDDLE",e[e.RIGHT=2]="RIGHT"})(Ss||(Ss={}));var Ed="__AMPLITUDE_VISUAL_TAGGING__";function _I(e,t){var r=e;if(r[Ed]!==!0){r[Ed]=!0;var n=t.dataExtractor,i=t.isElementSelectable,o=t.cssSelectorAllowlist,s=t.actionClickAllowlist,a=null,u=function(l){e.notify({action:"element-selected",data:l})},c=function(l,f){l==="selector-mode-changed"?e.notify({action:"track-selector-mode-changed",data:f}):l==="selector-moved"&&e.notify({action:"track-selector-moved",data:f})};e.registerActionHandler("initialize-visual-tagging-selector",function(l){e.loadScriptOnce(cI).then(function(){var f;a=(f=window?.amplitudeVisualTaggingSelector)===null||f===void 0?void 0:f.call(window,{getEventTagProps:n.getEventTagProps,isElementSelectable:function(d){return i?i(l?.actionType||"click",d):!0},onTrack:c,onSelect:u,visualHighlightClass:fI,messenger:e,cssSelectorAllowlist:o,actionClickAllowlist:s,extractDataFromDataSource:n.extractDataFromDataSource,dataExtractor:n,diagnostics:{autocapture:{version:Ng}}}),e.notify({action:"selector-loaded"})}).catch(function(){var f;(f=e.logger)===null||f===void 0||f.warn("Failed to initialize visual tagging selector")})}),e.registerActionHandler("close-visual-tagging-selector",function(){var l;(l=a?.close)===null||l===void 0||l.call(a)})}}function SI(e){var t=e.amplitude,r=e.allObservables,n=e.shouldTrackEvent,i=e.evaluateTriggers,o=r.clickObservable,s=o.filter(io).filter(function(u){return n("click",u.closestTrackedAncestor)}).map(function(u){return i(u)}),a=s;return a.subscribe(function(u){t?.track(Lg,u.targetElementProperties)})}function wI(e){var t=e.amplitude,r=e.allObservables,n=e.getEventProperties,i=e.shouldTrackEvent,o=e.evaluateTriggers,s=r.changeObservable,a=s.filter(io).filter(function(u){return i("change",u.closestTrackedAncestor)}).map(function(u){return o(u)});return a.subscribe(function(u){t?.track(XC,n("change",u.closestTrackedAncestor))})}function TI(e){var t=e.amplitude,r=e.allObservables,n=e.options,i=e.getEventProperties,o=e.shouldTrackEvent,s=e.shouldTrackActionClick,a=r.clickObservable,u=r.mutationObservable,c=r.navigateObservable,l=a.filter(function(b){return!o("click",b.closestTrackedAncestor)}).map(function(b){var E=Vl(b.event.target,n.actionClickAllowlist);return b.closestTrackedAncestor=E,b.closestTrackedAncestor!==null&&(b.targetElementProperties=i(b.type,b.closestTrackedAncestor)),b}).filter(io).filter(function(b){return s("click",b.closestTrackedAncestor)}),f=c?cn(u,c):u,d=cn(l,f),h=null,v=null,p=jl(d,function(b){if(h&&(clearTimeout(h),h=null),b.type==="click")return v=b,h=setTimeout(function(){h=null,v=null},500),Promise.resolve(null);if(v){var E=v;return v=null,Promise.resolve(E)}return Promise.resolve(null)});return p.subscribe(function(b){b&&t?.track(Lg,i("click",b.closestTrackedAncestor))})}function AI(e){var t=e.allObservables,r=t.scrollObservable,n={maxX:0,maxY:0},i=r.subscribe(function(){var o,s,a,u,c=le(),l=Math.floor((s=(o=c?.scrollX)!==null&&o!==void 0?o:c?.pageXOffset)!==null&&s!==void 0?s:0),f=Math.floor((u=(a=c?.scrollY)!==null&&a!==void 0?a:c?.pageYOffset)!==null&&u!==void 0?u:0);n.maxX=Math.max(n.maxX,l),n.maxY=Math.max(n.maxY,f)});return{unsubscribe:function(){i.unsubscribe()},getState:function(){return n},reset:function(){n.maxX=0,n.maxY=0}}}var Qn=le(),Vg=function(){return new tt(function(e){var t=new MutationObserver(function(r){e.next(r)});return document.body&&t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}})},$g=function(e){return e===void 0&&(e="click"),new tt(function(t){var r,n=function(i){t.next(i)};return(r=le())===null||r===void 0||r.document.addEventListener(e,n,{capture:!0}),function(){var i;(i=le())===null||i===void 0||i.document.removeEventListener(e,n,{capture:!0})}})},CI=function(){return new tt(function(e){var t,r=function(n){e.next(n)};return(t=le())===null||t===void 0||t.addEventListener("scroll",r),function(){var n;(n=le())===null||n===void 0||n.removeEventListener("scroll",r)}})},II=function(){return new tt(function(e){var t=function(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=void 0;Array.isArray(n[0])&&typeof n[0][0]=="string"&&(o=n[0][0]),e.next({kind:"console",message:o})};return Yf.addListener("error",t),function(){Yf.removeListener(t)}})},kI=function(e,t){return new tt(function(r){var n,i=le();if(!i?.IntersectionObserver)return function(){};var o=new IntersectionObserver(function(c){c.forEach(function(l){r.next(l)})},{root:null,rootMargin:"0px",threshold:1}),s=t.join(","),a=(n=i?.document.querySelectorAll(s))!==null&&n!==void 0?n:[];a.forEach(function(c){o.observe(c)});var u=e.subscribe(function(c){var l=c.event;return l.forEach(function(f){var d=f.addedNodes;return d.forEach(function(h){h instanceof Element&&(h.matches(s)&&o.observe(h),h.querySelectorAll(s).forEach(function(v){o.observe(v)}))})})});return function(){u.unsubscribe(),o.disconnect()}})},PI=function(){return new tt(function(e){var t=function(r){if(r instanceof ErrorEvent){var n={kind:"error"};r.error instanceof Error||r.error instanceof DOMException?n=D(D({},n),{message:r.error.message,stack:r.error.stack,filename:r.filename,lineNumber:r.lineno,columnNumber:r.colno}):typeof r.error=="string"&&(n.message=r.error),e.next(n)}};return Qn.addEventListener("error",t),function(){Qn.removeEventListener("error",t)}})},RI=function(){return new tt(function(e){var t=function(r){var n={kind:"unhandledrejection"};r.reason instanceof Error||r.reason instanceof DOMException?(n.message=r.reason.message,n.stack=r.reason.stack):typeof r.reason=="string"&&(n.message=r.reason),e.next(n)};return Qn.addEventListener("unhandledrejection",t),function(){Qn.removeEventListener("unhandledrejection",t)}})},OI=function(){var e=cn(PI(),RI());return cn(e,II())},xI=function(){return new tt(function(e){var t=function(n){e.next(n)},r={capture:!0};return Qn.document.addEventListener("mousemove",t,r),function(){Qn.document.removeEventListener("mousemove",t,r)}})},NI=function(e,t){try{if(t.subprop_key==="[Amplitude] Element Text")return t.subprop_op==="is"&&t.subprop_value.includes(e.targetElementProperties["[Amplitude] Element Text"]);if(t.subprop_key==="[Amplitude] Element Hierarchy")return t.subprop_op==="autotrack css match"&&!!e.closestTrackedAncestor.closest(t.subprop_value.toString())}catch(r){return console.error("Error matching event to filter",r),!1}return!1},LI=function(e,t){try{if(e.sourceType==="DOM_ELEMENT"){var r=document.documentElement;return e.scope&&t&&(r=t.closest(e.scope)),r&&e.selector?r.querySelector(e.selector):r}}catch{return}},MI=function(e,t,r){e.forEach(function(n){if(typeof n!="string"&&n.actionType==="ATTACH_EVENT_PROPERTY"){var i=r.extractDataFromDataSource(n.dataSource,t.closestTrackedAncestor);t.targetElementProperties[n.destinationKey]=i}})},Mu={"[Amplitude] Element Clicked":"click","[Amplitude] Element Changed":"change"},_d=function(e){var t,r,n,i,o=Object.values(Mu).reduce(function(h,v){return h[v]=new Set,h},{});if(!e)return o;try{for(var s=ce(e),a=s.next();!a.done;a=s.next()){var u=a.value;try{try{for(var c=(n=void 0,ce(u.definition)),l=c.next();!l.done;l=c.next()){var f=l.value,d=Mu[f.event_type];d&&o[d].add(u.id)}}catch(h){n={error:h}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}catch(h){console.warn("Skipping Labeled Event due to malformed definition",u?.id,h)}}}catch(h){t={error:h}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return o},Sd=function(e){var t,r,n,i,o=new Map;try{for(var s=ce(e),a=s.next();!a.done;a=s.next()){var u=a.value;try{for(var c=(n=void 0,ce(u.conditions)),l=c.next();!l.done;l=c.next()){var f=l.value;if(f.type==="LABELED_EVENT"){var d=f.match.eventId,h=o.get(d);h||(h=[],o.set(d,h)),h.push(u)}}}catch(v){n={error:v}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}}catch(v){t={error:v}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return o},DI=function(e,t){return t.filter(function(r){return r.definition.some(function(n){return Mu[n.event_type]===e.type&&n.filters.every(function(i){return NI(e,i)})})})},UI=function(e,t){var r,n,i,o,s=new Set;try{for(var a=ce(e),u=a.next();!u.done;u=a.next()){var c=u.value,l=t.get(c.id);if(l)try{for(var f=(i=void 0,ce(l)),d=f.next();!d.done;d=f.next()){var h=d.value;s.add(h)}}catch(v){i={error:v}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}}}catch(v){r={error:v}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return Array.from(s)},FI=(function(){function e(t,r,n,i){this.groupedLabeledEvents=t,this.labeledEventToTriggerMap=r,this.dataExtractor=n,this.options=i}return e.prototype.evaluate=function(t){var r,n,i=this.options.pageActions;if(!i)return t;var o=DI(t,Array.from(this.groupedLabeledEvents[t.type]).map(function(l){return i.labeledEvents[l]})),s=UI(o,this.labeledEventToTriggerMap);try{for(var a=ce(s),u=a.next();!u.done;u=a.next()){var c=u.value;MI(c.actions,t,this.dataExtractor)}}catch(l){r={error:l}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return t},e.prototype.update=function(t,r,n){this.groupedLabeledEvents=t,this.labeledEventToTriggerMap=r,this.options=n},e})(),HI=function(e,t,r,n){return new FI(e,t,r,n)},BI=new Set(["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot",Fg,In]),jI=["type"],qI=["svg","path","g"],VI=["password","hidden"];function $I(e,t){var r,n,i,o,s,a;if(e===null)return null;var u=String(e.tagName).toLowerCase(),c={tag:u},l=Array.from((o=(i=e.parentElement)===null||i===void 0?void 0:i.children)!==null&&o!==void 0?o:[]);l.length&&(c.index=l.indexOf(e),c.indexOfType=l.filter(function(_){return _.tagName===e.tagName}).indexOf(e));var f=(a=(s=e.previousElementSibling)===null||s===void 0?void 0:s.tagName)===null||a===void 0?void 0:a.toLowerCase();f&&(c.prevSib=String(f));var d=e.getAttribute("id");d&&(c.id=String(d));var h=Array.from(e.classList);h.length&&(c.classes=h);var v={},p=Array.from(e.attributes),b=p.filter(function(_){return!BI.has(_.name)}),E=!gI(e);if(!VI.includes(String(e.getAttribute("type")))&&!qI.includes(u))try{for(var m=ce(b),g=m.next();!g.done;g=m.next()){var y=g.value;if(!(E&&!jI.includes(y.name))){if(t.has(y.name)){v[y.name]=Mr;continue}v[y.name]=String(y.value).substring(0,Hg)}}}catch(_){r={error:_}}finally{try{g&&!g.done&&(n=m.return)&&n.call(m)}finally{if(r)throw r.error}}return Object.keys(v).length&&(c.attrs=v),c}function WI(e){var t=[];if(!e)return t;t.push(e);for(var r=e.parentElement;r&&r.tagName!=="HTML";)t.push(r),r=r.parentElement;return t}var di=(function(){function e(t,r){this.value=t,this.optimized=r}return e.prototype.toString=function(){return this.value},e})(),GI=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return"";for(var r=[],n=e;n;){var i=KI(n,!!t,n===e);if(!i||(r.push(i),i.optimized))break;n=n.parentElement}return r.reverse(),r.join(" > ")},KI=function(e,t,r){var n,i;if(e.nodeType!==Node.ELEMENT_NODE)return null;var o=e.getAttribute("id");if(t){if(o)return new di(l(o),!0);var s=e.tagName.toLowerCase();if(s==="body"||s==="head"||s==="html")return new di(s,!0)}var a=e.tagName.toLowerCase();if(o)return new di(a+l(o),!0);var u=e.parentNode;if(!u||u.nodeType===Node.DOCUMENT_NODE)return new di(a,!0);function c(R){var k=R.getAttribute("class");return k?k.split(/\s+/g).filter(Boolean).map(function(N){return"$"+N}):[]}function l(R){return"#"+CSS.escape(R)}for(var f=c(e),d=!1,h=!1,v=-1,p=-1,b=u.children,E=0;b&&(v===-1||!h)&&E<b.length;++E){var m=b[E];if(m.nodeType===Node.ELEMENT_NODE){if(p+=1,m===e){v=p;continue}if(!h&&m.tagName.toLowerCase()===a){d=!0;var g=new Set(f);if(!g.size){h=!0;continue}for(var y=c(m),_=0;_<y.length;++_){var S=y[_];if(g.has(S)&&(g.delete(S),!g.size)){h=!0;break}}}}}var A=a;if(r&&a.toLowerCase()==="input"&&e.getAttribute("type")&&!e.getAttribute("id")&&!e.getAttribute("class")&&(A+="[type="+CSS.escape(e.getAttribute("type")||"")+"]"),h)A+=":nth-child("+String(v+1)+")";else if(d)try{for(var C=ce(f),I=C.next();!I.done;I=C.next()){var P=I.value;A+="."+CSS.escape(P.slice(1))}}catch(R){n={error:R}}finally{try{I&&!I.done&&(i=C.return)&&i.call(C)}finally{if(n)throw n.error}}return new di(A,!1)},Wg=(function(){function e(t,r){var n,i,o=this,s;this.replaceSensitiveString=function(d){return Hl(d,o.additionalMaskTextPatterns)},this.getHierarchy=function(d){var h,v,p,b,E=performance.now(),m=[];if(!d)return[];for(var g=WI(d),y=new Map,_=g.length-1;_>=0;_--){var S=g[_];if(S){var A=mI(S.getAttribute(Fg)),C=_===g.length-1?[]:(p=y.get(g[_+1]))!==null&&p!==void 0?p:new Set,I=new Set(Ee(Ee([],oe(C),!1),oe(A),!1));y.set(S,I)}}m=g.map(function(ee){var B;return $I(ee,(B=y.get(ee))!==null&&B!==void 0?B:new Set)});var P=function(ee){ee?.attrs&&Object.entries(ee.attrs).forEach(function(B){var z=oe(B,2),K=z[0],Q=z[1];ee.attrs&&(ee.attrs[K]=o.replaceSensitiveString(Q))})};try{for(var R=ce(m),k=R.next();!k.done;k=R.next()){var N=k.value;P(N)}}catch(ee){h={error:ee}}finally{try{k&&!k.done&&(v=R.return)&&v.call(R)}finally{if(h)throw h.error}}var $=performance.now();return(b=o.diagnosticsClient)===null||b===void 0||b.recordHistogram("autocapturePlugin.getHierarchy",$-E),m},this.getNearestLabel=function(d){var h=d.parentElement;if(!h)return"";var v;try{v=h.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch{v=null}return v?o.getText(v):o.getNearestLabel(h)},this.getElementPath=function(d){var h;if(!d)return"";var v=performance.now(),p=GI(d),b=performance.now();return(h=o.diagnosticsClient)===null||h===void 0||h.recordHistogram("autocapturePlugin.getElementPath",b-v),p},this.getEventProperties=function(d,h,v){var p,b,E,m,g=(E=(b=h?.tagName)===null||b===void 0?void 0:b.toLowerCase)===null||E===void 0?void 0:E.call(b),y=typeof h.getBoundingClientRect=="function"?h.getBoundingClientRect():{left:null,top:null},_=o.getHierarchy(h),S=(m=_[0])===null||m===void 0?void 0:m.attrs,A=o.getNearestLabel(h),C=yI(S??{},v),I=(p={},p[ZC]=_,p[md]=g,p[yd]=o.getText(h),p[tI]=y.left==null?null:Math.round(y.left),p[rI]=y.top==null?null:Math.round(y.top),p[iI]=C,p[oI]=o.getElementPath(h),p[sI]=A,p[Lu]=Lr(window.location.href.split("?")[0]),p[aI]=Bl(o.replaceSensitiveString),p[Mg]=window.innerHeight,p[Dg]=window.innerWidth,p),P=qg();if(P&&(I[Ug]=P),I[JC]=h.getAttribute("id")||"",I[QC]=h.getAttribute("class"),I[nI]=S?.["aria-label"],g==="a"&&d==="click"&&h instanceof HTMLAnchorElement){var R=h.href.substring(0,Hg);I[eI]=o.replaceSensitiveString(R)}return bd(I)},this.addTypeAndTimestamp=function(d,h){return{event:d,timestamp:Date.now(),type:h}},this.addAdditionalEventProperties=function(d,h,v,p,b){b===void 0&&(b=!1);var E=o.addTypeAndTimestamp(d,h);if(EI(E)&&E.event.target!==null){if(b){var m=Bg(E.event.target,E.type);if(m)return E.closestTrackedAncestor=E.event.target,E.targetElementProperties=o.getEventProperties(E.type,E.closestTrackedAncestor,p),E}var g=Vl(E.event.target,v);return g&&(E.closestTrackedAncestor=g,E.targetElementProperties=o.getEventProperties(E.type,g,p)),E}return E},this.extractDataFromDataSource=function(d,h){if(d.sourceType==="DOM_ELEMENT"){var v=LI(d,h);return v?d.elementExtractType==="TEXT"?o.getText(v):d.elementExtractType==="ATTRIBUTE"&&d.attribute?v.getAttribute(d.attribute):void 0:void 0}},this.getTextWithMaskedDescendants=function(d){var h,v,p="[".concat(In,"], [contenteditable]");if(!d.querySelector(p))return d.innerText;var b="",E=Array.from(d.childNodes);try{for(var m=ce(E),g=m.next();!g.done;g=m.next()){var y=g.value;if(y.nodeType===Node.TEXT_NODE){b+=y.textContent||"";continue}if(y instanceof Element){if(y.hasAttribute(In)||y.hasAttribute("contenteditable")){b+=Mr;continue}b+=o.getTextWithMaskedDescendants(y)}}}catch(_){h={error:_}}finally{try{g&&!g.done&&(v=m.return)&&v.call(m)}finally{if(h)throw h.error}}return b},this.getText=function(d){var h=d.closest("[".concat(In,"]"))!==null;if(h)return Mr;var v="";return d.querySelector("[".concat(In,"], [contenteditable]"))?v=o.getTextWithMaskedDescendants(d):v=d.innerText||"",o.replaceSensitiveString(v.substring(0,255)).replace(/\s+/g," ").trim()},this.getEventTagProps=function(d){var h,v,p;if(!d)return{};var b=(p=(v=d?.tagName)===null||v===void 0?void 0:v.toLowerCase)===null||p===void 0?void 0:p.call(v),E=(h={},h[md]=b,h[yd]=o.getText(d),h[Lu]=window.location.href.split("?")[0],h);return bd(E)},this.diagnosticsClient=r?.diagnosticsClient;var a=(s=t.maskTextRegex)!==null&&s!==void 0?s:[],u=[];try{for(var c=ce(a),l=c.next();!l.done;l=c.next()){var f=l.value;if(u.length>=dI)break;if(f instanceof RegExp)u.push(f);else if("pattern"in f&&typeof f.pattern=="string")try{u.push(new RegExp(f.pattern,"i"))}catch{}}}catch(d){n={error:d}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}this.additionalMaskTextPatterns=u}return e})();function zI(e){var t=e.allObservables,r=e.onExposure,n=e.dataExtractor,i=e.exposureDuration,o=i===void 0?sg:i,s=new Map,a=new Map,u=t.exposureObservable,c=u.subscribe(function(l){var f=l,d=f.target;if(f.isIntersecting){if(!s.get(d)){var h=setTimeout(function(){s.set(d,!0);var v=n.getElementPath(d);r(v),a.set(d,null)},o);a.set(d,h)}}else if(!f.isIntersecting&&f.intersectionRatio<1){var h=a.get(d);h&&(clearTimeout(h),a.set(d,null))}});return{unsubscribe:function(){c.unsubscribe()},reset:function(){a.forEach(function(l){l&&clearTimeout(l)}),a.clear(),s.clear()}}}function XI(e){var t,r,n,i,o=e.amplitude,s=e.scrollTracker,a=e.currentElementExposed,u=e.elementExposedForPage,c=e.exposureTracker,l=e.isPageEnd,f=e.lastScroll,d=s.getState(),h=le(),v=(r=h?.innerWidth)!==null&&r!==void 0?r:0,p=(n=h?.innerHeight)!==null&&n!==void 0?n:0,b=(t={},t[Lu]=(i=h?.location)===null||i===void 0?void 0:i.href,t[uI]=d.maxX+v,t[lI]=d.maxY+p,t[Mg]=p,t[Dg]=v,t["[Amplitude] Element Exposed"]=Array.from(a),t),E=qg();if(E&&(b[Ug]=E),a.size===0&&d.maxX===f.maxX&&d.maxY===f.maxY){l&&(s.reset(),u.clear(),c?.reset());return}o?.track("[Amplitude] Viewport Content Updated",b),f.maxX=d.maxX,f.maxY=d.maxY,a.clear(),l&&(s.reset(),u.clear(),c?.reset())}function YI(e,t,r,n){if(!t.has(e)){t.add(e),r.add(e);var i=Array.from(r),o=JSON.stringify(i);o.length>=vI&&n(!1)}}var vt;(function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable",e.ScrollObservable="scrollObservable",e.ExposureObservable="exposureObservable",e.BrowserErrorObservable="browserErrorObservable",e.SelectionObservable="selectionObservable",e.MouseMoveObservable="mouseMoveObservable"})(vt||(vt={}));var JI=function(e,t){var r,n,i,o,s,a,u,c,l,f,d,h;e===void 0&&(e={}),t?.diagnosticsClient.setTag("plugin.autocapture.version",Ng);var v=e.dataAttributePrefix,p=v===void 0?Ul:v,b=e.visualTaggingOptions,E=b===void 0?{enabled:!0}:b;e.cssSelectorAllowlist=(r=e.cssSelectorAllowlist)!==null&&r!==void 0?r:ig,e.actionClickAllowlist=(n=e.actionClickAllowlist)!==null&&n!==void 0?n:og,e.debounceTime=(i=e.debounceTime)!==null&&i!==void 0?i:0;var m=((o=e.viewportContentUpdated)===null||o===void 0?void 0:o.enabled)!==!1,g=(u=(a=(s=e.viewportContentUpdated)===null||s===void 0?void 0:s.exposureDuration)!==null&&a!==void 0?a:e.exposureDuration)!==null&&u!==void 0?u:sg;e.viewportContentUpdated=D(D({},e.viewportContentUpdated),{exposureDuration:g}),e.pageUrlExcludelist=(c=e.pageUrlExcludelist)===null||c===void 0?void 0:c.reduce(function(Q,ae){if(typeof ae=="string"&&Q.push(ae),ae instanceof RegExp&&Q.push(ae),typeof ae=="object"&&ae!==null&&"pattern"in ae)try{Q.push(new RegExp(ae.pattern))}catch(fe){return console.warn("Invalid regex pattern: ".concat(ae.pattern),fe),Q}return Q},[]);var y=$C,_="enrichment",S=[],A=new Wg(e,t),C=new Set,I=new Set,P,R=function(){var Q,ae=Xt($g().map(function(me){return A.addAdditionalEventProperties(me,"click",e.cssSelectorAllowlist,p)})),fe=Xt(new tt(function(me){var M,Z=function(X){var re=A.addAdditionalEventProperties(X,"change",e.cssSelectorAllowlist,p);me.next(re)};return(M=le())===null||M===void 0||M.document.addEventListener("change",Z,{capture:!0}),function(){var X;return(X=le())===null||X===void 0?void 0:X.document.removeEventListener("change",Z)}})),pe;window.navigation&&(pe=Xt(new tt(function(me){var M=function(Z){var X=A.addAdditionalEventProperties(Z,"navigate",e.cssSelectorAllowlist,p);me.next(X)};return window.navigation.addEventListener("navigate",M),function(){window.navigation.removeEventListener("navigate",M)}})));var ye=Xt(Vg().map(function(me){return A.addAdditionalEventProperties(me,"mutation",e.cssSelectorAllowlist,p)})),be=CI(),de=kI(ye,e.cssSelectorAllowlist);return Q={},Q[vt.ChangeObservable]=fe,Q[vt.ClickObservable]=ae,Q[vt.MutationObservable]=ye,Q[vt.NavigateObservable]=pe,Q[vt.ScrollObservable]=be,Q[vt.ExposureObservable]=de,Q},k=_d(Object.values((f=(l=e.pageActions)===null||l===void 0?void 0:l.labeledEvents)!==null&&f!==void 0?f:{})),N=Sd((h=(d=e.pageActions)===null||d===void 0?void 0:d.triggers)!==null&&h!==void 0?h:[]),$=HI(k,N,A,e),ee=function(Q){var ae,fe;Q&&(e.pageActions=D(D({},e.pageActions),Q),k=_d(Object.values((ae=e.pageActions.labeledEvents)!==null&&ae!==void 0?ae:{})),N=Sd((fe=e.pageActions.triggers)!==null&&fe!==void 0?fe:[]),$.update(k,N,e))},B=function(Q,ae){return x(void 0,void 0,void 0,function(){var fe,pe,ye,be,de,me,M,Z,X,re,F,ge,w,T,L,H,U,q,te,G,Y;return O(this,function(V){return typeof document>"u"?[2]:(fe=!1,pe={maxX:void 0,maxY:void 0},Q.fetchRemoteConfig&&(Q.remoteConfigClient?Q.remoteConfigClient.subscribe("configs.analyticsSDK.pageActions","all",function(W){ee(W)}):Q.loggerProvider.debug("Remote config client is not provided, skipping remote config fetch")),ye=Bn(e,e.cssSelectorAllowlist),be=Bn(e,e.actionClickAllowlist),de=R(),me=SI({allObservables:de,amplitude:ae,shouldTrackEvent:ye,evaluateTriggers:$.evaluate.bind($)}),S.push(me),M=wI({allObservables:de,getEventProperties:function(){for(var W=[],j=0;j<arguments.length;j++)W[j]=arguments[j];return A.getEventProperties.apply(A,Ee(Ee([],oe(W),!1),[p],!1))},amplitude:ae,shouldTrackEvent:ye,evaluateTriggers:$.evaluate.bind($)}),S.push(M),Z=TI({allObservables:de,options:e,getEventProperties:function(){for(var W=[],j=0;j<arguments.length;j++)W[j]=arguments[j];return A.getEventProperties.apply(A,Ee(Ee([],oe(W),!1),[p],!1))},amplitude:ae,shouldTrackEvent:ye,shouldTrackActionClick:be}),Z&&S.push(Z),X=AI({allObservables:de}),S.push(X),re={},F=le(),ge=function(W){W&&fe||(setTimeout(function(){fe=!1},100),fe=!0,XI({amplitude:ae,scrollTracker:X,currentElementExposed:I,elementExposedForPage:C,exposureTracker:re.exposure,isPageEnd:W,lastScroll:pe}))},w=function(W){YI(W,C,I,ge)},m&&(re.exposure=zI({allObservables:de,onExposure:w,dataExtractor:A,exposureDuration:g}),re.exposure&&S.push(re.exposure),T=function(){ge(!0)},F?.addEventListener("beforeunload",T),P=function(){F?.removeEventListener("beforeunload",T)},S.push({unsubscribe:function(){return P()}}),L=de[vt.NavigateObservable],L?S.push(L.subscribe(function(){ge(!0)})):F&&(H=function(){ge(!0)},F.addEventListener("popstate",H),U=F.history.pushState,F.history&&U&&(F.history.pushState=new Proxy(U,{apply:function(W,j,J){var ne=oe(J,3),ie=ne[0],Se=ne[1],ue=ne[2];W.apply(j,[ie,Se,ue]),ge(!0)}})),S.push({unsubscribe:function(){F.removeEventListener("popstate",H),F.history&&U&&(F.history.pushState=U)}}))),(Y=Q?.loggerProvider)===null||Y===void 0||Y.log("".concat(y," has been successfully added.")),window.opener&&E.enabled&&(q=e.cssSelectorAllowlist,te=e.actionClickAllowlist,G=yg(),_I(G,{dataExtractor:A,isElementSelectable:Bn(e,Ee(Ee([],oe(q),!1),oe(te),!1)),cssSelectorAllowlist:q,actionClickAllowlist:te}),bg(G),G.setup(D({logger:Q?.loggerProvider},Q?.serverZone&&{endpoint:gg[Q.serverZone]}))),[2])})})},z=function(Q){return x(void 0,void 0,void 0,function(){return O(this,function(ae){return[2,Q]})})},K=function(){return x(void 0,void 0,void 0,function(){var Q,ae,fe,pe,ye;return O(this,function(be){try{for(Q=ce(S),ae=Q.next();!ae.done;ae=Q.next())fe=ae.value,fe.unsubscribe()}catch(de){pe={error:de}}finally{try{ae&&!ae.done&&(ye=Q.return)&&ye.call(Q)}finally{if(pe)throw pe.error}}return[2]})})};return{name:y,type:_,setup:B,execute:z,teardown:K}},QI=3e3,ZI=["mutation","navigate"];function ek(e){var t=e.amplitude,r=e.allObservables,n=e.getEventProperties,i=e.shouldTrackDeadClick,o=r.clickObservable,s=r.mutationObservable,a=r.navigateObservable,u=o.filter(function(h){return io(h)&&i("click",h.closestTrackedAncestor)&&h.event.target instanceof Element&&h.event.target.closest('a[target="_blank"]')===null&&h.event.button===Ss.LEFT_OR_TOUCH_CONTACT}),c=a?cn(s,a):s,l=cn(u,c),f=null,d=jl(l,function(h){return f&&ZI.includes(h.type)?(clearTimeout(f),f=null,Promise.resolve(null)):h.type==="click"?f?Promise.resolve(null):new Promise(function(v){f=setTimeout(function(){v(h),f=null},QI)}):Promise.resolve(null)});return d.subscribe(function(h){if(h){var v={"[Amplitude] X":h.event.clientX,"[Amplitude] Y":h.event.clientY};t.track(GC,D(D({},n("click",h.closestTrackedAncestor)),v),{time:h.timestamp})}})}var Gg=_A,Kg=EA,wd=SA;function Td(e,t){var r,n,i,o,s=t.event,a=s.pageX,u=s.pageY;e.yMin=Math.min((r=e.yMin)!==null&&r!==void 0?r:u,u),e.yMax=Math.max((n=e.yMax)!==null&&n!==void 0?n:u,u),e.xMin=Math.min((i=e.xMin)!==null&&i!==void 0?i:a,a),e.xMax=Math.max((o=e.xMax)!==null&&o!==void 0?o:a,a),e.isOutOfBounds=e.yMax-e.yMin>wd||e.xMax-e.xMin>wd}function Ad(e){if(e.length===0)return null;var t=e[0],r=e[e.length-1],n=D({"[Amplitude] Begin Time":new Date(t.timestamp).toISOString(),"[Amplitude] End Time":new Date(r.timestamp).toISOString(),"[Amplitude] Duration":r.timestamp-t.timestamp,"[Amplitude] Clicks":e.map(function(i){return{X:i.event.pageX,Y:i.event.pageY,Time:i.timestamp}}),"[Amplitude] Click Count":e.length},t.targetElementProperties);return{rageClickEvent:n,time:t.timestamp}}function tk(e,t){var r=Math.max(0,e.length-Gg+1),n=e[r];return t.timestamp-n.timestamp>=Kg}function rk(e,t){return e.length>0&&e[e.length-1].closestTrackedAncestor!==t.closestTrackedAncestor}function nk(e){var t=this,r=e.amplitude,n=e.allObservables,i=e.shouldTrackRageClick,o=n.clickObservable,s=n.selectionObservable,a=[],u={},c=null;function l(v){a=[],u={},v&&(Td(u,v),a.push(v))}var f=jl(o.filter(function(v){return i("click",v.closestTrackedAncestor)}),function(v){return x(t,void 0,void 0,function(){var p;return O(this,function(b){return Td(u,v),p=null,a.length===0||rk(a,v)||tk(a,v)||u.isOutOfBounds?(c&&(p=Ad(a)),l(v)):a.push(v),c&&(clearTimeout(c.timerId),c.resolve(p),c=null),a.length>=Gg?[2,new Promise(function(E){c={resolve:E,timerId:setTimeout(function(){E(Ad(a))},Kg)}})]:[2,null]})})}),d=s?.subscribe(function(){l()}),h=f.subscribe(function(v){v!==null&&r.track(KC,v.rageClickEvent,{time:v.time})});return{unsubscribe:function(){h.unsubscribe(),d?.unsubscribe()}}}var ik=2e3;function ok(e){var t=e.amplitude,r=e.allObservables,n=e.shouldTrackErrorClick,i=r.clickObservable,o=r.browserErrorObservable,s=i.filter(function(l){return io(l)&&n("click",l.closestTrackedAncestor)&&l.event.target instanceof Element&&l.event.target.closest('a[target="_blank"]')===null&&l.event.button===Ss.LEFT_OR_TOUCH_CONTACT}),a=null,u=null,c=function(){a!==null&&(clearTimeout(a),a=null),u=null};return cn(s,o).subscribe(function(l){var f;if(l.type==="click"){c(),u=l,a=setTimeout(c,ik);return}l.type==="error"&&u&&(t.track(zC,D((f={},f["[Amplitude] Kind"]=l.event.kind,f["[Amplitude] Message"]=l.event.message,f["[Amplitude] Stack"]=l.event.stack,f["[Amplitude] Filename"]=l.event.filename,f["[Amplitude] Line Number"]=l.event.lineNumber,f["[Amplitude] Column Number"]=l.event.columnNumber,f),u.targetElementProperties)),c())})}var Kt;(function(e){e.INCREASING="increasing",e.DECREASING="decreasing"})(Kt||(Kt={}));var en;(function(e){e.X="x",e.Y="y"})(en||(en={}));var sk=function(e){var t=e.allWindowObservables,r=t.mouseMoveObservable;return new tt(function(n){var i=null,o=null,s=null;return r.subscribe(function(a){var u={x:a.clientX,y:a.clientY};if(i===null){i=u;return}u.x>i.x?(o===Kt.DECREASING&&n.next(en.X),o=Kt.INCREASING):u.x<i.x&&(o===Kt.INCREASING&&n.next(en.X),o=Kt.DECREASING),u.y>i.y?(s===Kt.DECREASING&&n.next(en.Y),s=Kt.INCREASING):u.y<i.y&&(s===Kt.INCREASING&&n.next(en.Y),s=Kt.DECREASING),i=u})})};function ak(e){var t=+Date.now();e.startTime=e.startTime||t;var r=e.changes,n=e.changesThreshold;r.push(t),r.length>n&&r.shift()}function Cd(e){var t=e.changes,r=e.changesThreshold,n=e.thresholdMs;if(t.length<r)return!1;var i=t[t.length-1]-t[0];return i<n}function Id(e){e.changes=[],e.startTime=void 0}function kd(e){for(var t=e.changes,r=e.thresholdMs,n=0,i=t[t.length-1];n<t.length;n++){var o=i-t[n];if(o<r)break}n!==0&&(e.startTime=t[n],e.changes.splice(0,n))}function uk(e,t){var r=void 0;if(Cd(e)&&(r=e.startTime),Cd(t)){var n=t.startTime;n&&(!r||n<r)&&(r=n)}return r}var zg=20,Xg=2e3,lk=function(e){var t=e.mouseDirectionChangeObservable,r=e.directionChanges,n=r===void 0?zg:r,i=e.thresholdMs,o=i===void 0?Xg:i;return new tt(function(s){var a={changes:[],changesThreshold:n,thresholdMs:o},u={changes:[],changesThreshold:n,thresholdMs:o},c=void 0,l=null;function f(){c!==void 0&&(s.next(c),c=void 0,l!==null&&clearTimeout(l),Id(a),Id(u))}return t.subscribe(function(d){l!==null&&clearTimeout(l),ak(d===en.X?a:u);var h=uk(a,u);return h?(c=c||h,l=setTimeout(function(){f(),l=null},o)):f(),kd(a),kd(u),function(){l!==null&&(clearTimeout(l),l=null)}})})},ck=function(e){var t=e.amplitude,r=e.options,n=e.allObservables,i=e.directionChanges,o=i===void 0?zg:i,s=e.thresholdMs,a=s===void 0?Xg:s,u=sk({allWindowObservables:n}),c=lk({mouseDirectionChangeObservable:u,directionChanges:o,thresholdMs:a});return c.subscribe(function(l){jg(r)&&t.track(YC,void 0,{time:l})})};function Na(e,t,r,n){if(!n)return[];var i=e[t];return typeof i=="object"&&i!==null&&"cssSelectorAllowlist"in i&&Array.isArray(i.cssSelectorAllowlist)?i.cssSelectorAllowlist:r}var To=5,Ao=4e3,fk=function(e){var t;e===void 0&&(e={});var r=WC,n="enrichment",i=[],o=e.errorClicks!==!1;e.errorClicks||(o=!1);var s=e.deadClicks!==!1&&e.deadClicks!==null,a=e.rageClicks!==!1&&e.rageClicks!==null,u=e.thrashedCursor!==!1&&e.thrashedCursor!==null;e.thrashedCursor||(u=!1);var c=Na(e,"rageClicks",bA,a),l=Na(e,"deadClicks",mA,s),f=Na(e,"errorClicks",yA,o),d=(t=e.dataAttributePrefix)!==null&&t!==void 0?t:Ul,h=new Wg(e),v=Ee([],oe(new Set(Ee(Ee(Ee([],oe(c),!1),oe(l),!1),oe(f),!1))),!1),p=function(){var g,y=Xt($g("pointerdown").map(function(R){return h.addAdditionalEventProperties(R,"click",v,d,!0)})),_=Xt(OI().map(function(R){return h.addTypeAndTimestamp(R,"error")})),S=Xt(Vg().map(function(R){return h.addAdditionalEventProperties(R,"mutation",v,d)})),A;if(window.navigation){var C=new tt(function(R){var k=function(N){R.next(D(D({},N),{type:"navigate"}))};return window.navigation.addEventListener("navigate",k),function(){window.navigation.removeEventListener("navigate",k)}});A=Xt(C.map(function(R){return h.addAdditionalEventProperties(R,"navigate",v,d)}))}var I=Xt(new tt(function(R){var k=function(){var N=document.activeElement;if(N&&(N.tagName==="TEXTAREA"||N.tagName==="INPUT")){var $=void 0,ee=void 0;try{if($=N.selectionStart,ee=N.selectionEnd,$===ee)return}catch{return}return R.next()}var B=window.getSelection();if(!(!B||B.isCollapsed))return R.next()};return window.document.addEventListener("selectionchange",k),function(){window.document.removeEventListener("selectionchange",k)}})),P=Xt(xI());return g={},g[vt.ClickObservable]=y,g[vt.MutationObservable]=S,g[vt.NavigateObservable]=A,g[vt.BrowserErrorObservable]=_,g[vt.SelectionObservable]=I,g[vt.MouseMoveObservable]=P,g},b=function(g,y){return x(void 0,void 0,void 0,function(){var _,S,A,C,I,P,R,k,N,$,ee;return O(this,function(B){return typeof document>"u"?[2]:(_=p(),a&&(S=Bn(e,c),A=nk({allObservables:_,amplitude:y,shouldTrackRageClick:S}),i.push(A)),s&&(C=Bn(e,l),I=ek({amplitude:y,allObservables:_,getEventProperties:function(z,K){return h.getEventProperties(z,K,d)},shouldTrackDeadClick:C}),i.push(I)),o&&(P=Bn(e,f),R=ok({amplitude:y,allObservables:_,shouldTrackErrorClick:P}),i.push(R)),u&&(k=void 0,N=void 0,typeof e.thrashedCursor=="object"&&(k=e.thrashedCursor.directionChanges,N=e.thrashedCursor.threshold,k&&k<To&&(g.loggerProvider.warn("'thrashedCursor.directionChanges' of ".concat(k," is below the minimum of ").concat(To,", setting to ").concat(To)),k=To),N&&N>Ao&&(g.loggerProvider.warn("'thrashedCursor.threshold' of ".concat(N," is above the maximum of ").concat(Ao,", setting to ").concat(Ao)),N=Ao)),$=ck({amplitude:y,options:e,allObservables:_,directionChanges:k,thresholdMs:N}),i.push($)),(ee=g?.loggerProvider)===null||ee===void 0||ee.log("".concat(r," has been successfully added.")),[2])})})},E=function(g){return x(void 0,void 0,void 0,function(){return O(this,function(y){return[2,g]})})},m=function(){return x(void 0,void 0,void 0,function(){var g,y,_,S,A;return O(this,function(C){try{for(g=ce(i),y=g.next();!y.done;y=g.next())_=y.value,_.unsubscribe()}catch(I){S={error:I}}finally{try{y&&!y.done&&(A=g.return)&&A.call(g)}finally{if(S)throw S.error}}return[2]})})};return{name:r,type:n,setup:b,execute:E,teardown:m}},dk="@amplitude/plugin-network-capture-browser",Yg="[Amplitude] Network Request",Jg="500-599";function Wo(e,t){var r=t.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&"),n="^"+r.replace(/\*/g,".*")+"$",i=new RegExp(n);return i.test(e)}function Qg(e,t){var r,n,i=t.split(",");try{for(var o=ce(i),s=o.next();!s.done;s=o.next()){var a=s.value,u=oe(a.split("-").map(Number),2),c=u[0],l=u[1];if(e===c&&l===void 0||e>=c&&e<=l)return!0}}catch(f){r={error:f}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function hk(e,t,r,n,i){if(!(e.hosts&&!e.hosts.find(function(s){return Wo(t,s)}))&&!(n&&e.urls&&!Pu(n,e.urls))&&!(i&&e.methods&&!e.methods.find(function(s){return i.toLowerCase()===s.toLowerCase()||s==="*"}))){if(r||r===0){var o=e.statusCodeRange||Jg;if(!Qg(r,o))return!1}return!0}}function Zg(e){var t;if(e)try{var r=(t=le())===null||t===void 0?void 0:t.location.href,n=new URL(e,r),i=n.searchParams.toString(),o=n.hash.replace("#",""),s=n.href,a=n.host;n.hash="",n.search="";var u=n.href;return{query:i,fragment:o,href:s,hrefWithoutQueryOrHash:u,host:a}}catch{return}}function vk(e,t){if(e.includes("amplitude.com"))try{var r=t.body;if(typeof r!="string")return!1;var n=JSON.parse(r),i=n.events;if(i.find(function(o){return o.event_type===Yg}))return!0}catch{}return!1}function Pd(e){if(typeof e!="object"||e===null){if(e)return Ee([],oe(ms),!1);if(e===void 0){var t=void 0;return t}return}if(e.length!==0)return e}function Rd(e){var t,r;return!(!((t=e?.allowlist)===null||t===void 0)&&t.length)&&!(!((r=e?.blocklist)===null||r===void 0)&&r.length)}function pk(e,t){var r;t===void 0&&(t={});var n=Zg(e.url);if(!n)return!1;var i=n.host;if(t.ignoreAmplitudeRequests!==!1&&(Wo(i,"*.amplitude.com")||Wo(i,"amplitude.com"))||!((r=t.ignoreHosts)===null||r===void 0)&&r.find(function(s){return Wo(i,s)})||!t.captureRules&&e.status!==void 0&&!Qg(e.status,Jg))return!1;if(t.captureRules){var o;if(Ee([],oe(t.captureRules),!1).reverse().find(function(s){if(o=hk(s,i,e.status,e.url,e.method),o){var a=Pd(s.responseHeaders);if(e.responseWrapper&&a){var u=e.responseWrapper.headers(a);u&&(e.responseHeaders=u)}var c=Pd(s.requestHeaders);if(e.requestWrapper&&c){var l=e.requestWrapper.headers(c);l&&(e.requestHeaders=l)}e.responseWrapper&&s.responseBody&&!Rd(s.responseBody)&&(e.responseBodyJson=e.responseWrapper.json(s.responseBody.allowlist,s.responseBody.blocklist)),e.requestWrapper&&s.requestBody&&!Rd(s.requestBody)&&(e.requestBodyJson=e.requestWrapper.json(s.requestBody.allowlist,s.requestBody.blocklist))}return o!==void 0}),!o)return!1}return!(e.requestWrapper&&vk(i,e.requestWrapper))}function gk(e,t,r,n){return x(this,void 0,void 0,function(){var i,o,s;return O(this,function(a){switch(a.label){case 0:return t.requestBodyJson||t.responseBodyJson?[4,Promise.all([t.requestBodyJson,t.responseBodyJson])]:[3,2];case 1:if(i=oe.apply(void 0,[a.sent(),2]),o=i[0],s=i[1],o)try{e["[Amplitude] Request Body"]=JSON.stringify(o)}catch(u){n?.debug("Failed to stringify request body",u)}if(s)try{e["[Amplitude] Response Body"]=JSON.stringify(s)}catch{n?.debug("Failed to stringify response body")}a.label=2;case 2:return r?.track(Yg,e),[2]}})})}function mk(e){var t=e.allObservables,r=e.networkTrackingOptions,n=e.amplitude,i=e.loggerProvider,o=t.networkObservable,s=o.filter(function(a){return pk(a.event,r)});return s.subscribe(function(a){var u,c,l,f=a.event,d=Zg(f.url);if(d){var h=(c=f.responseWrapper)===null||c===void 0?void 0:c.bodySize,v=(l=f.requestWrapper)===null||l===void 0?void 0:l.bodySize,p=(u={},u["[Amplitude] URL"]=d.hrefWithoutQueryOrHash,u["[Amplitude] URL Query"]=d.query,u["[Amplitude] URL Fragment"]=d.fragment,u["[Amplitude] Request Method"]=f.method,u["[Amplitude] Status Code"]=f.status,u["[Amplitude] Start Time"]=f.startTime,u["[Amplitude] Completion Time"]=f.endTime,u["[Amplitude] Duration"]=f.duration,u["[Amplitude] Request Body Size"]=v,u["[Amplitude] Response Body Size"]=h,u["[Amplitude] Request Type"]=f.type,u["[Amplitude] Request Headers"]=f.requestHeaders,u["[Amplitude] Response Headers"]=f.responseHeaders,u);gk(p,f,n,i)}})}var Du;(function(e){e.NetworkObservable="networkObservable"})(Du||(Du={}));var Od,yk=function(e){e===void 0&&(e={});var t=dk,r="enrichment",n,i=function(c,l){var f={event:c,timestamp:Date.now(),type:l};return f},o=function(){var c,l=new tt(function(f){var d=new OA(function(h){var v=i(h,"network");f.next(v)});return ed.subscribe(d,n),function(){ed.unsubscribe(d)}});return c={},c[Du.NetworkObservable]=l,c},s=function(c,l){return x(void 0,void 0,void 0,function(){var f;return O(this,function(d){return typeof document>"u"?[2]:(f=o(),n=c?.loggerProvider,Od=mk({allObservables:f,networkTrackingOptions:e,amplitude:l,loggerProvider:n}),n?.log("".concat(t," has been successfully added.")),[2])})})},a=function(c){return x(void 0,void 0,void 0,function(){return O(this,function(l){return[2,c]})})},u=function(){return x(void 0,void 0,void 0,function(){return O(this,function(c){return Od.unsubscribe(),[2]})})};return{name:t,type:r,setup:s,execute:a,teardown:u}},bk="web-vitals-browser",Ek="[Amplitude] Web Vitals";let em=-1;const ri=e=>{addEventListener("pageshow",(t=>{t.persisted&&(em=t.timeStamp,e(t))}),!0)},er=(e,t,r,n)=>{let i,o;return s=>{t.value>=0&&(s||n)&&(o=t.value-(i??0),(o||i===void 0)&&(i=t.value,t.delta=o,t.rating=((a,u)=>a>u[1]?"poor":a>u[0]?"needs-improvement":"good")(t.value,r),e(t)))}},$l=e=>{requestAnimationFrame((()=>requestAnimationFrame((()=>e()))))},Wl=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},oo=()=>Wl()?.activationStart??0,tr=(e,t=-1)=>{const r=Wl();let n="navigate";return em>=0?n="back-forward-cache":r&&(document.prerendering||oo()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:n}},La=new WeakMap;function Gl(e,t){return La.get(e)||La.set(e,new t),La.get(e)}class _k{t;i=0;o=[];h(t){if(t.hadRecentInput)return;const r=this.o[0],n=this.o.at(-1);this.i&&r&&n&&t.startTime-n.startTime<1e3&&t.startTime-r.startTime<5e3?(this.i+=t.value,this.o.push(t)):(this.i=t.value,this.o=[t]),this.t?.(t)}}const so=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver((i=>{Promise.resolve().then((()=>{t(i.getEntries())}))}));return n.observe({type:e,buffered:!0,...r}),n}}catch{}},Kl=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let kn=-1;const tm=new Set,xd=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,Uu=e=>{if(document.visibilityState==="hidden"){if(e.type==="visibilitychange")for(const t of tm)t();isFinite(kn)||(kn=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("prerenderingchange",Uu,!0))}},$s=()=>{if(kn<0){const e=oo();kn=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter((r=>r.name==="hidden"&&r.startTime>e))[0]?.startTime)??xd(),addEventListener("visibilitychange",Uu,!0),addEventListener("prerenderingchange",Uu,!0),ri((()=>{setTimeout((()=>{kn=xd()}))}))}return{get firstHiddenTime(){return kn},onHidden(e){tm.add(e)}}},Ws=e=>{document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},Nd=[1800,3e3],rm=(e,t={})=>{Ws((()=>{const r=$s();let n,i=tr("FCP");const o=so("paint",(s=>{for(const a of s)a.name==="first-contentful-paint"&&(o.disconnect(),a.startTime<r.firstHiddenTime&&(i.value=Math.max(a.startTime-oo(),0),i.entries.push(a),n(!0)))}));o&&(n=er(e,i,Nd,t.reportAllChanges),ri((s=>{i=tr("FCP"),n=er(e,i,Nd,t.reportAllChanges),$l((()=>{i.value=performance.now()-s.timeStamp,n(!0)}))})))}))},Ld=[.1,.25],Sk=(e,t={})=>{const r=$s();rm(Kl((()=>{let n,i=tr("CLS",0);const o=Gl(t,_k),s=u=>{for(const c of u)o.h(c);o.i>i.value&&(i.value=o.i,i.entries=o.o,n())},a=so("layout-shift",s);a&&(n=er(e,i,Ld,t.reportAllChanges),r.onHidden((()=>{s(a.takeRecords()),n(!0)})),ri((()=>{o.i=0,i=tr("CLS",0),n=er(e,i,Ld,t.reportAllChanges),$l((()=>n()))})),setTimeout(n))})))};let nm=0,Ma=1/0,Co=0;const wk=e=>{for(const t of e)t.interactionId&&(Ma=Math.min(Ma,t.interactionId),Co=Math.max(Co,t.interactionId),nm=Co?(Co-Ma)/7+1:0)};let Fu;const Md=()=>Fu?nm:performance.interactionCount??0,Tk=()=>{"interactionCount"in performance||Fu||(Fu=so("event",wk,{type:"event",buffered:!0,durationThreshold:0}))};let Dd=0,Ak=class{u=[];l=new Map;m;p;v(){Dd=Md(),this.u.length=0,this.l.clear()}L(){const t=Math.min(this.u.length-1,Math.floor((Md()-Dd)/50));return this.u[t]}h(t){if(this.m?.(t),!t.interactionId&&t.entryType!=="first-input")return;const r=this.u.at(-1);let n=this.l.get(t.interactionId);if(n||this.u.length<10||t.duration>r.P){if(n?t.duration>n.P?(n.entries=[t],n.P=t.duration):t.duration===n.P&&t.startTime===n.entries[0].startTime&&n.entries.push(t):(n={id:t.interactionId,entries:[t],P:t.duration},this.l.set(n.id,n),this.u.push(n)),this.u.sort(((i,o)=>o.P-i.P)),this.u.length>10){const i=this.u.splice(10);for(const o of i)this.l.delete(o.id)}this.p?.(n)}}};const im=e=>{const t=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?e():(e=Kl(e),addEventListener("visibilitychange",e,{once:!0,capture:!0}),t((()=>{e(),removeEventListener("visibilitychange",e,{capture:!0})})))},Ud=[200,500],Ck=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const r=$s();Ws((()=>{Tk();let n,i=tr("INP");const o=Gl(t,Ak),s=u=>{im((()=>{for(const l of u)o.h(l);const c=o.L();c&&c.P!==i.value&&(i.value=c.P,i.entries=c.entries,n())}))},a=so("event",s,{durationThreshold:t.durationThreshold??40});n=er(e,i,Ud,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),r.onHidden((()=>{s(a.takeRecords()),n(!0)})),ri((()=>{o.v(),i=tr("INP"),n=er(e,i,Ud,t.reportAllChanges)})))}))};let Ik=class{m;h(t){this.m?.(t)}};const Fd=[2500,4e3],kk=(e,t={})=>{Ws((()=>{const r=$s();let n,i=tr("LCP");const o=Gl(t,Ik),s=u=>{t.reportAllChanges||(u=u.slice(-1));for(const c of u)o.h(c),c.startTime<r.firstHiddenTime&&(i.value=Math.max(c.startTime-oo(),0),i.entries=[c],n())},a=so("largest-contentful-paint",s);if(a){n=er(e,i,Fd,t.reportAllChanges);const u=Kl((()=>{s(a.takeRecords()),a.disconnect(),n(!0)})),c=l=>{l.isTrusted&&(im(u),removeEventListener(l.type,c,{capture:!0}))};for(const l of["keydown","click","visibilitychange"])addEventListener(l,c,{capture:!0});ri((l=>{i=tr("LCP"),n=er(e,i,Fd,t.reportAllChanges),$l((()=>{i.value=performance.now()-l.timeStamp,n(!0)}))}))}}))},Hd=[800,1800],Hu=e=>{document.prerendering?Ws((()=>Hu(e))):document.readyState!=="complete"?addEventListener("load",(()=>Hu(e)),!0):setTimeout(e)},Pk=(e,t={})=>{let r=tr("TTFB"),n=er(e,r,Hd,t.reportAllChanges);Hu((()=>{const i=Wl();i&&(r.value=Math.max(i.responseStart-oo(),0),r.entries=[i],n(!0),ri((()=>{r=tr("TTFB",0),n=er(e,r,Hd,t.reportAllChanges),n(!0)})))}))};function Rk(e){var t,r=((t=e.entries[0])===null||t===void 0?void 0:t.startTime)||0;return performance.timeOrigin+r}function hi(e){return{value:e.value,rating:e.rating,delta:e.delta,navigationType:e.navigationType,id:e.id,timestamp:Math.floor(Rk(e)),navigationStart:Math.floor(performance.timeOrigin)}}var Ok=function(){var e=null,t=le(),r=t?.document,n=t?.location,i=function(a,u){return x(void 0,void 0,void 0,function(){var c,l;return O(this,function(f){return r===void 0?[2]:(c=Lr(n?.href||"",a.loggerProvider),l={"[Amplitude] Page Domain":n?.hostname||"","[Amplitude] Page Location":c,"[Amplitude] Page Path":Lr(n?.pathname||"",a.loggerProvider),"[Amplitude] Page Title":typeof document<"u"&&document.title||"","[Amplitude] Page URL":Lr(c.split("?")[0],a.loggerProvider)},kk(function(d){l["[Amplitude] LCP"]=hi(d)}),rm(function(d){l["[Amplitude] FCP"]=hi(d)}),Ck(function(d){l["[Amplitude] INP"]=hi(d)}),Sk(function(d){l["[Amplitude] CLS"]=hi(d)}),Pk(function(d){l["[Amplitude] TTFB"]=hi(d)}),e=function(){r.visibilityState==="hidden"&&e&&(u.track(Ek,l),r.removeEventListener("visibilitychange",e),e=null)},r.addEventListener("visibilitychange",e),[2])})})},o=function(a){return x(void 0,void 0,void 0,function(){return O(this,function(u){return[2,a]})})},s=function(){return x(void 0,void 0,void 0,function(){return O(this,function(a){return e&&r?.removeEventListener("visibilitychange",e),[2]})})};return{name:bk,type:"enrichment",setup:i,execute:o,teardown:s}},Bd=(function(){function e(t,r){var n;this.shouldTrackNewCampaign=!1,this.options=D({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:CC(((n=r.cookieOptions)===null||n===void 0?void 0:n.domain)||r.topLevelDomain),optOut:r.optOut},t),this.storage=r.cookieStorage,this.storageKey=Gf(r.apiKey,"MKTG"),this.webExpStorageKey=Gf(r.apiKey,"MKTG_ORIGINAL"),this.currentCampaign=js,this.sessionTimeout=r.sessionTimeout,this.lastEventTime=r.lastEventTime,this.logger=r.loggerProvider,this.topLevelDomain=r.topLevelDomain,r.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return x(this,void 0,void 0,function(){var t,r;return O(this,function(n){switch(n.label){case 0:return this.options.optOut?[2]:[4,this.fetchCampaign()];case 1:return r=oe.apply(void 0,[n.sent(),2]),this.currentCampaign=r[0],this.previousCampaign=r[1],t=this.lastEventTime?Xp(this.sessionTimeout,this.lastEventTime):!0,SC(this.currentCampaign,this.previousCampaign,this.options,this.logger,t,this.topLevelDomain)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return x(this,void 0,void 0,function(){var t;return O(this,function(r){switch(r.label){case 0:return[4,this.storage.get(this.webExpStorageKey)];case 1:return t=r.sent(),t?[4,this.storage.remove(this.webExpStorageKey)]:[3,3];case 2:r.sent(),r.label=3;case 3:return[4,Promise.all([t||new dg().parse(),this.storage.get(this.storageKey)])];case 4:return[2,r.sent()]}})})},e.prototype.generateCampaignEvent=function(t){this.shouldTrackNewCampaign=!1;var r=AC(this.currentCampaign,this.options);return t&&(r.event_id=t),r},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e})(),Io="AMP_CURRENT_PAGE",ko="AMP_PREVIOUS_PAGE",bn="AMP_URL_INFO",Mi;(function(e){e.Direct="direct",e.Internal="internal",e.External="external"})(Mi||(Mi={}));var xk=new Set([St.IDENTIFY,St.GROUP_IDENTIFY,St.REVENUE]),Nk=function(e){var t={},r=t.internalDomains,n=r===void 0?[]:r,i=le(),o=void 0,s=!1,a=void 0,u=!1,c=!1,l=function(p){var b;try{var E=Lr(p,a);b=new URL(E).hostname}catch(m){a?.error("Could not parse URL: ",m)}return b},f=function(p){var b=typeof location<"u"&&location.hostname||"",E=p?l(p):void 0;if(!E)return Mi.Direct;var m=n.some(function(y){return b.indexOf(y)!==-1}),g=n.some(function(y){return E.indexOf(y)!==-1});return b===E||g&&m?Mi.Internal:Mi.External},d=function(){return x(void 0,void 0,void 0,function(){var p,b,E,m,g;return O(this,function(y){switch(y.label){case 0:return o&&s?[4,o.get(bn)]:[3,3];case 1:return p=y.sent(),b=Lr(typeof location<"u"&&location.href||""),E=p?.[Io]||"",m=void 0,b===E?m=p?.[ko]||"":E?m=E:m=document.referrer||"",[4,o.set(bn,(g={},g[Io]=b,g[ko]=m,g))];case 2:y.sent(),y.label=3;case 3:return[2]}})})},h=function(){d()},v={name:"@amplitude/plugin-page-url-enrichment-browser",type:"enrichment",setup:function(p,b){return x(void 0,void 0,void 0,function(){var E;return O(this,function(m){switch(m.label){case 0:if(a=p.loggerProvider,a.log("Installing @amplitude/plugin-page-url-enrichment-browser"),c=!0,!i)return[3,2];try{o=new qs(i.sessionStorage)}catch{a?.debug("sessionStorage is not available in this environment.")}return[4,o?.isEnabled()];case 1:s=(E=m.sent())!==null&&E!==void 0?E:!1,i.addEventListener("popstate",h),u||(i.history.pushState=new Proxy(i.history.pushState,{apply:function(g,y,_){var S=oe(_,3),A=S[0],C=S[1],I=S[2];g.apply(y,[A,C,I]),c&&h()}}),i.history.replaceState=new Proxy(i.history.replaceState,{apply:function(g,y,_){var S=oe(_,3),A=S[0],C=S[1],I=S[2];g.apply(y,[A,C,I]),c&&h()}}),u=!0),m.label=2;case 2:return[2]}})})},execute:function(p){return x(void 0,void 0,void 0,function(){var b,E,m,g,y;return O(this,function(_){switch(_.label){case 0:return b=Lr(typeof location<"u"&&location.href||""),o&&s?[4,o.get(bn)]:[3,5];case 1:return E=_.sent(),E?.[Io]?[3,3]:[4,o.set(bn,(y={},y[Io]=b,y[ko]=document.referrer||"",y))];case 2:_.sent(),_.label=3;case 3:return[4,o.get(bn)];case 4:if(m=_.sent(),g="",m&&(g=m[ko]||""),xk.has(p.event_type))return[2,p];p.event_properties=D(D({},p.event_properties||{}),{"[Amplitude] Page Domain":vi(p,"[Amplitude] Page Domain",typeof location<"u"&&location.hostname||""),"[Amplitude] Page Location":vi(p,"[Amplitude] Page Location",b),"[Amplitude] Page Path":vi(p,"[Amplitude] Page Path",typeof location<"u"&&Lr(location.pathname)||""),"[Amplitude] Page Title":vi(p,"[Amplitude] Page Title",Bl(Hl)),"[Amplitude] Page URL":vi(p,"[Amplitude] Page URL",b.split("?")[0]),"[Amplitude] Previous Page Location":g,"[Amplitude] Previous Page Type":f(g)}),_.label=5;case 5:return[2,p]}})})},teardown:function(){return x(void 0,void 0,void 0,function(){return O(this,function(p){switch(p.label){case 0:return i&&(i.removeEventListener("popstate",h),c=!1),o&&s?[4,o.set(bn,{})]:[3,2];case 1:p.sent(),p.label=2;case 2:return[2]}})})}};return v};function vi(e,t,r){return e.event_properties||(e.event_properties={}),e.event_properties[t]===void 0?r:e.event_properties[t]}var Lk=function(){var e,t,r;function n(s){return typeof s!="object"||s===null?!1:"body"in s&&typeof s.body=="string"}function i(s){if(s)try{var a=new Function("return "+s)();if(typeof a=="function")return a;e?.error("Custom enrichment body did not evaluate to a function")}catch(u){e?.error("Could not create custom enrichment function",u)}return function(u){return u}}var o={name:"@amplitude/plugin-custom-enrichment-browser",type:"enrichment",setup:function(s,a){return x(void 0,void 0,void 0,function(){var u,c;return O(this,function(l){return e=s.loggerProvider,e?.log("Installing @amplitude/plugin-custom-enrichment-browser"),!((c=s.remoteConfig)===null||c===void 0)&&c.fetchRemoteConfig&&(s.remoteConfigClient?(u=s.remoteConfigClient.subscribe("configs.analyticsSDK.browserSDK.customEnrichment","all",function(f){f&&n(f)?r=i(f.body||""):r=i("")}),t=function(){var f;return(f=s.remoteConfigClient)===null||f===void 0?void 0:f.unsubscribe(u)}):e?.debug("Remote config client is not provided, skipping remote config fetch")),[2]})})},execute:function(s){return x(void 0,void 0,void 0,function(){var a;return O(this,function(u){if(r)try{return[2,(a=r(s))!==null&&a!==void 0?a:null]}catch(c){return e?.error("Could not execute custom enrichment function",c),[2,s]}return[2,s]})})},teardown:function(){return x(void 0,void 0,void 0,function(){return O(this,function(s){return t&&t(),[2]})})}};return o},Da=-1,Mk=(function(e){Dt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._diagnosticsSampleRate=0,r._enableRequestBodyCompressionExperimentalValue=!1,r}return t.prototype.init=function(r,n,i){r===void 0&&(r="");var o,s;return arguments.length>2?(o=n,s=i):typeof n=="string"?(o=n,s=void 0):(o=n?.userId,s=n),rt(this._init(D(D({},s),{userId:o,apiKey:r})))},t.prototype._init=function(r){var n,i,o,s,a,u,c,l;return x(this,void 0,void 0,function(){var f,d,h,v,p,b,E,m,g,y,_,S,A,C,I,P=this;return O(this,function(R){switch(R.label){case 0:return this.initializing?[2]:(this.initializing=!0,f=xC(r),d=(n=r.loggerProvider)!==null&&n!==void 0?n:new Xn,r.loggerProvider||d.enable((i=r.logLevel)!==null&&i!==void 0?i:at.Warn),h=(o=r.serverZone)!==null&&o!==void 0?o:kg,p=this._diagnosticsSampleRate,b=(s=r.enableDiagnostics)!==null&&s!==void 0?s:!0,f?(v=new rg(r.apiKey,d,h,(a=r.remoteConfig)===null||a===void 0?void 0:a.serverUrl),[4,new Promise(function(k){v?.subscribe("configs.diagnostics.browserSDK","all",function(N,$,ee){if(d.debug("Diagnostics remote configuration received:",JSON.stringify({remoteConfig:N,source:$,lastFetch:ee},null,2)),N){var B=N.sampleRate;typeof B=="number"&&!isNaN(B)&&(p=B);var z=N.enabled;typeof z=="boolean"&&(b=z)}k()})})]):[3,2]);case 1:R.sent(),R.label=2;case 2:return E=new iA(r.apiKey,d,h,{enabled:b,sampleRate:p}),E.setTag("library","".concat(Cg,"/").concat(ql)),typeof navigator<"u"&&E.setTag("user_agent",navigator.userAgent),[4,RC(r.apiKey,r,this,E,{loggerProvider:d,serverZone:h,enableDiagnostics:b,diagnosticsSampleRate:p})];case 3:return m=R.sent(),f&&v?[4,new Promise(function(k){v?.subscribe("configs.analyticsSDK.browserSDK","all",function(N,$,ee){m.loggerProvider.debug("Remote configuration received:",JSON.stringify({remoteConfig:N,source:$,lastFetch:ee},null,2)),N&&VC(N,m),k()})})]:[3,5];case 4:R.sent(),R.label=5;case 5:return[4,e.prototype._init.call(this,m)];case 6:return R.sent(),this.logBrowserOptions(m),this.config.remoteConfigClient=v,Eg(this.config.defaultTracking)?(this.config.optOut&&this.timeline.addOptOutListener(function(k){return x(P,void 0,void 0,function(){var N;return O(this,function($){switch($.label){case 0:return k?[3,2]:(N=ad(this.config),this.webAttribution=new Bd(N,this.config),[4,this.webAttribution.init()]);case 1:$.sent(),$.label=2;case 2:return[2]}})})}),g=ad(this.config),this.webAttribution=new Bd(g,this.config),[4,this.webAttribution.init()]):[3,8];case 7:R.sent(),R.label=8;case 8:return y=ys(),_=y.ampTimestamp?Number(y.ampTimestamp):void 0,S=_?Date.now()<_:!0,A=S&&!Number.isNaN(Number(y.ampSessionId))?Number(y.ampSessionId):void 0,C=this.config.deferredSessionId,C===Da&&!this.config.optOut&&(C=Date.now()),this.setSessionId((l=(c=(u=r.sessionId)!==null&&u!==void 0?u:A)!==null&&c!==void 0?c:C)!==null&&l!==void 0?l:this.config.sessionId),this.config.optOut&&this.timeline.addOptOutListener(function(k){return x(P,void 0,void 0,function(){return O(this,function(N){return!k&&this.config.deferredSessionId&&(this.config.deferredSessionId===Da?this.setSessionId(void 0):this.setSessionId(this.config.deferredSessionId)),[2]})})}),I=Yn(r.instanceName),I.identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),this.config.offline===ng?[3,10]:[4,this.add(qC()).promise];case 9:R.sent(),R.label=10;case 10:return[4,this.add(new RT({diagnosticsClient:E})).promise];case 11:return R.sent(),[4,this.add(new oC).promise];case 12:return R.sent(),[4,this.add(new BT).promise];case 13:return R.sent(),jC(this.config),XA(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(BC()).promise]):[3,15];case 14:R.sent(),R.label=15;case 15:return _g(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(HC()).promise]):[3,17];case 16:R.sent(),R.label=17;case 17:return Sg(this.config.defaultTracking)?this.config.optOut?[3,19]:(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(hd(sd(this.config))).promise]):[3,20];case 18:return R.sent(),[3,20];case 19:this.timeline.addOptOutListener(function(k){return x(P,void 0,void 0,function(){return O(this,function(N){switch(N.label){case 0:return k?[2]:(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(hd(sd(this.config))).promise]);case 1:return N.sent(),[2]}})})}),R.label=20;case 20:return Tg(this.config.autocapture)?(this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(JI(ZA(this.config),{diagnosticsClient:E})).promise]):[3,22];case 21:R.sent(),R.label=22;case 22:return Ag(this.config.autocapture)?(this.config.loggerProvider.debug("Adding frustration interactions plugin"),[4,this.add(fk(eC(this.config))).promise]):[3,24];case 23:R.sent(),R.label=24;case 24:return wg(this.config.autocapture)?(this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(yk(tC(this.config))).promise]):[3,26];case 25:R.sent(),R.label=26;case 26:return JA(this.config.autocapture)?(this.config.loggerProvider.debug("Adding web vitals plugin"),[4,this.add(Ok()).promise]):[3,28];case 27:R.sent(),R.label=28;case 28:return YA(this.config.autocapture)?(this.config.loggerProvider.debug("Adding referrer page url plugin"),[4,this.add(Nk()).promise]):[3,30];case 29:R.sent(),R.label=30;case 30:return QA(this.config.customEnrichment)?(this.config.loggerProvider.debug("Adding custom enrichment plugin"),[4,this.add(Lk()).promise]):[3,32];case 31:R.sent(),R.label=32;case 32:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 33:return R.sent(),I.eventBridge.setEventReceiver(function(k){var N=k.eventProperties||{},$=N.time,ee=gs(N,["time"]),B=typeof $=="number"?{time:$}:void 0;P.track(k.eventType,ee,B)}),[2]}})})},t.prototype.getUserId=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.userId},t.prototype.setUserId=function(r){if(!this.config){this.q.push(this.setUserId.bind(this,r));return}this.config.loggerProvider.debug("function setUserId: ",r),(r!==this.config.userId||r===void 0)&&(this.config.userId=r,this.timeline.onIdentityChanged({userId:r}),FT(r,this.config.instanceName))},t.prototype.getDeviceId=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.deviceId},t.prototype.setDeviceId=function(r){if(!this.config){this.q.push(this.setDeviceId.bind(this,r));return}this.config.loggerProvider.debug("function setDeviceId: ",r),r!==this.config.deviceId&&(this.config.deviceId=r,this.timeline.onIdentityChanged({deviceId:r}),HT(r,this.config.instanceName))},t.prototype.reset=function(){this.setDeviceId(Zt()),this.setUserId(void 0),this.timeline.onReset()},t.prototype.getIdentity=function(){var r,n;return{deviceId:(r=this.config)===null||r===void 0?void 0:r.deviceId,userId:(n=this.config)===null||n===void 0?void 0:n.userId,userProperties:this.userProperties}},t.prototype.setIdentity=function(r){var n,i,o;if("userId"in r&&this.setUserId(r.userId),"deviceId"in r&&r.deviceId&&this.setDeviceId(r.deviceId),"userProperties"in r){this.userProperties=r.userProperties;var s=new Fn,a=(o=r.userProperties)!==null&&o!==void 0?o:{};try{for(var u=ce(Object.entries(a)),c=u.next();!c.done;c=u.next()){var l=oe(c.value,2),f=l[0],d=l[1];s.set(f,d)}}catch(h){n={error:h}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}this.identify(s)}},t.prototype.getOptOut=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.optOut},t.prototype.getSessionId=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.sessionId},t.prototype.setSessionId=function(r){var n,i=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,r)),rt(Promise.resolve());if(this.config.optOut)return this.config.deferredSessionId=r??Da,rt(Promise.resolve());if(r===void 0&&(r=Date.now()),r===this.config.sessionId)return rt(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",r);var o=this.getSessionId();o!==r&&this.timeline.onSessionIdChanged(r);var s=this.config.lastEventTime,a=(n=this.config.lastEventId)!==null&&n!==void 0?n:-1;this.config.sessionId=r,this.config.lastEventTime=void 0,this.config.pageCounter=0,od(this.config.defaultTracking)&&(o&&s&&i.push(this.track(cd,void 0,{device_id:this.previousSessionDeviceId,event_id:++a,session_id:o,time:s+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var u=this.trackCampaignEventIfNeeded(++a,i);return this.config.identify&&i.push(this.track(Ll(this.config.identify)).promise),od(this.config.defaultTracking)&&i.push(this.track(ld,void 0,{event_id:u?++a:a,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,rt(Promise.all(i))},t.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(r){if(!this.config){this.q.push(this.setTransport.bind(this,r));return}this.config.transportProvider=Og(r)},t.prototype.identify=function(r,n){if(Ia(r)){var i=r._q;r._q=[],r=Ca(new Fn,i)}return n?.user_id&&this.setUserId(n.user_id),n?.device_id&&this.setDeviceId(n.device_id),e.prototype.identify.call(this,r,n)},t.prototype.groupIdentify=function(r,n,i,o){if(Ia(i)){var s=i._q;i._q=[],i=Ca(new Fn,s)}return e.prototype.groupIdentify.call(this,r,n,i,o)},t.prototype.revenue=function(r,n){if(Ia(r)){var i=r._q;r._q=[],r=Ca(new Gp,i)}return e.prototype.revenue.call(this,r,n)},t.prototype.trackCampaignEventIfNeeded=function(r,n){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var i=this.webAttribution.generateCampaignEvent(r);return n?n.push(this.track(i).promise):this.track(i),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(r){return x(this,void 0,void 0,function(){var n,i,o;return O(this,function(s){return n=Date.now(),i=Xp(this.config.sessionTimeout,this.config.lastEventTime),o=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),r.event_type!==ld&&r.event_type!==cd&&(!r.session_id||r.session_id===this.getSessionId())&&(i||o?(this.setSessionId(n),o&&this.config.loggerProvider.log("Created a new session for new campaign.")):i||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,r)]})})},t.prototype.logBrowserOptions=function(r){try{var n=D(D({},r),{apiKey:r.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",jA(n))}catch(i){this.config.loggerProvider.error("Error logging browser config",i)}},t.prototype._setDiagnosticsSampleRate=function(r){if(!(r>1||r<0)&&!this.config){this._diagnosticsSampleRate=r;return}},t.prototype._enableRequestBodyCompressionExperimental=function(r){if(!this.config){this._enableRequestBodyCompressionExperimentalValue=r;return}},t})(ST),om="[Amplitude]",Dk="".concat(om," Session Replay ID"),Uk=0,Fk=Jn.US,Hk={enabled:!0},zl=1e3,Bk="".concat(om," Session Replay Debug"),jk="amp-block",sm="amp-mask",qk="amp-unmask",am="https://api-sr.amplitude.com/sessions/v2/track",um="https://api-sr.eu.amplitude.com/sessions/v2/track",lm="https://api-sr.stag2.amplitude.com/sessions/v2/track",Vk=1*1e6,$k=3e4,Wk=6e4,Gk=500,Kk=10*1e3,cm=1024,zk=1e3,Pr;(function(e){e.GET_SR_PROPS="get-sr-props",e.DEBUG_INFO="debug-info",e.FETCH_REQUEST="fetch-request",e.METADATA="metadata",e.TARGETING_DECISION="targeting-decision"})(Pr||(Pr={}));var Bu=(function(){function e(t){this.logger=t,this.log=this.getSafeMethod("log"),this.warn=this.getSafeMethod("warn"),this.error=this.getSafeMethod("error"),this.debug=this.getSafeMethod("debug")}return e.prototype.getSafeMethod=function(t){var r;if(!this.logger)return(function(){});var n=this.logger[t];if(typeof n=="function"){var i=(r=n.__rrweb_original__)!==null&&r!==void 0?r:n;return i.bind(this.logger)}return(function(){})},e.prototype.enable=function(t){this.logger.enable(t)},e.prototype.disable=function(){this.logger.disable()},e})(),ju="medium";function Xk(e){return e.toLowerCase()}function Yk(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Xk(t):null}var fm=function(e,t,r){switch(t){case"light":{if(e!=="input")return!0;var n=r?Yk(r):"";return n?!!(["password","hidden","email","tel"].includes(n)||r.autocomplete.startsWith("cc-")):!1}case"medium":case"conservative":return!0;default:return fm(e,ju,r)}},dm=function(e,t,r){var n,i,o;if(t===void 0&&(t={defaultMaskLevel:ju}),r){if(r.closest("."+sm))return!0;var s=((n=t.maskSelector)!==null&&n!==void 0?n:[]).some(function(u){return r.closest(u)});if(s)return!0;if(r.closest("."+qk))return!1;var a=((i=t.unmaskSelector)!==null&&i!==void 0?i:[]).some(function(u){return r.closest(u)});if(a)return!1}return fm(e,(o=t.defaultMaskLevel)!==null&&o!==void 0?o:ju,r)},jd=function(e,t){return function(r,n){return dm(e,t,n)?r.replace(/[^\s]/g,"*"):r}},Jk=function(e){return function(t,r,n){var i;return t==="style"||!((i=e?.maskAttributes)!==null&&i!==void 0?i:[]).includes(t)?r:dm("text",e,n)?r.replace(/[^\s]/g,"*"):r}},Qk=function(){var e=le();return e?.location?e.location.href:""},Zk=function(e,t){return"".concat(t,"/").concat(e)},Xl=function(e,t){return t||(e===Jn.STAGING?lm:e===Jn.EU?um:am)},eP=function(e){if(typeof e!="string"||e.trim()==="")return!1;var t=/^\/|^https?:\/\/[^\s]+$/;return!!t.test(e)},tP=function(e){var t=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp("^".concat(t,"$"))},rP=function(e){if(!e.every(function(t){return typeof t.selector=="string"&&typeof t.replacement=="string"}))throw new Error("ugcFilterRules must be an array of objects with selector and replacement properties");if(!e.every(function(t){return eP(t.selector)}))throw new Error("ugcFilterRules must be an array of objects with valid globs")},Gs=function(e,t){var r,n;try{for(var i=ce(t),o=i.next();!o.done;o=i.next()){var s=o.value,a=tP(s.selector);if(a.test(e))return e.replace(a,s.replacement)}}catch(u){r={error:u}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return e},hm=function(){return x(void 0,void 0,void 0,function(){var e,t,r,n,i,o,s;return O(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),e=le(),e?[4,e.navigator.storage.estimate()]:[3,2];case 1:return t=a.sent(),r=t.usage,n=t.quota,i=t.usageDetails,o=r?Math.round(r/cm):0,s=r&&n?Math.round((r/n+Number.EPSILON)*1e3)/1e3:0,[2,{totalStorageSize:o,percentOfQuota:s,usageDetails:JSON.stringify(i)}];case 2:return[3,4];case 3:return a.sent(),[3,4];case 4:return[2,{totalStorageSize:0,percentOfQuota:0,usageDetails:""}]}})})},vm=function(e){var t=D({},e),r=t.apiKey;return t.apiKey="****".concat(r.substring(r.length-4)),t},pm=function(){return{flushMaxRetries:2,logLevel:at.Warn,loggerProvider:new Xn,transportProvider:new oA}},nP=(function(e){Dt(t,e);function t(r,n){var i=this,o,s,a,u,c,l,f=pm();if(i=e.call(this,D(D({transportProvider:f.transportProvider,loggerProvider:new Bu(n.loggerProvider||f.loggerProvider)},n),{apiKey:r}))||this,i.flushMaxRetries=n.flushMaxRetries!==void 0&&n.flushMaxRetries<=f.flushMaxRetries?n.flushMaxRetries:f.flushMaxRetries,i.apiKey=r,i.sampleRate=n.sampleRate||Uk,i.serverZone=n.serverZone||Fk,i.configServerUrl=n.configServerUrl,i.trackServerUrl=n.trackServerUrl,i.shouldInlineStylesheet=n.shouldInlineStylesheet,i.version=n.version,i.performanceConfig=n.performanceConfig||Hk,i.storeType=(o=n.storeType)!==null&&o!==void 0?o:"idb",i.applyBackgroundColorToBlockedElements=(s=n.applyBackgroundColorToBlockedElements)!==null&&s!==void 0?s:!1,i.enableUrlChangePolling=(a=n.enableUrlChangePolling)!==null&&a!==void 0?a:!1,i.urlChangePollingInterval=(u=n.urlChangePollingInterval)!==null&&u!==void 0?u:zl,i.captureDocumentTitle=(c=n.captureDocumentTitle)!==null&&c!==void 0?c:!1,n.privacyConfig&&(i.privacyConfig=n.privacyConfig),n.interactionConfig&&(i.interactionConfig=n.interactionConfig,i.interactionConfig.ugcFilterRules&&rP(i.interactionConfig.ugcFilterRules)),n.debugMode&&(i.debugMode=n.debugMode),n.useWebWorker!==void 0)i.useWebWorker=n.useWebWorker;else{var d=n;((l=d.experimental)===null||l===void 0?void 0:l.useWebWorker)!==void 0&&(i.useWebWorker=d.experimental.useWebWorker)}return n.omitElementTags&&(i.omitElementTags=n.omitElementTags),i}return t})(Kp),gm=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(gm||{}),mm=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(mm||{}),iP=function(e,t){var r=document.createDocumentFragment(),n=function(i){if(i===void 0&&(i=[]),typeof i=="string"&&(i=[i]),i=i.filter(function(o){try{r.querySelector(o)}catch{return t.warn('[session-replay-browser] omitting selector "'.concat(o,'" because it is invalid')),!1}return!0}),i.length!==0)return i};return e.blockSelector=n(e.blockSelector),e.maskSelector=n(e.maskSelector),e.unmaskSelector=n(e.unmaskSelector),e},oP=(function(){function e(t,r){this.localConfig=r,this.remoteConfigClient=t}return e.prototype.generateJoinedConfig=function(){var t,r,n,i,o;return x(this,void 0,void 0,function(){var s,a,u,c,l,f,d,h,v,p,b,E,m,g,y,_,S,A=this;return O(this,function(C){switch(C.label){case 0:s=D({},this.localConfig),s.optOut=this.localConfig.optOut,s.captureEnabled=!0,C.label=1;case 1:return C.trys.push([1,3,,4]),[4,new Promise(function(I,P){A.remoteConfigClient.subscribe("configs.sessionReplay","all",function(R,k){var N;if(A.localConfig.loggerProvider.debug("Session Replay remote configuration received from ".concat(k,":"),JSON.stringify(R,null,2)),!R){P(new Error("No remote config received"));return}var $=R,ee=$.sr_sampling_config,B=$.sr_privacy_config,z=$.sr_targeting_config,K=(N=s.interactionConfig)===null||N===void 0?void 0:N.ugcFilterRules;s.interactionConfig=$.sr_interaction_config,s.interactionConfig&&K&&(s.interactionConfig.ugcFilterRules=K),s.loggingConfig=$.sr_logging_config,(ee||B||z)&&(a={},ee&&(a.sr_sampling_config=ee),B&&(a.sr_privacy_config=B),z&&(a.sr_targeting_config=z)),I()})})];case 2:return C.sent(),[3,4];case 3:return u=C.sent(),this.localConfig.loggerProvider.error("Failed to generate joined config: ",u),s.captureEnabled=!1,[2,{localConfig:this.localConfig,joinedConfig:s,remoteConfig:void 0}];case 4:if(!a)return[2,{localConfig:this.localConfig,joinedConfig:s,remoteConfig:a}];if(c=a.sr_sampling_config,l=a.sr_privacy_config,f=a.sr_targeting_config,c&&Object.keys(c).length>0?(Object.prototype.hasOwnProperty.call(c,"capture_enabled")?s.captureEnabled=c.capture_enabled:s.captureEnabled=!1,Object.prototype.hasOwnProperty.call(c,"sample_rate")&&(s.sampleRate=c.sample_rate)):(s.captureEnabled=!0,this.localConfig.loggerProvider.debug("Remote config successfully fetched, but no values set for project, Session Replay capture enabled.")),l){d=(t=s.privacyConfig)!==null&&t!==void 0?t:{},h={defaultMaskLevel:(n=(r=l.defaultMaskLevel)!==null&&r!==void 0?r:d.defaultMaskLevel)!==null&&n!==void 0?n:"medium",blockSelector:[],maskSelector:[],unmaskSelector:[],maskAttributes:Ee([],oe(new Set(Ee(Ee([],oe((i=d.maskAttributes)!==null&&i!==void 0?i:[]),!1),oe((o=l.maskAttributes)!==null&&o!==void 0?o:[]),!1))),!1)},v=function(I){var P,R,k,N,$,ee,B,z,K,Q={};typeof I.blockSelector=="string"&&(I.blockSelector=[I.blockSelector]);try{for(var ae=ce((B=I.blockSelector)!==null&&B!==void 0?B:[]),fe=ae.next();!fe.done;fe=ae.next()){var pe=fe.value;Q[pe]="block"}}catch(M){P={error:M}}finally{try{fe&&!fe.done&&(R=ae.return)&&R.call(ae)}finally{if(P)throw P.error}}try{for(var ye=ce((z=I.maskSelector)!==null&&z!==void 0?z:[]),be=ye.next();!be.done;be=ye.next()){var pe=be.value;Q[pe]="mask"}}catch(M){k={error:M}}finally{try{be&&!be.done&&(N=ye.return)&&N.call(ye)}finally{if(k)throw k.error}}try{for(var de=ce((K=I.unmaskSelector)!==null&&K!==void 0?K:[]),me=de.next();!me.done;me=de.next()){var pe=me.value;Q[pe]="unmask"}}catch(M){$={error:M}}finally{try{me&&!me.done&&(ee=de.return)&&ee.call(de)}finally{if($)throw $.error}}return Q},p=D(D({},v(d)),v(l));try{for(b=ce(Object.entries(p)),E=b.next();!E.done;E=b.next())m=oe(E.value,2),g=m[0],y=m[1],y==="mask"?h.maskSelector.push(g):y==="block"?h.blockSelector.push(g):y==="unmask"&&h.unmaskSelector.push(g)}catch(I){_={error:I}}finally{try{E&&!E.done&&(S=b.return)&&S.call(b)}finally{if(_)throw _.error}}s.privacyConfig=iP(h,this.localConfig.loggerProvider)}return f&&Object.keys(f).length>0&&(s.targetingConfig=f),this.localConfig.loggerProvider.debug(JSON.stringify({name:"session replay joined config",config:vm(s)},null,2)),[2,{localConfig:this.localConfig,joinedConfig:s,remoteConfig:a}]}})})},e})(),sP=function(e,t){return x(void 0,void 0,void 0,function(){var r,n;return O(this,function(i){return r=new nP(e,t),n=new rg(e,r.loggerProvider,r.serverZone,t.configServerUrl),[2,new oP(n,r)]})})},Nt=Uint8Array,gt=Uint16Array,Yi=Uint32Array,Yl=new Nt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Jl=new Nt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),qd=new Nt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ym=function(e,t){for(var r=new gt(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new Yi(r[30]),n=1;n<30;++n)for(var o=r[n];o<r[n+1];++o)i[o]=o-r[n]<<5|n;return[r,i]},bm=ym(Yl,2),aP=bm[0],qu=bm[1];aP[28]=258,qu[258]=28;var uP=ym(Jl,0),Vd=uP[1],Vu=new gt(32768);for(var Fe=0;Fe<32768;++Fe){var wr=(Fe&43690)>>>1|(Fe&21845)<<1;wr=(wr&52428)>>>2|(wr&13107)<<2,wr=(wr&61680)>>>4|(wr&3855)<<4,Vu[Fe]=((wr&65280)>>>8|(wr&255)<<8)>>>1}var Di=(function(e,t,r){for(var n=e.length,i=0,o=new gt(t);i<n;++i)++o[e[i]-1];var s=new gt(t);for(i=0;i<t;++i)s[i]=s[i-1]+o[i-1]<<1;var a;if(r){a=new gt(1<<t);var u=15-t;for(i=0;i<n;++i)if(e[i])for(var c=i<<4|e[i],l=t-e[i],f=s[e[i]-1]++<<l,d=f|(1<<l)-1;f<=d;++f)a[Vu[f]>>>u]=c}else for(a=new gt(n),i=0;i<n;++i)a[i]=Vu[s[e[i]-1]++]>>>15-e[i];return a}),fn=new Nt(288);for(var Fe=0;Fe<144;++Fe)fn[Fe]=8;for(var Fe=144;Fe<256;++Fe)fn[Fe]=9;for(var Fe=256;Fe<280;++Fe)fn[Fe]=7;for(var Fe=280;Fe<288;++Fe)fn[Fe]=8;var ws=new Nt(32);for(var Fe=0;Fe<32;++Fe)ws[Fe]=5;var lP=Di(fn,9,0),cP=Di(ws,5,0),Em=function(e){return(e/8>>0)+(e&7&&1)},_m=function(e,t,r){(r==null||r>e.length)&&(r=e.length);var n=new(e instanceof gt?gt:e instanceof Yi?Yi:Nt)(r-t);return n.set(e.subarray(t,r)),n},sr=function(e,t,r){r<<=t&7;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8},pi=function(e,t,r){r<<=t&7;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},Ua=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,o=r.slice();if(!i)return[new Nt(0),0];if(i==1){var s=new Nt(r[0].s+1);return s[r[0].s]=1,[s,1]}r.sort(function(_,S){return _.f-S.f}),r.push({s:-1,f:25001});var a=r[0],u=r[1],c=0,l=1,f=2;for(r[0]={s:-1,f:a.f+u.f,l:a,r:u};l!=i-1;)a=r[r[c].f<r[f].f?c++:f++],u=r[c!=l&&r[c].f<r[f].f?c++:f++],r[l++]={s:-1,f:a.f+u.f,l:a,r:u};for(var d=o[0].s,n=1;n<i;++n)o[n].s>d&&(d=o[n].s);var h=new gt(d+1),v=$u(r[l-1],h,0);if(v>t){var n=0,p=0,b=v-t,E=1<<b;for(o.sort(function(S,A){return h[A.s]-h[S.s]||S.f-A.f});n<i;++n){var m=o[n].s;if(h[m]>t)p+=E-(1<<v-h[m]),h[m]=t;else break}for(p>>>=b;p>0;){var g=o[n].s;h[g]<t?p-=1<<t-h[g]++-1:++n}for(;n>=0&&p;--n){var y=o[n].s;h[y]==t&&(--h[y],++p)}v=t}return[new Nt(h),v]},$u=function(e,t,r){return e.s==-1?Math.max($u(e.l,t,r+1),$u(e.r,t,r+1)):t[e.s]=r},$d=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new gt(++t),n=0,i=e[0],o=1,s=function(u){r[n++]=u},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return[r.subarray(0,n),t]},gi=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},Wu=function(e,t,r){var n=r.length,i=Em(t+2);e[i]=n&255,e[i+1]=n>>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var o=0;o<n;++o)e[i+o+4]=r[o];return(i+4+n)*8},Wd=function(e,t,r,n,i,o,s,a,u,c,l){sr(t,l++,r),++i[256];for(var f=Ua(i,15),d=f[0],h=f[1],v=Ua(o,15),p=v[0],b=v[1],E=$d(d),m=E[0],g=E[1],y=$d(p),_=y[0],S=y[1],A=new gt(19),C=0;C<m.length;++C)A[m[C]&31]++;for(var C=0;C<_.length;++C)A[_[C]&31]++;for(var I=Ua(A,7),P=I[0],R=I[1],k=19;k>4&&!P[qd[k-1]];--k);var N=c+5<<3,$=gi(i,fn)+gi(o,ws)+s,ee=gi(i,d)+gi(o,p)+s+14+3*k+gi(A,P)+(2*A[16]+3*A[17]+7*A[18]);if(N<=$&&N<=ee)return Wu(t,l,e.subarray(u,u+c));var B,z,K,Q;if(sr(t,l,1+(ee<$)),l+=2,ee<$){B=Di(d,h,0),z=d,K=Di(p,b,0),Q=p;var ae=Di(P,R,0);sr(t,l,g-257),sr(t,l+5,S-1),sr(t,l+10,k-4),l+=14;for(var C=0;C<k;++C)sr(t,l+3*C,P[qd[C]]);l+=3*k;for(var fe=[m,_],pe=0;pe<2;++pe)for(var ye=fe[pe],C=0;C<ye.length;++C){var be=ye[C]&31;sr(t,l,ae[be]),l+=P[be],be>15&&(sr(t,l,ye[C]>>>5&127),l+=ye[C]>>>12)}}else B=lP,z=fn,K=cP,Q=ws;for(var C=0;C<a;++C)if(n[C]>255){var be=n[C]>>>18&31;pi(t,l,B[be+257]),l+=z[be+257],be>7&&(sr(t,l,n[C]>>>23&31),l+=Yl[be]);var de=n[C]&31;pi(t,l,K[de]),l+=Q[de],de>3&&(pi(t,l,n[C]>>>5&8191),l+=Jl[de])}else pi(t,l,B[n[C]]),l+=z[n[C]];return pi(t,l,B[256]),l+z[256]},fP=new Yi([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),dP=function(e,t,r,n,i,o){var s=e.length,a=new Nt(n+s+5*(1+Math.floor(s/7e3))+i),u=a.subarray(n,a.length-i),c=0;if(!t||s<8)for(var l=0;l<=s;l+=65535){var f=l+65535;f<s?c=Wu(u,c,e.subarray(l,f)):(u[l]=o,c=Wu(u,c,e.subarray(l,s)))}else{for(var d=fP[t-1],h=d>>>13,v=d&8191,p=(1<<r)-1,b=new gt(32768),E=new gt(p+1),m=Math.ceil(r/3),g=2*m,y=function(T){return(e[T]^e[T+1]<<m^e[T+2]<<g)&p},_=new Yi(25e3),S=new gt(288),A=new gt(32),C=0,I=0,l=0,P=0,R=0,k=0;l<s;++l){var N=y(l),$=l&32767,ee=E[N];if(b[$]=ee,E[N]=$,R<=l){var B=s-l;if((C>7e3||P>24576)&&B>423){c=Wd(e,u,0,_,S,A,I,P,k,l-k,c),P=C=I=0,k=l;for(var z=0;z<286;++z)S[z]=0;for(var z=0;z<30;++z)A[z]=0}var K=2,Q=0,ae=v,fe=$-ee&32767;if(B>2&&N==y(l-fe))for(var pe=Math.min(h,B)-1,ye=Math.min(32767,l),be=Math.min(258,B);fe<=ye&&--ae&&$!=ee;){if(e[l+K]==e[l+K-fe]){for(var de=0;de<be&&e[l+de]==e[l+de-fe];++de);if(de>K){if(K=de,Q=fe,de>pe)break;for(var me=Math.min(fe,de-2),M=0,z=0;z<me;++z){var Z=l-fe+z+32768&32767,X=b[Z],re=Z-X+32768&32767;re>M&&(M=re,ee=Z)}}}$=ee,ee=b[$],fe+=$-ee+32768&32767}if(Q){_[P++]=268435456|qu[K]<<18|Vd[Q];var F=qu[K]&31,ge=Vd[Q]&31;I+=Yl[F]+Jl[ge],++S[257+F],++A[ge],R=l+K,++C}else _[P++]=e[l],++S[e[l]]}}c=Wd(e,u,o,_,S,A,I,P,k,l-k,c)}return _m(a,0,n+Em(c)+i)},hP=function(){var e=1,t=0;return{p:function(r){for(var n=e,i=t,o=r.length,s=0;s!=o;){for(var a=Math.min(s+5552,o);s<a;++s)n+=r[s],i+=n;n%=65521,i%=65521}e=n,t=i},d:function(){return(e>>>8<<16|(t&255)<<8|t>>>8)+((e&255)<<23)*2}}},vP=function(e,t,r,n,i){return dP(e,t.level==null?6:t.level,t.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):12+t.mem,r,n,!0)},pP=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},gP=function(e,t){var r=t.level,n=r==0?0:r<6?1:r==9?3:2;e[0]=120,e[1]=n<<6|(n?32-2*n:1)};function mP(e,t){t===void 0&&(t={});var r=hP();r.p(e);var n=vP(e,t,2,4);return gP(n,t),pP(n,n.length-4,r.d()),n}function yP(e,t){var r=e.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var n=new Nt(e.length+(e.length>>>1)),i=0,o=function(c){n[i++]=c},s=0;s<r;++s){if(i+5>n.length){var a=new Nt(i+8+(r-s<<1));a.set(n),n=a}var u=e.charCodeAt(s);u<128||t?o(u):u<2048?(o(192|u>>>6),o(128|u&63)):u>55295&&u<57344?(u=65536+(u&1047552)|e.charCodeAt(++s)&1023,o(240|u>>>18),o(128|u>>>12&63),o(128|u>>>6&63),o(128|u&63)):(o(224|u>>>12),o(128|u>>>6&63),o(128|u&63))}return _m(n,0,i)}function bP(e,t){for(var r="",n=0;n<e.length;){var i=e[n++];r+=String.fromCharCode(i)}return r}const EP="v1",_P=e=>{const t={...e,v:EP};return bP(mP(yP(JSON.stringify(t))))};var SP=2e3,wP=(function(){function e(t,r,n,i){var o=this,s;this.taskQueue=[],this.isProcessing=!1,this.compressEvent=function(f){var d=_P(f);return JSON.stringify(d)},this.addCompressedEventToManager=function(f,d){o.eventsManager&&o.deviceId&&o.eventsManager.addEvent({event:{type:"replay",data:f},sessionId:d,deviceId:o.deviceId})},this.addCompressedEvent=function(f,d){if(o.worker)try{o.worker.postMessage({event:f,sessionId:d})}catch(v){v.name==="DataCloneError"?o.worker.postMessage(JSON.stringify({event:f,sessionId:d})):o.config.loggerProvider.warn("Unexpected error while posting message to worker:",v)}else{var h=o.compressEvent(f);o.addCompressedEventToManager(h,d)}},this.terminate=function(){var f;(f=o.worker)===null||f===void 0||f.terminate()};var a=le();if(this.canUseIdleCallback=a&&"requestIdleCallback"in a,this.eventsManager=t,this.config=r,this.deviceId=n,this.timeout=((s=r.performanceConfig)===null||s===void 0?void 0:s.timeout)||SP,i){r.loggerProvider.log("Enabling web worker for compression");try{var u=new Blob([i],{type:"application/javascript"}),c=URL.createObjectURL(u),l=new Worker(c);l.onerror=function(f){f.preventDefault(),r.loggerProvider.error("Worker failed, falling back to non-worker compression:",f),l.terminate(),o.worker=void 0},l.onmessage=function(f){var d=f.data,h=d.compressedEvent,v=d.sessionId;o.addCompressedEventToManager(h,v)},this.worker=l}catch(f){r.loggerProvider.error("Failed to create worker, falling back to non-worker compression:",f)}}}return e.prototype.scheduleIdleProcessing=function(){var t=this;this.isProcessing||(this.isProcessing=!0,requestIdleCallback(function(r){t.processQueue(r)},{timeout:this.timeout}))},e.prototype.enqueueEvent=function(t,r){var n;this.canUseIdleCallback&&(!((n=this.config.performanceConfig)===null||n===void 0)&&n.enabled)?(this.config.loggerProvider.debug("Enqueuing event for processing during idle time."),this.taskQueue.push({event:t,sessionId:r}),this.scheduleIdleProcessing()):(this.config.loggerProvider.debug("Processing event without idle callback."),this.addCompressedEvent(t,r))},e.prototype.processQueue=function(t){for(var r=this;this.taskQueue.length>0&&(t.timeRemaining()>0||t.didTimeout);){var n=this.taskQueue.shift();if(n){var i=n.event,o=n.sessionId;this.addCompressedEvent(i,o)}}this.taskQueue.length>0?requestIdleCallback(function(s){r.processQueue(s)},{timeout:this.timeout}):this.isProcessing=!1},e})(),TP="Unexpected error occurred",AP="Network error occurred, event batch rejected",Gd="Session replay event batch rejected due to exceeded retry count",En="Failed to store session replay events in IndexedDB",CP="Session replay event batch not sent due to missing device ID",IP="Session replay event batch not sent due to missing api key",Gu="1.35.1",kP=(function(){function e(t){var r=t.trackServerUrl,n=t.loggerProvider,i=t.payloadBatcher;this.storageKey="",this.retryTimeout=1e3,this.scheduled=null,this.queue=[],this.loggerProvider=n,this.payloadBatcher=i||function(o){return o},this.trackServerUrl=r}return e.prototype.sendEventsList=function(t){this.addToQueue(D(D({},t),{attempts:0,timeout:0}))},e.prototype.addToQueue=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=r.filter(function(o){return o.attempts<(o.flushMaxRetries||0)?(o.attempts+=1,!0):(t.completeRequest({context:o,err:Gd}),!1)});i.forEach(function(o){t.queue=t.queue.concat(o),t.schedule(0)})},e.prototype.schedule=function(t){var r=this;this.scheduled||(this.scheduled=setTimeout(function(){r.flush(!0).then(function(){r.queue.length>0&&r.schedule(t)})},t))},e.prototype.flush=function(t){return t===void 0&&(t=!1),x(this,void 0,void 0,function(){var r,n,i,o,s,a,u;return O(this,function(c){switch(c.label){case 0:r=this.queue,this.queue=[],this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),c.label=1;case 1:c.trys.push([1,6,7,8]),n=ce(r),i=n.next(),c.label=2;case 2:return i.done?[3,5]:(o=i.value,[4,this.send(o,t)]);case 3:c.sent(),c.label=4;case 4:return i=n.next(),[3,2];case 5:return[3,8];case 6:return s=c.sent(),a={error:s},[3,8];case 7:try{i&&!i.done&&(u=n.return)&&u.call(n)}finally{if(a)throw a.error}return[7];case 8:return[2]}})})},e.prototype.send=function(t,r){var n,i;return r===void 0&&(r=!0),x(this,void 0,void 0,function(){var o,s,a,u,c,l,f,d,h,v,p,b,E;return O(this,function(m){switch(m.label){case 0:if(o=t.apiKey,!o)return[2,this.completeRequest({context:t,err:IP})];if(s=t.deviceId,!s)return[2,this.completeRequest({context:t,err:CP})];if(a=Qk(),u=Gu,c=t.sampleRate,l=new URLSearchParams({device_id:s,session_id:"".concat(t.sessionId),type:"".concat(t.type)}),f="".concat(((n=t.version)===null||n===void 0?void 0:n.type)||"standalone","/").concat(((i=t.version)===null||i===void 0?void 0:i.version)||u),d=this.payloadBatcher({version:1,events:t.events}),d.events.length===0)return this.completeRequest({context:t}),[2];m.label=1;case 1:return m.trys.push([1,6,,7]),h={headers:{"Content-Type":"application/json",Accept:"*/*",Authorization:"Bearer ".concat(o),"X-Client-Version":u,"X-Client-Library":f,"X-Client-Url":a.substring(0,zk),"X-Client-Sample-Rate":"".concat(c),"X-Sampling-Hash-Alg":"xxhash32"},body:JSON.stringify(d),method:"POST"},v="".concat(Xl(t.serverZone,this.trackServerUrl),"?").concat(l.toString()),[4,fetch(v,h)];case 2:if(p=m.sent(),p===null)return this.completeRequest({context:t,err:TP}),[2];if(r)return[3,3];b="";try{b=JSON.stringify(p.body,null,2)}catch{}return this.completeRequest({context:t,success:"".concat(p.status,": ").concat(b)}),[3,5];case 3:return[4,this.handleReponse(p.status,t)];case 4:m.sent(),m.label=5;case 5:return[3,7];case 6:return E=m.sent(),this.completeRequest({context:t,err:E}),[3,7];case 7:return[2]}})})},e.prototype.handleReponse=function(t,r){return x(this,void 0,void 0,function(){var n,i;return O(this,function(o){switch(o.label){case 0:switch(n=new no().buildStatus(t),i=n,i){case qe.Success:return[3,1];case qe.Failed:return[3,2]}return[3,4];case 1:return this.handleSuccessResponse(r),[3,5];case 2:return[4,this.handleOtherResponse(r)];case 3:return o.sent(),[3,5];case 4:this.completeRequest({context:r,err:AP}),o.label=5;case 5:return[2]}})})},e.prototype.handleSuccessResponse=function(t){var r=Math.round(new Blob(t.events).size/cm);this.completeRequest({context:t,success:"Session replay event batch tracked successfully for session id ".concat(t.sessionId,", size of events: ").concat(r," KB")})},e.prototype.handleOtherResponse=function(t){return x(this,void 0,void 0,function(){var r;return O(this,function(n){switch(n.label){case 0:return r=t.attempts*this.retryTimeout,t.attempts++,t.attempts>(t.flushMaxRetries||0)?(this.completeRequest({context:t,err:Gd}),[2]):[4,new Promise(function(i){return setTimeout(i,r)})];case 1:return n.sent(),[4,this.send(t,!0)];case 2:return n.sent(),[2]}})})},e.prototype.completeRequest=function(t){var r=t.context,n=t.err,i=t.success;r.onComplete(),n?this.loggerProvider.warn(n):i&&this.loggerProvider.log(i)},e})();const Ku=(e,t)=>t.some(r=>e instanceof r);let Kd,zd;function PP(){return Kd||(Kd=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function RP(){return zd||(zd=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const zu=new WeakMap,Fa=new WeakMap,Ks=new WeakMap;function OP(e){const t=new Promise((r,n)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{r(ln(e.result)),i()},s=()=>{n(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return Ks.set(t,e),t}function xP(e){if(zu.has(e))return;const t=new Promise((r,n)=>{const i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{r(),i()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});zu.set(e,t)}let Xu={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return zu.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return ln(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function Sm(e){Xu=e(Xu)}function NP(e){return RP().includes(e)?function(...t){return e.apply(Yu(this),t),ln(this.request)}:function(...t){return ln(e.apply(Yu(this),t))}}function LP(e){return typeof e=="function"?NP(e):(e instanceof IDBTransaction&&xP(e),Ku(e,PP())?new Proxy(e,Xu):e)}function ln(e){if(e instanceof IDBRequest)return OP(e);if(Fa.has(e))return Fa.get(e);const t=LP(e);return t!==e&&(Fa.set(e,t),Ks.set(t,e)),t}const Yu=e=>Ks.get(e);function wm(e,t,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),a=ln(s);return n&&s.addEventListener("upgradeneeded",u=>{n(ln(s.result),u.oldVersion,u.newVersion,ln(s.transaction),u)}),r&&s.addEventListener("blocked",u=>r(u.oldVersion,u.newVersion,u)),a.then(u=>{o&&u.addEventListener("close",()=>o()),i&&u.addEventListener("versionchange",c=>i(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}const MP=["get","getKey","getAll","getAllKeys","count"],DP=["put","add","delete","clear"],Ha=new Map;function Xd(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Ha.get(t))return Ha.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,i=DP.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||MP.includes(r)))return;const o=async function(s,...a){const u=this.transaction(s,i?"readwrite":"readonly");let c=u.store;return n&&(c=c.index(a.shift())),(await Promise.all([c[r](...a),i&&u.done]))[0]};return Ha.set(t,o),o}Sm(e=>({...e,get:(t,r,n)=>Xd(t,r)||e.get(t,r,n),has:(t,r)=>!!Xd(t,r)||e.has(t,r)}));const UP=["continue","continuePrimaryKey","advance"],Yd={},Ju=new WeakMap,Tm=new WeakMap,FP={get(e,t){if(!UP.includes(t))return e[t];let r=Yd[t];return r||(r=Yd[t]=function(...n){Ju.set(this,Tm.get(this)[t](...n))}),r}};async function*HP(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const r=new Proxy(t,FP);for(Tm.set(r,t),Ks.set(r,Yu(t));t;)yield r,t=await(Ju.get(r)||t.continue()),Ju.delete(r)}function Jd(e,t){return t===Symbol.asyncIterator&&Ku(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&Ku(e,[IDBIndex,IDBObjectStore])}Sm(e=>({...e,get(t,r,n){return Jd(t,r)?HP:e.get(t,r,n)},has(t,r){return Jd(t,r)||e.has(t,r)}}));var Am=(function(){function e(t){var r=this,n,i,o;this.minInterval=Gk,this.maxInterval=Kk,this.maxPersistedEventsSize=Vk,this.interval=this.minInterval,this._timeAtLastSplit=Date.now(),this.shouldSplitEventsList=function(s,a){var u=r.getStringSize(a),c=r.getEventsArraySize(s);return c+u>=r.maxPersistedEventsSize?!0:Date.now()-r.timeAtLastSplit>r.interval&&s.length?(r.interval=Math.min(r.maxInterval,r.interval+r.minInterval),r._timeAtLastSplit=Date.now(),!0):!1},this.loggerProvider=t.loggerProvider,this.minInterval=(n=t.minInterval)!==null&&n!==void 0?n:this.minInterval,this.maxInterval=(i=t.maxInterval)!==null&&i!==void 0?i:this.maxInterval,this.maxPersistedEventsSize=(o=t.maxPersistedEventsSize)!==null&&o!==void 0?o:this.maxPersistedEventsSize}return Object.defineProperty(e.prototype,"timeAtLastSplit",{get:function(){return this._timeAtLastSplit},enumerable:!1,configurable:!0}),e.prototype.getStringSize=function(t){return t.length},e.prototype.getEventsArraySize=function(t){var r,n,i=0;try{for(var o=ce(t),s=o.next();!s.done;s=o.next()){var a=s.value;i+=this.getStringSize(a)}}catch(c){r={error:c}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}var u=2+Math.max(0,t.length-1)+t.length*2;return i+u},e})(),BP=function(e){return typeof e=="object"&&e!==null&&e.name==="AbortError"},lr=function(e,t,r){BP(r)?e.debug(t):e.warn(t)},Ui="sessionCurrentSequence",Fi="sequencesToSend",jP=function(e){var t,r;return e.objectStoreNames.contains(Ui)||(r=e.createObjectStore(Ui,{keyPath:"sessionId"})),e.objectStoreNames.contains(Fi)||(t=e.createObjectStore(Fi,{keyPath:"sequenceId",autoIncrement:!0}),t.createIndex("sessionId","sessionId")),{sequencesStore:t,currentSequenceStore:r}},qP=function(e){return x(void 0,void 0,void 0,function(){return O(this,function(t){switch(t.label){case 0:return[4,wm(e,1,{upgrade:jP})];case 1:return[2,t.sent()]}})})},VP=(function(e){Dt(t,e);function t(r){var n=e.call(this,r)||this;return n.getSequencesToSend=function(){return x(n,void 0,void 0,function(){var i,o,s,a,u,c;return O(this,function(l){switch(l.label){case 0:return l.trys.push([0,5,,6]),i=[],[4,this.db.transaction("sequencesToSend").store.openCursor()];case 1:o=l.sent(),l.label=2;case 2:return o?(s=o.value,a=s.sessionId,u=s.events,i.push({events:u,sequenceId:o.key,sessionId:a}),[4,o.continue()]):[3,4];case 3:return o=l.sent(),[3,2];case 4:return[2,i];case 5:return c=l.sent(),lr(this.loggerProvider,"".concat(En,": ").concat(c),c),[3,6];case 6:return[2,void 0]}})})},n.storeCurrentSequence=function(i){return x(n,void 0,void 0,function(){var o,s,a;return O(this,function(u){switch(u.label){case 0:return u.trys.push([0,4,,5]),[4,this.db.get(Ui,i)];case 1:return o=u.sent(),o?[4,this.db.put(Fi,{sessionId:i,events:o.events})]:[2,void 0];case 2:return s=u.sent(),[4,this.db.put(Ui,{sessionId:i,events:[]})];case 3:return u.sent(),[2,D(D({},o),{sessionId:i,sequenceId:s})];case 4:return a=u.sent(),lr(this.loggerProvider,"".concat(En,": ").concat(a),a),[3,5];case 5:return[2,void 0]}})})},n.addEventToCurrentSequence=function(i,o){return x(n,void 0,void 0,function(){var s,a,u,c,l,f;return O(this,function(d){switch(d.label){case 0:return d.trys.push([0,10,,11]),s=this.db.transaction(Ui,"readwrite"),[4,s.store.get(i)];case 1:return a=d.sent(),a?[3,3]:[4,s.store.put({sessionId:i,events:[o]})];case 2:return d.sent(),[2];case 3:return u=void 0,this.shouldSplitEventsList(a.events,o)?(u=a.events,[4,s.store.put({sessionId:i,events:[o]})]):[3,5];case 4:return d.sent(),[3,7];case 5:return c=a.events.concat(o),[4,s.store.put({sessionId:i,events:c})];case 6:d.sent(),d.label=7;case 7:return[4,s.done];case 8:return d.sent(),u?[4,this.storeSendingEvents(i,u)]:[2,void 0];case 9:return l=d.sent(),l?[2,{events:u,sessionId:i,sequenceId:l}]:[2,void 0];case 10:return f=d.sent(),lr(this.loggerProvider,"".concat(En,": ").concat(f),f),[3,11];case 11:return[2,void 0]}})})},n.storeSendingEvents=function(i,o){return x(n,void 0,void 0,function(){var s,a;return O(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,this.db.put(Fi,{sessionId:i,events:o})];case 1:return s=u.sent(),[2,s];case 2:return a=u.sent(),lr(this.loggerProvider,"".concat(En,": ").concat(a),a),[3,3];case 3:return[2,void 0]}})})},n.cleanUpSessionEventsStore=function(i,o){return x(n,void 0,void 0,function(){var s;return O(this,function(a){switch(a.label){case 0:if(!o)return[2];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.db.delete(Fi,o)];case 2:return a.sent(),[3,4];case 3:return s=a.sent(),lr(this.loggerProvider,"".concat(En,": ").concat(s),s),[3,4];case 4:return[2]}})})},n.db=r.db,n}return t.new=function(r,n){return x(this,void 0,void 0,function(){var i,o,s,a;return O(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),i=r==="replay"?"":"_".concat(r),o="".concat(n.apiKey.substring(0,10),"_amp_session_replay_events").concat(i),[4,qP(o)];case 1:return s=u.sent(),[2,new t(D(D({},n),{db:s}))];case 2:return a=u.sent(),lr(n.loggerProvider,"".concat(En,": ").concat(a),a),[3,3];case 3:return[2]}})})},t.prototype.getCurrentSequenceEvents=function(r){return x(this,void 0,void 0,function(){var s,n,i,o,s,a,u,c;return O(this,function(l){switch(l.label){case 0:return r?[4,this.db.get("sessionCurrentSequence",r)]:[3,2];case 1:return s=l.sent(),s?[2,[s]]:[2,void 0];case 2:n=[],l.label=3;case 3:return l.trys.push([3,8,9,10]),[4,this.db.getAll("sessionCurrentSequence")];case 4:i=ce.apply(void 0,[l.sent()]),o=i.next(),l.label=5;case 5:if(o.done)return[3,7];s=o.value,n.push(s),l.label=6;case 6:return o=i.next(),[3,5];case 7:return[3,10];case 8:return a=l.sent(),u={error:a},[3,10];case 9:try{o&&!o.done&&(c=i.return)&&c.call(i)}finally{if(u)throw u.error}return[7];case 10:return[2,n]}})})},t})(Am),$P=(function(e){Dt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.finalizedSequences={},r.sequences={},r.sequenceId=0,r}return t.prototype.resetCurrentSequence=function(r){this.sequences[r]=[]},t.prototype.addSequence=function(r){var n=this.sequenceId++,i=Ee([],oe(this.sequences[r]),!1);return this.finalizedSequences[n]={sessionId:r,events:i},this.resetCurrentSequence(r),{sequenceId:n,events:i,sessionId:r}},t.prototype.getSequencesToSend=function(){return x(this,void 0,void 0,function(){return O(this,function(r){return[2,Object.entries(this.finalizedSequences).map(function(n){var i=oe(n,2),o=i[0],s=i[1],a=s.sessionId,u=s.events;return{sequenceId:Number(o),sessionId:a,events:u}})]})})},t.prototype.storeCurrentSequence=function(r){return x(this,void 0,void 0,function(){return O(this,function(n){return this.sequences[r]?[2,this.addSequence(r)]:[2,void 0]})})},t.prototype.addEventToCurrentSequence=function(r,n){return x(this,void 0,void 0,function(){var i;return O(this,function(o){return this.sequences[r]||this.resetCurrentSequence(r),this.shouldSplitEventsList(this.sequences[r],n)&&(i=this.addSequence(r)),this.sequences[r].push(n),[2,i]})})},t.prototype.storeSendingEvents=function(r,n){return x(this,void 0,void 0,function(){return O(this,function(i){return this.finalizedSequences[this.sequenceId]={sessionId:r,events:n},[2,this.sequenceId++]})})},t.prototype.cleanUpSessionEventsStore=function(r,n){return x(this,void 0,void 0,function(){return O(this,function(i){return n!==void 0&&delete this.finalizedSequences[n],[2]})})},t})(Am),Qd=function(e){var t=e.config,r=e.minInterval,n=e.maxInterval,i=e.type,o=e.payloadBatcher,s=e.storeType;return x(void 0,void 0,void 0,function(){function a(E){return E===void 0&&(E=!1),x(this,void 0,void 0,function(){return O(this,function(m){return[2,u.flush(E)]})})}var u,c,l,f,d,h,v,p,b;return O(this,function(E){switch(E.label){case 0:return u=new kP(D(D({},t),{loggerProvider:t.loggerProvider,payloadBatcher:o})),c=function(){return new $P({loggerProvider:t.loggerProvider,maxInterval:n,minInterval:r})},l=function(){return x(void 0,void 0,void 0,function(){var m;return O(this,function(g){switch(g.label){case 0:return[4,VP.new(i,{loggerProvider:t.loggerProvider,minInterval:r,maxInterval:n,apiKey:t.apiKey})];case 1:return m=g.sent(),m?[2,m]:(t.loggerProvider.log("Failed to initialize idb store, falling back to memory store."),[2,c()])}})})},s!=="idb"?[3,2]:[4,l()];case 1:return d=E.sent(),[3,3];case 2:d=c(),E.label=3;case 3:return f=d,h=function(m){var g=m.events,y=m.sessionId,_=m.deviceId,S=m.sequenceId;t.debugMode&&hm().then(function(A){var C=A.totalStorageSize,I=A.percentOfQuota,P=A.usageDetails;t.loggerProvider.debug("Total storage size: ".concat(C," KB, percentage of quota: ").concat(I,"%, usage details: ").concat(P))}).catch(function(){}),u.sendEventsList({events:g,sessionId:y,flushMaxRetries:t.flushMaxRetries,apiKey:t.apiKey,deviceId:_,sampleRate:t.sampleRate,serverZone:t.serverZone,version:t.version,type:i,onComplete:function(){return x(void 0,void 0,void 0,function(){return O(this,function(A){switch(A.label){case 0:return[4,f.cleanUpSessionEventsStore(y,S)];case 1:return A.sent(),[2]}})})}})},v=function(m){var g=m.sessionId,y=m.deviceId;f.storeCurrentSequence(g).then(function(_){_&&h({sequenceId:_.sequenceId,events:_.events,sessionId:_.sessionId,deviceId:y})}).catch(function(_){t.loggerProvider.warn("Failed to get current sequence of session replay events for session:",_)})},p=function(m){var g=m.deviceId;return x(void 0,void 0,void 0,function(){var y;return O(this,function(_){switch(_.label){case 0:return[4,f.getSequencesToSend()];case 1:return y=_.sent(),y&&y.forEach(function(S){h({sequenceId:S.sequenceId,events:S.events,sessionId:S.sessionId,deviceId:g})}),[2]}})})},b=function(m){var g=m.event,y=m.sessionId,_=m.deviceId;f.addEventToCurrentSequence(y,g.data).then(function(S){return S&&h({sequenceId:S.sequenceId,events:S.events,sessionId:S.sessionId,deviceId:_})}).catch(function(S){t.loggerProvider.warn("Failed to add event to session replay capture:",S)})},[2,{sendCurrentSequenceEvents:v,addEvent:b,sendStoredEvents:p,flush:a}]}})})},Zd=(function(){function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=new Map;t.forEach(function(i){n.set(i.name,i.manager)}),this.managers=n}return e.prototype.sendStoredEvents=function(t){return x(this,void 0,void 0,function(){var r;return O(this,function(n){switch(n.label){case 0:return r=[],this.managers.forEach(function(i){r.push(i.sendStoredEvents(t))}),[4,Promise.all(r)];case 1:return n.sent(),[2]}})})},e.prototype.addEvent=function(t){var r,n=t.sessionId,i=t.event,o=t.deviceId;(r=this.managers.get(i.type))===null||r===void 0||r.addEvent({sessionId:n,event:i,deviceId:o})},e.prototype.sendCurrentSequenceEvents=function(t){var r=t.sessionId,n=t.deviceId;this.managers.forEach(function(i){i.sendCurrentSequenceEvents({sessionId:r,deviceId:n})})},e.prototype.flush=function(t){return x(this,void 0,void 0,function(){var r;return O(this,function(n){switch(n.label){case 0:return r=[],this.managers.forEach(function(i){r.push(i.flush(t))}),[4,Promise.all(r)];case 1:return n.sent(),[2]}})})},e})(),Lt,Ql,Cm;function WP(e,t){if(Cm=new Date,e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if(e.tagName.toLowerCase()==="html")return"html";var r={root:document.body,idName:function(o){return!0},className:function(o){return!0},tagName:function(o){return!0},attr:function(o,s){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4,timeoutMs:void 0};Lt=D(D({},r),t),Ql=GP(Lt.root,r);var n=Po(e,"all",function(){return Po(e,"two",function(){return Po(e,"one",function(){return Po(e,"none")})})});if(n){var i=Pm(Rm(n,e));return i.length>0&&(n=i[0]),zs(n)}else throw new Error("Selector was not found.")}function GP(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}function Po(e,t,r){for(var n=null,i=[],o=e,s=0,a=function(){var c,l,f=new Date().getTime()-Cm.getTime();if(Lt.timeoutMs!==void 0&&f>Lt.timeoutMs)throw new Error("Timeout: Can't find a unique selector after ".concat(f,"ms"));var d=Oo(KP(o))||Oo.apply(void 0,Ee([],oe(zP(o)),!1))||Oo.apply(void 0,Ee([],oe(XP(o)),!1))||Oo(YP(o))||[rh()],h=JP(o);if(t=="all")h&&(d=d.concat(d.filter(Ba).map(function(m){return Ro(m,h)})));else if(t=="two")d=d.slice(0,1),h&&(d=d.concat(d.filter(Ba).map(function(m){return Ro(m,h)})));else if(t=="one"){var v=oe(d=d.slice(0,1),1),p=v[0];h&&Ba(p)&&(d=[Ro(p,h)])}else t=="none"&&(d=[rh()],h&&(d=[Ro(d[0],h)]));try{for(var b=(c=void 0,ce(d)),E=b.next();!E.done;E=b.next()){var p=E.value;p.level=s}}catch(m){c={error:m}}finally{try{E&&!E.done&&(l=b.return)&&l.call(b)}finally{if(c)throw c.error}}if(i.push(d),i.length>=Lt.seedMinLength&&(n=eh(i,r),n))return"break";o=o.parentElement,s++};o;){var u=a();if(u==="break")break}return n||(n=eh(i,r)),!n&&r?r():n}function eh(e,t){var r,n,i=Pm(km(e));if(i.length>Lt.threshold)return t?t():null;try{for(var o=ce(i),s=o.next();!s.done;s=o.next()){var a=s.value;if(Im(a))return a}}catch(u){r={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null}function zs(e){for(var t=e[0],r=t.name,n=1;n<e.length;n++){var i=e[n].level||0;t.level===i-1?r="".concat(e[n].name," > ").concat(r):r="".concat(e[n].name," ").concat(r),t=e[n]}return r}function th(e){return e.map(function(t){return t.penalty}).reduce(function(t,r){return t+r},0)}function Im(e){var t=zs(e);switch(Ql.querySelectorAll(t).length){case 0:throw new Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function KP(e){var t=e.getAttribute("id");return t&&Lt.idName(t)?{name:"#"+CSS.escape(t),penalty:0}:null}function zP(e){var t=Array.from(e.attributes).filter(function(r){return Lt.attr(r.name,r.value)});return t.map(function(r){return{name:"[".concat(CSS.escape(r.name),'="').concat(CSS.escape(r.value),'"]'),penalty:.5}})}function XP(e){var t=Array.from(e.classList).filter(Lt.className);return t.map(function(r){return{name:"."+CSS.escape(r),penalty:1}})}function YP(e){var t=e.tagName.toLowerCase();return Lt.tagName(t)?{name:t,penalty:2}:null}function rh(){return{name:"*",penalty:3}}function JP(e){var t=e.parentNode;if(!t)return null;var r=t.firstChild;if(!r)return null;for(var n=0;r&&(r.nodeType===Node.ELEMENT_NODE&&n++,r!==e);)r=r.nextSibling;return n}function Ro(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Ba(e){return e.name!=="html"&&!e.name.startsWith("#")}function Oo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.filter(QP);return r.length>0?r:null}function QP(e){return e!=null}function km(e,t){var r,n,i,o,s,a;return t===void 0&&(t=[]),O(this,function(u){switch(u.label){case 0:if(!(e.length>0))return[3,9];u.label=1;case 1:u.trys.push([1,6,7,8]),r=ce(e[0]),n=r.next(),u.label=2;case 2:return n.done?[3,5]:(i=n.value,[5,ce(km(e.slice(1,e.length),t.concat(i)))]);case 3:u.sent(),u.label=4;case 4:return n=r.next(),[3,2];case 5:return[3,8];case 6:return o=u.sent(),s={error:o},[3,8];case 7:try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}return[7];case 8:return[3,11];case 9:return[4,t];case 10:u.sent(),u.label=11;case 11:return[2]}})}function Pm(e){return Ee([],oe(e),!1).sort(function(t,r){return th(t)-th(r)})}function Rm(e,t,r){var n,i,o;return r===void 0&&(r={counter:0,visited:new Map}),O(this,function(s){switch(s.label){case 0:if(!(e.length>2&&e.length>Lt.optimizedMinLength))return[3,5];n=1,s.label=1;case 1:return n<e.length-1?r.counter>Lt.maxNumberOfTries?[2]:(r.counter+=1,i=Ee([],oe(e),!1),i.splice(n,1),o=zs(i),r.visited.has(o)?[2]:Im(i)&&ZP(i,t)?[4,i]:[3,4]):[3,5];case 2:return s.sent(),r.visited.set(o,!0),[5,ce(Rm(i,t,r))];case 3:s.sent(),s.label=4;case 4:return n++,[3,1];case 5:return[2]}})}function ZP(e,t){return Ql.querySelector(zs(e))===t}var eR=36e5,tR=function(e){var t=e.version,r=e.events,n=[];return r.forEach(function(i){var o=JSON.parse(i);o.count=1,o.type==="click"&&n.push(o)}),{version:t,events:n}},rR=function(e){var t=e.version,r=e.events,n=[];r.forEach(function(o){var s=JSON.parse(o);s.type==="click"&&n.push(s)});var i=n.reduce(function(o,s){var a=s.x,u=s.y,c=s.selector,l=s.timestamp,f=l-l%eR,d="".concat(a,":").concat(u,":").concat(c??"",":").concat(f);return o[d]?o[d].count+=1:o[d]=D(D({},s),{timestamp:f,count:1}),o},{});return{version:t,events:Object.values(i)}},nR=(function(){function e(t,r){var n=this;this.createHook=function(i){var o=i.eventsManager,s=i.sessionId,a=i.deviceIdFn,u=i.mirror,c=i.ugcFilterRules,l=i.performanceOptions;return function(f){if(f.type===mm.Click){var d=le();if(d){var h=d.location,v=d.innerHeight,p=d.innerWidth;if(h){var b=f.x,E=f.y;if(!(b===void 0||E===void 0)){var m=u.getNode(f.id),g;if(m)try{g=WP(m,l)}catch{n.logger.debug("error resolving selector from finder")}var y=Gs(h.href,c),_={x:b+n.scrollWatcher.currentScrollX,y:E+n.scrollWatcher.currentScrollY,selector:g,viewportHeight:v,viewportWidth:p,pageUrl:y,timestamp:Date.now(),type:"click"},S=a();S&&o.addEvent({sessionId:s,event:{type:"interaction",data:JSON.stringify(_)},deviceId:S})}}}}}},this.logger=t,this.scrollWatcher=r}return e})();function ja(){var e=le();return e?.innerHeight||document.documentElement&&document.documentElement.clientHeight||0}function qa(){var e=le();return e?.innerWidth||document.documentElement&&document.documentElement.clientWidth||0}var iR=(function(){function e(t,r){var n=le();n&&n.navigator&&typeof n.navigator.sendBeacon=="function"?this.sendBeacon=function(i,o){try{if(n.navigator.sendBeacon(i,JSON.stringify(o)))return!0}catch{}return!1}:this.sendBeacon=function(){return!1},this.sendXhr=function(i,o){var s=new XMLHttpRequest;return s.open("POST",i,!0),s.setRequestHeader("Accept","*/*"),s.send(JSON.stringify(o)),!0},this.basePageUrl=Xl(r.serverZone,r.trackServerUrl),this.apiKey=r.apiKey,this.context=t}return e.prototype.send=function(t,r){var n=this.context,i=n.sessionId,o=n.type,s=new URLSearchParams({device_id:t,session_id:String(i),type:String(o),api_key:this.apiKey}),a="".concat(this.basePageUrl,"?").concat(s.toString());this.sendBeacon(a,r)||this.sendXhr(a,r)},e})(),oR=(function(){function e(t,r){var n=this;this.timestamp=Date.now(),this.hook=function(i){n.update(i)},this.send=function(i){return function(o){var s,a,u,c,l=i(),f=le();if(f&&l){var d=(s=f.scrollX)!==null&&s!==void 0?s:0,h=(a=f.scrollY)!==null&&a!==void 0?a:0;(d>0||h>0)&&n.update({id:1,x:d,y:h}),n.transport.send(l,{version:1,events:[{maxScrollX:n._maxScrollX,maxScrollY:n._maxScrollY,maxScrollWidth:n._maxScrollWidth,maxScrollHeight:n._maxScrollHeight,viewportHeight:ja(),viewportWidth:qa(),pageUrl:Gs(f.location.href,(c=(u=n.config.interactionConfig)===null||u===void 0?void 0:u.ugcFilterRules)!==null&&c!==void 0?c:[]),timestamp:n.timestamp,type:"scroll"}]})}}},this._maxScrollX=0,this._maxScrollY=0,this._currentScrollX=0,this._currentScrollY=0,this._maxScrollWidth=qa(),this._maxScrollHeight=ja(),this.config=r,this.transport=t}return e.default=function(t,r){return new e(new iR(t,r),r)},Object.defineProperty(e.prototype,"maxScrollX",{get:function(){return this._maxScrollX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollY",{get:function(){return this._maxScrollY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollWidth",{get:function(){return this._maxScrollWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollHeight",{get:function(){return this._maxScrollHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentScrollX",{get:function(){return this._currentScrollX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentScrollY",{get:function(){return this._currentScrollY},enumerable:!1,configurable:!0}),e.prototype.update=function(t){var r=Date.now();if(this._currentScrollX=t.x,this._currentScrollY=t.y,t.x>this._maxScrollX){var n=qa();this._maxScrollX=t.x;var i=t.x+n;i>this._maxScrollWidth&&(this._maxScrollWidth=i),this.timestamp=r}if(t.y>this._maxScrollY){var o=ja();this._maxScrollY=t.y;var s=t.y+o;s>this._maxScrollHeight&&(this._maxScrollHeight=s),this.timestamp=r}},e})(),nh=(function(){function e(t){var r=t.sessionId,n=t.deviceId;this.deviceId=n,this.sessionId=r,r&&n&&(this.sessionReplayId=Zk(r,n))}return e})(),sR=1e3*60*60*24*2,aR=(function(){function e(){var t=this;this.dbs={},this.createStore=function(r){return x(t,void 0,void 0,function(){return O(this,function(n){switch(n.label){case 0:return[4,wm(r,1,{upgrade:function(i){i.objectStoreNames.contains("sessionTargetingMatch")||i.createObjectStore("sessionTargetingMatch",{keyPath:"sessionId"})}})];case 1:return[2,n.sent()]}})})},this.openOrCreateDB=function(r){return x(t,void 0,void 0,function(){var n,i;return O(this,function(o){switch(o.label){case 0:return this.dbs&&this.dbs[r]?[2,this.dbs[r]]:(n="".concat(r.substring(0,10),"_amp_session_replay_targeting"),[4,this.createStore(n)]);case 1:return i=o.sent(),this.dbs[r]=i,[2,i]}})})},this.getTargetingMatchForSession=function(r){var n=r.loggerProvider,i=r.apiKey,o=r.sessionId;return x(t,void 0,void 0,function(){var s,a,u,c;return O(this,function(l){switch(l.label){case 0:return l.trys.push([0,3,,4]),[4,this.openOrCreateDB(i)];case 1:return s=l.sent(),a=String(o),[4,s.get("sessionTargetingMatch",a)];case 2:return u=l.sent(),[2,u?.targetingMatch];case 3:return c=l.sent(),lr(n,"Failed to get targeting match for session id ".concat(o,": ").concat(c),c),[3,4];case 4:return[2,void 0]}})})},this.storeTargetingMatchForSession=function(r){var n=r.loggerProvider,i=r.apiKey,o=r.sessionId,s=r.targetingMatch;return x(t,void 0,void 0,function(){var a,u,c,l;return O(this,function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),[4,this.openOrCreateDB(i)];case 1:return a=f.sent(),u=String(o),[4,a.put("sessionTargetingMatch",{targetingMatch:s,sessionId:u,lastUpdated:Date.now()})];case 2:return c=f.sent(),[2,c];case 3:return l=f.sent(),lr(n,"Failed to store targeting match for session id ".concat(o,": ").concat(l),l),[3,4];case 4:return[2,void 0]}})})},this.clearStoreOfOldSessions=function(r){var n=r.loggerProvider,i=r.apiKey,o=r.currentSessionId;return x(t,void 0,void 0,function(){var s,a,u,c,l,f,d,h;return O(this,function(v){switch(v.label){case 0:return v.trys.push([0,8,,9]),[4,this.openOrCreateDB(i)];case 1:return s=v.sent(),a=String(o),u=s.transaction("sessionTargetingMatch","readwrite"),[4,u.store.getAll()];case 2:c=v.sent(),l=0,v.label=3;case 3:return l<c.length?(f=c[l],d=Date.now()-f.lastUpdated,f.sessionId!==a&&d>sR?[4,u.store.delete(f.sessionId)]:[3,5]):[3,6];case 4:v.sent(),v.label=5;case 5:return l++,[3,3];case 6:return[4,u.done];case 7:return v.sent(),[3,9];case 8:return h=v.sent(),lr(n,"Failed to clear old targeting matches for sessions: ".concat(h),h),[3,9];case 9:return[2]}})})}}return e})(),Va=new aR,uR=function(e){var t=e.sessionId,r=e.targetingConfig,n=e.loggerProvider,i=e.apiKey,o=e.targetingParams,s=e.urlChange,a=s===void 0?!1:s;return x(void 0,void 0,void 0,function(){var u,c,l,f,d,h,v;return O(this,function(p){switch(p.label){case 0:return[4,Va.clearStoreOfOldSessions({loggerProvider:n,apiKey:i,currentSessionId:t})];case 1:return p.sent(),[4,Va.getTargetingMatchForSession({loggerProvider:n,apiKey:i,sessionId:t})];case 2:if(u=p.sent(),u===!0&&!a)return[2,!0];c=!0,p.label=3;case 3:return p.trys.push([3,6,,7]),[4,Yt(()=>import("./RzjnwIMW.js"),[],import.meta.url)];case 4:return l=p.sent().evaluateTargeting,f=D(D({},o),{flag:r,sessionId:typeof t=="string"?parseInt(t,10):t,apiKey:i,loggerProvider:n}),[4,l(f)];case 5:return d=p.sent(),d&&d.sr_targeting_config&&(c=d.sr_targeting_config.key==="on"),Va.storeTargetingMatchForSession({loggerProvider:n,apiKey:i,sessionId:t,targetingMatch:c}),[3,7];case 6:return h=p.sent(),v=h,n.warn(v.message),[3,7];case 7:return[2,c]}})})},Go=2654435761,Ko=2246822519,ih=3266489917,lR=668265263,oh=374761393;function Jr(e,t){return(e<<t|e>>>32-t)>>>0}function xo(e,t){return e=e+Math.imul(t,Ko)>>>0,e=Jr(e,13),e=Math.imul(e,Go)>>>0,e}function mi(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function cR(e){for(var t=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n>=55296&&n<=56319&&r+1<e.length){var i=e.charCodeAt(r+1);i>=56320&&i<=57343&&(n=(n-55296<<10)+(i-56320)+65536,r++)}n<128?t.push(n):n<2048?t.push(192|n>>6,128|n&63):n<65536?t.push(224|n>>12,128|n>>6&63,128|n&63):t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|n&63)}return new Uint8Array(t)}function fR(e,t){t===void 0&&(t=0);var r=cR(e),n=r.length,i,o=0;if(n>=16){for(var s=t+Go+Ko>>>0,a=t+Ko>>>0,u=t>>>0,c=t-Go>>>0;o<=n-16;)s=xo(s,mi(r,o)),o+=4,a=xo(a,mi(r,o)),o+=4,u=xo(u,mi(r,o)),o+=4,c=xo(c,mi(r,o)),o+=4;i=Jr(s,1)+Jr(a,7)+Jr(u,12)+Jr(c,18)>>>0}else i=t+oh>>>0;for(i=i+n>>>0;o<=n-4;)i=i+Math.imul(mi(r,o),ih)>>>0,i=Math.imul(Jr(i,17),lR)>>>0,o+=4;for(;o<n;)i=i+Math.imul(r[o],oh)>>>0,i=Math.imul(Jr(i,11),Go)>>>0,o++;return i^=i>>>15,i=Math.imul(i,Ko)>>>0,i^=i>>>13,i=Math.imul(i,ih)>>>0,i^=i>>>16,i>>>0}function dR(e,t){var r=fR(e.toString()),n=r%1e6;return n/1e6<t}var $a="__amplitude_url_tracking_patched__",sh=new WeakMap;function Om(e,t,r){if(r===void 0&&(r={}),!e?.location)return function(){};var n=r.enablePolling,i=n===void 0?!1:n,o=r.pollingInterval,s=o===void 0?zl:o;if(i){var a=function(){var y;return(y=e.location.href)!==null&&y!==void 0?y:""},u=a(),c=e.setInterval(function(){var y=a();y!==u&&(u=y,t(y))},s);return function(){c!=null&&e.clearInterval(c)}}var l=sh.get(e);if(!l){var f=void 0,d=new Set,h=function(){var y;return(y=e.location.href)!==null&&y!==void 0?y:""},v=function(){var y=h();f!==void 0&&y===f||(f=y,d.forEach(function(_){return _(y)}))},p=function(y){var _=function(){for(var S=[],A=0;A<arguments.length;A++)S[A]=arguments[A];var C=y.apply(this,S);return v(),C};return _[$a]=!0,_},b=e.history;if(b?.pushState){var E=Reflect.get(b,"pushState");E[$a]||(b.pushState=p(E))}if(b?.replaceState){var m=Reflect.get(b,"replaceState");m[$a]||(b.replaceState=p(m))}l={callbacks:d,notify:v,onPopStateOrHashChange:function(){return v()},listenersAttached:!1},sh.set(e,l)}var g=l;return g.listenersAttached||(e.addEventListener("popstate",g.onPopStateOrHashChange),e.addEventListener("hashchange",g.onPopStateOrHashChange),g.listenersAttached=!0),g.callbacks.add(t),function(){g.callbacks.delete(t),g.callbacks.size===0&&g.listenersAttached&&(e.removeEventListener("popstate",g.onPopStateOrHashChange),e.removeEventListener("hashchange",g.onPopStateOrHashChange),g.listenersAttached=!1)}}function xm(e){return e===void 0&&(e={}),{name:"amplitude/url-tracking@1",observer:function(t,r,n){var i,o,s,a=D(D({},e),n),u=a.ugcFilterRules||[],c=(i=a.enablePolling)!==null&&i!==void 0?i:!1,l=(o=a.pollingInterval)!==null&&o!==void 0?o:zl,f=(s=a.captureDocumentTitle)!==null&&s!==void 0?s:!1;if(!r)return function(){};var d=void 0,h=function(){return r.location&&r.location.href||""},v=function(){var E=r.innerHeight,m=r.innerWidth,g=r.document,y=h(),_="";f&&(_=g?.title||"");var S=u.length>0?Gs(y,u):y;return{href:S,title:_,viewportHeight:E,viewportWidth:m,type:"url-change-event"}},p=function(){var E=h();if(d===void 0||E!==d){d=E;var m=v();t(m)}},b=Om(r,function(){return p()},c?{enablePolling:!0,pollingInterval:l}:{});return p(),function(){return b()}},options:e}}xm();var hR=(function(){function e(){var t=this;this.name="@amplitude/session-replay-browser",this.recordCancelCallback=null,this.eventCount=0,this.sessionTargetingMatch=!1,this.pageLeaveFns=[],this.recordFunction=null,this.urlChangeCleanup=null,this.latestUrlChangeTargetingEvaluationId=0,this.teardownEventListeners=function(r){var n=le();n&&(n.removeEventListener("blur",t.blurListener),n.removeEventListener("focus",t.focusListener),!r&&n.addEventListener("blur",t.blurListener),!r&&n.addEventListener("focus",t.focusListener),n.self&&"onpagehide"in n.self?(n.removeEventListener("pagehide",t.pageLeaveListener),!r&&n.addEventListener("pagehide",t.pageLeaveListener)):(n.removeEventListener("beforeunload",t.pageLeaveListener),!r&&n.addEventListener("beforeunload",t.pageLeaveListener)))},this.blurListener=function(){t.sendEvents()},this.focusListener=function(){t.recordEvents(!1)},this.pageLeaveListener=function(r){t.pageLeaveFns.forEach(function(n){n(r)})},this.evaluateTargetingAndCapture=function(r,n,i,o){return n===void 0&&(n=!1),i===void 0&&(i=!1),o===void 0&&(o=!1),x(t,void 0,void 0,function(){var s,a,u,c,l,f,d,h,v,p,b,E,m;return O(this,function(g){switch(g.label){case 0:if(!this.identifiers||!this.identifiers.sessionId||!this.config)return this.identifiers&&!this.identifiers.sessionId?this.loggerProvider.log("Session ID has not been set yet, cannot evaluate targeting for Session Replay."):this.loggerProvider.warn("Session replay init has not been called, cannot evaluate targeting."),[2];if(!this.config.targetingConfig)if(n)this.loggerProvider.log("Targeting config has not been set yet, cannot evaluate targeting.");else return this.loggerProvider.log("No targeting config set, skipping initialization/recording for event."),[2];return this.lastTargetingParams=r,s=this.config.targetingConfig,a=s&&!this.sessionTargetingMatch,a?(u=o?this.latestUrlChangeTargetingEvaluationId:void 0,c=r.event,c&&Object.values(St).includes(c.event_type)&&(c=void 0),l=(E=(v=(h=r.page)===null||h===void 0?void 0:h.url)!==null&&v!==void 0?v:(b=(p=le())===null||p===void 0?void 0:p.location)===null||b===void 0?void 0:b.href)!==null&&E!==void 0?E:"",f=(m=r.page)!==null&&m!==void 0?m:l!==""?{url:l}:void 0,[4,uR({sessionId:this.identifiers.sessionId,targetingConfig:s,loggerProvider:this.loggerProvider,apiKey:this.config.apiKey,targetingParams:{userProperties:r.userProperties,event:c,page:f},urlChange:o})]):[3,2];case 1:if(d=g.sent(),o&&u!==void 0&&u!==this.latestUrlChangeTargetingEvaluationId)return this.loggerProvider.debug("Ignoring stale URL-change targeting result #".concat(u,"; latest is #").concat(this.latestUrlChangeTargetingEvaluationId,".")),[2];this.sessionTargetingMatch=this.sessionTargetingMatch||d,this.loggerProvider.debug(JSON.stringify({name:"targeted replay capture config",sessionTargetingMatch:this.sessionTargetingMatch,event:c,targetingParams:r},null,2)),g.label=2;case 2:return n?(this.initialize(!0),[3,5]):[3,3];case 3:return i||!this.recordCancelCallback?(this.loggerProvider.log("Recording events for session due to forceRestart or no ongoing recording."),[4,this.recordEvents()]):[3,5];case 4:g.sent(),g.label=5;case 5:return[2]}})})},this.addCustomRRWebEvent=function(r,n,i){return n===void 0&&(n={}),i===void 0&&(i=!0),x(t,void 0,void 0,function(){var o,s,a,u;return O(this,function(c){switch(c.label){case 0:return c.trys.push([0,3,,4]),o=void 0,s=this.config,s&&r!==Pr.METADATA?(o={config:vm(s),version:Gu},i?[4,hm()]:[3,2]):[3,2];case 1:a=c.sent(),o=D(D({},a),o),c.label=2;case 2:return this.recordCancelCallback&&this.recordFunction?this.recordFunction.addCustomEvent(r,D(D({},n),o)):this.loggerProvider.debug("Not able to add custom replay capture event ".concat(r," due to no ongoing recording.")),[3,4];case 3:return u=c.sent(),this.loggerProvider.debug("Error while adding custom replay capture event: ",u),[3,4];case 4:return[2]}})})},this.stopRecordingEvents=function(){var r;try{t.loggerProvider.log("Session Replay capture stopping."),t.recordCancelCallback&&t.recordCancelCallback(),t.recordCancelCallback=null,(r=t.networkObservers)===null||r===void 0||r.stop()}catch(i){var n=i;t.loggerProvider.warn("Error occurred while stopping replay capture: ".concat(n.toString()))}},this.loggerProvider=new Bu(new Xn)}return e.prototype.init=function(t,r){return rt(this._init(t,r))},e.prototype.setupUrlChangeListenerForTargeting=function(){var t=this,r;(r=this.urlChangeCleanup)===null||r===void 0||r.call(this);var n=le();if(n?.location){var i=function(s){var a=++t.latestUrlChangeTargetingEvaluationId;t.evaluateTargetingAndCapture({userProperties:{},event:void 0,page:{url:s}},!1,!1,!0),t.loggerProvider.debug("Queued URL-change targeting re-evaluation #".concat(a," for ").concat(s,"."))},o=Om(n,i);this.urlChangeCleanup=function(){o(),t.urlChangeCleanup=null}}},e.prototype.getCurrentPageForTargeting=function(){var t,r,n=(r=(t=le())===null||t===void 0?void 0:t.location)===null||r===void 0?void 0:r.href;return n!=null?{url:n}:void 0},e.prototype._init=function(t,r){var n,i,o,s,a,u,c,l;return x(this,void 0,void 0,function(){var f,d,h,v,p,b,E,m,g,y,C,_,S,A,C,I,P,R,k;return O(this,function(N){switch(N.label){case 0:return(n=this.urlChangeCleanup)===null||n===void 0||n.call(this),this.loggerProvider=new Bu(r.loggerProvider||new Xn),Object.prototype.hasOwnProperty.call(r,"logLevel")&&this.loggerProvider.enable(r.logLevel),this.identifiers=new nh({sessionId:r.sessionId,deviceId:r.deviceId}),f=this,[4,sP(t,r)];case 1:return f.joinedConfigGenerator=N.sent(),[4,this.joinedConfigGenerator.generateJoinedConfig()];case 2:d=N.sent(),h=d.joinedConfig,v=d.localConfig,p=d.remoteConfig,this.config=h,this.setMetadata(r.sessionId,h,v,p,(i=r.version)===null||i===void 0?void 0:i.version,Gu,(o=r.version)===null||o===void 0?void 0:o.type),r.sessionId&&(!((s=this.config.interactionConfig)===null||s===void 0)&&s.enabled)&&(b=oR.default({sessionId:r.sessionId,type:"interaction"},this.config),this.pageLeaveFns=[b.send(this.getDeviceId.bind(this)).bind(b)],this.scrollHook=b.hook.bind(b),this.clickHandler=new nR(this.loggerProvider,b)),E=[],m=this.config.storeType,m==="idb"&&!(!((a=le())===null||a===void 0)&&a.indexedDB)&&(m="memory",this.loggerProvider.warn("Could not use preferred indexedDB storage, reverting to in memory option.")),this.loggerProvider.log("Using ".concat(m," for event storage.")),N.label=3;case 3:return N.trys.push([3,5,,6]),[4,Qd({config:this.config,type:"replay",storeType:m})];case 4:return g=N.sent(),E.push({name:"replay",manager:g}),[3,6];case 5:return y=N.sent(),C=y,this.loggerProvider.warn("Error occurred while creating replay events manager: ".concat(C.toString())),[3,6];case 6:if(!(!((u=this.config.interactionConfig)===null||u===void 0)&&u.enabled))return[3,10];_=this.config.interactionConfig.batch?rR:tR,N.label=7;case 7:return N.trys.push([7,9,,10]),[4,Qd({config:this.config,type:"interaction",minInterval:(c=this.config.interactionConfig.trackEveryNms)!==null&&c!==void 0?c:$k,maxInterval:Wk,payloadBatcher:_,storeType:m})];case 8:return S=N.sent(),E.push({name:"interaction",manager:S}),[3,10];case 9:return A=N.sent(),C=A,this.loggerProvider.warn("Error occurred while creating interaction events manager: ".concat(C.toString())),[3,10];case 10:return this.eventsManager=new(Zd.bind.apply(Zd,Ee([void 0],oe(E),!1))),this.eventCompressor&&this.eventCompressor.terminate(),I=void 0,P=le(),this.config.useWebWorker&&P&&P.Worker?[4,Yt(()=>import("./D7Bf6Say.js"),[],import.meta.url)]:[3,12];case 11:R=N.sent().compressionScript,I=R,N.label=12;case 12:return this.eventCompressor=new wP(this.eventsManager,this.config,this.getDeviceId(),I),[4,this.initializeNetworkObservers()];case 13:return N.sent(),!((l=le())===null||l===void 0)&&l.opener&&(k=yg(),bg(k),k.setup(D({logger:this.loggerProvider},this.config.serverZone&&{endpoint:gg[this.config.serverZone]}))),this.loggerProvider.log("Installing @amplitude/session-replay-browser."),this.teardownEventListeners(!1),[4,this.evaluateTargetingAndCapture({userProperties:r.userProperties,page:this.getCurrentPageForTargeting()},!0)];case 14:return N.sent(),this.config.targetingConfig&&this.setupUrlChangeListenerForTargeting(),[2]}})})},e.prototype.setSessionId=function(t,r){return rt(this.asyncSetSessionId(t,r))},e.prototype.asyncSetSessionId=function(t,r,n){var i;return x(this,void 0,void 0,function(){var o,s,a;return O(this,function(u){switch(u.label){case 0:return this.latestUrlChangeTargetingEvaluationId++,this.sessionTargetingMatch=!1,this.lastShouldRecordDecision=void 0,o=this.identifiers&&this.identifiers.sessionId,o&&this.sendEvents(o),s=r||this.getDeviceId(),this.identifiers=new nh({sessionId:t,deviceId:s}),this.joinedConfigGenerator&&o?[4,this.joinedConfigGenerator.generateJoinedConfig()]:[3,2];case 1:a=u.sent().joinedConfig,this.config=a,u.label=2;case 2:return!((i=this.config)===null||i===void 0)&&i.targetingConfig?[4,this.evaluateTargetingAndCapture({userProperties:n?.userProperties,page:this.getCurrentPageForTargeting()},!1,!0)]:[3,4];case 3:return u.sent(),[3,6];case 4:return[4,this.recordEvents()];case 5:u.sent(),u.label=6;case 6:return[2]}})})},e.prototype.getSessionReplayProperties=function(){var t,r=this.config,n=this.identifiers;if(!r||!n)return this.loggerProvider.warn("Session replay init has not been called, cannot get session replay properties."),{};var i=this.getShouldRecord(),o={};return i&&(o=(t={},t[Dk]=n.sessionReplayId?n.sessionReplayId:null,t),r.debugMode&&(o[Bk]=JSON.stringify({appHash:Ru(r.apiKey).toString()}))),this.addCustomRRWebEvent(Pr.GET_SR_PROPS,{shouldRecord:i,eventProperties:o},this.eventCount===10),this.eventCount===10&&(this.eventCount=0),this.eventCount++,o},e.prototype.sendEvents=function(t){var r,n=t||((r=this.identifiers)===null||r===void 0?void 0:r.sessionId),i=this.getDeviceId();this.eventsManager&&n&&i&&this.eventsManager.sendCurrentSequenceEvents({sessionId:n,deviceId:i})},e.prototype.initialize=function(t){var r;return t===void 0&&(t=!1),x(this,void 0,void 0,function(){var n;return O(this,function(i){return!((r=this.identifiers)===null||r===void 0)&&r.sessionId?(n=this.getDeviceId(),n?(this.eventsManager&&t&&this.eventsManager.sendStoredEvents({deviceId:n}),[2,this.recordEvents()]):(this.loggerProvider.log("Session is not being recorded due to lack of device id."),[2,Promise.resolve()])):(this.loggerProvider.log("Session is not being recorded due to lack of session id."),[2,Promise.resolve()])})})},e.prototype.shouldOptOut=function(){var t,r,n;if(!((t=this.config)===null||t===void 0)&&t.instanceName){var i=Yn(this.config.instanceName).identityStore;n=i.getIdentity().optOut}return n!==void 0?n:(r=this.config)===null||r===void 0?void 0:r.optOut},e.prototype.getShouldRecord=function(){if(!this.identifiers||!this.config||!this.identifiers.sessionId)return this.loggerProvider.warn("Session is not being recorded due to lack of config, please call sessionReplay.init."),!1;if(!this.config.captureEnabled)return this.loggerProvider.log("Session ".concat(this.identifiers.sessionId," not being captured due to capture being disabled for project or because the remote config could not be fetched.")),!1;if(this.shouldOptOut())return this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to optOut config.")),!1;var t=!1,r="",n=!1;if(this.config.targetingConfig)this.sessionTargetingMatch?(r="Capturing replays for session ".concat(this.identifiers.sessionId," due to matching targeting conditions."),this.loggerProvider.log(r),t=!0,n=!0):(r="Not capturing replays for session ".concat(this.identifiers.sessionId," due to not matching targeting conditions."),this.loggerProvider.log(r),t=!1,n=!1);else{var i=dR(this.identifiers.sessionId,this.config.sampleRate);i?(t=!0,n=!0):(r="Opting session ".concat(this.identifiers.sessionId," out of recording due to sample rate."),this.loggerProvider.log(r),t=!1,n=!1)}return this.lastShouldRecordDecision!==t&&this.config.targetingConfig&&(this.addCustomRRWebEvent(Pr.TARGETING_DECISION,{message:r,sessionId:this.identifiers.sessionId,matched:n,targetingParams:this.lastTargetingParams}),this.lastShouldRecordDecision=t),t},e.prototype.getBlockSelectors=function(){var t,r,n,i=(n=(r=(t=this.config)===null||t===void 0?void 0:t.privacyConfig)===null||r===void 0?void 0:r.blockSelector)!==null&&n!==void 0?n:[];if(i.length!==0)return i},e.prototype.getMaskTextSelectors=function(){var t,r,n,i;if(((r=(t=this.config)===null||t===void 0?void 0:t.privacyConfig)===null||r===void 0?void 0:r.defaultMaskLevel)==="conservative")return"*";var o=(i=(n=this.config)===null||n===void 0?void 0:n.privacyConfig)===null||i===void 0?void 0:i.maskSelector;if(o)return o},e.prototype.getRecordingPlugins=function(t){var r,n,i,o,s,a;return x(this,void 0,void 0,function(){var u,c,l,f;return O(this,function(d){switch(d.label){case 0:u=[];try{c=xm({ugcFilterRules:((n=(r=this.config)===null||r===void 0?void 0:r.interactionConfig)===null||n===void 0?void 0:n.ugcFilterRules)||[],enablePolling:((i=this.config)===null||i===void 0?void 0:i.enableUrlChangePolling)||!1,pollingInterval:(o=this.config)===null||o===void 0?void 0:o.urlChangePollingInterval,captureDocumentTitle:(s=this.config)===null||s===void 0?void 0:s.captureDocumentTitle}),u.push(c)}catch(h){this.loggerProvider.warn("Failed to create URL tracking plugin:",h)}if(!(!((a=t?.console)===null||a===void 0)&&a.enabled))return[3,4];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Yt(()=>import("./sPdhR0i8.js"),[],import.meta.url)];case 2:return l=d.sent().getRecordConsolePlugin,u.push(l({level:t.console.levels})),[3,4];case 3:return f=d.sent(),this.loggerProvider.warn("Failed to load console plugin:",f),[3,4];case 4:return[2,u.length>0?u:void 0]}})})},e.prototype.getRecordFunction=function(){return x(this,void 0,void 0,function(){var t,r;return O(this,function(n){switch(n.label){case 0:if(this.recordFunction)return[2,this.recordFunction];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,Yt(()=>import("./DMrp4Fbu.js"),[],import.meta.url)];case 2:return t=n.sent().record,this.recordFunction=t,[2,t];case 3:return r=n.sent(),this.loggerProvider.warn("Failed to load rrweb-record module:",r),[2,null];case 4:return[2]}})})},e.prototype.recordEvents=function(t){var r,n,i,o,s,a,u,c;return t===void 0&&(t=!0),x(this,void 0,void 0,function(){var l,f,d,h,v,p,b,E,m,g,y,_,S,A,C,I,P=this;return O(this,function(R){switch(R.label){case 0:return l=this.config,f=this.getShouldRecord(),d=(r=this.identifiers)===null||r===void 0?void 0:r.sessionId,!f||!d||!l?[2]:(this.stopRecordingEvents(),[4,this.getRecordFunction()]);case 1:return h=R.sent(),h?[4,this.initializeNetworkObservers()]:[2];case 2:R.sent(),v=(n=l.loggingConfig)===null||n===void 0?void 0:n.network,p=Xl(l.serverZone,l.trackServerUrl),b=[am,um,lm,p],(i=this.networkObservers)===null||i===void 0||i.start(function(k){b.some(function(N){return k.url.startsWith(N)})||P.addCustomRRWebEvent(Pr.FETCH_REQUEST,k)},v),E=l.privacyConfig,m=l.interactionConfig,g=l.loggingConfig,y=m?.enabled?{mouseInteraction:this.eventsManager&&((o=this.clickHandler)===null||o===void 0?void 0:o.createHook({eventsManager:this.eventsManager,sessionId:d,deviceIdFn:this.getDeviceId.bind(this),mirror:h.mirror,ugcFilterRules:(s=m.ugcFilterRules)!==null&&s!==void 0?s:[],performanceOptions:(a=l.performanceConfig)===null||a===void 0?void 0:a.interaction})),scroll:this.scrollHook}:{},_=m?.enabled&&m.ugcFilterRules?m.ugcFilterRules:[],this.loggerProvider.log("Session Replay capture beginning for ".concat(d,".")),R.label=3;case 3:return R.trys.push([3,5,,6]),S=this,A=h,I={emit:function(k){if(P.shouldOptOut()){P.loggerProvider.log("Opting session ".concat(d," out of recording due to optOut config.")),P.stopRecordingEvents(),P.sendEvents();return}k.type===gm.Meta&&(k.data.href=Gs(k.data.href,_)),P.eventCompressor&&P.eventCompressor.enqueueEvent(k,d)},inlineStylesheet:l.shouldInlineStylesheet,hooks:y,maskAllInputs:!0,maskTextClass:sm,blockClass:jk,blockSelector:this.getBlockSelectors(),applyBackgroundColorToBlockedElements:l.applyBackgroundColorToBlockedElements,maskInputFn:jd("input",E),maskTextFn:jd("text",E),maskAttributeFn:Jk(E),maskTextSelector:this.getMaskTextSelectors(),recordCanvas:!1,slimDOMOptions:{script:(u=l.omitElementTags)===null||u===void 0?void 0:u.script,comment:(c=l.omitElementTags)===null||c===void 0?void 0:c.comment},errorHandler:function(k){var N=k;if(N.message.includes("insertRule")&&N.message.includes("CSSStyleSheet")||N._external_)throw N;return P.loggerProvider.warn("Error while capturing replay: ",N.toString()),!0}},[4,this.getRecordingPlugins(g)];case 4:return S.recordCancelCallback=A.apply(void 0,[(I.plugins=R.sent(),I)]),this.addCustomRRWebEvent(Pr.DEBUG_INFO),t&&this.addCustomRRWebEvent(Pr.METADATA,this.metadata),[3,6];case 5:return C=R.sent(),this.loggerProvider.warn("Failed to initialize session replay:",C),[3,6];case 6:return[2]}})})},e.prototype.getDeviceId=function(){var t;return(t=this.identifiers)===null||t===void 0?void 0:t.deviceId},e.prototype.getSessionId=function(){var t;return(t=this.identifiers)===null||t===void 0?void 0:t.sessionId},e.prototype.flush=function(t){var r;return t===void 0&&(t=!1),x(this,void 0,void 0,function(){return O(this,function(n){return[2,(r=this.eventsManager)===null||r===void 0?void 0:r.flush(t)]})})},e.prototype.shutdown=function(){var t;(t=this.urlChangeCleanup)===null||t===void 0||t.call(this),this.teardownEventListeners(!0),this.stopRecordingEvents(),this.sendEvents()},e.prototype.mapSDKType=function(t){return t==="plugin"?"@amplitude/plugin-session-replay-browser":t==="segment"?"@amplitude/segment-session-replay-plugin":null},e.prototype.setMetadata=function(t,r,n,i,o,s,a){var u=t?.toString()?Ru(t.toString()):void 0;this.metadata={joinedConfig:r,localConfig:n,remoteConfig:i,sessionId:t,hashValue:u,sampleRate:r.sampleRate,replaySDKType:this.mapSDKType(a),replaySDKVersion:o,standaloneSDKType:"@amplitude/session-replay-browser",standaloneSDKVersion:s}},e.prototype.initializeNetworkObservers=function(){var t,r,n;return x(this,void 0,void 0,function(){var i,o;return O(this,function(s){switch(s.label){case 0:if(!(!((n=(r=(t=this.config)===null||t===void 0?void 0:t.loggingConfig)===null||r===void 0?void 0:r.network)===null||n===void 0)&&n.enabled&&!this.networkObservers))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Yt(()=>import("./DfTiELZi.js"),[],import.meta.url)];case 2:return i=s.sent().NetworkObservers,this.networkObservers=new i,[3,4];case 3:return o=s.sent(),this.loggerProvider.warn("Failed to import or instantiate NetworkObservers:",o),[3,4];case 4:return[2]}})})},e})(),zr=function(e){return function(){var t=e.config,r=t||pm(),n=r.loggerProvider,i=r.logLevel;return{logger:n,logLevel:i}}},vR=function(){var e=new hR;return{init:_e(e.init.bind(e),"init",zr(e)),evaluateTargetingAndCapture:_e(e.evaluateTargetingAndCapture.bind(e),"evaluateTargetingAndRecord",zr(e)),setSessionId:_e(e.setSessionId.bind(e),"setSessionId",zr(e)),getSessionId:_e(e.getSessionId.bind(e),"getSessionId",zr(e)),getSessionReplayProperties:_e(e.getSessionReplayProperties.bind(e),"getSessionReplayProperties",zr(e)),flush:_e(e.flush.bind(e),"flush",zr(e)),shutdown:_e(e.shutdown.bind(e),"shutdown",zr(e))}};const vn=vR();var pR=vn.init,gR=vn.setSessionId,mR=vn.getSessionId,yR=vn.getSessionReplayProperties,bR=vn.flush,ER=vn.shutdown,_R=vn.evaluateTargetingAndCapture,SR=function(e){return e===void 0&&(e="$default_instance"),Ml.getInstance(e)},Rr;(function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"})(Rr||(Rr={}));var ah;(function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE_CURRENCY="$currency",e.REVENUE="$revenue"})(ah||(ah={}));var uh;(function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"})(uh||(uh={}));var wR=[Rr.SET,Rr.SET_ONCE,Rr.ADD,Rr.APPEND,Rr.PREPEND,Rr.POSTINSERT],TR=function(e){if(e.user_properties){var t={},r=Object.keys(e.user_properties);return r.forEach(function(n){if(wR.includes(n)){var i=e.user_properties&&e.user_properties[n];t=D(D({},t),i)}}),t}},lh="1.27.6",AR="[Amplitude]",CR="".concat(AR," Session Replay ID"),Qu=(function(){function e(t){this.name=e.pluginName,this.type="enrichment",this.config=null,this.sessionReplay={flush:bR,getSessionId:mR,getSessionReplayProperties:yR,init:pR,setSessionId:gR,shutdown:ER,evaluateTargetingAndCapture:_R},this.options=D({forceSessionTracking:!1},t),this.srInitOptions=this.options}return e.prototype.setup=function(t,r){var n,i,o,s,a,u,c,l;return x(this,void 0,void 0,function(){var f,d,h;return O(this,function(v){switch(v.label){case 0:return v.trys.push([0,2,,3]),t?.loggerProvider.log("Installing @amplitude/plugin-session-replay, version ".concat(lh,".")),this.config=t,this.options.forceSessionTracking&&(typeof t.defaultTracking=="boolean"?t.defaultTracking===!1&&(t.defaultTracking={pageViews:!1,formInteractions:!1,fileDownloads:!1,sessions:!0}):t.defaultTracking=D(D({},t.defaultTracking),{sessions:!0})),f=SR(this.config.instanceName).identityStore,d=f.getIdentity().userProperties,this.srInitOptions={instanceName:this.config.instanceName,deviceId:(n=this.options.deviceId)!==null&&n!==void 0?n:this.config.deviceId,optOut:this.config.optOut,sessionId:this.options.customSessionId?void 0:this.config.sessionId,loggerProvider:this.config.loggerProvider,logLevel:this.config.logLevel,flushMaxRetries:this.config.flushMaxRetries,serverZone:this.config.serverZone,configServerUrl:this.options.configServerUrl||((i=this.config.remoteConfig)===null||i===void 0?void 0:i.serverUrl),trackServerUrl:this.options.trackServerUrl,sampleRate:this.options.sampleRate,privacyConfig:{blockSelector:(o=this.options.privacyConfig)===null||o===void 0?void 0:o.blockSelector,maskSelector:(s=this.options.privacyConfig)===null||s===void 0?void 0:s.maskSelector,unmaskSelector:(a=this.options.privacyConfig)===null||a===void 0?void 0:a.unmaskSelector,defaultMaskLevel:(u=this.options.privacyConfig)===null||u===void 0?void 0:u.defaultMaskLevel},debugMode:this.options.debugMode,shouldInlineStylesheet:this.options.shouldInlineStylesheet,version:{type:"plugin",version:lh},performanceConfig:this.options.performanceConfig,storeType:this.options.storeType,useWebWorker:(c=this.options.useWebWorker)!==null&&c!==void 0?c:(l=this.options.experimental)===null||l===void 0?void 0:l.useWebWorker,userProperties:d,omitElementTags:this.options.omitElementTags,applyBackgroundColorToBlockedElements:this.options.applyBackgroundColorToBlockedElements,interactionConfig:this.options.interactionConfig,captureDocumentTitle:this.options.captureDocumentTitle,enableUrlChangePolling:this.options.enableUrlChangePolling,urlChangePollingInterval:this.options.urlChangePollingInterval},[4,this.sessionReplay.init(t.apiKey,this.srInitOptions).promise];case 1:return v.sent(),[3,3];case 2:return h=v.sent(),t?.loggerProvider.error("Session Replay: Failed to initialize due to ".concat(h.message)),[3,3];case 3:return[2]}})})},e.prototype.onSessionIdChanged=function(t){var r;return x(this,void 0,void 0,function(){return O(this,function(n){switch(n.label){case 0:return(r=this.config)===null||r===void 0||r.loggerProvider.debug("Analytics session id is changed to ".concat(t,", SR session id is ").concat(String(this.sessionReplay.getSessionId()),".")),[4,this.sessionReplay.setSessionId(t).promise];case 1:return n.sent(),[2]}})})},e.prototype.onOptOutChanged=function(t){var r;return x(this,void 0,void 0,function(){var n;return O(this,function(i){switch(i.label){case 0:return(r=this.config)===null||r===void 0||r.loggerProvider.debug("optOut is changed to ".concat(String(t),", calling ").concat(t?"sessionReplay.shutdown()":"sessionReplay.init()",".")),t?(this.sessionReplay.shutdown(),[3,4]):[3,1];case 1:return n=this.config!=null,n?[4,this.sessionReplay.init(this.config.apiKey,this.srInitOptions).promise]:[3,3];case 2:n=i.sent(),i.label=3;case 3:i.label=4;case 4:return[2]}})})},e.prototype.execute=function(t){var r,n,i;return x(this,void 0,void 0,function(){var o,u,o,s,a,u,c;return O(this,function(l){switch(l.label){case 0:return l.trys.push([0,9,,10]),this.options.customSessionId?(o=this.options.customSessionId(t),o?o===this.sessionReplay.getSessionId()?[3,2]:[4,this.sessionReplay.setSessionId(o).promise]:[3,3]):[3,4];case 1:l.sent(),l.label=2;case 2:u=this.sessionReplay.getSessionReplayProperties(),t.event_properties=D(D({},t.event_properties),u),l.label=3;case 3:return[3,8];case 4:return o=(r=this.config)===null||r===void 0?void 0:r.sessionId,o&&o!==this.sessionReplay.getSessionId()?[4,this.sessionReplay.setSessionId(o).promise]:[3,6];case 5:l.sent(),l.label=6;case 6:return o&&o===t.session_id?(s=void 0,t.event_type===St.IDENTIFY&&(s=TR(t)),a=le(),[4,this.sessionReplay.evaluateTargetingAndCapture({event:t,userProperties:s,page:((n=a?.location)===null||n===void 0?void 0:n.href)!=null?{url:a.location.href}:void 0})]):[3,8];case 7:l.sent(),u=this.sessionReplay.getSessionReplayProperties(),t.event_properties=D(D({},t.event_properties),u),l.label=8;case 8:return t.event_type===St.IDENTIFY&&t.event_properties&&delete t.event_properties[CR],[2,Promise.resolve(t)];case 9:return c=l.sent(),(i=this.config)===null||i===void 0||i.loggerProvider.error("Session Replay: Failed to enrich event due to ".concat(c.message)),[2,Promise.resolve(t)];case 10:return[2]}})})},e.prototype.teardown=function(){var t;return x(this,void 0,void 0,function(){return O(this,function(r){try{this.sessionReplay.shutdown(),this.config=null}catch(n){(t=this.config)===null||t===void 0||t.loggerProvider.error("Session Replay: teardown failed due to ".concat(n.message))}return[2]})})},e.prototype.getSessionReplayProperties=function(){return this.sessionReplay.getSessionReplayProperties()},e.pluginName="@amplitude/plugin-session-replay-browser",e})(),IR=function(e){return new Qu(e)},Zu=function(e,t){return Zu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Zu(e,t)};function Nm(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Zu(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Nr=function(){return Nr=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Nr.apply(this,arguments)};function Lm(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{c(n.next(l))}catch(f){s(f)}}function u(l){try{c(n.throw(l))}catch(f){s(f)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((n=n.apply(e,[])).next())})}function Mm(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function kt(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Zl(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function ec(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var se={IS:"is",IS_NOT:"is not",CONTAINS:"contains",DOES_NOT_CONTAIN:"does not contain",LESS_THAN:"less",LESS_THAN_EQUALS:"less or equal",GREATER_THAN:"greater",GREATER_THAN_EQUALS:"greater or equal",VERSION_LESS_THAN:"version less",VERSION_LESS_THAN_EQUALS:"version less or equal",VERSION_GREATER_THAN:"version greater",VERSION_GREATER_THAN_EQUALS:"version greater or equal",SET_IS:"set is",SET_IS_NOT:"set is not",SET_CONTAINS:"set contains",SET_DOES_NOT_CONTAIN:"set does not contain",SET_CONTAINS_ANY:"set contains any",SET_DOES_NOT_CONTAIN_ANY:"set does not contain any",REGEX_MATCH:"regex match",REGEX_DOES_NOT_MATCH:"regex does not match"},kR=function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t[r++]=i:i<2048?(t[r++]=i>>6|192,t[r++]=i&63|128):(i&64512)==55296&&n+1<e.length&&(e.charCodeAt(n+1)&64512)==56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++n)&1023),t[r++]=i>>18|240,t[r++]=i>>12&63|128,t[r++]=i>>6&63|128,t[r++]=i&63|128):(t[r++]=i>>12|224,t[r++]=i>>6&63|128,t[r++]=i&63|128)}return Uint8Array.from(t)},zo=-862048943,Xo=461845907,Yo=15,PR=13,RR=5,OR=-430675100,xR=function(e,t){t===void 0&&(t=0);for(var r=kR(e),n=r.length,i=n>>2,o=t,s=0;s<i;s++){var a=s<<2,u=MR(r,a);o=NR(u,o)}var c=i<<2,l=0;switch(n-c){case 3:l^=r[c+2]<<16,l^=r[c+1]<<8,l^=r[c],l=Math.imul(l,zo),l=Hi(l,Yo),l=Math.imul(l,Xo),o^=l;break;case 2:l^=r[c+1]<<8,l^=r[c],l=Math.imul(l,zo),l=Hi(l,Yo),l=Math.imul(l,Xo),o^=l;break;case 1:l^=r[c],l=Math.imul(l,zo),l=Hi(l,Yo),l=Math.imul(l,Xo),o^=l;break}return o^=n,LR(o)>>>0},NR=function(e,t){var r=e,n=t;return r=Math.imul(r,zo),r=Hi(r,Yo),r=Math.imul(r,Xo),n^=r,n=Hi(n,PR),n=Math.imul(n,RR),n+OR|0},LR=function(e){var t=e;return t^=t>>>16,t=Math.imul(t,-2048144789),t^=t>>>13,t=Math.imul(t,-1028477387),t^=t>>>16,t},Hi=function(e,t,r){r===void 0&&(r=32),t>r&&(t=t%r);var n=4294967295<<r-t>>>0,i=(e&n)>>>0>>>r-t>>>0;return(e<<t|i)>>>0},MR=function(e,t){t===void 0&&(t=0);var r=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3];return DR(r)},DR=function(e){return(e&-16777216)>>>24|(e&16711680)>>>8|(e&65280)<<8|(e&255)<<24},ch=function(e,t){var r,n;if(!(!t||t.length===0)){try{for(var i=kt(t),o=i.next();!o.done;o=i.next()){var s=o.value;if(!s||!e||typeof e!="object")return;e=e[s]}}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}if(e!=null)return e}},UR="(\\d+)\\.(\\d+)",FR="(\\d+)",HR="(-(([-\\w]+\\.?)*))?",BR="^".concat(UR,"(\\.").concat(FR).concat(HR,")?$"),jR=(function(){function e(t,r,n,i){i===void 0&&(i=void 0),this.major=t,this.minor=r,this.patch=n,this.preRelease=i}return e.parse=function(t){if(t){var r=new RegExp(BR).exec(t);if(r){var n=Number(r[1]),i=Number(r[2]);if(!(isNaN(n)||isNaN(i))){var o=Number(r[4])||0,s=r[5]||void 0;return new e(n,i,o,s)}}}},e.prototype.compareTo=function(t){return this.major>t.major?1:this.major<t.major?-1:this.minor>t.minor?1:this.minor<t.minor?-1:this.patch>t.patch?1:this.patch<t.patch||this.preRelease&&!t.preRelease?-1:!this.preRelease&&t.preRelease?1:this.preRelease&&t.preRelease?this.preRelease>t.preRelease?1:this.preRelease<t.preRelease?-1:0:0},e})(),qR=(function(){function e(){}return e.prototype.evaluate=function(t,r){var n,i,o={},s={context:t,result:o};try{for(var a=kt(r),u=a.next();!u.done;u=a.next()){var c=u.value,l=this.evaluateFlag(s,c);l&&(o[c.key]=l)}}catch(f){n={error:f}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o},e.prototype.evaluateFlag=function(t,r){var n,i,o;try{for(var s=kt(r.segments),a=s.next();!a.done;a=s.next()){var u=a.value;if(o=this.evaluateSegment(t,r,u),o){var c=Nr(Nr(Nr({},r.metadata),u.metadata),o.metadata);o=Nr(Nr({},o),{metadata:c});break}}}catch(l){n={error:l}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o},e.prototype.evaluateSegment=function(t,r,n){if(!n.conditions){var i=this.bucket(t,n);return i!==void 0?r.variants[i]:void 0}var o=this.evaluateConditions(t,n.conditions);if(o){var i=this.bucket(t,n);return i!==void 0?r.variants[i]:void 0}},e.prototype.evaluateConditions=function(t,r){var n,i,o,s;try{for(var a=kt(r),u=a.next();!u.done;u=a.next()){var c=u.value,l=!0;try{for(var f=(o=void 0,kt(c)),d=f.next();!d.done;d=f.next()){var h=d.value;if(l=this.matchCondition(t,h),!l)break}}catch(v){o={error:v}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}if(l)return!0}}catch(v){n={error:v}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!1},e.prototype.matchCondition=function(t,r){var n=ch(t,r.selector);if(n==null)return this.matchNull(r.op,r.values);if(this.isSetOperator(r.op)){var i=this.coerceStringArray(n);return i?this.matchSet(i,r.op,r.values):!1}else{var o=this.coerceString(n);return o!==void 0?this.matchString(o,r.op,r.values):!1}},e.prototype.getHash=function(t){return xR(t)},e.prototype.bucket=function(t,r){var n,i,o,s;if(!r.bucket)return r.variant;var a=this.coerceString(ch(t,r.bucket.selector));if(!a||a.length===0)return r.variant;var u="".concat(r.bucket.salt,"/").concat(a),c=this.getHash(u),l=c%100,f=Math.floor(c/100);try{for(var d=kt(r.bucket.allocations),h=d.next();!h.done;h=d.next()){var v=h.value,p=v.range[0],b=v.range[1];if(l>=p&&l<b)try{for(var E=(o=void 0,kt(v.distributions)),m=E.next();!m.done;m=E.next()){var g=m.value,y=g.range[0],_=g.range[1];if(f>=y&&f<_)return g.variant}}catch(S){o={error:S}}finally{try{m&&!m.done&&(s=E.return)&&s.call(E)}finally{if(o)throw o.error}}}}catch(S){n={error:S}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}return r.variant},e.prototype.matchNull=function(t,r){var n=this.containsNone(r);switch(t){case se.IS:case se.CONTAINS:case se.LESS_THAN:case se.LESS_THAN_EQUALS:case se.GREATER_THAN:case se.GREATER_THAN_EQUALS:case se.VERSION_LESS_THAN:case se.VERSION_LESS_THAN_EQUALS:case se.VERSION_GREATER_THAN:case se.VERSION_GREATER_THAN_EQUALS:case se.SET_IS:case se.SET_CONTAINS:case se.SET_CONTAINS_ANY:return n;case se.IS_NOT:case se.DOES_NOT_CONTAIN:case se.SET_DOES_NOT_CONTAIN:case se.SET_DOES_NOT_CONTAIN_ANY:return!n;default:return!1}},e.prototype.matchSet=function(t,r,n){switch(r){case se.SET_IS:return this.setEquals(t,n);case se.SET_IS_NOT:return!this.setEquals(t,n);case se.SET_CONTAINS:return this.matchesSetContainsAll(t,n);case se.SET_DOES_NOT_CONTAIN:return!this.matchesSetContainsAll(t,n);case se.SET_CONTAINS_ANY:return this.matchesSetContainsAny(t,n);case se.SET_DOES_NOT_CONTAIN_ANY:return!this.matchesSetContainsAny(t,n);default:return!1}},e.prototype.matchString=function(t,r,n){var i=this;switch(r){case se.IS:return this.matchesIs(t,n);case se.IS_NOT:return!this.matchesIs(t,n);case se.CONTAINS:return this.matchesContains(t,n);case se.DOES_NOT_CONTAIN:return!this.matchesContains(t,n);case se.LESS_THAN:case se.LESS_THAN_EQUALS:case se.GREATER_THAN:case se.GREATER_THAN_EQUALS:return this.matchesComparable(t,r,n,function(o){return i.parseNumber(o)},this.comparator);case se.VERSION_LESS_THAN:case se.VERSION_LESS_THAN_EQUALS:case se.VERSION_GREATER_THAN:case se.VERSION_GREATER_THAN_EQUALS:return this.matchesComparable(t,r,n,function(o){return jR.parse(o)},this.versionComparator);case se.REGEX_MATCH:return this.matchesRegex(t,n);case se.REGEX_DOES_NOT_MATCH:return!this.matchesRegex(t,n);default:return!1}},e.prototype.matchesIs=function(t,r){if(this.containsBooleans(r)){var n=t.toLowerCase();if(n==="true"||n==="false")return r.some(function(i){return i.toLowerCase()===n})}return r.some(function(i){return t===i})},e.prototype.matchesContains=function(t,r){var n,i;try{for(var o=kt(r),s=o.next();!s.done;s=o.next()){var a=s.value;if(t.toLowerCase().includes(a.toLowerCase()))return!0}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return!1},e.prototype.matchesComparable=function(t,r,n,i,o){var s=this,a=i(t),u=n.map(function(c){return i(c)}).filter(function(c){return c!==void 0});return a===void 0||u.length===0?n.some(function(c){return s.comparator(t,r,c)}):u.some(function(c){return o(a,r,c)})},e.prototype.comparator=function(t,r,n){switch(r){case se.LESS_THAN:case se.VERSION_LESS_THAN:return t<n;case se.LESS_THAN_EQUALS:case se.VERSION_LESS_THAN_EQUALS:return t<=n;case se.GREATER_THAN:case se.VERSION_GREATER_THAN:return t>n;case se.GREATER_THAN_EQUALS:case se.VERSION_GREATER_THAN_EQUALS:return t>=n;default:return!1}},e.prototype.versionComparator=function(t,r,n){var i=t.compareTo(n);switch(r){case se.LESS_THAN:case se.VERSION_LESS_THAN:return i<0;case se.LESS_THAN_EQUALS:case se.VERSION_LESS_THAN_EQUALS:return i<=0;case se.GREATER_THAN:case se.VERSION_GREATER_THAN:return i>0;case se.GREATER_THAN_EQUALS:case se.VERSION_GREATER_THAN_EQUALS:return i>=0;default:return!1}},e.prototype.matchesRegex=function(t,r){return r.some(function(n){return!!new RegExp(n).exec(t)})},e.prototype.containsNone=function(t){return t.some(function(r){return r==="(none)"})},e.prototype.containsBooleans=function(t){return t.some(function(r){switch(r.toLowerCase()){case"true":case"false":return!0;default:return!1}})},e.prototype.parseNumber=function(t){var r;return(r=Number(t))!==null&&r!==void 0?r:void 0},e.prototype.coerceString=function(t){if(t!=null)return typeof t=="object"?JSON.stringify(t):String(t)},e.prototype.coerceStringArray=function(t){var r=this;if(Array.isArray(t)){var n=t;return n.map(function(a){return r.coerceString(a)}).filter(Boolean)}var i=String(t);try{var o=JSON.parse(i);if(Array.isArray(o)){var n=t;return n.map(function(u){return r.coerceString(u)}).filter(Boolean)}else{var s=this.coerceString(i);return s?[s]:void 0}}catch{var s=this.coerceString(i);return s?[s]:void 0}},e.prototype.isSetOperator=function(t){switch(t){case se.SET_IS:case se.SET_IS_NOT:case se.SET_CONTAINS:case se.SET_DOES_NOT_CONTAIN:case se.SET_CONTAINS_ANY:case se.SET_DOES_NOT_CONTAIN_ANY:return!0;default:return!1}},e.prototype.setEquals=function(t,r){var n=new Set(t),i=new Set(r);return n.size===i.size&&ec([],Zl(i),!1).every(function(o){return n.has(o)})},e.prototype.matchesSetContainsAll=function(t,r){var n,i;if(t.length<r.length)return!1;try{for(var o=kt(r),s=o.next();!s.done;s=o.next()){var a=s.value;if(!this.matchesIs(a,t))return!1}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return!0},e.prototype.matchesSetContainsAny=function(t,r){var n,i;try{for(var o=kt(r),s=o.next();!s.done;s=o.next()){var a=s.value;if(this.matchesIs(a,t))return!0}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return!1},e})(),VR=function(e,t){var r,n,i=Nr({},e),o=[],s=t||Object.keys(i);try{for(var a=kt(s),u=a.next();!u.done;u=a.next()){var c=u.value,l=Dm(c,i);l&&o.push.apply(o,ec([],Zl(l),!1))}}catch(f){r={error:f}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},Dm=function(e,t,r){var n,i;r===void 0&&(r=[]);var o=t[e];if(o){if(!o.dependencies||o.dependencies.length===0)return delete t[o.key],[o]}else return;r.push(o.key);var s=[],a=function(f){if(r.some(function(h){return h===f}))throw Error("Detected a cycle between flags ".concat(r));var d=Dm(f,t,r);d&&s.push.apply(s,ec([],Zl(d),!1))};try{for(var u=kt(o.dependencies),c=u.next();!c.done;c=u.next()){var l=c.value;a(l)}}catch(f){n={error:f}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return s.push(o),r.pop(),delete t[o.key],s};const Um="3.7.7",$R=Um,ni=typeof Buffer=="function",fh=typeof TextDecoder=="function"?new TextDecoder:void 0,dh=typeof TextEncoder=="function"?new TextEncoder:void 0,WR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_i=Array.prototype.slice.call(WR),No=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(_i),GR=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,nt=String.fromCharCode.bind(String),hh=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Fm=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Hm=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Bm=e=>{let t,r,n,i,o="";const s=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|i,o+=_i[t>>18&63]+_i[t>>12&63]+_i[t>>6&63]+_i[t&63]}return s?o.slice(0,s-3)+"===".substring(s):o},tc=typeof btoa=="function"?e=>btoa(e):ni?e=>Buffer.from(e,"binary").toString("base64"):Bm,el=ni?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,i=e.length;n<i;n+=4096)r.push(nt.apply(null,e.subarray(n,n+4096)));return tc(r.join(""))},Jo=(e,t=!1)=>t?Fm(el(e)):el(e),KR=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?nt(192|t>>>6)+nt(128|t&63):nt(224|t>>>12&15)+nt(128|t>>>6&63)+nt(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return nt(240|t>>>18&7)+nt(128|t>>>12&63)+nt(128|t>>>6&63)+nt(128|t&63)}},zR=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,jm=e=>e.replace(zR,KR),vh=ni?e=>Buffer.from(e,"utf8").toString("base64"):dh?e=>el(dh.encode(e)):e=>tc(jm(e)),jn=(e,t=!1)=>t?Fm(vh(e)):vh(e),ph=e=>jn(e,!0),XR=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,YR=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return nt((r>>>10)+55296)+nt((r&1023)+56320);case 3:return nt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return nt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},qm=e=>e.replace(XR,YR),Vm=e=>{if(e=e.replace(/\s+/g,""),!GR.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,i;for(let o=0;o<e.length;)t=No[e.charAt(o++)]<<18|No[e.charAt(o++)]<<12|(n=No[e.charAt(o++)])<<6|(i=No[e.charAt(o++)]),r+=n===64?nt(t>>16&255):i===64?nt(t>>16&255,t>>8&255):nt(t>>16&255,t>>8&255,t&255);return r},rc=typeof atob=="function"?e=>atob(Hm(e)):ni?e=>Buffer.from(e,"base64").toString("binary"):Vm,$m=ni?e=>hh(Buffer.from(e,"base64")):e=>hh(rc(e).split("").map(t=>t.charCodeAt(0))),Wm=e=>$m(Gm(e)),JR=ni?e=>Buffer.from(e,"base64").toString("utf8"):fh?e=>fh.decode($m(e)):e=>qm(rc(e)),Gm=e=>Hm(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),tl=e=>JR(Gm(e)),QR=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},Km=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),zm=function(){const e=(t,r)=>Object.defineProperty(String.prototype,t,Km(r));e("fromBase64",function(){return tl(this)}),e("toBase64",function(t){return jn(this,t)}),e("toBase64URI",function(){return jn(this,!0)}),e("toBase64URL",function(){return jn(this,!0)}),e("toUint8Array",function(){return Wm(this)})},Xm=function(){const e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,Km(r));e("toBase64",function(t){return Jo(this,t)}),e("toBase64URI",function(){return Jo(this,!0)}),e("toBase64URL",function(){return Jo(this,!0)})},ZR=()=>{zm(),Xm()},rl={version:Um,VERSION:$R,atob:rc,atobPolyfill:Vm,btoa:tc,btoaPolyfill:Bm,fromBase64:tl,toBase64:jn,encode:jn,encodeURI:ph,encodeURL:ph,utob:jm,btou:qm,decode:tl,isValid:QR,fromUint8Array:Jo,toUint8Array:Wm,extendString:zm,extendUint8Array:Xm,extendBuiltins:ZR};var Ym=(function(e){Nm(t,e);function t(r,n){var i=e.call(this,n)||this;return i.statusCode=r,Object.setPrototypeOf(i,t.prototype),i}return t})(Error),nl=(function(e){Nm(t,e);function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return t})(Error),eO=(function(){function e(t,r,n){this.deploymentKey=t,this.serverUrl=r,this.httpClient=n}return e.prototype.getVariants=function(t,r){return Lm(this,void 0,void 0,function(){var n,i,o,s;return Mm(this,function(a){switch(a.label){case 0:return n=rl.encodeURL(JSON.stringify(t)),i={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":n},r?.flagKeys&&(i["X-Amp-Exp-Flag-Keys"]=rl.encodeURL(JSON.stringify(r.flagKeys))),r?.trackingOption&&(i["X-Amp-Exp-Track"]=r.trackingOption),r?.exposureTrackingOption&&(i["X-Amp-Exp-Exposure-Track"]=r.exposureTrackingOption),o=new URL("".concat(this.serverUrl,"/sdk/v2/vardata?v=0")),r?.evaluationMode&&o.searchParams.append("eval_mode",r?.evaluationMode),r?.deliveryMethod&&o.searchParams.append("delivery_method",r?.deliveryMethod),[4,this.httpClient.request({requestUrl:o.toString(),method:"GET",headers:i,timeoutMillis:r?.timeoutMillis})];case 1:if(s=a.sent(),s.status!=200)throw new Ym(s.status,"Fetch error response: status=".concat(s.status));return[2,JSON.parse(s.body)]}})})},e})(),tO=(function(){function e(t,r,n){this.deploymentKey=t,this.serverUrl=r,this.httpClient=n}return e.prototype.getFlags=function(t){return Lm(this,void 0,void 0,function(){var r,n,i;return Mm(this,function(o){switch(o.label){case 0:return r={Authorization:"Api-Key ".concat(this.deploymentKey)},t?.libraryName&&t?.libraryVersion&&(r["X-Amp-Exp-Library"]="".concat(t.libraryName,"/").concat(t.libraryVersion)),t?.user&&(r["X-Amp-Exp-User"]=rl.encodeURL(JSON.stringify(t.user))),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/flags")+(t?.deliveryMethod?"?delivery_method=".concat(t.deliveryMethod):""),method:"GET",headers:r,timeoutMillis:t?.timeoutMillis})];case 1:if(n=o.sent(),n.status!=200)throw Error("Flags error response: status=".concat(n.status));return i=JSON.parse(n.body),[2,i.reduce(function(s,a){return s[a.key]=a,s},{})]}})})},e})(),Ge=typeof globalThis<"u"?globalThis:global||self,pn=function(){if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global},rO=function(){var e=pn();if(e)try{var t="EXP_test";return e.localStorage.setItem(t,t),e.localStorage.removeItem(t),!0}catch{return!1}return!1},nO=(function(){function e(t,r){this.poller=void 0,this.action=t,this.ms=r}return e.prototype.start=function(){this.poller||(this.poller=Ge.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&(Ge.clearInterval(this.poller),this.poller=void 0)},e})(),Si={exports:{}},iO=Si.exports,gh;function oO(){return gh||(gh=1,(function(e,t){(function(r,n){var i="0.7.33",o="",s="?",a="function",u="undefined",c="object",l="string",f="major",d="model",h="name",v="type",p="vendor",b="version",E="architecture",m="console",g="mobile",y="tablet",_="smarttv",S="wearable",A="embedded",C=350,I="Amazon",P="Apple",R="ASUS",k="BlackBerry",N="Browser",$="Chrome",ee="Edge",B="Firefox",z="Google",K="Huawei",Q="LG",ae="Microsoft",fe="Motorola",pe="Opera",ye="Samsung",be="Sharp",de="Sony",me="Xiaomi",M="Zebra",Z="Facebook",X=function(W,j){var J={};for(var ne in W)j[ne]&&j[ne].length%2===0?J[ne]=j[ne].concat(W[ne]):J[ne]=W[ne];return J},re=function(W){for(var j={},J=0;J<W.length;J++)j[W[J].toUpperCase()]=W[J];return j},F=function(W,j){return typeof W===l?ge(j).indexOf(ge(W))!==-1:!1},ge=function(W){return W.toLowerCase()},w=function(W){return typeof W===l?W.replace(/[^\d\.]/g,o).split(".")[0]:n},T=function(W,j){if(typeof W===l)return W=W.replace(/^\s\s*/,o),typeof j===u?W:W.substring(0,C)},L=function(W,j){for(var J=0,ne,ie,Se,ue,$e,Oe;J<j.length&&!$e;){var mt=j[J],ot=j[J+1];for(ne=ie=0;ne<mt.length&&!$e;)if($e=mt[ne++].exec(W),$e)for(Se=0;Se<ot.length;Se++)Oe=$e[++ie],ue=ot[Se],typeof ue===c&&ue.length>0?ue.length===2?typeof ue[1]==a?this[ue[0]]=ue[1].call(this,Oe):this[ue[0]]=ue[1]:ue.length===3?typeof ue[1]===a&&!(ue[1].exec&&ue[1].test)?this[ue[0]]=Oe?ue[1].call(this,Oe,ue[2]):n:this[ue[0]]=Oe?Oe.replace(ue[1],ue[2]):n:ue.length===4&&(this[ue[0]]=Oe?ue[3].call(this,Oe.replace(ue[1],ue[2])):n):this[ue]=Oe||n;J+=2}},H=function(W,j){for(var J in j)if(typeof j[J]===c&&j[J].length>0){for(var ne=0;ne<j[J].length;ne++)if(F(j[J][ne],W))return J===s?n:J}else if(F(j[J],W))return J===s?n:J;return W},U={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},te={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,b],[/opios[\/ ]+([\w\.]+)/i],[b,[h,pe+" Mini"]],[/\bopr\/([\w\.]+)/i],[b,[h,pe]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[h,b],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[h,"UC"+N]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[b,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[b,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[h,"IE"]],[/yabrowser\/([\w\.]+)/i],[b,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+N],b],[/\bfocus\/([\w\.]+)/i],[b,[h,B+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[h,pe+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[h,pe+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[h,"MIUI "+N]],[/fxios\/([-\w\.]+)/i],[b,[h,B]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+N]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+N],b],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,b],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,Z],b],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[h,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[h,$+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,$+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[h,"Android "+N]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[b,H,U]],[/(webkit|khtml)\/([\w\.]+)/i],[h,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[h,B+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[h,b],[/(cobalt)\/([\w\.]+)/i],[h,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[E,"amd64"]],[/(ia32(?=;))/i],[[E,ge]],[/((?:i[346]|x)86)[;\)]/i],[[E,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[E,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/windows (ce|mobile); ppc;/i],[[E,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[E,/ower/,o,ge]],[/(sun4\w)[;\)]/i],[[E,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[E,ge]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[p,ye],[v,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[p,ye],[v,g]],[/((ipod|iphone)\d+,\d+)/i],[d,[p,P],[v,g]],[/(ipad\d+,\d+)/i],[d,[p,P],[v,y]],[/\((ip(?:hone|od)[\w ]*);/i],[d,[p,P],[v,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[p,P],[v,y]],[/(macintosh);/i],[d,[p,P]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[p,K],[v,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[p,K],[v,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[p,me],[v,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[p,me],[v,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[p,"OPPO"],[v,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[p,"Vivo"],[v,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[d,[p,"Realme"],[v,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[p,fe],[v,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[p,fe],[v,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[p,Q],[v,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[p,Q],[v,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[p,"Lenovo"],[v,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[p,"Nokia"],[v,g]],[/(pixel c)\b/i],[d,[p,z],[v,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[p,z],[v,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[p,de],[v,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[p,de],[v,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[p,"OnePlus"],[v,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[p,I],[v,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[p,I],[v,g]],[/(playbook);[-\w\),; ]+(rim)/i],[d,p,[v,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[p,k],[v,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[p,R],[v,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[p,R],[v,g]],[/(nexus 9)/i],[d,[p,"HTC"],[v,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[d,/_/g," "],[v,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[p,"Acer"],[v,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[p,"Meizu"],[v,g]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[p,be],[v,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,d,[v,g]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,d,[v,y]],[/(surface duo)/i],[d,[p,ae],[v,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[p,"Fairphone"],[v,g]],[/(u304aa)/i],[d,[p,"AT&T"],[v,g]],[/\bsie-(\w*)/i],[d,[p,"Siemens"],[v,g]],[/\b(rct\w+) b/i],[d,[p,"RCA"],[v,y]],[/\b(venue[\d ]{2,7}) b/i],[d,[p,"Dell"],[v,y]],[/\b(q(?:mv|ta)\w+) b/i],[d,[p,"Verizon"],[v,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[p,"Barnes & Noble"],[v,y]],[/\b(tm\d{3}\w+) b/i],[d,[p,"NuVision"],[v,y]],[/\b(k88) b/i],[d,[p,"ZTE"],[v,y]],[/\b(nx\d{3}j) b/i],[d,[p,"ZTE"],[v,g]],[/\b(gen\d{3}) b.+49h/i],[d,[p,"Swiss"],[v,g]],[/\b(zur\d{3}) b/i],[d,[p,"Swiss"],[v,y]],[/\b((zeki)?tb.*\b) b/i],[d,[p,"Zeki"],[v,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],d,[v,y]],[/\b(ns-?\w{0,9}) b/i],[d,[p,"Insignia"],[v,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[p,"NextBook"],[v,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],d,[v,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],d,[v,g]],[/\b(ph-1) /i],[d,[p,"Essential"],[v,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[p,"Envizen"],[v,y]],[/\b(trio[-\w\. ]+) b/i],[d,[p,"MachSpeed"],[v,y]],[/\btu_(1491) b/i],[d,[p,"Rotor"],[v,y]],[/(shield[\w ]+) b/i],[d,[p,"Nvidia"],[v,y]],[/(sprint) (\w+)/i],[p,d,[v,g]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[p,ae],[v,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[p,M],[v,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[p,M],[v,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,d,[v,m]],[/droid.+; (shield) bui/i],[d,[p,"Nvidia"],[v,m]],[/(playstation [345portablevi]+)/i],[d,[p,de],[v,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[p,ae],[v,m]],[/smart-tv.+(samsung)/i],[p,[v,_]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[p,ye],[v,_]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,Q],[v,_]],[/(apple) ?tv/i],[p,[d,P+" TV"],[v,_]],[/crkey/i],[[d,$+"cast"],[p,z],[v,_]],[/droid.+aft(\w)( bui|\))/i],[d,[p,I],[v,_]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[p,be],[v,_]],[/(bravia[\w ]+)( bui|\))/i],[d,[p,de],[v,_]],[/(mitv-\w{5}) bui/i],[d,[p,me],[v,_]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[p,T],[d,T],[v,_]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,_]],[/((pebble))app/i],[p,d,[v,S]],[/droid.+; (glass) \d/i],[d,[p,z],[v,S]],[/droid.+; (wt63?0{2,3})\)/i],[d,[p,M],[v,S]],[/(quest( 2)?)/i],[d,[p,Z],[v,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[v,A]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[d,[v,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[v,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[v,g]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[h,ee+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[h,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,b],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[b,H,q]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[b,H,q]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,"Mac OS"],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,b],[/\(bb(10);/i],[b,[h,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[h,B+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[h,"webOS"]],[/crkey\/([\d\.]+)/i],[b,[h,$+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[h,"Chromium OS"],b],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,b],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[h,b]]},G=function(W,j){if(typeof W===c&&(j=W,W=n),!(this instanceof G))return new G(W,j).getResult();var J=W||(typeof r!==u&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:o),ne=j?X(te,j):te;return this.getBrowser=function(){var ie={};return ie[h]=n,ie[b]=n,L.call(ie,J,ne.browser),ie.major=w(ie.version),ie},this.getCPU=function(){var ie={};return ie[E]=n,L.call(ie,J,ne.cpu),ie},this.getDevice=function(){var ie={};return ie[p]=n,ie[d]=n,ie[v]=n,L.call(ie,J,ne.device),ie},this.getEngine=function(){var ie={};return ie[h]=n,ie[b]=n,L.call(ie,J,ne.engine),ie},this.getOS=function(){var ie={};return ie[h]=n,ie[b]=n,L.call(ie,J,ne.os),ie},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return J},this.setUA=function(ie){return J=typeof ie===l&&ie.length>C?T(ie,C):ie,this},this.setUA(J),this};G.VERSION=i,G.BROWSER=re([h,b,f]),G.CPU=re([E]),G.DEVICE=re([d,p,v,m,g,_,y,S,A]),G.ENGINE=G.OS=re([h,b]),e.exports&&(t=e.exports=G),t.UAParser=G;var Y=typeof r!==u&&(r.jQuery||r.Zepto);if(Y&&!Y.ua){var V=new G;Y.ua=V.getResult(),Y.ua.get=function(){return V.getUA()},Y.ua.set=function(W){V.setUA(W);var j=V.getResult();for(var J in j)Y.ua[J]=j[J]}}})(typeof window=="object"?window:iO)})(Si,Si.exports)),Si.exports}var sO=oO(),Te=function(){return Te=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Te.apply(this,arguments)};function Ze(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{c(n.next(l))}catch(f){s(f)}}function u(l){try{c(n.throw(l))}catch(f){s(f)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((n=n.apply(e,t||[])).next())})}function et(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Fr(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ct(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function Rt(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var mh=function(e,t){var r,n;t===void 0&&(t=!1);var i=nc(e,t),o=void 0,s=Ge.document.cookie.split("; ");try{for(var a=Fr(s),u=a.next();!u.done;u=a.next()){var c=u.value,l=ct(c.split("=",2),2),f=l[0],d=l[1];f===i&&(o=decodeURIComponent(d))}}catch(b){r={error:b}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}if(o)try{if(t){var h=atob(o);return JSON.parse(decodeURIComponent(h))}var v=o.split("."),p=void 0;return v.length>=2&&v[1]&&(p=atob(v[1])),{deviceId:v[0],userId:p}}catch{return}},aO=function(e){var t=nc(e,!0);try{var r=Ge.localStorage.getItem(t);if(!r)return;var n=JSON.parse(r);return typeof n!="object"?void 0:n}catch{return}},uO=function(e){var t=nc(e,!0);try{var r=Ge.sessionStorage.getItem(t);if(!r)return;var n=JSON.parse(r);return typeof n!="object"?void 0:n}catch{return}},nc=function(e,t){if(t)return e?.length<10?void 0:"AMP_".concat(e.substring(0,10));if(!(e?.length<6))return"amp_".concat(e.substring(0,6))},lO=(function(){function e(t,r,n){this.type="integration",this.apiKey=t,this.identityStore=r.identityStore,this.eventBridge=r.eventBridge,this.contextProvider=r.applicationContextProvider,this.timeoutMillis=n,this.loadPersistedState(),n<=0&&(this.setup=void 0)}return e.prototype.setup=function(t,r){return Ze(this,void 0,void 0,function(){return et(this,function(n){return t?.automaticFetchOnAmplitudeIdentityChange&&this.identityStore.addIdentityListener(function(){r?.fetch()}),[2,this.waitForConnectorIdentity(this.timeoutMillis)]})})},e.prototype.getUser=function(){var t=this.identityStore.getIdentity();return{user_id:t.userId,device_id:t.deviceId,user_properties:t.userProperties,version:this.contextProvider.versionName}},e.prototype.track=function(t){return this.eventBridge.receiver?(this.eventBridge.logEvent({eventType:t.eventType,eventProperties:t.eventProperties}),!0):!1},e.prototype.loadPersistedState=function(){if(!this.apiKey||this.apiKey.startsWith("client-"))return!1;var t=mh(this.apiKey,!0);return t?(this.commitIdentityToConnector(t),!0):(t=mh(this.apiKey,!1),t?(this.commitIdentityToConnector(t),!0):(t=aO(this.apiKey),t?(this.commitIdentityToConnector(t),!0):(t=uO(this.apiKey),t?(this.commitIdentityToConnector(t),!0):!1)))},e.prototype.commitIdentityToConnector=function(t){var r=this.identityStore.editIdentity();r.setDeviceId(t.deviceId),t.userId&&r.setUserId(t.userId),r.commit()},e.prototype.waitForConnectorIdentity=function(t){return Ze(this,void 0,void 0,function(){var r,n=this;return et(this,function(i){return r=this.identityStore.getIdentity(),!r.userId&&!r.deviceId?[2,Promise.race([new Promise(function(o){var s=function(){o(),n.identityStore.removeIdentityListener(s)};n.identityStore.addIdentityListener(s)}),new Promise(function(o,s){Ge.setTimeout(s,t,"Timed out waiting for Amplitude Analytics SDK to initialize.")})])]:[2]})})},e})();function cO(e,t){return t=t||{},new Promise(function(r,n){var i=new XMLHttpRequest,o=[],s=[],a={},u=function(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(JSON.parse(i.responseText))},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:u,headers:{keys:function(){return o},entries:function(){return s},get:function(l){return a[l.toLowerCase()]},has:function(l){return l.toLowerCase()in a}}}};for(var c in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(l,f,d){o.push(f=f.toLowerCase()),s.push([f,d]),a[f]=a[f]?a[f]+","+d:d}),r(u())},i.onerror=n,i.withCredentials=t.credentials=="include",t.headers)i.setRequestHeader(c,t.headers[c]);i.send(t.body||null)})}var fO=Ge.fetch||cO,dO=function(e,t){return t==null||t<=0?e:new Promise(function(r,n){Ge.setTimeout(function(){n(new nl("Request timeout after "+t+" milliseconds"))},t),e.then(r,n)})},hO=function(e,t,r,n,i){var o=function(){return Ze(void 0,void 0,void 0,function(){var s,a,u;return et(this,function(c){switch(c.label){case 0:return[4,fO(e,{method:t,headers:r,body:n})];case 1:return s=c.sent(),u={status:s.status},[4,s.text()];case 2:return a=(u.body=c.sent(),u),[2,a]}})})};return dO(o(),i)},vO=(function(){function e(t){this.client=t}return e.prototype.request=function(t){return Ze(this,void 0,void 0,function(){return et(this,function(r){switch(r.label){case 0:return[4,this.client.request(t.requestUrl,t.method,t.headers,null,t.timeoutMillis)];case 1:return[2,r.sent()]}})})},e})(),Jm={request:hO},Ht;(function(e){e[e.Disable=0]="Disable",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Info=3]="Info",e[e.Debug=4]="Debug",e[e.Verbose=5]="Verbose"})(Ht||(Ht={}));var cr;(function(e){e.LocalStorage="localStorage",e.InitialVariants="initialVariants"})(cr||(cr={}));var Xe;(function(e){e.LocalStorage="storage",e.InitialVariants="initial",e.SecondaryLocalStorage="secondary-storage",e.SecondaryInitialVariants="secondary-initial",e.FallbackInline="fallback-inline",e.FallbackConfig="fallback-config",e.LocalEvaluation="local-evaluation"})(Xe||(Xe={}));var yh=function(e){return!e||e===Xe.FallbackInline||e===Xe.FallbackConfig||e===Xe.SecondaryInitialVariants},Pn={debug:!1,logLevel:Ht.Error,loggerProvider:null,instanceName:"$default_instance",fallbackVariant:{},initialVariants:{},initialFlags:void 0,source:cr.LocalStorage,serverUrl:"https://api.lab.amplitude.com",flagsServerUrl:"https://flag.lab.amplitude.com",serverZone:"US",fetchTimeoutMillis:1e4,retryFetchOnFailure:!0,throwOnError:!1,automaticExposureTracking:!0,pollOnStart:!0,flagConfigPollingIntervalMillis:3e5,fetchOnStart:!0,automaticFetchOnAmplitudeIdentityChange:!1,userProvider:null,analyticsProvider:null,exposureTrackingProvider:null,httpClient:Jm},bh="1.20.4",pO=512,gO=(function(){function e(t,r){var n=this,i;this.isReady=new Promise(function(s){n.resolve=s}),this.config=t,this.client=r;var o=(i=t.instanceName)!==null&&i!==void 0?i:Pn.instanceName;this.queue=new yO(o),this.cache=new mO(o)}return e.prototype.ready=function(){return this.integration?this.isReady:Promise.resolve()},e.prototype.setIntegration=function(t){var r=this;this.integration&&this.integration.teardown&&this.integration.teardown(),this.integration=t,t.setup?this.integration.setup(this.config,this.client).then(function(){r.queue.setTracker(r.integration.track.bind(t)),r.resolve()},function(){r.queue.setTracker(r.integration.track.bind(t)),r.resolve()}):(this.queue.setTracker(this.integration.track.bind(t)),this.resolve())},e.prototype.getUser=function(){return this.integration?this.integration.getUser():{}},e.prototype.track=function(t,r){if(this.cache.shouldTrack(t,r)){var n=this.getExposureEvent(t);this.queue.push(n)}},e.prototype.getExposureEvent=function(t){var r,n,i,o={eventType:"$exposure",eventProperties:t};return!((r=t.metadata)===null||r===void 0)&&r.exposureEvent?o={eventType:(n=t.metadata)===null||n===void 0?void 0:n.exposureEvent,eventProperties:t}:((i=t.metadata)===null||i===void 0?void 0:i.deliveryMethod)==="web"&&(o={eventType:"$impression",eventProperties:t}),o},e})(),mO=(function(){function e(t){this.isSessionStorageAvailable=bO(),this.inMemoryCache={},this.identity={},this.storageKey="EXP_sent_v3_".concat(t),this.isSessionStorageAvailable&&(Ge.sessionStorage.removeItem("EXP_sent_".concat(t)),Ge.sessionStorage.removeItem("EXP_sent_v2_".concat(t)))}return e.prototype.shouldTrack=function(t,r){var n,i;if(((n=t.metadata)===null||n===void 0?void 0:n.deliveryMethod)==="web")return!0;var o={userId:r?.user_id,deviceId:r?.device_id};this.identityEquals(this.identity,o)||this.clearCache(),this.identity=o,this.loadCache();var s=t.flag_key in this.inMemoryCache,a=this.inMemoryCache[t.flag_key],u=(i=t.variant)!==null&&i!==void 0?i:null,c=a??null,l=!1;return(!s||c!==u)&&(l=!0,this.inMemoryCache[t.flag_key]=u),this.storeCache(),l},e.prototype.clearCache=function(){this.inMemoryCache={},this.isSessionStorageAvailable&&Ge.sessionStorage.removeItem(this.storageKey)},e.prototype.identityEquals=function(t,r){return t.userId&&r.userId?t.userId===r.userId:!t.userId&&!r.userId?t.deviceId===r.deviceId:!1},e.prototype.loadCache=function(){if(this.isSessionStorageAvailable){var t=Ge.sessionStorage.getItem(this.storageKey);this.inMemoryCache=t?JSON.parse(t):{}}},e.prototype.storeCache=function(){if(this.isSessionStorageAvailable)try{Ge.sessionStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryCache))}catch{}},e})(),yO=(function(){function e(t,r){r===void 0&&(r=pO),this.isLocalStorageAvailable=rO(),this.inMemoryQueue=[],this.storageKey="EXP_unsent_".concat(t),this.maxQueueSize=r}return e.prototype.push=function(t){this.loadQueue(),this.inMemoryQueue.push(t),this.flush(),this.storeQueue()},e.prototype.setTracker=function(t){var r=this;this.tracker=t,this.poller=Ge.setInterval(function(){r.loadFlushStore()},1e3),this.loadFlushStore()},e.prototype.flush=function(){if(this.tracker&&this.inMemoryQueue.length!==0){for(var t=0;t<this.inMemoryQueue.length;t++)try{if(!this.tracker(this.inMemoryQueue[t]))break}catch{break}this.inMemoryQueue=this.inMemoryQueue.slice(t),this.inMemoryQueue.length===0&&this.poller&&(Ge.clearInterval(this.poller),this.poller=void 0)}},e.prototype.loadQueue=function(){if(this.isLocalStorageAvailable){var t=Ge.localStorage.getItem(this.storageKey);this.inMemoryQueue=t?JSON.parse(t):[]}},e.prototype.storeQueue=function(){this.isLocalStorageAvailable&&(this.inMemoryQueue.length>this.maxQueueSize&&(this.inMemoryQueue=this.inMemoryQueue.slice(this.inMemoryQueue.length-this.maxQueueSize)),Ge.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},e.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},e})(),bO=function(){var e=pn();if(e)try{var t="EXP_test";return e.sessionStorage.setItem(t,t),e.sessionStorage.removeItem(t),!0}catch{return!1}return!1},EO=(function(){function e(t,r){r===void 0&&(r=Ht.Error),this.logger=t,this.logLevel=r}return e.prototype.error=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.logLevel>=Ht.Error&&(r=this.logger).error.apply(r,Rt([t],ct(n),!1))},e.prototype.warn=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.logLevel>=Ht.Warn&&(r=this.logger).warn.apply(r,Rt([t],ct(n),!1))},e.prototype.info=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.logLevel>=Ht.Info&&(r=this.logger).info.apply(r,Rt([t],ct(n),!1))},e.prototype.debug=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.logLevel>=Ht.Debug&&(r=this.logger).debug.apply(r,Rt([t],ct(n),!1))},e.prototype.verbose=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.logLevel>=Ht.Verbose&&(r=this.logger).verbose.apply(r,Rt([t],ct(n),!1))},e})(),_O=(function(){function e(){}return e.prototype.error=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];console.error.apply(console,Rt([t],ct(r),!1))},e.prototype.warn=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];console.warn.apply(console,Rt([t],ct(r),!1))},e.prototype.info=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];console.info.apply(console,Rt([t],ct(r),!1))},e.prototype.debug=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];console.debug.apply(console,Rt([t],ct(r),!1))},e.prototype.verbose=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];console.debug.apply(console,Rt([t],ct(r),!1))},e})(),Xs=(function(){function e(){this.globalScope=pn()}return e.prototype.get=function(t){var r;return(r=this.globalScope)===null||r===void 0?void 0:r.localStorage.getItem(t)},e.prototype.put=function(t,r){var n;(n=this.globalScope)===null||n===void 0||n.localStorage.setItem(t,r)},e.prototype.delete=function(t){var r;(r=this.globalScope)===null||r===void 0||r.localStorage.removeItem(t)},e})(),SO=function(e,t,r){var n=e.substring(e.length-6),i="amp-exp-".concat(t,"-").concat(n);return new Qm(i,r,Zm)},wO=function(e,t,r){r===void 0&&(r=new Xs);var n=e.substring(e.length-6),i="amp-exp-".concat(t,"-").concat(n,"-flags");return new Qm(i,r)},TO=function(e,t,r){r===void 0&&(r=new Xs);var n=e.substring(e.length-6),i="amp-exp-".concat(t,"-").concat(n,"-variants-options");return new AO(i,r)},AO=(function(){function e(t,r){this.namespace=t,this.storage=r}return e.prototype.get=function(){return this.value},e.prototype.put=function(t){this.value=t},e.prototype.load=function(){var t=this.storage.get(this.namespace);t&&(this.value=JSON.parse(t))},e.prototype.store=function(){this.value===void 0?this.storage.delete(this.namespace):this.storage.put(this.namespace,JSON.stringify(this.value))},e})(),Qm=(function(){function e(t,r,n){this.cache={},this.namespace=t,this.storage=r,this.transformer=n}return e.prototype.get=function(t){return this.cache[t]},e.prototype.getAll=function(){return Te({},this.cache)},e.prototype.put=function(t,r){this.cache[t]=r},e.prototype.putAll=function(t){var r,n;try{for(var i=Fr(Object.keys(t)),o=i.next();!o.done;o=i.next()){var s=o.value;this.cache[s]=t[s]}}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.remove=function(t){delete this.cache[t]},e.prototype.clear=function(){this.cache={}},e.prototype.load=function(){var t,r,n=this.storage.get(this.namespace),i;try{i=JSON.parse(n)||{}}catch{return}var o={};try{for(var s=Fr(Object.keys(i)),a=s.next();!a.done;a=s.next()){var u=a.value;try{var c=void 0;this.transformer?c=this.transformer(i[u]):c=i[u],c&&(o[u]=c)}catch{}}}catch(l){t={error:l}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}this.clear(),this.putAll(o)},e.prototype.store=function(t){t===void 0&&(t=this.cache),this.storage.put(this.namespace,JSON.stringify(t))},e})(),Zm=function(e){if(typeof e=="string")return{key:e,value:e};if(typeof e=="object"){var t=e.key,r=e.value,n=e.payload,i=e.metadata,o=e.expKey;i&&i.experimentKey?o=i.experimentKey:o&&(i=i||{},i.experimentKey=o);var s={};return t?s.key=t:r&&(s.key=r),r&&(s.value=r),i&&(s.metadata=i),n&&(s.payload=n),o&&(s.expKey=o),s}},ey=(function(){function e(){this.globalScope=pn()}return e.prototype.get=function(t){var r;return(r=this.globalScope)===null||r===void 0?void 0:r.sessionStorage.getItem(t)},e.prototype.put=function(t,r){var n;(n=this.globalScope)===null||n===void 0||n.sessionStorage.setItem(t,r)},e.prototype.delete=function(t){var r;(r=this.globalScope)===null||r===void 0||r.sessionStorage.removeItem(t)},e})(),CO=function(e,t,r,n){var i,o="[Experiment] Exposure",s=r?.value,a="[Experiment] ".concat(t);return{name:o,user:e,key:t,variant:r,userProperty:a,properties:{key:t,variant:s,source:n},userProperties:(i={},i[a]=s,i)}},Ut=function(e){return e==null},Wa=function(e){return Ut(e)?!0:e&&Object.keys(e).length===0},IO=function(e){var t,r;if(!e||typeof e!="object")return{};var n={};try{for(var i=Fr(Object.entries(e)),o=i.next();!o.done;o=i.next()){var s=ct(o.value,2),a=s[0],u=s[1];Ut(u)||(n[a]=u)}}catch(c){t={error:c}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},Eh=function(e){var t;return((t=e?.metadata)===null||t===void 0?void 0:t.evaluationMode)==="local"},kO=(function(){function e(t,r,n,i){this.started=!1,this.done=!1,this.attempts=t,this.min=r,this.max=n,this.scalar=i}return e.prototype.start=function(t){return Ze(this,void 0,void 0,function(){return et(this,function(r){switch(r.label){case 0:if(!this.started)this.started=!0;else throw Error("Backoff already started");return[4,this.backoff(t,0,this.min)];case 1:return r.sent(),[2]}})})},e.prototype.cancel=function(){this.done=!0,clearTimeout(this.timeoutHandle)},e.prototype.backoff=function(t,r,n){return Ze(this,void 0,void 0,function(){var i=this;return et(this,function(o){return this.done?[2]:(this.timeoutHandle=Ge.setTimeout(function(){return Ze(i,void 0,void 0,function(){var s,a;return et(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,t()];case 1:return u.sent(),[3,3];case 2:return u.sent(),s=r+1,s<this.attempts&&(a=Math.min(n*this.scalar,this.max),this.backoff(t,s,a)),[3,3];case 3:return[2]}})})},n),[2])})})},e})(),PO=function(e){var t,r,n,i;if(!e)return{};var o={user:e},s=pn();s&&(o.page={url:s.location.href});var a={};if(!e.groups)return o;try{for(var u=Fr(Object.keys(e.groups)),c=u.next();!c.done;c=u.next()){var l=c.value,f=e.groups[l];if(f.length>0&&f[0]){var d=f[0],h={group_name:d},v=(i=(n=e.group_properties)===null||n===void 0?void 0:n[l])===null||i===void 0?void 0:i[d];v&&Object.keys(v).length>0&&(h.group_properties=v),a[l]=h}}}catch(p){t={error:p}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return Object.keys(a).length>0&&(o.groups=a),delete o.user.groups,delete o.user.group_properties,o},ft=function(e){return e==null?{}:typeof e=="string"?{key:e,value:e}:e},_h=function(e){if(!e)return{};var t=void 0;e.metadata&&(t=e.metadata.experimentKey);var r={};return e.key&&(r.key=e.key),e.value&&(r.value=e.value),e.payload&&(r.payload=e.payload),t&&(r.expKey=t),e.metadata&&(r.metadata=e.metadata),r},RO=(function(){function e(t){this.setProperties={},this.unsetProperties={},this.analyticsProvider=t}return e.prototype.track=function(t){this.setProperties[t.key]!=t.variant.value&&(this.setProperties[t.key]=t.variant.value,delete this.unsetProperties[t.key],this.analyticsProvider.track(t))},e.prototype.setUserProperty=function(t){this.setProperties[t.key]!=t.variant.value&&this.analyticsProvider.setUserProperty(t)},e.prototype.unsetUserProperty=function(t){this.unsetProperties[t.key]||(this.unsetProperties[t.key]="unset",delete this.setProperties[t.key],this.analyticsProvider.unsetUserProperty(t))},e})(),OO=(function(){function e(t){this.tracked={},this.identity={},this.exposureTrackingProvider=t}return e.prototype.track=function(t,r){var n={userId:r?.user_id,deviceId:r?.device_id};this.identityEquals(this.identity,n)||(this.tracked={}),this.identity=n;var i=t.flag_key in this.tracked,o=this.tracked[t.flag_key];i&&o===t.variant||(this.tracked[t.flag_key]=t.variant,this.exposureTrackingProvider.track(t))},e.prototype.identityEquals=function(t,r){return t.userId===r.userId&&t.deviceId===r.deviceId},e})(),xO=1e4,NO=8,LO=500,MO=1e4,DO=1.5,Sh=6e4,UO="https://api.lab.eu.amplitude.com",FO="https://flag.lab.eu.amplitude.com",HO=(function(){function e(t,r){var n=this,i,o,s,a;this.engine=new qR,this.isRunning=!1,this.apiKey=t,r=IO(r),this.config=Te(Te(Te({},Pn),r),{serverUrl:r?.serverUrl||(((i=r?.serverZone)===null||i===void 0?void 0:i.toLowerCase())==="eu"?UO:Pn.serverUrl),flagsServerUrl:r?.flagsServerUrl||(((o=r?.serverZone)===null||o===void 0?void 0:o.toLowerCase())==="eu"?FO:Pn.flagsServerUrl),flagConfigPollingIntervalMillis:r.flagConfigPollingIntervalMillis<Sh?Sh:(s=r.flagConfigPollingIntervalMillis)!==null&&s!==void 0?s:Pn.flagConfigPollingIntervalMillis}),this.logger=new EO(this.config.loggerProvider||new _O,e.getLogLevel(r));var u=(a=this.config)===null||a===void 0?void 0:a.internalInstanceNameSuffix;if(this.isWebExperiment=u==="web",this.poller=new nO(function(){return Ze(n,void 0,void 0,function(){var h;return et(this,function(v){switch(v.label){case 0:return v.trys.push([0,2,,3]),[4,this.doFlags()];case 1:return v.sent(),[3,3];case 2:return h=v.sent(),this.logger.info(h),[3,3];case 3:return[2]}})})},this.config.flagConfigPollingIntervalMillis),this.config.initialVariants)for(var c in this.config.initialVariants)this.config.initialVariants[c]=Zm(this.config.initialVariants[c]);this.config.userProvider&&(this.userProvider=this.config.userProvider),this.config.analyticsProvider&&(this.analyticsProvider=new RO(this.config.analyticsProvider)),this.config.exposureTrackingProvider&&(this.userSessionExposureTracker=new OO(this.config.exposureTrackingProvider)),this.integrationManager=new gO(this.config,this);var l=new vO(this.config.httpClient||Jm);this.flagApi=new tO(this.apiKey,this.config.flagsServerUrl,l),this.evaluationApi=new eO(this.apiKey,this.config.serverUrl,l);var f,d=u?"".concat(this.config.instanceName,"-").concat(u):this.config.instanceName;this.isWebExperiment?f=new ey:f=new Xs,this.variants=SO(this.apiKey,d,f),this.flags=wO(this.apiKey,d,f),this.fetchVariantsOptions=TO(this.apiKey,d,f);try{this.flags.load(),this.variants.load(),this.fetchVariantsOptions.load()}catch{}this.mergeInitialFlagsWithStorage()}return e.prototype.start=function(t){return Ze(this,void 0,void 0,function(){var r,n,i,o;return et(this,function(s){switch(s.label){case 0:if(this.isRunning)return[2];this.isRunning=!0,this.setUser(t),s.label=1;case 1:return s.trys.push([1,6,,7]),r=this.doFlags(),n=(o=this.config.fetchOnStart)!==null&&o!==void 0?o:!0,n?[4,Promise.all([this.fetch(t),r])]:[3,3];case 2:return s.sent(),[3,5];case 3:return[4,r];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:if(i=s.sent(),this.config.throwOnError)throw i;return[3,7];case 7:return this.config.pollOnStart&&this.poller.start(),[2]}})})},e.prototype.stop=function(){this.isRunning&&(this.poller.stop(),this.isRunning=!1)},e.prototype.fetch=function(){return Ze(this,arguments,void 0,function(t,r){var n;return t===void 0&&(t=this.user),et(this,function(i){switch(i.label){case 0:this.setUser(t||{}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.fetchInternal(t,this.config.fetchTimeoutMillis,this.config.retryFetchOnFailure,r)];case 2:return i.sent(),[3,4];case 3:if(n=i.sent(),this.config.throwOnError)throw n;return n instanceof nl?this.logger.debug(n):this.logger.error(n),[3,4];case 4:return[2,this]}})})},e.prototype.variant=function(t,r){var n,i;if(!this.apiKey)return{value:void 0};var o=this.variantAndSource(t,r);return this.config.automaticExposureTracking&&this.exposureInternal(t,o),this.logger.debug("[Experiment] variant for ".concat(t," is ").concat(((n=o.variant)===null||n===void 0?void 0:n.key)||((i=o.variant)===null||i===void 0?void 0:i.value))),o.variant||{}},e.prototype.exposure=function(t){var r=this.variantAndSource(t);this.exposureInternal(t,r)},e.prototype.all=function(){if(!this.apiKey)return{};var t=this.evaluate();for(var r in t){var n=this.flags.get(r);Eh(n)||delete t[r]}return Te(Te(Te({},this.secondaryVariants()),this.sourceVariants()),t)},e.prototype.clear=function(){this.variants.clear();try{this.variants.store()}catch{}},e.prototype.getUser=function(){var t;if(!this.user)return this.user;if(!((t=this.user)===null||t===void 0)&&t.user_properties){var r=Te({},this.user.user_properties);return Te(Te({},this.user),{user_properties:r})}else return Te({},this.user)},e.prototype.setUser=function(t){var r;if(!t){this.user=null;return}if(!((r=this.user)===null||r===void 0)&&r.user_properties){var n=Te({},t.user_properties);this.user=Te(Te({},t),{user_properties:n})}else this.user=Te({},t)},e.prototype.getUserProvider=function(){return this.userProvider},e.prototype.setUserProvider=function(t){return this.userProvider=t,this},e.prototype.mergeInitialFlagsWithStorage=function(){var t=this;if(this.config.initialFlags){var r=JSON.parse(this.config.initialFlags);r.forEach(function(n){t.flags.get(n.key)||t.flags.put(n.key,n)})}},e.prototype.evaluate=function(t){var r,n,i=this.addContext(this.user),o=VR(this.flags.getAll(),t),s=PO(i),a=this.engine.evaluate(s,o),u={};try{for(var c=Fr(Object.keys(a)),l=c.next();!l.done;l=c.next()){var f=l.value;u[f]=_h(a[f])}}catch(d){r={error:d}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return u},e.prototype.variantAndSource=function(t,r){var n={};this.config.source===cr.LocalStorage?n=this.localStorageVariantAndSource(t,r):this.config.source===cr.InitialVariants&&(n=this.initialVariantsVariantAndSource(t,r));var i=this.flags.get(t);return(Eh(i)||!n.variant&&i)&&(n=this.localEvaluationVariantAndSource(t,i,r)),n},e.prototype.localEvaluationVariantAndSource=function(t,r,n){var i,o={},s=this.evaluate([r.key])[t],a=Xe.LocalEvaluation,u=(i=s?.metadata)===null||i===void 0?void 0:i.default;if(!Ut(s)&&!u)return{variant:ft(s),source:a,hasDefaultVariant:!1};if(u&&(o={variant:ft(s),source:a,hasDefaultVariant:!0}),!Ut(n))return{variant:ft(n),source:Xe.FallbackInline,hasDefaultVariant:o.hasDefaultVariant};var c=this.config.initialVariants[t];if(!Ut(c))return{variant:ft(c),source:Xe.SecondaryInitialVariants,hasDefaultVariant:o.hasDefaultVariant};var l=ft(this.config.fallbackVariant),f={variant:l,source:Xe.FallbackConfig,hasDefaultVariant:o.hasDefaultVariant};return Wa(l)?o:f},e.prototype.localStorageVariantAndSource=function(t,r){var n,i={},o=this.variants.get(t),s=(n=o?.metadata)===null||n===void 0?void 0:n.default;if(!Ut(o)&&!s)return{variant:ft(o),source:Xe.LocalStorage,hasDefaultVariant:!1};if(s&&(i={variant:ft(o),source:Xe.LocalStorage,hasDefaultVariant:!0}),!Ut(r))return{variant:ft(r),source:Xe.FallbackInline,hasDefaultVariant:i.hasDefaultVariant};var a=this.config.initialVariants[t];if(!Ut(a))return{variant:ft(a),source:Xe.SecondaryInitialVariants,hasDefaultVariant:i.hasDefaultVariant};var u=ft(this.config.fallbackVariant),c={variant:u,source:Xe.FallbackConfig,hasDefaultVariant:i.hasDefaultVariant};return Wa(u)?i:c},e.prototype.initialVariantsVariantAndSource=function(t,r){var n,i={},o=this.config.initialVariants[t];if(!Ut(o))return{variant:ft(o),source:Xe.InitialVariants,hasDefaultVariant:!1};var s=this.variants.get(t),a=(n=s?.metadata)===null||n===void 0?void 0:n.default;if(!Ut(s)&&!a)return{variant:ft(s),source:Xe.LocalStorage,hasDefaultVariant:!1};if(a&&(i={variant:ft(s),source:Xe.LocalStorage,hasDefaultVariant:!0}),!Ut(r))return{variant:ft(r),source:Xe.FallbackInline,hasDefaultVariant:i.hasDefaultVariant};var u=ft(this.config.fallbackVariant),c={variant:u,source:Xe.FallbackConfig,hasDefaultVariant:i.hasDefaultVariant};return Wa(u)?i:c},e.prototype.fetchInternal=function(t,r,n,i){return Ze(this,void 0,void 0,function(){var o,s,a;return et(this,function(u){switch(u.label){case 0:if(!this.apiKey)throw Error("Experiment API key is empty");this.logger.debug("[Experiment] Fetch all: retry=".concat(n)),n&&this.stopRetries(),u.label=1;case 1:return u.trys.push([1,4,,5]),[4,this.doFetch(t,r,Te({trackingOption:(a=this.fetchVariantsOptions.get())===null||a===void 0?void 0:a.trackingOption},i))];case 2:return o=u.sent(),[4,this.storeVariants(o,i)];case 3:return u.sent(),[2,o];case 4:throw s=u.sent(),n&&this.shouldRetryFetch(s)&&this.startRetries(t,i),s;case 5:return[2]}})})},e.prototype.setTracksAssignment=function(t){return Ze(this,void 0,void 0,function(){return et(this,function(r){return this.fetchVariantsOptions.put(Te(Te({},this.fetchVariantsOptions.get()||{}),{trackingOption:t?"track":"no-track"})),this.fetchVariantsOptions.store(),[2]})})},e.prototype.cleanUserPropsForFetch=function(t){var r=Te({},t);return delete r.cookie,r},e.prototype.doFetch=function(t,r,n){return Ze(this,void 0,void 0,function(){var i,o,s,a,u,c,l;return et(this,function(f){switch(f.label){case 0:return[4,this.addContextOrWait(t)];case 1:return t=f.sent(),t=this.cleanUserPropsForFetch(t),this.logger.debug("[Experiment] Fetch variants for user: ",t),[4,this.evaluationApi.getVariants(t,Te({timeoutMillis:r},n))];case 2:i=f.sent(),o={};try{for(s=Fr(Object.keys(i)),a=s.next();!a.done;a=s.next())u=a.value,o[u]=_h(i[u])}catch(d){c={error:d}}finally{try{a&&!a.done&&(l=s.return)&&l.call(s)}finally{if(c)throw c.error}}return this.logger.debug("[Experiment] Received variants: ",o),[2,o]}})})},e.prototype.doFlags=function(){return Ze(this,void 0,void 0,function(){var t,r,n;return et(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),t=void 0,this.isWebExperiment?[4,this.addContextOrWait(this.getUser())]:[3,2];case 1:t=i.sent(),i.label=2;case 2:return[4,this.flagApi.getFlags({libraryName:"experiment-js-client",libraryVersion:bh,timeoutMillis:this.config.fetchTimeoutMillis,deliveryMethod:this.isWebExperiment?"web":void 0,user:t?.user_id||t?.device_id?{user_id:t?.user_id,device_id:t?.device_id}:void 0})];case 3:return r=i.sent(),this.flags.clear(),this.flags.putAll(r),[3,5];case 4:if(n=i.sent(),n instanceof nl){if(this.logger.debug(n),this.config.throwOnError)throw n}else throw n;return[3,5];case 5:try{this.flags.store()}catch{}return this.mergeInitialFlagsWithStorage(),[2]}})})},e.prototype.storeVariants=function(t,r){return Ze(this,void 0,void 0,function(){var n,i,o,s,s;return et(this,function(a){n=r&&r.flagKeys?r.flagKeys:[],n.length===0&&this.variants.clear(),i=function(u){n=n.filter(function(c){return c!==u}),o.variants.put(u,t[u])},o=this;for(s in t)i(s);for(s in n)this.variants.remove(s);try{this.variants.store()}catch{}return this.logger.debug("[Experiment] Stored variants: ",t),[2]})})},e.prototype.startRetries=function(t,r){return Ze(this,void 0,void 0,function(){var n=this;return et(this,function(i){return this.logger.debug("[Experiment] Retry fetch"),this.retriesBackoff=new kO(NO,LO,MO,DO),this.retriesBackoff.start(function(){return Ze(n,void 0,void 0,function(){return et(this,function(o){switch(o.label){case 0:return[4,this.fetchInternal(t,xO,!1,r)];case 1:return o.sent(),[2]}})})}),[2]})})},e.prototype.stopRetries=function(){this.retriesBackoff&&this.retriesBackoff.cancel()},e.prototype.addContext=function(t){var r,n=(r=this.userProvider)===null||r===void 0?void 0:r.getUser(),i=this.integrationManager.getUser(),o=Te(Te(Te({},n?.user_properties),i.user_properties),t?.user_properties);return Te(Te(Te(Te({library:"experiment-js-client/".concat(bh)},n),i),t),{user_properties:o})},e.prototype.addContextOrWait=function(t){return Ze(this,void 0,void 0,function(){return et(this,function(r){switch(r.label){case 0:return[4,this.integrationManager.ready()];case 1:return r.sent(),[2,this.addContext(t)]}})})},e.prototype.sourceVariants=function(){if(this.config.source==cr.LocalStorage)return this.variants.getAll();if(this.config.source==cr.InitialVariants)return this.config.initialVariants},e.prototype.secondaryVariants=function(){if(this.config.source==cr.LocalStorage)return this.config.initialVariants;if(this.config.source==cr.InitialVariants)return this.variants.getAll()},e.prototype.exposureInternal=function(t,r){var n,i,o,s,a,u,c,l,f,d=(o=(i=(n=r.variant)===null||n===void 0?void 0:n.metadata)===null||i===void 0?void 0:i.trackExposure)!==null&&o!==void 0?o:!0;if(d){this.legacyExposureInternal(t,r.variant,r.source);var h={flag_key:t},v=yh(r.source);if(!(v&&!r.hasDefaultVariant)){!((s=r.variant)===null||s===void 0)&&s.expKey&&(h.experiment_key=(a=r.variant)===null||a===void 0?void 0:a.expKey);var p=(u=r.variant)===null||u===void 0?void 0:u.metadata;if(!v&&!p?.default&&(!((c=r.variant)===null||c===void 0)&&c.key?h.variant=r.variant.key:!((l=r.variant)===null||l===void 0)&&l.value&&(h.variant=r.variant.value)),p&&(h.metadata=p),this.isWebExperiment&&(h.time=Date.now()),this.isWebExperiment){var b=pn();if(b?.location)try{var E=b.location.href;h.metadata.url=E.split("?")[0]||""}catch{}}var m=this.addContext(this.getUser());(f=this.userSessionExposureTracker)===null||f===void 0||f.track(h,m),this.integrationManager.track(h,m)}}},e.prototype.legacyExposureInternal=function(t,r,n){var i,o,s,a,u;if(this.analyticsProvider){var c=this.addContext(this.getUser()),l=CO(c,t,r,n);yh(n)||!r?.value?(o=(i=this.analyticsProvider)===null||i===void 0?void 0:i.unsetUserProperty)===null||o===void 0||o.call(i,l):r?.value&&((a=(s=this.analyticsProvider)===null||s===void 0?void 0:s.setUserProperty)===null||a===void 0||a.call(s,l),(u=this.analyticsProvider)===null||u===void 0||u.track(l))}},e.getLogLevel=function(t){var r;return t.debug===!0?Ht.Debug:(r=t.logLevel)!==null&&r!==void 0?r:Ht.Error},e.prototype.shouldRetryFetch=function(t){return t instanceof Ym?t.statusCode<400||t.statusCode>=500||t.statusCode===429:!0},e.prototype.addPlugin=function(t){t.type==="integration"&&this.integrationManager.setIntegration(t)},e})(),BO=(function(){function e(t,r){var n,i,o;this.globalScope=pn(),this.userAgent=typeof((n=this.globalScope)===null||n===void 0?void 0:n.navigator)<"u"?(i=this.globalScope)===null||i===void 0?void 0:i.navigator.userAgent:void 0,this.ua=new sO.UAParser(this.userAgent).getResult(),this.localStorage=new Xs,this.sessionStorage=new ey,this.userProvider=t,this.apiKey=r,this.storageKey="EXP_".concat((o=this.apiKey)===null||o===void 0?void 0:o.slice(0,10),"_DEFAULT_USER_PROVIDER")}return e.prototype.getUser=function(){var t,r,n,i,o,s=((t=this.userProvider)===null||t===void 0?void 0:t.getUser())||{};return Te({language:this.getLanguage(),platform:"Web",os:this.getOs(this.ua),device_model:this.getDeviceModel(this.ua),device_category:(n=(r=this.ua.device)===null||r===void 0?void 0:r.type)!==null&&n!==void 0?n:"desktop",referring_url:(o=(i=this.globalScope)===null||i===void 0?void 0:i.document)===null||o===void 0?void 0:o.referrer.replace(/\/$/,""),cookie:this.getCookie(),browser:this.getBrowser(this.ua),landing_url:this.getLandingUrl(),first_seen:this.getFirstSeen(),url_param:this.getUrlParam(),user_agent:this.userAgent},s)},e.prototype.getLanguage=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},e.prototype.getOs=function(t){var r,n;return[(r=t.browser)===null||r===void 0?void 0:r.name,(n=t.browser)===null||n===void 0?void 0:n.major].filter(function(i){return i!=null}).join(" ")},e.prototype.getDeviceModel=function(t){var r;return(r=t.os)===null||r===void 0?void 0:r.name},e.prototype.getBrowser=function(t){var r,n=(r=t.browser)===null||r===void 0?void 0:r.name;return n?.includes("Chrom")&&(n="Chrome"),n?.includes("Firefox")&&(n="Firefox"),n?.includes("Safari")&&(n="Safari"),n?.includes("Edge")&&(n="Edge"),n?.includes("Opera")&&(n="Opera"),n},e.prototype.getCookie=function(){var t,r,n,i,o;if(!((r=(t=this.globalScope)===null||t===void 0?void 0:t.document)===null||r===void 0)&&r.cookie)return Object.fromEntries((o=(i=(n=this.globalScope)===null||n===void 0?void 0:n.document)===null||i===void 0?void 0:i.cookie)===null||o===void 0?void 0:o.split("; ").map(function(s){return s.split("=")}))},e.prototype.getLandingUrl=function(){var t,r;try{var n=JSON.parse(this.sessionStorage.get(this.storageKey)||"{}");return n.landing_url||(n.landing_url=(r=(t=this.globalScope)===null||t===void 0?void 0:t.location)===null||r===void 0?void 0:r.href.replace(/\/$/,""),this.sessionStorage.put(this.storageKey,JSON.stringify(n))),n.landing_url}catch{return}},e.prototype.getFirstSeen=function(){try{var t=JSON.parse(this.localStorage.get(this.storageKey)||"{}");return t.first_seen||(t.first_seen=(Date.now()/1e3).toString(),this.localStorage.put(this.storageKey,JSON.stringify(t))),t.first_seen}catch{return}},e.prototype.getUrlParam=function(){var t,r,n;if(this.globalScope){var i={};try{var o=new URL(this.globalScope.location.href);try{for(var s=Fr(o.searchParams),a=s.next();!a.done;a=s.next()){var u=ct(a.value,2),c=u[0],l=u[1];i[c]=Rt(Rt([],ct((n=i[c])!==null&&n!==void 0?n:[]),!1),ct(l.split(",")),!1)}}catch(f){t={error:f}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}}catch{return}return Object.entries(i).reduce(function(f,d){var h=ct(d,2),v=h[0],p=h[1];return f[v]=p.length==1?p[0]:p,f},{})}},e})();Ge.experimentInstances={};var wh=Ge.experimentInstances,jO=function(e,t){var r=function(){return new lO(e,Ml.getInstance(ty(t)),1e4)};return $O(e,t,r)},ty=function(e){return e?.instanceName||Pn.instanceName},qO=function(e,t){var r=ty(t),n=t?.internalInstanceNameSuffix;return n?"".concat(r,".").concat(e,".").concat(n):"".concat(r,".").concat(e)},VO=function(e,t){return new HO(e,Te(Te({},t),{userProvider:new BO(t?.userProvider,e)}))},$O=function(e,t,r){var n=qO(e,t),i=wh[n];return i||(i=VO(e,t),r&&i.addPlugin(r()),wh[n]=i,i)},Qo=(function(){function e(t){this.name=e.pluginName,this.config=t}return e.prototype.setup=function(t,r){var n;return x(this,void 0,void 0,function(){return O(this,function(i){return this.experiment=jO(((n=this.config)===null||n===void 0?void 0:n.deploymentKey)||t.apiKey,this.config),[2]})})},e.pluginName="@amplitude/experiment-analytics-plugin",e})(),WO=function(e){return new Qo(e)},GO=(function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:KO(),platform:"Web",os:void 0,deviceModel:void 0}},e})(),KO=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},zO=(function(){function e(){this.queue=[]}return e.prototype.logEvent=function(t){this.receiver?this.receiver(t):this.queue.length<512&&this.queue.push(t)},e.prototype.setEventReceiver=function(t){this.receiver=t,this.queue.length>0&&(this.queue.forEach(function(r){t(r)}),this.queue=[])},e})(),Or=function(){return Or=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Or.apply(this,arguments)};function Zo(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Th(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}var es=function(e,t){var r,n,i=["string","number","boolean","undefined"],o=typeof e,s=typeof t;if(o!==s)return!1;try{for(var a=Zo(i),u=a.next();!u.done;u=a.next()){var c=u.value;if(c===o)return e===t}}catch(b){r={error:b}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}if(e==null&&t==null)return!0;if(e==null||t==null||e.length!==t.length)return!1;var l=Array.isArray(e),f=Array.isArray(t);if(l!==f)return!1;if(l&&f){for(var d=0;d<e.length;d++)if(!es(e[d],t[d]))return!1}else{var h=Object.keys(e).sort(),v=Object.keys(t).sort();if(!es(h,v))return!1;var p=!0;return Object.keys(e).forEach(function(b){es(e[b],t[b])||(p=!1)}),p}return!0},XO="$set",YO="$unset",JO="$clearAll";Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n});var QO=(function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var t=this,r=Or({},this.identity.userProperties),n=Or(Or({},this.identity),{userProperties:r});return{setUserId:function(i){return n.userId=i,this},setDeviceId:function(i){return n.deviceId=i,this},setUserProperties:function(i){return n.userProperties=i,this},setOptOut:function(i){return n.optOut=i,this},updateUserProperties:function(i){var o,s,a,u,c,l,f=n.userProperties||{};try{for(var d=Zo(Object.entries(i)),h=d.next();!h.done;h=d.next()){var v=Th(h.value,2),p=v[0],b=v[1];switch(p){case XO:try{for(var E=(a=void 0,Zo(Object.entries(b))),m=E.next();!m.done;m=E.next()){var g=Th(m.value,2),y=g[0],_=g[1];f[y]=_}}catch(C){a={error:C}}finally{try{m&&!m.done&&(u=E.return)&&u.call(E)}finally{if(a)throw a.error}}break;case YO:try{for(var S=(c=void 0,Zo(Object.keys(b))),A=S.next();!A.done;A=S.next()){var y=A.value;delete f[y]}}catch(C){c={error:C}}finally{try{A&&!A.done&&(l=S.return)&&l.call(S)}finally{if(c)throw c.error}}break;case JO:f={};break}}}catch(C){o={error:C}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}finally{if(o)throw o.error}}return n.userProperties=f,this},commit:function(){return t.setIdentity(n),this}}},e.prototype.getIdentity=function(){return Or({},this.identity)},e.prototype.setIdentity=function(t){var r=Or({},this.identity);this.identity=Or({},t),es(r,this.identity)||this.listeners.forEach(function(n){n(t)})},e.prototype.addIdentityListener=function(t){this.listeners.add(t)},e.prototype.removeIdentityListener=function(t){this.listeners.delete(t)},e})(),yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:self,ZO=(function(){function e(){this.identityStore=new QO,this.eventBridge=new zO,this.applicationContextProvider=new GO}return e.getInstance=function(t){return yi.analyticsConnectorInstances||(yi.analyticsConnectorInstances={}),yi.analyticsConnectorInstances[t]||(yi.analyticsConnectorInstances[t]=new e),yi.analyticsConnectorInstances[t]},e})(),Ah=["boot"],ex="$default_instance";function tx(e){var t,r,n,i,o,s,a,u,c;let l=typeof window<"u"?window.engagement:void 0,f=!1,d={_q:(t=l?._q)!=null?t:[],_configuration:{apiKey:(n=(r=l?._configuration)==null?void 0:r.apiKey)!=null?n:"",serverUrl:(i=l?._configuration)==null?void 0:i.serverUrl,chatUrl:(o=l?._configuration)==null?void 0:o.chatUrl,mediaUrl:(s=l?._configuration)==null?void 0:s.mediaUrl,serverZone:(u=(a=l?._configuration)==null?void 0:a.serverZone)!=null?u:"US",options:{...(c=l?._configuration)==null?void 0:c.options}},init(v,p){var b,E,m,g;if(d._configuration.apiKey){console.log("Engagement SDK has already been initialized. Ignoring additional init call.");return}if(p!=null&&p.useEngagementDomain){let C=((b=p.serverZone)!=null?b:d._configuration.serverZone)==="EU",I="amplitudeengagement.com";p.serverUrl||(p.serverUrl=C?`https://gs.eu.${I}`:`https://gs.${I}`),p.chatUrl||(p.chatUrl=C?`https://houston-chat.eu.${I}`:`https://houston-chat.${I}`),p.mediaUrl||(p.mediaUrl=C?`https://engagement-static.eu.${I}`:`https://engagement-static.${I}`),p.cdnUrl||(p.cdnUrl=C?`https://cdn.eu.${I}`:`https://cdn.${I}`)}d._configuration={...d._configuration,...p,apiKey:v,options:{splitting:!0,...d._configuration.options,...p?.options}},(m=(E=d._configuration)==null?void 0:E.options)!=null&&m.logger&&d._configuration.options.logger.enable((g=d._configuration.options.logLevel)!=null?g:2);let y;if(p!=null&&p.cdnUrl)d._configuration.options.splitting?y=`${p.cdnUrl}/engagement-browser/prod/split/index.js`:y=p.cdnUrl+"/engagement-browser/prod/index.min.js.gz";else{let C=d._configuration.serverZone==="EU"?"https://cdn.eu.amplitude.com":"https://cdn.amplitude.com";d._configuration.options.splitting?y=`${C}/engagement-browser/prod/split/index.js`:y=`${C}/engagement-browser/prod/index.min.js.gz`}let _=null,S=()=>{if(f=!0,_&&(clearTimeout(_),_=null),d._q&&d._q.length>0)for(console.warn(`Engagement SDK failed to load within ${A}ms. Resolving pending calls gracefully.`);d._q.length>0;){let C=d._q.shift();if(!C)continue;let I=C[0],P=Ah.includes(I);if(console.warn(`Engagement SDK method '${I}' still in queue (isAsyncMethod=${P}); attempting to resolve as no-op.`),P&&C[1]instanceof Function&&C[2]instanceof Function){let R=C[1];console.warn(`Engagement SDK method '${I}' resolved as no-op due to script loading failure`),R(void 0)}}};e(y,d._configuration.options.splitting?"module":void 0,p?.nonce,S);let A=1e4;_=setTimeout(()=>{S()},A)},plugin(v){let p=d.init;return{name:"@amplitude/engagement-browser",type:"enrichment",async setup(b,E){var m;let g=(m=b.instanceName)!=null?m:ex,y=ZO.getInstance(g).identityStore;p(b.apiKey,{serverZone:b.serverZone,...v,options:{logLevel:b.logLevel,logger:b.loggerProvider,...v?.options}});let _=[{track:S=>{E.track(S)}}];await window.engagement.boot({user:()=>{let S=y.getIdentity();return{user_id:E.getUserId(),device_id:E.getDeviceId(),user_properties:S.userProperties,getSessionId:E.getSessionId}},integrations:_}),y.addIdentityListener(S=>{var A,C,I,P;if(!((A=window.engagement)!=null&&A._.user)||!((C=window.engagement)!=null&&C._analytics.hasBooted)){console.warn("Engagement SDK not booted. Ignoring identity change.");return}((P=(I=window.engagement)==null?void 0:I._.user)==null?void 0:P.user_id)!==S.userId?(window.engagement.shutdown(),window.engagement.boot({user:()=>{let R=y.getIdentity();return{user_id:E.getUserId(),device_id:E.getDeviceId(),user_properties:R.userProperties,getSessionId:E.getSessionId}},integrations:_})):window.engagement._setUserProperties(S.userProperties)})},async execute(b){return window.engagement.forwardEvent(b),b}}}},h=d;return new Proxy(d,{get:function(v,p){if(p in h)return h[p];if(p!=="then")return p==="gs"||p==="rc"?new Proxy({},{get:function(b,E){return function(){let m=Array.from(arguments),g=`${p}.${E}`;m.unshift(g),d._q.push(m)}}}):Ah.includes(p)?function(){let b=Array.prototype.slice.call(arguments);return new Promise((E,m)=>{b.unshift(p,E,m),d._q.push(b),f&&E(void 0)})}:function(){let b=Array.prototype.slice.call(arguments);b.unshift(p),d._q.push(b)}}})}var ry=(e=>(e.Local="https://local.amplitude.com:3010/",e.Staging="https://apps.stag2.amplitude.com/",e.Production="https://app.amplitude.com/",e.ProductionEU="https://app.eu.amplitude.com/",e))(ry||{}),rx=e=>{if(typeof window<"u"&&window.opener)for(let t of Object.values(ry))window.opener.postMessage({message:e},t)};function nx(e,t,r,n){for(let i of e){let o=document.createElement("script");o.src=i,o.id="engagement-sdk-bundle",r&&o.setAttribute("nonce",r),t&&o.setAttribute("type",t),n&&(o.onerror=n),document.getElementsByTagName("head")[0].appendChild(o)}}var ix=()=>(rx("ENGAGEMENT_SNIPPET"),tx((e,t,r,n)=>nx([e||"https://cdn.amplitude.com/engagement-browser/prod/index.min.js.gz"],t,r,n))),Ch=ix(),ox=e=>(typeof window<"u"&&!window.engagement&&(window.engagement=Ch),Ch.plugin(e)),sx="1.0.15",ax="amplitude-ts-unified",ux=function(){return{type:"enrichment",name:"@amplitude/unified-library-plugin",execute:function(e){var t;return x(this,void 0,void 0,function(){return O(this,function(r){return e.library="".concat(ax,"/").concat(sx,"-").concat((t=e.library)!==null&&t!==void 0?t:""),[2,e]})})}}},lx=(function(e){Dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.sessionReplay=function(){return this._sessionReplay},t.prototype.experiment=function(){if(this.config!==void 0){var r=this.plugins(Qo);if(r.length===0){this.config.loggerProvider.debug("".concat(Qo.pluginName," plugin is not found."));return}else{if(r.length===1)return r[0].experiment;this.config.loggerProvider.debug("Multiple instances of ".concat(Qo.pluginName," are found."));return}}},t.prototype.initAll=function(r,n){return x(this,void 0,void 0,function(){var i=this;return O(this,function(o){return this._initAllPromise?[2,this._initAllPromise]:(this._initAllPromise=(function(){return x(i,void 0,void 0,function(){var s,a;return O(this,function(u){switch(u.label){case 0:return s={serverZone:n?.serverZone,instanceName:n?.instanceName},e.prototype.add.call(this,ux()),[4,e.prototype.init.call(this,r,D(D({},n?.analytics),s)).promise];case 1:return u.sent(),[4,e.prototype.add.call(this,IR(D(D({},n?.sessionReplay),s))).promise];case 2:return u.sent(),[4,e.prototype.add.call(this,WO(D(D({},n?.experiment),s))).promise];case 3:return u.sent(),a=this.plugin(Qu.pluginName),a===void 0?this.config.loggerProvider.debug("".concat(Qu.pluginName," plugin is not found.")):this._sessionReplay=a.sessionReplay,[4,e.prototype.add.call(this,ox(D(D({},n?.engagement),s))).promise];case 4:return u.sent(),[2]}})})})().finally(function(){i._initAllPromise=void 0}),[2,this._initAllPromise])})})},t.prototype.init=function(r,n,i){r===void 0&&(r="");var o=e.prototype.init.call(this,r,n,i);return o},t})(Mk),ny=function(){var e=new lx;return{_setDiagnosticsSampleRate:_e(e._setDiagnosticsSampleRate.bind(e),"_setDiagnosticsSampleRate",Pe(e),Re(e,["config"])),_enableRequestBodyCompressionExperimental:_e(e._enableRequestBodyCompressionExperimental.bind(e),"_enableRequestBodyCompressionExperimental",Pe(e),Re(e,["config"])),experiment:_e(e.experiment.bind(e),"experiment",Pe(e),Re(e,["config"])),sessionReplay:_e(e.sessionReplay.bind(e),"sessionReplay",Pe(e),Re(e,["config"])),initAll:_e(e.initAll.bind(e),"initAll",Pe(e),Re(e,["config"])),init:_e(e.init.bind(e),"init",Pe(e),Re(e,["config"])),add:_e(e.add.bind(e),"add",Pe(e),Re(e,["config.apiKey","timeline.plugins"])),remove:_e(e.remove.bind(e),"remove",Pe(e),Re(e,["config.apiKey","timeline.plugins"])),track:_e(e.track.bind(e),"track",Pe(e),Re(e,["config.apiKey","timeline.queue.length"])),logEvent:_e(e.logEvent.bind(e),"logEvent",Pe(e),Re(e,["config.apiKey","timeline.queue.length"])),identify:_e(e.identify.bind(e),"identify",Pe(e),Re(e,["config.apiKey","timeline.queue.length"])),groupIdentify:_e(e.groupIdentify.bind(e),"groupIdentify",Pe(e),Re(e,["config.apiKey","timeline.queue.length"])),setGroup:_e(e.setGroup.bind(e),"setGroup",Pe(e),Re(e,["config.apiKey","timeline.queue.length"])),revenue:_e(e.revenue.bind(e),"revenue",Pe(e),Re(e,["config.apiKey","timeline.queue.length"])),flush:_e(e.flush.bind(e),"flush",Pe(e),Re(e,["config.apiKey","timeline.queue.length"])),getUserId:_e(e.getUserId.bind(e),"getUserId",Pe(e),Re(e,["config","config.userId"])),setUserId:_e(e.setUserId.bind(e),"setUserId",Pe(e),Re(e,["config","config.userId"])),getDeviceId:_e(e.getDeviceId.bind(e),"getDeviceId",Pe(e),Re(e,["config","config.deviceId"])),setDeviceId:_e(e.setDeviceId.bind(e),"setDeviceId",Pe(e),Re(e,["config","config.deviceId"])),reset:_e(e.reset.bind(e),"reset",Pe(e),Re(e,["config","config.userId","config.deviceId"])),getSessionId:_e(e.getSessionId.bind(e),"getSessionId",Pe(e),Re(e,["config"])),setSessionId:_e(e.setSessionId.bind(e),"setSessionId",Pe(e),Re(e,["config"])),extendSession:_e(e.extendSession.bind(e),"extendSession",Pe(e),Re(e,["config"])),setOptOut:_e(e.setOptOut.bind(e),"setOptOut",Pe(e),Re(e,["config"])),getOptOut:_e(e.getOptOut.bind(e),"getOptOut",Pe(e),Re(e,["config"])),setTransport:_e(e.setTransport.bind(e),"setTransport",Pe(e),Re(e,["config"])),getIdentity:_e(e.getIdentity.bind(e),"getIdentity",Pe(e),Re(e,["config"])),setIdentity:_e(e.setIdentity.bind(e),"setIdentity",Pe(e),Re(e,["config","config.userId","config.deviceId"]))}};const Ne=ny();var cx=Ne._setDiagnosticsSampleRate,fx=Ne._enableRequestBodyCompressionExperimental,iy=Ne.initAll,dx=Ne.experiment,hx=Ne.sessionReplay,vx=Ne.add,px=Ne.extendSession,gx=Ne.flush,mx=Ne.getDeviceId,yx=Ne.getIdentity,bx=Ne.getOptOut,Ex=Ne.getSessionId,_x=Ne.getUserId,Sx=Ne.groupIdentify,wx=Ne.identify,Tx=Ne.logEvent,Ax=Ne.remove,Cx=Ne.reset,Ix=Ne.revenue,kx=Ne.setDeviceId,Px=Ne.setGroup,Rx=Ne.setIdentity,Ox=Ne.setOptOut,xx=Ne.setSessionId,Nx=Ne.setTransport,Lx=Ne.setUserId,Mx=Ne.track;const Dx=Object.freeze(Object.defineProperty({__proto__:null,Identify:Fn,Revenue:Gp,Types:bC,_enableRequestBodyCompressionExperimental:fx,_setDiagnosticsSampleRate:cx,add:vx,createInstance:ny,experiment:dx,extendSession:px,flush:gx,getDeviceId:mx,getIdentity:yx,getOptOut:bx,getSessionId:Ex,getUserId:_x,groupIdentify:Sx,identify:wx,initAll:iy,logEvent:Tx,remove:Ax,reset:Cx,revenue:Ix,sessionReplay:hx,setDeviceId:kx,setGroup:Px,setIdentity:Rx,setOptOut:Ox,setSessionId:xx,setTransport:Nx,setUserId:Lx,track:Mx},Symbol.toStringTag,{value:"Module"})),Ux=rr(e=>{const r=ro().public.amplitudeApiKey;return r&&iy(r),{provide:{amplitude:Dx}}}),Fx=[fS,gS,Vw,Ww,Gw,Kw,Xw,Yw,Qw,Ux],Lo="<div></div>",Ga=new WeakMap;function Hx(e){if(Ga.has(e))return Ga.get(e);const t={...e};return t.render?t.render=(r,n,i,o,s,a)=>{if(o.mounted$??r.mounted$){const u=e.render?.bind(r)(r,n,i,o,s,a);return u.children===null||typeof u.children=="string"?xt(u):Ke(u)}return Ea(r._.vnode.el,Lo)}:t.template&&=`
      <template v-if="mounted$">${e.template}</template>
      <template v-else>${Lo}</template>
    `,t.setup=(r,n)=>{const i=He(),o=br(i.isHydrating===!1),s=hn();if(i.isHydrating){const u={...s.attrs},c=Bx(s);for(const l in u)delete s.attrs[l];Vn(()=>{Object.assign(s.attrs,u),s.vnode.dirs=c})}Vn(()=>{o.value=!0});const a=e.setup?.(r,n)||{};return al(a)?Promise.resolve(a).then(u=>typeof u!="function"?(u||={},u.mounted$=o,u):(...c)=>{if(o.value||!i.isHydrating){const l=u(...c);return l.children===null||typeof l.children=="string"?xt(l):Ke(l)}return Ea(s?.vnode.el,Lo)}):typeof a=="function"?(...u)=>{if(o.value){const c=a(...u),l=t.inheritAttrs!==!1?n.attrs:void 0;return c.children===null||typeof c.children=="string"?xt(c,l):Ke(c,l)}return Ea(s?.vnode.el,Lo)}:Object.assign(a,{mounted$:o})},Ga.set(e,t),t}function Bx(e){if(!e||!e.vnode.dirs)return null;const t=e.vnode.dirs;return e.vnode.dirs=null,t}function jx(e={}){const t=br(""),r=br(e.politeness||"polite"),n=_p();function i(c="",l="polite"){t.value=c,r.value=l}function o(c){return i(c,"polite")}function s(c){return i(c,"assertive")}function a(){i(document?.title?.trim(),r.value)}function u(){n?.hooks?.removeHook("dom:rendered",a)}return a(),n?.hooks?.hook("dom:rendered",()=>{a()}),{_cleanup:u,message:t,politeness:r,set:i,polite:o,assertive:s}}function qx(e={}){const t=He(),r=t._routeAnnouncer||=jx(e);return e.politeness!==r.politeness.value&&(r.politeness.value=e.politeness||"polite"),ll()&&(t._routeAnnouncerDeps||=0,t._routeAnnouncerDeps++,Ey(()=>{t._routeAnnouncerDeps--,t._routeAnnouncerDeps===0&&(r._cleanup(),delete t._routeAnnouncer)})),r}const Vx=jr({name:"NuxtRouteAnnouncer",props:{atomic:{type:Boolean,default:!1},politeness:{type:String,default:"polite"}},setup(e,{slots:t,expose:r}){const{set:n,polite:i,assertive:o,message:s,politeness:a}=qx({politeness:e.politeness});return r({set:n,polite:i,assertive:o,message:s,politeness:a}),()=>Ke("span",{class:"nuxt-route-announcer",style:{position:"absolute"}},Ke("span",{role:"alert","aria-live":a.value,"aria-atomic":e.atomic,style:{border:"0",clip:"rect(0 0 0 0)","clip-path":"inset(50%)",height:"1px",width:"1px",overflow:"hidden",position:"absolute","white-space":"nowrap","word-wrap":"normal",margin:"-1px",padding:"0"}},t.default?t.default({message:s.value}):s.value))}}),$x=(...e)=>e.find(t=>t!==void 0);function Wx(e){const t=e.componentName||"NuxtLink";function r(o){return typeof o=="string"&&o.startsWith("#")}function n(o,s,a){const u=a??e.trailingSlash;if(!o||u!=="append"&&u!=="remove")return o;if(typeof o=="string")return Mo(o,u);const c="path"in o&&o.path!==void 0?o.path:s(o).path;return{...o,name:void 0,path:Mo(c,u)}}function i(o){const s=wt(),a=ro(),u=We(()=>!!o.target&&o.target!=="_self"),c=We(()=>{const b=o.to||o.href||"";return typeof b=="string"&&qr(b,{acceptRelative:!0})}),l=gc("RouterLink"),f=l&&typeof l!="string"?l.useLink:void 0,d=We(()=>{if(o.external)return!0;const b=o.to||o.href||"";return typeof b=="object"?!1:b===""||c.value}),h=We(()=>{const b=o.to||o.href||"";return d.value?b:n(b,s.resolve,o.trailingSlash)}),v=d.value?void 0:f?.({...o,to:h}),p=We(()=>{const b=o.trailingSlash??e.trailingSlash;if(!h.value||c.value||r(h.value))return h.value;if(d.value){const E=typeof h.value=="object"&&"path"in h.value?vu(h.value):h.value,m=typeof E=="object"?s.resolve(E).href:E;return Mo(m,b)}return typeof h.value=="object"?s.resolve(h.value)?.href??null:Mo(Al(a.app.baseURL,h.value),b)});return{to:h,hasTarget:u,isAbsoluteUrl:c,isExternal:d,href:p,isActive:v?.isActive??We(()=>h.value===s.currentRoute.value.path),isExactActive:v?.isExactActive??We(()=>h.value===s.currentRoute.value.path),route:v?.route??We(()=>s.resolve(h.value)),async navigate(b){await f_(p.value,{replace:o.replace,external:d.value||u.value})}}}return jr({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(o,{slots:s}){const a=wt(),{to:u,href:c,navigate:l,isExternal:f,hasTarget:d,isAbsoluteUrl:h}=i(o),v=br(!1),p=Qt(null),b=g=>{p.value=o.custom?g?.$el?.nextElementSibling:g?.$el};function E(g){return!v.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===g:o.prefetchOn?.[g]??e.prefetchOn?.[g])&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!Xx()}async function m(g=He()){if(v.value)return;v.value=!0;const y=typeof u.value=="string"?u.value:f.value?vu(u.value):a.resolve(u.value).fullPath,_=f.value?new URL(y,window.location.href).href:y;await Promise.all([g.hooks.callHook("link:prefetch",_).catch(()=>{}),!f.value&&!d.value&&Bp(u.value,a).catch(()=>{})])}if(E("visibility")){const g=He();let y,_=null;Vn(()=>{const S=Kx();Hs(()=>{y=Au(()=>{p?.value?.tagName&&(_=S.observe(p.value,async()=>{_?.(),_=null,await m(g)}))})})}),ei(()=>{y&&$w(y),_?.(),_=null})}return()=>{if(!f.value&&!d.value&&!r(u.value)){const _={ref:b,to:u.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(E("interaction")&&(_.onPointerenter=m.bind(null,void 0),_.onFocus=m.bind(null,void 0)),v.value&&(_.class=o.prefetchedClass||e.prefetchedClass),_.rel=o.rel||void 0),Ke(gc("RouterLink"),_,s.default)}const g=o.target||null,y=$x(o.noRel?"":o.rel,e.externalRelAttribute,h.value||d.value?"noopener noreferrer":"")||null;return o.custom?s.default?s.default({href:c.value,navigate:l,prefetch:m,get route(){if(!c.value)return;const _=new URL(c.value,window.location.href);return{path:_.pathname,fullPath:_.pathname,get query(){return Tl(_.search)},hash:_.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:c.value}},rel:y,target:g,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:Ke("a",{ref:p,href:c.value||null,rel:y,target:g,onClick:_=>{if(!(f.value||d.value))return _.preventDefault(),o.replace?a.replace(c.value):a.push(c.value)}},s.default?.())}}})}const Gx=Wx(zE);function Mo(e,t){const r=t==="append"?tp:zi;return qr(e)&&!e.startsWith("http")?e:r(e,!0)}function Kx(){const e=He();if(e._observer)return e._observer;let t=null;const r=new Map,n=(o,s)=>(t||=new IntersectionObserver(a=>{for(const u of a){const c=r.get(u.target);(u.isIntersecting||u.intersectionRatio>0)&&c&&c()}}),r.set(o,s),t.observe(o),()=>{r.delete(o),t?.unobserve(o),r.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:n}}const zx=/2g/;function Xx(){const e=navigator.connection;return!!(e&&(e.saveData||zx.test(e.effectiveType)))}const Yx="$s";function Jx(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[r,n]=e;if(!r||typeof r!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+r);if(n!==void 0&&typeof n!="function")throw new Error("[nuxt] [useState] init must be a function: "+n);const i=Yx+r,o=He(),s=nv(o.payload.state,i);if(s.value===void 0&&n){const a=n();if(Ve(a))return o.payload.state[i]=a,a;s.value=a}return s}const Do=new Map,Qx=()=>{const e=Jx("auth-user",()=>{if(typeof window<"u"){const o=localStorage.getItem("currentUser");if(o){const s=Do.get(o);if(s)return s}}return null});return{user:e,login:async(o,s)=>{if(!o||!s)return!1;try{const a=await $fetch("/api/auth/login",{method:"POST",body:{username:o,password:s}});return a.success&&a.user?(e.value=a.user,Do.set(o,a.user),typeof window<"u"&&localStorage.setItem("currentUser",o),!0):!1}catch(a){return console.error("Login error:",a),!1}},logout:()=>{e.value=null,typeof window<"u"&&localStorage.removeItem("currentUser")},setUser:o=>{e.value=o,Do.set(o.username,o)},incrementBurritoConsiderations:()=>{e.value&&(e.value.burritoConsiderations++,Do.set(e.value.username,e.value),e.value={...e.value})}}},Zx={class:"header"},eN={class:"header-container"},tN={class:"user-section"},rN={key:1},nN=jr({__name:"Header",setup(e){const t=Qx(),r=We(()=>t.user.value),{$amplitude:n}=He(),i=()=>{n?.track("user_logged_out"),n?.reset(),t.logout()};return(o,s)=>{const a=Gx;return bt(),Cn("header",Zx,[xr("div",eN,[xr("nav",null,[De(a,{to:"/"},{default:Ai(()=>[...s[0]||(s[0]=[Pi("Home",-1)])]),_:1}),ke(r)?(bt(),Cn(lt,{key:0},[De(a,{to:"/burrito"},{default:Ai(()=>[...s[1]||(s[1]=[Pi("Burrito Consideration",-1)])]),_:1}),De(a,{to:"/profile"},{default:Ai(()=>[...s[2]||(s[2]=[Pi("Profile",-1)])]),_:1})],64)):Z0("",!0)]),xr("div",tN,[ke(r)?(bt(),Cn(lt,{key:0},[xr("span",null,"Welcome, "+Fh(ke(r).username)+"!",1),xr("button",{onClick:i,class:"btn-logout"}," Logout ")],64)):(bt(),Cn("span",rN,"Not logged in"))])])])}}}),oy=(e="RouteProvider")=>jr({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const r=t.renderKey,n=t.route,i={};for(const o in t.route)Object.defineProperty(i,o,{get:()=>r===t.renderKey?t.route[o]:n[o],enumerable:!0});return Ln(Ds,hr(i)),()=>t.vnode?Ke(t.vnode,{ref:t.vnodeRef}):t.vnode}}),iN=oy(),Ih=new WeakMap,oN=jr({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:r,expose:n}){const i=He(),o=Qt(),s=_t(Ds,null);let a;n({pageRef:o});const u=_t(u_,null);let c;const l=i.deferHydration();let f=!1,d=0;if(i.isHydrating){const v=i.hooks.hookOnce("app:error",l);wt().beforeEach(v)}e.pageKey&&Mn(()=>e.pageKey,(v,p)=>{v!==p&&i.callHook("page:loading:start")});let h=!1;{const v=wt().beforeResolve(()=>{h=!1});ei(()=>{v()})}return()=>Ke(Up,{name:e.name,route:e.route,...t},{default:v=>{const p=aN(s,v.route,v.Component),b=s&&s.matched.length===v.route.matched.length;if(!v.Component){if(c&&!b)return c;l();return}if(c&&u&&!u.isCurrent(v.route))return c;if(p&&s&&(!u||u?.isCurrent(s)))return b?c:null;const E=wu(v,e.pageKey),m=uN(s,v.route,v.Component);!i.isHydrating&&a===E&&!m&&Vi(()=>{h||(h=!0,i.callHook("page:loading:end"))}),f&&a!==E&&d++,a=E;const g=!!(e.transition??v.route.meta.pageTransition??Zc),y=g&&sN([e.transition,v.route.meta.pageTransition,Zc,{onAfterLeave(){delete i._runningTransition,i.callHook("page:transition:finish",v.Component)}}]),_=e.keepalive??v.route.meta.keepalive??KE;return c=Pw(g&&y,Cw(_,Ke(jv,{key:d,suspensible:!0,onPending:()=>{f=!0,g&&(i._runningTransition=!0),i.callHook("page:start",v.Component)},onResolve:async()=>{f=!1;try{await Vi(),i._route.sync?.(),await i.callHook("page:finish",v.Component),delete i._runningTransition,!h&&!m&&(h=!0,await i.callHook("page:loading:end"))}finally{l()}}},{default:()=>{const S={key:E||void 0,vnode:r.default?lN(r.default,v):v.Component,route:v.route,renderKey:E||void 0,trackRootNodes:g,vnodeRef:o};if(!_)return Ke(iN,S);const A=v.Component.type,C=A;let I=Ih.get(C);return I||(I=oy(A.name||A.__name),Ih.set(C,I)),Ke(I,S)}}))).default(),c}})}});function sN(e){const t=[];for(const r of e)r&&t.push({...r,onAfterLeave:r.onAfterLeave?xl(r.onAfterLeave):void 0});return hp(...t)}function aN(e,t,r){if(!e)return!1;const n=t.matched.findIndex(i=>i.components?.default===r?.type);return!n||n===-1?!1:t.matched.slice(0,n).some((i,o)=>i.components?.default!==e.matched[o]?.components?.default)||r&&wu({route:t,Component:r})!==wu({route:e,Component:r})}function uN(e,t,r){return e?t.matched.findIndex(i=>i.components?.default===r?.type)<t.matched.length-1:!1}function lN(e,t){const r=e(t);return r.length===1?Ke(r[0]):Ke(lt,void 0,r)}const cN=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},fN=Hx(Vx),dN={};function hN(e,t){const r=fN,n=nN,i=oN;return bt(),Cn("div",null,[De(r),De(n),xr("main",null,[De(i)])])}const vN=cN(dN,[["render",hN]]),pN={__name:"nuxt-error-page",props:{error:Object},setup(e){const r=e.error,n=Number(r.statusCode||500),i=n===404,o=r.statusMessage??(i?"Page Not Found":"Internal Server Error"),s=r.message||r.toString(),a=void 0,l=i?pc(()=>Yt(()=>import("./MzFTpsyS.js"),__vite__mapDeps([0,1]),import.meta.url)):pc(()=>Yt(()=>import("./z593H3Qg.js"),__vite__mapDeps([2,3]),import.meta.url));return(f,d)=>(bt(),Qr(ke(l),gy(Kv({status:ke(n),statusText:ke(o),statusCode:ke(n),statusMessage:ke(o),description:ke(s),stack:ke(a)})),null,16))}},gN={key:0},kh={__name:"nuxt-root",setup(e){const t=()=>null,r=He(),n=r.deferHydration();if(r.isHydrating){const c=r.hooks.hookOnce("app:error",n);wt().beforeEach(c)}const i=!1;Ln(Ds,l_()),r.hooks.callHookWith(c=>c.map(l=>l()),"vue:setup");const o=Us(),s=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;Ev((c,l,f)=>{if(r.hooks.callHook("vue:error",c,l,f).catch(d=>console.error("[nuxt] Error in `vue:error` hook",d)),a.test(navigator.userAgent))return r.hooks.callHook("app:error",c),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,c),!1;if(gp(c)&&(c.fatal||c.unhandled))return r.runWithContext(()=>Yr(c)),!1});const u=!1;return(c,l)=>(bt(),Qr(jv,{onResolve:ke(n)},{default:Ai(()=>[ke(s)?(bt(),Cn("div",gN)):ke(o)?(bt(),Qr(ke(pN),{key:1,error:ke(o)},null,8,["error"])):ke(u)?(bt(),Qr(ke(t),{key:2,context:ke(u)},null,8,["context"])):ke(i)?(bt(),Qr(E0(ke(i)),{key:3})):(bt(),Qr(ke(vN),{key:4}))]),_:1},8,["onResolve"]))}};let Ph;{let e;Ph=async function(){if(e)return e;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true")?jb(kh):Bb(kh),i=ZE({vueApp:n});async function o(s){await i.callHook("app:error",s),i.payload.error||=an(s)}n.config.errorHandler=o,i.hook("app:suspense:resolve",()=>{n.config.errorHandler===o&&(n.config.errorHandler=void 0)});try{await r_(i,Fx)}catch(s){o(s)}try{await i.hooks.callHook("app:created",n),await i.hooks.callHook("app:beforeMount",n),n.mount(YE),await i.hooks.callHook("app:mounted",n),await Vi()}catch(s){o(s)}return n},e=Ph().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{D as A,lt as F,Fn as I,cN as _,xr as a,De as b,Cn as c,Pi as d,Gx as e,jr as f,Qx as g,He as h,ke as i,mN as j,Ve as k,Z0 as l,bN as m,We as n,bt as o,wt as p,t0 as q,Qt as r,x as s,Fh as t,SN as u,yN as v,Ai as w,O as x,le as y,wm as z};

```

---

## .output/public/_nuxt/C_TnQn_7.js

```js
import{f as l,g as p,p as m,q as c,c as r,a as t,d as i,t as a,i as s,F as _,l as f,o as n,n as g}from"./BMw6m4EL.js";const b={class:"container"},h={class:"stats"},y={style:{"margin-top":"2rem"}},C={key:0},k={key:1},v={key:2},Y={key:3},B={key:4},E=l({__name:"profile",setup(x){const u=p(),e=g(()=>u.user.value),d=m();return c(()=>{e.value||d.push("/")}),(V,o)=>(n(),r("div",b,[o[4]||(o[4]=t("h1",null,"User Profile",-1)),t("div",h,[o[2]||(o[2]=t("h2",null,"Your Information",-1)),t("p",null,[o[0]||(o[0]=t("strong",null,"Username:",-1)),i(" "+a(s(e)?.username),1)]),t("p",null,[o[1]||(o[1]=t("strong",null,"Burrito Considerations:",-1)),i(" "+a(s(e)?.burritoConsiderations),1)])]),t("div",y,[o[3]||(o[3]=t("h3",null,"Your Burrito Journey",-1)),s(e)?(n(),r(_,{key:0},[s(e).burritoConsiderations===0?(n(),r("p",C," You haven't considered any burritos yet. Visit the Burrito Consideration page to start! ")):s(e).burritoConsiderations===1?(n(),r("p",k," You've considered the burrito potential once. Keep going! ")):s(e).burritoConsiderations<5?(n(),r("p",v," You're getting the hang of burrito consideration! ")):s(e).burritoConsiderations<10?(n(),r("p",Y," You're becoming a burrito consideration expert! ")):(n(),r("p",B," You are a true burrito consideration master! 🌯 "))],64)):f("",!0)])]))}});export{E as default};

```

---

## .output/public/_nuxt/D7Bf6Say.js

```js
var r=`var WebWorker=function(r){"use strict";var n=Uint8Array,e=Uint16Array,f=Uint32Array,t=new n([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),a=new n([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),o=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),i=function(r,n){for(var t=new e(31),a=0;a<31;++a)t[a]=n+=1<<r[a-1];var o=new f(t[30]);for(a=1;a<30;++a)for(var i=t[a];i<t[a+1];++i)o[i]=i-t[a]<<5|a;return[t,o]},v=i(t,2),u=v[0],s=v[1];u[28]=258,s[258]=28;for(var l=i(a,0)[1],c=new e(32768),h=0;h<32768;++h){var g=(43690&h)>>>1|(21845&h)<<1;g=(61680&(g=(52428&g)>>>2|(13107&g)<<2))>>>4|(3855&g)<<4,c[h]=((65280&g)>>>8|(255&g)<<8)>>>1}var w=function(r,n,f){for(var t=r.length,a=0,o=new e(n);a<t;++a)++o[r[a]-1];var i,v=new e(n);for(a=0;a<n;++a)v[a]=v[a-1]+o[a-1]<<1;if(f){i=new e(1<<n);var u=15-n;for(a=0;a<t;++a)if(r[a])for(var s=a<<4|r[a],l=n-r[a],h=v[r[a]-1]++<<l,g=h|(1<<l)-1;h<=g;++h)i[c[h]>>>u]=s}else for(i=new e(t),a=0;a<t;++a)i[a]=c[v[r[a]-1]++]>>>15-r[a];return i},d=new n(288);for(h=0;h<144;++h)d[h]=8;for(h=144;h<256;++h)d[h]=9;for(h=256;h<280;++h)d[h]=7;for(h=280;h<288;++h)d[h]=8;var m=new n(32);for(h=0;h<32;++h)m[h]=5;var y=w(d,9,0),M=w(m,5,0),p=function(r){return(r/8|0)+(7&r&&1)},b=function(r,t,a){(null==a||a>r.length)&&(a=r.length);var o=new(r instanceof e?e:r instanceof f?f:n)(a-t);return o.set(r.subarray(t,a)),o},C=function(r,n,e){e<<=7&n;var f=n/8|0;r[f]|=e,r[f+1]|=e>>>8},S=function(r,n,e){e<<=7&n;var f=n/8|0;r[f]|=e,r[f+1]|=e>>>8,r[f+2]|=e>>>16},x=function(r,f){for(var t=[],a=0;a<r.length;++a)r[a]&&t.push({s:a,f:r[a]});var o=t.length,i=t.slice();if(!o)return[new n(0),0];if(1==o){var v=new n(t[0].s+1);return v[t[0].s]=1,[v,1]}t.sort(function(r,n){return r.f-n.f}),t.push({s:-1,f:25001});var u=t[0],s=t[1],l=0,c=1,h=2;for(t[0]={s:-1,f:u.f+s.f,l:u,r:s};c!=o-1;)u=t[t[l].f<t[h].f?l++:h++],s=t[l!=c&&t[l].f<t[h].f?l++:h++],t[c++]={s:-1,f:u.f+s.f,l:u,r:s};var g=i[0].s;for(a=1;a<o;++a)i[a].s>g&&(g=i[a].s);var w=new e(g+1),d=A(t[c-1],w,0);if(d>f){a=0;var m=0,y=d-f,M=1<<y;for(i.sort(function(r,n){return w[n.s]-w[r.s]||r.f-n.f});a<o;++a){var p=i[a].s;if(!(w[p]>f))break;m+=M-(1<<d-w[p]),w[p]=f}for(m>>>=y;m>0;){var b=i[a].s;w[b]<f?m-=1<<f-w[b]++-1:++a}for(;a>=0&&m;--a){var C=i[a].s;w[C]==f&&(--w[C],++m)}d=f}return[new n(w),d]},A=function(r,n,e){return-1==r.s?Math.max(A(r.l,n,e+1),A(r.r,n,e+1)):n[r.s]=e},O=function(r){for(var n=r.length;n&&!r[--n];);for(var f=new e(++n),t=0,a=r[0],o=1,i=function(r){f[t++]=r},v=1;v<=n;++v)if(r[v]==a&&v!=n)++o;else{if(!a&&o>2){for(;o>138;o-=138)i(32754);o>2&&(i(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(i(a),--o;o>6;o-=6)i(8304);o>2&&(i(o-3<<5|8208),o=0)}for(;o--;)i(a);o=1,a=r[v]}return[f.subarray(0,t),n]},T=function(r,n){for(var e=0,f=0;f<n.length;++f)e+=r[f]*n[f];return e},k=function(r,n,e){var f=e.length,t=p(n+2);r[t]=255&f,r[t+1]=f>>>8,r[t+2]=255^r[t],r[t+3]=255^r[t+1];for(var a=0;a<f;++a)r[t+a+4]=e[a];return 8*(t+4+f)},E=function(r,n,f,i,v,u,s,l,c,h,g){C(n,g++,f),++v[256];for(var p=x(v,15),b=p[0],A=p[1],E=x(u,15),J=E[0],N=E[1],U=O(b),D=U[0],I=U[1],W=O(J),_=W[0],j=W[1],P=new e(19),q=0;q<D.length;++q)P[31&D[q]]++;for(q=0;q<_.length;++q)P[31&_[q]]++;for(var z=x(P,7),B=z[0],F=z[1],G=19;G>4&&!B[o[G-1]];--G);var H,K,L,Q,R=h+5<<3,V=T(v,d)+T(u,m)+s,X=T(v,b)+T(u,J)+s+14+3*G+T(P,B)+(2*P[16]+3*P[17]+7*P[18]);if(R<=V&&R<=X)return k(n,g,r.subarray(c,c+h));if(C(n,g,1+(X<V)),g+=2,X<V){H=w(b,A,0),K=b,L=w(J,N,0),Q=J;var Y=w(B,F,0);C(n,g,I-257),C(n,g+5,j-1),C(n,g+10,G-4),g+=14;for(q=0;q<G;++q)C(n,g+3*q,B[o[q]]);g+=3*G;for(var Z=[D,_],$=0;$<2;++$){var rr=Z[$];for(q=0;q<rr.length;++q){var nr=31&rr[q];C(n,g,Y[nr]),g+=B[nr],nr>15&&(C(n,g,rr[q]>>>5&127),g+=rr[q]>>>12)}}}else H=y,K=d,L=M,Q=m;for(q=0;q<l;++q)if(i[q]>255){nr=i[q]>>>18&31;S(n,g,H[nr+257]),g+=K[nr+257],nr>7&&(C(n,g,i[q]>>>23&31),g+=t[nr]);var er=31&i[q];S(n,g,L[er]),g+=Q[er],er>3&&(S(n,g,i[q]>>>5&8191),g+=a[er])}else S(n,g,H[i[q]]),g+=K[i[q]];return S(n,g,H[256]),g+K[256]},J=new f([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),N=function(r,o,i,v,u){return function(r,o,i,v,u,c){var h=r.length,g=new n(v+h+5*(1+Math.floor(h/7e3))+u),w=g.subarray(v,g.length-u),d=0;if(!o||h<8)for(var m=0;m<=h;m+=65535){var y=m+65535;y<h?d=k(w,d,r.subarray(m,y)):(w[m]=c,d=k(w,d,r.subarray(m,h)))}else{for(var M=J[o-1],C=M>>>13,S=8191&M,x=(1<<i)-1,A=new e(32768),O=new e(x+1),T=Math.ceil(i/3),N=2*T,U=function(n){return(r[n]^r[n+1]<<T^r[n+2]<<N)&x},D=new f(25e3),I=new e(288),W=new e(32),_=0,j=0,P=(m=0,0),q=0,z=0;m<h;++m){var B=U(m),F=32767&m,G=O[B];if(A[F]=G,O[B]=F,q<=m){var H=h-m;if((_>7e3||P>24576)&&H>423){d=E(r,w,0,D,I,W,j,P,z,m-z,d),P=_=j=0,z=m;for(var K=0;K<286;++K)I[K]=0;for(K=0;K<30;++K)W[K]=0}var L=2,Q=0,R=S,V=F-G&32767;if(H>2&&B==U(m-V))for(var X=Math.min(C,H)-1,Y=Math.min(32767,m),Z=Math.min(258,H);V<=Y&&--R&&F!=G;){if(r[m+L]==r[m+L-V]){for(var $=0;$<Z&&r[m+$]==r[m+$-V];++$);if($>L){if(L=$,Q=V,$>X)break;var rr=Math.min(V,$-2),nr=0;for(K=0;K<rr;++K){var er=m-V+K+32768&32767,fr=er-A[er]+32768&32767;fr>nr&&(nr=fr,G=er)}}}V+=(F=G)-(G=A[F])+32768&32767}if(Q){D[P++]=268435456|s[L]<<18|l[Q];var tr=31&s[L],ar=31&l[Q];j+=t[tr]+a[ar],++I[257+tr],++W[ar],q=m+L,++_}else D[P++]=r[m],++I[r[m]]}}d=E(r,w,c,D,I,W,j,P,z,m-z,d)}return b(g,0,v+p(d)+u)}(r,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+o.mem,i,v,!0)};function U(r,n){void 0===n&&(n={});var e=function(){var r=1,n=0;return{p:function(e){for(var f=r,t=n,a=e.length,o=0;o!=a;){for(var i=Math.min(o+5552,a);o<i;++o)t+=f+=e[o];f%=65521,t%=65521}r=f,n=t},d:function(){return(r>>>8<<16|(255&n)<<8|n>>>8)+2*((255&r)<<23)}}}();e.p(r);var f,t,a,o=N(r,n,2,4);return f=o,t=n.level,a=0==t?0:t<6?1:9==t?3:2,f[0]=120,f[1]=a<<6|(a?32-2*a:1),function(r,n,e){for(;e;++n)r[n]=e,e>>>=8}(o,o.length-4,e.d()),o}const D=r=>{const e={...r,v:"v1"};return function(r,n){var e="";if(!n&&"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(r);for(var f=0;f<r.length;){var t=r[f++];t<128||n?e+=String.fromCharCode(t):t<224?e+=String.fromCharCode((31&t)<<6|63&r[f++]):t<240?e+=String.fromCharCode((15&t)<<12|(63&r[f++])<<6|63&r[f++]):(t=((15&t)<<18|(63&r[f++])<<12|(63&r[f++])<<6|63&r[f++])-65536,e+=String.fromCharCode(55296|t>>10,56320|1023&t))}return e}(U(function(r,e){var f=r.length;if(!e&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(r);for(var t=new n(r.length+(r.length>>>1)),a=0,o=function(r){t[a++]=r},i=0;i<f;++i){if(a+5>t.length){var v=new n(a+8+(f-i<<1));v.set(t),t=v}var u=r.charCodeAt(i);u<128||e?o(u):u<2048?(o(192|u>>>6),o(128|63&u)):u>55295&&u<57344?(o(240|(u=65536+(1047552&u)|1023&r.charCodeAt(++i))>>>18),o(128|u>>>12&63),o(128|u>>>6&63),o(128|63&u)):(o(224|u>>>12),o(128|u>>>6&63),o(128|63&u))}return b(t,0,a)}(JSON.stringify(e))),!0)};onmessage=r=>{const{event:n,sessionId:e}="string"==typeof r.data?JSON.parse(r.data):r.data,f=JSON.stringify(D(n));postMessage({compressedEvent:f,sessionId:e})};const I=onmessage;return r.compressionOnMessage=I,Object.defineProperty(r,"__esModule",{value:!0}),r}({});
`;export{r as compressionScript};

```

---

## .output/public/_nuxt/DfTiELZi.js

```js
import{s as F,x as z,y as A}from"./BMw6m4EL.js";var C=10240,D=["image/","audio/","video/","application/octet-stream","font/"];function q(e){return e?D.some(function(n){return e.toLowerCase().startsWith(n)}):!1}function N(e){if(e!=null){if(typeof e=="string")return e;if(e instanceof URLSearchParams)return e.toString();if(e instanceof FormData){var n=[];return e.forEach(function(t,i){n.push("".concat(i,"=").concat(typeof t=="string"?t:"[File]"))}),n.join("&")}}}function k(e,n){if(new Blob([e]).size<=n)return{value:e,truncated:!1};for(var t=0,i=Math.min(e.length,n);t<i;){var s=Math.ceil((t+i)/2);new Blob([e.slice(0,s)]).size<=n?t=s:i=s-1}return t>0&&e.charCodeAt(t-1)>=55296&&e.charCodeAt(t-1)<=56319&&(t-=1),{value:e.slice(0,t),truncated:!0}}var R=(function(){function e(){this.fetchObserver=null}return e.prototype.start=function(n,t){this.eventCallback=n,this.networkConfig=t,this.observeFetch()},e.prototype.stop=function(){var n;(n=this.fetchObserver)===null||n===void 0||n.call(this),this.fetchObserver=null,this.eventCallback=void 0,this.networkConfig=void 0},e.prototype.notifyEvent=function(n){var t;(t=this.eventCallback)===null||t===void 0||t.call(this,n)},e.prototype.observeFetch=function(){var n=this,t=A();if(t){var i=t.fetch;i&&(t.fetch=function(s,o){return F(n,void 0,void 0,function(){var d,r,a,h,w,u,l,v,B,_,p,l,y,g=this,m,E;return z(this,function(f){switch(f.label){case 0:d=Date.now(),r={timestamp:d,type:"fetch",method:o?.method||"GET",url:s.toString(),requestHeaders:o?.headers},a=(m=this.networkConfig)===null||m===void 0?void 0:m.body,a?.request&&(h=N(o?.body),h!==void 0&&(w=(E=a.maxBodySizeBytes)!==null&&E!==void 0?E:C,r.requestBody=k(h,w).value)),f.label=1;case 1:return f.trys.push([1,3,,4]),[4,i(s,o)];case 2:return u=f.sent(),l=Date.now(),r.status=u.status,r.duration=l-d,v={},u.headers.forEach(function(b,c){v[c]=b}),r.responseHeaders=v,a?.response?(B=v["content-type"]||null,q(B)?(r.responseBodyStatus="skipped_binary",this.notifyEvent(r)):(_=u.clone(),_.text().then(function(b){var c,T=(c=a.maxBodySizeBytes)!==null&&c!==void 0?c:C,S=k(b,T),O=S.value,x=S.truncated;r.responseBody=O,r.responseBodyStatus=x?"truncated":"captured",g.notifyEvent(r)},function(){r.responseBodyStatus="error",g.notifyEvent(r)}))):this.notifyEvent(r),[2,u];case 3:throw p=f.sent(),l=Date.now(),r.duration=l-d,y=p,r.error={name:y.name||"UnknownError",message:y.message||"An unknown error occurred"},this.notifyEvent(r),p;case 4:return[2]}})})},this.fetchObserver=function(){t.fetch=i})}},e})();export{R as NetworkObservers};

```

---

## .output/public/_nuxt/DMrp4Fbu.js

```js
var rt={},on=Object.defineProperty,an=(e,t,r)=>t in e?on(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I=(e,t,r)=>an(e,typeof t!="symbol"?t+"":t,r),Jr,ln=Object.defineProperty,un=(e,t,r)=>t in e?ln(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yr=(e,t,r)=>un(e,typeof t!="symbol"?t+"":t,r),Y=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Y||{});const Qr={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Xr={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},je={};function cn(e){var t,r;const l=(r=(t=globalThis?.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(l&&globalThis[l])return globalThis[l]}function kr(e){if(je[e])return je[e];const t=cn(e)||globalThis[e],r=t.prototype,l=e in Qr?Qr[e]:void 0,s=!!(l&&l.every(m=>{var a,p;return!!((p=(a=Object.getOwnPropertyDescriptor(r,m))==null?void 0:a.get)!=null&&p.toString().includes("[native code]"))})),f=e in Xr?Xr[e]:void 0,u=!!(f&&f.every(m=>{var a;return typeof r[m]=="function"&&((a=r[m])==null?void 0:a.toString().includes("[native code]"))}));if(s&&u)return je[e]=t.prototype,t.prototype;try{const m=document.createElement("iframe");document.body.appendChild(m);const a=m.contentWindow;if(!a)return t.prototype;const p=a[e].prototype;return document.body.removeChild(m),p?je[e]=p:r}catch{return r}}const Ct={};function be(e,t,r){var l;const s=`${e}.${String(r)}`;if(Ct[s])return Ct[s].call(t);const f=kr(e),u=(l=Object.getOwnPropertyDescriptor(f,r))==null?void 0:l.get;return u?(Ct[s]=u,u.call(t)):t[r]}const xt={};function wi(e,t,r){const l=`${e}.${String(r)}`;if(xt[l])return xt[l].bind(t);const f=kr(e)[r];return typeof f!="function"?t[r]:(xt[l]=f,f.bind(t))}function hn(e){return be("Node",e,"childNodes")}function fn(e){return be("Node",e,"parentNode")}function pn(e){return be("Node",e,"parentElement")}function dn(e){return be("Node",e,"textContent")}function mn(e,t){return wi("Node",e,"contains")(t)}function gn(e){return wi("Node",e,"getRootNode")()}function yn(e){return!e||!("host"in e)?null:be("ShadowRoot",e,"host")}function wn(e){return e.styleSheets}function bn(e){return!e||!("shadowRoot"in e)?null:be("Element",e,"shadowRoot")}function Sn(e,t){return be("Element",e,"querySelector")(t)}function vn(e,t){return be("Element",e,"querySelectorAll")(t)}function Cn(){return kr("MutationObserver").constructor}const K={childNodes:hn,parentNode:fn,parentElement:pn,textContent:dn,contains:mn,getRootNode:gn,host:yn,styleSheets:wn,shadowRoot:bn,querySelector:Sn,querySelectorAll:vn,mutationObserver:Cn};function bi(e){return e.nodeType===e.ELEMENT_NODE}function Te(e){const t=e&&"host"in e&&"mode"in e&&K.host(e)||null;return!!(t&&"shadowRoot"in t&&K.shadowRoot(t)===e)}function Fe(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function xn(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Rn(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function Mr(e){try{const t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);const l=Array.from(t,s=>Si(s,r)).join("");return xn(l)}catch{return null}}function Si(e,t){if(Mn(e)){let r;try{r=Mr(e.styleSheet)||Rn(e)}catch{r=e.cssText}return e.styleSheet.href?nt(r,e.styleSheet.href):r}else{let r=e.cssText;return En(e)&&e.selectorText.includes(":")&&(r=On(r)),t?nt(r,t):r}}function On(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Mn(e){return"styleSheet"in e}function En(e){return"selectorText"in e}class vi{constructor(){Yr(this,"idNodeMap",new Map),Yr(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(l=>this.removeNodeFromMap(l))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const l=r.id;this.idNodeMap.set(l,t),this.nodeMetaMap.set(t,r)}replace(t,r){const l=this.getNode(t);if(l){const s=this.nodeMetaMap.get(l);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function In(){return new vi}function st({element:e,maskInputOptions:t,tagName:r,type:l,value:s,maskInputFn:f}){let u=s||"";const m=l&&Ce(l);return(t[r.toLowerCase()]||m&&t[m])&&(f?u=f(u,e):u="*".repeat(u.length)),u}function Ce(e){return e.toLowerCase()}const Kr="__rrweb_original__";function An(e){const t=e.getContext("2d");if(!t)return!0;const r=50;for(let l=0;l<e.width;l+=r)for(let s=0;s<e.height;s+=r){const f=t.getImageData,u=Kr in f?f[Kr]:f;if(new Uint32Array(u.call(t,l,s,Math.min(r,e.width-l),Math.min(r,e.height-s)).data.buffer).some(a=>a!==0))return!1}return!0}function it(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ce(t):null}function Ci(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}const l=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(l);return s?.[1]??null}function kn(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}const Nn=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Pn=/^(?:[a-z+]+:)?\/\//i,_n=/^www\..*/i,Ln=/^(data:)([^,]*),(.*)/i;function nt(e,t){return(e||"").replace(Nn,(r,l,s,f,u,m)=>{const a=s||u||m,p=l||f||"";if(!a)return r;if(Pn.test(a)||_n.test(a))return`url(${p}${a}${p})`;if(Ln.test(a))return`url(${p}${a}${p})`;if(a[0]==="/")return`url(${p}${kn(t)+a}${p})`;const i=t.split("/"),c=a.split("/");i.pop();for(const o of c)o!=="."&&(o===".."?i.pop():i.push(o));return`url(${p}${i.join("/")}${p})`})}function He(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Dn(e,t,r=!1){const l=Array.from(t.childNodes),s=[];let f=0;if(l.length>1&&e&&typeof e=="string"){let u=He(e,r);const m=u.length/e.length;for(let a=1;a<l.length;a++)if(l[a].textContent&&typeof l[a].textContent=="string"){const p=He(l[a].textContent,r),i=100;let c=3;for(;c<p.length&&(p[c].match(/[a-zA-Z0-9]/)||p.indexOf(p.substring(0,c),1)!==-1);c++);for(;c<p.length;c++){let o=p.substring(0,c),n=u.split(o),d=-1;if(n.length===2)d=n[0].length;else if(n.length>2&&n[0]===""&&l[a-1].textContent!=="")d=u.indexOf(o,1);else if(n.length===1){if(o=o.substring(0,o.length-1),n=u.split(o),n.length<=1)return s.push(e),s;c=i+1}else c===p.length-1&&(d=u.indexOf(o));if(n.length>=2&&c>i){const h=l[a-1].textContent;if(h&&typeof h=="string"){const y=He(h).length;d=u.indexOf(o,y)}d===-1&&(d=n[0].length)}if(d!==-1){let h=Math.floor(d/m);for(;h>0&&h<e.length;){if(f+=1,f>50*l.length)return s.push(e),s;const y=He(e.substring(0,h),r);if(y.length===d){s.push(e.substring(0,h)),e=e.substring(h),u=u.substring(d);break}else y.length<d?h+=Math.max(1,Math.floor((d-y.length)/m)):h-=Math.max(1,Math.floor((y.length-d)*m))}break}}}}return s.push(e),s}function Tn(e,t){return Dn(e,t).join("/* rr_split */")}const Fn="lightgrey";let Un=1;const $n=new RegExp("[^a-z0-9-_:]"),$e=-2;function xi(){return Un++}function Bn(e){if(e instanceof HTMLFormElement)return"form";const t=Ce(e.tagName);return $n.test(t)?"div":t}let Ee,Zr;const zn=/^[^ \t\n\r\u000c]+/,Wn=/^[, \t\n\r\u000c]+/;function qn(e,t){if(t.trim()==="")return t;let r=0;function l(f){let u;const m=f.exec(t.substring(r));return m?(u=m[0],r+=u.length,u):""}const s=[];for(;l(Wn),!(r>=t.length);){let f=l(zn);if(f.slice(-1)===",")f=ke(e,f.substring(0,f.length-1)),s.push(f);else{let u="";f=ke(e,f);let m=!1;for(;;){const a=t.charAt(r);if(a===""){s.push((f+u).trim());break}else if(m)a===")"&&(m=!1);else if(a===","){r+=1,s.push((f+u).trim());break}else a==="("&&(m=!0);u+=a,r+=1}}}return s.join(", ")}const es=new WeakMap;function ke(e,t){return!t||t.trim()===""?t:Nr(e,t)}function jn(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Nr(e,t){let r=es.get(e);if(r||(r=e.createElement("a"),es.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function Ri(e,t,r,l){return l&&(r==="src"||r==="href"&&!(t==="use"&&l[0]==="#")||r==="xlink:href"&&l[0]!=="#"||r==="background"&&(t==="table"||t==="td"||t==="th")?ke(e,l):r==="srcset"?qn(e,l):r==="style"?nt(l,Nr(e)):t==="object"&&r==="data"?ke(e,l):l)}function Oi(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function Hn(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let l=e.classList.length;l--;){const s=e.classList[l];if(t.test(s))return!0}if(r)return e.matches(r)}catch{}return!1}function ot(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?ot(K.parentNode(e),t,r):!1;for(let l=e.classList.length;l--;){const s=e.classList[l];if(t.test(s))return!0}return r?ot(K.parentNode(e),t,r):!1}function Mi(e,t,r,l){let s;if(bi(e)){if(s=e,!K.childNodes(s).length)return!1}else{if(K.parentElement(e)===null)return!1;s=K.parentElement(e)}try{if(typeof t=="string"){if(l){if(s.closest(`.${t}`))return!0}else if(s.classList.contains(t))return!0}else if(ot(s,t,l))return!0;if(r){if(l){if(s.closest(r))return!0}else if(s.matches(r))return!0}}catch{}return!1}function Gn(e,t,r){const l=e.contentWindow;if(!l)return;let s=!1,f;try{f=l.document.readyState}catch{return}if(f!=="complete"){const m=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(m),s=!0,t()});return}const u="about:blank";if(l.location.href!==u||e.src===u||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Vn(e,t,r){let l=!1,s;try{s=e.sheet}catch{return}if(s)return;const f=setTimeout(()=>{l||(t(),l=!0)},r);e.addEventListener("load",()=>{clearTimeout(f),l=!0,t()})}function Jn(e,t){const{doc:r,mirror:l,blockClass:s,blockSelector:f,needsMask:u,inlineStylesheet:m,maskInputOptions:a={},maskTextFn:p,maskInputFn:i,maskAttributeFn:c,dataURLOptions:o={},inlineImages:n,recordCanvas:d,keepIframeSrcFn:h,newlyAddedElement:y=!1,cssCaptured:C=!1,applyBackgroundColorToBlockedElements:w=!1}=t,S=Yn(r,l);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Y.Document,childNodes:[],compatMode:e.compatMode}:{type:Y.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Y.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return Xn(e,{doc:r,blockClass:s,blockSelector:f,inlineStylesheet:m,maskInputOptions:a,maskInputFn:i,maskAttributeFn:c,dataURLOptions:o,inlineImages:n,recordCanvas:d,keepIframeSrcFn:h,newlyAddedElement:y,rootId:S,applyBackgroundColorToBlockedElements:w});case e.TEXT_NODE:return Qn(e,{doc:r,needsMask:u,maskTextFn:p,rootId:S,cssCaptured:C});case e.CDATA_SECTION_NODE:return{type:Y.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:Y.Comment,textContent:K.textContent(e)||"",rootId:S};default:return!1}}function Yn(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return r===1?void 0:r}function Qn(e,t){const{needsMask:r,maskTextFn:l,rootId:s,cssCaptured:f}=t,u=K.parentNode(e),m=u&&u.tagName;let a="";const p=m==="STYLE"?!0:void 0,i=m==="SCRIPT"?!0:void 0;return i?a="SCRIPT_PLACEHOLDER":f||(a=K.textContent(e),p&&a&&(a=nt(a,Nr(t.doc)))),!p&&!i&&a&&r&&(a=l?l(a,K.parentElement(e)):a.replace(/[\S]/g,"*")),{type:Y.Text,textContent:a||"",rootId:s}}function Xn(e,t){const{doc:r,blockClass:l,blockSelector:s,inlineStylesheet:f,maskInputOptions:u={},maskInputFn:m,maskAttributeFn:a,dataURLOptions:p={},inlineImages:i,recordCanvas:c,keepIframeSrcFn:o,newlyAddedElement:n=!1,rootId:d,applyBackgroundColorToBlockedElements:h=!1}=t,y=Hn(e,l,s),C=Bn(e);let w={};const S=e.attributes.length;for(let g=0;g<S;g++){const v=e.attributes[g];if(!Oi(C,v.name,v.value)){const x=Ri(r,C,Ce(v.name),v.value);if(a&&x!==null){const O=a(v.name,x,e);O!==null&&(w[v.name]=O)}else w[v.name]=x}}if(C==="link"&&f){const g=Array.from(r.styleSheets).find(x=>x.href===e.href);let v=null;g&&(v=Mr(g)),v&&(delete w.rel,delete w.href,w._cssText=v)}if(C==="style"&&e.sheet){let g=Mr(e.sheet);g&&(e.childNodes.length>1&&(g=Tn(g,e)),w._cssText=g)}if(C==="input"||C==="textarea"||C==="select"){const g=e.value,v=e.checked;w.type!=="radio"&&w.type!=="checkbox"&&w.type!=="submit"&&w.type!=="button"&&g?w.value=st({element:e,type:it(e),tagName:C,value:g,maskInputOptions:u,maskInputFn:m}):v&&(w.checked=v)}if(C==="option"&&(e.selected&&!u.select?w.selected=!0:delete w.selected),C==="dialog"&&e.open&&(w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),C==="canvas"&&c){if(e.__context==="2d")An(e)||(w.rr_dataURL=e.toDataURL(p.type,p.quality));else if(!("__context"in e)){const g=e.toDataURL(p.type,p.quality),v=r.createElement("canvas");v.width=e.width,v.height=e.height;const x=v.toDataURL(p.type,p.quality);g!==x&&(w.rr_dataURL=g)}}if(C==="img"&&i){Ee||(Ee=r.createElement("canvas"),Zr=Ee.getContext("2d"));const g=e,v=g.currentSrc||g.getAttribute("src")||"<unknown-src>",x=g.crossOrigin,O=()=>{g.removeEventListener("load",O);try{Ee.width=g.naturalWidth,Ee.height=g.naturalHeight,Zr.drawImage(g,0,0),w.rr_dataURL=Ee.toDataURL(p.type,p.quality)}catch(A){if(g.crossOrigin!=="anonymous"){g.crossOrigin="anonymous",g.complete&&g.naturalWidth!==0?O():g.addEventListener("load",O);return}else console.warn(`Cannot inline img src=${v}! Error: ${A}`)}g.crossOrigin==="anonymous"&&(x?w.crossOrigin=x:g.removeAttribute("crossorigin"))};g.complete&&g.naturalWidth!==0?O():g.addEventListener("load",O)}if(C==="audio"||C==="video"){const g=w;g.rr_mediaState=e.paused?"paused":"played",g.rr_mediaCurrentTime=e.currentTime,g.rr_mediaPlaybackRate=e.playbackRate,g.rr_mediaMuted=e.muted,g.rr_mediaLoop=e.loop,g.rr_mediaVolume=e.volume}if(n||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),y){const{width:g,height:v}=e.getBoundingClientRect();w={class:w.class,rr_width:`${g}px`,rr_height:`${v}px`,...h?{rr_background_color:Fn}:{}}}C==="iframe"&&!o(w.src)&&(e.contentDocument||(w.rr_src=w.src),delete w.src);let b;try{customElements.get(C)&&(b=!0)}catch{}return{type:Y.Element,tagName:C,attributes:w,childNodes:[],isSVG:jn(e)||void 0,needBlock:y,rootId:d,isCustom:b}}function z(e){return e==null?"":e.toLowerCase()}function Kn(e,t){if(t.comment&&e.type===Y.Comment)return!0;if(e.type===Y.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ci(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(z(e.attributes.name).match(/^msapplication-tile(image|color)$/)||z(e.attributes.name)==="application-name"||z(e.attributes.rel)==="icon"||z(e.attributes.rel)==="apple-touch-icon"||z(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&z(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(z(e.attributes.property).match(/^(og|twitter|fb):/)||z(e.attributes.name).match(/^(og|twitter):/)||z(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(z(e.attributes.name)==="robots"||z(e.attributes.name)==="googlebot"||z(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(z(e.attributes.name)==="author"||z(e.attributes.name)==="generator"||z(e.attributes.name)==="framework"||z(e.attributes.name)==="publisher"||z(e.attributes.name)==="progid"||z(e.attributes.property).match(/^article:/)||z(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(z(e.attributes.name)==="google-site-verification"||z(e.attributes.name)==="yandex-verification"||z(e.attributes.name)==="csrf-token"||z(e.attributes.name)==="p:domain_verify"||z(e.attributes.name)==="verify-v1"||z(e.attributes.name)==="verification"||z(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ne(e,t){const{doc:r,mirror:l,blockClass:s,blockSelector:f,maskTextClass:u,maskTextSelector:m,skipChild:a=!1,inlineStylesheet:p=!0,maskInputOptions:i={},maskTextFn:c,maskInputFn:o,maskAttributeFn:n,slimDOMOptions:d,dataURLOptions:h={},inlineImages:y=!1,recordCanvas:C=!1,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:b=5e3,onStylesheetLoad:g,stylesheetLoadTimeout:v=5e3,keepIframeSrcFn:x=()=>!1,newlyAddedElement:O=!1,cssCaptured:A=!1,applyBackgroundColorToBlockedElements:M=!1}=t;let{needsMask:$}=t,{preserveWhiteSpace:k=!0}=t;$||($=Mi(e,u,m,$===void 0));const R=Jn(e,{doc:r,mirror:l,blockClass:s,blockSelector:f,needsMask:$,inlineStylesheet:p,maskInputOptions:i,maskTextFn:c,maskInputFn:o,maskAttributeFn:n,dataURLOptions:h,inlineImages:y,recordCanvas:C,keepIframeSrcFn:x,newlyAddedElement:O,cssCaptured:A,applyBackgroundColorToBlockedElements:M});if(!R)return console.warn(e,"not serialized"),null;let Z;l.hasNode(e)?Z=l.getId(e):Kn(R,d)||!k&&R.type===Y.Text&&!R.textContent.replace(/^\s+|\s+$/gm,"").length?Z=$e:Z=xi();const N=Object.assign(R,{id:Z});if(l.add(e,N),Z===$e)return null;w&&w(e);let ee=!a;if(N.type===Y.Element){ee=ee&&!N.needBlock,delete N.needBlock;const F=K.shadowRoot(e);F&&Fe(F)&&(N.isShadowHost=!0)}if((N.type===Y.Document||N.type===Y.Element)&&ee){d.headWhitespace&&N.type===Y.Element&&N.tagName==="head"&&(k=!1);const F={doc:r,mirror:l,blockClass:s,blockSelector:f,needsMask:$,maskTextClass:u,maskTextSelector:m,skipChild:a,inlineStylesheet:p,maskInputOptions:i,maskTextFn:c,maskInputFn:o,maskAttributeFn:n,slimDOMOptions:d,dataURLOptions:h,inlineImages:y,recordCanvas:C,preserveWhiteSpace:k,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:b,onStylesheetLoad:g,stylesheetLoadTimeout:v,keepIframeSrcFn:x,cssCaptured:!1,applyBackgroundColorToBlockedElements:M};if(!(N.type===Y.Element&&N.tagName==="textarea"&&N.attributes.value!==void 0)){N.type===Y.Element&&N.attributes._cssText!==void 0&&typeof N.attributes._cssText=="string"&&(F.cssCaptured=!0);for(const W of Array.from(K.childNodes(e))){const P=Ne(W,F);P&&N.childNodes.push(P)}}let Q=null;if(bi(e)&&(Q=K.shadowRoot(e)))for(const W of Array.from(K.childNodes(Q))){const P=Ne(W,F);P&&(Fe(Q)&&(P.isShadow=!0),N.childNodes.push(P))}}const H=K.parentNode(e);return H&&Te(H)&&Fe(H)&&(N.isShadow=!0),N.type===Y.Element&&N.tagName==="iframe"&&Gn(e,()=>{const F=e.contentDocument;if(F&&S){const Q=Ne(F,{doc:F,mirror:l,blockClass:s,blockSelector:f,needsMask:$,maskTextClass:u,maskTextSelector:m,skipChild:!1,inlineStylesheet:p,maskInputOptions:i,maskTextFn:c,maskInputFn:o,maskAttributeFn:n,slimDOMOptions:d,dataURLOptions:h,inlineImages:y,recordCanvas:C,preserveWhiteSpace:k,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:b,onStylesheetLoad:g,stylesheetLoadTimeout:v,keepIframeSrcFn:x});Q&&S(e,Q)}},b),N.type===Y.Element&&N.tagName==="link"&&typeof N.attributes.rel=="string"&&(N.attributes.rel==="stylesheet"||N.attributes.rel==="preload"&&typeof N.attributes.href=="string"&&Ci(N.attributes.href)==="css")&&Vn(e,()=>{if(g){const F=Ne(e,{doc:r,mirror:l,blockClass:s,blockSelector:f,needsMask:$,maskTextClass:u,maskTextSelector:m,skipChild:!1,inlineStylesheet:p,maskInputOptions:i,maskTextFn:c,maskInputFn:o,maskAttributeFn:n,slimDOMOptions:d,dataURLOptions:h,inlineImages:y,recordCanvas:C,preserveWhiteSpace:k,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:b,onStylesheetLoad:g,stylesheetLoadTimeout:v,keepIframeSrcFn:x});F&&g(e,F)}},v),N}function Zn(e,t){const{mirror:r=new vi,blockClass:l="rr-block",blockSelector:s=null,maskTextClass:f="rr-mask",maskTextSelector:u=null,inlineStylesheet:m=!0,inlineImages:a=!1,recordCanvas:p=!1,maskAllInputs:i=!1,maskTextFn:c,maskInputFn:o,maskAttributeFn:n,slimDOM:d=!1,dataURLOptions:h,preserveWhiteSpace:y,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:b,stylesheetLoadTimeout:g,keepIframeSrcFn:v=()=>!1,applyBackgroundColorToBlockedElements:x=!1}=t||{};return Ne(e,{doc:e,mirror:r,blockClass:l,blockSelector:s,maskTextClass:f,maskTextSelector:u,skipChild:!1,inlineStylesheet:m,maskInputOptions:i===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:i===!1?{password:!0}:i,maskTextFn:c,maskInputFn:o,maskAttributeFn:n,slimDOMOptions:d===!0||d==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:d==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:d===!1?{}:d,dataURLOptions:h,inlineImages:a,recordCanvas:p,preserveWhiteSpace:y,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:b,stylesheetLoadTimeout:g,keepIframeSrcFn:v,newlyAddedElement:!1,applyBackgroundColorToBlockedElements:x})}function eo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function to(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function l(){return this instanceof l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(l){var s=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(r,l,s.get?s:{enumerable:!0,get:function(){return e[l]}})}),r}var Ge={exports:{}},ts;function ro(){if(ts)return Ge.exports;ts=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return Ge.exports=t(),Ge.exports.createColors=t,Ge.exports}const so={},io=Object.freeze(Object.defineProperty({__proto__:null,default:so},Symbol.toStringTag,{value:"Module"})),he=to(io);var Rt,rs;function Pr(){if(rs)return Rt;rs=1;let e=ro(),t=he;class r extends Error{constructor(s,f,u,m,a,p){super(s),this.name="CssSyntaxError",this.reason=s,a&&(this.file=a),m&&(this.source=m),p&&(this.plugin=p),typeof f<"u"&&typeof u<"u"&&(typeof f=="number"?(this.line=f,this.column=u):(this.line=f.line,this.column=f.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let f=this.source;s==null&&(s=e.isColorSupported),t&&s&&(f=t(f));let u=f.split(/\r?\n/),m=Math.max(this.line-3,0),a=Math.min(this.line+2,u.length),p=String(a).length,i,c;if(s){let{bold:o,gray:n,red:d}=e.createColors(!0);i=h=>o(d(h)),c=h=>n(h)}else i=c=o=>o;return u.slice(m,a).map((o,n)=>{let d=m+1+n,h=" "+(" "+d).slice(-p)+" | ";if(d===this.line){let y=c(h.replace(/\d/g," "))+o.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+c(h)+o+`
 `+y+i("^")}return" "+c(h)+o}).join(`
`)}toString(){let s=this.showSourceCode();return s&&(s=`

`+s+`
`),this.name+": "+this.message+s}}return Rt=r,r.default=r,Rt}var Ve={},ss;function _r(){return ss||(ss=1,Ve.isClean=Symbol("isClean"),Ve.my=Symbol("my")),Ve}var Ot,is;function Ei(){if(is)return Ot;is=1;const e={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function t(l){return l[0].toUpperCase()+l.slice(1)}class r{constructor(s){this.builder=s}atrule(s,f){let u="@"+s.name,m=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?u+=s.raws.afterName:m&&(u+=" "),s.nodes)this.block(s,u+m);else{let a=(s.raws.between||"")+(f?";":"");this.builder(u+m+a,s)}}beforeAfter(s,f){let u;s.type==="decl"?u=this.raw(s,null,"beforeDecl"):s.type==="comment"?u=this.raw(s,null,"beforeComment"):f==="before"?u=this.raw(s,null,"beforeRule"):u=this.raw(s,null,"beforeClose");let m=s.parent,a=0;for(;m&&m.type!=="root";)a+=1,m=m.parent;if(u.includes(`
`)){let p=this.raw(s,null,"indent");if(p.length)for(let i=0;i<a;i++)u+=p}return u}block(s,f){let u=this.raw(s,"between","beforeOpen");this.builder(f+u+"{",s,"start");let m;s.nodes&&s.nodes.length?(this.body(s),m=this.raw(s,"after")):m=this.raw(s,"after","emptyBody"),m&&this.builder(m),this.builder("}",s,"end")}body(s){let f=s.nodes.length-1;for(;f>0&&s.nodes[f].type==="comment";)f-=1;let u=this.raw(s,"semicolon");for(let m=0;m<s.nodes.length;m++){let a=s.nodes[m],p=this.raw(a,"before");p&&this.builder(p),this.stringify(a,f!==m||u)}}comment(s){let f=this.raw(s,"left","commentLeft"),u=this.raw(s,"right","commentRight");this.builder("/*"+f+s.text+u+"*/",s)}decl(s,f){let u=this.raw(s,"between","colon"),m=s.prop+u+this.rawValue(s,"value");s.important&&(m+=s.raws.important||" !important"),f&&(m+=";"),this.builder(m,s)}document(s){this.body(s)}raw(s,f,u){let m;if(u||(u=f),f&&(m=s.raws[f],typeof m<"u"))return m;let a=s.parent;if(u==="before"&&(!a||a.type==="root"&&a.first===s||a&&a.type==="document"))return"";if(!a)return e[u];let p=s.root();if(p.rawCache||(p.rawCache={}),typeof p.rawCache[u]<"u")return p.rawCache[u];if(u==="before"||u==="after")return this.beforeAfter(s,u);{let i="raw"+t(u);this[i]?m=this[i](p,s):p.walk(c=>{if(m=c.raws[f],typeof m<"u")return!1})}return typeof m>"u"&&(m=e[u]),p.rawCache[u]=m,m}rawBeforeClose(s){let f;return s.walk(u=>{if(u.nodes&&u.nodes.length>0&&typeof u.raws.after<"u")return f=u.raws.after,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawBeforeComment(s,f){let u;return s.walkComments(m=>{if(typeof m.raws.before<"u")return u=m.raws.before,u.includes(`
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(f,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(s,f){let u;return s.walkDecls(m=>{if(typeof m.raws.before<"u")return u=m.raws.before,u.includes(`
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(f,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(s){let f;return s.walk(u=>{if(u.type!=="decl"&&(f=u.raws.between,typeof f<"u"))return!1}),f}rawBeforeRule(s){let f;return s.walk(u=>{if(u.nodes&&(u.parent!==s||s.first!==u)&&typeof u.raws.before<"u")return f=u.raws.before,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawColon(s){let f;return s.walkDecls(u=>{if(typeof u.raws.between<"u")return f=u.raws.between.replace(/[^\s:]/g,""),!1}),f}rawEmptyBody(s){let f;return s.walk(u=>{if(u.nodes&&u.nodes.length===0&&(f=u.raws.after,typeof f<"u"))return!1}),f}rawIndent(s){if(s.raws.indent)return s.raws.indent;let f;return s.walk(u=>{let m=u.parent;if(m&&m!==s&&m.parent&&m.parent===s&&typeof u.raws.before<"u"){let a=u.raws.before.split(`
`);return f=a[a.length-1],f=f.replace(/\S/g,""),!1}}),f}rawSemicolon(s){let f;return s.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(f=u.raws.semicolon,typeof f<"u"))return!1}),f}rawValue(s,f){let u=s[f],m=s.raws[f];return m&&m.value===u?m.raw:u}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,f){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,f)}}return Ot=r,r.default=r,Ot}var Mt,ns;function ct(){if(ns)return Mt;ns=1;let e=Ei();function t(r,l){new e(l).stringify(r)}return Mt=t,t.default=t,Mt}var Et,os;function ht(){if(os)return Et;os=1;let{isClean:e,my:t}=_r(),r=Pr(),l=Ei(),s=ct();function f(m,a){let p=new m.constructor;for(let i in m){if(!Object.prototype.hasOwnProperty.call(m,i)||i==="proxyCache")continue;let c=m[i],o=typeof c;i==="parent"&&o==="object"?a&&(p[i]=a):i==="source"?p[i]=c:Array.isArray(c)?p[i]=c.map(n=>f(n,p)):(o==="object"&&c!==null&&(c=f(c)),p[i]=c)}return p}class u{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in a)if(p==="nodes"){this.nodes=[];for(let i of a[p])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[p]=a[p]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let p=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let p in a)this[p]=a[p];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let p=f(this);for(let i in a)p[i]=a[i];return p}cloneAfter(a={}){let p=this.clone(a);return this.parent.insertAfter(this,p),p}cloneBefore(a={}){let p=this.clone(a);return this.parent.insertBefore(this,p),p}error(a,p={}){if(this.source){let{end:i,start:c}=this.rangeBy(p);return this.source.input.error(a,{column:c.column,line:c.line},{column:i.column,line:i.line},p)}return new r(a)}getProxyProcessor(){return{get(a,p){return p==="proxyOf"?a:p==="root"?()=>a.root().toProxy():a[p]},set(a,p,i){return a[p]===i||(a[p]=i,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,p){let i=this.source.start;if(a.index)i=this.positionInside(a.index,p);else if(a.word){p=this.toString();let c=p.indexOf(a.word);c!==-1&&(i=this.positionInside(c,p))}return i}positionInside(a,p){let i=p||this.toString(),c=this.source.start.column,o=this.source.start.line;for(let n=0;n<a;n++)i[n]===`
`?(c=1,o+=1):c+=1;return{column:c,line:o}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let p={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(a.word){let c=this.toString(),o=c.indexOf(a.word);o!==-1&&(p=this.positionInside(o,c),i=this.positionInside(o+a.word.length,c))}else a.start?p={column:a.start.column,line:a.start.line}:a.index&&(p=this.positionInside(a.index)),a.end?i={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?i=this.positionInside(a.endIndex):a.index&&(i=this.positionInside(a.index+1));return(i.line<p.line||i.line===p.line&&i.column<=p.column)&&(i={column:p.column+1,line:p.line}),{end:i,start:p}}raw(a,p){return new l().raw(this,a,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let p=this,i=!1;for(let c of a)c===this?i=!0:i?(this.parent.insertAfter(p,c),p=c):this.parent.insertBefore(p,c);i||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,p){let i={},c=p==null;p=p||new Map;let o=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let d=this[n];if(Array.isArray(d))i[n]=d.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,p):h);else if(typeof d=="object"&&d.toJSON)i[n]=d.toJSON(null,p);else if(n==="source"){let h=p.get(d.input);h==null&&(h=o,p.set(d.input,o),o++),i[n]={end:d.end,inputId:h,start:d.start}}else i[n]=d}return c&&(i.inputs=[...p.keys()].map(n=>n.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=s){a.stringify&&(a=a.stringify);let p="";return a(this,i=>{p+=i}),p}warn(a,p,i){let c={node:this};for(let o in i)c[o]=i[o];return a.warn(p,c)}get proxyOf(){return this}}return Et=u,u.default=u,Et}var It,as;function ft(){if(as)return It;as=1;let e=ht();class t extends e{constructor(l){l&&typeof l.value<"u"&&typeof l.value!="string"&&(l={...l,value:String(l.value)}),super(l),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return It=t,t.default=t,It}var At,ls;function no(){if(ls)return At;ls=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return At={nanoid:(l=21)=>{let s="",f=l;for(;f--;)s+=e[Math.random()*64|0];return s},customAlphabet:(l,s=21)=>(f=s)=>{let u="",m=f;for(;m--;)u+=l[Math.random()*l.length|0];return u}},At}var kt,us;function Ii(){if(us)return kt;us=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=he,{existsSync:r,readFileSync:l}=he,{dirname:s,join:f}=he;function u(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class m{constructor(p,i){if(i.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let c=i.map?i.map.prev:void 0,o=this.loadMap(i.from,c);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=s(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let i=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(o.test(p)||n.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(i.test(p)||c.test(p))return u(p.substr(RegExp.lastMatch.length));let d=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+d)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let i=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let c=p.lastIndexOf(i.pop()),o=p.indexOf("*/",c);c>-1&&o>-1&&(this.annotation=this.getAnnotationURL(p.substring(c,o)))}loadFile(p){if(this.root=s(p),r(p))return this.mapFile=p,l(p,"utf-8").toString().trim()}loadMap(p,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let c=i(p);if(c){let o=this.loadFile(c);if(!o)throw new Error("Unable to load previous source map: "+c.toString());return o}}else{if(i instanceof e)return t.fromSourceMap(i).toString();if(i instanceof t)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return p&&(c=f(s(p),c)),this.loadFile(c)}}}startWith(p,i){return p?p.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return kt=m,m.default=m,kt}var Nt,cs;function pt(){if(cs)return Nt;cs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=he,{fileURLToPath:r,pathToFileURL:l}=he,{isAbsolute:s,resolve:f}=he,{nanoid:u}=no(),m=he,a=Pr(),p=Ii(),i=Symbol("fromOffsetCache"),c=!!(e&&t),o=!!(f&&s);class n{constructor(h,y={}){if(h===null||typeof h>"u"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,y.from&&(!o||/^\w+:\/\//.test(y.from)||s(y.from)?this.file=y.from:this.file=f(y.from)),o&&c){let C=new p(this.css,y);if(C.text){this.map=C;let w=C.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(h,y,C,w={}){let S,b,g;if(y&&typeof y=="object"){let x=y,O=C;if(typeof x.offset=="number"){let A=this.fromOffset(x.offset);y=A.line,C=A.col}else y=x.line,C=x.column;if(typeof O.offset=="number"){let A=this.fromOffset(O.offset);b=A.line,g=A.col}else b=O.line,g=O.column}else if(!C){let x=this.fromOffset(y);y=x.line,C=x.col}let v=this.origin(y,C,b,g);return v?S=new a(h,v.endLine===void 0?v.line:{column:v.column,line:v.line},v.endLine===void 0?v.column:{column:v.endColumn,line:v.endLine},v.source,v.file,w.plugin):S=new a(h,b===void 0?y:{column:C,line:y},b===void 0?C:{column:g,line:b},this.css,this.file,w.plugin),S.input={column:C,endColumn:g,endLine:b,line:y,source:this.css},this.file&&(l&&(S.input.url=l(this.file).toString()),S.input.file=this.file),S}fromOffset(h){let y,C;if(this[i])C=this[i];else{let S=this.css.split(`
`);C=new Array(S.length);let b=0;for(let g=0,v=S.length;g<v;g++)C[g]=b,b+=S[g].length+1;this[i]=C}y=C[C.length-1];let w=0;if(h>=y)w=C.length-1;else{let S=C.length-2,b;for(;w<S;)if(b=w+(S-w>>1),h<C[b])S=b-1;else if(h>=C[b+1])w=b+1;else{w=b;break}}return{col:h-C[w]+1,line:w+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:f(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,y,C,w){if(!this.map)return!1;let S=this.map.consumer(),b=S.originalPositionFor({column:y,line:h});if(!b.source)return!1;let g;typeof C=="number"&&(g=S.originalPositionFor({column:w,line:C}));let v;s(b.source)?v=l(b.source):v=new URL(b.source,this.map.consumer().sourceRoot||l(this.map.mapFile));let x={column:b.column,endColumn:g&&g.column,endLine:g&&g.line,line:b.line,url:v.toString()};if(v.protocol==="file:")if(r)x.file=r(v);else throw new Error("file: protocol is not available in this PostCSS build");let O=S.sourceContentFor(b.source);return O&&(x.source=O),x}toJSON(){let h={};for(let y of["hasBOM","css","file","id"])this[y]!=null&&(h[y]=this[y]);return this.map&&(h.map={...this.map},h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return Nt=n,n.default=n,m&&m.registerInput&&m.registerInput(n),Nt}var Pt,hs;function Ai(){if(hs)return Pt;hs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=he,{dirname:r,relative:l,resolve:s,sep:f}=he,{pathToFileURL:u}=he,m=pt(),a=!!(e&&t),p=!!(r&&s&&l&&f);class i{constructor(o,n,d,h){this.stringify=o,this.mapOpts=d.map||{},this.root=n,this.opts=d,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let o;this.isInline()?o="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?o=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?o=this.mapOpts.annotation(this.opts.to,this.root):o=this.outputFile()+".map";let n=`
`;this.css.includes(`\r
`)&&(n=`\r
`),this.css+=n+"/*# sourceMappingURL="+o+" */"}applyPrevMaps(){for(let o of this.previous()){let n=this.toUrl(this.path(o.file)),d=o.root||r(o.file),h;this.mapOpts.sourcesContent===!1?(h=new e(o.text),h.sourcesContent&&(h.sourcesContent=null)):h=o.consumer(),this.map.applySourceMap(h,n,this.toUrl(this.path(d)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let o;for(let n=this.root.nodes.length-1;n>=0;n--)o=this.root.nodes[n],o.type==="comment"&&o.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&a&&this.isMap())return this.generateMap();{let o="";return this.stringify(this.root,n=>{o+=n}),[o]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let o=this.previous()[0].consumer();o.file=this.outputFile(),this.map=t.fromSourceMap(o,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let o=1,n=1,d="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},y,C;this.stringify(this.root,(w,S,b)=>{if(this.css+=w,S&&b!=="end"&&(h.generated.line=o,h.generated.column=n-1,S.source&&S.source.start?(h.source=this.sourcePath(S),h.original.line=S.source.start.line,h.original.column=S.source.start.column-1,this.map.addMapping(h)):(h.source=d,h.original.line=1,h.original.column=0,this.map.addMapping(h))),y=w.match(/\n/g),y?(o+=y.length,C=w.lastIndexOf(`
`),n=w.length-C):n+=w.length,S&&b!=="start"){let g=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==g.last||g.raws.semicolon)&&(S.source&&S.source.end?(h.source=this.sourcePath(S),h.original.line=S.source.end.line,h.original.column=S.source.end.column-1,h.generated.line=o,h.generated.column=n-2,this.map.addMapping(h)):(h.source=d,h.original.line=1,h.original.column=0,h.generated.line=o,h.generated.column=n-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(o=>o.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let o=this.mapOpts.annotation;return typeof o<"u"&&o!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(o=>o.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(o){if(this.mapOpts.absolute||o.charCodeAt(0)===60||/^\w+:\/\//.test(o))return o;let n=this.memoizedPaths.get(o);if(n)return n;let d=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=r(s(d,this.mapOpts.annotation)));let h=l(d,o);return this.memoizedPaths.set(o,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let n=o.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let o=new m(this.originalCSS,this.opts);o.map&&this.previousMaps.push(o.map)}return this.previousMaps}setSourcesContent(){let o={};if(this.root)this.root.walk(n=>{if(n.source){let d=n.source.input.from;if(d&&!o[d]){o[d]=!0;let h=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(h,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(o){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(o.source.input.from):this.toUrl(this.path(o.source.input.from))}toBase64(o){return Buffer?Buffer.from(o).toString("base64"):window.btoa(unescape(encodeURIComponent(o)))}toFileUrl(o){let n=this.memoizedFileURLs.get(o);if(n)return n;if(u){let d=u(o).toString();return this.memoizedFileURLs.set(o,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(o){let n=this.memoizedURLs.get(o);if(n)return n;f==="\\"&&(o=o.replace(/\\/g,"/"));let d=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,d),d}}return Pt=i,Pt}var _t,fs;function dt(){if(fs)return _t;fs=1;let e=ht();class t extends e{constructor(l){super(l),this.type="comment"}}return _t=t,t.default=t,_t}var Lt,ps;function xe(){if(ps)return Lt;ps=1;let{isClean:e,my:t}=_r(),r=ft(),l=dt(),s=ht(),f,u,m,a;function p(o){return o.map(n=>(n.nodes&&(n.nodes=p(n.nodes)),delete n.source,n))}function i(o){if(o[e]=!1,o.proxyOf.nodes)for(let n of o.proxyOf.nodes)i(n)}class c extends s{append(...n){for(let d of n){let h=this.normalize(d,this.last);for(let y of h)this.proxyOf.nodes.push(y)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let d of this.nodes)d.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let d=this.getIterator(),h,y;for(;this.indexes[d]<this.proxyOf.nodes.length&&(h=this.indexes[d],y=n(this.proxyOf.nodes[h],h),y!==!1);)this.indexes[d]+=1;return delete this.indexes[d],y}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,d){return d==="proxyOf"?n:n[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...h)=>n[d](...h.map(y=>typeof y=="function"?(C,w)=>y(C.toProxy(),w):y)):d==="every"||d==="some"?h=>n[d]((y,...C)=>h(y.toProxy(),...C)):d==="root"?()=>n.root().toProxy():d==="nodes"?n.nodes.map(h=>h.toProxy()):d==="first"||d==="last"?n[d].toProxy():n[d]:n[d]},set(n,d,h){return n[d]===h||(n[d]=h,(d==="name"||d==="params"||d==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,d){let h=this.index(n),y=this.normalize(d,this.proxyOf.nodes[h]).reverse();h=this.index(n);for(let w of y)this.proxyOf.nodes.splice(h+1,0,w);let C;for(let w in this.indexes)C=this.indexes[w],h<C&&(this.indexes[w]=C+y.length);return this.markDirty(),this}insertBefore(n,d){let h=this.index(n),y=h===0?"prepend":!1,C=this.normalize(d,this.proxyOf.nodes[h],y).reverse();h=this.index(n);for(let S of C)this.proxyOf.nodes.splice(h,0,S);let w;for(let S in this.indexes)w=this.indexes[S],h<=w&&(this.indexes[S]=w+C.length);return this.markDirty(),this}normalize(n,d){if(typeof n=="string")n=p(f(n).nodes);else if(typeof n>"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let y of n)y.parent&&y.parent.removeChild(y,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let y of n)y.parent&&y.parent.removeChild(y,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new r(n)]}else if(n.selector)n=[new u(n)];else if(n.name)n=[new m(n)];else if(n.text)n=[new l(n)];else throw new Error("Unknown node type in node creation");return n.map(y=>(y[t]||c.rebuild(y),y=y.proxyOf,y.parent&&y.parent.removeChild(y),y[e]&&i(y),typeof y.raws.before>"u"&&d&&typeof d.raws.before<"u"&&(y.raws.before=d.raws.before.replace(/\S/g,"")),y.parent=this.proxyOf,y))}prepend(...n){n=n.reverse();for(let d of n){let h=this.normalize(d,this.first,"prepend").reverse();for(let y of h)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+h.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let d;for(let h in this.indexes)d=this.indexes[h],d>=n&&(this.indexes[h]=d-1);return this.markDirty(),this}replaceValues(n,d,h){return h||(h=d,d={}),this.walkDecls(y=>{d.props&&!d.props.includes(y.prop)||d.fast&&!y.value.includes(d.fast)||(y.value=y.value.replace(n,h))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((d,h)=>{let y;try{y=n(d,h)}catch(C){throw d.addToError(C)}return y!==!1&&d.walk&&(y=d.walk(n)),y})}walkAtRules(n,d){return d?n instanceof RegExp?this.walk((h,y)=>{if(h.type==="atrule"&&n.test(h.name))return d(h,y)}):this.walk((h,y)=>{if(h.type==="atrule"&&h.name===n)return d(h,y)}):(d=n,this.walk((h,y)=>{if(h.type==="atrule")return d(h,y)}))}walkComments(n){return this.walk((d,h)=>{if(d.type==="comment")return n(d,h)})}walkDecls(n,d){return d?n instanceof RegExp?this.walk((h,y)=>{if(h.type==="decl"&&n.test(h.prop))return d(h,y)}):this.walk((h,y)=>{if(h.type==="decl"&&h.prop===n)return d(h,y)}):(d=n,this.walk((h,y)=>{if(h.type==="decl")return d(h,y)}))}walkRules(n,d){return d?n instanceof RegExp?this.walk((h,y)=>{if(h.type==="rule"&&n.test(h.selector))return d(h,y)}):this.walk((h,y)=>{if(h.type==="rule"&&h.selector===n)return d(h,y)}):(d=n,this.walk((h,y)=>{if(h.type==="rule")return d(h,y)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return c.registerParse=o=>{f=o},c.registerRule=o=>{u=o},c.registerAtRule=o=>{m=o},c.registerRoot=o=>{a=o},Lt=c,c.default=c,c.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,m.prototype):o.type==="rule"?Object.setPrototypeOf(o,u.prototype):o.type==="decl"?Object.setPrototypeOf(o,r.prototype):o.type==="comment"?Object.setPrototypeOf(o,l.prototype):o.type==="root"&&Object.setPrototypeOf(o,a.prototype),o[t]=!0,o.nodes&&o.nodes.forEach(n=>{c.rebuild(n)})},Lt}var Dt,ds;function Lr(){if(ds)return Dt;ds=1;let e=xe(),t,r;class l extends e{constructor(f){super({type:"document",...f}),this.nodes||(this.nodes=[])}toResult(f={}){return new t(new r,this,f).stringify()}}return l.registerLazyResult=s=>{t=s},l.registerProcessor=s=>{r=s},Dt=l,l.default=l,Dt}var Tt,ms;function ki(){if(ms)return Tt;ms=1;class e{constructor(r,l={}){if(this.type="warning",this.text=r,l.node&&l.node.source){let s=l.node.rangeBy(l);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in l)this[s]=l[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Tt=e,e.default=e,Tt}var Ft,gs;function Dr(){if(gs)return Ft;gs=1;let e=ki();class t{constructor(l,s,f){this.processor=l,this.messages=[],this.root=s,this.opts=f,this.css=void 0,this.map=void 0}toString(){return this.css}warn(l,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let f=new e(l,s);return this.messages.push(f),f}warnings(){return this.messages.filter(l=>l.type==="warning")}get content(){return this.css}}return Ft=t,t.default=t,Ft}var Ut,ys;function oo(){if(ys)return Ut;ys=1;const e=39,t=34,r=92,l=47,s=10,f=32,u=12,m=9,a=13,p=91,i=93,c=40,o=41,n=123,d=125,h=59,y=42,C=58,w=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,b=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,g=/.[\r\n"'(/\\]/,v=/[\da-f]/i;return Ut=function(O,A={}){let M=O.css.valueOf(),$=A.ignoreErrors,k,R,Z,N,ee,H,F,Q,W,P,ye=M.length,E=0,pe=[],se=[];function Me(){return E}function de(X){throw O.error("Unclosed "+X,E)}function De(){return se.length===0&&E>=ye}function ae(X){if(se.length)return se.pop();if(E>=ye)return;let ne=X?X.ignoreUnclosed:!1;switch(k=M.charCodeAt(E),k){case s:case f:case m:case a:case u:{R=E;do R+=1,k=M.charCodeAt(R);while(k===f||k===s||k===m||k===a||k===u);P=["space",M.slice(E,R)],E=R-1;break}case p:case i:case n:case d:case C:case h:case o:{let _=String.fromCharCode(k);P=[_,_,E];break}case c:{if(Q=pe.length?pe.pop()[1]:"",W=M.charCodeAt(E+1),Q==="url"&&W!==e&&W!==t&&W!==f&&W!==s&&W!==m&&W!==u&&W!==a){R=E;do{if(H=!1,R=M.indexOf(")",R+1),R===-1)if($||ne){R=E;break}else de("bracket");for(F=R;M.charCodeAt(F-1)===r;)F-=1,H=!H}while(H);P=["brackets",M.slice(E,R+1),E,R],E=R}else R=M.indexOf(")",E+1),N=M.slice(E,R+1),R===-1||g.test(N)?P=["(","(",E]:(P=["brackets",N,E,R],E=R);break}case e:case t:{Z=k===e?"'":'"',R=E;do{if(H=!1,R=M.indexOf(Z,R+1),R===-1)if($||ne){R=E+1;break}else de("string");for(F=R;M.charCodeAt(F-1)===r;)F-=1,H=!H}while(H);P=["string",M.slice(E,R+1),E,R],E=R;break}case w:{S.lastIndex=E+1,S.test(M),S.lastIndex===0?R=M.length-1:R=S.lastIndex-2,P=["at-word",M.slice(E,R+1),E,R],E=R;break}case r:{for(R=E,ee=!0;M.charCodeAt(R+1)===r;)R+=1,ee=!ee;if(k=M.charCodeAt(R+1),ee&&k!==l&&k!==f&&k!==s&&k!==m&&k!==a&&k!==u&&(R+=1,v.test(M.charAt(R)))){for(;v.test(M.charAt(R+1));)R+=1;M.charCodeAt(R+1)===f&&(R+=1)}P=["word",M.slice(E,R+1),E,R],E=R;break}default:{k===l&&M.charCodeAt(E+1)===y?(R=M.indexOf("*/",E+2)+1,R===0&&($||ne?R=M.length:de("comment")),P=["comment",M.slice(E,R+1),E,R],E=R):(b.lastIndex=E+1,b.test(M),b.lastIndex===0?R=M.length-1:R=b.lastIndex-2,P=["word",M.slice(E,R+1),E,R],pe.push(P),E=R);break}}return E++,P}function le(X){se.push(X)}return{back:le,endOfFile:De,nextToken:ae,position:Me}},Ut}var $t,ws;function Tr(){if(ws)return $t;ws=1;let e=xe();class t extends e{constructor(l){super(l),this.type="atrule"}append(...l){return this.proxyOf.nodes||(this.nodes=[]),super.append(...l)}prepend(...l){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...l)}}return $t=t,t.default=t,e.registerAtRule(t),$t}var Bt,bs;function ze(){if(bs)return Bt;bs=1;let e=xe(),t,r;class l extends e{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,u,m){let a=super.normalize(f);if(u){if(m==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of a)p.raws.before=u.raws.before}return a}removeChild(f,u){let m=this.index(f);return!u&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(f)}toResult(f={}){return new t(new r,this,f).stringify()}}return l.registerLazyResult=s=>{t=s},l.registerProcessor=s=>{r=s},Bt=l,l.default=l,e.registerRoot(l),Bt}var zt,Ss;function Ni(){if(Ss)return zt;Ss=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
`,"	"];return e.split(t,r)},split(t,r,l){let s=[],f="",u=!1,m=0,a=!1,p="",i=!1;for(let c of t)i?i=!1:c==="\\"?i=!0:a?c===p&&(a=!1):c==='"'||c==="'"?(a=!0,p=c):c==="("?m+=1:c===")"?m>0&&(m-=1):m===0&&r.includes(c)&&(u=!0),u?(f!==""&&s.push(f.trim()),f="",u=!1):f+=c;return(l||f!=="")&&s.push(f.trim()),s}};return zt=e,e.default=e,zt}var Wt,vs;function Fr(){if(vs)return Wt;vs=1;let e=xe(),t=Ni();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let f=this.selector?this.selector.match(/,\s*/):null,u=f?f[0]:","+this.raw("between","beforeOpen");this.selector=s.join(u)}}return Wt=r,r.default=r,e.registerRule(r),Wt}var qt,Cs;function ao(){if(Cs)return qt;Cs=1;let e=ft(),t=oo(),r=dt(),l=Tr(),s=ze(),f=Fr();const u={empty:!0,space:!0};function m(p){for(let i=p.length-1;i>=0;i--){let c=p[i],o=c[3]||c[2];if(o)return o}}class a{constructor(i){this.input=i,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}atrule(i){let c=new l;c.name=i[1].slice(1),c.name===""&&this.unnamedAtrule(c,i),this.init(c,i[2]);let o,n,d,h=!1,y=!1,C=[],w=[];for(;!this.tokenizer.endOfFile();){if(i=this.tokenizer.nextToken(),o=i[0],o==="("||o==="["?w.push(o==="("?")":"]"):o==="{"&&w.length>0?w.push("}"):o===w[w.length-1]&&w.pop(),w.length===0)if(o===";"){c.source.end=this.getPosition(i[2]),c.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){y=!0;break}else if(o==="}"){if(C.length>0){for(d=C.length-1,n=C[d];n&&n[0]==="space";)n=C[--d];n&&(c.source.end=this.getPosition(n[3]||n[2]),c.source.end.offset++)}this.end(i);break}else C.push(i);else C.push(i);if(this.tokenizer.endOfFile()){h=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(c.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(c,"params",C),h&&(i=C[C.length-1],c.source.end=this.getPosition(i[3]||i[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),y&&(c.nodes=[],this.current=c)}checkMissedSemicolon(i){let c=this.colon(i);if(c===!1)return;let o=0,n;for(let d=c-1;d>=0&&(n=i[d],!(n[0]!=="space"&&(o+=1,o===2)));d--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(i){let c=0,o,n,d;for(let[h,y]of i.entries()){if(o=y,n=o[0],n==="("&&(c+=1),n===")"&&(c-=1),c===0&&n===":")if(!d)this.doubleColon(o);else{if(d[0]==="word"&&d[1]==="progid")continue;return h}d=o}return!1}comment(i){let c=new r;this.init(c,i[2]),c.source.end=this.getPosition(i[3]||i[2]),c.source.end.offset++;let o=i[1].slice(2,-2);if(/^\s*$/.test(o))c.text="",c.raws.left=o,c.raws.right="";else{let n=o.match(/^(\s*)([^]*\S)(\s*)$/);c.text=n[2],c.raws.left=n[1],c.raws.right=n[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(i,c){let o=new e;this.init(o,i[0][2]);let n=i[i.length-1];for(n[0]===";"&&(this.semicolon=!0,i.pop()),o.source.end=this.getPosition(n[3]||n[2]||m(i)),o.source.end.offset++;i[0][0]!=="word";)i.length===1&&this.unknownWord(i),o.raws.before+=i.shift()[1];for(o.source.start=this.getPosition(i[0][2]),o.prop="";i.length;){let w=i[0][0];if(w===":"||w==="space"||w==="comment")break;o.prop+=i.shift()[1]}o.raws.between="";let d;for(;i.length;)if(d=i.shift(),d[0]===":"){o.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),o.raws.between+=d[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let h=[],y;for(;i.length&&(y=i[0][0],!(y!=="space"&&y!=="comment"));)h.push(i.shift());this.precheckMissedSemicolon(i);for(let w=i.length-1;w>=0;w--){if(d=i[w],d[1].toLowerCase()==="!important"){o.important=!0;let S=this.stringFrom(i,w);S=this.spacesFromEnd(i)+S,S!==" !important"&&(o.raws.important=S);break}else if(d[1].toLowerCase()==="important"){let S=i.slice(0),b="";for(let g=w;g>0;g--){let v=S[g][0];if(b.trim().indexOf("!")===0&&v!=="space")break;b=S.pop()[1]+b}b.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=b,i=S)}if(d[0]!=="space"&&d[0]!=="comment")break}i.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(o.raws.between+=h.map(w=>w[1]).join(""),h=[]),this.raw(o,"value",h.concat(i),c),o.value.includes(":")&&!c&&this.checkMissedSemicolon(i)}doubleColon(i){throw this.input.error("Double colon",{offset:i[2]},{offset:i[2]+i[1].length})}emptyRule(i){let c=new f;this.init(c,i[2]),c.selector="",c.raws.between="",this.current=c}end(i){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(i[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(i)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(i){if(this.spaces+=i[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(i){let c=this.input.fromOffset(i);return{column:c.col,line:c.line,offset:i}}init(i,c){this.current.push(i),i.source={input:this.input,start:this.getPosition(c)},i.raws.before=this.spaces,this.spaces="",i.type!=="comment"&&(this.semicolon=!1)}other(i){let c=!1,o=null,n=!1,d=null,h=[],y=i[1].startsWith("--"),C=[],w=i;for(;w;){if(o=w[0],C.push(w),o==="("||o==="[")d||(d=w),h.push(o==="("?")":"]");else if(y&&n&&o==="{")d||(d=w),h.push("}");else if(h.length===0)if(o===";")if(n){this.decl(C,y);return}else break;else if(o==="{"){this.rule(C);return}else if(o==="}"){this.tokenizer.back(C.pop()),c=!0;break}else o===":"&&(n=!0);else o===h[h.length-1]&&(h.pop(),h.length===0&&(d=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),h.length>0&&this.unclosedBracket(d),c&&n){if(!y)for(;C.length&&(w=C[C.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,y)}else this.unknownWord(C)}parse(){let i;for(;!this.tokenizer.endOfFile();)switch(i=this.tokenizer.nextToken(),i[0]){case"space":this.spaces+=i[1];break;case";":this.freeSemicolon(i);break;case"}":this.end(i);break;case"comment":this.comment(i);break;case"at-word":this.atrule(i);break;case"{":this.emptyRule(i);break;default:this.other(i);break}this.endFile()}precheckMissedSemicolon(){}raw(i,c,o,n){let d,h,y=o.length,C="",w=!0,S,b;for(let g=0;g<y;g+=1)d=o[g],h=d[0],h==="space"&&g===y-1&&!n?w=!1:h==="comment"?(b=o[g-1]?o[g-1][0]:"empty",S=o[g+1]?o[g+1][0]:"empty",!u[b]&&!u[S]?C.slice(-1)===","?w=!1:C+=d[1]:w=!1):C+=d[1];if(!w){let g=o.reduce((v,x)=>v+x[1],"");i.raws[c]={raw:g,value:C}}i[c]=C}rule(i){i.pop();let c=new f;this.init(c,i[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(i),this.raw(c,"selector",i),this.current=c}spacesAndCommentsFromEnd(i){let c,o="";for(;i.length&&(c=i[i.length-1][0],!(c!=="space"&&c!=="comment"));)o=i.pop()[1]+o;return o}spacesAndCommentsFromStart(i){let c,o="";for(;i.length&&(c=i[0][0],!(c!=="space"&&c!=="comment"));)o+=i.shift()[1];return o}spacesFromEnd(i){let c,o="";for(;i.length&&(c=i[i.length-1][0],c==="space");)o=i.pop()[1]+o;return o}stringFrom(i,c){let o="";for(let n=c;n<i.length;n++)o+=i[n][1];return i.splice(c,i.length-c),o}unclosedBlock(){let i=this.current.source.start;throw this.input.error("Unclosed block",i.line,i.column)}unclosedBracket(i){throw this.input.error("Unclosed bracket",{offset:i[2]},{offset:i[2]+1})}unexpectedClose(i){throw this.input.error("Unexpected }",{offset:i[2]},{offset:i[2]+1})}unknownWord(i){throw this.input.error("Unknown word",{offset:i[0][2]},{offset:i[0][2]+i[0][1].length})}unnamedAtrule(i,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return qt=a,qt}var jt,xs;function Ur(){if(xs)return jt;xs=1;let e=xe(),t=ao(),r=pt();function l(s,f){let u=new r(s,f),m=new t(u);try{m.parse()}catch(a){throw a}return m.root}return jt=l,l.default=l,e.registerParse(l),jt}var Ht,Rs;function Pi(){if(Rs)return Ht;Rs=1;let{isClean:e,my:t}=_r(),r=Ai(),l=ct(),s=xe(),f=Lr(),u=Dr(),m=Ur(),a=ze();const p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},i={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function n(S){return typeof S=="object"&&typeof S.then=="function"}function d(S){let b=!1,g=p[S.type];return S.type==="decl"?b=S.prop.toLowerCase():S.type==="atrule"&&(b=S.name.toLowerCase()),b&&S.append?[g,g+"-"+b,o,g+"Exit",g+"Exit-"+b]:b?[g,g+"-"+b,g+"Exit",g+"Exit-"+b]:S.append?[g,o,g+"Exit"]:[g,g+"Exit"]}function h(S){let b;return S.type==="document"?b=["Document",o,"DocumentExit"]:S.type==="root"?b=["Root",o,"RootExit"]:b=d(S),{eventIndex:0,events:b,iterator:0,node:S,visitorIndex:0,visitors:[]}}function y(S){return S[e]=!1,S.nodes&&S.nodes.forEach(b=>y(b)),S}let C={};class w{constructor(b,g,v){this.stringified=!1,this.processed=!1;let x;if(typeof g=="object"&&g!==null&&(g.type==="root"||g.type==="document"))x=y(g);else if(g instanceof w||g instanceof u)x=y(g.root),g.map&&(typeof v.map>"u"&&(v.map={}),v.map.inline||(v.map.inline=!1),v.map.prev=g.map);else{let O=m;v.syntax&&(O=v.syntax.parse),v.parser&&(O=v.parser),O.parse&&(O=O.parse);try{x=O(g,v)}catch(A){this.processed=!0,this.error=A}x&&!x[t]&&s.rebuild(x)}this.result=new u(b,x,v),this.helpers={...C,postcss:C,result:this.result},this.plugins=this.processor.plugins.map(O=>typeof O=="object"&&O.prepare?{...O,...O.prepare(this.result)}:O)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,g){let v=this.result.lastPlugin;try{g&&g.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=v.postcssPlugin,b.setMessage()):v.postcssVersion}catch(x){console&&console.error&&console.error(x)}return b}prepareVisitors(){this.listeners={};let b=(g,v,x)=>{this.listeners[v]||(this.listeners[v]=[]),this.listeners[v].push([g,x])};for(let g of this.plugins)if(typeof g=="object")for(let v in g){if(!i[v]&&/^[A-Z]/.test(v))throw new Error(`Unknown event ${v} in ${g.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[v])if(typeof g[v]=="object")for(let x in g[v])x==="*"?b(g,v,g[v][x]):b(g,v+"-"+x.toLowerCase(),g[v][x]);else typeof g[v]=="function"&&b(g,v,g[v])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let g=this.plugins[b],v=this.runOnRoot(g);if(n(v))try{await v}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let g=[h(b)];for(;g.length>0;){let v=this.visitTick(g);if(n(v))try{await v}catch(x){let O=g[g.length-1].node;throw this.handleError(x,O)}}}if(this.listeners.OnceExit)for(let[g,v]of this.listeners.OnceExit){this.result.lastPlugin=g;try{if(b.type==="document"){let x=b.nodes.map(O=>v(O,this.helpers));await Promise.all(x)}else await v(b,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let g=this.result.root.nodes.map(v=>b.Once(v,this.helpers));return n(g[0])?Promise.all(g):g}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(this.result.root,this.result)}catch(g){throw this.handleError(g)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let b=this.result.opts,g=l;b.syntax&&(g=b.syntax.stringify),b.stringifier&&(g=b.stringifier),g.stringify&&(g=g.stringify);let x=new r(g,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let b of this.plugins){let g=this.runOnRoot(b);if(n(g))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let g of b.nodes)this.visitSync(this.listeners.OnceExit,g);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,g){return this.async().then(b,g)}toString(){return this.css}visitSync(b,g){for(let[v,x]of b){this.result.lastPlugin=v;let O;try{O=x(g,this.helpers)}catch(A){throw this.handleError(A,g.proxyOf)}if(g.type!=="root"&&g.type!=="document"&&!g.parent)return!0;if(n(O))throw this.getAsyncError()}}visitTick(b){let g=b[b.length-1],{node:v,visitors:x}=g;if(v.type!=="root"&&v.type!=="document"&&!v.parent){b.pop();return}if(x.length>0&&g.visitorIndex<x.length){let[A,M]=x[g.visitorIndex];g.visitorIndex+=1,g.visitorIndex===x.length&&(g.visitors=[],g.visitorIndex=0),this.result.lastPlugin=A;try{return M(v.toProxy(),this.helpers)}catch($){throw this.handleError($,v)}}if(g.iterator!==0){let A=g.iterator,M;for(;M=v.nodes[v.indexes[A]];)if(v.indexes[A]+=1,!M[e]){M[e]=!0,b.push(h(M));return}g.iterator=0,delete v.indexes[A]}let O=g.events;for(;g.eventIndex<O.length;){let A=O[g.eventIndex];if(g.eventIndex+=1,A===o){v.nodes&&v.nodes.length&&(v[e]=!0,g.iterator=v.getIterator());return}else if(this.listeners[A]){g.visitors=this.listeners[A];return}}b.pop()}walkSync(b){b[e]=!0;let g=d(b);for(let v of g)if(v===o)b.nodes&&b.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[v];if(x&&this.visitSync(x,b.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return w.registerPostcss=S=>{C=S},Ht=w,w.default=w,a.registerLazyResult(w),f.registerLazyResult(w),Ht}var Gt,Os;function lo(){if(Os)return Gt;Os=1;let e=Ai(),t=ct(),r=Ur();const l=Dr();class s{constructor(u,m,a){m=m.toString(),this.stringified=!1,this._processor=u,this._css=m,this._opts=a,this._map=void 0;let p,i=t;this.result=new l(this._processor,p,this._opts),this.result.css=m;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let o=new e(i,p,this._opts,m);if(o.isMap()){let[n,d]=o.generate();n&&(this.result.css=n),d&&(this.result.map=d)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,m){return this.async().then(u,m)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,m=r;try{u=m(this._css,this._opts)}catch(a){this.error=a}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}}return Gt=s,s.default=s,Gt}var Vt,Ms;function uo(){if(Ms)return Vt;Ms=1;let e=lo(),t=Pi(),r=Lr(),l=ze();class s{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let m=[];for(let a of u)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))m=m.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)m.push(a);else if(typeof a=="function")m.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return m}process(u,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new e(this,u,m):new t(this,u,m)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return Vt=s,s.default=s,l.registerProcessor(s),r.registerProcessor(s),Vt}var Jt,Es;function co(){if(Es)return Jt;Es=1;let e=ft(),t=Ii(),r=dt(),l=Tr(),s=pt(),f=ze(),u=Fr();function m(a,p){if(Array.isArray(a))return a.map(o=>m(o));let{inputs:i,...c}=a;if(i){p=[];for(let o of i){let n={...o,__proto__:s.prototype};n.map&&(n.map={...n.map,__proto__:t.prototype}),p.push(n)}}if(c.nodes&&(c.nodes=a.nodes.map(o=>m(o,p))),c.source){let{inputId:o,...n}=c.source;c.source=n,o!=null&&(c.source.input=p[o])}if(c.type==="root")return new f(c);if(c.type==="decl")return new e(c);if(c.type==="rule")return new u(c);if(c.type==="comment")return new r(c);if(c.type==="atrule")return new l(c);throw new Error("Unknown node type: "+a.type)}return Jt=m,m.default=m,Jt}var Yt,Is;function ho(){if(Is)return Yt;Is=1;let e=Pr(),t=ft(),r=Pi(),l=xe(),s=uo(),f=ct(),u=co(),m=Lr(),a=ki(),p=dt(),i=Tr(),c=Dr(),o=pt(),n=Ur(),d=Ni(),h=Fr(),y=ze(),C=ht();function w(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new s(S)}return w.plugin=function(b,g){let v=!1;function x(...A){console&&console.warn&&!v&&(v=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),rt.LANG&&rt.LANG.startsWith("cn")&&console.warn(b+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let M=g(...A);return M.postcssPlugin=b,M.postcssVersion=new s().version,M}let O;return Object.defineProperty(x,"postcss",{get(){return O||(O=x()),O}}),x.process=function(A,M,$){return w([x($)]).process(A,M)},x},w.stringify=f,w.parse=n,w.fromJSON=u,w.list=d,w.comment=S=>new p(S),w.atRule=S=>new i(S),w.decl=S=>new t(S),w.rule=S=>new h(S),w.root=S=>new y(S),w.document=S=>new m(S),w.CssSyntaxError=e,w.Declaration=t,w.Container=l,w.Processor=s,w.Document=m,w.Comment=p,w.Warning=a,w.AtRule=i,w.Result=c,w.Input=o,w.Rule=h,w.Root=y,w.Node=C,r.registerPostcss(w),Yt=w,w.default=w,Yt}var fo=ho();const q=eo(fo);q.stringify;q.fromJSON;q.plugin;q.parse;q.list;q.document;q.comment;q.atRule;q.rule;q.decl;q.root;q.CssSyntaxError;q.Declaration;q.Container;q.Processor;q.Document;q.Comment;q.Warning;q.AtRule;q.Result;q.Input;q.Rule;q.Root;q.Node;var po=Object.defineProperty,mo=(e,t,r)=>t in e?po(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oe=(e,t,r)=>mo(e,typeof t!="symbol"?t+"":t,r);function go(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yo(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function l(){return this instanceof l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(l){var s=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(r,l,s.get?s:{enumerable:!0,get:function(){return e[l]}})}),r}var Je={exports:{}},As;function wo(){if(As)return Je.exports;As=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return Je.exports=t(),Je.exports.createColors=t,Je.exports}const bo={},So=Object.freeze(Object.defineProperty({__proto__:null,default:bo},Symbol.toStringTag,{value:"Module"})),fe=yo(So);var Qt,ks;function $r(){if(ks)return Qt;ks=1;let e=wo(),t=fe;class r extends Error{constructor(s,f,u,m,a,p){super(s),this.name="CssSyntaxError",this.reason=s,a&&(this.file=a),m&&(this.source=m),p&&(this.plugin=p),typeof f<"u"&&typeof u<"u"&&(typeof f=="number"?(this.line=f,this.column=u):(this.line=f.line,this.column=f.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let f=this.source;s==null&&(s=e.isColorSupported),t&&s&&(f=t(f));let u=f.split(/\r?\n/),m=Math.max(this.line-3,0),a=Math.min(this.line+2,u.length),p=String(a).length,i,c;if(s){let{bold:o,gray:n,red:d}=e.createColors(!0);i=h=>o(d(h)),c=h=>n(h)}else i=c=o=>o;return u.slice(m,a).map((o,n)=>{let d=m+1+n,h=" "+(" "+d).slice(-p)+" | ";if(d===this.line){let y=c(h.replace(/\d/g," "))+o.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+c(h)+o+`
 `+y+i("^")}return" "+c(h)+o}).join(`
`)}toString(){let s=this.showSourceCode();return s&&(s=`

`+s+`
`),this.name+": "+this.message+s}}return Qt=r,r.default=r,Qt}var Ye={},Ns;function Br(){return Ns||(Ns=1,Ye.isClean=Symbol("isClean"),Ye.my=Symbol("my")),Ye}var Xt,Ps;function _i(){if(Ps)return Xt;Ps=1;const e={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function t(l){return l[0].toUpperCase()+l.slice(1)}class r{constructor(s){this.builder=s}atrule(s,f){let u="@"+s.name,m=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?u+=s.raws.afterName:m&&(u+=" "),s.nodes)this.block(s,u+m);else{let a=(s.raws.between||"")+(f?";":"");this.builder(u+m+a,s)}}beforeAfter(s,f){let u;s.type==="decl"?u=this.raw(s,null,"beforeDecl"):s.type==="comment"?u=this.raw(s,null,"beforeComment"):f==="before"?u=this.raw(s,null,"beforeRule"):u=this.raw(s,null,"beforeClose");let m=s.parent,a=0;for(;m&&m.type!=="root";)a+=1,m=m.parent;if(u.includes(`
`)){let p=this.raw(s,null,"indent");if(p.length)for(let i=0;i<a;i++)u+=p}return u}block(s,f){let u=this.raw(s,"between","beforeOpen");this.builder(f+u+"{",s,"start");let m;s.nodes&&s.nodes.length?(this.body(s),m=this.raw(s,"after")):m=this.raw(s,"after","emptyBody"),m&&this.builder(m),this.builder("}",s,"end")}body(s){let f=s.nodes.length-1;for(;f>0&&s.nodes[f].type==="comment";)f-=1;let u=this.raw(s,"semicolon");for(let m=0;m<s.nodes.length;m++){let a=s.nodes[m],p=this.raw(a,"before");p&&this.builder(p),this.stringify(a,f!==m||u)}}comment(s){let f=this.raw(s,"left","commentLeft"),u=this.raw(s,"right","commentRight");this.builder("/*"+f+s.text+u+"*/",s)}decl(s,f){let u=this.raw(s,"between","colon"),m=s.prop+u+this.rawValue(s,"value");s.important&&(m+=s.raws.important||" !important"),f&&(m+=";"),this.builder(m,s)}document(s){this.body(s)}raw(s,f,u){let m;if(u||(u=f),f&&(m=s.raws[f],typeof m<"u"))return m;let a=s.parent;if(u==="before"&&(!a||a.type==="root"&&a.first===s||a&&a.type==="document"))return"";if(!a)return e[u];let p=s.root();if(p.rawCache||(p.rawCache={}),typeof p.rawCache[u]<"u")return p.rawCache[u];if(u==="before"||u==="after")return this.beforeAfter(s,u);{let i="raw"+t(u);this[i]?m=this[i](p,s):p.walk(c=>{if(m=c.raws[f],typeof m<"u")return!1})}return typeof m>"u"&&(m=e[u]),p.rawCache[u]=m,m}rawBeforeClose(s){let f;return s.walk(u=>{if(u.nodes&&u.nodes.length>0&&typeof u.raws.after<"u")return f=u.raws.after,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawBeforeComment(s,f){let u;return s.walkComments(m=>{if(typeof m.raws.before<"u")return u=m.raws.before,u.includes(`
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(f,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(s,f){let u;return s.walkDecls(m=>{if(typeof m.raws.before<"u")return u=m.raws.before,u.includes(`
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(f,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(s){let f;return s.walk(u=>{if(u.type!=="decl"&&(f=u.raws.between,typeof f<"u"))return!1}),f}rawBeforeRule(s){let f;return s.walk(u=>{if(u.nodes&&(u.parent!==s||s.first!==u)&&typeof u.raws.before<"u")return f=u.raws.before,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawColon(s){let f;return s.walkDecls(u=>{if(typeof u.raws.between<"u")return f=u.raws.between.replace(/[^\s:]/g,""),!1}),f}rawEmptyBody(s){let f;return s.walk(u=>{if(u.nodes&&u.nodes.length===0&&(f=u.raws.after,typeof f<"u"))return!1}),f}rawIndent(s){if(s.raws.indent)return s.raws.indent;let f;return s.walk(u=>{let m=u.parent;if(m&&m!==s&&m.parent&&m.parent===s&&typeof u.raws.before<"u"){let a=u.raws.before.split(`
`);return f=a[a.length-1],f=f.replace(/\S/g,""),!1}}),f}rawSemicolon(s){let f;return s.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(f=u.raws.semicolon,typeof f<"u"))return!1}),f}rawValue(s,f){let u=s[f],m=s.raws[f];return m&&m.value===u?m.raw:u}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,f){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,f)}}return Xt=r,r.default=r,Xt}var Kt,_s;function mt(){if(_s)return Kt;_s=1;let e=_i();function t(r,l){new e(l).stringify(r)}return Kt=t,t.default=t,Kt}var Zt,Ls;function gt(){if(Ls)return Zt;Ls=1;let{isClean:e,my:t}=Br(),r=$r(),l=_i(),s=mt();function f(m,a){let p=new m.constructor;for(let i in m){if(!Object.prototype.hasOwnProperty.call(m,i)||i==="proxyCache")continue;let c=m[i],o=typeof c;i==="parent"&&o==="object"?a&&(p[i]=a):i==="source"?p[i]=c:Array.isArray(c)?p[i]=c.map(n=>f(n,p)):(o==="object"&&c!==null&&(c=f(c)),p[i]=c)}return p}class u{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in a)if(p==="nodes"){this.nodes=[];for(let i of a[p])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[p]=a[p]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let p=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let p in a)this[p]=a[p];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let p=f(this);for(let i in a)p[i]=a[i];return p}cloneAfter(a={}){let p=this.clone(a);return this.parent.insertAfter(this,p),p}cloneBefore(a={}){let p=this.clone(a);return this.parent.insertBefore(this,p),p}error(a,p={}){if(this.source){let{end:i,start:c}=this.rangeBy(p);return this.source.input.error(a,{column:c.column,line:c.line},{column:i.column,line:i.line},p)}return new r(a)}getProxyProcessor(){return{get(a,p){return p==="proxyOf"?a:p==="root"?()=>a.root().toProxy():a[p]},set(a,p,i){return a[p]===i||(a[p]=i,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,p){let i=this.source.start;if(a.index)i=this.positionInside(a.index,p);else if(a.word){p=this.toString();let c=p.indexOf(a.word);c!==-1&&(i=this.positionInside(c,p))}return i}positionInside(a,p){let i=p||this.toString(),c=this.source.start.column,o=this.source.start.line;for(let n=0;n<a;n++)i[n]===`
`?(c=1,o+=1):c+=1;return{column:c,line:o}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let p={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(a.word){let c=this.toString(),o=c.indexOf(a.word);o!==-1&&(p=this.positionInside(o,c),i=this.positionInside(o+a.word.length,c))}else a.start?p={column:a.start.column,line:a.start.line}:a.index&&(p=this.positionInside(a.index)),a.end?i={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?i=this.positionInside(a.endIndex):a.index&&(i=this.positionInside(a.index+1));return(i.line<p.line||i.line===p.line&&i.column<=p.column)&&(i={column:p.column+1,line:p.line}),{end:i,start:p}}raw(a,p){return new l().raw(this,a,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let p=this,i=!1;for(let c of a)c===this?i=!0:i?(this.parent.insertAfter(p,c),p=c):this.parent.insertBefore(p,c);i||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,p){let i={},c=p==null;p=p||new Map;let o=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let d=this[n];if(Array.isArray(d))i[n]=d.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,p):h);else if(typeof d=="object"&&d.toJSON)i[n]=d.toJSON(null,p);else if(n==="source"){let h=p.get(d.input);h==null&&(h=o,p.set(d.input,o),o++),i[n]={end:d.end,inputId:h,start:d.start}}else i[n]=d}return c&&(i.inputs=[...p.keys()].map(n=>n.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=s){a.stringify&&(a=a.stringify);let p="";return a(this,i=>{p+=i}),p}warn(a,p,i){let c={node:this};for(let o in i)c[o]=i[o];return a.warn(p,c)}get proxyOf(){return this}}return Zt=u,u.default=u,Zt}var er,Ds;function yt(){if(Ds)return er;Ds=1;let e=gt();class t extends e{constructor(l){l&&typeof l.value<"u"&&typeof l.value!="string"&&(l={...l,value:String(l.value)}),super(l),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return er=t,t.default=t,er}var tr,Ts;function vo(){if(Ts)return tr;Ts=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return tr={nanoid:(l=21)=>{let s="",f=l;for(;f--;)s+=e[Math.random()*64|0];return s},customAlphabet:(l,s=21)=>(f=s)=>{let u="",m=f;for(;m--;)u+=l[Math.random()*l.length|0];return u}},tr}var rr,Fs;function Li(){if(Fs)return rr;Fs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=fe,{existsSync:r,readFileSync:l}=fe,{dirname:s,join:f}=fe;function u(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class m{constructor(p,i){if(i.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let c=i.map?i.map.prev:void 0,o=this.loadMap(i.from,c);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=s(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let i=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(o.test(p)||n.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(i.test(p)||c.test(p))return u(p.substr(RegExp.lastMatch.length));let d=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+d)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let i=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let c=p.lastIndexOf(i.pop()),o=p.indexOf("*/",c);c>-1&&o>-1&&(this.annotation=this.getAnnotationURL(p.substring(c,o)))}loadFile(p){if(this.root=s(p),r(p))return this.mapFile=p,l(p,"utf-8").toString().trim()}loadMap(p,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let c=i(p);if(c){let o=this.loadFile(c);if(!o)throw new Error("Unable to load previous source map: "+c.toString());return o}}else{if(i instanceof e)return t.fromSourceMap(i).toString();if(i instanceof t)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return p&&(c=f(s(p),c)),this.loadFile(c)}}}startWith(p,i){return p?p.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return rr=m,m.default=m,rr}var sr,Us;function wt(){if(Us)return sr;Us=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=fe,{fileURLToPath:r,pathToFileURL:l}=fe,{isAbsolute:s,resolve:f}=fe,{nanoid:u}=vo(),m=fe,a=$r(),p=Li(),i=Symbol("fromOffsetCache"),c=!!(e&&t),o=!!(f&&s);class n{constructor(h,y={}){if(h===null||typeof h>"u"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,y.from&&(!o||/^\w+:\/\//.test(y.from)||s(y.from)?this.file=y.from:this.file=f(y.from)),o&&c){let C=new p(this.css,y);if(C.text){this.map=C;let w=C.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(h,y,C,w={}){let S,b,g;if(y&&typeof y=="object"){let x=y,O=C;if(typeof x.offset=="number"){let A=this.fromOffset(x.offset);y=A.line,C=A.col}else y=x.line,C=x.column;if(typeof O.offset=="number"){let A=this.fromOffset(O.offset);b=A.line,g=A.col}else b=O.line,g=O.column}else if(!C){let x=this.fromOffset(y);y=x.line,C=x.col}let v=this.origin(y,C,b,g);return v?S=new a(h,v.endLine===void 0?v.line:{column:v.column,line:v.line},v.endLine===void 0?v.column:{column:v.endColumn,line:v.endLine},v.source,v.file,w.plugin):S=new a(h,b===void 0?y:{column:C,line:y},b===void 0?C:{column:g,line:b},this.css,this.file,w.plugin),S.input={column:C,endColumn:g,endLine:b,line:y,source:this.css},this.file&&(l&&(S.input.url=l(this.file).toString()),S.input.file=this.file),S}fromOffset(h){let y,C;if(this[i])C=this[i];else{let S=this.css.split(`
`);C=new Array(S.length);let b=0;for(let g=0,v=S.length;g<v;g++)C[g]=b,b+=S[g].length+1;this[i]=C}y=C[C.length-1];let w=0;if(h>=y)w=C.length-1;else{let S=C.length-2,b;for(;w<S;)if(b=w+(S-w>>1),h<C[b])S=b-1;else if(h>=C[b+1])w=b+1;else{w=b;break}}return{col:h-C[w]+1,line:w+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:f(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,y,C,w){if(!this.map)return!1;let S=this.map.consumer(),b=S.originalPositionFor({column:y,line:h});if(!b.source)return!1;let g;typeof C=="number"&&(g=S.originalPositionFor({column:w,line:C}));let v;s(b.source)?v=l(b.source):v=new URL(b.source,this.map.consumer().sourceRoot||l(this.map.mapFile));let x={column:b.column,endColumn:g&&g.column,endLine:g&&g.line,line:b.line,url:v.toString()};if(v.protocol==="file:")if(r)x.file=r(v);else throw new Error("file: protocol is not available in this PostCSS build");let O=S.sourceContentFor(b.source);return O&&(x.source=O),x}toJSON(){let h={};for(let y of["hasBOM","css","file","id"])this[y]!=null&&(h[y]=this[y]);return this.map&&(h.map={...this.map},h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return sr=n,n.default=n,m&&m.registerInput&&m.registerInput(n),sr}var ir,$s;function Di(){if($s)return ir;$s=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=fe,{dirname:r,relative:l,resolve:s,sep:f}=fe,{pathToFileURL:u}=fe,m=wt(),a=!!(e&&t),p=!!(r&&s&&l&&f);class i{constructor(o,n,d,h){this.stringify=o,this.mapOpts=d.map||{},this.root=n,this.opts=d,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let o;this.isInline()?o="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?o=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?o=this.mapOpts.annotation(this.opts.to,this.root):o=this.outputFile()+".map";let n=`
`;this.css.includes(`\r
`)&&(n=`\r
`),this.css+=n+"/*# sourceMappingURL="+o+" */"}applyPrevMaps(){for(let o of this.previous()){let n=this.toUrl(this.path(o.file)),d=o.root||r(o.file),h;this.mapOpts.sourcesContent===!1?(h=new e(o.text),h.sourcesContent&&(h.sourcesContent=null)):h=o.consumer(),this.map.applySourceMap(h,n,this.toUrl(this.path(d)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let o;for(let n=this.root.nodes.length-1;n>=0;n--)o=this.root.nodes[n],o.type==="comment"&&o.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&a&&this.isMap())return this.generateMap();{let o="";return this.stringify(this.root,n=>{o+=n}),[o]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let o=this.previous()[0].consumer();o.file=this.outputFile(),this.map=t.fromSourceMap(o,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let o=1,n=1,d="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},y,C;this.stringify(this.root,(w,S,b)=>{if(this.css+=w,S&&b!=="end"&&(h.generated.line=o,h.generated.column=n-1,S.source&&S.source.start?(h.source=this.sourcePath(S),h.original.line=S.source.start.line,h.original.column=S.source.start.column-1,this.map.addMapping(h)):(h.source=d,h.original.line=1,h.original.column=0,this.map.addMapping(h))),y=w.match(/\n/g),y?(o+=y.length,C=w.lastIndexOf(`
`),n=w.length-C):n+=w.length,S&&b!=="start"){let g=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==g.last||g.raws.semicolon)&&(S.source&&S.source.end?(h.source=this.sourcePath(S),h.original.line=S.source.end.line,h.original.column=S.source.end.column-1,h.generated.line=o,h.generated.column=n-2,this.map.addMapping(h)):(h.source=d,h.original.line=1,h.original.column=0,h.generated.line=o,h.generated.column=n-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(o=>o.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let o=this.mapOpts.annotation;return typeof o<"u"&&o!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(o=>o.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(o){if(this.mapOpts.absolute||o.charCodeAt(0)===60||/^\w+:\/\//.test(o))return o;let n=this.memoizedPaths.get(o);if(n)return n;let d=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=r(s(d,this.mapOpts.annotation)));let h=l(d,o);return this.memoizedPaths.set(o,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let n=o.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let o=new m(this.originalCSS,this.opts);o.map&&this.previousMaps.push(o.map)}return this.previousMaps}setSourcesContent(){let o={};if(this.root)this.root.walk(n=>{if(n.source){let d=n.source.input.from;if(d&&!o[d]){o[d]=!0;let h=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(h,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(o){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(o.source.input.from):this.toUrl(this.path(o.source.input.from))}toBase64(o){return Buffer?Buffer.from(o).toString("base64"):window.btoa(unescape(encodeURIComponent(o)))}toFileUrl(o){let n=this.memoizedFileURLs.get(o);if(n)return n;if(u){let d=u(o).toString();return this.memoizedFileURLs.set(o,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(o){let n=this.memoizedURLs.get(o);if(n)return n;f==="\\"&&(o=o.replace(/\\/g,"/"));let d=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,d),d}}return ir=i,ir}var nr,Bs;function bt(){if(Bs)return nr;Bs=1;let e=gt();class t extends e{constructor(l){super(l),this.type="comment"}}return nr=t,t.default=t,nr}var or,zs;function Re(){if(zs)return or;zs=1;let{isClean:e,my:t}=Br(),r=yt(),l=bt(),s=gt(),f,u,m,a;function p(o){return o.map(n=>(n.nodes&&(n.nodes=p(n.nodes)),delete n.source,n))}function i(o){if(o[e]=!1,o.proxyOf.nodes)for(let n of o.proxyOf.nodes)i(n)}class c extends s{append(...n){for(let d of n){let h=this.normalize(d,this.last);for(let y of h)this.proxyOf.nodes.push(y)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let d of this.nodes)d.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let d=this.getIterator(),h,y;for(;this.indexes[d]<this.proxyOf.nodes.length&&(h=this.indexes[d],y=n(this.proxyOf.nodes[h],h),y!==!1);)this.indexes[d]+=1;return delete this.indexes[d],y}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,d){return d==="proxyOf"?n:n[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...h)=>n[d](...h.map(y=>typeof y=="function"?(C,w)=>y(C.toProxy(),w):y)):d==="every"||d==="some"?h=>n[d]((y,...C)=>h(y.toProxy(),...C)):d==="root"?()=>n.root().toProxy():d==="nodes"?n.nodes.map(h=>h.toProxy()):d==="first"||d==="last"?n[d].toProxy():n[d]:n[d]},set(n,d,h){return n[d]===h||(n[d]=h,(d==="name"||d==="params"||d==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,d){let h=this.index(n),y=this.normalize(d,this.proxyOf.nodes[h]).reverse();h=this.index(n);for(let w of y)this.proxyOf.nodes.splice(h+1,0,w);let C;for(let w in this.indexes)C=this.indexes[w],h<C&&(this.indexes[w]=C+y.length);return this.markDirty(),this}insertBefore(n,d){let h=this.index(n),y=h===0?"prepend":!1,C=this.normalize(d,this.proxyOf.nodes[h],y).reverse();h=this.index(n);for(let S of C)this.proxyOf.nodes.splice(h,0,S);let w;for(let S in this.indexes)w=this.indexes[S],h<=w&&(this.indexes[S]=w+C.length);return this.markDirty(),this}normalize(n,d){if(typeof n=="string")n=p(f(n).nodes);else if(typeof n>"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let y of n)y.parent&&y.parent.removeChild(y,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let y of n)y.parent&&y.parent.removeChild(y,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new r(n)]}else if(n.selector)n=[new u(n)];else if(n.name)n=[new m(n)];else if(n.text)n=[new l(n)];else throw new Error("Unknown node type in node creation");return n.map(y=>(y[t]||c.rebuild(y),y=y.proxyOf,y.parent&&y.parent.removeChild(y),y[e]&&i(y),typeof y.raws.before>"u"&&d&&typeof d.raws.before<"u"&&(y.raws.before=d.raws.before.replace(/\S/g,"")),y.parent=this.proxyOf,y))}prepend(...n){n=n.reverse();for(let d of n){let h=this.normalize(d,this.first,"prepend").reverse();for(let y of h)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+h.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let d;for(let h in this.indexes)d=this.indexes[h],d>=n&&(this.indexes[h]=d-1);return this.markDirty(),this}replaceValues(n,d,h){return h||(h=d,d={}),this.walkDecls(y=>{d.props&&!d.props.includes(y.prop)||d.fast&&!y.value.includes(d.fast)||(y.value=y.value.replace(n,h))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((d,h)=>{let y;try{y=n(d,h)}catch(C){throw d.addToError(C)}return y!==!1&&d.walk&&(y=d.walk(n)),y})}walkAtRules(n,d){return d?n instanceof RegExp?this.walk((h,y)=>{if(h.type==="atrule"&&n.test(h.name))return d(h,y)}):this.walk((h,y)=>{if(h.type==="atrule"&&h.name===n)return d(h,y)}):(d=n,this.walk((h,y)=>{if(h.type==="atrule")return d(h,y)}))}walkComments(n){return this.walk((d,h)=>{if(d.type==="comment")return n(d,h)})}walkDecls(n,d){return d?n instanceof RegExp?this.walk((h,y)=>{if(h.type==="decl"&&n.test(h.prop))return d(h,y)}):this.walk((h,y)=>{if(h.type==="decl"&&h.prop===n)return d(h,y)}):(d=n,this.walk((h,y)=>{if(h.type==="decl")return d(h,y)}))}walkRules(n,d){return d?n instanceof RegExp?this.walk((h,y)=>{if(h.type==="rule"&&n.test(h.selector))return d(h,y)}):this.walk((h,y)=>{if(h.type==="rule"&&h.selector===n)return d(h,y)}):(d=n,this.walk((h,y)=>{if(h.type==="rule")return d(h,y)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return c.registerParse=o=>{f=o},c.registerRule=o=>{u=o},c.registerAtRule=o=>{m=o},c.registerRoot=o=>{a=o},or=c,c.default=c,c.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,m.prototype):o.type==="rule"?Object.setPrototypeOf(o,u.prototype):o.type==="decl"?Object.setPrototypeOf(o,r.prototype):o.type==="comment"?Object.setPrototypeOf(o,l.prototype):o.type==="root"&&Object.setPrototypeOf(o,a.prototype),o[t]=!0,o.nodes&&o.nodes.forEach(n=>{c.rebuild(n)})},or}var ar,Ws;function zr(){if(Ws)return ar;Ws=1;let e=Re(),t,r;class l extends e{constructor(f){super({type:"document",...f}),this.nodes||(this.nodes=[])}toResult(f={}){return new t(new r,this,f).stringify()}}return l.registerLazyResult=s=>{t=s},l.registerProcessor=s=>{r=s},ar=l,l.default=l,ar}var lr,qs;function Ti(){if(qs)return lr;qs=1;class e{constructor(r,l={}){if(this.type="warning",this.text=r,l.node&&l.node.source){let s=l.node.rangeBy(l);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in l)this[s]=l[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return lr=e,e.default=e,lr}var ur,js;function Wr(){if(js)return ur;js=1;let e=Ti();class t{constructor(l,s,f){this.processor=l,this.messages=[],this.root=s,this.opts=f,this.css=void 0,this.map=void 0}toString(){return this.css}warn(l,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let f=new e(l,s);return this.messages.push(f),f}warnings(){return this.messages.filter(l=>l.type==="warning")}get content(){return this.css}}return ur=t,t.default=t,ur}var cr,Hs;function Co(){if(Hs)return cr;Hs=1;const e=39,t=34,r=92,l=47,s=10,f=32,u=12,m=9,a=13,p=91,i=93,c=40,o=41,n=123,d=125,h=59,y=42,C=58,w=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,b=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,g=/.[\r\n"'(/\\]/,v=/[\da-f]/i;return cr=function(O,A={}){let M=O.css.valueOf(),$=A.ignoreErrors,k,R,Z,N,ee,H,F,Q,W,P,ye=M.length,E=0,pe=[],se=[];function Me(){return E}function de(X){throw O.error("Unclosed "+X,E)}function De(){return se.length===0&&E>=ye}function ae(X){if(se.length)return se.pop();if(E>=ye)return;let ne=X?X.ignoreUnclosed:!1;switch(k=M.charCodeAt(E),k){case s:case f:case m:case a:case u:{R=E;do R+=1,k=M.charCodeAt(R);while(k===f||k===s||k===m||k===a||k===u);P=["space",M.slice(E,R)],E=R-1;break}case p:case i:case n:case d:case C:case h:case o:{let _=String.fromCharCode(k);P=[_,_,E];break}case c:{if(Q=pe.length?pe.pop()[1]:"",W=M.charCodeAt(E+1),Q==="url"&&W!==e&&W!==t&&W!==f&&W!==s&&W!==m&&W!==u&&W!==a){R=E;do{if(H=!1,R=M.indexOf(")",R+1),R===-1)if($||ne){R=E;break}else de("bracket");for(F=R;M.charCodeAt(F-1)===r;)F-=1,H=!H}while(H);P=["brackets",M.slice(E,R+1),E,R],E=R}else R=M.indexOf(")",E+1),N=M.slice(E,R+1),R===-1||g.test(N)?P=["(","(",E]:(P=["brackets",N,E,R],E=R);break}case e:case t:{Z=k===e?"'":'"',R=E;do{if(H=!1,R=M.indexOf(Z,R+1),R===-1)if($||ne){R=E+1;break}else de("string");for(F=R;M.charCodeAt(F-1)===r;)F-=1,H=!H}while(H);P=["string",M.slice(E,R+1),E,R],E=R;break}case w:{S.lastIndex=E+1,S.test(M),S.lastIndex===0?R=M.length-1:R=S.lastIndex-2,P=["at-word",M.slice(E,R+1),E,R],E=R;break}case r:{for(R=E,ee=!0;M.charCodeAt(R+1)===r;)R+=1,ee=!ee;if(k=M.charCodeAt(R+1),ee&&k!==l&&k!==f&&k!==s&&k!==m&&k!==a&&k!==u&&(R+=1,v.test(M.charAt(R)))){for(;v.test(M.charAt(R+1));)R+=1;M.charCodeAt(R+1)===f&&(R+=1)}P=["word",M.slice(E,R+1),E,R],E=R;break}default:{k===l&&M.charCodeAt(E+1)===y?(R=M.indexOf("*/",E+2)+1,R===0&&($||ne?R=M.length:de("comment")),P=["comment",M.slice(E,R+1),E,R],E=R):(b.lastIndex=E+1,b.test(M),b.lastIndex===0?R=M.length-1:R=b.lastIndex-2,P=["word",M.slice(E,R+1),E,R],pe.push(P),E=R);break}}return E++,P}function le(X){se.push(X)}return{back:le,endOfFile:De,nextToken:ae,position:Me}},cr}var hr,Gs;function qr(){if(Gs)return hr;Gs=1;let e=Re();class t extends e{constructor(l){super(l),this.type="atrule"}append(...l){return this.proxyOf.nodes||(this.nodes=[]),super.append(...l)}prepend(...l){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...l)}}return hr=t,t.default=t,e.registerAtRule(t),hr}var fr,Vs;function We(){if(Vs)return fr;Vs=1;let e=Re(),t,r;class l extends e{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,u,m){let a=super.normalize(f);if(u){if(m==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of a)p.raws.before=u.raws.before}return a}removeChild(f,u){let m=this.index(f);return!u&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(f)}toResult(f={}){return new t(new r,this,f).stringify()}}return l.registerLazyResult=s=>{t=s},l.registerProcessor=s=>{r=s},fr=l,l.default=l,e.registerRoot(l),fr}var pr,Js;function Fi(){if(Js)return pr;Js=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
`,"	"];return e.split(t,r)},split(t,r,l){let s=[],f="",u=!1,m=0,a=!1,p="",i=!1;for(let c of t)i?i=!1:c==="\\"?i=!0:a?c===p&&(a=!1):c==='"'||c==="'"?(a=!0,p=c):c==="("?m+=1:c===")"?m>0&&(m-=1):m===0&&r.includes(c)&&(u=!0),u?(f!==""&&s.push(f.trim()),f="",u=!1):f+=c;return(l||f!=="")&&s.push(f.trim()),s}};return pr=e,e.default=e,pr}var dr,Ys;function jr(){if(Ys)return dr;Ys=1;let e=Re(),t=Fi();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let f=this.selector?this.selector.match(/,\s*/):null,u=f?f[0]:","+this.raw("between","beforeOpen");this.selector=s.join(u)}}return dr=r,r.default=r,e.registerRule(r),dr}var mr,Qs;function xo(){if(Qs)return mr;Qs=1;let e=yt(),t=Co(),r=bt(),l=qr(),s=We(),f=jr();const u={empty:!0,space:!0};function m(p){for(let i=p.length-1;i>=0;i--){let c=p[i],o=c[3]||c[2];if(o)return o}}class a{constructor(i){this.input=i,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}atrule(i){let c=new l;c.name=i[1].slice(1),c.name===""&&this.unnamedAtrule(c,i),this.init(c,i[2]);let o,n,d,h=!1,y=!1,C=[],w=[];for(;!this.tokenizer.endOfFile();){if(i=this.tokenizer.nextToken(),o=i[0],o==="("||o==="["?w.push(o==="("?")":"]"):o==="{"&&w.length>0?w.push("}"):o===w[w.length-1]&&w.pop(),w.length===0)if(o===";"){c.source.end=this.getPosition(i[2]),c.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){y=!0;break}else if(o==="}"){if(C.length>0){for(d=C.length-1,n=C[d];n&&n[0]==="space";)n=C[--d];n&&(c.source.end=this.getPosition(n[3]||n[2]),c.source.end.offset++)}this.end(i);break}else C.push(i);else C.push(i);if(this.tokenizer.endOfFile()){h=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(c.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(c,"params",C),h&&(i=C[C.length-1],c.source.end=this.getPosition(i[3]||i[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),y&&(c.nodes=[],this.current=c)}checkMissedSemicolon(i){let c=this.colon(i);if(c===!1)return;let o=0,n;for(let d=c-1;d>=0&&(n=i[d],!(n[0]!=="space"&&(o+=1,o===2)));d--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(i){let c=0,o,n,d;for(let[h,y]of i.entries()){if(o=y,n=o[0],n==="("&&(c+=1),n===")"&&(c-=1),c===0&&n===":")if(!d)this.doubleColon(o);else{if(d[0]==="word"&&d[1]==="progid")continue;return h}d=o}return!1}comment(i){let c=new r;this.init(c,i[2]),c.source.end=this.getPosition(i[3]||i[2]),c.source.end.offset++;let o=i[1].slice(2,-2);if(/^\s*$/.test(o))c.text="",c.raws.left=o,c.raws.right="";else{let n=o.match(/^(\s*)([^]*\S)(\s*)$/);c.text=n[2],c.raws.left=n[1],c.raws.right=n[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(i,c){let o=new e;this.init(o,i[0][2]);let n=i[i.length-1];for(n[0]===";"&&(this.semicolon=!0,i.pop()),o.source.end=this.getPosition(n[3]||n[2]||m(i)),o.source.end.offset++;i[0][0]!=="word";)i.length===1&&this.unknownWord(i),o.raws.before+=i.shift()[1];for(o.source.start=this.getPosition(i[0][2]),o.prop="";i.length;){let w=i[0][0];if(w===":"||w==="space"||w==="comment")break;o.prop+=i.shift()[1]}o.raws.between="";let d;for(;i.length;)if(d=i.shift(),d[0]===":"){o.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),o.raws.between+=d[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let h=[],y;for(;i.length&&(y=i[0][0],!(y!=="space"&&y!=="comment"));)h.push(i.shift());this.precheckMissedSemicolon(i);for(let w=i.length-1;w>=0;w--){if(d=i[w],d[1].toLowerCase()==="!important"){o.important=!0;let S=this.stringFrom(i,w);S=this.spacesFromEnd(i)+S,S!==" !important"&&(o.raws.important=S);break}else if(d[1].toLowerCase()==="important"){let S=i.slice(0),b="";for(let g=w;g>0;g--){let v=S[g][0];if(b.trim().indexOf("!")===0&&v!=="space")break;b=S.pop()[1]+b}b.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=b,i=S)}if(d[0]!=="space"&&d[0]!=="comment")break}i.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(o.raws.between+=h.map(w=>w[1]).join(""),h=[]),this.raw(o,"value",h.concat(i),c),o.value.includes(":")&&!c&&this.checkMissedSemicolon(i)}doubleColon(i){throw this.input.error("Double colon",{offset:i[2]},{offset:i[2]+i[1].length})}emptyRule(i){let c=new f;this.init(c,i[2]),c.selector="",c.raws.between="",this.current=c}end(i){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(i[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(i)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(i){if(this.spaces+=i[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(i){let c=this.input.fromOffset(i);return{column:c.col,line:c.line,offset:i}}init(i,c){this.current.push(i),i.source={input:this.input,start:this.getPosition(c)},i.raws.before=this.spaces,this.spaces="",i.type!=="comment"&&(this.semicolon=!1)}other(i){let c=!1,o=null,n=!1,d=null,h=[],y=i[1].startsWith("--"),C=[],w=i;for(;w;){if(o=w[0],C.push(w),o==="("||o==="[")d||(d=w),h.push(o==="("?")":"]");else if(y&&n&&o==="{")d||(d=w),h.push("}");else if(h.length===0)if(o===";")if(n){this.decl(C,y);return}else break;else if(o==="{"){this.rule(C);return}else if(o==="}"){this.tokenizer.back(C.pop()),c=!0;break}else o===":"&&(n=!0);else o===h[h.length-1]&&(h.pop(),h.length===0&&(d=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),h.length>0&&this.unclosedBracket(d),c&&n){if(!y)for(;C.length&&(w=C[C.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,y)}else this.unknownWord(C)}parse(){let i;for(;!this.tokenizer.endOfFile();)switch(i=this.tokenizer.nextToken(),i[0]){case"space":this.spaces+=i[1];break;case";":this.freeSemicolon(i);break;case"}":this.end(i);break;case"comment":this.comment(i);break;case"at-word":this.atrule(i);break;case"{":this.emptyRule(i);break;default:this.other(i);break}this.endFile()}precheckMissedSemicolon(){}raw(i,c,o,n){let d,h,y=o.length,C="",w=!0,S,b;for(let g=0;g<y;g+=1)d=o[g],h=d[0],h==="space"&&g===y-1&&!n?w=!1:h==="comment"?(b=o[g-1]?o[g-1][0]:"empty",S=o[g+1]?o[g+1][0]:"empty",!u[b]&&!u[S]?C.slice(-1)===","?w=!1:C+=d[1]:w=!1):C+=d[1];if(!w){let g=o.reduce((v,x)=>v+x[1],"");i.raws[c]={raw:g,value:C}}i[c]=C}rule(i){i.pop();let c=new f;this.init(c,i[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(i),this.raw(c,"selector",i),this.current=c}spacesAndCommentsFromEnd(i){let c,o="";for(;i.length&&(c=i[i.length-1][0],!(c!=="space"&&c!=="comment"));)o=i.pop()[1]+o;return o}spacesAndCommentsFromStart(i){let c,o="";for(;i.length&&(c=i[0][0],!(c!=="space"&&c!=="comment"));)o+=i.shift()[1];return o}spacesFromEnd(i){let c,o="";for(;i.length&&(c=i[i.length-1][0],c==="space");)o=i.pop()[1]+o;return o}stringFrom(i,c){let o="";for(let n=c;n<i.length;n++)o+=i[n][1];return i.splice(c,i.length-c),o}unclosedBlock(){let i=this.current.source.start;throw this.input.error("Unclosed block",i.line,i.column)}unclosedBracket(i){throw this.input.error("Unclosed bracket",{offset:i[2]},{offset:i[2]+1})}unexpectedClose(i){throw this.input.error("Unexpected }",{offset:i[2]},{offset:i[2]+1})}unknownWord(i){throw this.input.error("Unknown word",{offset:i[0][2]},{offset:i[0][2]+i[0][1].length})}unnamedAtrule(i,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return mr=a,mr}var gr,Xs;function Hr(){if(Xs)return gr;Xs=1;let e=Re(),t=xo(),r=wt();function l(s,f){let u=new r(s,f),m=new t(u);try{m.parse()}catch(a){throw a}return m.root}return gr=l,l.default=l,e.registerParse(l),gr}var yr,Ks;function Ui(){if(Ks)return yr;Ks=1;let{isClean:e,my:t}=Br(),r=Di(),l=mt(),s=Re(),f=zr(),u=Wr(),m=Hr(),a=We();const p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},i={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function n(S){return typeof S=="object"&&typeof S.then=="function"}function d(S){let b=!1,g=p[S.type];return S.type==="decl"?b=S.prop.toLowerCase():S.type==="atrule"&&(b=S.name.toLowerCase()),b&&S.append?[g,g+"-"+b,o,g+"Exit",g+"Exit-"+b]:b?[g,g+"-"+b,g+"Exit",g+"Exit-"+b]:S.append?[g,o,g+"Exit"]:[g,g+"Exit"]}function h(S){let b;return S.type==="document"?b=["Document",o,"DocumentExit"]:S.type==="root"?b=["Root",o,"RootExit"]:b=d(S),{eventIndex:0,events:b,iterator:0,node:S,visitorIndex:0,visitors:[]}}function y(S){return S[e]=!1,S.nodes&&S.nodes.forEach(b=>y(b)),S}let C={};class w{constructor(b,g,v){this.stringified=!1,this.processed=!1;let x;if(typeof g=="object"&&g!==null&&(g.type==="root"||g.type==="document"))x=y(g);else if(g instanceof w||g instanceof u)x=y(g.root),g.map&&(typeof v.map>"u"&&(v.map={}),v.map.inline||(v.map.inline=!1),v.map.prev=g.map);else{let O=m;v.syntax&&(O=v.syntax.parse),v.parser&&(O=v.parser),O.parse&&(O=O.parse);try{x=O(g,v)}catch(A){this.processed=!0,this.error=A}x&&!x[t]&&s.rebuild(x)}this.result=new u(b,x,v),this.helpers={...C,postcss:C,result:this.result},this.plugins=this.processor.plugins.map(O=>typeof O=="object"&&O.prepare?{...O,...O.prepare(this.result)}:O)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,g){let v=this.result.lastPlugin;try{g&&g.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=v.postcssPlugin,b.setMessage()):v.postcssVersion}catch(x){console&&console.error&&console.error(x)}return b}prepareVisitors(){this.listeners={};let b=(g,v,x)=>{this.listeners[v]||(this.listeners[v]=[]),this.listeners[v].push([g,x])};for(let g of this.plugins)if(typeof g=="object")for(let v in g){if(!i[v]&&/^[A-Z]/.test(v))throw new Error(`Unknown event ${v} in ${g.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[v])if(typeof g[v]=="object")for(let x in g[v])x==="*"?b(g,v,g[v][x]):b(g,v+"-"+x.toLowerCase(),g[v][x]);else typeof g[v]=="function"&&b(g,v,g[v])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let g=this.plugins[b],v=this.runOnRoot(g);if(n(v))try{await v}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let g=[h(b)];for(;g.length>0;){let v=this.visitTick(g);if(n(v))try{await v}catch(x){let O=g[g.length-1].node;throw this.handleError(x,O)}}}if(this.listeners.OnceExit)for(let[g,v]of this.listeners.OnceExit){this.result.lastPlugin=g;try{if(b.type==="document"){let x=b.nodes.map(O=>v(O,this.helpers));await Promise.all(x)}else await v(b,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let g=this.result.root.nodes.map(v=>b.Once(v,this.helpers));return n(g[0])?Promise.all(g):g}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(this.result.root,this.result)}catch(g){throw this.handleError(g)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let b=this.result.opts,g=l;b.syntax&&(g=b.syntax.stringify),b.stringifier&&(g=b.stringifier),g.stringify&&(g=g.stringify);let x=new r(g,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let b of this.plugins){let g=this.runOnRoot(b);if(n(g))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let g of b.nodes)this.visitSync(this.listeners.OnceExit,g);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,g){return this.async().then(b,g)}toString(){return this.css}visitSync(b,g){for(let[v,x]of b){this.result.lastPlugin=v;let O;try{O=x(g,this.helpers)}catch(A){throw this.handleError(A,g.proxyOf)}if(g.type!=="root"&&g.type!=="document"&&!g.parent)return!0;if(n(O))throw this.getAsyncError()}}visitTick(b){let g=b[b.length-1],{node:v,visitors:x}=g;if(v.type!=="root"&&v.type!=="document"&&!v.parent){b.pop();return}if(x.length>0&&g.visitorIndex<x.length){let[A,M]=x[g.visitorIndex];g.visitorIndex+=1,g.visitorIndex===x.length&&(g.visitors=[],g.visitorIndex=0),this.result.lastPlugin=A;try{return M(v.toProxy(),this.helpers)}catch($){throw this.handleError($,v)}}if(g.iterator!==0){let A=g.iterator,M;for(;M=v.nodes[v.indexes[A]];)if(v.indexes[A]+=1,!M[e]){M[e]=!0,b.push(h(M));return}g.iterator=0,delete v.indexes[A]}let O=g.events;for(;g.eventIndex<O.length;){let A=O[g.eventIndex];if(g.eventIndex+=1,A===o){v.nodes&&v.nodes.length&&(v[e]=!0,g.iterator=v.getIterator());return}else if(this.listeners[A]){g.visitors=this.listeners[A];return}}b.pop()}walkSync(b){b[e]=!0;let g=d(b);for(let v of g)if(v===o)b.nodes&&b.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[v];if(x&&this.visitSync(x,b.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return w.registerPostcss=S=>{C=S},yr=w,w.default=w,a.registerLazyResult(w),f.registerLazyResult(w),yr}var wr,Zs;function Ro(){if(Zs)return wr;Zs=1;let e=Di(),t=mt(),r=Hr();const l=Wr();class s{constructor(u,m,a){m=m.toString(),this.stringified=!1,this._processor=u,this._css=m,this._opts=a,this._map=void 0;let p,i=t;this.result=new l(this._processor,p,this._opts),this.result.css=m;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let o=new e(i,p,this._opts,m);if(o.isMap()){let[n,d]=o.generate();n&&(this.result.css=n),d&&(this.result.map=d)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,m){return this.async().then(u,m)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,m=r;try{u=m(this._css,this._opts)}catch(a){this.error=a}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}}return wr=s,s.default=s,wr}var br,ei;function Oo(){if(ei)return br;ei=1;let e=Ro(),t=Ui(),r=zr(),l=We();class s{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let m=[];for(let a of u)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))m=m.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)m.push(a);else if(typeof a=="function")m.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return m}process(u,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new e(this,u,m):new t(this,u,m)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return br=s,s.default=s,l.registerProcessor(s),r.registerProcessor(s),br}var Sr,ti;function Mo(){if(ti)return Sr;ti=1;let e=yt(),t=Li(),r=bt(),l=qr(),s=wt(),f=We(),u=jr();function m(a,p){if(Array.isArray(a))return a.map(o=>m(o));let{inputs:i,...c}=a;if(i){p=[];for(let o of i){let n={...o,__proto__:s.prototype};n.map&&(n.map={...n.map,__proto__:t.prototype}),p.push(n)}}if(c.nodes&&(c.nodes=a.nodes.map(o=>m(o,p))),c.source){let{inputId:o,...n}=c.source;c.source=n,o!=null&&(c.source.input=p[o])}if(c.type==="root")return new f(c);if(c.type==="decl")return new e(c);if(c.type==="rule")return new u(c);if(c.type==="comment")return new r(c);if(c.type==="atrule")return new l(c);throw new Error("Unknown node type: "+a.type)}return Sr=m,m.default=m,Sr}var vr,ri;function Eo(){if(ri)return vr;ri=1;let e=$r(),t=yt(),r=Ui(),l=Re(),s=Oo(),f=mt(),u=Mo(),m=zr(),a=Ti(),p=bt(),i=qr(),c=Wr(),o=wt(),n=Hr(),d=Fi(),h=jr(),y=We(),C=gt();function w(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new s(S)}return w.plugin=function(b,g){let v=!1;function x(...A){console&&console.warn&&!v&&(v=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),rt.LANG&&rt.LANG.startsWith("cn")&&console.warn(b+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let M=g(...A);return M.postcssPlugin=b,M.postcssVersion=new s().version,M}let O;return Object.defineProperty(x,"postcss",{get(){return O||(O=x()),O}}),x.process=function(A,M,$){return w([x($)]).process(A,M)},x},w.stringify=f,w.parse=n,w.fromJSON=u,w.list=d,w.comment=S=>new p(S),w.atRule=S=>new i(S),w.decl=S=>new t(S),w.rule=S=>new h(S),w.root=S=>new y(S),w.document=S=>new m(S),w.CssSyntaxError=e,w.Declaration=t,w.Container=l,w.Processor=s,w.Document=m,w.Comment=p,w.Warning=a,w.AtRule=i,w.Result=c,w.Input=o,w.Rule=h,w.Root=y,w.Node=C,r.registerPostcss(w),vr=w,w.default=w,vr}var Io=Eo();const j=go(Io);j.stringify;j.fromJSON;j.plugin;j.parse;j.list;j.document;j.comment;j.atRule;j.rule;j.decl;j.root;j.CssSyntaxError;j.Declaration;j.Container;j.Processor;j.Document;j.Comment;j.Warning;j.AtRule;j.Result;j.Input;j.Rule;j.Root;j.Node;class Gr{constructor(...t){oe(this,"parentElement",null),oe(this,"parentNode",null),oe(this,"ownerDocument"),oe(this,"firstChild",null),oe(this,"lastChild",null),oe(this,"previousSibling",null),oe(this,"nextSibling",null),oe(this,"ELEMENT_NODE",1),oe(this,"TEXT_NODE",3),oe(this,"nodeType"),oe(this,"nodeName"),oe(this,"RRNodeType")}get childNodes(){const t=[];let r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof Gr){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const si={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ii={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Qe={};function Ao(e){var t,r;const l=(r=(t=globalThis?.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(l&&globalThis[l])return globalThis[l]}function Vr(e){if(Qe[e])return Qe[e];const t=Ao(e)||globalThis[e],r=t.prototype,l=e in si?si[e]:void 0,s=!!(l&&l.every(m=>{var a,p;return!!((p=(a=Object.getOwnPropertyDescriptor(r,m))==null?void 0:a.get)!=null&&p.toString().includes("[native code]"))})),f=e in ii?ii[e]:void 0,u=!!(f&&f.every(m=>{var a;return typeof r[m]=="function"&&((a=r[m])==null?void 0:a.toString().includes("[native code]"))}));if(s&&u)return Qe[e]=t.prototype,t.prototype;try{const m=document.createElement("iframe");document.body.appendChild(m);const a=m.contentWindow;if(!a)return t.prototype;const p=a[e].prototype;return document.body.removeChild(m),p?Qe[e]=p:r}catch{return r}}const Cr={};function Se(e,t,r){var l;const s=`${e}.${String(r)}`;if(Cr[s])return Cr[s].call(t);const f=Vr(e),u=(l=Object.getOwnPropertyDescriptor(f,r))==null?void 0:l.get;return u?(Cr[s]=u,u.call(t)):t[r]}const xr={};function $i(e,t,r){const l=`${e}.${String(r)}`;if(xr[l])return xr[l].bind(t);const f=Vr(e)[r];return typeof f!="function"?t[r]:(xr[l]=f,f.bind(t))}function ko(e){return Se("Node",e,"childNodes")}function No(e){return Se("Node",e,"parentNode")}function Po(e){return Se("Node",e,"parentElement")}function _o(e){return Se("Node",e,"textContent")}function Lo(e,t){return $i("Node",e,"contains")(t)}function Do(e){return $i("Node",e,"getRootNode")()}function To(e){return!e||!("host"in e)?null:Se("ShadowRoot",e,"host")}function Fo(e){return e.styleSheets}function Uo(e){return!e||!("shadowRoot"in e)?null:Se("Element",e,"shadowRoot")}function $o(e,t){return Se("Element",e,"querySelector")(t)}function Bo(e,t){return Se("Element",e,"querySelectorAll")(t)}function Bi(){return Vr("MutationObserver").constructor}const L={childNodes:ko,parentNode:No,parentElement:Po,textContent:_o,contains:Lo,getRootNode:Do,host:To,styleSheets:Fo,shadowRoot:Uo,querySelector:$o,querySelectorAll:Bo,mutationObserver:Bi};function te(e,t,r=document){const l={capture:!0,passive:!0};return r.addEventListener(e,t,l),()=>r.removeEventListener(e,t,l)}const Ie=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`;let ni={map:{},getId(){return console.error(Ie),-1},getNode(){return console.error(Ie),null},removeNodeFromMap(){console.error(Ie)},has(){return console.error(Ie),!1},reset(){console.error(Ie)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(ni=new Proxy(ni,{get(e,t,r){return t==="map"&&console.error(Ie),Reflect.get(e,t,r)}}));function Be(e,t,r={}){let l=null,s=0;return function(...f){const u=Date.now();!s&&r.leading===!1&&(s=u);const m=t-(u-s),a=this;m<=0||m>t?(l&&(clearTimeout(l),l=null),s=u,e.apply(a,f)):!l&&r.trailing!==!1&&(l=setTimeout(()=>{s=r.leading===!1?0:Date.now(),l=null,e.apply(a,f)},m))}}function St(e,t,r,l,s=window){const f=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,l?r:{set(u){setTimeout(()=>{r.set.call(this,u)},0),f&&f.set&&f.set.call(this,u)}}),()=>St(e,t,f||{},!0)}function Le(e,t,r){try{if(!(t in e))return()=>{};const l=e[t],s=r(l);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:l}})),e[t]=s,()=>{e[t]=l}}catch{return()=>{}}}let at=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(at=()=>new Date().getTime());function zi(e){var t,r,l,s;const f=e.document;return{left:f.scrollingElement?f.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:f.documentElement.scrollLeft||f?.body&&((t=L.parentElement(f.body))==null?void 0:t.scrollLeft)||((r=f?.body)==null?void 0:r.scrollLeft)||0,top:f.scrollingElement?f.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:f?.documentElement.scrollTop||f?.body&&((l=L.parentElement(f.body))==null?void 0:l.scrollTop)||((s=f?.body)==null?void 0:s.scrollTop)||0}}function Wi(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function qi(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ji(e){return e?e.nodeType===e.ELEMENT_NODE?e:L.parentElement(e):null}function re(e,t,r,l){if(!e)return!1;const s=ji(e);if(!s)return!1;try{if(typeof t=="string"){if(s.classList.contains(t)||l&&s.closest("."+t)!==null)return!0}else if(ot(s,t,l))return!0}catch{}return!!(r&&(s.matches(r)||l&&s.closest(r)!==null))}function zo(e,t){return t.getId(e)!==-1}function Rr(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===$e}function Hi(e,t){if(Te(e))return!1;const r=t.getId(e);if(!t.has(r))return!0;const l=L.parentNode(e);return l&&l.nodeType===e.DOCUMENT_NODE?!1:l?Hi(l,t):!0}function Er(e){return!!e.changedTouches}function Wo(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Gi(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Vi(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Ir(e){return e?e instanceof Gr&&"shadowRoot"in e?!!e.shadowRoot:!!L.shadowRoot(e):!1}class qo{constructor(){I(this,"id",1),I(this,"styleIDMap",new WeakMap),I(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let l;return r===void 0?l=this.id++:l=r,this.styleIDMap.set(t,l),this.idStyleMap.set(l,t),l}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ji(e){var t;let r=null;return"getRootNode"in e&&((t=L.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&L.host(L.getRootNode(e))&&(r=L.host(L.getRootNode(e))),r}function jo(e){let t=e,r;for(;r=Ji(t);)t=r;return t}function Ho(e){const t=e.ownerDocument;if(!t)return!1;const r=jo(e);return L.contains(t,r)}function Yi(e){const t=e.ownerDocument;return t?L.contains(t,e)||Ho(e):!1}var U=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(U||{}),D=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(D||{}),ie=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ie||{}),ge=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ge||{}),_e=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(_e||{}),Ae=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Ae||{}),Qi=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Qi||{});function oi(e){return"__ln"in e}class Go{constructor(){I(this,"length",0),I(this,"head",null),I(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let l=0;l<t;l++)r=r?.next||null;return r}addNode(t){const r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&oi(t.previousSibling)){const l=t.previousSibling.__ln.next;r.next=l,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,l&&(l.previous=r)}else if(t.nextSibling&&oi(t.nextSibling)&&t.nextSibling.__ln.previous){const l=t.nextSibling.__ln.previous;r.previous=l,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,l&&(l.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(t){const r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const ai=(e,t)=>`${e}@${t}`;class Vo{constructor(){I(this,"frozen",!1),I(this,"locked",!1),I(this,"texts",[]),I(this,"attributes",[]),I(this,"attributeMap",new WeakMap),I(this,"removes",[]),I(this,"mapRemoves",[]),I(this,"movedMap",{}),I(this,"addedSet",new Set),I(this,"movedSet",new Set),I(this,"droppedSet",new Set),I(this,"removesSubTreeCache",new Set),I(this,"mutationCb"),I(this,"blockClass"),I(this,"blockSelector"),I(this,"maskTextClass"),I(this,"maskTextSelector"),I(this,"inlineStylesheet"),I(this,"maskInputOptions"),I(this,"maskTextFn"),I(this,"maskInputFn"),I(this,"maskAttributeFn"),I(this,"keepIframeSrcFn"),I(this,"recordCanvas"),I(this,"inlineImages"),I(this,"slimDOMOptions"),I(this,"dataURLOptions"),I(this,"doc"),I(this,"mirror"),I(this,"iframeManager"),I(this,"stylesheetManager"),I(this,"shadowDomManager"),I(this,"canvasManager"),I(this,"processedNodeManager"),I(this,"unattachedDoc"),I(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),I(this,"emit",()=>{if(this.frozen||this.locked)return;const t=[],r=new Set,l=new Go,s=a=>{let p=a,i=$e;for(;i===$e;)p=p&&p.nextSibling,i=p&&this.mirror.getId(p);return i},f=a=>{const p=L.parentNode(a);if(!p||!Yi(a))return;let i=!1;if(a.nodeType===Node.TEXT_NODE){const d=p.tagName;if(d==="TEXTAREA")return;d==="STYLE"&&this.addedSet.has(p)&&(i=!0)}const c=Te(p)?this.mirror.getId(Ji(a)):this.mirror.getId(p),o=s(a);if(c===-1||o===-1)return l.addNode(a);const n=Ne(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:d=>{Gi(d,this.mirror)&&this.iframeManager.addIframe(d),Vi(d,this.mirror)&&this.stylesheetManager.trackLinkElement(d),Ir(a)&&this.shadowDomManager.addShadowRoot(L.shadowRoot(a),this.doc)},onIframeLoad:(d,h)=>{this.iframeManager.attachIframe(d,h),this.shadowDomManager.observeAttachShadow(d)},onStylesheetLoad:(d,h)=>{this.stylesheetManager.attachLinkElement(d,h)},cssCaptured:i});n&&(t.push({parentId:c,nextId:o,node:n}),r.add(n.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const a of this.movedSet)li(this.removesSubTreeCache,a,this.mirror)&&!this.movedSet.has(L.parentNode(a))||f(a);for(const a of this.addedSet)!ui(this.droppedSet,a)&&!li(this.removesSubTreeCache,a,this.mirror)||ui(this.movedSet,a)?f(a):this.droppedSet.add(a);let u=null;for(;l.length;){let a=null;if(u){const p=this.mirror.getId(L.parentNode(u.value)),i=s(u.value);p!==-1&&i!==-1&&(a=u)}if(!a){let p=l.tail;for(;p;){const i=p;if(p=p.previous,i){const c=this.mirror.getId(L.parentNode(i.value));if(s(i.value)===-1)continue;if(c!==-1){a=i;break}else{const n=i.value,d=L.parentNode(n);if(d&&d.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const h=L.host(d);if(this.mirror.getId(h)!==-1){a=i;break}}}}}}if(!a){for(;l.head;)l.removeNode(l.head.value);break}u=a.previous,l.removeNode(a.value),f(a.value)}const m={texts:this.texts.map(a=>{const p=a.node,i=L.parentNode(p);return i&&i.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(i),{id:this.mirror.getId(p),value:a.value}}).filter(a=>!r.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{const{attributes:p}=a;if(typeof p.style=="string"){const i=JSON.stringify(a.styleDiff),c=JSON.stringify(a._unchangedStyles);i.length<p.style.length&&(i+c).split("var(").length===p.style.split("var(").length&&(p.style=a.styleDiff)}return{id:this.mirror.getId(a.node),attributes:p}}).filter(a=>!r.has(a.id)).filter(a=>this.mirror.has(a.id)),removes:this.removes,adds:t};!m.texts.length&&!m.attributes.length&&!m.removes.length&&!m.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(m))}),I(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));const l=Array.from(L.childNodes(t),s=>L.textContent(s)||"").join("");r.attributes.value=st({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:it(t),value:l,maskInputFn:this.maskInputFn})}),I(this,"processMutation",t=>{if(!Rr(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{const r=L.textContent(t.target);!re(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Mi(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,ji(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{const r=t.target;let l=t.attributeName,s=t.target.getAttribute(l);if(l==="value"){const u=it(r);s=st({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:u,value:s,maskInputFn:this.maskInputFn})}if(re(t.target,this.blockClass,this.blockSelector,!1)||s===t.oldValue)return;let f=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&l==="src"&&!this.keepIframeSrcFn(s))if(!r.contentDocument)l="rr_src";else return;if(f||(f={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(f),this.attributeMap.set(t.target,f)),l==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Oi(r.tagName,l)){if(f.attributes[l]=Ri(this.doc,Ce(r.tagName),Ce(l),s),this.maskAttributeFn&&typeof f.attributes[l]=="string"){const u=this.maskAttributeFn(l,f.attributes[l],r);u!==null?f.attributes[l]=u:delete f.attributes[l]}if(l==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const u=this.unattachedDoc.createElement("span");t.oldValue&&u.setAttribute("style",t.oldValue);for(const m of Array.from(r.style)){const a=r.style.getPropertyValue(m),p=r.style.getPropertyPriority(m);a!==u.style.getPropertyValue(m)||p!==u.style.getPropertyPriority(m)?p===""?f.styleDiff[m]=a:f.styleDiff[m]=[a,p]:f._unchangedStyles[m]=[a,p]}for(const m of Array.from(u.style))r.style.getPropertyValue(m)===""&&(f.styleDiff[m]=!1)}else l==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?f.attributes.rr_open_mode="modal":f.attributes.rr_open_mode="non-modal")}break}case"childList":{if(re(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{const l=this.mirror.getId(r),s=Te(t.target)?this.mirror.getId(L.host(t.target)):this.mirror.getId(t.target);re(t.target,this.blockClass,this.blockSelector,!1)||Rr(r,this.mirror,this.slimDOMOptions)||!zo(r,this.mirror)||(this.addedSet.has(r)?(Ar(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&l===-1||Hi(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[ai(l,s)]?Ar(this.movedSet,r):(this.removes.push({parentId:s,id:l,isShadow:Te(t.target)&&Fe(t.target)?!0:void 0}),Jo(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),I(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Rr(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let l=null;r&&this.mirror.hasNode(r)&&(l=this.mirror.getId(r)),l&&l!==-1&&(this.movedMap[ai(this.mirror.getId(t),l)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);re(t,this.blockClass,this.blockSelector,!1)||(L.childNodes(t).forEach(l=>this.genAdds(l)),Ir(t)&&L.childNodes(L.shadowRoot(t)).forEach(l=>{this.processedNodeManager.add(l,this),this.genAdds(l,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","maskAttributeFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Ar(e,t){e.delete(t),L.childNodes(t).forEach(r=>Ar(e,r))}function Jo(e,t){const r=[e];for(;r.length;){const l=r.pop();t.has(l)||(t.add(l),L.childNodes(l).forEach(s=>r.push(s)))}}function li(e,t,r){return e.size===0?!1:Yo(e,t)}function Yo(e,t,r){const l=L.parentNode(t);return l?e.has(l):!1}function ui(e,t){return e.size===0?!1:Xi(e,t)}function Xi(e,t){const r=L.parentNode(t);return r?e.has(r)?!0:Xi(e,r):!1}let Ue;function Qo(e){Ue=e}function Xo(){Ue=void 0}const T=e=>Ue?((...r)=>{try{return e(...r)}catch(l){if(Ue&&Ue(l)===!0)return;throw l}}):e;function ci(e){return(...t)=>{try{return e(...t)}catch(r){try{r._external_=!0}catch{}throw r}}}const ve=[];function qe(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Ki(e,t){const r=new Vo;ve.push(r),r.init(e);const l=new(Bi())(T(r.processMutations.bind(r)));return l.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),l}function Ko({mousemoveCb:e,sampling:t,doc:r,mirror:l}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,f=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let u=[],m;const a=Be(T(c=>{const o=Date.now()-m;e(u.map(n=>(n.timeOffset-=o,n)),c),u=[],m=null}),f),p=T(Be(T(c=>{const o=qe(c),{clientX:n,clientY:d}=Er(c)?c.changedTouches[0]:c;m||(m=at()),u.push({x:n,y:d,id:l.getId(o),timeOffset:at()-m}),a(typeof DragEvent<"u"&&c instanceof DragEvent?D.Drag:c instanceof MouseEvent?D.MouseMove:D.TouchMove)}),s,{trailing:!1})),i=[te("mousemove",p,r),te("touchmove",p,r),te("drag",p,r)];return T(()=>{i.forEach(c=>c())})}function Zo({mouseInteractionCb:e,doc:t,mirror:r,blockClass:l,blockSelector:s,sampling:f}){if(f.mouseInteraction===!1)return()=>{};const u=f.mouseInteraction===!0||f.mouseInteraction===void 0?{}:f.mouseInteraction,m=[];let a=null;const p=i=>c=>{const o=qe(c);if(re(o,l,s,!0))return;let n=null,d=i;if("pointerType"in c){switch(c.pointerType){case"mouse":n=ge.Mouse;break;case"touch":n=ge.Touch;break;case"pen":n=ge.Pen;break}n===ge.Touch?ie[i]===ie.MouseDown?d="TouchStart":ie[i]===ie.MouseUp&&(d="TouchEnd"):ge.Pen}else Er(c)&&(n=ge.Touch);n!==null?(a=n,(d.startsWith("Touch")&&n===ge.Touch||d.startsWith("Mouse")&&n===ge.Mouse)&&(n=null)):ie[i]===ie.Click&&(n=a,a=null);const h=Er(c)?c.changedTouches[0]:c;if(!h)return;const y=r.getId(o),{clientX:C,clientY:w}=h;T(e)({type:ie[d],id:y,x:C,y:w,...n!==null&&{pointerType:n}})};return Object.keys(ie).filter(i=>Number.isNaN(Number(i))&&!i.endsWith("_Departed")&&u[i]!==!1).forEach(i=>{let c=Ce(i);const o=p(i);if(window.PointerEvent)switch(ie[i]){case ie.MouseDown:case ie.MouseUp:c=c.replace("mouse","pointer");break;case ie.TouchStart:case ie.TouchEnd:return}m.push(te(c,o,t))}),T(()=>{m.forEach(i=>i())})}function Zi({scrollCb:e,doc:t,mirror:r,blockClass:l,blockSelector:s,sampling:f}){const u=T(Be(T(m=>{const a=qe(m);if(!a||re(a,l,s,!0))return;const p=r.getId(a);if(a===t&&t.defaultView){const i=zi(t.defaultView);e({id:p,x:i.left,y:i.top})}else e({id:p,x:a.scrollLeft,y:a.scrollTop})}),f.scroll||100));return te("scroll",u,t)}function ea({viewportResizeCb:e},{win:t}){let r=-1,l=-1;const s=T(Be(T(()=>{const f=Wi(),u=qi();(r!==f||l!==u)&&(e({width:Number(u),height:Number(f)}),r=f,l=u)}),200));return te("resize",s,t)}const ta=["INPUT","TEXTAREA","SELECT"],hi=new WeakMap;function ra({inputCb:e,doc:t,mirror:r,blockClass:l,blockSelector:s,ignoreClass:f,ignoreSelector:u,maskInputOptions:m,maskInputFn:a,sampling:p,userTriggeredOnInput:i}){function c(w){let S=qe(w);const b=w.isTrusted,g=S&&S.tagName;if(S&&g==="OPTION"&&(S=L.parentElement(S)),!S||!g||ta.indexOf(g)<0||re(S,l,s,!0)||S.classList.contains(f)||u&&S.matches(u))return;let v=S.value,x=!1;const O=it(S)||"";O==="radio"||O==="checkbox"?x=S.checked:(m[g.toLowerCase()]||m[O])&&(v=st({element:S,maskInputOptions:m,tagName:g,type:O,value:v,maskInputFn:a})),o(S,i?{text:v,isChecked:x,userTriggered:b}:{text:v,isChecked:x});const A=S.name;O==="radio"&&A&&x&&t.querySelectorAll(`input[type="radio"][name="${A}"]`).forEach(M=>{if(M!==S){const $=M.value;o(M,i?{text:$,isChecked:!x,userTriggered:!1}:{text:$,isChecked:!x})}})}function o(w,S){const b=hi.get(w);if(!b||b.text!==S.text||b.isChecked!==S.isChecked){hi.set(w,S);const g=r.getId(w);T(e)({...S,id:g})}}const d=(p.input==="last"?["change"]:["input","change"]).map(w=>te(w,T(c),t)),h=t.defaultView;if(!h)return()=>{d.forEach(w=>w())};const y=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),C=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return y&&y.set&&d.push(...C.map(w=>St(w[0],w[1],{set(){T(c)({target:this,isTrusted:!1})}},!1,h))),T(()=>{d.forEach(w=>w())})}function lt(e){const t=[];function r(l,s){if(Xe("CSSGroupingRule")&&l.parentRule instanceof CSSGroupingRule||Xe("CSSMediaRule")&&l.parentRule instanceof CSSMediaRule||Xe("CSSSupportsRule")&&l.parentRule instanceof CSSSupportsRule||Xe("CSSConditionRule")&&l.parentRule instanceof CSSConditionRule){const u=Array.from(l.parentRule.cssRules).indexOf(l);s.unshift(u)}else if(l.parentStyleSheet){const u=Array.from(l.parentStyleSheet.cssRules).indexOf(l);s.unshift(u)}return s}return r(e,t)}function we(e,t,r){let l,s;return e?(e.ownerNode?l=t.getId(e.ownerNode):s=r.getId(e),{styleId:s,id:l}):{}}function sa({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:l}){if(!l.CSSStyleSheet||!l.CSSStyleSheet.prototype)return()=>{};const s=l.CSSStyleSheet.prototype.insertRule;l.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:T((i,c,o)=>{const[n,d]=o,{id:h,styleId:y}=we(c,t,r.styleMirror);return(h&&h!==-1||y&&y!==-1)&&e({id:h,styleId:y,adds:[{rule:n,index:d}]}),ci(()=>i.apply(c,o))()})}),l.CSSStyleSheet.prototype.addRule=function(i,c,o=this.cssRules.length){const n=`${i} { ${c} }`;return l.CSSStyleSheet.prototype.insertRule.apply(this,[n,o])};const f=l.CSSStyleSheet.prototype.deleteRule;l.CSSStyleSheet.prototype.deleteRule=new Proxy(f,{apply:T((i,c,o)=>{const[n]=o,{id:d,styleId:h}=we(c,t,r.styleMirror);return(d&&d!==-1||h&&h!==-1)&&e({id:d,styleId:h,removes:[{index:n}]}),ci(()=>i.apply(c,o))()})}),l.CSSStyleSheet.prototype.removeRule=function(i){return l.CSSStyleSheet.prototype.deleteRule.apply(this,[i])};let u;l.CSSStyleSheet.prototype.replace&&(u=l.CSSStyleSheet.prototype.replace,l.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:T((i,c,o)=>{const[n]=o,{id:d,styleId:h}=we(c,t,r.styleMirror);return(d&&d!==-1||h&&h!==-1)&&e({id:d,styleId:h,replace:n}),i.apply(c,o)})}));let m;l.CSSStyleSheet.prototype.replaceSync&&(m=l.CSSStyleSheet.prototype.replaceSync,l.CSSStyleSheet.prototype.replaceSync=new Proxy(m,{apply:T((i,c,o)=>{const[n]=o,{id:d,styleId:h}=we(c,t,r.styleMirror);return(d&&d!==-1||h&&h!==-1)&&e({id:d,styleId:h,replaceSync:n}),i.apply(c,o)})}));const a={};Ke("CSSGroupingRule")?a.CSSGroupingRule=l.CSSGroupingRule:(Ke("CSSMediaRule")&&(a.CSSMediaRule=l.CSSMediaRule),Ke("CSSConditionRule")&&(a.CSSConditionRule=l.CSSConditionRule),Ke("CSSSupportsRule")&&(a.CSSSupportsRule=l.CSSSupportsRule));const p={};return Object.entries(a).forEach(([i,c])=>{p[i]={insertRule:c.prototype.insertRule,deleteRule:c.prototype.deleteRule},c.prototype.insertRule=new Proxy(p[i].insertRule,{apply:T((o,n,d)=>{const[h,y]=d,{id:C,styleId:w}=we(n.parentStyleSheet,t,r.styleMirror);return(C&&C!==-1||w&&w!==-1)&&e({id:C,styleId:w,adds:[{rule:h,index:[...lt(n),y||0]}]}),o.apply(n,d)})}),c.prototype.deleteRule=new Proxy(p[i].deleteRule,{apply:T((o,n,d)=>{const[h]=d,{id:y,styleId:C}=we(n.parentStyleSheet,t,r.styleMirror);return(y&&y!==-1||C&&C!==-1)&&e({id:y,styleId:C,removes:[{index:[...lt(n),h]}]}),o.apply(n,d)})})}),T(()=>{l.CSSStyleSheet.prototype.insertRule=s,l.CSSStyleSheet.prototype.deleteRule=f,u&&(l.CSSStyleSheet.prototype.replace=u),m&&(l.CSSStyleSheet.prototype.replaceSync=m),Object.entries(a).forEach(([i,c])=>{c.prototype.insertRule=p[i].insertRule,c.prototype.deleteRule=p[i].deleteRule})})}function en({mirror:e,stylesheetManager:t},r){var l,s,f;let u=null;r.nodeName==="#document"?u=e.getId(r):u=e.getId(L.host(r));const m=r.nodeName==="#document"?(l=r.defaultView)==null?void 0:l.Document:(f=(s=r.ownerDocument)==null?void 0:s.defaultView)==null?void 0:f.ShadowRoot,a=m?.prototype?Object.getOwnPropertyDescriptor(m?.prototype,"adoptedStyleSheets"):void 0;return u===null||u===-1||!m||!a?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var p;return(p=a.get)==null?void 0:p.call(this)},set(p){var i;const c=(i=a.set)==null?void 0:i.call(this,p);if(u!==null&&u!==-1)try{t.adoptStyleSheets(p,u)}catch{}return c}}),T(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function ia({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:l},{win:s}){const f=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(f,{apply:T((m,a,p)=>{var i;const[c,o,n]=p;if(r.has(c))return f.apply(a,[c,o,n]);const{id:d,styleId:h}=we((i=a.parentRule)==null?void 0:i.parentStyleSheet,t,l.styleMirror);return(d&&d!==-1||h&&h!==-1)&&e({id:d,styleId:h,set:{property:c,value:o,priority:n},index:lt(a.parentRule)}),m.apply(a,p)})});const u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:T((m,a,p)=>{var i;const[c]=p;if(r.has(c))return u.apply(a,[c]);const{id:o,styleId:n}=we((i=a.parentRule)==null?void 0:i.parentStyleSheet,t,l.styleMirror);return(o&&o!==-1||n&&n!==-1)&&e({id:o,styleId:n,remove:{property:c},index:lt(a.parentRule)}),m.apply(a,p)})}),T(()=>{s.CSSStyleDeclaration.prototype.setProperty=f,s.CSSStyleDeclaration.prototype.removeProperty=u})}function na({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:l,sampling:s,doc:f}){const u=T(a=>Be(T(p=>{const i=qe(p);if(!i||re(i,t,r,!0))return;const{currentTime:c,volume:o,muted:n,playbackRate:d,loop:h}=i;e({type:a,id:l.getId(i),currentTime:c,volume:o,muted:n,playbackRate:d,loop:h})}),s.media||500)),m=[te("play",u(Ae.Play),f),te("pause",u(Ae.Pause),f),te("seeked",u(Ae.Seeked),f),te("volumechange",u(Ae.VolumeChange),f),te("ratechange",u(Ae.RateChange),f)];return T(()=>{m.forEach(a=>a())})}function oa({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const l=[],s=new WeakMap,f=r.FontFace;r.FontFace=function(a,p,i){const c=new f(a,p,i);return s.set(c,{family:a,buffer:typeof p!="string",descriptors:i,fontSource:typeof p=="string"?p:JSON.stringify(Array.from(new Uint8Array(p)))}),c};const u=Le(t.fonts,"add",function(m){return function(a){return setTimeout(T(()=>{const p=s.get(a);p&&(e(p),s.delete(a))}),0),m.apply(this,[a])}});return l.push(()=>{r.FontFace=f}),l.push(u),T(()=>{l.forEach(m=>m())})}function aa(e){const{doc:t,mirror:r,blockClass:l,blockSelector:s,selectionCb:f}=e;let u=!0;const m=T(()=>{const a=t.getSelection();if(!a||u&&a?.isCollapsed)return;u=a.isCollapsed||!1;const p=[],i=a.rangeCount||0;for(let c=0;c<i;c++){const o=a.getRangeAt(c),{startContainer:n,startOffset:d,endContainer:h,endOffset:y}=o;re(n,l,s,!0)||re(h,l,s,!0)||p.push({start:r.getId(n),startOffset:d,end:r.getId(h),endOffset:y})}f({ranges:p})});return m(),te("selectionchange",m)}function la({doc:e,customElementCb:t}){const r=e.defaultView;return!r||!r.customElements?()=>{}:Le(r.customElements,"define",function(s){return function(f,u,m){try{t({define:{name:f}})}catch{console.warn(`Custom element callback failed for ${f}`)}return s.apply(this,[f,u,m])}})}function ua(e,t){const{mutationCb:r,mousemoveCb:l,mouseInteractionCb:s,scrollCb:f,viewportResizeCb:u,inputCb:m,mediaInteractionCb:a,styleSheetRuleCb:p,styleDeclarationCb:i,canvasMutationCb:c,fontCb:o,selectionCb:n,customElementCb:d}=e;e.mutationCb=(...h)=>{t.mutation&&t.mutation(...h),r(...h)},e.mousemoveCb=(...h)=>{t.mousemove&&t.mousemove(...h),l(...h)},e.mouseInteractionCb=(...h)=>{t.mouseInteraction&&t.mouseInteraction(...h),s(...h)},e.scrollCb=(...h)=>{t.scroll&&t.scroll(...h),f(...h)},e.viewportResizeCb=(...h)=>{t.viewportResize&&t.viewportResize(...h),u(...h)},e.inputCb=(...h)=>{t.input&&t.input(...h),m(...h)},e.mediaInteractionCb=(...h)=>{t.mediaInteaction&&t.mediaInteaction(...h),a(...h)},e.styleSheetRuleCb=(...h)=>{t.styleSheetRule&&t.styleSheetRule(...h),p(...h)},e.styleDeclarationCb=(...h)=>{t.styleDeclaration&&t.styleDeclaration(...h),i(...h)},e.canvasMutationCb=(...h)=>{t.canvasMutation&&t.canvasMutation(...h),c(...h)},e.fontCb=(...h)=>{t.font&&t.font(...h),o(...h)},e.selectionCb=(...h)=>{t.selection&&t.selection(...h),n(...h)},e.customElementCb=(...h)=>{t.customElement&&t.customElement(...h),d(...h)}}function ca(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};ua(e,t);let l;e.recordDOM&&(l=Ki(e,e.doc));const s=Ko(e),f=Zo(e),u=Zi(e),m=ea(e,{win:r}),a=ra(e),p=na(e);let i=()=>{},c=()=>{},o=()=>{},n=()=>{};e.recordDOM&&(i=sa(e,{win:r}),c=en(e,e.doc),o=ia(e,{win:r}),e.collectFonts&&(n=oa(e)));const d=aa(e),h=la(e),y=[];for(const C of e.plugins)y.push(C.observer(C.callback,r,C.options));return T(()=>{ve.forEach(C=>C.reset()),l?.disconnect(),s(),f(),u(),m(),a(),p(),i(),c(),o(),n(),d(),h(),y.forEach(C=>C())})}function Xe(e){return typeof window[e]<"u"}function Ke(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class fi{constructor(t){I(this,"iframeIdToRemoteIdMap",new WeakMap),I(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,l,s){const f=l||this.getIdToRemoteIdMap(t),u=s||this.getRemoteIdToIdMap(t);let m=f.get(r);return m||(m=this.generateIdFn(),f.set(r,m),u.set(m,r)),m}getIds(t,r){const l=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return r.map(f=>this.getId(t,f,l,s))}getRemoteId(t,r,l){const s=l||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;const f=s.get(r);return f||-1}getRemoteIds(t,r){const l=this.getRemoteIdToIdMap(t);return r.map(s=>this.getRemoteId(t,s,l))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}}class ha{constructor(t){I(this,"iframes",new WeakMap),I(this,"crossOriginIframeMap",new WeakMap),I(this,"crossOriginIframeMirror",new fi(xi)),I(this,"crossOriginIframeStyleMirror"),I(this,"crossOriginIframeRootIdMap",new WeakMap),I(this,"mirror"),I(this,"mutationCb"),I(this,"wrappedEmit"),I(this,"loadListener"),I(this,"stylesheetManager"),I(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new fi(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var l,s;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((l=t.contentWindow)==null||l.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const f=this.transformCrossOriginEvent(s,r.data.event);f&&this.wrappedEmit(f,r.data.isCheckout)}transformCrossOriginEvent(t,r){var l;switch(r.type){case U.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);const s=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,s),this.patchRootIdOnNode(r.data.node,s),{timestamp:r.timestamp,type:U.IncrementalSnapshot,data:{source:D.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case U.Meta:case U.Load:case U.DomContentLoaded:return!1;case U.Plugin:return r;case U.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case U.IncrementalSnapshot:switch(r.data.source){case D.Mutation:return r.data.adds.forEach(s=>{this.replaceIds(s,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(s.node,t);const f=this.crossOriginIframeRootIdMap.get(t);f&&this.patchRootIdOnNode(s.node,f)}),r.data.removes.forEach(s=>{this.replaceIds(s,t,["parentId","id"])}),r.data.attributes.forEach(s=>{this.replaceIds(s,t,["id"])}),r.data.texts.forEach(s=>{this.replaceIds(s,t,["id"])}),r;case D.Drag:case D.TouchMove:case D.MouseMove:return r.data.positions.forEach(s=>{this.replaceIds(s,t,["id"])}),r;case D.ViewportResize:return!1;case D.MediaInteraction:case D.MouseInteraction:case D.Scroll:case D.CanvasMutation:case D.Input:return this.replaceIds(r.data,t,["id"]),r;case D.StyleSheetRule:case D.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case D.Font:return r;case D.Selection:return r.data.ranges.forEach(s=>{this.replaceIds(s,t,["start","end"])}),r;case D.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(l=r.data.styles)==null||l.forEach(s=>{this.replaceStyleIds(s,t,["styleId"])}),r}}return!1}replace(t,r,l,s){for(const f of s)!Array.isArray(r[f])&&typeof r[f]!="number"||(Array.isArray(r[f])?r[f]=t.getIds(l,r[f]):r[f]=t.getId(l,r[f]));return r}replaceIds(t,r,l){return this.replace(this.crossOriginIframeMirror,t,r,l)}replaceStyleIds(t,r,l){return this.replace(this.crossOriginIframeStyleMirror,t,r,l)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(l=>{this.replaceIdOnNode(l,r)})}patchRootIdOnNode(t,r){t.type!==Qi.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(l=>{this.patchRootIdOnNode(l,r)})}}class fa{constructor(t){I(this,"shadowDoms",new WeakSet),I(this,"mutationCb"),I(this,"scrollCb"),I(this,"bypassOptions"),I(this,"mirror"),I(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!Fe(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const l=Ki({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>l.disconnect()),this.restoreHandlers.push(Zi({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(L.host(t))),this.restoreHandlers.push(en({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){const l=this;this.restoreHandlers.push(Le(t.prototype,"attachShadow",function(s){return function(f){const u=s.call(this,f),m=L.shadowRoot(this);return m&&Yi(this)&&l.addShadowRoot(m,r),u}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var Pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pa=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ze=0;Ze<Pe.length;Ze++)pa[Pe.charCodeAt(Ze)]=Ze;var da=function(e){var t=new Uint8Array(e),r,l=t.length,s="";for(r=0;r<l;r+=3)s+=Pe[t[r]>>2],s+=Pe[(t[r]&3)<<4|t[r+1]>>4],s+=Pe[(t[r+1]&15)<<2|t[r+2]>>6],s+=Pe[t[r+2]&63];return l%3===2?s=s.substring(0,s.length-1)+"=":l%3===1&&(s=s.substring(0,s.length-2)+"=="),s};const pi=new Map;function ma(e,t){let r=pi.get(e);return r||(r=new Map,pi.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}const tn=(e,t,r)=>{if(!e||!(sn(e,t)||typeof e=="object"))return;const l=e.constructor.name,s=ma(r,l);let f=s.indexOf(e);return f===-1&&(f=s.length,s.push(e)),f};function et(e,t,r){if(e instanceof Array)return e.map(l=>et(l,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const l=e.constructor.name,s=da(e);return{rr_type:l,base64:s}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[et(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const l=e.constructor.name,{src:s}=e;return{rr_type:l,src:s}}else if(e instanceof HTMLCanvasElement){const l="HTMLImageElement",s=e.toDataURL();return{rr_type:l,src:s}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[et(e.data,t,r),e.width,e.height]};if(sn(e,t)||typeof e=="object"){const l=e.constructor.name,s=tn(e,t,r);return{rr_type:l,index:s}}}}return e}const rn=(e,t,r)=>e.map(l=>et(l,t,r)),sn=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(s=>typeof t[s]=="function").find(s=>e instanceof t[s]);function ga(e,t,r,l){const s=[],f=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const u of f)try{if(typeof t.CanvasRenderingContext2D.prototype[u]!="function")continue;const m=Le(t.CanvasRenderingContext2D.prototype,u,function(a){return function(...p){return re(this.canvas,r,l,!0)||setTimeout(()=>{const i=rn(p,t,this);e(this.canvas,{type:_e["2D"],property:u,args:i})},0),a.apply(this,p)}});s.push(m)}catch{const m=St(t.CanvasRenderingContext2D.prototype,u,{set(a){e(this.canvas,{type:_e["2D"],property:u,args:[a],setter:!0})}});s.push(m)}return()=>{s.forEach(u=>u())}}function ya(e){return e==="experimental-webgl"?"webgl":e}function di(e,t,r,l){const s=[];try{const f=Le(e.HTMLCanvasElement.prototype,"getContext",function(u){return function(m,...a){if(!re(this,t,r,!0)){const p=ya(m);if("__context"in this||(this.__context=p),l&&["webgl","webgl2"].includes(p))if(a[0]&&typeof a[0]=="object"){const i=a[0];i.preserveDrawingBuffer||(i.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return u.apply(this,[m,...a])}});s.push(f)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(f=>f())}}function mi(e,t,r,l,s,f){const u=[],m=Object.getOwnPropertyNames(e);for(const a of m)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if(typeof e[a]!="function")continue;const p=Le(e,a,function(i){return function(...c){const o=i.apply(this,c);if(tn(o,f,this),"tagName"in this.canvas&&!re(this.canvas,l,s,!0)){const n=rn(c,f,this),d={type:t,property:a,args:n};r(this.canvas,d)}return o}});u.push(p)}catch{const p=St(e,a,{set(i){r(this.canvas,{type:t,property:a,args:[i],setter:!0})}});u.push(p)}return u}function wa(e,t,r,l){const s=[];return s.push(...mi(t.WebGLRenderingContext.prototype,_e.WebGL,e,r,l,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...mi(t.WebGL2RenderingContext.prototype,_e.WebGL2,e,r,l,t)),()=>{s.forEach(f=>f())}}const nn=`(function() {
  "use strict";
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
  for (var i = 0; i < chars.length; i++) {
    lookup[chars.charCodeAt(i)] = i;
  }
  var encode = function(arraybuffer) {
    var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";
    for (i2 = 0; i2 < len; i2 += 3) {
      base64 += chars[bytes[i2] >> 2];
      base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];
      base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];
      base64 += chars[bytes[i2 + 2] & 63];
    }
    if (len % 3 === 2) {
      base64 = base64.substring(0, base64.length - 1) + "=";
    } else if (len % 3 === 1) {
      base64 = base64.substring(0, base64.length - 2) + "==";
    }
    return base64;
  };
  const lastBlobMap = /* @__PURE__ */ new Map();
  const transparentBlobMap = /* @__PURE__ */ new Map();
  async function getTransparentBlobFor(width, height, dataURLOptions) {
    const id = \`\${width}-\${height}\`;
    if ("OffscreenCanvas" in globalThis) {
      if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);
      const offscreen = new OffscreenCanvas(width, height);
      offscreen.getContext("2d");
      const blob = await offscreen.convertToBlob(dataURLOptions);
      const arrayBuffer = await blob.arrayBuffer();
      const base64 = encode(arrayBuffer);
      transparentBlobMap.set(id, base64);
      return base64;
    } else {
      return "";
    }
  }
  const worker = self;
  worker.onmessage = async function(e) {
    if ("OffscreenCanvas" in globalThis) {
      const { id, bitmap, width, height, dataURLOptions } = e.data;
      const transparentBase64 = getTransparentBlobFor(
        width,
        height,
        dataURLOptions
      );
      const offscreen = new OffscreenCanvas(width, height);
      const ctx = offscreen.getContext("2d");
      ctx.drawImage(bitmap, 0, 0);
      bitmap.close();
      const blob = await offscreen.convertToBlob(dataURLOptions);
      const type = blob.type;
      const arrayBuffer = await blob.arrayBuffer();
      const base64 = encode(arrayBuffer);
      if (!lastBlobMap.has(id) && await transparentBase64 === base64) {
        lastBlobMap.set(id, base64);
        return worker.postMessage({ id });
      }
      if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });
      worker.postMessage({
        id,
        type,
        base64,
        width,
        height
      });
      lastBlobMap.set(id, base64);
    } else {
      return worker.postMessage({ id: e.data.id });
    }
  };
})();
//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
`,gi=typeof self<"u"&&self.Blob&&new Blob([nn],{type:"text/javascript;charset=utf-8"});function ba(e){let t;try{if(t=gi&&(self.URL||self.webkitURL).createObjectURL(gi),!t)throw"";const r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(nn),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}class Sa{constructor(t){I(this,"pendingCanvasMutations",new Map),I(this,"rafStamps",{latestId:0,invokeId:null}),I(this,"mirror"),I(this,"mutationCb"),I(this,"resetObservers"),I(this,"frozen",!1),I(this,"locked",!1),I(this,"processMutation",(a,p)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(p)});const{sampling:r="all",win:l,blockClass:s,blockSelector:f,recordCanvas:u,dataURLOptions:m}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,u&&r==="all"&&this.initCanvasMutationObserver(l,s,f),u&&typeof r=="number"&&this.initCanvasFPSObserver(r,l,s,f,{dataURLOptions:m})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,l,s,f){const u=di(r,l,s,!0),m=new Map,a=new ba;a.onmessage=d=>{const{id:h}=d.data;if(m.set(h,!1),!("base64"in d.data))return;const{base64:y,type:C,width:w,height:S}=d.data;this.mutationCb({id:h,type:_e["2D"],commands:[{property:"clearRect",args:[0,0,w,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:y}],type:C}]},0,0]}]})};const p=1e3/t;let i=0,c;const o=()=>{const d=[];return r.document.querySelectorAll("canvas").forEach(h=>{re(h,l,s,!0)||d.push(h)}),d},n=d=>{if(i&&d-i<p){c=requestAnimationFrame(n);return}i=d,o().forEach(async h=>{var y;const C=this.mirror.getId(h);if(m.get(C)||h.width===0||h.height===0)return;if(m.set(C,!0),["webgl","webgl2"].includes(h.__context)){const S=h.getContext(h.__context);((y=S?.getContextAttributes())==null?void 0:y.preserveDrawingBuffer)===!1&&S.clear(S.COLOR_BUFFER_BIT)}const w=await createImageBitmap(h);a.postMessage({id:C,bitmap:w,width:h.width,height:h.height,dataURLOptions:f.dataURLOptions},[w])}),c=requestAnimationFrame(n)};c=requestAnimationFrame(n),this.resetObservers=()=>{u(),cancelAnimationFrame(c)}}initCanvasMutationObserver(t,r,l){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const s=di(t,r,l,!1),f=ga(this.processMutation.bind(this),t,r,l),u=wa(this.processMutation.bind(this),t,r,l);this.resetObservers=()=>{s(),f(),u()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{const l=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,l)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;const l=this.pendingCanvasMutations.get(t);if(!l||r===-1)return;const s=l.map(u=>{const{type:m,...a}=u;return a}),{type:f}=l[0];this.mutationCb({id:r,type:f,commands:s}),this.pendingCanvasMutations.delete(t)}}class va{constructor(t){I(this,"trackedLinkElements",new WeakSet),I(this,"mutationCb"),I(this,"adoptedStyleSheetCb"),I(this,"styleMirror",new qo),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;const l={id:r,styleIds:[]},s=[];for(const f of t){let u;this.styleMirror.has(f)?u=this.styleMirror.getId(f):(u=this.styleMirror.add(f),s.push({styleId:u,rules:Array.from(f.rules||CSSRule,(m,a)=>({rule:Si(m,f.href),index:a}))})),l.styleIds.push(u)}s.length>0&&(l.styles=s),this.adoptedStyleSheetCb(l)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Ca{constructor(){I(this,"nodeMap",new WeakMap),I(this,"active",!1)}inOtherBuffer(t,r){const l=this.nodeMap.get(t);return l&&Array.from(l).some(s=>s!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}}let J,tt,Or,ut=!1;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Jr=e.contentWindow)==null?void 0:Jr.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const ce=In();function Oe(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:l,blockClass:s="rr-block",blockSelector:f=null,ignoreClass:u="rr-ignore",ignoreSelector:m=null,maskTextClass:a="rr-mask",maskTextSelector:p=null,inlineStylesheet:i=!0,maskAllInputs:c,maskInputOptions:o,slimDOMOptions:n,maskInputFn:d,maskTextFn:h,maskAttributeFn:y,hooks:C,packFn:w,sampling:S={},dataURLOptions:b={},mousemoveWait:g,recordDOM:v=!0,recordCanvas:x=!1,recordCrossOriginIframes:O=!1,recordAfter:A=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:$=!1,inlineImages:k=!1,plugins:R,keepIframeSrcFn:Z=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:ee,applyBackgroundColorToBlockedElements:H=!1}=e;Qo(ee);const F=O?window.parent===window:!0;let Q=!1;if(!F)try{window.parent.document&&(Q=!1)}catch{Q=!0}if(F&&!t)throw new Error("emit function is required");if(!F&&!Q)return()=>{};g!==void 0&&S.mousemove===void 0&&(S.mousemove=g),ce.reset();const W=c===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:o!==void 0?o:{password:!0},P=n===!0||n==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:n==="all",headMetaDescKeywords:n==="all",headTitleMutations:n==="all"}:n||{};Wo();let ye,E=0;const pe=_=>{for(const ue of R||[])ue.eventProcessor&&(_=ue.eventProcessor(_));return w&&!Q&&(_=w(_)),_};J=(_,ue)=>{var G;const V=_;if(V.timestamp=at(),(G=ve[0])!=null&&G.isFrozen()&&V.type!==U.FullSnapshot&&!(V.type===U.IncrementalSnapshot&&V.data.source===D.Mutation)&&ve.forEach(me=>me.unfreeze()),F)t?.(pe(V),ue);else if(Q){const me={type:"rrweb",event:pe(V),origin:window.location.origin,isCheckout:ue};window.parent.postMessage(me,"*")}if(V.type===U.FullSnapshot)ye=V,E=0;else if(V.type===U.IncrementalSnapshot){if(V.data.source===D.Mutation&&V.data.isAttachIframe)return;E++;const me=l&&E>=l,B=r&&V.timestamp-ye.timestamp>r;(me||B)&&tt(!0)}};const se=_=>{J({type:U.IncrementalSnapshot,data:{source:D.Mutation,..._}})},Me=_=>J({type:U.IncrementalSnapshot,data:{source:D.Scroll,..._}}),de=_=>J({type:U.IncrementalSnapshot,data:{source:D.CanvasMutation,..._}}),De=_=>J({type:U.IncrementalSnapshot,data:{source:D.AdoptedStyleSheet,..._}}),ae=new va({mutationCb:se,adoptedStyleSheetCb:De}),le=new ha({mirror:ce,mutationCb:se,stylesheetManager:ae,recordCrossOriginIframes:O,wrappedEmit:J});for(const _ of R||[])_.getMirror&&_.getMirror({nodeMirror:ce,crossOriginIframeMirror:le.crossOriginIframeMirror,crossOriginIframeStyleMirror:le.crossOriginIframeStyleMirror});const X=new Ca;Or=new Sa({recordCanvas:x,mutationCb:de,win:window,blockClass:s,blockSelector:f,mirror:ce,sampling:S.canvas,dataURLOptions:b});const ne=new fa({mutationCb:se,scrollCb:Me,bypassOptions:{blockClass:s,blockSelector:f,maskTextClass:a,maskTextSelector:p,inlineStylesheet:i,maskInputOptions:W,dataURLOptions:b,maskTextFn:h,maskInputFn:d,maskAttributeFn:y,recordCanvas:x,inlineImages:k,sampling:S,slimDOMOptions:P,iframeManager:le,stylesheetManager:ae,canvasManager:Or,keepIframeSrcFn:Z,processedNodeManager:X},mirror:ce});tt=(_=!1)=>{if(!v)return;J({type:U.Meta,data:{href:window.location.href,width:qi(),height:Wi()}},_),ae.reset(),ne.init(),ve.forEach(G=>G.lock());const ue=Zn(document,{mirror:ce,blockClass:s,blockSelector:f,maskTextClass:a,maskTextSelector:p,inlineStylesheet:i,maskAllInputs:W,maskTextFn:h,maskInputFn:d,maskAttributeFn:y,slimDOM:P,dataURLOptions:b,recordCanvas:x,inlineImages:k,applyBackgroundColorToBlockedElements:H,onSerialize:G=>{Gi(G,ce)&&le.addIframe(G),Vi(G,ce)&&ae.trackLinkElement(G),Ir(G)&&ne.addShadowRoot(L.shadowRoot(G),document)},onIframeLoad:(G,V)=>{le.attachIframe(G,V),ne.observeAttachShadow(G)},onStylesheetLoad:(G,V)=>{ae.attachLinkElement(G,V)},keepIframeSrcFn:Z});if(!ue)return console.warn("Failed to snapshot the document");J({type:U.FullSnapshot,data:{node:ue,initialOffset:zi(window)}},_),ve.forEach(G=>G.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ae.adoptStyleSheets(document.adoptedStyleSheets,ce.getId(document))};try{const _=[],ue=V=>{var me;return T(ca)({mutationCb:se,mousemoveCb:(B,vt)=>J({type:U.IncrementalSnapshot,data:{source:vt,positions:B}}),mouseInteractionCb:B=>J({type:U.IncrementalSnapshot,data:{source:D.MouseInteraction,...B}}),scrollCb:Me,viewportResizeCb:B=>J({type:U.IncrementalSnapshot,data:{source:D.ViewportResize,...B}}),inputCb:B=>J({type:U.IncrementalSnapshot,data:{source:D.Input,...B}}),mediaInteractionCb:B=>J({type:U.IncrementalSnapshot,data:{source:D.MediaInteraction,...B}}),styleSheetRuleCb:B=>J({type:U.IncrementalSnapshot,data:{source:D.StyleSheetRule,...B}}),styleDeclarationCb:B=>J({type:U.IncrementalSnapshot,data:{source:D.StyleDeclaration,...B}}),canvasMutationCb:de,fontCb:B=>J({type:U.IncrementalSnapshot,data:{source:D.Font,...B}}),selectionCb:B=>{J({type:U.IncrementalSnapshot,data:{source:D.Selection,...B}})},customElementCb:B=>{J({type:U.IncrementalSnapshot,data:{source:D.CustomElement,...B}})},blockClass:s,ignoreClass:u,ignoreSelector:m,maskTextClass:a,maskTextSelector:p,maskInputOptions:W,inlineStylesheet:i,sampling:S,recordDOM:v,recordCanvas:x,inlineImages:k,userTriggeredOnInput:M,collectFonts:$,doc:V,maskInputFn:d,maskTextFn:h,maskAttributeFn:y,keepIframeSrcFn:Z,blockSelector:f,slimDOMOptions:P,dataURLOptions:b,mirror:ce,iframeManager:le,stylesheetManager:ae,shadowDomManager:ne,processedNodeManager:X,canvasManager:Or,ignoreCSSAttributes:N,plugins:((me=R?.filter(B=>B.observer))==null?void 0:me.map(B=>({observer:B.observer,options:B.options,callback:vt=>J({type:U.Plugin,data:{plugin:B.name,payload:vt}})})))||[]},C)};le.addLoadListener(V=>{try{_.push(ue(V.contentDocument))}catch(me){console.warn(me)}});const G=()=>{tt(),_.push(ue(document)),ut=!0};return document.readyState==="interactive"||document.readyState==="complete"?G():(_.push(te("DOMContentLoaded",()=>{J({type:U.DomContentLoaded,data:{}}),A==="DOMContentLoaded"&&G()})),_.push(te("load",()=>{J({type:U.Load,data:{}}),A==="load"&&G()},window))),()=>{_.forEach(V=>V()),X.destroy(),ut=!1,Xo()}}catch(_){console.warn(_)}}Oe.addCustomEvent=(e,t)=>{if(!ut)throw new Error("please add custom event after start recording");J({type:U.Custom,data:{tag:e,payload:t}})};Oe.freezePage=()=>{ve.forEach(e=>e.freeze())};Oe.takeFullSnapshot=e=>{if(!ut)throw new Error("please take full snapshot after start recording");tt(e)};Oe.mirror=ce;var yi;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(yi||(yi={}));const{addCustomEvent:xa}=Oe,{freezePage:Ra}=Oe,{takeFullSnapshot:Oa}=Oe;export{Oe as record};

```

---

## .output/public/_nuxt/MmvQX_eT.js

```js
import{f as m,g as f,p as h,h as b,q as _,c as i,a as s,i as n,t as u,l as v,n as C,r as y,o as c}from"./BMw6m4EL.js";const k={class:"container"},T={style:{"text-align":"center"}},g={key:0,class:"success"},x={class:"stats"},N=m({__name:"burrito",setup(B){const a=f(),o=C(()=>a.user.value),l=h(),r=y(!1),{$amplitude:d}=b();_(()=>{o.value||l.push("/")});const p=async()=>{if(o.value)try{const e=await $fetch("/api/burrito/consider",{method:"POST",body:{username:o.value.username}});e.success&&e.user&&(a.setUser(e.user),r.value=!0,d.track("burrito_considered",{total_considerations:e.user.burritoConsiderations,username:e.user.username}),setTimeout(()=>{r.value=!1},2e3))}catch(e){console.error("Error considering burrito:",e)}};return(e,t)=>(c(),i("div",k,[t[1]||(t[1]=s("h1",null,"Burrito consideration zone",-1)),t[2]||(t[2]=s("p",null,"Take a moment to truly consider the potential of burritos.",-1)),s("div",T,[s("button",{onClick:p,class:"btn-burrito"}," I have considered the burrito potential "),n(r)?(c(),i("p",g," Thank you for your consideration! Count: "+u(n(o)?.burritoConsiderations),1)):v("",!0)]),s("div",x,[t[0]||(t[0]=s("h3",null,"Consideration stats",-1)),s("p",null,"Total considerations: "+u(n(o)?.burritoConsiderations),1)])]))}});export{N as default};

```

---

## .output/public/_nuxt/MzFTpsyS.js

```js
import{_ as a,u as i,o as u,c,a as e,t as r,b as l,w as d,d as p,e as f}from"./BMw6m4EL.js";const m={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},g={class:"max-w-520px text-center z-20"},b=["textContent"],h=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},status:{type:Number,default:404},statusText:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return i({title:`${n.status} - ${n.statusText} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,o)=>{const s=f;return u(),c("div",m,[o[0]||(o[0]=e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),e("div",g,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:r(t.status)},null,8,b),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:r(t.description)},null,8,h),e("div",x,[l(s,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:d(()=>[p(r(t.backHome),1)]),_:1})])])])}}},_=a(y,[["__scopeId","data-v-42b740d7"]]);export{_ as default};

```

---

## .output/public/_nuxt/RzjnwIMW.js

```js
import{s as N,x as A,z as U,A as O}from"./BMw6m4EL.js";var L=function(a,e){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])},L(a,e)};function k(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");L(a,e);function r(){this.constructor=a}a.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var d=function(){return d=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},d.apply(this,arguments)};function y(a){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&a[e],t=0;if(r)return r.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&t>=a.length&&(a=void 0),{value:a&&a[t++],done:!a}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function D(a,e){var r=typeof Symbol=="function"&&a[Symbol.iterator];if(!r)return a;var t=r.call(a),n,o=[],i;try{for(;(e===void 0||e-- >0)&&!(n=t.next()).done;)o.push(n.value)}catch(c){i={error:c}}finally{try{n&&!n.done&&(r=t.return)&&r.call(t)}finally{if(i)throw i.error}}return o}function P(a,e,r){if(arguments.length===2)for(var t=0,n=e.length,o;t<n;t++)(o||!(t in e))&&(o||(o=Array.prototype.slice.call(e,0,t)),o[t]=e[t]);return a.concat(o||Array.prototype.slice.call(e))}var s={IS:"is",IS_NOT:"is not",CONTAINS:"contains",DOES_NOT_CONTAIN:"does not contain",LESS_THAN:"less",LESS_THAN_EQUALS:"less or equal",GREATER_THAN:"greater",GREATER_THAN_EQUALS:"greater or equal",VERSION_LESS_THAN:"version less",VERSION_LESS_THAN_EQUALS:"version less or equal",VERSION_GREATER_THAN:"version greater",VERSION_GREATER_THAN_EQUALS:"version greater or equal",SET_IS:"set is",SET_IS_NOT:"set is not",SET_CONTAINS:"set contains",SET_DOES_NOT_CONTAIN:"set does not contain",SET_CONTAINS_ANY:"set contains any",SET_DOES_NOT_CONTAIN_ANY:"set does not contain any",REGEX_MATCH:"regex match",REGEX_DOES_NOT_MATCH:"regex does not match"},j=function(a){for(var e=[],r=0,t=0;t<a.length;t++){var n=a.charCodeAt(t);n<128?e[r++]=n:n<2048?(e[r++]=n>>6|192,e[r++]=n&63|128):(n&64512)==55296&&t+1<a.length&&(a.charCodeAt(t+1)&64512)==56320?(n=65536+((n&1023)<<10)+(a.charCodeAt(++t)&1023),e[r++]=n>>18|240,e[r++]=n>>12&63|128,e[r++]=n>>6&63|128,e[r++]=n&63|128):(e[r++]=n>>12|224,e[r++]=n>>6&63|128,e[r++]=n&63|128)}return Uint8Array.from(e)},R=-862048943,I=461845907,x=15,M=13,Q=5,B=-430675100,F=function(a,e){e===void 0&&(e=0);for(var r=j(a),t=r.length,n=t>>2,o=e,i=0;i<n;i++){var c=i<<2,v=q(r,c);o=X(v,o)}var f=n<<2,u=0;switch(t-f){case 3:u^=r[f+2]<<16,u^=r[f+1]<<8,u^=r[f],u=Math.imul(u,R),u=m(u,x),u=Math.imul(u,I),o^=u;break;case 2:u^=r[f+1]<<8,u^=r[f],u=Math.imul(u,R),u=m(u,x),u=Math.imul(u,I),o^=u;break;case 1:u^=r[f],u=Math.imul(u,R),u=m(u,x),u=Math.imul(u,I),o^=u;break}return o^=t,Y(o)>>>0},X=function(a,e){var r=a,t=e;return r=Math.imul(r,R),r=m(r,x),r=Math.imul(r,I),t^=r,t=m(t,M),t=Math.imul(t,Q),t+B|0},Y=function(a){var e=a;return e^=e>>>16,e=Math.imul(e,-2048144789),e^=e>>>13,e=Math.imul(e,-1028477387),e^=e>>>16,e},m=function(a,e,r){r===void 0&&(r=32),e>r&&(e=e%r);var t=4294967295<<r-e>>>0,n=(a&t)>>>0>>>r-e>>>0;return(a<<e|n)>>>0},q=function(a,e){e===void 0&&(e=0);var r=a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3];return z(r)},z=function(a){return(a&-16777216)>>>24|(a&16711680)>>>8|(a&65280)<<8|(a&255)<<24},H=function(a,e){var r,t;if(!(!e||e.length===0)){try{for(var n=y(e),o=n.next();!o.done;o=n.next()){var i=o.value;if(!i||!a||typeof a!="object")return;a=a[i]}}catch(c){r={error:c}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(r)throw r.error}}if(a)return a}},J="(\\d+)\\.(\\d+)",K="(\\d+)",$="(-(([-\\w]+\\.?)*))?",W="^".concat(J,"(\\.").concat(K).concat($,")?$"),Z=(function(){function a(e,r,t,n){n===void 0&&(n=void 0),this.major=e,this.minor=r,this.patch=t,this.preRelease=n}return a.parse=function(e){if(e){var r=new RegExp(W).exec(e);if(r){var t=Number(r[1]),n=Number(r[2]);if(!(isNaN(t)||isNaN(n))){var o=Number(r[4])||0,i=r[5]||void 0;return new a(t,n,o,i)}}}},a.prototype.compareTo=function(e){return this.major>e.major?1:this.major<e.major?-1:this.minor>e.minor?1:this.minor<e.minor?-1:this.patch>e.patch?1:this.patch<e.patch||this.preRelease&&!e.preRelease?-1:!this.preRelease&&e.preRelease?1:this.preRelease&&e.preRelease?this.preRelease>e.preRelease?1:this.preRelease<e.preRelease?-1:0:0},a})(),V=(function(){function a(){}return a.prototype.evaluate=function(e,r){var t,n,o={},i={context:e,result:o};try{for(var c=y(r),v=c.next();!v.done;v=c.next()){var f=v.value,u=this.evaluateFlag(i,f);u&&(o[f.key]=u)}}catch(S){t={error:S}}finally{try{v&&!v.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return o},a.prototype.evaluateFlag=function(e,r){var t,n,o;try{for(var i=y(r.segments),c=i.next();!c.done;c=i.next()){var v=c.value;if(o=this.evaluateSegment(e,r,v),o){var f=d(d(d({},r.metadata),v.metadata),o.metadata);o=d(d({},o),{metadata:f});break}}}catch(u){t={error:u}}finally{try{c&&!c.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o},a.prototype.evaluateSegment=function(e,r,t){var n,o,i,c;if(!t.conditions){var v=this.bucket(e,t);return v!==void 0?r.variants[v]:void 0}try{for(var f=y(t.conditions),u=f.next();!u.done;u=f.next()){var S=u.value,h=!0;try{for(var E=(i=void 0,y(S)),T=E.next();!T.done;T=E.next()){var l=T.value;if(h=this.matchCondition(e,l),!h)break}}catch(p){i={error:p}}finally{try{T&&!T.done&&(c=E.return)&&c.call(E)}finally{if(i)throw i.error}}if(h){var v=this.bucket(e,t);return v!==void 0?r.variants[v]:void 0}}}catch(p){n={error:p}}finally{try{u&&!u.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}},a.prototype.matchCondition=function(e,r){var t=H(e,r.selector);if(t)if(this.isSetOperator(r.op)){var n=this.coerceStringArray(t);return n?this.matchSet(n,r.op,r.values):!1}else{var o=this.coerceString(t);return o!==void 0?this.matchString(o,r.op,r.values):!1}else return this.matchNull(r.op,r.values)},a.prototype.getHash=function(e){return F(e)},a.prototype.bucket=function(e,r){var t,n,o,i;if(!r.bucket)return r.variant;var c=this.coerceString(H(e,r.bucket.selector));if(!c||c.length===0)return r.variant;var v="".concat(r.bucket.salt,"/").concat(c),f=this.getHash(v),u=f%100,S=Math.floor(f/100);try{for(var h=y(r.bucket.allocations),E=h.next();!E.done;E=h.next()){var T=E.value,l=T.range[0],p=T.range[1];if(u>=l&&u<p)try{for(var g=(o=void 0,y(T.distributions)),_=g.next();!_.done;_=g.next()){var C=_.value,b=C.range[0],G=C.range[1];if(S>=b&&S<G)return C.variant}}catch(w){o={error:w}}finally{try{_&&!_.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}}}catch(w){t={error:w}}finally{try{E&&!E.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}return r.variant},a.prototype.matchNull=function(e,r){var t=this.containsNone(r);switch(e){case s.IS:case s.CONTAINS:case s.LESS_THAN:case s.LESS_THAN_EQUALS:case s.GREATER_THAN:case s.GREATER_THAN_EQUALS:case s.VERSION_LESS_THAN:case s.VERSION_LESS_THAN_EQUALS:case s.VERSION_GREATER_THAN:case s.VERSION_GREATER_THAN_EQUALS:case s.SET_IS:case s.SET_CONTAINS:case s.SET_CONTAINS_ANY:return t;case s.IS_NOT:case s.DOES_NOT_CONTAIN:case s.SET_DOES_NOT_CONTAIN:case s.SET_DOES_NOT_CONTAIN_ANY:return!t;default:return!1}},a.prototype.matchSet=function(e,r,t){switch(r){case s.SET_IS:return this.setEquals(e,t);case s.SET_IS_NOT:return!this.setEquals(e,t);case s.SET_CONTAINS:return this.matchesSetContainsAll(e,t);case s.SET_DOES_NOT_CONTAIN:return!this.matchesSetContainsAll(e,t);case s.SET_CONTAINS_ANY:return this.matchesSetContainsAny(e,t);case s.SET_DOES_NOT_CONTAIN_ANY:return!this.matchesSetContainsAny(e,t);default:return!1}},a.prototype.matchString=function(e,r,t){var n=this;switch(r){case s.IS:return this.matchesIs(e,t);case s.IS_NOT:return!this.matchesIs(e,t);case s.CONTAINS:return this.matchesContains(e,t);case s.DOES_NOT_CONTAIN:return!this.matchesContains(e,t);case s.LESS_THAN:case s.LESS_THAN_EQUALS:case s.GREATER_THAN:case s.GREATER_THAN_EQUALS:return this.matchesComparable(e,r,t,function(o){return n.parseNumber(o)},this.comparator);case s.VERSION_LESS_THAN:case s.VERSION_LESS_THAN_EQUALS:case s.VERSION_GREATER_THAN:case s.VERSION_GREATER_THAN_EQUALS:return this.matchesComparable(e,r,t,function(o){return Z.parse(o)},this.versionComparator);case s.REGEX_MATCH:return this.matchesRegex(e,t);case s.REGEX_DOES_NOT_MATCH:return!this.matchesRegex(e,t);default:return!1}},a.prototype.matchesIs=function(e,r){if(this.containsBooleans(r)){var t=e.toLowerCase();if(t==="true"||t==="false")return r.some(function(n){return n.toLowerCase()===t})}return r.some(function(n){return e===n})},a.prototype.matchesContains=function(e,r){var t,n;try{for(var o=y(r),i=o.next();!i.done;i=o.next()){var c=i.value;if(e.toLowerCase().includes(c.toLowerCase()))return!0}}catch(v){t={error:v}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!1},a.prototype.matchesComparable=function(e,r,t,n,o){var i=this,c=n(e),v=t.map(function(f){return n(f)}).filter(function(f){return f!==void 0});return c===void 0||v.length===0?t.some(function(f){return i.comparator(e,r,f)}):v.some(function(f){return o(c,r,f)})},a.prototype.comparator=function(e,r,t){switch(r){case s.LESS_THAN:case s.VERSION_LESS_THAN:return e<t;case s.LESS_THAN_EQUALS:case s.VERSION_LESS_THAN_EQUALS:return e<=t;case s.GREATER_THAN:case s.VERSION_GREATER_THAN:return e>t;case s.GREATER_THAN_EQUALS:case s.VERSION_GREATER_THAN_EQUALS:return e>=t;default:return!1}},a.prototype.versionComparator=function(e,r,t){var n=e.compareTo(t);switch(r){case s.LESS_THAN:case s.VERSION_LESS_THAN:return n<0;case s.LESS_THAN_EQUALS:case s.VERSION_LESS_THAN_EQUALS:return n<=0;case s.GREATER_THAN:case s.VERSION_GREATER_THAN:return n>0;case s.GREATER_THAN_EQUALS:case s.VERSION_GREATER_THAN_EQUALS:return n>=0;default:return!1}},a.prototype.matchesRegex=function(e,r){return r.some(function(t){return!!new RegExp(t).exec(e)})},a.prototype.containsNone=function(e){return e.some(function(r){return r==="(none)"})},a.prototype.containsBooleans=function(e){return e.some(function(r){switch(r.toLowerCase()){case"true":case"false":return!0;default:return!1}})},a.prototype.parseNumber=function(e){var r;return(r=Number(e))!==null&&r!==void 0?r:void 0},a.prototype.coerceString=function(e){if(e)return typeof e=="object"?JSON.stringify(e):String(e)},a.prototype.coerceStringArray=function(e){var r=this;if(Array.isArray(e)){var t=e;return t.map(function(i){return r.coerceString(i)}).filter(Boolean)}var n=String(e);try{var o=JSON.parse(n);if(Array.isArray(o)){var t=e;return t.map(function(c){return r.coerceString(c)}).filter(Boolean)}else return}catch{return}},a.prototype.isSetOperator=function(e){switch(e){case s.SET_IS:case s.SET_IS_NOT:case s.SET_CONTAINS:case s.SET_DOES_NOT_CONTAIN:case s.SET_CONTAINS_ANY:case s.SET_DOES_NOT_CONTAIN_ANY:return!0;default:return!1}},a.prototype.setEquals=function(e,r){var t=new Set(e),n=new Set(r);return t.size===n.size&&P([],D(n),!1).every(function(o){return t.has(o)})},a.prototype.matchesSetContainsAll=function(e,r){var t,n;if(e.length<r.length)return!1;try{for(var o=y(r),i=o.next();!i.done;i=o.next()){var c=i.value;if(!this.matchesIs(c,e))return!1}}catch(v){t={error:v}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!0},a.prototype.matchesSetContainsAny=function(e,r){var t,n;try{for(var o=y(r),i=o.next();!i.done;i=o.next()){var c=i.value;if(this.matchesIs(c,e))return!0}}catch(v){t={error:v}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!1},a})();typeof TextDecoder=="function"&&new TextDecoder;typeof TextEncoder=="function"&&new TextEncoder;const ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",re=Array.prototype.slice.call(ee);(a=>{let e={};return a.forEach((r,t)=>e[r]=t),e})(re);String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);(function(a){k(e,a);function e(r,t){var n=a.call(this,t)||this;return n.statusCode=r,Object.setPrototypeOf(n,e.prototype),n}return e})(Error);var te=1e3*60*60*24*2,ne=(function(){function a(){var e=this;this.dbs={},this.createStore=function(r){return N(e,void 0,void 0,function(){return A(this,function(t){switch(t.label){case 0:return[4,U(r,1,{upgrade:function(n){n.objectStoreNames.contains("eventTypesForSession")||n.createObjectStore("eventTypesForSession",{keyPath:"sessionId"})}})];case 1:return[2,t.sent()]}})})},this.openOrCreateDB=function(r){return N(e,void 0,void 0,function(){var t,n;return A(this,function(o){switch(o.label){case 0:return this.dbs&&this.dbs[r]?[2,this.dbs[r]]:(t="".concat(r.substring(0,10),"_amp_targeting"),[4,this.createStore(t)]);case 1:return n=o.sent(),this.dbs[r]=n,[2,n]}})})},this.updateEventListForSession=function(r){var t=r.sessionId,n=r.eventType,o=r.eventTime,i=r.loggerProvider,c=r.tx;return N(e,void 0,void 0,function(){var v,f,u,S,h,E,T;return A(this,function(l){switch(l.label){case 0:return l.trys.push([0,3,,4]),[4,c.store.get(t)];case 1:return v=l.sent(),f=v?v.eventTypes:{},u=f[n]||{},S=O(O({},f),(E={},E[n]=O(O({},u),(T={},T[o]={event_type:n},T)),E)),[4,c.store.put({sessionId:t,eventTypes:S})];case 2:return l.sent(),[2,S];case 3:return h=l.sent(),i.warn("Failed to store events for targeting ".concat(t,": ").concat(h)),[3,4];case 4:return[2,void 0]}})})},this.deleteOldSessionEventTypes=function(r){var t=r.currentSessionId,n=r.loggerProvider,o=r.tx;return N(e,void 0,void 0,function(){var i,c,v,f,u;return A(this,function(S){switch(S.label){case 0:return S.trys.push([0,6,,7]),[4,o.store.getAll()];case 1:i=S.sent(),c=0,S.label=2;case 2:return c<i.length?(v=i[c],f=Date.now()-v.sessionId,v.sessionId!==t&&f>te?[4,o.store.delete(v.sessionId)]:[3,4]):[3,5];case 3:S.sent(),S.label=4;case 4:return c++,[3,2];case 5:return[3,7];case 6:return u=S.sent(),n.warn("Failed to clear old session events for targeting: ".concat(u)),[3,7];case 7:return[2]}})})},this.storeEventTypeForSession=function(r){var t=r.loggerProvider,n=r.sessionId,o=r.eventType,i=r.eventTime,c=r.apiKey;return N(e,void 0,void 0,function(){var v,f,u,S;return A(this,function(h){switch(h.label){case 0:return h.trys.push([0,5,,6]),[4,this.openOrCreateDB(c)];case 1:return v=h.sent(),f=v.transaction("eventTypesForSession","readwrite"),f?[4,this.updateEventListForSession({sessionId:n,tx:f,loggerProvider:t,eventType:o,eventTime:i})]:[2];case 2:return u=h.sent(),[4,this.deleteOldSessionEventTypes({currentSessionId:n,tx:f,loggerProvider:t})];case 3:return h.sent(),[4,f.done];case 4:return h.sent(),[2,u];case 5:return S=h.sent(),t.warn("Failed to store events for targeting ".concat(n,": ").concat(S)),[3,6];case 6:return[2,void 0]}})})}}return a})(),ae=new ne,oe=(function(){function a(){var e=this;this.evaluateTargeting=function(r){var t=r.apiKey,n=r.loggerProvider,o=r.event,i=r.sessionId,c=r.userProperties,v=r.deviceId,f=r.flag;return N(e,void 0,void 0,function(){var u,S,h,E,T;return A(this,function(l){switch(l.label){case 0:return o&&o.time?[4,ae.storeEventTypeForSession({loggerProvider:n,apiKey:t,sessionId:i,eventType:o.event_type,eventTime:o.time})]:[3,2];case 1:return S=l.sent(),[3,3];case 2:S=void 0,l.label=3;case 3:return u=S,h=u&&new Set(Object.keys(u)),E={session_id:i,event:o,event_types:h&&Array.from(h),user:{device_id:v,user_properties:c}},T=this.evaluationEngine.evaluate(E,[f]),[2,T]}})})},this.evaluationEngine=new V}return a})(),ie=function(){var a=new oe;return{evaluateTargeting:a.evaluateTargeting.bind(a)}};const se=ie();var ce=se.evaluateTargeting;export{ce as evaluateTargeting};

```

---

## .output/public/_nuxt/sPdhR0i8.js

```js
var me={},ki=Object.defineProperty,qi=(e,o,p)=>o in e?ki(e,o,{enumerable:!0,configurable:!0,writable:!0,value:p}):e[o]=p,le=(e,o,p)=>qi(e,typeof o!="symbol"?o+"":o,p),Fi=Object.defineProperty,Bi=(e,o,p)=>o in e?Fi(e,o,{enumerable:!0,configurable:!0,writable:!0,value:p}):e[o]=p,_e=(e,o,p)=>Bi(e,typeof o!="symbol"?o+"":o,p),tr,zi=Object.defineProperty,ji=(e,o,p)=>o in e?zi(e,o,{enumerable:!0,configurable:!0,writable:!0,value:p}):e[o]=p,rr=(e,o,p)=>ji(e,typeof o!="symbol"?o+"":o,p);const ir={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},sr={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ae={};function Wi(e){var o,p;const d=(p=(o=globalThis?.Zone)==null?void 0:o.__symbol__)==null?void 0:p.call(o,e);if(d&&globalThis[d])return globalThis[d]}function kt(e){if(ae[e])return ae[e];const o=Wi(e)||globalThis[e],p=o.prototype,d=e in ir?ir[e]:void 0,s=!!(d&&d.every(m=>{var n,h;return!!((h=(n=Object.getOwnPropertyDescriptor(p,m))==null?void 0:n.get)!=null&&h.toString().includes("[native code]"))})),f=e in sr?sr[e]:void 0,a=!!(f&&f.every(m=>{var n;return typeof p[m]=="function"&&((n=p[m])==null?void 0:n.toString().includes("[native code]"))}));if(s&&a)return ae[e]=o.prototype,o.prototype;try{const m=document.createElement("iframe");document.body.appendChild(m);const n=m.contentWindow;if(!n)return o.prototype;const h=n[e].prototype;return document.body.removeChild(m),h?ae[e]=h:p}catch{return p}}const Ie={};function W(e,o,p){var d;const s=`${e}.${String(p)}`;if(Ie[s])return Ie[s].call(o);const f=kt(e),a=(d=Object.getOwnPropertyDescriptor(f,p))==null?void 0:d.get;return a?(Ie[s]=a,a.call(o)):o[p]}const Le={};function pi(e,o,p){const d=`${e}.${String(p)}`;if(Le[d])return Le[d].bind(o);const f=kt(e)[p];return typeof f!="function"?o[p]:(Le[d]=f,f.bind(o))}function Hi(e){return W("Node",e,"childNodes")}function Gi(e){return W("Node",e,"parentNode")}function Ji(e){return W("Node",e,"parentElement")}function Vi(e){return W("Node",e,"textContent")}function Ki(e,o){return pi("Node",e,"contains")(o)}function Qi(e){return pi("Node",e,"getRootNode")()}function Yi(e){return!e||!("host"in e)?null:W("ShadowRoot",e,"host")}function Xi(e){return e.styleSheets}function Zi(e){return!e||!("shadowRoot"in e)?null:W("Element",e,"shadowRoot")}function es(e,o){return W("Element",e,"querySelector")(o)}function ts(e,o){return W("Element",e,"querySelectorAll")(o)}function rs(){return kt("MutationObserver").constructor}const ge={childNodes:Hi,parentNode:Gi,parentElement:Ji,textContent:Vi,contains:Ki,getRootNode:Qi,host:Yi,styleSheets:Xi,shadowRoot:Zi,querySelector:es,querySelectorAll:ts,mutationObserver:rs};function is(e){const o=e&&"host"in e&&"mode"in e&&ge.host(e)||null;return!!(o&&"shadowRoot"in o&&ge.shadowRoot(o)===e)}class ss{constructor(){rr(this,"idNodeMap",new Map),rr(this,"nodeMetaMap",new WeakMap)}getId(o){var p;return o?((p=this.getMeta(o))==null?void 0:p.id)??-1:-1}getNode(o){return this.idNodeMap.get(o)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(o){return this.nodeMetaMap.get(o)||null}removeNodeFromMap(o){const p=this.getId(o);this.idNodeMap.delete(p),o.childNodes&&o.childNodes.forEach(d=>this.removeNodeFromMap(d))}has(o){return this.idNodeMap.has(o)}hasNode(o){return this.nodeMetaMap.has(o)}add(o,p){const d=p.id;this.idNodeMap.set(d,o),this.nodeMetaMap.set(o,p)}replace(o,p){const d=this.getNode(o);if(d){const s=this.nodeMetaMap.get(d);s&&this.nodeMetaMap.set(p,s)}this.idNodeMap.set(o,p)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ns(){return new ss}const os=-2;function Tt(e,o,p){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return p?Tt(ge.parentNode(e),o,p):!1;for(let d=e.classList.length;d--;){const s=e.classList[d];if(o.test(s))return!0}return p?Tt(ge.parentNode(e),o,p):!1}function ls(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function as(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var o=e.default;if(typeof o=="function"){var p=function d(){return this instanceof d?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};p.prototype=o.prototype}else p={};return Object.defineProperty(p,"__esModule",{value:!0}),Object.keys(e).forEach(function(d){var s=Object.getOwnPropertyDescriptor(e,d);Object.defineProperty(p,d,s.get?s:{enumerable:!0,get:function(){return e[d]}})}),p}var ue={exports:{}},nr;function us(){if(nr)return ue.exports;nr=1;var e=String,o=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return ue.exports=o(),ue.exports.createColors=o,ue.exports}const fs={},hs=Object.freeze(Object.defineProperty({__proto__:null,default:fs},Symbol.toStringTag,{value:"Module"})),F=as(hs);var $e,or;function qt(){if(or)return $e;or=1;let e=us(),o=F;class p extends Error{constructor(s,f,a,m,n,h){super(s),this.name="CssSyntaxError",this.reason=s,n&&(this.file=n),m&&(this.source=m),h&&(this.plugin=h),typeof f<"u"&&typeof a<"u"&&(typeof f=="number"?(this.line=f,this.column=a):(this.line=f.line,this.column=f.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,p)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let f=this.source;s==null&&(s=e.isColorSupported),o&&s&&(f=o(f));let a=f.split(/\r?\n/),m=Math.max(this.line-3,0),n=Math.min(this.line+2,a.length),h=String(n).length,t,l;if(s){let{bold:i,gray:r,red:c}=e.createColors(!0);t=u=>i(c(u)),l=u=>r(u)}else t=l=i=>i;return a.slice(m,n).map((i,r)=>{let c=m+1+r,u=" "+(" "+c).slice(-h)+" | ";if(c===this.line){let g=l(u.replace(/\d/g," "))+i.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+l(u)+i+`
 `+g+t("^")}return" "+l(u)+i}).join(`
`)}toString(){let s=this.showSourceCode();return s&&(s=`

`+s+`
`),this.name+": "+this.message+s}}return $e=p,p.default=p,$e}var fe={},lr;function Ft(){return lr||(lr=1,fe.isClean=Symbol("isClean"),fe.my=Symbol("my")),fe}var Te,ar;function di(){if(ar)return Te;ar=1;const e={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function o(d){return d[0].toUpperCase()+d.slice(1)}class p{constructor(s){this.builder=s}atrule(s,f){let a="@"+s.name,m=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?a+=s.raws.afterName:m&&(a+=" "),s.nodes)this.block(s,a+m);else{let n=(s.raws.between||"")+(f?";":"");this.builder(a+m+n,s)}}beforeAfter(s,f){let a;s.type==="decl"?a=this.raw(s,null,"beforeDecl"):s.type==="comment"?a=this.raw(s,null,"beforeComment"):f==="before"?a=this.raw(s,null,"beforeRule"):a=this.raw(s,null,"beforeClose");let m=s.parent,n=0;for(;m&&m.type!=="root";)n+=1,m=m.parent;if(a.includes(`
`)){let h=this.raw(s,null,"indent");if(h.length)for(let t=0;t<n;t++)a+=h}return a}block(s,f){let a=this.raw(s,"between","beforeOpen");this.builder(f+a+"{",s,"start");let m;s.nodes&&s.nodes.length?(this.body(s),m=this.raw(s,"after")):m=this.raw(s,"after","emptyBody"),m&&this.builder(m),this.builder("}",s,"end")}body(s){let f=s.nodes.length-1;for(;f>0&&s.nodes[f].type==="comment";)f-=1;let a=this.raw(s,"semicolon");for(let m=0;m<s.nodes.length;m++){let n=s.nodes[m],h=this.raw(n,"before");h&&this.builder(h),this.stringify(n,f!==m||a)}}comment(s){let f=this.raw(s,"left","commentLeft"),a=this.raw(s,"right","commentRight");this.builder("/*"+f+s.text+a+"*/",s)}decl(s,f){let a=this.raw(s,"between","colon"),m=s.prop+a+this.rawValue(s,"value");s.important&&(m+=s.raws.important||" !important"),f&&(m+=";"),this.builder(m,s)}document(s){this.body(s)}raw(s,f,a){let m;if(a||(a=f),f&&(m=s.raws[f],typeof m<"u"))return m;let n=s.parent;if(a==="before"&&(!n||n.type==="root"&&n.first===s||n&&n.type==="document"))return"";if(!n)return e[a];let h=s.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[a]<"u")return h.rawCache[a];if(a==="before"||a==="after")return this.beforeAfter(s,a);{let t="raw"+o(a);this[t]?m=this[t](h,s):h.walk(l=>{if(m=l.raws[f],typeof m<"u")return!1})}return typeof m>"u"&&(m=e[a]),h.rawCache[a]=m,m}rawBeforeClose(s){let f;return s.walk(a=>{if(a.nodes&&a.nodes.length>0&&typeof a.raws.after<"u")return f=a.raws.after,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawBeforeComment(s,f){let a;return s.walkComments(m=>{if(typeof m.raws.before<"u")return a=m.raws.before,a.includes(`
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(f,null,"beforeDecl"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeDecl(s,f){let a;return s.walkDecls(m=>{if(typeof m.raws.before<"u")return a=m.raws.before,a.includes(`
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(f,null,"beforeRule"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeOpen(s){let f;return s.walk(a=>{if(a.type!=="decl"&&(f=a.raws.between,typeof f<"u"))return!1}),f}rawBeforeRule(s){let f;return s.walk(a=>{if(a.nodes&&(a.parent!==s||s.first!==a)&&typeof a.raws.before<"u")return f=a.raws.before,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawColon(s){let f;return s.walkDecls(a=>{if(typeof a.raws.between<"u")return f=a.raws.between.replace(/[^\s:]/g,""),!1}),f}rawEmptyBody(s){let f;return s.walk(a=>{if(a.nodes&&a.nodes.length===0&&(f=a.raws.after,typeof f<"u"))return!1}),f}rawIndent(s){if(s.raws.indent)return s.raws.indent;let f;return s.walk(a=>{let m=a.parent;if(m&&m!==s&&m.parent&&m.parent===s&&typeof a.raws.before<"u"){let n=a.raws.before.split(`
`);return f=n[n.length-1],f=f.replace(/\S/g,""),!1}}),f}rawSemicolon(s){let f;return s.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(f=a.raws.semicolon,typeof f<"u"))return!1}),f}rawValue(s,f){let a=s[f],m=s.raws[f];return m&&m.value===a?m.raw:a}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,f){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,f)}}return Te=p,p.default=p,Te}var Ue,ur;function ye(){if(ur)return Ue;ur=1;let e=di();function o(p,d){new e(d).stringify(p)}return Ue=o,o.default=o,Ue}var De,fr;function we(){if(fr)return De;fr=1;let{isClean:e,my:o}=Ft(),p=qt(),d=di(),s=ye();function f(m,n){let h=new m.constructor;for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t)||t==="proxyCache")continue;let l=m[t],i=typeof l;t==="parent"&&i==="object"?n&&(h[t]=n):t==="source"?h[t]=l:Array.isArray(l)?h[t]=l.map(r=>f(r,h)):(i==="object"&&l!==null&&(l=f(l)),h[t]=l)}return h}class a{constructor(n={}){this.raws={},this[e]=!1,this[o]=!0;for(let h in n)if(h==="nodes"){this.nodes=[];for(let t of n[h])typeof t.clone=="function"?this.append(t.clone()):this.append(t)}else this[h]=n[h]}addToError(n){if(n.postcssNode=this,n.stack&&this.source&&/\n\s{4}at /.test(n.stack)){let h=this.source;n.stack=n.stack.replace(/\n\s{4}at /,`$&${h.input.from}:${h.start.line}:${h.start.column}$&`)}return n}after(n){return this.parent.insertAfter(this,n),this}assign(n={}){for(let h in n)this[h]=n[h];return this}before(n){return this.parent.insertBefore(this,n),this}cleanRaws(n){delete this.raws.before,delete this.raws.after,n||delete this.raws.between}clone(n={}){let h=f(this);for(let t in n)h[t]=n[t];return h}cloneAfter(n={}){let h=this.clone(n);return this.parent.insertAfter(this,h),h}cloneBefore(n={}){let h=this.clone(n);return this.parent.insertBefore(this,h),h}error(n,h={}){if(this.source){let{end:t,start:l}=this.rangeBy(h);return this.source.input.error(n,{column:l.column,line:l.line},{column:t.column,line:t.line},h)}return new p(n)}getProxyProcessor(){return{get(n,h){return h==="proxyOf"?n:h==="root"?()=>n.root().toProxy():n[h]},set(n,h,t){return n[h]===t||(n[h]=t,(h==="prop"||h==="value"||h==="name"||h==="params"||h==="important"||h==="text")&&n.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let n=this;for(;n=n.parent;)n[e]=!1}}next(){if(!this.parent)return;let n=this.parent.index(this);return this.parent.nodes[n+1]}positionBy(n,h){let t=this.source.start;if(n.index)t=this.positionInside(n.index,h);else if(n.word){h=this.toString();let l=h.indexOf(n.word);l!==-1&&(t=this.positionInside(l,h))}return t}positionInside(n,h){let t=h||this.toString(),l=this.source.start.column,i=this.source.start.line;for(let r=0;r<n;r++)t[r]===`
`?(l=1,i+=1):l+=1;return{column:l,line:i}}prev(){if(!this.parent)return;let n=this.parent.index(this);return this.parent.nodes[n-1]}rangeBy(n){let h={column:this.source.start.column,line:this.source.start.line},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:h.column+1,line:h.line};if(n.word){let l=this.toString(),i=l.indexOf(n.word);i!==-1&&(h=this.positionInside(i,l),t=this.positionInside(i+n.word.length,l))}else n.start?h={column:n.start.column,line:n.start.line}:n.index&&(h=this.positionInside(n.index)),n.end?t={column:n.end.column,line:n.end.line}:typeof n.endIndex=="number"?t=this.positionInside(n.endIndex):n.index&&(t=this.positionInside(n.index+1));return(t.line<h.line||t.line===h.line&&t.column<=h.column)&&(t={column:h.column+1,line:h.line}),{end:t,start:h}}raw(n,h){return new d().raw(this,n,h)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...n){if(this.parent){let h=this,t=!1;for(let l of n)l===this?t=!0:t?(this.parent.insertAfter(h,l),h=l):this.parent.insertBefore(h,l);t||this.remove()}return this}root(){let n=this;for(;n.parent&&n.parent.type!=="document";)n=n.parent;return n}toJSON(n,h){let t={},l=h==null;h=h||new Map;let i=0;for(let r in this){if(!Object.prototype.hasOwnProperty.call(this,r)||r==="parent"||r==="proxyCache")continue;let c=this[r];if(Array.isArray(c))t[r]=c.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,h):u);else if(typeof c=="object"&&c.toJSON)t[r]=c.toJSON(null,h);else if(r==="source"){let u=h.get(c.input);u==null&&(u=i,h.set(c.input,i),i++),t[r]={end:c.end,inputId:u,start:c.start}}else t[r]=c}return l&&(t.inputs=[...h.keys()].map(r=>r.toJSON())),t}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(n=s){n.stringify&&(n=n.stringify);let h="";return n(this,t=>{h+=t}),h}warn(n,h,t){let l={node:this};for(let i in t)l[i]=t[i];return n.warn(h,l)}get proxyOf(){return this}}return De=a,a.default=a,De}var ke,hr;function be(){if(hr)return ke;hr=1;let e=we();class o extends e{constructor(d){d&&typeof d.value<"u"&&typeof d.value!="string"&&(d={...d,value:String(d.value)}),super(d),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return ke=o,o.default=o,ke}var qe,cr;function cs(){if(cr)return qe;cr=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return qe={nanoid:(d=21)=>{let s="",f=d;for(;f--;)s+=e[Math.random()*64|0];return s},customAlphabet:(d,s=21)=>(f=s)=>{let a="",m=f;for(;m--;)a+=d[Math.random()*d.length|0];return a}},qe}var Fe,pr;function mi(){if(pr)return Fe;pr=1;let{SourceMapConsumer:e,SourceMapGenerator:o}=F,{existsSync:p,readFileSync:d}=F,{dirname:s,join:f}=F;function a(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}class m{constructor(h,t){if(t.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let l=t.map?t.map.prev:void 0,i=this.loadMap(t.from,l);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(h){let t=/^data:application\/json;charset=utf-?8;base64,/,l=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/;if(i.test(h)||r.test(h))return decodeURIComponent(h.substr(RegExp.lastMatch.length));if(t.test(h)||l.test(h))return a(h.substr(RegExp.lastMatch.length));let c=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+c)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let t=h.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let l=h.lastIndexOf(t.pop()),i=h.indexOf("*/",l);l>-1&&i>-1&&(this.annotation=this.getAnnotationURL(h.substring(l,i)))}loadFile(h){if(this.root=s(h),p(h))return this.mapFile=h,d(h,"utf-8").toString().trim()}loadMap(h,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let l=t(h);if(l){let i=this.loadFile(l);if(!i)throw new Error("Unable to load previous source map: "+l.toString());return i}}else{if(t instanceof e)return o.fromSourceMap(t).toString();if(t instanceof o)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let l=this.annotation;return h&&(l=f(s(h),l)),this.loadFile(l)}}}startWith(h,t){return h?h.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Fe=m,m.default=m,Fe}var Be,dr;function ve(){if(dr)return Be;dr=1;let{SourceMapConsumer:e,SourceMapGenerator:o}=F,{fileURLToPath:p,pathToFileURL:d}=F,{isAbsolute:s,resolve:f}=F,{nanoid:a}=cs(),m=F,n=qt(),h=mi(),t=Symbol("fromOffsetCache"),l=!!(e&&o),i=!!(f&&s);class r{constructor(u,g={}){if(u===null||typeof u>"u"||typeof u=="object"&&!u.toString)throw new Error(`PostCSS received ${u} instead of CSS string`);if(this.css=u.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!i||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=f(g.from)),i&&l){let S=new h(this.css,g);if(S.text){this.map=S;let b=S.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+a(6)+">"),this.map&&(this.map.file=this.from)}error(u,g,S,b={}){let v,w,y;if(g&&typeof g=="object"){let R=g,P=S;if(typeof R.offset=="number"){let A=this.fromOffset(R.offset);g=A.line,S=A.col}else g=R.line,S=R.column;if(typeof P.offset=="number"){let A=this.fromOffset(P.offset);w=A.line,y=A.col}else w=P.line,y=P.column}else if(!S){let R=this.fromOffset(g);g=R.line,S=R.col}let x=this.origin(g,S,w,y);return x?v=new n(u,x.endLine===void 0?x.line:{column:x.column,line:x.line},x.endLine===void 0?x.column:{column:x.endColumn,line:x.endLine},x.source,x.file,b.plugin):v=new n(u,w===void 0?g:{column:S,line:g},w===void 0?S:{column:y,line:w},this.css,this.file,b.plugin),v.input={column:S,endColumn:y,endLine:w,line:g,source:this.css},this.file&&(d&&(v.input.url=d(this.file).toString()),v.input.file=this.file),v}fromOffset(u){let g,S;if(this[t])S=this[t];else{let v=this.css.split(`
`);S=new Array(v.length);let w=0;for(let y=0,x=v.length;y<x;y++)S[y]=w,w+=v[y].length+1;this[t]=S}g=S[S.length-1];let b=0;if(u>=g)b=S.length-1;else{let v=S.length-2,w;for(;b<v;)if(w=b+(v-b>>1),u<S[w])v=w-1;else if(u>=S[w+1])b=w+1;else{b=w;break}}return{col:u-S[b]+1,line:b+1}}mapResolve(u){return/^\w+:\/\//.test(u)?u:f(this.map.consumer().sourceRoot||this.map.root||".",u)}origin(u,g,S,b){if(!this.map)return!1;let v=this.map.consumer(),w=v.originalPositionFor({column:g,line:u});if(!w.source)return!1;let y;typeof S=="number"&&(y=v.originalPositionFor({column:b,line:S}));let x;s(w.source)?x=d(w.source):x=new URL(w.source,this.map.consumer().sourceRoot||d(this.map.mapFile));let R={column:w.column,endColumn:y&&y.column,endLine:y&&y.line,line:w.line,url:x.toString()};if(x.protocol==="file:")if(p)R.file=p(x);else throw new Error("file: protocol is not available in this PostCSS build");let P=v.sourceContentFor(w.source);return P&&(R.source=P),R}toJSON(){let u={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(u[g]=this[g]);return this.map&&(u.map={...this.map},u.map.consumerCache&&(u.map.consumerCache=void 0)),u}get from(){return this.file||this.id}}return Be=r,r.default=r,m&&m.registerInput&&m.registerInput(r),Be}var ze,mr;function gi(){if(mr)return ze;mr=1;let{SourceMapConsumer:e,SourceMapGenerator:o}=F,{dirname:p,relative:d,resolve:s,sep:f}=F,{pathToFileURL:a}=F,m=ve(),n=!!(e&&o),h=!!(p&&s&&d&&f);class t{constructor(i,r,c,u){this.stringify=i,this.mapOpts=c.map||{},this.root=r,this.opts=c,this.css=u,this.originalCSS=u,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let i;this.isInline()?i="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?i=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?i=this.mapOpts.annotation(this.opts.to,this.root):i=this.outputFile()+".map";let r=`
`;this.css.includes(`\r
`)&&(r=`\r
`),this.css+=r+"/*# sourceMappingURL="+i+" */"}applyPrevMaps(){for(let i of this.previous()){let r=this.toUrl(this.path(i.file)),c=i.root||p(i.file),u;this.mapOpts.sourcesContent===!1?(u=new e(i.text),u.sourcesContent&&(u.sourcesContent=null)):u=i.consumer(),this.map.applySourceMap(u,r,this.toUrl(this.path(c)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let i;for(let r=this.root.nodes.length-1;r>=0;r--)i=this.root.nodes[r],i.type==="comment"&&i.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&n&&this.isMap())return this.generateMap();{let i="";return this.stringify(this.root,r=>{i+=r}),[i]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let i=this.previous()[0].consumer();i.file=this.outputFile(),this.map=o.fromSourceMap(i,{ignoreInvalidMapping:!0})}else this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0});let i=1,r=1,c="<no source>",u={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,S;this.stringify(this.root,(b,v,w)=>{if(this.css+=b,v&&w!=="end"&&(u.generated.line=i,u.generated.column=r-1,v.source&&v.source.start?(u.source=this.sourcePath(v),u.original.line=v.source.start.line,u.original.column=v.source.start.column-1,this.map.addMapping(u)):(u.source=c,u.original.line=1,u.original.column=0,this.map.addMapping(u))),g=b.match(/\n/g),g?(i+=g.length,S=b.lastIndexOf(`
`),r=b.length-S):r+=b.length,v&&w!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(u.source=this.sourcePath(v),u.original.line=v.source.end.line,u.original.column=v.source.end.column-1,u.generated.line=i,u.generated.column=r-2,this.map.addMapping(u)):(u.source=c,u.original.line=1,u.original.column=0,u.generated.line=i,u.generated.column=r-1,this.map.addMapping(u)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(i=>i.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let i=this.mapOpts.annotation;return typeof i<"u"&&i!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(i=>i.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(i){if(this.mapOpts.absolute||i.charCodeAt(0)===60||/^\w+:\/\//.test(i))return i;let r=this.memoizedPaths.get(i);if(r)return r;let c=this.opts.to?p(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(c=p(s(c,this.mapOpts.annotation)));let u=d(c,i);return this.memoizedPaths.set(i,u),u}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(i=>{if(i.source&&i.source.input.map){let r=i.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let i=new m(this.originalCSS,this.opts);i.map&&this.previousMaps.push(i.map)}return this.previousMaps}setSourcesContent(){let i={};if(this.root)this.root.walk(r=>{if(r.source){let c=r.source.input.from;if(c&&!i[c]){i[c]=!0;let u=this.usesFileUrls?this.toFileUrl(c):this.toUrl(this.path(c));this.map.setSourceContent(u,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(i){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(i.source.input.from):this.toUrl(this.path(i.source.input.from))}toBase64(i){return Buffer?Buffer.from(i).toString("base64"):window.btoa(unescape(encodeURIComponent(i)))}toFileUrl(i){let r=this.memoizedFileURLs.get(i);if(r)return r;if(a){let c=a(i).toString();return this.memoizedFileURLs.set(i,c),c}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(i){let r=this.memoizedURLs.get(i);if(r)return r;f==="\\"&&(i=i.replace(/\\/g,"/"));let c=encodeURI(i).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(i,c),c}}return ze=t,ze}var je,gr;function xe(){if(gr)return je;gr=1;let e=we();class o extends e{constructor(d){super(d),this.type="comment"}}return je=o,o.default=o,je}var We,yr;function Q(){if(yr)return We;yr=1;let{isClean:e,my:o}=Ft(),p=be(),d=xe(),s=we(),f,a,m,n;function h(i){return i.map(r=>(r.nodes&&(r.nodes=h(r.nodes)),delete r.source,r))}function t(i){if(i[e]=!1,i.proxyOf.nodes)for(let r of i.proxyOf.nodes)t(r)}class l extends s{append(...r){for(let c of r){let u=this.normalize(c,this.last);for(let g of u)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(r){if(super.cleanRaws(r),this.nodes)for(let c of this.nodes)c.cleanRaws(r)}each(r){if(!this.proxyOf.nodes)return;let c=this.getIterator(),u,g;for(;this.indexes[c]<this.proxyOf.nodes.length&&(u=this.indexes[c],g=r(this.proxyOf.nodes[u],u),g!==!1);)this.indexes[c]+=1;return delete this.indexes[c],g}every(r){return this.nodes.every(r)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let r=this.lastEach;return this.indexes[r]=0,r}getProxyProcessor(){return{get(r,c){return c==="proxyOf"?r:r[c]?c==="each"||typeof c=="string"&&c.startsWith("walk")?(...u)=>r[c](...u.map(g=>typeof g=="function"?(S,b)=>g(S.toProxy(),b):g)):c==="every"||c==="some"?u=>r[c]((g,...S)=>u(g.toProxy(),...S)):c==="root"?()=>r.root().toProxy():c==="nodes"?r.nodes.map(u=>u.toProxy()):c==="first"||c==="last"?r[c].toProxy():r[c]:r[c]},set(r,c,u){return r[c]===u||(r[c]=u,(c==="name"||c==="params"||c==="selector")&&r.markDirty()),!0}}}index(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))}insertAfter(r,c){let u=this.index(r),g=this.normalize(c,this.proxyOf.nodes[u]).reverse();u=this.index(r);for(let b of g)this.proxyOf.nodes.splice(u+1,0,b);let S;for(let b in this.indexes)S=this.indexes[b],u<S&&(this.indexes[b]=S+g.length);return this.markDirty(),this}insertBefore(r,c){let u=this.index(r),g=u===0?"prepend":!1,S=this.normalize(c,this.proxyOf.nodes[u],g).reverse();u=this.index(r);for(let v of S)this.proxyOf.nodes.splice(u,0,v);let b;for(let v in this.indexes)b=this.indexes[v],u<=b&&(this.indexes[v]=b+S.length);return this.markDirty(),this}normalize(r,c){if(typeof r=="string")r=h(f(r).nodes);else if(typeof r>"u")r=[];else if(Array.isArray(r)){r=r.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type)r=[r];else if(r.prop){if(typeof r.value>"u")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new p(r)]}else if(r.selector)r=[new a(r)];else if(r.name)r=[new m(r)];else if(r.text)r=[new d(r)];else throw new Error("Unknown node type in node creation");return r.map(g=>(g[o]||l.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&t(g),typeof g.raws.before>"u"&&c&&typeof c.raws.before<"u"&&(g.raws.before=c.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...r){r=r.reverse();for(let c of r){let u=this.normalize(c,this.first,"prepend").reverse();for(let g of u)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+u.length}return this.markDirty(),this}push(r){return r.parent=this,this.proxyOf.nodes.push(r),this}removeAll(){for(let r of this.proxyOf.nodes)r.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);let c;for(let u in this.indexes)c=this.indexes[u],c>=r&&(this.indexes[u]=c-1);return this.markDirty(),this}replaceValues(r,c,u){return u||(u=c,c={}),this.walkDecls(g=>{c.props&&!c.props.includes(g.prop)||c.fast&&!g.value.includes(c.fast)||(g.value=g.value.replace(r,u))}),this.markDirty(),this}some(r){return this.nodes.some(r)}walk(r){return this.each((c,u)=>{let g;try{g=r(c,u)}catch(S){throw c.addToError(S)}return g!==!1&&c.walk&&(g=c.walk(r)),g})}walkAtRules(r,c){return c?r instanceof RegExp?this.walk((u,g)=>{if(u.type==="atrule"&&r.test(u.name))return c(u,g)}):this.walk((u,g)=>{if(u.type==="atrule"&&u.name===r)return c(u,g)}):(c=r,this.walk((u,g)=>{if(u.type==="atrule")return c(u,g)}))}walkComments(r){return this.walk((c,u)=>{if(c.type==="comment")return r(c,u)})}walkDecls(r,c){return c?r instanceof RegExp?this.walk((u,g)=>{if(u.type==="decl"&&r.test(u.prop))return c(u,g)}):this.walk((u,g)=>{if(u.type==="decl"&&u.prop===r)return c(u,g)}):(c=r,this.walk((u,g)=>{if(u.type==="decl")return c(u,g)}))}walkRules(r,c){return c?r instanceof RegExp?this.walk((u,g)=>{if(u.type==="rule"&&r.test(u.selector))return c(u,g)}):this.walk((u,g)=>{if(u.type==="rule"&&u.selector===r)return c(u,g)}):(c=r,this.walk((u,g)=>{if(u.type==="rule")return c(u,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return l.registerParse=i=>{f=i},l.registerRule=i=>{a=i},l.registerAtRule=i=>{m=i},l.registerRoot=i=>{n=i},We=l,l.default=l,l.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,m.prototype):i.type==="rule"?Object.setPrototypeOf(i,a.prototype):i.type==="decl"?Object.setPrototypeOf(i,p.prototype):i.type==="comment"?Object.setPrototypeOf(i,d.prototype):i.type==="root"&&Object.setPrototypeOf(i,n.prototype),i[o]=!0,i.nodes&&i.nodes.forEach(r=>{l.rebuild(r)})},We}var He,wr;function Bt(){if(wr)return He;wr=1;let e=Q(),o,p;class d extends e{constructor(f){super({type:"document",...f}),this.nodes||(this.nodes=[])}toResult(f={}){return new o(new p,this,f).stringify()}}return d.registerLazyResult=s=>{o=s},d.registerProcessor=s=>{p=s},He=d,d.default=d,He}var Ge,br;function yi(){if(br)return Ge;br=1;class e{constructor(p,d={}){if(this.type="warning",this.text=p,d.node&&d.node.source){let s=d.node.rangeBy(d);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in d)this[s]=d[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Ge=e,e.default=e,Ge}var Je,vr;function zt(){if(vr)return Je;vr=1;let e=yi();class o{constructor(d,s,f){this.processor=d,this.messages=[],this.root=s,this.opts=f,this.css=void 0,this.map=void 0}toString(){return this.css}warn(d,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let f=new e(d,s);return this.messages.push(f),f}warnings(){return this.messages.filter(d=>d.type==="warning")}get content(){return this.css}}return Je=o,o.default=o,Je}var Ve,xr;function ps(){if(xr)return Ve;xr=1;const e=39,o=34,p=92,d=47,s=10,f=32,a=12,m=9,n=13,h=91,t=93,l=40,i=41,r=123,c=125,u=59,g=42,S=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,x=/[\da-f]/i;return Ve=function(P,A={}){let E=P.css.valueOf(),T=A.ignoreErrors,N,O,te,G,z,L,U,re,$,M,ie=E.length,C=0,J=[],j=[];function Pe(){return C}function V(D){throw P.error("Unclosed "+D,C)}function Ae(){return j.length===0&&C>=ie}function Ne(D){if(j.length)return j.pop();if(C>=ie)return;let K=D?D.ignoreUnclosed:!1;switch(N=E.charCodeAt(C),N){case s:case f:case m:case n:case a:{O=C;do O+=1,N=E.charCodeAt(O);while(N===f||N===s||N===m||N===n||N===a);M=["space",E.slice(C,O)],C=O-1;break}case h:case t:case r:case c:case S:case u:case i:{let se=String.fromCharCode(N);M=[se,se,C];break}case l:{if(re=J.length?J.pop()[1]:"",$=E.charCodeAt(C+1),re==="url"&&$!==e&&$!==o&&$!==f&&$!==s&&$!==m&&$!==a&&$!==n){O=C;do{if(L=!1,O=E.indexOf(")",O+1),O===-1)if(T||K){O=C;break}else V("bracket");for(U=O;E.charCodeAt(U-1)===p;)U-=1,L=!L}while(L);M=["brackets",E.slice(C,O+1),C,O],C=O}else O=E.indexOf(")",C+1),G=E.slice(C,O+1),O===-1||y.test(G)?M=["(","(",C]:(M=["brackets",G,C,O],C=O);break}case e:case o:{te=N===e?"'":'"',O=C;do{if(L=!1,O=E.indexOf(te,O+1),O===-1)if(T||K){O=C+1;break}else V("string");for(U=O;E.charCodeAt(U-1)===p;)U-=1,L=!L}while(L);M=["string",E.slice(C,O+1),C,O],C=O;break}case b:{v.lastIndex=C+1,v.test(E),v.lastIndex===0?O=E.length-1:O=v.lastIndex-2,M=["at-word",E.slice(C,O+1),C,O],C=O;break}case p:{for(O=C,z=!0;E.charCodeAt(O+1)===p;)O+=1,z=!z;if(N=E.charCodeAt(O+1),z&&N!==d&&N!==f&&N!==s&&N!==m&&N!==n&&N!==a&&(O+=1,x.test(E.charAt(O)))){for(;x.test(E.charAt(O+1));)O+=1;E.charCodeAt(O+1)===f&&(O+=1)}M=["word",E.slice(C,O+1),C,O],C=O;break}default:{N===d&&E.charCodeAt(C+1)===g?(O=E.indexOf("*/",C+2)+1,O===0&&(T||K?O=E.length:V("comment")),M=["comment",E.slice(C,O+1),C,O],C=O):(w.lastIndex=C+1,w.test(E),w.lastIndex===0?O=E.length-1:O=w.lastIndex-2,M=["word",E.slice(C,O+1),C,O],J.push(M),C=O);break}}return C++,M}function Me(D){j.push(D)}return{back:Me,endOfFile:Ae,nextToken:Ne,position:Pe}},Ve}var Ke,Sr;function jt(){if(Sr)return Ke;Sr=1;let e=Q();class o extends e{constructor(d){super(d),this.type="atrule"}append(...d){return this.proxyOf.nodes||(this.nodes=[]),super.append(...d)}prepend(...d){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...d)}}return Ke=o,o.default=o,e.registerAtRule(o),Ke}var Qe,Rr;function ne(){if(Rr)return Qe;Rr=1;let e=Q(),o,p;class d extends e{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,a,m){let n=super.normalize(f);if(a){if(m==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let h of n)h.raws.before=a.raws.before}return n}removeChild(f,a){let m=this.index(f);return!a&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(f)}toResult(f={}){return new o(new p,this,f).stringify()}}return d.registerLazyResult=s=>{o=s},d.registerProcessor=s=>{p=s},Qe=d,d.default=d,e.registerRoot(d),Qe}var Ye,Or;function wi(){if(Or)return Ye;Or=1;let e={comma(o){return e.split(o,[","],!0)},space(o){let p=[" ",`
`,"	"];return e.split(o,p)},split(o,p,d){let s=[],f="",a=!1,m=0,n=!1,h="",t=!1;for(let l of o)t?t=!1:l==="\\"?t=!0:n?l===h&&(n=!1):l==='"'||l==="'"?(n=!0,h=l):l==="("?m+=1:l===")"?m>0&&(m-=1):m===0&&p.includes(l)&&(a=!0),a?(f!==""&&s.push(f.trim()),f="",a=!1):f+=l;return(d||f!=="")&&s.push(f.trim()),s}};return Ye=e,e.default=e,Ye}var Xe,Cr;function Wt(){if(Cr)return Xe;Cr=1;let e=Q(),o=wi();class p extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return o.comma(this.selector)}set selectors(s){let f=this.selector?this.selector.match(/,\s*/):null,a=f?f[0]:","+this.raw("between","beforeOpen");this.selector=s.join(a)}}return Xe=p,p.default=p,e.registerRule(p),Xe}var Ze,Er;function ds(){if(Er)return Ze;Er=1;let e=be(),o=ps(),p=xe(),d=jt(),s=ne(),f=Wt();const a={empty:!0,space:!0};function m(h){for(let t=h.length-1;t>=0;t--){let l=h[t],i=l[3]||l[2];if(i)return i}}class n{constructor(t){this.input=t,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let l=new d;l.name=t[1].slice(1),l.name===""&&this.unnamedAtrule(l,t),this.init(l,t[2]);let i,r,c,u=!1,g=!1,S=[],b=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),i=t[0],i==="("||i==="["?b.push(i==="("?")":"]"):i==="{"&&b.length>0?b.push("}"):i===b[b.length-1]&&b.pop(),b.length===0)if(i===";"){l.source.end=this.getPosition(t[2]),l.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){g=!0;break}else if(i==="}"){if(S.length>0){for(c=S.length-1,r=S[c];r&&r[0]==="space";)r=S[--c];r&&(l.source.end=this.getPosition(r[3]||r[2]),l.source.end.offset++)}this.end(t);break}else S.push(t);else S.push(t);if(this.tokenizer.endOfFile()){u=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(S),S.length?(l.raws.afterName=this.spacesAndCommentsFromStart(S),this.raw(l,"params",S),u&&(t=S[S.length-1],l.source.end=this.getPosition(t[3]||t[2]),l.source.end.offset++,this.spaces=l.raws.between,l.raws.between="")):(l.raws.afterName="",l.params=""),g&&(l.nodes=[],this.current=l)}checkMissedSemicolon(t){let l=this.colon(t);if(l===!1)return;let i=0,r;for(let c=l-1;c>=0&&(r=t[c],!(r[0]!=="space"&&(i+=1,i===2)));c--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(t){let l=0,i,r,c;for(let[u,g]of t.entries()){if(i=g,r=i[0],r==="("&&(l+=1),r===")"&&(l-=1),l===0&&r===":")if(!c)this.doubleColon(i);else{if(c[0]==="word"&&c[1]==="progid")continue;return u}c=i}return!1}comment(t){let l=new p;this.init(l,t[2]),l.source.end=this.getPosition(t[3]||t[2]),l.source.end.offset++;let i=t[1].slice(2,-2);if(/^\s*$/.test(i))l.text="",l.raws.left=i,l.raws.right="";else{let r=i.match(/^(\s*)([^]*\S)(\s*)$/);l.text=r[2],l.raws.left=r[1],l.raws.right=r[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(t,l){let i=new e;this.init(i,t[0][2]);let r=t[t.length-1];for(r[0]===";"&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(r[3]||r[2]||m(t)),i.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop="";t.length;){let b=t[0][0];if(b===":"||b==="space"||b==="comment")break;i.prop+=t.shift()[1]}i.raws.between="";let c;for(;t.length;)if(c=t.shift(),c[0]===":"){i.raws.between+=c[1];break}else c[0]==="word"&&/\w/.test(c[1])&&this.unknownWord([c]),i.raws.between+=c[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let u=[],g;for(;t.length&&(g=t[0][0],!(g!=="space"&&g!=="comment"));)u.push(t.shift());this.precheckMissedSemicolon(t);for(let b=t.length-1;b>=0;b--){if(c=t[b],c[1].toLowerCase()==="!important"){i.important=!0;let v=this.stringFrom(t,b);v=this.spacesFromEnd(t)+v,v!==" !important"&&(i.raws.important=v);break}else if(c[1].toLowerCase()==="important"){let v=t.slice(0),w="";for(let y=b;y>0;y--){let x=v[y][0];if(w.trim().indexOf("!")===0&&x!=="space")break;w=v.pop()[1]+w}w.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=w,t=v)}if(c[0]!=="space"&&c[0]!=="comment")break}t.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(i.raws.between+=u.map(b=>b[1]).join(""),u=[]),this.raw(i,"value",u.concat(t),l),i.value.includes(":")&&!l&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let l=new f;this.init(l,t[2]),l.selector="",l.raws.between="",this.current=l}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let l=this.current.nodes[this.current.nodes.length-1];l&&l.type==="rule"&&!l.raws.ownSemicolon&&(l.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let l=this.input.fromOffset(t);return{column:l.col,line:l.line,offset:t}}init(t,l){this.current.push(t),t.source={input:this.input,start:this.getPosition(l)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let l=!1,i=null,r=!1,c=null,u=[],g=t[1].startsWith("--"),S=[],b=t;for(;b;){if(i=b[0],S.push(b),i==="("||i==="[")c||(c=b),u.push(i==="("?")":"]");else if(g&&r&&i==="{")c||(c=b),u.push("}");else if(u.length===0)if(i===";")if(r){this.decl(S,g);return}else break;else if(i==="{"){this.rule(S);return}else if(i==="}"){this.tokenizer.back(S.pop()),l=!0;break}else i===":"&&(r=!0);else i===u[u.length-1]&&(u.pop(),u.length===0&&(c=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(l=!0),u.length>0&&this.unclosedBracket(c),l&&r){if(!g)for(;S.length&&(b=S[S.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(S.pop());this.decl(S,g)}else this.unknownWord(S)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,l,i,r){let c,u,g=i.length,S="",b=!0,v,w;for(let y=0;y<g;y+=1)c=i[y],u=c[0],u==="space"&&y===g-1&&!r?b=!1:u==="comment"?(w=i[y-1]?i[y-1][0]:"empty",v=i[y+1]?i[y+1][0]:"empty",!a[w]&&!a[v]?S.slice(-1)===","?b=!1:S+=c[1]:b=!1):S+=c[1];if(!b){let y=i.reduce((x,R)=>x+R[1],"");t.raws[l]={raw:y,value:S}}t[l]=S}rule(t){t.pop();let l=new f;this.init(l,t[0][2]),l.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(l,"selector",t),this.current=l}spacesAndCommentsFromEnd(t){let l,i="";for(;t.length&&(l=t[t.length-1][0],!(l!=="space"&&l!=="comment"));)i=t.pop()[1]+i;return i}spacesAndCommentsFromStart(t){let l,i="";for(;t.length&&(l=t[0][0],!(l!=="space"&&l!=="comment"));)i+=t.shift()[1];return i}spacesFromEnd(t){let l,i="";for(;t.length&&(l=t[t.length-1][0],l==="space");)i=t.pop()[1]+i;return i}stringFrom(t,l){let i="";for(let r=l;r<t.length;r++)i+=t[r][1];return t.splice(l,t.length-l),i}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,l){throw this.input.error("At-rule without name",{offset:l[2]},{offset:l[2]+l[1].length})}}return Ze=n,Ze}var et,Pr;function Ht(){if(Pr)return et;Pr=1;let e=Q(),o=ds(),p=ve();function d(s,f){let a=new p(s,f),m=new o(a);try{m.parse()}catch(n){throw n}return m.root}return et=d,d.default=d,e.registerParse(d),et}var tt,Ar;function bi(){if(Ar)return tt;Ar=1;let{isClean:e,my:o}=Ft(),p=gi(),d=ye(),s=Q(),f=Bt(),a=zt(),m=Ht(),n=ne();const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},t={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},l={Once:!0,postcssPlugin:!0,prepare:!0},i=0;function r(v){return typeof v=="object"&&typeof v.then=="function"}function c(v){let w=!1,y=h[v.type];return v.type==="decl"?w=v.prop.toLowerCase():v.type==="atrule"&&(w=v.name.toLowerCase()),w&&v.append?[y,y+"-"+w,i,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:v.append?[y,i,y+"Exit"]:[y,y+"Exit"]}function u(v){let w;return v.type==="document"?w=["Document",i,"DocumentExit"]:v.type==="root"?w=["Root",i,"RootExit"]:w=c(v),{eventIndex:0,events:w,iterator:0,node:v,visitorIndex:0,visitors:[]}}function g(v){return v[e]=!1,v.nodes&&v.nodes.forEach(w=>g(w)),v}let S={};class b{constructor(w,y,x){this.stringified=!1,this.processed=!1;let R;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))R=g(y);else if(y instanceof b||y instanceof a)R=g(y.root),y.map&&(typeof x.map>"u"&&(x.map={}),x.map.inline||(x.map.inline=!1),x.map.prev=y.map);else{let P=m;x.syntax&&(P=x.syntax.parse),x.parser&&(P=x.parser),P.parse&&(P=P.parse);try{R=P(y,x)}catch(A){this.processed=!0,this.error=A}R&&!R[o]&&s.rebuild(R)}this.result=new a(w,R,x),this.helpers={...S,postcss:S,result:this.result},this.plugins=this.processor.plugins.map(P=>typeof P=="object"&&P.prepare?{...P,...P.prepare(this.result)}:P)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let x=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=x.postcssPlugin,w.setMessage()):x.postcssVersion}catch(R){console&&console.error&&console.error(R)}return w}prepareVisitors(){this.listeners={};let w=(y,x,R)=>{this.listeners[x]||(this.listeners[x]=[]),this.listeners[x].push([y,R])};for(let y of this.plugins)if(typeof y=="object")for(let x in y){if(!t[x]&&/^[A-Z]/.test(x))throw new Error(`Unknown event ${x} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!l[x])if(typeof y[x]=="object")for(let R in y[x])R==="*"?w(y,x,y[x][R]):w(y,x+"-"+R.toLowerCase(),y[x][R]);else typeof y[x]=="function"&&w(y,x,y[x])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],x=this.runOnRoot(y);if(r(x))try{await x}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[u(w)];for(;y.length>0;){let x=this.visitTick(y);if(r(x))try{await x}catch(R){let P=y[y.length-1].node;throw this.handleError(R,P)}}}if(this.listeners.OnceExit)for(let[y,x]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let R=w.nodes.map(P=>x(P,this.helpers));await Promise.all(R)}else await x(w,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(x=>w.Once(x,this.helpers));return r(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=d;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let R=new p(y,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(r(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[x,R]of w){this.result.lastPlugin=x;let P;try{P=R(y,this.helpers)}catch(A){throw this.handleError(A,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(r(P))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:x,visitors:R}=y;if(x.type!=="root"&&x.type!=="document"&&!x.parent){w.pop();return}if(R.length>0&&y.visitorIndex<R.length){let[A,E]=R[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===R.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=A;try{return E(x.toProxy(),this.helpers)}catch(T){throw this.handleError(T,x)}}if(y.iterator!==0){let A=y.iterator,E;for(;E=x.nodes[x.indexes[A]];)if(x.indexes[A]+=1,!E[e]){E[e]=!0,w.push(u(E));return}y.iterator=0,delete x.indexes[A]}let P=y.events;for(;y.eventIndex<P.length;){let A=P[y.eventIndex];if(y.eventIndex+=1,A===i){x.nodes&&x.nodes.length&&(x[e]=!0,y.iterator=x.getIterator());return}else if(this.listeners[A]){y.visitors=this.listeners[A];return}}w.pop()}walkSync(w){w[e]=!0;let y=c(w);for(let x of y)if(x===i)w.nodes&&w.each(R=>{R[e]||this.walkSync(R)});else{let R=this.listeners[x];if(R&&this.visitSync(R,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return b.registerPostcss=v=>{S=v},tt=b,b.default=b,n.registerLazyResult(b),f.registerLazyResult(b),tt}var rt,Nr;function ms(){if(Nr)return rt;Nr=1;let e=gi(),o=ye(),p=Ht();const d=zt();class s{constructor(a,m,n){m=m.toString(),this.stringified=!1,this._processor=a,this._css=m,this._opts=n,this._map=void 0;let h,t=o;this.result=new d(this._processor,h,this._opts),this.result.css=m;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let i=new e(t,h,this._opts,m);if(i.isMap()){let[r,c]=i.generate();r&&(this.result.css=r),c&&(this.result.map=c)}else i.clearAnnotation(),this.result.css=i.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,m){return this.async().then(a,m)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,m=p;try{a=m(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}}return rt=s,s.default=s,rt}var it,Mr;function gs(){if(Mr)return it;Mr=1;let e=ms(),o=bi(),p=Bt(),d=ne();class s{constructor(a=[]){this.version="8.4.38",this.plugins=this.normalize(a)}normalize(a){let m=[];for(let n of a)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))m=m.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)m.push(n);else if(typeof n=="function")m.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return m}process(a,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new e(this,a,m):new o(this,a,m)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return it=s,s.default=s,d.registerProcessor(s),p.registerProcessor(s),it}var st,_r;function ys(){if(_r)return st;_r=1;let e=be(),o=mi(),p=xe(),d=jt(),s=ve(),f=ne(),a=Wt();function m(n,h){if(Array.isArray(n))return n.map(i=>m(i));let{inputs:t,...l}=n;if(t){h=[];for(let i of t){let r={...i,__proto__:s.prototype};r.map&&(r.map={...r.map,__proto__:o.prototype}),h.push(r)}}if(l.nodes&&(l.nodes=n.nodes.map(i=>m(i,h))),l.source){let{inputId:i,...r}=l.source;l.source=r,i!=null&&(l.source.input=h[i])}if(l.type==="root")return new f(l);if(l.type==="decl")return new e(l);if(l.type==="rule")return new a(l);if(l.type==="comment")return new p(l);if(l.type==="atrule")return new d(l);throw new Error("Unknown node type: "+n.type)}return st=m,m.default=m,st}var nt,Ir;function ws(){if(Ir)return nt;Ir=1;let e=qt(),o=be(),p=bi(),d=Q(),s=gs(),f=ye(),a=ys(),m=Bt(),n=yi(),h=xe(),t=jt(),l=zt(),i=ve(),r=Ht(),c=wi(),u=Wt(),g=ne(),S=we();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new s(v)}return b.plugin=function(w,y){let x=!1;function R(...A){console&&console.warn&&!x&&(x=!0,console.warn(w+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),me.LANG&&me.LANG.startsWith("cn")&&console.warn(w+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let E=y(...A);return E.postcssPlugin=w,E.postcssVersion=new s().version,E}let P;return Object.defineProperty(R,"postcss",{get(){return P||(P=R()),P}}),R.process=function(A,E,T){return b([R(T)]).process(A,E)},R},b.stringify=f,b.parse=r,b.fromJSON=a,b.list=c,b.comment=v=>new h(v),b.atRule=v=>new t(v),b.decl=v=>new o(v),b.rule=v=>new u(v),b.root=v=>new g(v),b.document=v=>new m(v),b.CssSyntaxError=e,b.Declaration=o,b.Container=d,b.Processor=s,b.Document=m,b.Comment=h,b.Warning=n,b.AtRule=t,b.Result=l,b.Input=i,b.Rule=u,b.Root=g,b.Node=S,p.registerPostcss(b),nt=b,b.default=b,nt}var bs=ws();const _=ls(bs);_.stringify;_.fromJSON;_.plugin;_.parse;_.list;_.document;_.comment;_.atRule;_.rule;_.decl;_.root;_.CssSyntaxError;_.Declaration;_.Container;_.Processor;_.Document;_.Comment;_.Warning;_.AtRule;_.Result;_.Input;_.Rule;_.Root;_.Node;var vs=Object.defineProperty,xs=(e,o,p)=>o in e?vs(e,o,{enumerable:!0,configurable:!0,writable:!0,value:p}):e[o]=p,k=(e,o,p)=>xs(e,typeof o!="symbol"?o+"":o,p);function Ss(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rs(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var o=e.default;if(typeof o=="function"){var p=function d(){return this instanceof d?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};p.prototype=o.prototype}else p={};return Object.defineProperty(p,"__esModule",{value:!0}),Object.keys(e).forEach(function(d){var s=Object.getOwnPropertyDescriptor(e,d);Object.defineProperty(p,d,s.get?s:{enumerable:!0,get:function(){return e[d]}})}),p}var he={exports:{}},Lr;function Os(){if(Lr)return he.exports;Lr=1;var e=String,o=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return he.exports=o(),he.exports.createColors=o,he.exports}const Cs={},Es=Object.freeze(Object.defineProperty({__proto__:null,default:Cs},Symbol.toStringTag,{value:"Module"})),B=Rs(Es);var ot,$r;function Gt(){if($r)return ot;$r=1;let e=Os(),o=B;class p extends Error{constructor(s,f,a,m,n,h){super(s),this.name="CssSyntaxError",this.reason=s,n&&(this.file=n),m&&(this.source=m),h&&(this.plugin=h),typeof f<"u"&&typeof a<"u"&&(typeof f=="number"?(this.line=f,this.column=a):(this.line=f.line,this.column=f.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,p)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let f=this.source;s==null&&(s=e.isColorSupported),o&&s&&(f=o(f));let a=f.split(/\r?\n/),m=Math.max(this.line-3,0),n=Math.min(this.line+2,a.length),h=String(n).length,t,l;if(s){let{bold:i,gray:r,red:c}=e.createColors(!0);t=u=>i(c(u)),l=u=>r(u)}else t=l=i=>i;return a.slice(m,n).map((i,r)=>{let c=m+1+r,u=" "+(" "+c).slice(-h)+" | ";if(c===this.line){let g=l(u.replace(/\d/g," "))+i.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+l(u)+i+`
 `+g+t("^")}return" "+l(u)+i}).join(`
`)}toString(){let s=this.showSourceCode();return s&&(s=`

`+s+`
`),this.name+": "+this.message+s}}return ot=p,p.default=p,ot}var ce={},Tr;function Jt(){return Tr||(Tr=1,ce.isClean=Symbol("isClean"),ce.my=Symbol("my")),ce}var lt,Ur;function vi(){if(Ur)return lt;Ur=1;const e={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function o(d){return d[0].toUpperCase()+d.slice(1)}class p{constructor(s){this.builder=s}atrule(s,f){let a="@"+s.name,m=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?a+=s.raws.afterName:m&&(a+=" "),s.nodes)this.block(s,a+m);else{let n=(s.raws.between||"")+(f?";":"");this.builder(a+m+n,s)}}beforeAfter(s,f){let a;s.type==="decl"?a=this.raw(s,null,"beforeDecl"):s.type==="comment"?a=this.raw(s,null,"beforeComment"):f==="before"?a=this.raw(s,null,"beforeRule"):a=this.raw(s,null,"beforeClose");let m=s.parent,n=0;for(;m&&m.type!=="root";)n+=1,m=m.parent;if(a.includes(`
`)){let h=this.raw(s,null,"indent");if(h.length)for(let t=0;t<n;t++)a+=h}return a}block(s,f){let a=this.raw(s,"between","beforeOpen");this.builder(f+a+"{",s,"start");let m;s.nodes&&s.nodes.length?(this.body(s),m=this.raw(s,"after")):m=this.raw(s,"after","emptyBody"),m&&this.builder(m),this.builder("}",s,"end")}body(s){let f=s.nodes.length-1;for(;f>0&&s.nodes[f].type==="comment";)f-=1;let a=this.raw(s,"semicolon");for(let m=0;m<s.nodes.length;m++){let n=s.nodes[m],h=this.raw(n,"before");h&&this.builder(h),this.stringify(n,f!==m||a)}}comment(s){let f=this.raw(s,"left","commentLeft"),a=this.raw(s,"right","commentRight");this.builder("/*"+f+s.text+a+"*/",s)}decl(s,f){let a=this.raw(s,"between","colon"),m=s.prop+a+this.rawValue(s,"value");s.important&&(m+=s.raws.important||" !important"),f&&(m+=";"),this.builder(m,s)}document(s){this.body(s)}raw(s,f,a){let m;if(a||(a=f),f&&(m=s.raws[f],typeof m<"u"))return m;let n=s.parent;if(a==="before"&&(!n||n.type==="root"&&n.first===s||n&&n.type==="document"))return"";if(!n)return e[a];let h=s.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[a]<"u")return h.rawCache[a];if(a==="before"||a==="after")return this.beforeAfter(s,a);{let t="raw"+o(a);this[t]?m=this[t](h,s):h.walk(l=>{if(m=l.raws[f],typeof m<"u")return!1})}return typeof m>"u"&&(m=e[a]),h.rawCache[a]=m,m}rawBeforeClose(s){let f;return s.walk(a=>{if(a.nodes&&a.nodes.length>0&&typeof a.raws.after<"u")return f=a.raws.after,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawBeforeComment(s,f){let a;return s.walkComments(m=>{if(typeof m.raws.before<"u")return a=m.raws.before,a.includes(`
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(f,null,"beforeDecl"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeDecl(s,f){let a;return s.walkDecls(m=>{if(typeof m.raws.before<"u")return a=m.raws.before,a.includes(`
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(f,null,"beforeRule"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeOpen(s){let f;return s.walk(a=>{if(a.type!=="decl"&&(f=a.raws.between,typeof f<"u"))return!1}),f}rawBeforeRule(s){let f;return s.walk(a=>{if(a.nodes&&(a.parent!==s||s.first!==a)&&typeof a.raws.before<"u")return f=a.raws.before,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawColon(s){let f;return s.walkDecls(a=>{if(typeof a.raws.between<"u")return f=a.raws.between.replace(/[^\s:]/g,""),!1}),f}rawEmptyBody(s){let f;return s.walk(a=>{if(a.nodes&&a.nodes.length===0&&(f=a.raws.after,typeof f<"u"))return!1}),f}rawIndent(s){if(s.raws.indent)return s.raws.indent;let f;return s.walk(a=>{let m=a.parent;if(m&&m!==s&&m.parent&&m.parent===s&&typeof a.raws.before<"u"){let n=a.raws.before.split(`
`);return f=n[n.length-1],f=f.replace(/\S/g,""),!1}}),f}rawSemicolon(s){let f;return s.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(f=a.raws.semicolon,typeof f<"u"))return!1}),f}rawValue(s,f){let a=s[f],m=s.raws[f];return m&&m.value===a?m.raw:a}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,f){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,f)}}return lt=p,p.default=p,lt}var at,Dr;function Se(){if(Dr)return at;Dr=1;let e=vi();function o(p,d){new e(d).stringify(p)}return at=o,o.default=o,at}var ut,kr;function Re(){if(kr)return ut;kr=1;let{isClean:e,my:o}=Jt(),p=Gt(),d=vi(),s=Se();function f(m,n){let h=new m.constructor;for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t)||t==="proxyCache")continue;let l=m[t],i=typeof l;t==="parent"&&i==="object"?n&&(h[t]=n):t==="source"?h[t]=l:Array.isArray(l)?h[t]=l.map(r=>f(r,h)):(i==="object"&&l!==null&&(l=f(l)),h[t]=l)}return h}class a{constructor(n={}){this.raws={},this[e]=!1,this[o]=!0;for(let h in n)if(h==="nodes"){this.nodes=[];for(let t of n[h])typeof t.clone=="function"?this.append(t.clone()):this.append(t)}else this[h]=n[h]}addToError(n){if(n.postcssNode=this,n.stack&&this.source&&/\n\s{4}at /.test(n.stack)){let h=this.source;n.stack=n.stack.replace(/\n\s{4}at /,`$&${h.input.from}:${h.start.line}:${h.start.column}$&`)}return n}after(n){return this.parent.insertAfter(this,n),this}assign(n={}){for(let h in n)this[h]=n[h];return this}before(n){return this.parent.insertBefore(this,n),this}cleanRaws(n){delete this.raws.before,delete this.raws.after,n||delete this.raws.between}clone(n={}){let h=f(this);for(let t in n)h[t]=n[t];return h}cloneAfter(n={}){let h=this.clone(n);return this.parent.insertAfter(this,h),h}cloneBefore(n={}){let h=this.clone(n);return this.parent.insertBefore(this,h),h}error(n,h={}){if(this.source){let{end:t,start:l}=this.rangeBy(h);return this.source.input.error(n,{column:l.column,line:l.line},{column:t.column,line:t.line},h)}return new p(n)}getProxyProcessor(){return{get(n,h){return h==="proxyOf"?n:h==="root"?()=>n.root().toProxy():n[h]},set(n,h,t){return n[h]===t||(n[h]=t,(h==="prop"||h==="value"||h==="name"||h==="params"||h==="important"||h==="text")&&n.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let n=this;for(;n=n.parent;)n[e]=!1}}next(){if(!this.parent)return;let n=this.parent.index(this);return this.parent.nodes[n+1]}positionBy(n,h){let t=this.source.start;if(n.index)t=this.positionInside(n.index,h);else if(n.word){h=this.toString();let l=h.indexOf(n.word);l!==-1&&(t=this.positionInside(l,h))}return t}positionInside(n,h){let t=h||this.toString(),l=this.source.start.column,i=this.source.start.line;for(let r=0;r<n;r++)t[r]===`
`?(l=1,i+=1):l+=1;return{column:l,line:i}}prev(){if(!this.parent)return;let n=this.parent.index(this);return this.parent.nodes[n-1]}rangeBy(n){let h={column:this.source.start.column,line:this.source.start.line},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:h.column+1,line:h.line};if(n.word){let l=this.toString(),i=l.indexOf(n.word);i!==-1&&(h=this.positionInside(i,l),t=this.positionInside(i+n.word.length,l))}else n.start?h={column:n.start.column,line:n.start.line}:n.index&&(h=this.positionInside(n.index)),n.end?t={column:n.end.column,line:n.end.line}:typeof n.endIndex=="number"?t=this.positionInside(n.endIndex):n.index&&(t=this.positionInside(n.index+1));return(t.line<h.line||t.line===h.line&&t.column<=h.column)&&(t={column:h.column+1,line:h.line}),{end:t,start:h}}raw(n,h){return new d().raw(this,n,h)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...n){if(this.parent){let h=this,t=!1;for(let l of n)l===this?t=!0:t?(this.parent.insertAfter(h,l),h=l):this.parent.insertBefore(h,l);t||this.remove()}return this}root(){let n=this;for(;n.parent&&n.parent.type!=="document";)n=n.parent;return n}toJSON(n,h){let t={},l=h==null;h=h||new Map;let i=0;for(let r in this){if(!Object.prototype.hasOwnProperty.call(this,r)||r==="parent"||r==="proxyCache")continue;let c=this[r];if(Array.isArray(c))t[r]=c.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,h):u);else if(typeof c=="object"&&c.toJSON)t[r]=c.toJSON(null,h);else if(r==="source"){let u=h.get(c.input);u==null&&(u=i,h.set(c.input,i),i++),t[r]={end:c.end,inputId:u,start:c.start}}else t[r]=c}return l&&(t.inputs=[...h.keys()].map(r=>r.toJSON())),t}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(n=s){n.stringify&&(n=n.stringify);let h="";return n(this,t=>{h+=t}),h}warn(n,h,t){let l={node:this};for(let i in t)l[i]=t[i];return n.warn(h,l)}get proxyOf(){return this}}return ut=a,a.default=a,ut}var ft,qr;function Oe(){if(qr)return ft;qr=1;let e=Re();class o extends e{constructor(d){d&&typeof d.value<"u"&&typeof d.value!="string"&&(d={...d,value:String(d.value)}),super(d),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return ft=o,o.default=o,ft}var ht,Fr;function Ps(){if(Fr)return ht;Fr=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return ht={nanoid:(d=21)=>{let s="",f=d;for(;f--;)s+=e[Math.random()*64|0];return s},customAlphabet:(d,s=21)=>(f=s)=>{let a="",m=f;for(;m--;)a+=d[Math.random()*d.length|0];return a}},ht}var ct,Br;function xi(){if(Br)return ct;Br=1;let{SourceMapConsumer:e,SourceMapGenerator:o}=B,{existsSync:p,readFileSync:d}=B,{dirname:s,join:f}=B;function a(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}class m{constructor(h,t){if(t.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let l=t.map?t.map.prev:void 0,i=this.loadMap(t.from,l);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(h){let t=/^data:application\/json;charset=utf-?8;base64,/,l=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/;if(i.test(h)||r.test(h))return decodeURIComponent(h.substr(RegExp.lastMatch.length));if(t.test(h)||l.test(h))return a(h.substr(RegExp.lastMatch.length));let c=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+c)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let t=h.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let l=h.lastIndexOf(t.pop()),i=h.indexOf("*/",l);l>-1&&i>-1&&(this.annotation=this.getAnnotationURL(h.substring(l,i)))}loadFile(h){if(this.root=s(h),p(h))return this.mapFile=h,d(h,"utf-8").toString().trim()}loadMap(h,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let l=t(h);if(l){let i=this.loadFile(l);if(!i)throw new Error("Unable to load previous source map: "+l.toString());return i}}else{if(t instanceof e)return o.fromSourceMap(t).toString();if(t instanceof o)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let l=this.annotation;return h&&(l=f(s(h),l)),this.loadFile(l)}}}startWith(h,t){return h?h.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ct=m,m.default=m,ct}var pt,zr;function Ce(){if(zr)return pt;zr=1;let{SourceMapConsumer:e,SourceMapGenerator:o}=B,{fileURLToPath:p,pathToFileURL:d}=B,{isAbsolute:s,resolve:f}=B,{nanoid:a}=Ps(),m=B,n=Gt(),h=xi(),t=Symbol("fromOffsetCache"),l=!!(e&&o),i=!!(f&&s);class r{constructor(u,g={}){if(u===null||typeof u>"u"||typeof u=="object"&&!u.toString)throw new Error(`PostCSS received ${u} instead of CSS string`);if(this.css=u.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!i||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=f(g.from)),i&&l){let S=new h(this.css,g);if(S.text){this.map=S;let b=S.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+a(6)+">"),this.map&&(this.map.file=this.from)}error(u,g,S,b={}){let v,w,y;if(g&&typeof g=="object"){let R=g,P=S;if(typeof R.offset=="number"){let A=this.fromOffset(R.offset);g=A.line,S=A.col}else g=R.line,S=R.column;if(typeof P.offset=="number"){let A=this.fromOffset(P.offset);w=A.line,y=A.col}else w=P.line,y=P.column}else if(!S){let R=this.fromOffset(g);g=R.line,S=R.col}let x=this.origin(g,S,w,y);return x?v=new n(u,x.endLine===void 0?x.line:{column:x.column,line:x.line},x.endLine===void 0?x.column:{column:x.endColumn,line:x.endLine},x.source,x.file,b.plugin):v=new n(u,w===void 0?g:{column:S,line:g},w===void 0?S:{column:y,line:w},this.css,this.file,b.plugin),v.input={column:S,endColumn:y,endLine:w,line:g,source:this.css},this.file&&(d&&(v.input.url=d(this.file).toString()),v.input.file=this.file),v}fromOffset(u){let g,S;if(this[t])S=this[t];else{let v=this.css.split(`
`);S=new Array(v.length);let w=0;for(let y=0,x=v.length;y<x;y++)S[y]=w,w+=v[y].length+1;this[t]=S}g=S[S.length-1];let b=0;if(u>=g)b=S.length-1;else{let v=S.length-2,w;for(;b<v;)if(w=b+(v-b>>1),u<S[w])v=w-1;else if(u>=S[w+1])b=w+1;else{b=w;break}}return{col:u-S[b]+1,line:b+1}}mapResolve(u){return/^\w+:\/\//.test(u)?u:f(this.map.consumer().sourceRoot||this.map.root||".",u)}origin(u,g,S,b){if(!this.map)return!1;let v=this.map.consumer(),w=v.originalPositionFor({column:g,line:u});if(!w.source)return!1;let y;typeof S=="number"&&(y=v.originalPositionFor({column:b,line:S}));let x;s(w.source)?x=d(w.source):x=new URL(w.source,this.map.consumer().sourceRoot||d(this.map.mapFile));let R={column:w.column,endColumn:y&&y.column,endLine:y&&y.line,line:w.line,url:x.toString()};if(x.protocol==="file:")if(p)R.file=p(x);else throw new Error("file: protocol is not available in this PostCSS build");let P=v.sourceContentFor(w.source);return P&&(R.source=P),R}toJSON(){let u={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(u[g]=this[g]);return this.map&&(u.map={...this.map},u.map.consumerCache&&(u.map.consumerCache=void 0)),u}get from(){return this.file||this.id}}return pt=r,r.default=r,m&&m.registerInput&&m.registerInput(r),pt}var dt,jr;function Si(){if(jr)return dt;jr=1;let{SourceMapConsumer:e,SourceMapGenerator:o}=B,{dirname:p,relative:d,resolve:s,sep:f}=B,{pathToFileURL:a}=B,m=Ce(),n=!!(e&&o),h=!!(p&&s&&d&&f);class t{constructor(i,r,c,u){this.stringify=i,this.mapOpts=c.map||{},this.root=r,this.opts=c,this.css=u,this.originalCSS=u,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let i;this.isInline()?i="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?i=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?i=this.mapOpts.annotation(this.opts.to,this.root):i=this.outputFile()+".map";let r=`
`;this.css.includes(`\r
`)&&(r=`\r
`),this.css+=r+"/*# sourceMappingURL="+i+" */"}applyPrevMaps(){for(let i of this.previous()){let r=this.toUrl(this.path(i.file)),c=i.root||p(i.file),u;this.mapOpts.sourcesContent===!1?(u=new e(i.text),u.sourcesContent&&(u.sourcesContent=null)):u=i.consumer(),this.map.applySourceMap(u,r,this.toUrl(this.path(c)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let i;for(let r=this.root.nodes.length-1;r>=0;r--)i=this.root.nodes[r],i.type==="comment"&&i.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&n&&this.isMap())return this.generateMap();{let i="";return this.stringify(this.root,r=>{i+=r}),[i]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let i=this.previous()[0].consumer();i.file=this.outputFile(),this.map=o.fromSourceMap(i,{ignoreInvalidMapping:!0})}else this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0});let i=1,r=1,c="<no source>",u={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,S;this.stringify(this.root,(b,v,w)=>{if(this.css+=b,v&&w!=="end"&&(u.generated.line=i,u.generated.column=r-1,v.source&&v.source.start?(u.source=this.sourcePath(v),u.original.line=v.source.start.line,u.original.column=v.source.start.column-1,this.map.addMapping(u)):(u.source=c,u.original.line=1,u.original.column=0,this.map.addMapping(u))),g=b.match(/\n/g),g?(i+=g.length,S=b.lastIndexOf(`
`),r=b.length-S):r+=b.length,v&&w!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(u.source=this.sourcePath(v),u.original.line=v.source.end.line,u.original.column=v.source.end.column-1,u.generated.line=i,u.generated.column=r-2,this.map.addMapping(u)):(u.source=c,u.original.line=1,u.original.column=0,u.generated.line=i,u.generated.column=r-1,this.map.addMapping(u)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(i=>i.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let i=this.mapOpts.annotation;return typeof i<"u"&&i!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(i=>i.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(i){if(this.mapOpts.absolute||i.charCodeAt(0)===60||/^\w+:\/\//.test(i))return i;let r=this.memoizedPaths.get(i);if(r)return r;let c=this.opts.to?p(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(c=p(s(c,this.mapOpts.annotation)));let u=d(c,i);return this.memoizedPaths.set(i,u),u}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(i=>{if(i.source&&i.source.input.map){let r=i.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let i=new m(this.originalCSS,this.opts);i.map&&this.previousMaps.push(i.map)}return this.previousMaps}setSourcesContent(){let i={};if(this.root)this.root.walk(r=>{if(r.source){let c=r.source.input.from;if(c&&!i[c]){i[c]=!0;let u=this.usesFileUrls?this.toFileUrl(c):this.toUrl(this.path(c));this.map.setSourceContent(u,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(i){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(i.source.input.from):this.toUrl(this.path(i.source.input.from))}toBase64(i){return Buffer?Buffer.from(i).toString("base64"):window.btoa(unescape(encodeURIComponent(i)))}toFileUrl(i){let r=this.memoizedFileURLs.get(i);if(r)return r;if(a){let c=a(i).toString();return this.memoizedFileURLs.set(i,c),c}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(i){let r=this.memoizedURLs.get(i);if(r)return r;f==="\\"&&(i=i.replace(/\\/g,"/"));let c=encodeURI(i).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(i,c),c}}return dt=t,dt}var mt,Wr;function Ee(){if(Wr)return mt;Wr=1;let e=Re();class o extends e{constructor(d){super(d),this.type="comment"}}return mt=o,o.default=o,mt}var gt,Hr;function Y(){if(Hr)return gt;Hr=1;let{isClean:e,my:o}=Jt(),p=Oe(),d=Ee(),s=Re(),f,a,m,n;function h(i){return i.map(r=>(r.nodes&&(r.nodes=h(r.nodes)),delete r.source,r))}function t(i){if(i[e]=!1,i.proxyOf.nodes)for(let r of i.proxyOf.nodes)t(r)}class l extends s{append(...r){for(let c of r){let u=this.normalize(c,this.last);for(let g of u)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(r){if(super.cleanRaws(r),this.nodes)for(let c of this.nodes)c.cleanRaws(r)}each(r){if(!this.proxyOf.nodes)return;let c=this.getIterator(),u,g;for(;this.indexes[c]<this.proxyOf.nodes.length&&(u=this.indexes[c],g=r(this.proxyOf.nodes[u],u),g!==!1);)this.indexes[c]+=1;return delete this.indexes[c],g}every(r){return this.nodes.every(r)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let r=this.lastEach;return this.indexes[r]=0,r}getProxyProcessor(){return{get(r,c){return c==="proxyOf"?r:r[c]?c==="each"||typeof c=="string"&&c.startsWith("walk")?(...u)=>r[c](...u.map(g=>typeof g=="function"?(S,b)=>g(S.toProxy(),b):g)):c==="every"||c==="some"?u=>r[c]((g,...S)=>u(g.toProxy(),...S)):c==="root"?()=>r.root().toProxy():c==="nodes"?r.nodes.map(u=>u.toProxy()):c==="first"||c==="last"?r[c].toProxy():r[c]:r[c]},set(r,c,u){return r[c]===u||(r[c]=u,(c==="name"||c==="params"||c==="selector")&&r.markDirty()),!0}}}index(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))}insertAfter(r,c){let u=this.index(r),g=this.normalize(c,this.proxyOf.nodes[u]).reverse();u=this.index(r);for(let b of g)this.proxyOf.nodes.splice(u+1,0,b);let S;for(let b in this.indexes)S=this.indexes[b],u<S&&(this.indexes[b]=S+g.length);return this.markDirty(),this}insertBefore(r,c){let u=this.index(r),g=u===0?"prepend":!1,S=this.normalize(c,this.proxyOf.nodes[u],g).reverse();u=this.index(r);for(let v of S)this.proxyOf.nodes.splice(u,0,v);let b;for(let v in this.indexes)b=this.indexes[v],u<=b&&(this.indexes[v]=b+S.length);return this.markDirty(),this}normalize(r,c){if(typeof r=="string")r=h(f(r).nodes);else if(typeof r>"u")r=[];else if(Array.isArray(r)){r=r.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type)r=[r];else if(r.prop){if(typeof r.value>"u")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new p(r)]}else if(r.selector)r=[new a(r)];else if(r.name)r=[new m(r)];else if(r.text)r=[new d(r)];else throw new Error("Unknown node type in node creation");return r.map(g=>(g[o]||l.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&t(g),typeof g.raws.before>"u"&&c&&typeof c.raws.before<"u"&&(g.raws.before=c.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...r){r=r.reverse();for(let c of r){let u=this.normalize(c,this.first,"prepend").reverse();for(let g of u)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+u.length}return this.markDirty(),this}push(r){return r.parent=this,this.proxyOf.nodes.push(r),this}removeAll(){for(let r of this.proxyOf.nodes)r.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);let c;for(let u in this.indexes)c=this.indexes[u],c>=r&&(this.indexes[u]=c-1);return this.markDirty(),this}replaceValues(r,c,u){return u||(u=c,c={}),this.walkDecls(g=>{c.props&&!c.props.includes(g.prop)||c.fast&&!g.value.includes(c.fast)||(g.value=g.value.replace(r,u))}),this.markDirty(),this}some(r){return this.nodes.some(r)}walk(r){return this.each((c,u)=>{let g;try{g=r(c,u)}catch(S){throw c.addToError(S)}return g!==!1&&c.walk&&(g=c.walk(r)),g})}walkAtRules(r,c){return c?r instanceof RegExp?this.walk((u,g)=>{if(u.type==="atrule"&&r.test(u.name))return c(u,g)}):this.walk((u,g)=>{if(u.type==="atrule"&&u.name===r)return c(u,g)}):(c=r,this.walk((u,g)=>{if(u.type==="atrule")return c(u,g)}))}walkComments(r){return this.walk((c,u)=>{if(c.type==="comment")return r(c,u)})}walkDecls(r,c){return c?r instanceof RegExp?this.walk((u,g)=>{if(u.type==="decl"&&r.test(u.prop))return c(u,g)}):this.walk((u,g)=>{if(u.type==="decl"&&u.prop===r)return c(u,g)}):(c=r,this.walk((u,g)=>{if(u.type==="decl")return c(u,g)}))}walkRules(r,c){return c?r instanceof RegExp?this.walk((u,g)=>{if(u.type==="rule"&&r.test(u.selector))return c(u,g)}):this.walk((u,g)=>{if(u.type==="rule"&&u.selector===r)return c(u,g)}):(c=r,this.walk((u,g)=>{if(u.type==="rule")return c(u,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return l.registerParse=i=>{f=i},l.registerRule=i=>{a=i},l.registerAtRule=i=>{m=i},l.registerRoot=i=>{n=i},gt=l,l.default=l,l.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,m.prototype):i.type==="rule"?Object.setPrototypeOf(i,a.prototype):i.type==="decl"?Object.setPrototypeOf(i,p.prototype):i.type==="comment"?Object.setPrototypeOf(i,d.prototype):i.type==="root"&&Object.setPrototypeOf(i,n.prototype),i[o]=!0,i.nodes&&i.nodes.forEach(r=>{l.rebuild(r)})},gt}var yt,Gr;function Vt(){if(Gr)return yt;Gr=1;let e=Y(),o,p;class d extends e{constructor(f){super({type:"document",...f}),this.nodes||(this.nodes=[])}toResult(f={}){return new o(new p,this,f).stringify()}}return d.registerLazyResult=s=>{o=s},d.registerProcessor=s=>{p=s},yt=d,d.default=d,yt}var wt,Jr;function Ri(){if(Jr)return wt;Jr=1;class e{constructor(p,d={}){if(this.type="warning",this.text=p,d.node&&d.node.source){let s=d.node.rangeBy(d);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in d)this[s]=d[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return wt=e,e.default=e,wt}var bt,Vr;function Kt(){if(Vr)return bt;Vr=1;let e=Ri();class o{constructor(d,s,f){this.processor=d,this.messages=[],this.root=s,this.opts=f,this.css=void 0,this.map=void 0}toString(){return this.css}warn(d,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let f=new e(d,s);return this.messages.push(f),f}warnings(){return this.messages.filter(d=>d.type==="warning")}get content(){return this.css}}return bt=o,o.default=o,bt}var vt,Kr;function As(){if(Kr)return vt;Kr=1;const e=39,o=34,p=92,d=47,s=10,f=32,a=12,m=9,n=13,h=91,t=93,l=40,i=41,r=123,c=125,u=59,g=42,S=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,x=/[\da-f]/i;return vt=function(P,A={}){let E=P.css.valueOf(),T=A.ignoreErrors,N,O,te,G,z,L,U,re,$,M,ie=E.length,C=0,J=[],j=[];function Pe(){return C}function V(D){throw P.error("Unclosed "+D,C)}function Ae(){return j.length===0&&C>=ie}function Ne(D){if(j.length)return j.pop();if(C>=ie)return;let K=D?D.ignoreUnclosed:!1;switch(N=E.charCodeAt(C),N){case s:case f:case m:case n:case a:{O=C;do O+=1,N=E.charCodeAt(O);while(N===f||N===s||N===m||N===n||N===a);M=["space",E.slice(C,O)],C=O-1;break}case h:case t:case r:case c:case S:case u:case i:{let se=String.fromCharCode(N);M=[se,se,C];break}case l:{if(re=J.length?J.pop()[1]:"",$=E.charCodeAt(C+1),re==="url"&&$!==e&&$!==o&&$!==f&&$!==s&&$!==m&&$!==a&&$!==n){O=C;do{if(L=!1,O=E.indexOf(")",O+1),O===-1)if(T||K){O=C;break}else V("bracket");for(U=O;E.charCodeAt(U-1)===p;)U-=1,L=!L}while(L);M=["brackets",E.slice(C,O+1),C,O],C=O}else O=E.indexOf(")",C+1),G=E.slice(C,O+1),O===-1||y.test(G)?M=["(","(",C]:(M=["brackets",G,C,O],C=O);break}case e:case o:{te=N===e?"'":'"',O=C;do{if(L=!1,O=E.indexOf(te,O+1),O===-1)if(T||K){O=C+1;break}else V("string");for(U=O;E.charCodeAt(U-1)===p;)U-=1,L=!L}while(L);M=["string",E.slice(C,O+1),C,O],C=O;break}case b:{v.lastIndex=C+1,v.test(E),v.lastIndex===0?O=E.length-1:O=v.lastIndex-2,M=["at-word",E.slice(C,O+1),C,O],C=O;break}case p:{for(O=C,z=!0;E.charCodeAt(O+1)===p;)O+=1,z=!z;if(N=E.charCodeAt(O+1),z&&N!==d&&N!==f&&N!==s&&N!==m&&N!==n&&N!==a&&(O+=1,x.test(E.charAt(O)))){for(;x.test(E.charAt(O+1));)O+=1;E.charCodeAt(O+1)===f&&(O+=1)}M=["word",E.slice(C,O+1),C,O],C=O;break}default:{N===d&&E.charCodeAt(C+1)===g?(O=E.indexOf("*/",C+2)+1,O===0&&(T||K?O=E.length:V("comment")),M=["comment",E.slice(C,O+1),C,O],C=O):(w.lastIndex=C+1,w.test(E),w.lastIndex===0?O=E.length-1:O=w.lastIndex-2,M=["word",E.slice(C,O+1),C,O],J.push(M),C=O);break}}return C++,M}function Me(D){j.push(D)}return{back:Me,endOfFile:Ae,nextToken:Ne,position:Pe}},vt}var xt,Qr;function Qt(){if(Qr)return xt;Qr=1;let e=Y();class o extends e{constructor(d){super(d),this.type="atrule"}append(...d){return this.proxyOf.nodes||(this.nodes=[]),super.append(...d)}prepend(...d){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...d)}}return xt=o,o.default=o,e.registerAtRule(o),xt}var St,Yr;function oe(){if(Yr)return St;Yr=1;let e=Y(),o,p;class d extends e{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,a,m){let n=super.normalize(f);if(a){if(m==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let h of n)h.raws.before=a.raws.before}return n}removeChild(f,a){let m=this.index(f);return!a&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(f)}toResult(f={}){return new o(new p,this,f).stringify()}}return d.registerLazyResult=s=>{o=s},d.registerProcessor=s=>{p=s},St=d,d.default=d,e.registerRoot(d),St}var Rt,Xr;function Oi(){if(Xr)return Rt;Xr=1;let e={comma(o){return e.split(o,[","],!0)},space(o){let p=[" ",`
`,"	"];return e.split(o,p)},split(o,p,d){let s=[],f="",a=!1,m=0,n=!1,h="",t=!1;for(let l of o)t?t=!1:l==="\\"?t=!0:n?l===h&&(n=!1):l==='"'||l==="'"?(n=!0,h=l):l==="("?m+=1:l===")"?m>0&&(m-=1):m===0&&p.includes(l)&&(a=!0),a?(f!==""&&s.push(f.trim()),f="",a=!1):f+=l;return(d||f!=="")&&s.push(f.trim()),s}};return Rt=e,e.default=e,Rt}var Ot,Zr;function Yt(){if(Zr)return Ot;Zr=1;let e=Y(),o=Oi();class p extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return o.comma(this.selector)}set selectors(s){let f=this.selector?this.selector.match(/,\s*/):null,a=f?f[0]:","+this.raw("between","beforeOpen");this.selector=s.join(a)}}return Ot=p,p.default=p,e.registerRule(p),Ot}var Ct,ei;function Ns(){if(ei)return Ct;ei=1;let e=Oe(),o=As(),p=Ee(),d=Qt(),s=oe(),f=Yt();const a={empty:!0,space:!0};function m(h){for(let t=h.length-1;t>=0;t--){let l=h[t],i=l[3]||l[2];if(i)return i}}class n{constructor(t){this.input=t,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let l=new d;l.name=t[1].slice(1),l.name===""&&this.unnamedAtrule(l,t),this.init(l,t[2]);let i,r,c,u=!1,g=!1,S=[],b=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),i=t[0],i==="("||i==="["?b.push(i==="("?")":"]"):i==="{"&&b.length>0?b.push("}"):i===b[b.length-1]&&b.pop(),b.length===0)if(i===";"){l.source.end=this.getPosition(t[2]),l.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){g=!0;break}else if(i==="}"){if(S.length>0){for(c=S.length-1,r=S[c];r&&r[0]==="space";)r=S[--c];r&&(l.source.end=this.getPosition(r[3]||r[2]),l.source.end.offset++)}this.end(t);break}else S.push(t);else S.push(t);if(this.tokenizer.endOfFile()){u=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(S),S.length?(l.raws.afterName=this.spacesAndCommentsFromStart(S),this.raw(l,"params",S),u&&(t=S[S.length-1],l.source.end=this.getPosition(t[3]||t[2]),l.source.end.offset++,this.spaces=l.raws.between,l.raws.between="")):(l.raws.afterName="",l.params=""),g&&(l.nodes=[],this.current=l)}checkMissedSemicolon(t){let l=this.colon(t);if(l===!1)return;let i=0,r;for(let c=l-1;c>=0&&(r=t[c],!(r[0]!=="space"&&(i+=1,i===2)));c--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(t){let l=0,i,r,c;for(let[u,g]of t.entries()){if(i=g,r=i[0],r==="("&&(l+=1),r===")"&&(l-=1),l===0&&r===":")if(!c)this.doubleColon(i);else{if(c[0]==="word"&&c[1]==="progid")continue;return u}c=i}return!1}comment(t){let l=new p;this.init(l,t[2]),l.source.end=this.getPosition(t[3]||t[2]),l.source.end.offset++;let i=t[1].slice(2,-2);if(/^\s*$/.test(i))l.text="",l.raws.left=i,l.raws.right="";else{let r=i.match(/^(\s*)([^]*\S)(\s*)$/);l.text=r[2],l.raws.left=r[1],l.raws.right=r[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(t,l){let i=new e;this.init(i,t[0][2]);let r=t[t.length-1];for(r[0]===";"&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(r[3]||r[2]||m(t)),i.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop="";t.length;){let b=t[0][0];if(b===":"||b==="space"||b==="comment")break;i.prop+=t.shift()[1]}i.raws.between="";let c;for(;t.length;)if(c=t.shift(),c[0]===":"){i.raws.between+=c[1];break}else c[0]==="word"&&/\w/.test(c[1])&&this.unknownWord([c]),i.raws.between+=c[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let u=[],g;for(;t.length&&(g=t[0][0],!(g!=="space"&&g!=="comment"));)u.push(t.shift());this.precheckMissedSemicolon(t);for(let b=t.length-1;b>=0;b--){if(c=t[b],c[1].toLowerCase()==="!important"){i.important=!0;let v=this.stringFrom(t,b);v=this.spacesFromEnd(t)+v,v!==" !important"&&(i.raws.important=v);break}else if(c[1].toLowerCase()==="important"){let v=t.slice(0),w="";for(let y=b;y>0;y--){let x=v[y][0];if(w.trim().indexOf("!")===0&&x!=="space")break;w=v.pop()[1]+w}w.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=w,t=v)}if(c[0]!=="space"&&c[0]!=="comment")break}t.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(i.raws.between+=u.map(b=>b[1]).join(""),u=[]),this.raw(i,"value",u.concat(t),l),i.value.includes(":")&&!l&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let l=new f;this.init(l,t[2]),l.selector="",l.raws.between="",this.current=l}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let l=this.current.nodes[this.current.nodes.length-1];l&&l.type==="rule"&&!l.raws.ownSemicolon&&(l.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let l=this.input.fromOffset(t);return{column:l.col,line:l.line,offset:t}}init(t,l){this.current.push(t),t.source={input:this.input,start:this.getPosition(l)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let l=!1,i=null,r=!1,c=null,u=[],g=t[1].startsWith("--"),S=[],b=t;for(;b;){if(i=b[0],S.push(b),i==="("||i==="[")c||(c=b),u.push(i==="("?")":"]");else if(g&&r&&i==="{")c||(c=b),u.push("}");else if(u.length===0)if(i===";")if(r){this.decl(S,g);return}else break;else if(i==="{"){this.rule(S);return}else if(i==="}"){this.tokenizer.back(S.pop()),l=!0;break}else i===":"&&(r=!0);else i===u[u.length-1]&&(u.pop(),u.length===0&&(c=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(l=!0),u.length>0&&this.unclosedBracket(c),l&&r){if(!g)for(;S.length&&(b=S[S.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(S.pop());this.decl(S,g)}else this.unknownWord(S)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,l,i,r){let c,u,g=i.length,S="",b=!0,v,w;for(let y=0;y<g;y+=1)c=i[y],u=c[0],u==="space"&&y===g-1&&!r?b=!1:u==="comment"?(w=i[y-1]?i[y-1][0]:"empty",v=i[y+1]?i[y+1][0]:"empty",!a[w]&&!a[v]?S.slice(-1)===","?b=!1:S+=c[1]:b=!1):S+=c[1];if(!b){let y=i.reduce((x,R)=>x+R[1],"");t.raws[l]={raw:y,value:S}}t[l]=S}rule(t){t.pop();let l=new f;this.init(l,t[0][2]),l.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(l,"selector",t),this.current=l}spacesAndCommentsFromEnd(t){let l,i="";for(;t.length&&(l=t[t.length-1][0],!(l!=="space"&&l!=="comment"));)i=t.pop()[1]+i;return i}spacesAndCommentsFromStart(t){let l,i="";for(;t.length&&(l=t[0][0],!(l!=="space"&&l!=="comment"));)i+=t.shift()[1];return i}spacesFromEnd(t){let l,i="";for(;t.length&&(l=t[t.length-1][0],l==="space");)i=t.pop()[1]+i;return i}stringFrom(t,l){let i="";for(let r=l;r<t.length;r++)i+=t[r][1];return t.splice(l,t.length-l),i}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,l){throw this.input.error("At-rule without name",{offset:l[2]},{offset:l[2]+l[1].length})}}return Ct=n,Ct}var Et,ti;function Xt(){if(ti)return Et;ti=1;let e=Y(),o=Ns(),p=Ce();function d(s,f){let a=new p(s,f),m=new o(a);try{m.parse()}catch(n){throw n}return m.root}return Et=d,d.default=d,e.registerParse(d),Et}var Pt,ri;function Ci(){if(ri)return Pt;ri=1;let{isClean:e,my:o}=Jt(),p=Si(),d=Se(),s=Y(),f=Vt(),a=Kt(),m=Xt(),n=oe();const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},t={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},l={Once:!0,postcssPlugin:!0,prepare:!0},i=0;function r(v){return typeof v=="object"&&typeof v.then=="function"}function c(v){let w=!1,y=h[v.type];return v.type==="decl"?w=v.prop.toLowerCase():v.type==="atrule"&&(w=v.name.toLowerCase()),w&&v.append?[y,y+"-"+w,i,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:v.append?[y,i,y+"Exit"]:[y,y+"Exit"]}function u(v){let w;return v.type==="document"?w=["Document",i,"DocumentExit"]:v.type==="root"?w=["Root",i,"RootExit"]:w=c(v),{eventIndex:0,events:w,iterator:0,node:v,visitorIndex:0,visitors:[]}}function g(v){return v[e]=!1,v.nodes&&v.nodes.forEach(w=>g(w)),v}let S={};class b{constructor(w,y,x){this.stringified=!1,this.processed=!1;let R;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))R=g(y);else if(y instanceof b||y instanceof a)R=g(y.root),y.map&&(typeof x.map>"u"&&(x.map={}),x.map.inline||(x.map.inline=!1),x.map.prev=y.map);else{let P=m;x.syntax&&(P=x.syntax.parse),x.parser&&(P=x.parser),P.parse&&(P=P.parse);try{R=P(y,x)}catch(A){this.processed=!0,this.error=A}R&&!R[o]&&s.rebuild(R)}this.result=new a(w,R,x),this.helpers={...S,postcss:S,result:this.result},this.plugins=this.processor.plugins.map(P=>typeof P=="object"&&P.prepare?{...P,...P.prepare(this.result)}:P)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let x=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=x.postcssPlugin,w.setMessage()):x.postcssVersion}catch(R){console&&console.error&&console.error(R)}return w}prepareVisitors(){this.listeners={};let w=(y,x,R)=>{this.listeners[x]||(this.listeners[x]=[]),this.listeners[x].push([y,R])};for(let y of this.plugins)if(typeof y=="object")for(let x in y){if(!t[x]&&/^[A-Z]/.test(x))throw new Error(`Unknown event ${x} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!l[x])if(typeof y[x]=="object")for(let R in y[x])R==="*"?w(y,x,y[x][R]):w(y,x+"-"+R.toLowerCase(),y[x][R]);else typeof y[x]=="function"&&w(y,x,y[x])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],x=this.runOnRoot(y);if(r(x))try{await x}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[u(w)];for(;y.length>0;){let x=this.visitTick(y);if(r(x))try{await x}catch(R){let P=y[y.length-1].node;throw this.handleError(R,P)}}}if(this.listeners.OnceExit)for(let[y,x]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let R=w.nodes.map(P=>x(P,this.helpers));await Promise.all(R)}else await x(w,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(x=>w.Once(x,this.helpers));return r(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=d;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let R=new p(y,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(r(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[x,R]of w){this.result.lastPlugin=x;let P;try{P=R(y,this.helpers)}catch(A){throw this.handleError(A,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(r(P))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:x,visitors:R}=y;if(x.type!=="root"&&x.type!=="document"&&!x.parent){w.pop();return}if(R.length>0&&y.visitorIndex<R.length){let[A,E]=R[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===R.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=A;try{return E(x.toProxy(),this.helpers)}catch(T){throw this.handleError(T,x)}}if(y.iterator!==0){let A=y.iterator,E;for(;E=x.nodes[x.indexes[A]];)if(x.indexes[A]+=1,!E[e]){E[e]=!0,w.push(u(E));return}y.iterator=0,delete x.indexes[A]}let P=y.events;for(;y.eventIndex<P.length;){let A=P[y.eventIndex];if(y.eventIndex+=1,A===i){x.nodes&&x.nodes.length&&(x[e]=!0,y.iterator=x.getIterator());return}else if(this.listeners[A]){y.visitors=this.listeners[A];return}}w.pop()}walkSync(w){w[e]=!0;let y=c(w);for(let x of y)if(x===i)w.nodes&&w.each(R=>{R[e]||this.walkSync(R)});else{let R=this.listeners[x];if(R&&this.visitSync(R,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return b.registerPostcss=v=>{S=v},Pt=b,b.default=b,n.registerLazyResult(b),f.registerLazyResult(b),Pt}var At,ii;function Ms(){if(ii)return At;ii=1;let e=Si(),o=Se(),p=Xt();const d=Kt();class s{constructor(a,m,n){m=m.toString(),this.stringified=!1,this._processor=a,this._css=m,this._opts=n,this._map=void 0;let h,t=o;this.result=new d(this._processor,h,this._opts),this.result.css=m;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let i=new e(t,h,this._opts,m);if(i.isMap()){let[r,c]=i.generate();r&&(this.result.css=r),c&&(this.result.map=c)}else i.clearAnnotation(),this.result.css=i.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,m){return this.async().then(a,m)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,m=p;try{a=m(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}}return At=s,s.default=s,At}var Nt,si;function _s(){if(si)return Nt;si=1;let e=Ms(),o=Ci(),p=Vt(),d=oe();class s{constructor(a=[]){this.version="8.4.38",this.plugins=this.normalize(a)}normalize(a){let m=[];for(let n of a)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))m=m.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)m.push(n);else if(typeof n=="function")m.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return m}process(a,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new e(this,a,m):new o(this,a,m)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return Nt=s,s.default=s,d.registerProcessor(s),p.registerProcessor(s),Nt}var Mt,ni;function Is(){if(ni)return Mt;ni=1;let e=Oe(),o=xi(),p=Ee(),d=Qt(),s=Ce(),f=oe(),a=Yt();function m(n,h){if(Array.isArray(n))return n.map(i=>m(i));let{inputs:t,...l}=n;if(t){h=[];for(let i of t){let r={...i,__proto__:s.prototype};r.map&&(r.map={...r.map,__proto__:o.prototype}),h.push(r)}}if(l.nodes&&(l.nodes=n.nodes.map(i=>m(i,h))),l.source){let{inputId:i,...r}=l.source;l.source=r,i!=null&&(l.source.input=h[i])}if(l.type==="root")return new f(l);if(l.type==="decl")return new e(l);if(l.type==="rule")return new a(l);if(l.type==="comment")return new p(l);if(l.type==="atrule")return new d(l);throw new Error("Unknown node type: "+n.type)}return Mt=m,m.default=m,Mt}var _t,oi;function Ls(){if(oi)return _t;oi=1;let e=Gt(),o=Oe(),p=Ci(),d=Y(),s=_s(),f=Se(),a=Is(),m=Vt(),n=Ri(),h=Ee(),t=Qt(),l=Kt(),i=Ce(),r=Xt(),c=Oi(),u=Yt(),g=oe(),S=Re();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new s(v)}return b.plugin=function(w,y){let x=!1;function R(...A){console&&console.warn&&!x&&(x=!0,console.warn(w+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),me.LANG&&me.LANG.startsWith("cn")&&console.warn(w+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let E=y(...A);return E.postcssPlugin=w,E.postcssVersion=new s().version,E}let P;return Object.defineProperty(R,"postcss",{get(){return P||(P=R()),P}}),R.process=function(A,E,T){return b([R(T)]).process(A,E)},R},b.stringify=f,b.parse=r,b.fromJSON=a,b.list=c,b.comment=v=>new h(v),b.atRule=v=>new t(v),b.decl=v=>new o(v),b.rule=v=>new u(v),b.root=v=>new g(v),b.document=v=>new m(v),b.CssSyntaxError=e,b.Declaration=o,b.Container=d,b.Processor=s,b.Document=m,b.Comment=h,b.Warning=n,b.AtRule=t,b.Result=l,b.Input=i,b.Rule=u,b.Root=g,b.Node=S,p.registerPostcss(b),_t=b,b.default=b,_t}var $s=Ls();const I=Ss($s);I.stringify;I.fromJSON;I.plugin;I.parse;I.list;I.document;I.comment;I.atRule;I.rule;I.decl;I.root;I.CssSyntaxError;I.Declaration;I.Container;I.Processor;I.Document;I.Comment;I.Warning;I.AtRule;I.Result;I.Input;I.Rule;I.Root;I.Node;class Zt{constructor(...o){k(this,"parentElement",null),k(this,"parentNode",null),k(this,"ownerDocument"),k(this,"firstChild",null),k(this,"lastChild",null),k(this,"previousSibling",null),k(this,"nextSibling",null),k(this,"ELEMENT_NODE",1),k(this,"TEXT_NODE",3),k(this,"nodeType"),k(this,"nodeName"),k(this,"RRNodeType")}get childNodes(){const o=[];let p=this.firstChild;for(;p;)o.push(p),p=p.nextSibling;return o}contains(o){if(o instanceof Zt){if(o.ownerDocument!==this.ownerDocument)return!1;if(o===this)return!0}else return!1;for(;o.parentNode;){if(o.parentNode===this)return!0;o=o.parentNode}return!1}appendChild(o){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(o,p){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(o){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const li={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ai={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},pe={};function Ts(e){var o,p;const d=(p=(o=globalThis?.Zone)==null?void 0:o.__symbol__)==null?void 0:p.call(o,e);if(d&&globalThis[d])return globalThis[d]}function er(e){if(pe[e])return pe[e];const o=Ts(e)||globalThis[e],p=o.prototype,d=e in li?li[e]:void 0,s=!!(d&&d.every(m=>{var n,h;return!!((h=(n=Object.getOwnPropertyDescriptor(p,m))==null?void 0:n.get)!=null&&h.toString().includes("[native code]"))})),f=e in ai?ai[e]:void 0,a=!!(f&&f.every(m=>{var n;return typeof p[m]=="function"&&((n=p[m])==null?void 0:n.toString().includes("[native code]"))}));if(s&&a)return pe[e]=o.prototype,o.prototype;try{const m=document.createElement("iframe");document.body.appendChild(m);const n=m.contentWindow;if(!n)return o.prototype;const h=n[e].prototype;return document.body.removeChild(m),h?pe[e]=h:p}catch{return p}}const It={};function H(e,o,p){var d;const s=`${e}.${String(p)}`;if(It[s])return It[s].call(o);const f=er(e),a=(d=Object.getOwnPropertyDescriptor(f,p))==null?void 0:d.get;return a?(It[s]=a,a.call(o)):o[p]}const Lt={};function Ei(e,o,p){const d=`${e}.${String(p)}`;if(Lt[d])return Lt[d].bind(o);const f=er(e)[p];return typeof f!="function"?o[p]:(Lt[d]=f,f.bind(o))}function Us(e){return H("Node",e,"childNodes")}function Ds(e){return H("Node",e,"parentNode")}function ks(e){return H("Node",e,"parentElement")}function qs(e){return H("Node",e,"textContent")}function Fs(e,o){return Ei("Node",e,"contains")(o)}function Bs(e){return Ei("Node",e,"getRootNode")()}function zs(e){return!e||!("host"in e)?null:H("ShadowRoot",e,"host")}function js(e){return e.styleSheets}function Ws(e){return!e||!("shadowRoot"in e)?null:H("Element",e,"shadowRoot")}function Hs(e,o){return H("Element",e,"querySelector")(o)}function Gs(e,o){return H("Element",e,"querySelectorAll")(o)}function Js(){return er("MutationObserver").constructor}const q={childNodes:Us,parentNode:Ds,parentElement:ks,textContent:qs,contains:Fs,getRootNode:Bs,host:zs,styleSheets:js,shadowRoot:Ws,querySelector:Hs,querySelectorAll:Gs,mutationObserver:Js};function Vs(e,o,p=document){const d={capture:!0,passive:!0};return p.addEventListener(e,o,d),()=>p.removeEventListener(e,o,d)}const ee=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`;let Ut={map:{},getId(){return console.error(ee),-1},getNode(){return console.error(ee),null},removeNodeFromMap(){console.error(ee)},has(){return console.error(ee),!1},reset(){console.error(ee)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Ut=new Proxy(Ut,{get(e,o,p){return o==="map"&&console.error(ee),Reflect.get(e,o,p)}}));function Ks(e,o,p={}){let d=null,s=0;return function(...f){const a=Date.now();!s&&p.leading===!1&&(s=a);const m=o-(a-s),n=this;m<=0||m>o?(d&&(clearTimeout(d),d=null),s=a,e.apply(n,f)):!d&&p.trailing!==!1&&(d=setTimeout(()=>{s=p.leading===!1?0:Date.now(),d=null,e.apply(n,f)},m))}}function Pi(e,o,p,d,s=window){const f=s.Object.getOwnPropertyDescriptor(e,o);return s.Object.defineProperty(e,o,d?p:{set(a){setTimeout(()=>{p.set.call(this,a)},0),f&&f.set&&f.set.call(this,a)}}),()=>Pi(e,o,f||{},!0)}function Qs(e,o,p){try{if(!(o in e))return()=>{};const d=e[o],s=p(d);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:d}})),e[o]=s,()=>{e[o]=d}}catch{return()=>{}}}let Ai=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Ai=()=>new Date().getTime());function Ys(e){var o,p,d,s;const f=e.document;return{left:f.scrollingElement?f.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:f.documentElement.scrollLeft||f?.body&&((o=q.parentElement(f.body))==null?void 0:o.scrollLeft)||((p=f?.body)==null?void 0:p.scrollLeft)||0,top:f.scrollingElement?f.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:f?.documentElement.scrollTop||f?.body&&((d=q.parentElement(f.body))==null?void 0:d.scrollTop)||((s=f?.body)==null?void 0:s.scrollTop)||0}}function Xs(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Zs(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ni(e){return e?e.nodeType===e.ELEMENT_NODE?e:q.parentElement(e):null}function en(e,o,p,d){if(!e)return!1;const s=Ni(e);if(!s)return!1;try{if(typeof o=="string"){if(s.classList.contains(o)||d&&s.closest("."+o)!==null)return!0}else if(Tt(s,o,d))return!0}catch{}return!!(p&&(s.matches(p)||d&&s.closest(p)!==null))}function tn(e,o){return o.getId(e)!==-1}function rn(e,o,p){return e.tagName==="TITLE"&&p.headTitleMutations?!0:o.getId(e)===os}function Mi(e,o){if(is(e))return!1;const p=o.getId(e);if(!o.has(p))return!0;const d=q.parentNode(e);return d&&d.nodeType===e.DOCUMENT_NODE?!1:d?Mi(d,o):!0}function sn(e){return!!e.changedTouches}function nn(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function on(e){const o={},p=(s,f)=>{const a={value:s,parent:f,children:[]};return o[s.node.id]=a,a},d=[];for(const s of e){const{nextId:f,parentId:a}=s;if(f&&f in o){const m=o[f];if(m.parent){const n=m.parent.children.indexOf(m);m.parent.children.splice(n,0,p(s,m.parent))}else{const n=d.indexOf(m);d.splice(n,0,p(s,null))}continue}if(a in o){const m=o[a];m.children.push(p(s,m));continue}d.push(p(s,null))}return d}function _i(e,o){o(e.value);for(let p=e.children.length-1;p>=0;p--)_i(e.children[p],o)}function ln(e,o){return!!(e.nodeName==="IFRAME"&&o.getMeta(e))}function an(e,o){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&o.getMeta(e))}function Ii(e,o){var p,d;const s=(d=(p=e.ownerDocument)==null?void 0:p.defaultView)==null?void 0:d.frameElement;if(!s||s===o)return{x:0,y:0,relativeScale:1,absoluteScale:1};const f=s.getBoundingClientRect(),a=Ii(s,o),m=f.height/s.clientHeight;return{x:f.x*a.relativeScale+a.x,y:f.y*a.relativeScale+a.y,relativeScale:m,absoluteScale:a.absoluteScale*m}}function un(e){return e?e instanceof Zt&&"shadowRoot"in e?!!e.shadowRoot:!!q.shadowRoot(e):!1}function Li(e,o){const p=e[o[0]];return o.length===1?p:Li(p.cssRules[o[1]].cssRules,o.slice(2))}function fn(e){const o=[...e],p=o.pop();return{positions:o,index:p}}function hn(e){const o=new Set,p=[];for(let d=e.length;d--;){const s=e[d];o.has(s.id)||(p.push(s),o.add(s.id))}return p}class cn{constructor(){_e(this,"id",1),_e(this,"styleIDMap",new WeakMap),_e(this,"idStyleMap",new Map)}getId(o){return this.styleIDMap.get(o)??-1}has(o){return this.styleIDMap.has(o)}add(o,p){if(this.has(o))return this.getId(o);let d;return p===void 0?d=this.id++:d=p,this.styleIDMap.set(o,d),this.idStyleMap.set(d,o),d}getStyle(o){return this.idStyleMap.get(o)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function $i(e){var o;let p=null;return"getRootNode"in e&&((o=q.getRootNode(e))==null?void 0:o.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&q.host(q.getRootNode(e))&&(p=q.host(q.getRootNode(e))),p}function Ti(e){let o=e,p;for(;p=$i(o);)o=p;return o}function Ui(e){const o=e.ownerDocument;if(!o)return!1;const p=Ti(e);return q.contains(o,p)}function pn(e){const o=e.ownerDocument;return o?q.contains(o,e)||Ui(e):!1}const dn=Object.freeze(Object.defineProperty({__proto__:null,StyleSheetMirror:cn,get _mirror(){return Ut},closestElementOfNode:Ni,getBaseDimension:Ii,getNestedRule:Li,getPositionsAndIndex:fn,getRootShadowHost:Ti,getShadowHost:$i,getWindowHeight:Xs,getWindowScroll:Ys,getWindowWidth:Zs,hasShadowRoot:un,hookSetter:Pi,inDom:pn,isAncestorRemoved:Mi,isBlocked:en,isIgnored:rn,isSerialized:tn,isSerializedIframe:ln,isSerializedStylesheet:an,iterateResolveTree:_i,legacy_isTouchEvent:sn,get nowTimestamp(){return Ai},on:Vs,patch:Qs,polyfill:nn,queueToResolveTrees:on,shadowHostInDom:Ui,throttle:Ks,uniqueTextMutations:hn},Symbol.toStringTag,{value:"Module"}));var ui="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",mn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var de=0;de<ui.length;de++)mn[ui.charCodeAt(de)]=de;const gn=`(function() {
  "use strict";
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
  for (var i = 0; i < chars.length; i++) {
    lookup[chars.charCodeAt(i)] = i;
  }
  var encode = function(arraybuffer) {
    var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";
    for (i2 = 0; i2 < len; i2 += 3) {
      base64 += chars[bytes[i2] >> 2];
      base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];
      base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];
      base64 += chars[bytes[i2 + 2] & 63];
    }
    if (len % 3 === 2) {
      base64 = base64.substring(0, base64.length - 1) + "=";
    } else if (len % 3 === 1) {
      base64 = base64.substring(0, base64.length - 2) + "==";
    }
    return base64;
  };
  const lastBlobMap = /* @__PURE__ */ new Map();
  const transparentBlobMap = /* @__PURE__ */ new Map();
  async function getTransparentBlobFor(width, height, dataURLOptions) {
    const id = \`\${width}-\${height}\`;
    if ("OffscreenCanvas" in globalThis) {
      if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);
      const offscreen = new OffscreenCanvas(width, height);
      offscreen.getContext("2d");
      const blob = await offscreen.convertToBlob(dataURLOptions);
      const arrayBuffer = await blob.arrayBuffer();
      const base64 = encode(arrayBuffer);
      transparentBlobMap.set(id, base64);
      return base64;
    } else {
      return "";
    }
  }
  const worker = self;
  worker.onmessage = async function(e) {
    if ("OffscreenCanvas" in globalThis) {
      const { id, bitmap, width, height, dataURLOptions } = e.data;
      const transparentBase64 = getTransparentBlobFor(
        width,
        height,
        dataURLOptions
      );
      const offscreen = new OffscreenCanvas(width, height);
      const ctx = offscreen.getContext("2d");
      ctx.drawImage(bitmap, 0, 0);
      bitmap.close();
      const blob = await offscreen.convertToBlob(dataURLOptions);
      const type = blob.type;
      const arrayBuffer = await blob.arrayBuffer();
      const base64 = encode(arrayBuffer);
      if (!lastBlobMap.has(id) && await transparentBase64 === base64) {
        lastBlobMap.set(id, base64);
        return worker.postMessage({ id });
      }
      if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });
      worker.postMessage({
        id,
        type,
        base64,
        width,
        height
      });
      lastBlobMap.set(id, base64);
    } else {
      return worker.postMessage({ id: e.data.id });
    }
  };
})();
//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
`;typeof self<"u"&&self.Blob&&new Blob([gn],{type:"text/javascript;charset=utf-8"});try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((tr=e.contentWindow)==null?void 0:tr.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}ns();var fi;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(fi||(fi={}));class X{constructor(o){le(this,"fileName"),le(this,"functionName"),le(this,"lineNumber"),le(this,"columnNumber"),this.fileName=o.fileName||"",this.functionName=o.functionName||"",this.lineNumber=o.lineNumber,this.columnNumber=o.columnNumber}toString(){const o=this.lineNumber||"",p=this.columnNumber||"";return this.functionName?`${this.functionName} (${this.fileName}:${o}:${p})`:`${this.fileName}:${o}:${p}`}}const yn=/(^|@)\S+:\d+/,hi=/^\s*at .*(\S+:\d+|\(native\))/m,wn=/^(eval@)?(\[native code])?$/,$t={parse:function(e){return e?typeof e.stacktrace<"u"||typeof e["opera#sourceloc"]<"u"?this.parseOpera(e):e.stack&&e.stack.match(hi)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(e.indexOf(":")===-1)return[e];const p=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!p)throw new Error(`Cannot parse given url: ${e}`);return[p[1],p[2]||void 0,p[3]||void 0]},parseV8OrIE:function(e){return e.stack.split(`
`).filter(function(p){return!!p.match(hi)},this).map(function(p){p.indexOf("(eval ")>-1&&(p=p.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));let d=p.replace(/^\s+/,"").replace(/\(eval code/g,"(");const s=d.match(/ (\((.+):(\d+):(\d+)\)$)/);d=s?d.replace(s[0],""):d;const f=d.split(/\s+/).slice(1),a=this.extractLocation(s?s[1]:f.pop()),m=f.join(" ")||void 0,n=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new X({functionName:m,fileName:n,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(e){return e.stack.split(`
`).filter(function(p){return!p.match(wn)},this).map(function(p){if(p.indexOf(" > eval")>-1&&(p=p.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),p.indexOf("@")===-1&&p.indexOf(":")===-1)return new X({functionName:p});{const d=/((.*".+"[^@]*)?[^@]*)(?:@)/,s=p.match(d),f=s&&s[1]?s[1]:void 0,a=this.extractLocation(p.replace(d,""));return new X({functionName:f,fileName:a[0],lineNumber:a[1],columnNumber:a[2]})}},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf(`
`)>-1&&e.message.split(`
`).length>e.stacktrace.split(`
`).length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){const o=/Line (\d+).*script (?:in )?(\S+)/i,p=e.message.split(`
`),d=[];for(let s=2,f=p.length;s<f;s+=2){const a=o.exec(p[s]);a&&d.push(new X({fileName:a[2],lineNumber:parseFloat(a[1])}))}return d},parseOpera10:function(e){const o=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,p=e.stacktrace.split(`
`),d=[];for(let s=0,f=p.length;s<f;s+=2){const a=o.exec(p[s]);a&&d.push(new X({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return d},parseOpera11:function(e){return e.stack.split(`
`).filter(function(p){return!!p.match(yn)&&!p.match(/^Error created at/)},this).map(function(p){const d=p.split("@"),s=this.extractLocation(d.pop()),a=(d.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new X({functionName:a,fileName:s[0],lineNumber:s[1],columnNumber:s[2]})},this)}};function bn(e){if(!e||!e.outerHTML)return"";let o="";for(;e.parentElement;){let p=e.localName;if(!p)break;p=p.toLowerCase();const d=e.parentElement,s=[];if(d.children&&d.children.length>0)for(let f=0;f<d.children.length;f++){const a=d.children[f];a.localName&&a.localName.toLowerCase&&a.localName.toLowerCase()===p&&s.push(a)}s.length>1&&(p+=`:eq(${s.indexOf(e)})`),o=p+(o?">"+o:""),e=d}return o}function Dt(e){return Object.prototype.toString.call(e)==="[object Object]"}function Di(e,o){if(o===0)return!0;const p=Object.keys(e);for(const d of p)if(Dt(e[d])&&Di(e[d],o-1))return!0;return!1}function Z(e,o){const p={numOfKeysLimit:50,depthOfLimit:4};Object.assign(p,o);const d=[],s=[];return JSON.stringify(e,function(m,n){if(d.length>0){const h=d.indexOf(this);~h?d.splice(h+1):d.push(this),~h?s.splice(h,1/0,m):s.push(m),~d.indexOf(n)&&(d[0]===n?n="[Circular ~]":n="[Circular ~."+s.slice(0,d.indexOf(n)).join(".")+"]")}else d.push(n);if(n===null)return n;if(n===void 0)return"undefined";if(f(n))return a(n);if(typeof n=="bigint")return n.toString()+"n";if(n instanceof Event){const h={};for(const t in n){const l=n[t];Array.isArray(l)?h[t]=bn(l.length?l[0]:null):h[t]=l}return h}else{if(n instanceof Node)return n instanceof HTMLElement?n?n.outerHTML:"":n.nodeName;if(n instanceof Error)return n.stack?n.stack+`
End of stack for Error object`:n.name+": "+n.message}return n});function f(m){return!!(Dt(m)&&Object.keys(m).length>p.numOfKeysLimit||typeof m=="function"||Dt(m)&&Di(m,p.depthOfLimit))}function a(m){let n=m.toString();return p.stringLengthLimit&&n.length>p.stringLengthLimit&&(n=`${n.slice(0,p.stringLengthLimit)}...`),n}}const ci={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function vn(e,o,p){const d=p?Object.assign({},ci,p):ci,s=d.logger;if(!s)return()=>{};let f;typeof s=="string"?f=o[s]:f=s;let a=0,m=!1;const n=[];if(d.level.includes("error")){const t=i=>{const r=i.message,c=i.error,u=$t.parse(c).map(S=>S.toString()),g=[Z(r,d.stringifyOptions)];e({level:"error",trace:u,payload:g})};o.addEventListener("error",t),n.push(()=>{o.removeEventListener("error",t)});const l=i=>{let r,c;i.reason instanceof Error?(r=i.reason,c=[Z(`Uncaught (in promise) ${r.name}: ${r.message}`,d.stringifyOptions)]):(r=new Error,c=[Z("Uncaught (in promise)",d.stringifyOptions),Z(i.reason,d.stringifyOptions)]);const u=$t.parse(r).map(g=>g.toString());e({level:"error",trace:u,payload:c})};o.addEventListener("unhandledrejection",l),n.push(()=>{o.removeEventListener("unhandledrejection",l)})}for(const t of d.level)n.push(h(f,t));return()=>{n.forEach(t=>t())};function h(t,l){return t[l]?dn.patch(t,l,i=>(...r)=>{if(i.apply(this,r),!(l==="assert"&&r[0])&&!m){m=!0;try{const c=$t.parse(new Error).map(S=>S.toString()).splice(1),g=(l==="assert"?r.slice(1):r).map(S=>Z(S,d.stringifyOptions));a++,a<d.lengthThreshold?e({level:l,trace:c,payload:g}):a===d.lengthThreshold&&e({level:"warn",trace:[],payload:[Z("The number of log records reached the threshold.")]})}catch(c){i("rrweb logger error:",c,...r)}finally{m=!1}}}):()=>{}}}const xn="rrweb/console@1",Sn=e=>({name:xn,observer:vn,options:e});export{xn as PLUGIN_NAME,Sn as getRecordConsolePlugin};

```

---

## .output/public/_nuxt/z593H3Qg.js

```js
import{_ as s,u as a,o as i,c as u,a as e,t as o}from"./BMw6m4EL.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},status:{type:Number,default:500},statusText:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const n=t;return a({title:`${n.status} - ${n.statusText} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,r)=>(i(),u("div",l,[r[0]||(r[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.status)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},b=s(f,[["__scopeId","data-v-9469b13c"]]);export{b as default};

```

---

## .output/public/robots.txt

```txt
User-Agent: *
Disallow:

```

---

## .output/server/chunks/_/error-500.mjs

```mjs
import { escapeHtml } from '@vue/shared';

const _messages = {
	"appName": "Nuxt",
	"version": "",
	"status": 500,
	"statusText": "Server error",
	"description": "This page is temporarily unavailable."
};
const template = (messages) => {
	messages = {
		..._messages,
		...messages
	};
	return "<!DOCTYPE html><html lang=\"en\"><head><title>" + escapeHtml(messages.status) + " - " + escapeHtml(messages.statusText) + " | " + escapeHtml(messages.appName) + "</title><meta charset=\"utf-8\"><meta content=\"width=device-width,initial-scale=1.0,minimum-scale=1.0\" name=\"viewport\"><style>.spotlight{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);filter:blur(20vh)}*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:\"\"}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.fixed{position:fixed}.-bottom-1\\/2{bottom:-50%}.left-0{left:0}.right-0{right:0}.grid{display:grid}.mb-16{margin-bottom:4rem}.mb-8{margin-bottom:2rem}.h-1\\/2{height:50%}.max-w-520px{max-width:520px}.min-h-screen{min-height:100vh}.place-content-center{place-content:center}.overflow-hidden{overflow:hidden}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-8{padding-left:2rem;padding-right:2rem}.text-center{text-align:center}.text-8xl{font-size:6rem;line-height:1}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-black{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light{font-weight:300}.font-medium{font-weight:500}.leading-tight{line-height:1.25}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\\:bg-black{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\\:text-white{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\\:px-0{padding-left:0;padding-right:0}.sm\\:text-4xl{font-size:2.25rem;line-height:2.5rem}}</style><script>!function(){const e=document.createElement(\"link\").relList;if(!(e&&e.supports&&e.supports(\"modulepreload\"))){for(const e of document.querySelectorAll('link[rel=\"modulepreload\"]'))r(e);new MutationObserver(e=>{for(const o of e)if(\"childList\"===o.type)for(const e of o.addedNodes)\"LINK\"===e.tagName&&\"modulepreload\"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),\"use-credentials\"===e.crossOrigin?r.credentials=\"include\":\"anonymous\"===e.crossOrigin?r.credentials=\"omit\":r.credentials=\"same-origin\",r}(e);fetch(e.href,r)}}();<\/script></head><body class=\"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black\"><div class=\"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight\"></div><div class=\"max-w-520px text-center\"><h1 class=\"font-medium mb-8 sm:text-10xl text-8xl\">" + escapeHtml(messages.status) + "</h1><p class=\"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl\">" + escapeHtml(messages.description) + "</p></div></body></html>";
};

export { template };
//# sourceMappingURL=error-500.mjs.map

```

---

## .output/server/chunks/_/error-500.mjs.map

```map
{"version":3,"file":"error-500.mjs","sources":["../../../../node_modules/.pnpm/@nuxt+nitro-server@3.21.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@_b2c4b6af65a3b405b9ab78da468773bd/node_modules/@nuxt/nitro-server/dist/runtime/templates/error-500.mjs"],"names":[],"mappings":"","x_google_ignoreList":[0]}
```

---

## .output/server/chunks/_/users.mjs

```mjs
const users = /* @__PURE__ */ new Map();
function getOrCreateUser(username) {
  let user = users.get(username);
  if (!user) {
    user = {
      username,
      burritoConsiderations: 0
    };
    users.set(username, user);
  }
  return user;
}
function incrementBurritoConsiderations(username) {
  const user = users.get(username);
  if (!user) {
    throw new Error("User not found");
  }
  user.burritoConsiderations++;
  users.set(username, user);
  return { ...user };
}

export { getOrCreateUser as g, incrementBurritoConsiderations as i, users as u };
//# sourceMappingURL=users.mjs.map

```

---

## .output/server/chunks/_/users.mjs.map

```map
{"version":3,"file":"users.mjs","sources":["../../../../server/utils/users.ts"],"names":[],"mappings":"AAMO,MAAM,KAAA,uBAAY,GAAA;AAElB,SAAS,gBAAgB,QAAA,EAAwB;AACtD,EAAA,IAAI,IAAA,GAAO,KAAA,CAAM,GAAA,CAAI,QAAQ,CAAA;AAE7B,EAAA,IAAI,CAAC,IAAA,EAAM;AACT,IAAA,IAAA,GAAO;AAAA,MACL,QAAA;AAAA,MACA,qBAAA,EAAuB;AAAA,KACzB;AACA,IAAA,KAAA,CAAM,GAAA,CAAI,UAAU,IAAI,CAAA;AAAA,EAC1B;AAEA,EAAA,OAAO,IAAA;AACT;AAEO,SAAS,+BAA+B,QAAA,EAAwB;AACrE,EAAA,MAAM,IAAA,GAAO,KAAA,CAAM,GAAA,CAAI,QAAQ,CAAA;AAE/B,EAAA,IAAI,CAAC,IAAA,EAAM;AACT,IAAA,MAAM,IAAI,MAAM,gBAAgB,CAAA;AAAA,EAClC;AAEA,EAAA,IAAA,CAAK,qBAAA,EAAA;AACL,EAAA,KAAA,CAAM,GAAA,CAAI,UAAU,IAAI,CAAA;AAExB,EAAA,OAAO,EAAE,GAAG,IAAA,EAAK;AACnB;;;;"}
```

---

## .output/server/chunks/nitro/nitro.mjs

```mjs
import process from 'node:process';globalThis._importMeta_=globalThis._importMeta_||{url:"file:///_entry.js",env:process.env};import http, { Server as Server$1 } from 'node:http';
import https, { Server } from 'node:https';
import { EventEmitter } from 'node:events';
import { Buffer as Buffer$1 } from 'node:buffer';
import { promises, existsSync } from 'node:fs';
import { resolve as resolve$1, dirname as dirname$1, join } from 'node:path';
import { createHash } from 'node:crypto';
import { fileURLToPath } from 'node:url';

const suspectProtoRx = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/;
const suspectConstructorRx = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
const JsonSigRx = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
function jsonParseTransform(key, value) {
  if (key === "__proto__" || key === "constructor" && value && typeof value === "object" && "prototype" in value) {
    warnKeyDropped(key);
    return;
  }
  return value;
}
function warnKeyDropped(key) {
  console.warn(`[destr] Dropping "${key}" key to prevent prototype pollution.`);
}
function destr(value, options = {}) {
  if (typeof value !== "string") {
    return value;
  }
  if (value[0] === '"' && value[value.length - 1] === '"' && value.indexOf("\\") === -1) {
    return value.slice(1, -1);
  }
  const _value = value.trim();
  if (_value.length <= 9) {
    switch (_value.toLowerCase()) {
      case "true": {
        return true;
      }
      case "false": {
        return false;
      }
      case "undefined": {
        return void 0;
      }
      case "null": {
        return null;
      }
      case "nan": {
        return Number.NaN;
      }
      case "infinity": {
        return Number.POSITIVE_INFINITY;
      }
      case "-infinity": {
        return Number.NEGATIVE_INFINITY;
      }
    }
  }
  if (!JsonSigRx.test(value)) {
    if (options.strict) {
      throw new SyntaxError("[destr] Invalid JSON");
    }
    return value;
  }
  try {
    if (suspectProtoRx.test(value) || suspectConstructorRx.test(value)) {
      if (options.strict) {
        throw new Error("[destr] Possible prototype pollution");
      }
      return JSON.parse(value, jsonParseTransform);
    }
    return JSON.parse(value);
  } catch (error) {
    if (options.strict) {
      throw error;
    }
    return value;
  }
}

const HASH_RE = /#/g;
const AMPERSAND_RE = /&/g;
const SLASH_RE = /\//g;
const EQUAL_RE = /=/g;
const PLUS_RE = /\+/g;
const ENC_CARET_RE = /%5e/gi;
const ENC_BACKTICK_RE = /%60/gi;
const ENC_PIPE_RE = /%7c/gi;
const ENC_SPACE_RE = /%20/gi;
const ENC_SLASH_RE = /%2f/gi;
function encode(text) {
  return encodeURI("" + text).replace(ENC_PIPE_RE, "|");
}
function encodeQueryValue(input) {
  return encode(typeof input === "string" ? input : JSON.stringify(input)).replace(PLUS_RE, "%2B").replace(ENC_SPACE_RE, "+").replace(HASH_RE, "%23").replace(AMPERSAND_RE, "%26").replace(ENC_BACKTICK_RE, "`").replace(ENC_CARET_RE, "^").replace(SLASH_RE, "%2F");
}
function encodeQueryKey(text) {
  return encodeQueryValue(text).replace(EQUAL_RE, "%3D");
}
function decode(text = "") {
  try {
    return decodeURIComponent("" + text);
  } catch {
    return "" + text;
  }
}
function decodePath(text) {
  return decode(text.replace(ENC_SLASH_RE, "%252F"));
}
function decodeQueryKey(text) {
  return decode(text.replace(PLUS_RE, " "));
}
function decodeQueryValue(text) {
  return decode(text.replace(PLUS_RE, " "));
}

function parseQuery(parametersString = "") {
  const object = /* @__PURE__ */ Object.create(null);
  if (parametersString[0] === "?") {
    parametersString = parametersString.slice(1);
  }
  for (const parameter of parametersString.split("&")) {
    const s = parameter.match(/([^=]+)=?(.*)/) || [];
    if (s.length < 2) {
      continue;
    }
    const key = decodeQueryKey(s[1]);
    if (key === "__proto__" || key === "constructor") {
      continue;
    }
    const value = decodeQueryValue(s[2] || "");
    if (object[key] === void 0) {
      object[key] = value;
    } else if (Array.isArray(object[key])) {
      object[key].push(value);
    } else {
      object[key] = [object[key], value];
    }
  }
  return object;
}
function encodeQueryItem(key, value) {
  if (typeof value === "number" || typeof value === "boolean") {
    value = String(value);
  }
  if (!value) {
    return encodeQueryKey(key);
  }
  if (Array.isArray(value)) {
    return value.map(
      (_value) => `${encodeQueryKey(key)}=${encodeQueryValue(_value)}`
    ).join("&");
  }
  return `${encodeQueryKey(key)}=${encodeQueryValue(value)}`;
}
function stringifyQuery(query) {
  return Object.keys(query).filter((k) => query[k] !== void 0).map((k) => encodeQueryItem(k, query[k])).filter(Boolean).join("&");
}

const PROTOCOL_STRICT_REGEX = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/;
const PROTOCOL_REGEX = /^[\s\w\0+.-]{2,}:([/\\]{2})?/;
const PROTOCOL_RELATIVE_REGEX = /^([/\\]\s*){2,}[^/\\]/;
const PROTOCOL_SCRIPT_RE = /^[\s\0]*(blob|data|javascript|vbscript):$/i;
const TRAILING_SLASH_RE = /\/$|\/\?|\/#/;
const JOIN_LEADING_SLASH_RE = /^\.?\//;
function hasProtocol(inputString, opts = {}) {
  if (typeof opts === "boolean") {
    opts = { acceptRelative: opts };
  }
  if (opts.strict) {
    return PROTOCOL_STRICT_REGEX.test(inputString);
  }
  return PROTOCOL_REGEX.test(inputString) || (opts.acceptRelative ? PROTOCOL_RELATIVE_REGEX.test(inputString) : false);
}
function isScriptProtocol(protocol) {
  return !!protocol && PROTOCOL_SCRIPT_RE.test(protocol);
}
function hasTrailingSlash(input = "", respectQueryAndFragment) {
  if (!respectQueryAndFragment) {
    return input.endsWith("/");
  }
  return TRAILING_SLASH_RE.test(input);
}
function withoutTrailingSlash(input = "", respectQueryAndFragment) {
  if (!respectQueryAndFragment) {
    return (hasTrailingSlash(input) ? input.slice(0, -1) : input) || "/";
  }
  if (!hasTrailingSlash(input, true)) {
    return input || "/";
  }
  let path = input;
  let fragment = "";
  const fragmentIndex = input.indexOf("#");
  if (fragmentIndex !== -1) {
    path = input.slice(0, fragmentIndex);
    fragment = input.slice(fragmentIndex);
  }
  const [s0, ...s] = path.split("?");
  const cleanPath = s0.endsWith("/") ? s0.slice(0, -1) : s0;
  return (cleanPath || "/") + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
}
function withTrailingSlash(input = "", respectQueryAndFragment) {
  if (!respectQueryAndFragment) {
    return input.endsWith("/") ? input : input + "/";
  }
  if (hasTrailingSlash(input, true)) {
    return input || "/";
  }
  let path = input;
  let fragment = "";
  const fragmentIndex = input.indexOf("#");
  if (fragmentIndex !== -1) {
    path = input.slice(0, fragmentIndex);
    fragment = input.slice(fragmentIndex);
    if (!path) {
      return fragment;
    }
  }
  const [s0, ...s] = path.split("?");
  return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
}
function hasLeadingSlash(input = "") {
  return input.startsWith("/");
}
function withLeadingSlash(input = "") {
  return hasLeadingSlash(input) ? input : "/" + input;
}
function withBase(input, base) {
  if (isEmptyURL(base) || hasProtocol(input)) {
    return input;
  }
  const _base = withoutTrailingSlash(base);
  if (input.startsWith(_base)) {
    const nextChar = input[_base.length];
    if (!nextChar || nextChar === "/" || nextChar === "?") {
      return input;
    }
  }
  return joinURL(_base, input);
}
function withoutBase(input, base) {
  if (isEmptyURL(base)) {
    return input;
  }
  const _base = withoutTrailingSlash(base);
  if (!input.startsWith(_base)) {
    return input;
  }
  const nextChar = input[_base.length];
  if (nextChar && nextChar !== "/" && nextChar !== "?") {
    return input;
  }
  const trimmed = input.slice(_base.length);
  return trimmed[0] === "/" ? trimmed : "/" + trimmed;
}
function withQuery(input, query) {
  const parsed = parseURL(input);
  const mergedQuery = { ...parseQuery(parsed.search), ...query };
  parsed.search = stringifyQuery(mergedQuery);
  return stringifyParsedURL(parsed);
}
function getQuery$1(input) {
  return parseQuery(parseURL(input).search);
}
function isEmptyURL(url) {
  return !url || url === "/";
}
function isNonEmptyURL(url) {
  return url && url !== "/";
}
function joinURL(base, ...input) {
  let url = base || "";
  for (const segment of input.filter((url2) => isNonEmptyURL(url2))) {
    if (url) {
      const _segment = segment.replace(JOIN_LEADING_SLASH_RE, "");
      url = withTrailingSlash(url) + _segment;
    } else {
      url = segment;
    }
  }
  return url;
}
function joinRelativeURL(..._input) {
  const JOIN_SEGMENT_SPLIT_RE = /\/(?!\/)/;
  const input = _input.filter(Boolean);
  const segments = [];
  let segmentsDepth = 0;
  for (const i of input) {
    if (!i || i === "/") {
      continue;
    }
    for (const [sindex, s] of i.split(JOIN_SEGMENT_SPLIT_RE).entries()) {
      if (!s || s === ".") {
        continue;
      }
      if (s === "..") {
        if (segments.length === 1 && hasProtocol(segments[0])) {
          continue;
        }
        segments.pop();
        segmentsDepth--;
        continue;
      }
      if (sindex === 1 && segments[segments.length - 1]?.endsWith(":/")) {
        segments[segments.length - 1] += "/" + s;
        continue;
      }
      segments.push(s);
      segmentsDepth++;
    }
  }
  let url = segments.join("/");
  if (segmentsDepth >= 0) {
    if (input[0]?.startsWith("/") && !url.startsWith("/")) {
      url = "/" + url;
    } else if (input[0]?.startsWith("./") && !url.startsWith("./")) {
      url = "./" + url;
    }
  } else {
    url = "../".repeat(-1 * segmentsDepth) + url;
  }
  if (input[input.length - 1]?.endsWith("/") && !url.endsWith("/")) {
    url += "/";
  }
  return url;
}

const protocolRelative = Symbol.for("ufo:protocolRelative");
function parseURL(input = "", defaultProto) {
  const _specialProtoMatch = input.match(
    /^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i
  );
  if (_specialProtoMatch) {
    const [, _proto, _pathname = ""] = _specialProtoMatch;
    return {
      protocol: _proto.toLowerCase(),
      pathname: _pathname,
      href: _proto + _pathname,
      auth: "",
      host: "",
      search: "",
      hash: ""
    };
  }
  if (!hasProtocol(input, { acceptRelative: true })) {
    return parsePath(input);
  }
  const [, protocol = "", auth, hostAndPath = ""] = input.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || [];
  let [, host = "", path = ""] = hostAndPath.match(/([^#/?]*)(.*)?/) || [];
  if (protocol === "file:") {
    path = path.replace(/\/(?=[A-Za-z]:)/, "");
  }
  const { pathname, search, hash } = parsePath(path);
  return {
    protocol: protocol.toLowerCase(),
    auth: auth ? auth.slice(0, Math.max(0, auth.length - 1)) : "",
    host,
    pathname,
    search,
    hash,
    [protocolRelative]: !protocol
  };
}
function parsePath(input = "") {
  const [pathname = "", search = "", hash = ""] = (input.match(/([^#?]*)(\?[^#]*)?(#.*)?/) || []).splice(1);
  return {
    pathname,
    search,
    hash
  };
}
function stringifyParsedURL(parsed) {
  const pathname = parsed.pathname || "";
  const search = parsed.search ? (parsed.search.startsWith("?") ? "" : "?") + parsed.search : "";
  const hash = parsed.hash || "";
  const auth = parsed.auth ? parsed.auth + "@" : "";
  const host = parsed.host || "";
  const proto = parsed.protocol || parsed[protocolRelative] ? (parsed.protocol || "") + "//" : "";
  return proto + auth + host + pathname + search + hash;
}

const NODE_TYPES = {
  NORMAL: 0,
  WILDCARD: 1,
  PLACEHOLDER: 2
};

function createRouter$1(options = {}) {
  const ctx = {
    options,
    rootNode: createRadixNode(),
    staticRoutesMap: {}
  };
  const normalizeTrailingSlash = (p) => options.strictTrailingSlash ? p : p.replace(/\/$/, "") || "/";
  if (options.routes) {
    for (const path in options.routes) {
      insert(ctx, normalizeTrailingSlash(path), options.routes[path]);
    }
  }
  return {
    ctx,
    lookup: (path) => lookup(ctx, normalizeTrailingSlash(path)),
    insert: (path, data) => insert(ctx, normalizeTrailingSlash(path), data),
    remove: (path) => remove(ctx, normalizeTrailingSlash(path))
  };
}
function lookup(ctx, path) {
  const staticPathNode = ctx.staticRoutesMap[path];
  if (staticPathNode) {
    return staticPathNode.data;
  }
  const sections = path.split("/");
  const params = {};
  let paramsFound = false;
  let wildcardNode = null;
  let node = ctx.rootNode;
  let wildCardParam = null;
  for (let i = 0; i < sections.length; i++) {
    const section = sections[i];
    if (node.wildcardChildNode !== null) {
      wildcardNode = node.wildcardChildNode;
      wildCardParam = sections.slice(i).join("/");
    }
    const nextNode = node.children.get(section);
    if (nextNode === void 0) {
      if (node && node.placeholderChildren.length > 1) {
        const remaining = sections.length - i;
        node = node.placeholderChildren.find((c) => c.maxDepth === remaining) || null;
      } else {
        node = node.placeholderChildren[0] || null;
      }
      if (!node) {
        break;
      }
      if (node.paramName) {
        params[node.paramName] = section;
      }
      paramsFound = true;
    } else {
      node = nextNode;
    }
  }
  if ((node === null || node.data === null) && wildcardNode !== null) {
    node = wildcardNode;
    params[node.paramName || "_"] = wildCardParam;
    paramsFound = true;
  }
  if (!node) {
    return null;
  }
  if (paramsFound) {
    return {
      ...node.data,
      params: paramsFound ? params : void 0
    };
  }
  return node.data;
}
function insert(ctx, path, data) {
  let isStaticRoute = true;
  const sections = path.split("/");
  let node = ctx.rootNode;
  let _unnamedPlaceholderCtr = 0;
  const matchedNodes = [node];
  for (const section of sections) {
    let childNode;
    if (childNode = node.children.get(section)) {
      node = childNode;
    } else {
      const type = getNodeType(section);
      childNode = createRadixNode({ type, parent: node });
      node.children.set(section, childNode);
      if (type === NODE_TYPES.PLACEHOLDER) {
        childNode.paramName = section === "*" ? `_${_unnamedPlaceholderCtr++}` : section.slice(1);
        node.placeholderChildren.push(childNode);
        isStaticRoute = false;
      } else if (type === NODE_TYPES.WILDCARD) {
        node.wildcardChildNode = childNode;
        childNode.paramName = section.slice(
          3
          /* "**:" */
        ) || "_";
        isStaticRoute = false;
      }
      matchedNodes.push(childNode);
      node = childNode;
    }
  }
  for (const [depth, node2] of matchedNodes.entries()) {
    node2.maxDepth = Math.max(matchedNodes.length - depth, node2.maxDepth || 0);
  }
  node.data = data;
  if (isStaticRoute === true) {
    ctx.staticRoutesMap[path] = node;
  }
  return node;
}
function remove(ctx, path) {
  let success = false;
  const sections = path.split("/");
  let node = ctx.rootNode;
  for (const section of sections) {
    node = node.children.get(section);
    if (!node) {
      return success;
    }
  }
  if (node.data) {
    const lastSection = sections.at(-1) || "";
    node.data = null;
    if (Object.keys(node.children).length === 0 && node.parent) {
      node.parent.children.delete(lastSection);
      node.parent.wildcardChildNode = null;
      node.parent.placeholderChildren = [];
    }
    success = true;
  }
  return success;
}
function createRadixNode(options = {}) {
  return {
    type: options.type || NODE_TYPES.NORMAL,
    maxDepth: 0,
    parent: options.parent || null,
    children: /* @__PURE__ */ new Map(),
    data: options.data || null,
    paramName: options.paramName || null,
    wildcardChildNode: null,
    placeholderChildren: []
  };
}
function getNodeType(str) {
  if (str.startsWith("**")) {
    return NODE_TYPES.WILDCARD;
  }
  if (str[0] === ":" || str === "*") {
    return NODE_TYPES.PLACEHOLDER;
  }
  return NODE_TYPES.NORMAL;
}

function toRouteMatcher(router) {
  const table = _routerNodeToTable("", router.ctx.rootNode);
  return _createMatcher(table, router.ctx.options.strictTrailingSlash);
}
function _createMatcher(table, strictTrailingSlash) {
  return {
    ctx: { table },
    matchAll: (path) => _matchRoutes(path, table, strictTrailingSlash)
  };
}
function _createRouteTable() {
  return {
    static: /* @__PURE__ */ new Map(),
    wildcard: /* @__PURE__ */ new Map(),
    dynamic: /* @__PURE__ */ new Map()
  };
}
function _matchRoutes(path, table, strictTrailingSlash) {
  if (strictTrailingSlash !== true && path.endsWith("/")) {
    path = path.slice(0, -1) || "/";
  }
  const matches = [];
  for (const [key, value] of _sortRoutesMap(table.wildcard)) {
    if (path === key || path.startsWith(key + "/")) {
      matches.push(value);
    }
  }
  for (const [key, value] of _sortRoutesMap(table.dynamic)) {
    if (path.startsWith(key + "/")) {
      const subPath = "/" + path.slice(key.length).split("/").splice(2).join("/");
      matches.push(..._matchRoutes(subPath, value));
    }
  }
  const staticMatch = table.static.get(path);
  if (staticMatch) {
    matches.push(staticMatch);
  }
  return matches.filter(Boolean);
}
function _sortRoutesMap(m) {
  return [...m.entries()].sort((a, b) => a[0].length - b[0].length);
}
function _routerNodeToTable(initialPath, initialNode) {
  const table = _createRouteTable();
  function _addNode(path, node) {
    if (path) {
      if (node.type === NODE_TYPES.NORMAL && !(path.includes("*") || path.includes(":"))) {
        if (node.data) {
          table.static.set(path, node.data);
        }
      } else if (node.type === NODE_TYPES.WILDCARD) {
        table.wildcard.set(path.replace("/**", ""), node.data);
      } else if (node.type === NODE_TYPES.PLACEHOLDER) {
        const subTable = _routerNodeToTable("", node);
        if (node.data) {
          subTable.static.set("/", node.data);
        }
        table.dynamic.set(path.replace(/\/\*|\/:\w+/, ""), subTable);
        return;
      }
    }
    for (const [childPath, child] of node.children.entries()) {
      _addNode(`${path}/${childPath}`.replace("//", "/"), child);
    }
  }
  _addNode(initialPath, initialNode);
  return table;
}

function isPlainObject(value) {
  if (value === null || typeof value !== "object") {
    return false;
  }
  const prototype = Object.getPrototypeOf(value);
  if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
    return false;
  }
  if (Symbol.iterator in value) {
    return false;
  }
  if (Symbol.toStringTag in value) {
    return Object.prototype.toString.call(value) === "[object Module]";
  }
  return true;
}

function _defu(baseObject, defaults, namespace = ".", merger) {
  if (!isPlainObject(defaults)) {
    return _defu(baseObject, {}, namespace, merger);
  }
  const object = Object.assign({}, defaults);
  for (const key in baseObject) {
    if (key === "__proto__" || key === "constructor") {
      continue;
    }
    const value = baseObject[key];
    if (value === null || value === void 0) {
      continue;
    }
    if (merger && merger(object, key, value, namespace)) {
      continue;
    }
    if (Array.isArray(value) && Array.isArray(object[key])) {
      object[key] = [...value, ...object[key]];
    } else if (isPlainObject(value) && isPlainObject(object[key])) {
      object[key] = _defu(
        value,
        object[key],
        (namespace ? `${namespace}.` : "") + key.toString(),
        merger
      );
    } else {
      object[key] = value;
    }
  }
  return object;
}
function createDefu(merger) {
  return (...arguments_) => (
    // eslint-disable-next-line unicorn/no-array-reduce
    arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
  );
}
const defu = createDefu();
const defuFn = createDefu((object, key, currentValue) => {
  if (object[key] !== void 0 && typeof currentValue === "function") {
    object[key] = currentValue(object[key]);
    return true;
  }
});

function o(n){throw new Error(`${n} is not implemented yet!`)}let i$1 = class i extends EventEmitter{__unenv__={};readableEncoding=null;readableEnded=true;readableFlowing=false;readableHighWaterMark=0;readableLength=0;readableObjectMode=false;readableAborted=false;readableDidRead=false;closed=false;errored=null;readable=false;destroyed=false;static from(e,t){return new i(t)}constructor(e){super();}_read(e){}read(e){}setEncoding(e){return this}pause(){return this}resume(){return this}isPaused(){return  true}unpipe(e){return this}unshift(e,t){}wrap(e){return this}push(e,t){return  false}_destroy(e,t){this.removeAllListeners();}destroy(e){return this.destroyed=true,this._destroy(e),this}pipe(e,t){return {}}compose(e,t){throw new Error("Method not implemented.")}[Symbol.asyncDispose](){return this.destroy(),Promise.resolve()}async*[Symbol.asyncIterator](){throw o("Readable.asyncIterator")}iterator(e){throw o("Readable.iterator")}map(e,t){throw o("Readable.map")}filter(e,t){throw o("Readable.filter")}forEach(e,t){throw o("Readable.forEach")}reduce(e,t,r){throw o("Readable.reduce")}find(e,t){throw o("Readable.find")}findIndex(e,t){throw o("Readable.findIndex")}some(e,t){throw o("Readable.some")}toArray(e){throw o("Readable.toArray")}every(e,t){throw o("Readable.every")}flatMap(e,t){throw o("Readable.flatMap")}drop(e,t){throw o("Readable.drop")}take(e,t){throw o("Readable.take")}asIndexedPairs(e){throw o("Readable.asIndexedPairs")}};let l$1 = class l extends EventEmitter{__unenv__={};writable=true;writableEnded=false;writableFinished=false;writableHighWaterMark=0;writableLength=0;writableObjectMode=false;writableCorked=0;closed=false;errored=null;writableNeedDrain=false;writableAborted=false;destroyed=false;_data;_encoding="utf8";constructor(e){super();}pipe(e,t){return {}}_write(e,t,r){if(this.writableEnded){r&&r();return}if(this._data===void 0)this._data=e;else {const s=typeof this._data=="string"?Buffer$1.from(this._data,this._encoding||t||"utf8"):this._data,a=typeof e=="string"?Buffer$1.from(e,t||this._encoding||"utf8"):e;this._data=Buffer$1.concat([s,a]);}this._encoding=t,r&&r();}_writev(e,t){}_destroy(e,t){}_final(e){}write(e,t,r){const s=typeof t=="string"?this._encoding:"utf8",a=typeof t=="function"?t:typeof r=="function"?r:void 0;return this._write(e,s,a),true}setDefaultEncoding(e){return this}end(e,t,r){const s=typeof e=="function"?e:typeof t=="function"?t:typeof r=="function"?r:void 0;if(this.writableEnded)return s&&s(),this;const a=e===s?void 0:e;if(a){const u=t===s?void 0:t;this.write(a,u,s);}return this.writableEnded=true,this.writableFinished=true,this.emit("close"),this.emit("finish"),this}cork(){}uncork(){}destroy(e){return this.destroyed=true,delete this._data,this.removeAllListeners(),this}compose(e,t){throw new Error("Method not implemented.")}[Symbol.asyncDispose](){return Promise.resolve()}};const c=class{allowHalfOpen=true;_destroy;constructor(e=new i$1,t=new l$1){Object.assign(this,e),Object.assign(this,t),this._destroy=m(e._destroy,t._destroy);}};function _(){return Object.assign(c.prototype,i$1.prototype),Object.assign(c.prototype,l$1.prototype),c}function m(...n){return function(...e){for(const t of n)t(...e);}}const g=_();class A extends g{__unenv__={};bufferSize=0;bytesRead=0;bytesWritten=0;connecting=false;destroyed=false;pending=false;localAddress="";localPort=0;remoteAddress="";remoteFamily="";remotePort=0;autoSelectFamilyAttemptedAddresses=[];readyState="readOnly";constructor(e){super();}write(e,t,r){return  false}connect(e,t,r){return this}end(e,t,r){return this}setEncoding(e){return this}pause(){return this}resume(){return this}setTimeout(e,t){return this}setNoDelay(e){return this}setKeepAlive(e,t){return this}address(){return {}}unref(){return this}ref(){return this}destroySoon(){this.destroy();}resetAndDestroy(){const e=new Error("ERR_SOCKET_CLOSED");return e.code="ERR_SOCKET_CLOSED",this.destroy(e),this}}class y extends i$1{aborted=false;httpVersion="1.1";httpVersionMajor=1;httpVersionMinor=1;complete=true;connection;socket;headers={};trailers={};method="GET";url="/";statusCode=200;statusMessage="";closed=false;errored=null;readable=false;constructor(e){super(),this.socket=this.connection=e||new A;}get rawHeaders(){const e=this.headers,t=[];for(const r in e)if(Array.isArray(e[r]))for(const s of e[r])t.push(r,s);else t.push(r,e[r]);return t}get rawTrailers(){return []}setTimeout(e,t){return this}get headersDistinct(){return p(this.headers)}get trailersDistinct(){return p(this.trailers)}}function p(n){const e={};for(const[t,r]of Object.entries(n))t&&(e[t]=(Array.isArray(r)?r:[r]).filter(Boolean));return e}class w extends l$1{statusCode=200;statusMessage="";upgrading=false;chunkedEncoding=false;shouldKeepAlive=false;useChunkedEncodingByDefault=false;sendDate=false;finished=false;headersSent=false;strictContentLength=false;connection=null;socket=null;req;_headers={};constructor(e){super(),this.req=e;}assignSocket(e){e._httpMessage=this,this.socket=e,this.connection=e,this.emit("socket",e),this._flush();}_flush(){this.flushHeaders();}detachSocket(e){}writeContinue(e){}writeHead(e,t,r){e&&(this.statusCode=e),typeof t=="string"&&(this.statusMessage=t,t=void 0);const s=r||t;if(s&&!Array.isArray(s))for(const a in s)this.setHeader(a,s[a]);return this.headersSent=true,this}writeProcessing(){}setTimeout(e,t){return this}appendHeader(e,t){e=e.toLowerCase();const r=this._headers[e],s=[...Array.isArray(r)?r:[r],...Array.isArray(t)?t:[t]].filter(Boolean);return this._headers[e]=s.length>1?s:s[0],this}setHeader(e,t){return this._headers[e.toLowerCase()]=t,this}setHeaders(e){for(const[t,r]of Object.entries(e))this.setHeader(t,r);return this}getHeader(e){return this._headers[e.toLowerCase()]}getHeaders(){return this._headers}getHeaderNames(){return Object.keys(this._headers)}hasHeader(e){return e.toLowerCase()in this._headers}removeHeader(e){delete this._headers[e.toLowerCase()];}addTrailers(e){}flushHeaders(){}writeEarlyHints(e,t){typeof t=="function"&&t();}}const E=(()=>{const n=function(){};return n.prototype=Object.create(null),n})();function R(n={}){const e=new E,t=Array.isArray(n)||H(n)?n:Object.entries(n);for(const[r,s]of t)if(s){if(e[r]===void 0){e[r]=s;continue}e[r]=[...Array.isArray(e[r])?e[r]:[e[r]],...Array.isArray(s)?s:[s]];}return e}function H(n){return typeof n?.entries=="function"}function v(n={}){if(n instanceof Headers)return n;const e=new Headers;for(const[t,r]of Object.entries(n))if(r!==void 0){if(Array.isArray(r)){for(const s of r)e.append(t,String(s));continue}e.set(t,String(r));}return e}const S=new Set([101,204,205,304]);async function b(n,e){const t=new y,r=new w(t);t.url=e.url?.toString()||"/";let s;if(!t.url.startsWith("/")){const d=new URL(t.url);s=d.host,t.url=d.pathname+d.search+d.hash;}t.method=e.method||"GET",t.headers=R(e.headers||{}),t.headers.host||(t.headers.host=e.host||s||"localhost"),t.connection.encrypted=t.connection.encrypted||e.protocol==="https",t.body=e.body||null,t.__unenv__=e.context,await n(t,r);let a=r._data;(S.has(r.statusCode)||t.method.toUpperCase()==="HEAD")&&(a=null,delete r._headers["content-length"]);const u={status:r.statusCode,statusText:r.statusMessage,headers:r._headers,body:a};return t.destroy(),r.destroy(),u}async function C(n,e,t={}){try{const r=await b(n,{url:e,...t});return new Response(r.body,{status:r.status,statusText:r.statusText,headers:v(r.headers)})}catch(r){return new Response(r.toString(),{status:Number.parseInt(r.statusCode||r.code)||500,statusText:r.statusText})}}

function hasProp(obj, prop) {
  try {
    return prop in obj;
  } catch {
    return false;
  }
}

class H3Error extends Error {
  static __h3_error__ = true;
  statusCode = 500;
  fatal = false;
  unhandled = false;
  statusMessage;
  data;
  cause;
  constructor(message, opts = {}) {
    super(message, opts);
    if (opts.cause && !this.cause) {
      this.cause = opts.cause;
    }
  }
  toJSON() {
    const obj = {
      message: this.message,
      statusCode: sanitizeStatusCode(this.statusCode, 500)
    };
    if (this.statusMessage) {
      obj.statusMessage = sanitizeStatusMessage(this.statusMessage);
    }
    if (this.data !== void 0) {
      obj.data = this.data;
    }
    return obj;
  }
}
function createError$1(input) {
  if (typeof input === "string") {
    return new H3Error(input);
  }
  if (isError(input)) {
    return input;
  }
  const err = new H3Error(input.message ?? input.statusMessage ?? "", {
    cause: input.cause || input
  });
  if (hasProp(input, "stack")) {
    try {
      Object.defineProperty(err, "stack", {
        get() {
          return input.stack;
        }
      });
    } catch {
      try {
        err.stack = input.stack;
      } catch {
      }
    }
  }
  if (input.data) {
    err.data = input.data;
  }
  if (input.statusCode) {
    err.statusCode = sanitizeStatusCode(input.statusCode, err.statusCode);
  } else if (input.status) {
    err.statusCode = sanitizeStatusCode(input.status, err.statusCode);
  }
  if (input.statusMessage) {
    err.statusMessage = input.statusMessage;
  } else if (input.statusText) {
    err.statusMessage = input.statusText;
  }
  if (err.statusMessage) {
    const originalMessage = err.statusMessage;
    const sanitizedMessage = sanitizeStatusMessage(err.statusMessage);
    if (sanitizedMessage !== originalMessage) {
      console.warn(
        "[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default."
      );
    }
  }
  if (input.fatal !== void 0) {
    err.fatal = input.fatal;
  }
  if (input.unhandled !== void 0) {
    err.unhandled = input.unhandled;
  }
  return err;
}
function sendError(event, error, debug) {
  if (event.handled) {
    return;
  }
  const h3Error = isError(error) ? error : createError$1(error);
  const responseBody = {
    statusCode: h3Error.statusCode,
    statusMessage: h3Error.statusMessage,
    stack: [],
    data: h3Error.data
  };
  if (debug) {
    responseBody.stack = (h3Error.stack || "").split("\n").map((l) => l.trim());
  }
  if (event.handled) {
    return;
  }
  const _code = Number.parseInt(h3Error.statusCode);
  setResponseStatus(event, _code, h3Error.statusMessage);
  event.node.res.setHeader("content-type", MIMES.json);
  event.node.res.end(JSON.stringify(responseBody, void 0, 2));
}
function isError(input) {
  return input?.constructor?.__h3_error__ === true;
}

function getQuery(event) {
  return getQuery$1(event.path || "");
}
function isMethod(event, expected, allowHead) {
  if (typeof expected === "string") {
    if (event.method === expected) {
      return true;
    }
  } else if (expected.includes(event.method)) {
    return true;
  }
  return false;
}
function assertMethod(event, expected, allowHead) {
  if (!isMethod(event, expected)) {
    throw createError$1({
      statusCode: 405,
      statusMessage: "HTTP method is not allowed."
    });
  }
}
function getRequestHeaders(event) {
  const _headers = {};
  for (const key in event.node.req.headers) {
    const val = event.node.req.headers[key];
    _headers[key] = Array.isArray(val) ? val.filter(Boolean).join(", ") : val;
  }
  return _headers;
}
function getRequestHeader(event, name) {
  const headers = getRequestHeaders(event);
  const value = headers[name.toLowerCase()];
  return value;
}
function getRequestHost(event, opts = {}) {
  if (opts.xForwardedHost) {
    const _header = event.node.req.headers["x-forwarded-host"];
    const xForwardedHost = (_header || "").split(",").shift()?.trim();
    if (xForwardedHost) {
      return xForwardedHost;
    }
  }
  return event.node.req.headers.host || "localhost";
}
function getRequestProtocol(event, opts = {}) {
  if (opts.xForwardedProto !== false && event.node.req.headers["x-forwarded-proto"] === "https") {
    return "https";
  }
  return event.node.req.connection?.encrypted ? "https" : "http";
}
function getRequestURL(event, opts = {}) {
  const host = getRequestHost(event, opts);
  const protocol = getRequestProtocol(event, opts);
  const path = (event.node.req.originalUrl || event.path).replace(
    /^[/\\]+/g,
    "/"
  );
  return new URL(path, `${protocol}://${host}`);
}

const RawBodySymbol = Symbol.for("h3RawBody");
const ParsedBodySymbol = Symbol.for("h3ParsedBody");
const PayloadMethods$1 = ["PATCH", "POST", "PUT", "DELETE"];
function readRawBody(event, encoding = "utf8") {
  assertMethod(event, PayloadMethods$1);
  const _rawBody = event._requestBody || event.web?.request?.body || event.node.req[RawBodySymbol] || event.node.req.rawBody || event.node.req.body;
  if (_rawBody) {
    const promise2 = Promise.resolve(_rawBody).then((_resolved) => {
      if (Buffer.isBuffer(_resolved)) {
        return _resolved;
      }
      if (typeof _resolved.pipeTo === "function") {
        return new Promise((resolve, reject) => {
          const chunks = [];
          _resolved.pipeTo(
            new WritableStream({
              write(chunk) {
                chunks.push(chunk);
              },
              close() {
                resolve(Buffer.concat(chunks));
              },
              abort(reason) {
                reject(reason);
              }
            })
          ).catch(reject);
        });
      } else if (typeof _resolved.pipe === "function") {
        return new Promise((resolve, reject) => {
          const chunks = [];
          _resolved.on("data", (chunk) => {
            chunks.push(chunk);
          }).on("end", () => {
            resolve(Buffer.concat(chunks));
          }).on("error", reject);
        });
      }
      if (_resolved.constructor === Object) {
        return Buffer.from(JSON.stringify(_resolved));
      }
      if (_resolved instanceof URLSearchParams) {
        return Buffer.from(_resolved.toString());
      }
      if (_resolved instanceof FormData) {
        return new Response(_resolved).bytes().then((uint8arr) => Buffer.from(uint8arr));
      }
      return Buffer.from(_resolved);
    });
    return encoding ? promise2.then((buff) => buff.toString(encoding)) : promise2;
  }
  if (!Number.parseInt(event.node.req.headers["content-length"] || "") && !/\bchunked\b/i.test(
    String(event.node.req.headers["transfer-encoding"] ?? "")
  )) {
    return Promise.resolve(void 0);
  }
  const promise = event.node.req[RawBodySymbol] = new Promise(
    (resolve, reject) => {
      const bodyData = [];
      event.node.req.on("error", (err) => {
        reject(err);
      }).on("data", (chunk) => {
        bodyData.push(chunk);
      }).on("end", () => {
        resolve(Buffer.concat(bodyData));
      });
    }
  );
  const result = encoding ? promise.then((buff) => buff.toString(encoding)) : promise;
  return result;
}
async function readBody(event, options = {}) {
  const request = event.node.req;
  if (hasProp(request, ParsedBodySymbol)) {
    return request[ParsedBodySymbol];
  }
  const contentType = request.headers["content-type"] || "";
  const body = await readRawBody(event);
  let parsed;
  if (contentType === "application/json") {
    parsed = _parseJSON(body, options.strict ?? true);
  } else if (contentType.startsWith("application/x-www-form-urlencoded")) {
    parsed = _parseURLEncodedBody(body);
  } else if (contentType.startsWith("text/")) {
    parsed = body;
  } else {
    parsed = _parseJSON(body, options.strict ?? false);
  }
  request[ParsedBodySymbol] = parsed;
  return parsed;
}
function getRequestWebStream(event) {
  if (!PayloadMethods$1.includes(event.method)) {
    return;
  }
  const bodyStream = event.web?.request?.body || event._requestBody;
  if (bodyStream) {
    return bodyStream;
  }
  const _hasRawBody = RawBodySymbol in event.node.req || "rawBody" in event.node.req || "body" in event.node.req || "__unenv__" in event.node.req;
  if (_hasRawBody) {
    return new ReadableStream({
      async start(controller) {
        const _rawBody = await readRawBody(event, false);
        if (_rawBody) {
          controller.enqueue(_rawBody);
        }
        controller.close();
      }
    });
  }
  return new ReadableStream({
    start: (controller) => {
      event.node.req.on("data", (chunk) => {
        controller.enqueue(chunk);
      });
      event.node.req.on("end", () => {
        controller.close();
      });
      event.node.req.on("error", (err) => {
        controller.error(err);
      });
    }
  });
}
function _parseJSON(body = "", strict) {
  if (!body) {
    return void 0;
  }
  try {
    return destr(body, { strict });
  } catch {
    throw createError$1({
      statusCode: 400,
      statusMessage: "Bad Request",
      message: "Invalid JSON body"
    });
  }
}
function _parseURLEncodedBody(body) {
  const form = new URLSearchParams(body);
  const parsedForm = /* @__PURE__ */ Object.create(null);
  for (const [key, value] of form.entries()) {
    if (hasProp(parsedForm, key)) {
      if (!Array.isArray(parsedForm[key])) {
        parsedForm[key] = [parsedForm[key]];
      }
      parsedForm[key].push(value);
    } else {
      parsedForm[key] = value;
    }
  }
  return parsedForm;
}

function handleCacheHeaders(event, opts) {
  const cacheControls = ["public", ...opts.cacheControls || []];
  let cacheMatched = false;
  if (opts.maxAge !== void 0) {
    cacheControls.push(`max-age=${+opts.maxAge}`, `s-maxage=${+opts.maxAge}`);
  }
  if (opts.modifiedTime) {
    const modifiedTime = new Date(opts.modifiedTime);
    const ifModifiedSince = event.node.req.headers["if-modified-since"];
    event.node.res.setHeader("last-modified", modifiedTime.toUTCString());
    if (ifModifiedSince && new Date(ifModifiedSince) >= modifiedTime) {
      cacheMatched = true;
    }
  }
  if (opts.etag) {
    event.node.res.setHeader("etag", opts.etag);
    const ifNonMatch = event.node.req.headers["if-none-match"];
    if (ifNonMatch === opts.etag) {
      cacheMatched = true;
    }
  }
  event.node.res.setHeader("cache-control", cacheControls.join(", "));
  if (cacheMatched) {
    event.node.res.statusCode = 304;
    if (!event.handled) {
      event.node.res.end();
    }
    return true;
  }
  return false;
}

const MIMES = {
  html: "text/html",
  json: "application/json"
};

const DISALLOWED_STATUS_CHARS = /[^\u0009\u0020-\u007E]/g;
function sanitizeStatusMessage(statusMessage = "") {
  return statusMessage.replace(DISALLOWED_STATUS_CHARS, "");
}
function sanitizeStatusCode(statusCode, defaultStatusCode = 200) {
  if (!statusCode) {
    return defaultStatusCode;
  }
  if (typeof statusCode === "string") {
    statusCode = Number.parseInt(statusCode, 10);
  }
  if (statusCode < 100 || statusCode > 999) {
    return defaultStatusCode;
  }
  return statusCode;
}
function splitCookiesString(cookiesString) {
  if (Array.isArray(cookiesString)) {
    return cookiesString.flatMap((c) => splitCookiesString(c));
  }
  if (typeof cookiesString !== "string") {
    return [];
  }
  const cookiesStrings = [];
  let pos = 0;
  let start;
  let ch;
  let lastComma;
  let nextStart;
  let cookiesSeparatorFound;
  const skipWhitespace = () => {
    while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
      pos += 1;
    }
    return pos < cookiesString.length;
  };
  const notSpecialChar = () => {
    ch = cookiesString.charAt(pos);
    return ch !== "=" && ch !== ";" && ch !== ",";
  };
  while (pos < cookiesString.length) {
    start = pos;
    cookiesSeparatorFound = false;
    while (skipWhitespace()) {
      ch = cookiesString.charAt(pos);
      if (ch === ",") {
        lastComma = pos;
        pos += 1;
        skipWhitespace();
        nextStart = pos;
        while (pos < cookiesString.length && notSpecialChar()) {
          pos += 1;
        }
        if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
          cookiesSeparatorFound = true;
          pos = nextStart;
          cookiesStrings.push(cookiesString.slice(start, lastComma));
          start = pos;
        } else {
          pos = lastComma + 1;
        }
      } else {
        pos += 1;
      }
    }
    if (!cookiesSeparatorFound || pos >= cookiesString.length) {
      cookiesStrings.push(cookiesString.slice(start));
    }
  }
  return cookiesStrings;
}

const defer = typeof setImmediate === "undefined" ? (fn) => fn() : setImmediate;
function send(event, data, type) {
  if (type) {
    defaultContentType(event, type);
  }
  return new Promise((resolve) => {
    defer(() => {
      if (!event.handled) {
        event.node.res.end(data);
      }
      resolve();
    });
  });
}
function sendNoContent(event, code) {
  if (event.handled) {
    return;
  }
  if (!code && event.node.res.statusCode !== 200) {
    code = event.node.res.statusCode;
  }
  const _code = sanitizeStatusCode(code, 204);
  if (_code === 204) {
    event.node.res.removeHeader("content-length");
  }
  event.node.res.writeHead(_code);
  event.node.res.end();
}
function setResponseStatus(event, code, text) {
  if (code) {
    event.node.res.statusCode = sanitizeStatusCode(
      code,
      event.node.res.statusCode
    );
  }
  if (text) {
    event.node.res.statusMessage = sanitizeStatusMessage(text);
  }
}
function getResponseStatus(event) {
  return event.node.res.statusCode;
}
function getResponseStatusText(event) {
  return event.node.res.statusMessage;
}
function defaultContentType(event, type) {
  if (type && event.node.res.statusCode !== 304 && !event.node.res.getHeader("content-type")) {
    event.node.res.setHeader("content-type", type);
  }
}
function sendRedirect(event, location, code = 302) {
  event.node.res.statusCode = sanitizeStatusCode(
    code,
    event.node.res.statusCode
  );
  event.node.res.setHeader("location", location);
  const encodedLoc = location.replace(/"/g, "%22");
  const html = `<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0; url=${encodedLoc}"></head></html>`;
  return send(event, html, MIMES.html);
}
function getResponseHeader(event, name) {
  return event.node.res.getHeader(name);
}
function setResponseHeaders(event, headers) {
  for (const [name, value] of Object.entries(headers)) {
    event.node.res.setHeader(
      name,
      value
    );
  }
}
const setHeaders = setResponseHeaders;
function setResponseHeader(event, name, value) {
  event.node.res.setHeader(name, value);
}
function appendResponseHeader(event, name, value) {
  let current = event.node.res.getHeader(name);
  if (!current) {
    event.node.res.setHeader(name, value);
    return;
  }
  if (!Array.isArray(current)) {
    current = [current.toString()];
  }
  event.node.res.setHeader(name, [...current, value]);
}
function removeResponseHeader(event, name) {
  return event.node.res.removeHeader(name);
}
function isStream(data) {
  if (!data || typeof data !== "object") {
    return false;
  }
  if (typeof data.pipe === "function") {
    if (typeof data._read === "function") {
      return true;
    }
    if (typeof data.abort === "function") {
      return true;
    }
  }
  if (typeof data.pipeTo === "function") {
    return true;
  }
  return false;
}
function isWebResponse(data) {
  return typeof Response !== "undefined" && data instanceof Response;
}
function sendStream(event, stream) {
  if (!stream || typeof stream !== "object") {
    throw new Error("[h3] Invalid stream provided.");
  }
  event.node.res._data = stream;
  if (!event.node.res.socket) {
    event._handled = true;
    return Promise.resolve();
  }
  if (hasProp(stream, "pipeTo") && typeof stream.pipeTo === "function") {
    return stream.pipeTo(
      new WritableStream({
        write(chunk) {
          event.node.res.write(chunk);
        }
      })
    ).then(() => {
      event.node.res.end();
    });
  }
  if (hasProp(stream, "pipe") && typeof stream.pipe === "function") {
    return new Promise((resolve, reject) => {
      stream.pipe(event.node.res);
      if (stream.on) {
        stream.on("end", () => {
          event.node.res.end();
          resolve();
        });
        stream.on("error", (error) => {
          reject(error);
        });
      }
      event.node.res.on("close", () => {
        if (stream.abort) {
          stream.abort();
        }
      });
    });
  }
  throw new Error("[h3] Invalid or incompatible stream provided.");
}
function sendWebResponse(event, response) {
  for (const [key, value] of response.headers) {
    if (key === "set-cookie") {
      event.node.res.appendHeader(key, splitCookiesString(value));
    } else {
      event.node.res.setHeader(key, value);
    }
  }
  if (response.status) {
    event.node.res.statusCode = sanitizeStatusCode(
      response.status,
      event.node.res.statusCode
    );
  }
  if (response.statusText) {
    event.node.res.statusMessage = sanitizeStatusMessage(response.statusText);
  }
  if (response.redirected) {
    event.node.res.setHeader("location", response.url);
  }
  if (!response.body) {
    event.node.res.end();
    return;
  }
  return sendStream(event, response.body);
}

const PayloadMethods = /* @__PURE__ */ new Set(["PATCH", "POST", "PUT", "DELETE"]);
const ignoredHeaders = /* @__PURE__ */ new Set([
  "transfer-encoding",
  "accept-encoding",
  "connection",
  "keep-alive",
  "upgrade",
  "expect",
  "host",
  "accept"
]);
async function proxyRequest(event, target, opts = {}) {
  let body;
  let duplex;
  if (PayloadMethods.has(event.method)) {
    if (opts.streamRequest) {
      body = getRequestWebStream(event);
      duplex = "half";
    } else {
      body = await readRawBody(event, false).catch(() => void 0);
    }
  }
  const method = opts.fetchOptions?.method || event.method;
  const fetchHeaders = mergeHeaders$1(
    getProxyRequestHeaders(event, { host: target.startsWith("/") }),
    opts.fetchOptions?.headers,
    opts.headers
  );
  return sendProxy(event, target, {
    ...opts,
    fetchOptions: {
      method,
      body,
      duplex,
      ...opts.fetchOptions,
      headers: fetchHeaders
    }
  });
}
async function sendProxy(event, target, opts = {}) {
  let response;
  try {
    response = await _getFetch(opts.fetch)(target, {
      headers: opts.headers,
      ignoreResponseError: true,
      // make $ofetch.raw transparent
      ...opts.fetchOptions
    });
  } catch (error) {
    throw createError$1({
      status: 502,
      statusMessage: "Bad Gateway",
      cause: error
    });
  }
  event.node.res.statusCode = sanitizeStatusCode(
    response.status,
    event.node.res.statusCode
  );
  event.node.res.statusMessage = sanitizeStatusMessage(response.statusText);
  const cookies = [];
  for (const [key, value] of response.headers.entries()) {
    if (key === "content-encoding") {
      continue;
    }
    if (key === "content-length") {
      continue;
    }
    if (key === "set-cookie") {
      cookies.push(...splitCookiesString(value));
      continue;
    }
    event.node.res.setHeader(key, value);
  }
  if (cookies.length > 0) {
    event.node.res.setHeader(
      "set-cookie",
      cookies.map((cookie) => {
        if (opts.cookieDomainRewrite) {
          cookie = rewriteCookieProperty(
            cookie,
            opts.cookieDomainRewrite,
            "domain"
          );
        }
        if (opts.cookiePathRewrite) {
          cookie = rewriteCookieProperty(
            cookie,
            opts.cookiePathRewrite,
            "path"
          );
        }
        return cookie;
      })
    );
  }
  if (opts.onResponse) {
    await opts.onResponse(event, response);
  }
  if (response._data !== void 0) {
    return response._data;
  }
  if (event.handled) {
    return;
  }
  if (opts.sendStream === false) {
    const data = new Uint8Array(await response.arrayBuffer());
    return event.node.res.end(data);
  }
  if (response.body) {
    for await (const chunk of response.body) {
      event.node.res.write(chunk);
    }
  }
  return event.node.res.end();
}
function getProxyRequestHeaders(event, opts) {
  const headers = /* @__PURE__ */ Object.create(null);
  const reqHeaders = getRequestHeaders(event);
  for (const name in reqHeaders) {
    if (!ignoredHeaders.has(name) || name === "host" && opts?.host) {
      headers[name] = reqHeaders[name];
    }
  }
  return headers;
}
function fetchWithEvent(event, req, init, options) {
  return _getFetch(options?.fetch)(req, {
    ...init,
    context: init?.context || event.context,
    headers: {
      ...getProxyRequestHeaders(event, {
        host: typeof req === "string" && req.startsWith("/")
      }),
      ...init?.headers
    }
  });
}
function _getFetch(_fetch) {
  if (_fetch) {
    return _fetch;
  }
  if (globalThis.fetch) {
    return globalThis.fetch;
  }
  throw new Error(
    "fetch is not available. Try importing `node-fetch-native/polyfill` for Node.js."
  );
}
function rewriteCookieProperty(header, map, property) {
  const _map = typeof map === "string" ? { "*": map } : map;
  return header.replace(
    new RegExp(`(;\\s*${property}=)([^;]+)`, "gi"),
    (match, prefix, previousValue) => {
      let newValue;
      if (previousValue in _map) {
        newValue = _map[previousValue];
      } else if ("*" in _map) {
        newValue = _map["*"];
      } else {
        return match;
      }
      return newValue ? prefix + newValue : "";
    }
  );
}
function mergeHeaders$1(defaults, ...inputs) {
  const _inputs = inputs.filter(Boolean);
  if (_inputs.length === 0) {
    return defaults;
  }
  const merged = new Headers(defaults);
  for (const input of _inputs) {
    const entries = Array.isArray(input) ? input : typeof input.entries === "function" ? input.entries() : Object.entries(input);
    for (const [key, value] of entries) {
      if (value !== void 0) {
        merged.set(key, value);
      }
    }
  }
  return merged;
}

class H3Event {
  "__is_event__" = true;
  // Context
  node;
  // Node
  web;
  // Web
  context = {};
  // Shared
  // Request
  _method;
  _path;
  _headers;
  _requestBody;
  // Response
  _handled = false;
  // Hooks
  _onBeforeResponseCalled;
  _onAfterResponseCalled;
  constructor(req, res) {
    this.node = { req, res };
  }
  // --- Request ---
  get method() {
    if (!this._method) {
      this._method = (this.node.req.method || "GET").toUpperCase();
    }
    return this._method;
  }
  get path() {
    return this._path || this.node.req.url || "/";
  }
  get headers() {
    if (!this._headers) {
      this._headers = _normalizeNodeHeaders(this.node.req.headers);
    }
    return this._headers;
  }
  // --- Respoonse ---
  get handled() {
    return this._handled || this.node.res.writableEnded || this.node.res.headersSent;
  }
  respondWith(response) {
    return Promise.resolve(response).then(
      (_response) => sendWebResponse(this, _response)
    );
  }
  // --- Utils ---
  toString() {
    return `[${this.method}] ${this.path}`;
  }
  toJSON() {
    return this.toString();
  }
  // --- Deprecated ---
  /** @deprecated Please use `event.node.req` instead. */
  get req() {
    return this.node.req;
  }
  /** @deprecated Please use `event.node.res` instead. */
  get res() {
    return this.node.res;
  }
}
function isEvent(input) {
  return hasProp(input, "__is_event__");
}
function createEvent(req, res) {
  return new H3Event(req, res);
}
function _normalizeNodeHeaders(nodeHeaders) {
  const headers = new Headers();
  for (const [name, value] of Object.entries(nodeHeaders)) {
    if (Array.isArray(value)) {
      for (const item of value) {
        headers.append(name, item);
      }
    } else if (value) {
      headers.set(name, value);
    }
  }
  return headers;
}

function defineEventHandler(handler) {
  if (typeof handler === "function") {
    handler.__is_handler__ = true;
    return handler;
  }
  const _hooks = {
    onRequest: _normalizeArray(handler.onRequest),
    onBeforeResponse: _normalizeArray(handler.onBeforeResponse)
  };
  const _handler = (event) => {
    return _callHandler(event, handler.handler, _hooks);
  };
  _handler.__is_handler__ = true;
  _handler.__resolve__ = handler.handler.__resolve__;
  _handler.__websocket__ = handler.websocket;
  return _handler;
}
function _normalizeArray(input) {
  return input ? Array.isArray(input) ? input : [input] : void 0;
}
async function _callHandler(event, handler, hooks) {
  if (hooks.onRequest) {
    for (const hook of hooks.onRequest) {
      await hook(event);
      if (event.handled) {
        return;
      }
    }
  }
  const body = await handler(event);
  const response = { body };
  if (hooks.onBeforeResponse) {
    for (const hook of hooks.onBeforeResponse) {
      await hook(event, response);
    }
  }
  return response.body;
}
const eventHandler = defineEventHandler;
function isEventHandler(input) {
  return hasProp(input, "__is_handler__");
}
function toEventHandler(input, _, _route) {
  if (!isEventHandler(input)) {
    console.warn(
      "[h3] Implicit event handler conversion is deprecated. Use `eventHandler()` or `fromNodeMiddleware()` to define event handlers.",
      _route && _route !== "/" ? `
     Route: ${_route}` : "",
      `
     Handler: ${input}`
    );
  }
  return input;
}
function defineLazyEventHandler(factory) {
  let _promise;
  let _resolved;
  const resolveHandler = () => {
    if (_resolved) {
      return Promise.resolve(_resolved);
    }
    if (!_promise) {
      _promise = Promise.resolve(factory()).then((r) => {
        const handler2 = r.default || r;
        if (typeof handler2 !== "function") {
          throw new TypeError(
            "Invalid lazy handler result. It should be a function:",
            handler2
          );
        }
        _resolved = { handler: toEventHandler(r.default || r) };
        return _resolved;
      });
    }
    return _promise;
  };
  const handler = eventHandler((event) => {
    if (_resolved) {
      return _resolved.handler(event);
    }
    return resolveHandler().then((r) => r.handler(event));
  });
  handler.__resolve__ = resolveHandler;
  return handler;
}
const lazyEventHandler = defineLazyEventHandler;

function createApp(options = {}) {
  const stack = [];
  const handler = createAppEventHandler(stack, options);
  const resolve = createResolver(stack);
  handler.__resolve__ = resolve;
  const getWebsocket = cachedFn(() => websocketOptions(resolve, options));
  const app = {
    // @ts-expect-error
    use: (arg1, arg2, arg3) => use(app, arg1, arg2, arg3),
    resolve,
    handler,
    stack,
    options,
    get websocket() {
      return getWebsocket();
    }
  };
  return app;
}
function use(app, arg1, arg2, arg3) {
  if (Array.isArray(arg1)) {
    for (const i of arg1) {
      use(app, i, arg2, arg3);
    }
  } else if (Array.isArray(arg2)) {
    for (const i of arg2) {
      use(app, arg1, i, arg3);
    }
  } else if (typeof arg1 === "string") {
    app.stack.push(
      normalizeLayer({ ...arg3, route: arg1, handler: arg2 })
    );
  } else if (typeof arg1 === "function") {
    app.stack.push(normalizeLayer({ ...arg2, handler: arg1 }));
  } else {
    app.stack.push(normalizeLayer({ ...arg1 }));
  }
  return app;
}
function createAppEventHandler(stack, options) {
  const spacing = options.debug ? 2 : void 0;
  return eventHandler(async (event) => {
    event.node.req.originalUrl = event.node.req.originalUrl || event.node.req.url || "/";
    const _reqPath = event._path || event.node.req.url || "/";
    let _layerPath;
    if (options.onRequest) {
      await options.onRequest(event);
    }
    for (const layer of stack) {
      if (layer.route.length > 1) {
        if (!_reqPath.startsWith(layer.route)) {
          continue;
        }
        _layerPath = _reqPath.slice(layer.route.length) || "/";
      } else {
        _layerPath = _reqPath;
      }
      if (layer.match && !layer.match(_layerPath, event)) {
        continue;
      }
      event._path = _layerPath;
      event.node.req.url = _layerPath;
      const val = await layer.handler(event);
      const _body = val === void 0 ? void 0 : await val;
      if (_body !== void 0) {
        const _response = { body: _body };
        if (options.onBeforeResponse) {
          event._onBeforeResponseCalled = true;
          await options.onBeforeResponse(event, _response);
        }
        await handleHandlerResponse(event, _response.body, spacing);
        if (options.onAfterResponse) {
          event._onAfterResponseCalled = true;
          await options.onAfterResponse(event, _response);
        }
        return;
      }
      if (event.handled) {
        if (options.onAfterResponse) {
          event._onAfterResponseCalled = true;
          await options.onAfterResponse(event, void 0);
        }
        return;
      }
    }
    if (!event.handled) {
      throw createError$1({
        statusCode: 404,
        statusMessage: `Cannot find any path matching ${event.path || "/"}.`
      });
    }
    if (options.onAfterResponse) {
      event._onAfterResponseCalled = true;
      await options.onAfterResponse(event, void 0);
    }
  });
}
function createResolver(stack) {
  return async (path) => {
    let _layerPath;
    for (const layer of stack) {
      if (layer.route === "/" && !layer.handler.__resolve__) {
        continue;
      }
      if (!path.startsWith(layer.route)) {
        continue;
      }
      _layerPath = path.slice(layer.route.length) || "/";
      if (layer.match && !layer.match(_layerPath, void 0)) {
        continue;
      }
      let res = { route: layer.route, handler: layer.handler };
      if (res.handler.__resolve__) {
        const _res = await res.handler.__resolve__(_layerPath);
        if (!_res) {
          continue;
        }
        res = {
          ...res,
          ..._res,
          route: joinURL(res.route || "/", _res.route || "/")
        };
      }
      return res;
    }
  };
}
function normalizeLayer(input) {
  let handler = input.handler;
  if (handler.handler) {
    handler = handler.handler;
  }
  if (input.lazy) {
    handler = lazyEventHandler(handler);
  } else if (!isEventHandler(handler)) {
    handler = toEventHandler(handler, void 0, input.route);
  }
  return {
    route: withoutTrailingSlash(input.route),
    match: input.match,
    handler
  };
}
function handleHandlerResponse(event, val, jsonSpace) {
  if (val === null) {
    return sendNoContent(event);
  }
  if (val) {
    if (isWebResponse(val)) {
      return sendWebResponse(event, val);
    }
    if (isStream(val)) {
      return sendStream(event, val);
    }
    if (val.buffer) {
      return send(event, val);
    }
    if (val.arrayBuffer && typeof val.arrayBuffer === "function") {
      return val.arrayBuffer().then((arrayBuffer) => {
        return send(event, Buffer.from(arrayBuffer), val.type);
      });
    }
    if (val instanceof Error) {
      throw createError$1(val);
    }
    if (typeof val.end === "function") {
      return true;
    }
  }
  const valType = typeof val;
  if (valType === "string") {
    return send(event, val, MIMES.html);
  }
  if (valType === "object" || valType === "boolean" || valType === "number") {
    return send(event, JSON.stringify(val, void 0, jsonSpace), MIMES.json);
  }
  if (valType === "bigint") {
    return send(event, val.toString(), MIMES.json);
  }
  throw createError$1({
    statusCode: 500,
    statusMessage: `[h3] Cannot send ${valType} as response.`
  });
}
function cachedFn(fn) {
  let cache;
  return () => {
    if (!cache) {
      cache = fn();
    }
    return cache;
  };
}
function websocketOptions(evResolver, appOptions) {
  return {
    ...appOptions.websocket,
    async resolve(info) {
      const url = info.request?.url || info.url || "/";
      const { pathname } = typeof url === "string" ? parseURL(url) : url;
      const resolved = await evResolver(pathname);
      return resolved?.handler?.__websocket__ || {};
    }
  };
}

const RouterMethods = [
  "connect",
  "delete",
  "get",
  "head",
  "options",
  "post",
  "put",
  "trace",
  "patch"
];
function createRouter(opts = {}) {
  const _router = createRouter$1({});
  const routes = {};
  let _matcher;
  const router = {};
  const addRoute = (path, handler, method) => {
    let route = routes[path];
    if (!route) {
      routes[path] = route = { path, handlers: {} };
      _router.insert(path, route);
    }
    if (Array.isArray(method)) {
      for (const m of method) {
        addRoute(path, handler, m);
      }
    } else {
      route.handlers[method] = toEventHandler(handler, void 0, path);
    }
    return router;
  };
  router.use = router.add = (path, handler, method) => addRoute(path, handler, method || "all");
  for (const method of RouterMethods) {
    router[method] = (path, handle) => router.add(path, handle, method);
  }
  const matchHandler = (path = "/", method = "get") => {
    const qIndex = path.indexOf("?");
    if (qIndex !== -1) {
      path = path.slice(0, Math.max(0, qIndex));
    }
    const matched = _router.lookup(path);
    if (!matched || !matched.handlers) {
      return {
        error: createError$1({
          statusCode: 404,
          name: "Not Found",
          statusMessage: `Cannot find any route matching ${path || "/"}.`
        })
      };
    }
    let handler = matched.handlers[method] || matched.handlers.all;
    if (!handler) {
      if (!_matcher) {
        _matcher = toRouteMatcher(_router);
      }
      const _matches = _matcher.matchAll(path).reverse();
      for (const _match of _matches) {
        if (_match.handlers[method]) {
          handler = _match.handlers[method];
          matched.handlers[method] = matched.handlers[method] || handler;
          break;
        }
        if (_match.handlers.all) {
          handler = _match.handlers.all;
          matched.handlers.all = matched.handlers.all || handler;
          break;
        }
      }
    }
    if (!handler) {
      return {
        error: createError$1({
          statusCode: 405,
          name: "Method Not Allowed",
          statusMessage: `Method ${method} is not allowed on this route.`
        })
      };
    }
    return { matched, handler };
  };
  const isPreemptive = opts.preemptive || opts.preemtive;
  router.handler = eventHandler((event) => {
    const match = matchHandler(
      event.path,
      event.method.toLowerCase()
    );
    if ("error" in match) {
      if (isPreemptive) {
        throw match.error;
      } else {
        return;
      }
    }
    event.context.matchedRoute = match.matched;
    const params = match.matched.params || {};
    event.context.params = params;
    return Promise.resolve(match.handler(event)).then((res) => {
      if (res === void 0 && isPreemptive) {
        return null;
      }
      return res;
    });
  });
  router.handler.__resolve__ = async (path) => {
    path = withLeadingSlash(path);
    const match = matchHandler(path);
    if ("error" in match) {
      return;
    }
    let res = {
      route: match.matched.path,
      handler: match.handler
    };
    if (match.handler.__resolve__) {
      const _res = await match.handler.__resolve__(path);
      if (!_res) {
        return;
      }
      res = { ...res, ..._res };
    }
    return res;
  };
  return router;
}
function toNodeListener(app) {
  const toNodeHandle = async function(req, res) {
    const event = createEvent(req, res);
    try {
      await app.handler(event);
    } catch (_error) {
      const error = createError$1(_error);
      if (!isError(_error)) {
        error.unhandled = true;
      }
      setResponseStatus(event, error.statusCode, error.statusMessage);
      if (app.options.onError) {
        await app.options.onError(error, event);
      }
      if (event.handled) {
        return;
      }
      if (error.unhandled || error.fatal) {
        console.error("[h3]", error.fatal ? "[fatal]" : "[unhandled]", error);
      }
      if (app.options.onBeforeResponse && !event._onBeforeResponseCalled) {
        await app.options.onBeforeResponse(event, { body: error });
      }
      await sendError(event, error, !!app.options.debug);
      if (app.options.onAfterResponse && !event._onAfterResponseCalled) {
        await app.options.onAfterResponse(event, { body: error });
      }
    }
  };
  return toNodeHandle;
}

function flatHooks(configHooks, hooks = {}, parentName) {
  for (const key in configHooks) {
    const subHook = configHooks[key];
    const name = parentName ? `${parentName}:${key}` : key;
    if (typeof subHook === "object" && subHook !== null) {
      flatHooks(subHook, hooks, name);
    } else if (typeof subHook === "function") {
      hooks[name] = subHook;
    }
  }
  return hooks;
}
const defaultTask = { run: (function_) => function_() };
const _createTask = () => defaultTask;
const createTask = typeof console.createTask !== "undefined" ? console.createTask : _createTask;
function serialTaskCaller(hooks, args) {
  const name = args.shift();
  const task = createTask(name);
  return hooks.reduce(
    (promise, hookFunction) => promise.then(() => task.run(() => hookFunction(...args))),
    Promise.resolve()
  );
}
function parallelTaskCaller(hooks, args) {
  const name = args.shift();
  const task = createTask(name);
  return Promise.all(hooks.map((hook) => task.run(() => hook(...args))));
}
function callEachWith(callbacks, arg0) {
  for (const callback of [...callbacks]) {
    callback(arg0);
  }
}

class Hookable {
  constructor() {
    this._hooks = {};
    this._before = void 0;
    this._after = void 0;
    this._deprecatedMessages = void 0;
    this._deprecatedHooks = {};
    this.hook = this.hook.bind(this);
    this.callHook = this.callHook.bind(this);
    this.callHookWith = this.callHookWith.bind(this);
  }
  hook(name, function_, options = {}) {
    if (!name || typeof function_ !== "function") {
      return () => {
      };
    }
    const originalName = name;
    let dep;
    while (this._deprecatedHooks[name]) {
      dep = this._deprecatedHooks[name];
      name = dep.to;
    }
    if (dep && !options.allowDeprecated) {
      let message = dep.message;
      if (!message) {
        message = `${originalName} hook has been deprecated` + (dep.to ? `, please use ${dep.to}` : "");
      }
      if (!this._deprecatedMessages) {
        this._deprecatedMessages = /* @__PURE__ */ new Set();
      }
      if (!this._deprecatedMessages.has(message)) {
        console.warn(message);
        this._deprecatedMessages.add(message);
      }
    }
    if (!function_.name) {
      try {
        Object.defineProperty(function_, "name", {
          get: () => "_" + name.replace(/\W+/g, "_") + "_hook_cb",
          configurable: true
        });
      } catch {
      }
    }
    this._hooks[name] = this._hooks[name] || [];
    this._hooks[name].push(function_);
    return () => {
      if (function_) {
        this.removeHook(name, function_);
        function_ = void 0;
      }
    };
  }
  hookOnce(name, function_) {
    let _unreg;
    let _function = (...arguments_) => {
      if (typeof _unreg === "function") {
        _unreg();
      }
      _unreg = void 0;
      _function = void 0;
      return function_(...arguments_);
    };
    _unreg = this.hook(name, _function);
    return _unreg;
  }
  removeHook(name, function_) {
    if (this._hooks[name]) {
      const index = this._hooks[name].indexOf(function_);
      if (index !== -1) {
        this._hooks[name].splice(index, 1);
      }
      if (this._hooks[name].length === 0) {
        delete this._hooks[name];
      }
    }
  }
  deprecateHook(name, deprecated) {
    this._deprecatedHooks[name] = typeof deprecated === "string" ? { to: deprecated } : deprecated;
    const _hooks = this._hooks[name] || [];
    delete this._hooks[name];
    for (const hook of _hooks) {
      this.hook(name, hook);
    }
  }
  deprecateHooks(deprecatedHooks) {
    Object.assign(this._deprecatedHooks, deprecatedHooks);
    for (const name in deprecatedHooks) {
      this.deprecateHook(name, deprecatedHooks[name]);
    }
  }
  addHooks(configHooks) {
    const hooks = flatHooks(configHooks);
    const removeFns = Object.keys(hooks).map(
      (key) => this.hook(key, hooks[key])
    );
    return () => {
      for (const unreg of removeFns.splice(0, removeFns.length)) {
        unreg();
      }
    };
  }
  removeHooks(configHooks) {
    const hooks = flatHooks(configHooks);
    for (const key in hooks) {
      this.removeHook(key, hooks[key]);
    }
  }
  removeAllHooks() {
    for (const key in this._hooks) {
      delete this._hooks[key];
    }
  }
  callHook(name, ...arguments_) {
    arguments_.unshift(name);
    return this.callHookWith(serialTaskCaller, name, ...arguments_);
  }
  callHookParallel(name, ...arguments_) {
    arguments_.unshift(name);
    return this.callHookWith(parallelTaskCaller, name, ...arguments_);
  }
  callHookWith(caller, name, ...arguments_) {
    const event = this._before || this._after ? { name, args: arguments_, context: {} } : void 0;
    if (this._before) {
      callEachWith(this._before, event);
    }
    const result = caller(
      name in this._hooks ? [...this._hooks[name]] : [],
      arguments_
    );
    if (result instanceof Promise) {
      return result.finally(() => {
        if (this._after && event) {
          callEachWith(this._after, event);
        }
      });
    }
    if (this._after && event) {
      callEachWith(this._after, event);
    }
    return result;
  }
  beforeEach(function_) {
    this._before = this._before || [];
    this._before.push(function_);
    return () => {
      if (this._before !== void 0) {
        const index = this._before.indexOf(function_);
        if (index !== -1) {
          this._before.splice(index, 1);
        }
      }
    };
  }
  afterEach(function_) {
    this._after = this._after || [];
    this._after.push(function_);
    return () => {
      if (this._after !== void 0) {
        const index = this._after.indexOf(function_);
        if (index !== -1) {
          this._after.splice(index, 1);
        }
      }
    };
  }
}
function createHooks() {
  return new Hookable();
}

const s$1=globalThis.Headers,i=globalThis.AbortController,l=globalThis.fetch||(()=>{throw new Error("[node-fetch-native] Failed to fetch: `globalThis.fetch` is not available!")});

class FetchError extends Error {
  constructor(message, opts) {
    super(message, opts);
    this.name = "FetchError";
    if (opts?.cause && !this.cause) {
      this.cause = opts.cause;
    }
  }
}
function createFetchError(ctx) {
  const errorMessage = ctx.error?.message || ctx.error?.toString() || "";
  const method = ctx.request?.method || ctx.options?.method || "GET";
  const url = ctx.request?.url || String(ctx.request) || "/";
  const requestStr = `[${method}] ${JSON.stringify(url)}`;
  const statusStr = ctx.response ? `${ctx.response.status} ${ctx.response.statusText}` : "<no response>";
  const message = `${requestStr}: ${statusStr}${errorMessage ? ` ${errorMessage}` : ""}`;
  const fetchError = new FetchError(
    message,
    ctx.error ? { cause: ctx.error } : void 0
  );
  for (const key of ["request", "options", "response"]) {
    Object.defineProperty(fetchError, key, {
      get() {
        return ctx[key];
      }
    });
  }
  for (const [key, refKey] of [
    ["data", "_data"],
    ["status", "status"],
    ["statusCode", "status"],
    ["statusText", "statusText"],
    ["statusMessage", "statusText"]
  ]) {
    Object.defineProperty(fetchError, key, {
      get() {
        return ctx.response && ctx.response[refKey];
      }
    });
  }
  return fetchError;
}

const payloadMethods = new Set(
  Object.freeze(["PATCH", "POST", "PUT", "DELETE"])
);
function isPayloadMethod(method = "GET") {
  return payloadMethods.has(method.toUpperCase());
}
function isJSONSerializable(value) {
  if (value === void 0) {
    return false;
  }
  const t = typeof value;
  if (t === "string" || t === "number" || t === "boolean" || t === null) {
    return true;
  }
  if (t !== "object") {
    return false;
  }
  if (Array.isArray(value)) {
    return true;
  }
  if (value.buffer) {
    return false;
  }
  if (value instanceof FormData || value instanceof URLSearchParams) {
    return false;
  }
  return value.constructor && value.constructor.name === "Object" || typeof value.toJSON === "function";
}
const textTypes = /* @__PURE__ */ new Set([
  "image/svg",
  "application/xml",
  "application/xhtml",
  "application/html"
]);
const JSON_RE = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;
function detectResponseType(_contentType = "") {
  if (!_contentType) {
    return "json";
  }
  const contentType = _contentType.split(";").shift() || "";
  if (JSON_RE.test(contentType)) {
    return "json";
  }
  if (contentType === "text/event-stream") {
    return "stream";
  }
  if (textTypes.has(contentType) || contentType.startsWith("text/")) {
    return "text";
  }
  return "blob";
}
function resolveFetchOptions(request, input, defaults, Headers) {
  const headers = mergeHeaders(
    input?.headers ?? request?.headers,
    defaults?.headers,
    Headers
  );
  let query;
  if (defaults?.query || defaults?.params || input?.params || input?.query) {
    query = {
      ...defaults?.params,
      ...defaults?.query,
      ...input?.params,
      ...input?.query
    };
  }
  return {
    ...defaults,
    ...input,
    query,
    params: query,
    headers
  };
}
function mergeHeaders(input, defaults, Headers) {
  if (!defaults) {
    return new Headers(input);
  }
  const headers = new Headers(defaults);
  if (input) {
    for (const [key, value] of Symbol.iterator in input || Array.isArray(input) ? input : new Headers(input)) {
      headers.set(key, value);
    }
  }
  return headers;
}
async function callHooks(context, hooks) {
  if (hooks) {
    if (Array.isArray(hooks)) {
      for (const hook of hooks) {
        await hook(context);
      }
    } else {
      await hooks(context);
    }
  }
}

const retryStatusCodes = /* @__PURE__ */ new Set([
  408,
  // Request Timeout
  409,
  // Conflict
  425,
  // Too Early (Experimental)
  429,
  // Too Many Requests
  500,
  // Internal Server Error
  502,
  // Bad Gateway
  503,
  // Service Unavailable
  504
  // Gateway Timeout
]);
const nullBodyResponses = /* @__PURE__ */ new Set([101, 204, 205, 304]);
function createFetch(globalOptions = {}) {
  const {
    fetch = globalThis.fetch,
    Headers = globalThis.Headers,
    AbortController = globalThis.AbortController
  } = globalOptions;
  async function onError(context) {
    const isAbort = context.error && context.error.name === "AbortError" && !context.options.timeout || false;
    if (context.options.retry !== false && !isAbort) {
      let retries;
      if (typeof context.options.retry === "number") {
        retries = context.options.retry;
      } else {
        retries = isPayloadMethod(context.options.method) ? 0 : 1;
      }
      const responseCode = context.response && context.response.status || 500;
      if (retries > 0 && (Array.isArray(context.options.retryStatusCodes) ? context.options.retryStatusCodes.includes(responseCode) : retryStatusCodes.has(responseCode))) {
        const retryDelay = typeof context.options.retryDelay === "function" ? context.options.retryDelay(context) : context.options.retryDelay || 0;
        if (retryDelay > 0) {
          await new Promise((resolve) => setTimeout(resolve, retryDelay));
        }
        return $fetchRaw(context.request, {
          ...context.options,
          retry: retries - 1
        });
      }
    }
    const error = createFetchError(context);
    if (Error.captureStackTrace) {
      Error.captureStackTrace(error, $fetchRaw);
    }
    throw error;
  }
  const $fetchRaw = async function $fetchRaw2(_request, _options = {}) {
    const context = {
      request: _request,
      options: resolveFetchOptions(
        _request,
        _options,
        globalOptions.defaults,
        Headers
      ),
      response: void 0,
      error: void 0
    };
    if (context.options.method) {
      context.options.method = context.options.method.toUpperCase();
    }
    if (context.options.onRequest) {
      await callHooks(context, context.options.onRequest);
      if (!(context.options.headers instanceof Headers)) {
        context.options.headers = new Headers(
          context.options.headers || {}
          /* compat */
        );
      }
    }
    if (typeof context.request === "string") {
      if (context.options.baseURL) {
        context.request = withBase(context.request, context.options.baseURL);
      }
      if (context.options.query) {
        context.request = withQuery(context.request, context.options.query);
        delete context.options.query;
      }
      if ("query" in context.options) {
        delete context.options.query;
      }
      if ("params" in context.options) {
        delete context.options.params;
      }
    }
    if (context.options.body && isPayloadMethod(context.options.method)) {
      if (isJSONSerializable(context.options.body)) {
        const contentType = context.options.headers.get("content-type");
        if (typeof context.options.body !== "string") {
          context.options.body = contentType === "application/x-www-form-urlencoded" ? new URLSearchParams(
            context.options.body
          ).toString() : JSON.stringify(context.options.body);
        }
        if (!contentType) {
          context.options.headers.set("content-type", "application/json");
        }
        if (!context.options.headers.has("accept")) {
          context.options.headers.set("accept", "application/json");
        }
      } else if (
        // ReadableStream Body
        "pipeTo" in context.options.body && typeof context.options.body.pipeTo === "function" || // Node.js Stream Body
        typeof context.options.body.pipe === "function"
      ) {
        if (!("duplex" in context.options)) {
          context.options.duplex = "half";
        }
      }
    }
    let abortTimeout;
    if (!context.options.signal && context.options.timeout) {
      const controller = new AbortController();
      abortTimeout = setTimeout(() => {
        const error = new Error(
          "[TimeoutError]: The operation was aborted due to timeout"
        );
        error.name = "TimeoutError";
        error.code = 23;
        controller.abort(error);
      }, context.options.timeout);
      context.options.signal = controller.signal;
    }
    try {
      context.response = await fetch(
        context.request,
        context.options
      );
    } catch (error) {
      context.error = error;
      if (context.options.onRequestError) {
        await callHooks(
          context,
          context.options.onRequestError
        );
      }
      return await onError(context);
    } finally {
      if (abortTimeout) {
        clearTimeout(abortTimeout);
      }
    }
    const hasBody = (context.response.body || // https://github.com/unjs/ofetch/issues/324
    // https://github.com/unjs/ofetch/issues/294
    // https://github.com/JakeChampion/fetch/issues/1454
    context.response._bodyInit) && !nullBodyResponses.has(context.response.status) && context.options.method !== "HEAD";
    if (hasBody) {
      const responseType = (context.options.parseResponse ? "json" : context.options.responseType) || detectResponseType(context.response.headers.get("content-type") || "");
      switch (responseType) {
        case "json": {
          const data = await context.response.text();
          const parseFunction = context.options.parseResponse || destr;
          context.response._data = parseFunction(data);
          break;
        }
        case "stream": {
          context.response._data = context.response.body || context.response._bodyInit;
          break;
        }
        default: {
          context.response._data = await context.response[responseType]();
        }
      }
    }
    if (context.options.onResponse) {
      await callHooks(
        context,
        context.options.onResponse
      );
    }
    if (!context.options.ignoreResponseError && context.response.status >= 400 && context.response.status < 600) {
      if (context.options.onResponseError) {
        await callHooks(
          context,
          context.options.onResponseError
        );
      }
      return await onError(context);
    }
    return context.response;
  };
  const $fetch = async function $fetch2(request, options) {
    const r = await $fetchRaw(request, options);
    return r._data;
  };
  $fetch.raw = $fetchRaw;
  $fetch.native = (...args) => fetch(...args);
  $fetch.create = (defaultOptions = {}, customGlobalOptions = {}) => createFetch({
    ...globalOptions,
    ...customGlobalOptions,
    defaults: {
      ...globalOptions.defaults,
      ...customGlobalOptions.defaults,
      ...defaultOptions
    }
  });
  return $fetch;
}

function createNodeFetch() {
  const useKeepAlive = JSON.parse(process.env.FETCH_KEEP_ALIVE || "false");
  if (!useKeepAlive) {
    return l;
  }
  const agentOptions = { keepAlive: true };
  const httpAgent = new http.Agent(agentOptions);
  const httpsAgent = new https.Agent(agentOptions);
  const nodeFetchOptions = {
    agent(parsedURL) {
      return parsedURL.protocol === "http:" ? httpAgent : httpsAgent;
    }
  };
  return function nodeFetchWithKeepAlive(input, init) {
    return l(input, { ...nodeFetchOptions, ...init });
  };
}
const fetch = globalThis.fetch ? (...args) => globalThis.fetch(...args) : createNodeFetch();
const Headers$1 = globalThis.Headers || s$1;
const AbortController = globalThis.AbortController || i;
const ofetch = createFetch({ fetch, Headers: Headers$1, AbortController });
const $fetch = ofetch;

function wrapToPromise(value) {
  if (!value || typeof value.then !== "function") {
    return Promise.resolve(value);
  }
  return value;
}
function asyncCall(function_, ...arguments_) {
  try {
    return wrapToPromise(function_(...arguments_));
  } catch (error) {
    return Promise.reject(error);
  }
}
function isPrimitive(value) {
  const type = typeof value;
  return value === null || type !== "object" && type !== "function";
}
function isPureObject(value) {
  const proto = Object.getPrototypeOf(value);
  return !proto || proto.isPrototypeOf(Object);
}
function stringify(value) {
  if (isPrimitive(value)) {
    return String(value);
  }
  if (isPureObject(value) || Array.isArray(value)) {
    return JSON.stringify(value);
  }
  if (typeof value.toJSON === "function") {
    return stringify(value.toJSON());
  }
  throw new Error("[unstorage] Cannot stringify value!");
}
const BASE64_PREFIX = "base64:";
function serializeRaw(value) {
  if (typeof value === "string") {
    return value;
  }
  return BASE64_PREFIX + base64Encode(value);
}
function deserializeRaw(value) {
  if (typeof value !== "string") {
    return value;
  }
  if (!value.startsWith(BASE64_PREFIX)) {
    return value;
  }
  return base64Decode(value.slice(BASE64_PREFIX.length));
}
function base64Decode(input) {
  if (globalThis.Buffer) {
    return Buffer.from(input, "base64");
  }
  return Uint8Array.from(
    globalThis.atob(input),
    (c) => c.codePointAt(0)
  );
}
function base64Encode(input) {
  if (globalThis.Buffer) {
    return Buffer.from(input).toString("base64");
  }
  return globalThis.btoa(String.fromCodePoint(...input));
}

const storageKeyProperties = [
  "has",
  "hasItem",
  "get",
  "getItem",
  "getItemRaw",
  "set",
  "setItem",
  "setItemRaw",
  "del",
  "remove",
  "removeItem",
  "getMeta",
  "setMeta",
  "removeMeta",
  "getKeys",
  "clear",
  "mount",
  "unmount"
];
function prefixStorage(storage, base) {
  base = normalizeBaseKey(base);
  if (!base) {
    return storage;
  }
  const nsStorage = { ...storage };
  for (const property of storageKeyProperties) {
    nsStorage[property] = (key = "", ...args) => (
      // @ts-ignore
      storage[property](base + key, ...args)
    );
  }
  nsStorage.getKeys = (key = "", ...arguments_) => storage.getKeys(base + key, ...arguments_).then((keys) => keys.map((key2) => key2.slice(base.length)));
  nsStorage.keys = nsStorage.getKeys;
  nsStorage.getItems = async (items, commonOptions) => {
    const prefixedItems = items.map(
      (item) => typeof item === "string" ? base + item : { ...item, key: base + item.key }
    );
    const results = await storage.getItems(prefixedItems, commonOptions);
    return results.map((entry) => ({
      key: entry.key.slice(base.length),
      value: entry.value
    }));
  };
  nsStorage.setItems = async (items, commonOptions) => {
    const prefixedItems = items.map((item) => ({
      key: base + item.key,
      value: item.value,
      options: item.options
    }));
    return storage.setItems(prefixedItems, commonOptions);
  };
  return nsStorage;
}
function normalizeKey$1(key) {
  if (!key) {
    return "";
  }
  return key.split("?")[0]?.replace(/[/\\]/g, ":").replace(/:+/g, ":").replace(/^:|:$/g, "") || "";
}
function joinKeys(...keys) {
  return normalizeKey$1(keys.join(":"));
}
function normalizeBaseKey(base) {
  base = normalizeKey$1(base);
  return base ? base + ":" : "";
}
function filterKeyByDepth(key, depth) {
  if (depth === void 0) {
    return true;
  }
  let substrCount = 0;
  let index = key.indexOf(":");
  while (index > -1) {
    substrCount++;
    index = key.indexOf(":", index + 1);
  }
  return substrCount <= depth;
}
function filterKeyByBase(key, base) {
  if (base) {
    return key.startsWith(base) && key[key.length - 1] !== "$";
  }
  return key[key.length - 1] !== "$";
}

function defineDriver$1(factory) {
  return factory;
}

const DRIVER_NAME$1 = "memory";
const memory = defineDriver$1(() => {
  const data = /* @__PURE__ */ new Map();
  return {
    name: DRIVER_NAME$1,
    getInstance: () => data,
    hasItem(key) {
      return data.has(key);
    },
    getItem(key) {
      return data.get(key) ?? null;
    },
    getItemRaw(key) {
      return data.get(key) ?? null;
    },
    setItem(key, value) {
      data.set(key, value);
    },
    setItemRaw(key, value) {
      data.set(key, value);
    },
    removeItem(key) {
      data.delete(key);
    },
    getKeys() {
      return [...data.keys()];
    },
    clear() {
      data.clear();
    },
    dispose() {
      data.clear();
    }
  };
});

function createStorage(options = {}) {
  const context = {
    mounts: { "": options.driver || memory() },
    mountpoints: [""],
    watching: false,
    watchListeners: [],
    unwatch: {}
  };
  const getMount = (key) => {
    for (const base of context.mountpoints) {
      if (key.startsWith(base)) {
        return {
          base,
          relativeKey: key.slice(base.length),
          driver: context.mounts[base]
        };
      }
    }
    return {
      base: "",
      relativeKey: key,
      driver: context.mounts[""]
    };
  };
  const getMounts = (base, includeParent) => {
    return context.mountpoints.filter(
      (mountpoint) => mountpoint.startsWith(base) || includeParent && base.startsWith(mountpoint)
    ).map((mountpoint) => ({
      relativeBase: base.length > mountpoint.length ? base.slice(mountpoint.length) : void 0,
      mountpoint,
      driver: context.mounts[mountpoint]
    }));
  };
  const onChange = (event, key) => {
    if (!context.watching) {
      return;
    }
    key = normalizeKey$1(key);
    for (const listener of context.watchListeners) {
      listener(event, key);
    }
  };
  const startWatch = async () => {
    if (context.watching) {
      return;
    }
    context.watching = true;
    for (const mountpoint in context.mounts) {
      context.unwatch[mountpoint] = await watch(
        context.mounts[mountpoint],
        onChange,
        mountpoint
      );
    }
  };
  const stopWatch = async () => {
    if (!context.watching) {
      return;
    }
    for (const mountpoint in context.unwatch) {
      await context.unwatch[mountpoint]();
    }
    context.unwatch = {};
    context.watching = false;
  };
  const runBatch = (items, commonOptions, cb) => {
    const batches = /* @__PURE__ */ new Map();
    const getBatch = (mount) => {
      let batch = batches.get(mount.base);
      if (!batch) {
        batch = {
          driver: mount.driver,
          base: mount.base,
          items: []
        };
        batches.set(mount.base, batch);
      }
      return batch;
    };
    for (const item of items) {
      const isStringItem = typeof item === "string";
      const key = normalizeKey$1(isStringItem ? item : item.key);
      const value = isStringItem ? void 0 : item.value;
      const options2 = isStringItem || !item.options ? commonOptions : { ...commonOptions, ...item.options };
      const mount = getMount(key);
      getBatch(mount).items.push({
        key,
        value,
        relativeKey: mount.relativeKey,
        options: options2
      });
    }
    return Promise.all([...batches.values()].map((batch) => cb(batch))).then(
      (r) => r.flat()
    );
  };
  const storage = {
    // Item
    hasItem(key, opts = {}) {
      key = normalizeKey$1(key);
      const { relativeKey, driver } = getMount(key);
      return asyncCall(driver.hasItem, relativeKey, opts);
    },
    getItem(key, opts = {}) {
      key = normalizeKey$1(key);
      const { relativeKey, driver } = getMount(key);
      return asyncCall(driver.getItem, relativeKey, opts).then(
        (value) => destr(value)
      );
    },
    getItems(items, commonOptions = {}) {
      return runBatch(items, commonOptions, (batch) => {
        if (batch.driver.getItems) {
          return asyncCall(
            batch.driver.getItems,
            batch.items.map((item) => ({
              key: item.relativeKey,
              options: item.options
            })),
            commonOptions
          ).then(
            (r) => r.map((item) => ({
              key: joinKeys(batch.base, item.key),
              value: destr(item.value)
            }))
          );
        }
        return Promise.all(
          batch.items.map((item) => {
            return asyncCall(
              batch.driver.getItem,
              item.relativeKey,
              item.options
            ).then((value) => ({
              key: item.key,
              value: destr(value)
            }));
          })
        );
      });
    },
    getItemRaw(key, opts = {}) {
      key = normalizeKey$1(key);
      const { relativeKey, driver } = getMount(key);
      if (driver.getItemRaw) {
        return asyncCall(driver.getItemRaw, relativeKey, opts);
      }
      return asyncCall(driver.getItem, relativeKey, opts).then(
        (value) => deserializeRaw(value)
      );
    },
    async setItem(key, value, opts = {}) {
      if (value === void 0) {
        return storage.removeItem(key);
      }
      key = normalizeKey$1(key);
      const { relativeKey, driver } = getMount(key);
      if (!driver.setItem) {
        return;
      }
      await asyncCall(driver.setItem, relativeKey, stringify(value), opts);
      if (!driver.watch) {
        onChange("update", key);
      }
    },
    async setItems(items, commonOptions) {
      await runBatch(items, commonOptions, async (batch) => {
        if (batch.driver.setItems) {
          return asyncCall(
            batch.driver.setItems,
            batch.items.map((item) => ({
              key: item.relativeKey,
              value: stringify(item.value),
              options: item.options
            })),
            commonOptions
          );
        }
        if (!batch.driver.setItem) {
          return;
        }
        await Promise.all(
          batch.items.map((item) => {
            return asyncCall(
              batch.driver.setItem,
              item.relativeKey,
              stringify(item.value),
              item.options
            );
          })
        );
      });
    },
    async setItemRaw(key, value, opts = {}) {
      if (value === void 0) {
        return storage.removeItem(key, opts);
      }
      key = normalizeKey$1(key);
      const { relativeKey, driver } = getMount(key);
      if (driver.setItemRaw) {
        await asyncCall(driver.setItemRaw, relativeKey, value, opts);
      } else if (driver.setItem) {
        await asyncCall(driver.setItem, relativeKey, serializeRaw(value), opts);
      } else {
        return;
      }
      if (!driver.watch) {
        onChange("update", key);
      }
    },
    async removeItem(key, opts = {}) {
      if (typeof opts === "boolean") {
        opts = { removeMeta: opts };
      }
      key = normalizeKey$1(key);
      const { relativeKey, driver } = getMount(key);
      if (!driver.removeItem) {
        return;
      }
      await asyncCall(driver.removeItem, relativeKey, opts);
      if (opts.removeMeta || opts.removeMata) {
        await asyncCall(driver.removeItem, relativeKey + "$", opts);
      }
      if (!driver.watch) {
        onChange("remove", key);
      }
    },
    // Meta
    async getMeta(key, opts = {}) {
      if (typeof opts === "boolean") {
        opts = { nativeOnly: opts };
      }
      key = normalizeKey$1(key);
      const { relativeKey, driver } = getMount(key);
      const meta = /* @__PURE__ */ Object.create(null);
      if (driver.getMeta) {
        Object.assign(meta, await asyncCall(driver.getMeta, relativeKey, opts));
      }
      if (!opts.nativeOnly) {
        const value = await asyncCall(
          driver.getItem,
          relativeKey + "$",
          opts
        ).then((value_) => destr(value_));
        if (value && typeof value === "object") {
          if (typeof value.atime === "string") {
            value.atime = new Date(value.atime);
          }
          if (typeof value.mtime === "string") {
            value.mtime = new Date(value.mtime);
          }
          Object.assign(meta, value);
        }
      }
      return meta;
    },
    setMeta(key, value, opts = {}) {
      return this.setItem(key + "$", value, opts);
    },
    removeMeta(key, opts = {}) {
      return this.removeItem(key + "$", opts);
    },
    // Keys
    async getKeys(base, opts = {}) {
      base = normalizeBaseKey(base);
      const mounts = getMounts(base, true);
      let maskedMounts = [];
      const allKeys = [];
      let allMountsSupportMaxDepth = true;
      for (const mount of mounts) {
        if (!mount.driver.flags?.maxDepth) {
          allMountsSupportMaxDepth = false;
        }
        const rawKeys = await asyncCall(
          mount.driver.getKeys,
          mount.relativeBase,
          opts
        );
        for (const key of rawKeys) {
          const fullKey = mount.mountpoint + normalizeKey$1(key);
          if (!maskedMounts.some((p) => fullKey.startsWith(p))) {
            allKeys.push(fullKey);
          }
        }
        maskedMounts = [
          mount.mountpoint,
          ...maskedMounts.filter((p) => !p.startsWith(mount.mountpoint))
        ];
      }
      const shouldFilterByDepth = opts.maxDepth !== void 0 && !allMountsSupportMaxDepth;
      return allKeys.filter(
        (key) => (!shouldFilterByDepth || filterKeyByDepth(key, opts.maxDepth)) && filterKeyByBase(key, base)
      );
    },
    // Utils
    async clear(base, opts = {}) {
      base = normalizeBaseKey(base);
      await Promise.all(
        getMounts(base, false).map(async (m) => {
          if (m.driver.clear) {
            return asyncCall(m.driver.clear, m.relativeBase, opts);
          }
          if (m.driver.removeItem) {
            const keys = await m.driver.getKeys(m.relativeBase || "", opts);
            return Promise.all(
              keys.map((key) => m.driver.removeItem(key, opts))
            );
          }
        })
      );
    },
    async dispose() {
      await Promise.all(
        Object.values(context.mounts).map((driver) => dispose(driver))
      );
    },
    async watch(callback) {
      await startWatch();
      context.watchListeners.push(callback);
      return async () => {
        context.watchListeners = context.watchListeners.filter(
          (listener) => listener !== callback
        );
        if (context.watchListeners.length === 0) {
          await stopWatch();
        }
      };
    },
    async unwatch() {
      context.watchListeners = [];
      await stopWatch();
    },
    // Mount
    mount(base, driver) {
      base = normalizeBaseKey(base);
      if (base && context.mounts[base]) {
        throw new Error(`already mounted at ${base}`);
      }
      if (base) {
        context.mountpoints.push(base);
        context.mountpoints.sort((a, b) => b.length - a.length);
      }
      context.mounts[base] = driver;
      if (context.watching) {
        Promise.resolve(watch(driver, onChange, base)).then((unwatcher) => {
          context.unwatch[base] = unwatcher;
        }).catch(console.error);
      }
      return storage;
    },
    async unmount(base, _dispose = true) {
      base = normalizeBaseKey(base);
      if (!base || !context.mounts[base]) {
        return;
      }
      if (context.watching && base in context.unwatch) {
        context.unwatch[base]?.();
        delete context.unwatch[base];
      }
      if (_dispose) {
        await dispose(context.mounts[base]);
      }
      context.mountpoints = context.mountpoints.filter((key) => key !== base);
      delete context.mounts[base];
    },
    getMount(key = "") {
      key = normalizeKey$1(key) + ":";
      const m = getMount(key);
      return {
        driver: m.driver,
        base: m.base
      };
    },
    getMounts(base = "", opts = {}) {
      base = normalizeKey$1(base);
      const mounts = getMounts(base, opts.parents);
      return mounts.map((m) => ({
        driver: m.driver,
        base: m.mountpoint
      }));
    },
    // Aliases
    keys: (base, opts = {}) => storage.getKeys(base, opts),
    get: (key, opts = {}) => storage.getItem(key, opts),
    set: (key, value, opts = {}) => storage.setItem(key, value, opts),
    has: (key, opts = {}) => storage.hasItem(key, opts),
    del: (key, opts = {}) => storage.removeItem(key, opts),
    remove: (key, opts = {}) => storage.removeItem(key, opts)
  };
  return storage;
}
function watch(driver, onChange, base) {
  return driver.watch ? driver.watch((event, key) => onChange(event, base + key)) : () => {
  };
}
async function dispose(driver) {
  if (typeof driver.dispose === "function") {
    await asyncCall(driver.dispose);
  }
}

const _assets = {

};

const normalizeKey = function normalizeKey(key) {
  if (!key) {
    return "";
  }
  return key.split("?")[0]?.replace(/[/\\]/g, ":").replace(/:+/g, ":").replace(/^:|:$/g, "") || "";
};

const assets$1 = {
  getKeys() {
    return Promise.resolve(Object.keys(_assets))
  },
  hasItem (id) {
    id = normalizeKey(id);
    return Promise.resolve(id in _assets)
  },
  getItem (id) {
    id = normalizeKey(id);
    return Promise.resolve(_assets[id] ? _assets[id].import() : null)
  },
  getMeta (id) {
    id = normalizeKey(id);
    return Promise.resolve(_assets[id] ? _assets[id].meta : {})
  }
};

function defineDriver(factory) {
  return factory;
}
function createError(driver, message, opts) {
  const err = new Error(`[unstorage] [${driver}] ${message}`, opts);
  if (Error.captureStackTrace) {
    Error.captureStackTrace(err, createError);
  }
  return err;
}
function createRequiredError(driver, name) {
  if (Array.isArray(name)) {
    return createError(
      driver,
      `Missing some of the required options ${name.map((n) => "`" + n + "`").join(", ")}`
    );
  }
  return createError(driver, `Missing required option \`${name}\`.`);
}

function ignoreNotfound(err) {
  return err.code === "ENOENT" || err.code === "EISDIR" ? null : err;
}
function ignoreExists(err) {
  return err.code === "EEXIST" ? null : err;
}
async function writeFile(path, data, encoding) {
  await ensuredir(dirname$1(path));
  return promises.writeFile(path, data, encoding);
}
function readFile(path, encoding) {
  return promises.readFile(path, encoding).catch(ignoreNotfound);
}
function unlink(path) {
  return promises.unlink(path).catch(ignoreNotfound);
}
function readdir(dir) {
  return promises.readdir(dir, { withFileTypes: true }).catch(ignoreNotfound).then((r) => r || []);
}
async function ensuredir(dir) {
  if (existsSync(dir)) {
    return;
  }
  await ensuredir(dirname$1(dir)).catch(ignoreExists);
  await promises.mkdir(dir).catch(ignoreExists);
}
async function readdirRecursive(dir, ignore, maxDepth) {
  if (ignore && ignore(dir)) {
    return [];
  }
  const entries = await readdir(dir);
  const files = [];
  await Promise.all(
    entries.map(async (entry) => {
      const entryPath = resolve$1(dir, entry.name);
      if (entry.isDirectory()) {
        if (maxDepth === void 0 || maxDepth > 0) {
          const dirFiles = await readdirRecursive(
            entryPath,
            ignore,
            maxDepth === void 0 ? void 0 : maxDepth - 1
          );
          files.push(...dirFiles.map((f) => entry.name + "/" + f));
        }
      } else {
        if (!(ignore && ignore(entry.name))) {
          files.push(entry.name);
        }
      }
    })
  );
  return files;
}
async function rmRecursive(dir) {
  const entries = await readdir(dir);
  await Promise.all(
    entries.map((entry) => {
      const entryPath = resolve$1(dir, entry.name);
      if (entry.isDirectory()) {
        return rmRecursive(entryPath).then(() => promises.rmdir(entryPath));
      } else {
        return promises.unlink(entryPath);
      }
    })
  );
}

const PATH_TRAVERSE_RE = /\.\.:|\.\.$/;
const DRIVER_NAME = "fs-lite";
const unstorage_47drivers_47fs_45lite = defineDriver((opts = {}) => {
  if (!opts.base) {
    throw createRequiredError(DRIVER_NAME, "base");
  }
  opts.base = resolve$1(opts.base);
  const r = (key) => {
    if (PATH_TRAVERSE_RE.test(key)) {
      throw createError(
        DRIVER_NAME,
        `Invalid key: ${JSON.stringify(key)}. It should not contain .. segments`
      );
    }
    const resolved = join(opts.base, key.replace(/:/g, "/"));
    return resolved;
  };
  return {
    name: DRIVER_NAME,
    options: opts,
    flags: {
      maxDepth: true
    },
    hasItem(key) {
      return existsSync(r(key));
    },
    getItem(key) {
      return readFile(r(key), "utf8");
    },
    getItemRaw(key) {
      return readFile(r(key));
    },
    async getMeta(key) {
      const { atime, mtime, size, birthtime, ctime } = await promises.stat(r(key)).catch(() => ({}));
      return { atime, mtime, size, birthtime, ctime };
    },
    setItem(key, value) {
      if (opts.readOnly) {
        return;
      }
      return writeFile(r(key), value, "utf8");
    },
    setItemRaw(key, value) {
      if (opts.readOnly) {
        return;
      }
      return writeFile(r(key), value);
    },
    removeItem(key) {
      if (opts.readOnly) {
        return;
      }
      return unlink(r(key));
    },
    getKeys(_base, topts) {
      return readdirRecursive(r("."), opts.ignore, topts?.maxDepth);
    },
    async clear() {
      if (opts.readOnly || opts.noClear) {
        return;
      }
      await rmRecursive(r("."));
    }
  };
});

const storage = createStorage({});

storage.mount('/assets', assets$1);

storage.mount('data', unstorage_47drivers_47fs_45lite({"driver":"fsLite","base":"./.data/kv"}));

function useStorage(base = "") {
  return base ? prefixStorage(storage, base) : storage;
}

const e=globalThis.process?.getBuiltinModule?.("crypto")?.hash,r="sha256",s="base64url";function digest(t){if(e)return e(r,t,s);const o=createHash(r).update(t);return globalThis.process?.versions?.webcontainer?o.digest().toString(s):o.digest(s)}

const Hasher = /* @__PURE__ */ (() => {
  class Hasher2 {
    buff = "";
    #context = /* @__PURE__ */ new Map();
    write(str) {
      this.buff += str;
    }
    dispatch(value) {
      const type = value === null ? "null" : typeof value;
      return this[type](value);
    }
    object(object) {
      if (object && typeof object.toJSON === "function") {
        return this.object(object.toJSON());
      }
      const objString = Object.prototype.toString.call(object);
      let objType = "";
      const objectLength = objString.length;
      objType = objectLength < 10 ? "unknown:[" + objString + "]" : objString.slice(8, objectLength - 1);
      objType = objType.toLowerCase();
      let objectNumber = null;
      if ((objectNumber = this.#context.get(object)) === void 0) {
        this.#context.set(object, this.#context.size);
      } else {
        return this.dispatch("[CIRCULAR:" + objectNumber + "]");
      }
      if (typeof Buffer !== "undefined" && Buffer.isBuffer && Buffer.isBuffer(object)) {
        this.write("buffer:");
        return this.write(object.toString("utf8"));
      }
      if (objType !== "object" && objType !== "function" && objType !== "asyncfunction") {
        if (this[objType]) {
          this[objType](object);
        } else {
          this.unknown(object, objType);
        }
      } else {
        const keys = Object.keys(object).sort();
        const extraKeys = [];
        this.write("object:" + (keys.length + extraKeys.length) + ":");
        const dispatchForKey = (key) => {
          this.dispatch(key);
          this.write(":");
          this.dispatch(object[key]);
          this.write(",");
        };
        for (const key of keys) {
          dispatchForKey(key);
        }
        for (const key of extraKeys) {
          dispatchForKey(key);
        }
      }
    }
    array(arr, unordered) {
      unordered = unordered === void 0 ? false : unordered;
      this.write("array:" + arr.length + ":");
      if (!unordered || arr.length <= 1) {
        for (const entry of arr) {
          this.dispatch(entry);
        }
        return;
      }
      const contextAdditions = /* @__PURE__ */ new Map();
      const entries = arr.map((entry) => {
        const hasher = new Hasher2();
        hasher.dispatch(entry);
        for (const [key, value] of hasher.#context) {
          contextAdditions.set(key, value);
        }
        return hasher.toString();
      });
      this.#context = contextAdditions;
      entries.sort();
      return this.array(entries, false);
    }
    date(date) {
      return this.write("date:" + date.toJSON());
    }
    symbol(sym) {
      return this.write("symbol:" + sym.toString());
    }
    unknown(value, type) {
      this.write(type);
      if (!value) {
        return;
      }
      this.write(":");
      if (value && typeof value.entries === "function") {
        return this.array(
          [...value.entries()],
          true
          /* ordered */
        );
      }
    }
    error(err) {
      return this.write("error:" + err.toString());
    }
    boolean(bool) {
      return this.write("bool:" + bool);
    }
    string(string) {
      this.write("string:" + string.length + ":");
      this.write(string);
    }
    function(fn) {
      this.write("fn:");
      if (isNativeFunction(fn)) {
        this.dispatch("[native]");
      } else {
        this.dispatch(fn.toString());
      }
    }
    number(number) {
      return this.write("number:" + number);
    }
    null() {
      return this.write("Null");
    }
    undefined() {
      return this.write("Undefined");
    }
    regexp(regex) {
      return this.write("regex:" + regex.toString());
    }
    arraybuffer(arr) {
      this.write("arraybuffer:");
      return this.dispatch(new Uint8Array(arr));
    }
    url(url) {
      return this.write("url:" + url.toString());
    }
    map(map) {
      this.write("map:");
      const arr = [...map];
      return this.array(arr, false);
    }
    set(set) {
      this.write("set:");
      const arr = [...set];
      return this.array(arr, false);
    }
    bigint(number) {
      return this.write("bigint:" + number.toString());
    }
  }
  for (const type of [
    "uint8array",
    "uint8clampedarray",
    "unt8array",
    "uint16array",
    "unt16array",
    "uint32array",
    "unt32array",
    "float32array",
    "float64array"
  ]) {
    Hasher2.prototype[type] = function(arr) {
      this.write(type + ":");
      return this.array([...arr], false);
    };
  }
  function isNativeFunction(f) {
    if (typeof f !== "function") {
      return false;
    }
    return Function.prototype.toString.call(f).slice(
      -15
      /* "[native code] }".length */
    ) === "[native code] }";
  }
  return Hasher2;
})();
function serialize(object) {
  const hasher = new Hasher();
  hasher.dispatch(object);
  return hasher.buff;
}
function hash(value) {
  return digest(typeof value === "string" ? value : serialize(value)).replace(/[-_]/g, "").slice(0, 10);
}

function defaultCacheOptions() {
  return {
    name: "_",
    base: "/cache",
    swr: true,
    maxAge: 1
  };
}
function defineCachedFunction(fn, opts = {}) {
  opts = { ...defaultCacheOptions(), ...opts };
  const pending = {};
  const group = opts.group || "nitro/functions";
  const name = opts.name || fn.name || "_";
  const integrity = opts.integrity || hash([fn, opts]);
  const validate = opts.validate || ((entry) => entry.value !== void 0);
  async function get(key, resolver, shouldInvalidateCache, event) {
    const cacheKey = [opts.base, group, name, key + ".json"].filter(Boolean).join(":").replace(/:\/$/, ":index");
    let entry = await useStorage().getItem(cacheKey).catch((error) => {
      console.error(`[cache] Cache read error.`, error);
      useNitroApp().captureError(error, { event, tags: ["cache"] });
    }) || {};
    if (typeof entry !== "object") {
      entry = {};
      const error = new Error("Malformed data read from cache.");
      console.error("[cache]", error);
      useNitroApp().captureError(error, { event, tags: ["cache"] });
    }
    const ttl = (opts.maxAge ?? 0) * 1e3;
    if (ttl) {
      entry.expires = Date.now() + ttl;
    }
    const expired = shouldInvalidateCache || entry.integrity !== integrity || ttl && Date.now() - (entry.mtime || 0) > ttl || validate(entry) === false;
    const _resolve = async () => {
      const isPending = pending[key];
      if (!isPending) {
        if (entry.value !== void 0 && (opts.staleMaxAge || 0) >= 0 && opts.swr === false) {
          entry.value = void 0;
          entry.integrity = void 0;
          entry.mtime = void 0;
          entry.expires = void 0;
        }
        pending[key] = Promise.resolve(resolver());
      }
      try {
        entry.value = await pending[key];
      } catch (error) {
        if (!isPending) {
          delete pending[key];
        }
        throw error;
      }
      if (!isPending) {
        entry.mtime = Date.now();
        entry.integrity = integrity;
        delete pending[key];
        if (validate(entry) !== false) {
          let setOpts;
          if (opts.maxAge && !opts.swr) {
            setOpts = { ttl: opts.maxAge };
          }
          const promise = useStorage().setItem(cacheKey, entry, setOpts).catch((error) => {
            console.error(`[cache] Cache write error.`, error);
            useNitroApp().captureError(error, { event, tags: ["cache"] });
          });
          if (event?.waitUntil) {
            event.waitUntil(promise);
          }
        }
      }
    };
    const _resolvePromise = expired ? _resolve() : Promise.resolve();
    if (entry.value === void 0) {
      await _resolvePromise;
    } else if (expired && event && event.waitUntil) {
      event.waitUntil(_resolvePromise);
    }
    if (opts.swr && validate(entry) !== false) {
      _resolvePromise.catch((error) => {
        console.error(`[cache] SWR handler error.`, error);
        useNitroApp().captureError(error, { event, tags: ["cache"] });
      });
      return entry;
    }
    return _resolvePromise.then(() => entry);
  }
  return async (...args) => {
    const shouldBypassCache = await opts.shouldBypassCache?.(...args);
    if (shouldBypassCache) {
      return fn(...args);
    }
    const key = await (opts.getKey || getKey)(...args);
    const shouldInvalidateCache = await opts.shouldInvalidateCache?.(...args);
    const entry = await get(
      key,
      () => fn(...args),
      shouldInvalidateCache,
      args[0] && isEvent(args[0]) ? args[0] : void 0
    );
    let value = entry.value;
    if (opts.transform) {
      value = await opts.transform(entry, ...args) || value;
    }
    return value;
  };
}
function cachedFunction(fn, opts = {}) {
  return defineCachedFunction(fn, opts);
}
function getKey(...args) {
  return args.length > 0 ? hash(args) : "";
}
function escapeKey(key) {
  return String(key).replace(/\W/g, "");
}
function defineCachedEventHandler(handler, opts = defaultCacheOptions()) {
  const variableHeaderNames = (opts.varies || []).filter(Boolean).map((h) => h.toLowerCase()).sort();
  const _opts = {
    ...opts,
    getKey: async (event) => {
      const customKey = await opts.getKey?.(event);
      if (customKey) {
        return escapeKey(customKey);
      }
      const _path = event.node.req.originalUrl || event.node.req.url || event.path;
      let _pathname;
      try {
        _pathname = escapeKey(decodeURI(parseURL(_path).pathname)).slice(0, 16) || "index";
      } catch {
        _pathname = "-";
      }
      const _hashedPath = `${_pathname}.${hash(_path)}`;
      const _headers = variableHeaderNames.map((header) => [header, event.node.req.headers[header]]).map(([name, value]) => `${escapeKey(name)}.${hash(value)}`);
      return [_hashedPath, ..._headers].join(":");
    },
    validate: (entry) => {
      if (!entry.value) {
        return false;
      }
      if (entry.value.code >= 400) {
        return false;
      }
      if (entry.value.body === void 0) {
        return false;
      }
      if (entry.value.headers.etag === "undefined" || entry.value.headers["last-modified"] === "undefined") {
        return false;
      }
      return true;
    },
    group: opts.group || "nitro/handlers",
    integrity: opts.integrity || hash([handler, opts])
  };
  const _cachedHandler = cachedFunction(
    async (incomingEvent) => {
      const variableHeaders = {};
      for (const header of variableHeaderNames) {
        const value = incomingEvent.node.req.headers[header];
        if (value !== void 0) {
          variableHeaders[header] = value;
        }
      }
      const reqProxy = cloneWithProxy(incomingEvent.node.req, {
        headers: variableHeaders
      });
      const resHeaders = {};
      let _resSendBody;
      const resProxy = cloneWithProxy(incomingEvent.node.res, {
        statusCode: 200,
        writableEnded: false,
        writableFinished: false,
        headersSent: false,
        closed: false,
        getHeader(name) {
          return resHeaders[name];
        },
        setHeader(name, value) {
          resHeaders[name] = value;
          return this;
        },
        getHeaderNames() {
          return Object.keys(resHeaders);
        },
        hasHeader(name) {
          return name in resHeaders;
        },
        removeHeader(name) {
          delete resHeaders[name];
        },
        getHeaders() {
          return resHeaders;
        },
        end(chunk, arg2, arg3) {
          if (typeof chunk === "string") {
            _resSendBody = chunk;
          }
          if (typeof arg2 === "function") {
            arg2();
          }
          if (typeof arg3 === "function") {
            arg3();
          }
          return this;
        },
        write(chunk, arg2, arg3) {
          if (typeof chunk === "string") {
            _resSendBody = chunk;
          }
          if (typeof arg2 === "function") {
            arg2(void 0);
          }
          if (typeof arg3 === "function") {
            arg3();
          }
          return true;
        },
        writeHead(statusCode, headers2) {
          this.statusCode = statusCode;
          if (headers2) {
            if (Array.isArray(headers2) || typeof headers2 === "string") {
              throw new TypeError("Raw headers  is not supported.");
            }
            for (const header in headers2) {
              const value = headers2[header];
              if (value !== void 0) {
                this.setHeader(
                  header,
                  value
                );
              }
            }
          }
          return this;
        }
      });
      const event = createEvent(reqProxy, resProxy);
      event.fetch = (url, fetchOptions) => fetchWithEvent(event, url, fetchOptions, {
        fetch: useNitroApp().localFetch
      });
      event.$fetch = (url, fetchOptions) => fetchWithEvent(event, url, fetchOptions, {
        fetch: globalThis.$fetch
      });
      event.waitUntil = incomingEvent.waitUntil;
      event.context = incomingEvent.context;
      event.context.cache = {
        options: _opts
      };
      const body = await handler(event) || _resSendBody;
      const headers = event.node.res.getHeaders();
      headers.etag = String(
        headers.Etag || headers.etag || `W/"${hash(body)}"`
      );
      headers["last-modified"] = String(
        headers["Last-Modified"] || headers["last-modified"] || (/* @__PURE__ */ new Date()).toUTCString()
      );
      const cacheControl = [];
      if (opts.swr) {
        if (opts.maxAge) {
          cacheControl.push(`s-maxage=${opts.maxAge}`);
        }
        if (opts.staleMaxAge) {
          cacheControl.push(`stale-while-revalidate=${opts.staleMaxAge}`);
        } else {
          cacheControl.push("stale-while-revalidate");
        }
      } else if (opts.maxAge) {
        cacheControl.push(`max-age=${opts.maxAge}`);
      }
      if (cacheControl.length > 0) {
        headers["cache-control"] = cacheControl.join(", ");
      }
      const cacheEntry = {
        code: event.node.res.statusCode,
        headers,
        body
      };
      return cacheEntry;
    },
    _opts
  );
  return defineEventHandler(async (event) => {
    if (opts.headersOnly) {
      if (handleCacheHeaders(event, { maxAge: opts.maxAge })) {
        return;
      }
      return handler(event);
    }
    const response = await _cachedHandler(
      event
    );
    if (event.node.res.headersSent || event.node.res.writableEnded) {
      return response.body;
    }
    if (handleCacheHeaders(event, {
      modifiedTime: new Date(response.headers["last-modified"]),
      etag: response.headers.etag,
      maxAge: opts.maxAge
    })) {
      return;
    }
    event.node.res.statusCode = response.code;
    for (const name in response.headers) {
      const value = response.headers[name];
      if (name === "set-cookie") {
        event.node.res.appendHeader(
          name,
          splitCookiesString(value)
        );
      } else {
        if (value !== void 0) {
          event.node.res.setHeader(name, value);
        }
      }
    }
    return response.body;
  });
}
function cloneWithProxy(obj, overrides) {
  return new Proxy(obj, {
    get(target, property, receiver) {
      if (property in overrides) {
        return overrides[property];
      }
      return Reflect.get(target, property, receiver);
    },
    set(target, property, value, receiver) {
      if (property in overrides) {
        overrides[property] = value;
        return true;
      }
      return Reflect.set(target, property, value, receiver);
    }
  });
}
const cachedEventHandler = defineCachedEventHandler;

function klona(x) {
	if (typeof x !== 'object') return x;

	var k, tmp, str=Object.prototype.toString.call(x);

	if (str === '[object Object]') {
		if (x.constructor !== Object && typeof x.constructor === 'function') {
			tmp = new x.constructor();
			for (k in x) {
				if (x.hasOwnProperty(k) && tmp[k] !== x[k]) {
					tmp[k] = klona(x[k]);
				}
			}
		} else {
			tmp = {}; // null
			for (k in x) {
				if (k === '__proto__') {
					Object.defineProperty(tmp, k, {
						value: klona(x[k]),
						configurable: true,
						enumerable: true,
						writable: true,
					});
				} else {
					tmp[k] = klona(x[k]);
				}
			}
		}
		return tmp;
	}

	if (str === '[object Array]') {
		k = x.length;
		for (tmp=Array(k); k--;) {
			tmp[k] = klona(x[k]);
		}
		return tmp;
	}

	if (str === '[object Set]') {
		tmp = new Set;
		x.forEach(function (val) {
			tmp.add(klona(val));
		});
		return tmp;
	}

	if (str === '[object Map]') {
		tmp = new Map;
		x.forEach(function (val, key) {
			tmp.set(klona(key), klona(val));
		});
		return tmp;
	}

	if (str === '[object Date]') {
		return new Date(+x);
	}

	if (str === '[object RegExp]') {
		tmp = new RegExp(x.source, x.flags);
		tmp.lastIndex = x.lastIndex;
		return tmp;
	}

	if (str === '[object DataView]') {
		return new x.constructor( klona(x.buffer) );
	}

	if (str === '[object ArrayBuffer]') {
		return x.slice(0);
	}

	// ArrayBuffer.isView(x)
	// ~> `new` bcuz `Buffer.slice` => ref
	if (str.slice(-6) === 'Array]') {
		return new x.constructor(x);
	}

	return x;
}

const inlineAppConfig = {
  "nuxt": {}
};



const appConfig = defuFn(inlineAppConfig);

const NUMBER_CHAR_RE = /\d/;
const STR_SPLITTERS = ["-", "_", "/", "."];
function isUppercase(char = "") {
  if (NUMBER_CHAR_RE.test(char)) {
    return void 0;
  }
  return char !== char.toLowerCase();
}
function splitByCase(str, separators) {
  const splitters = STR_SPLITTERS;
  const parts = [];
  if (!str || typeof str !== "string") {
    return parts;
  }
  let buff = "";
  let previousUpper;
  let previousSplitter;
  for (const char of str) {
    const isSplitter = splitters.includes(char);
    if (isSplitter === true) {
      parts.push(buff);
      buff = "";
      previousUpper = void 0;
      continue;
    }
    const isUpper = isUppercase(char);
    if (previousSplitter === false) {
      if (previousUpper === false && isUpper === true) {
        parts.push(buff);
        buff = char;
        previousUpper = isUpper;
        continue;
      }
      if (previousUpper === true && isUpper === false && buff.length > 1) {
        const lastChar = buff.at(-1);
        parts.push(buff.slice(0, Math.max(0, buff.length - 1)));
        buff = lastChar + char;
        previousUpper = isUpper;
        continue;
      }
    }
    buff += char;
    previousUpper = isUpper;
    previousSplitter = isSplitter;
  }
  parts.push(buff);
  return parts;
}
function kebabCase(str, joiner) {
  return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => p.toLowerCase()).join(joiner) : "";
}
function snakeCase(str) {
  return kebabCase(str || "", "_");
}

function getEnv(key, opts) {
  const envKey = snakeCase(key).toUpperCase();
  return destr(
    process.env[opts.prefix + envKey] ?? process.env[opts.altPrefix + envKey]
  );
}
function _isObject(input) {
  return typeof input === "object" && !Array.isArray(input);
}
function applyEnv(obj, opts, parentKey = "") {
  for (const key in obj) {
    const subKey = parentKey ? `${parentKey}_${key}` : key;
    const envValue = getEnv(subKey, opts);
    if (_isObject(obj[key])) {
      if (_isObject(envValue)) {
        obj[key] = { ...obj[key], ...envValue };
        applyEnv(obj[key], opts, subKey);
      } else if (envValue === void 0) {
        applyEnv(obj[key], opts, subKey);
      } else {
        obj[key] = envValue ?? obj[key];
      }
    } else {
      obj[key] = envValue ?? obj[key];
    }
    if (opts.envExpansion && typeof obj[key] === "string") {
      obj[key] = _expandFromEnv(obj[key]);
    }
  }
  return obj;
}
const envExpandRx = /\{\{([^{}]*)\}\}/g;
function _expandFromEnv(value) {
  return value.replace(envExpandRx, (match, key) => {
    return process.env[key] || match;
  });
}

const _inlineRuntimeConfig = {
  "app": {
    "baseURL": "/",
    "buildId": "cd942286-918e-455f-979d-fb392c8ae4cc",
    "buildAssetsDir": "/_nuxt/",
    "cdnURL": ""
  },
  "nitro": {
    "envPrefix": "NUXT_",
    "routeRules": {
      "/__nuxt_error": {
        "cache": false
      },
      "/_nuxt/builds/meta/**": {
        "headers": {
          "cache-control": "public, max-age=31536000, immutable"
        }
      },
      "/_nuxt/builds/**": {
        "headers": {
          "cache-control": "public, max-age=1, immutable"
        }
      },
      "/_nuxt/**": {
        "headers": {
          "cache-control": "public, max-age=31536000, immutable"
        }
      }
    }
  },
  "public": {
    "amplitudeApiKey": ""
  }
};
const envOptions = {
  prefix: "NITRO_",
  altPrefix: _inlineRuntimeConfig.nitro.envPrefix ?? process.env.NITRO_ENV_PREFIX ?? "_",
  envExpansion: _inlineRuntimeConfig.nitro.envExpansion ?? process.env.NITRO_ENV_EXPANSION ?? false
};
const _sharedRuntimeConfig = _deepFreeze(
  applyEnv(klona(_inlineRuntimeConfig), envOptions)
);
function useRuntimeConfig(event) {
  if (!event) {
    return _sharedRuntimeConfig;
  }
  if (event.context.nitro.runtimeConfig) {
    return event.context.nitro.runtimeConfig;
  }
  const runtimeConfig = klona(_inlineRuntimeConfig);
  applyEnv(runtimeConfig, envOptions);
  event.context.nitro.runtimeConfig = runtimeConfig;
  return runtimeConfig;
}
_deepFreeze(klona(appConfig));
function _deepFreeze(object) {
  const propNames = Object.getOwnPropertyNames(object);
  for (const name of propNames) {
    const value = object[name];
    if (value && typeof value === "object") {
      _deepFreeze(value);
    }
  }
  return Object.freeze(object);
}
new Proxy(/* @__PURE__ */ Object.create(null), {
  get: (_, prop) => {
    console.warn(
      "Please use `useRuntimeConfig()` instead of accessing config directly."
    );
    const runtimeConfig = useRuntimeConfig();
    if (prop in runtimeConfig) {
      return runtimeConfig[prop];
    }
    return void 0;
  }
});

function createContext(opts = {}) {
  let currentInstance;
  let isSingleton = false;
  const checkConflict = (instance) => {
    if (currentInstance && currentInstance !== instance) {
      throw new Error("Context conflict");
    }
  };
  let als;
  if (opts.asyncContext) {
    const _AsyncLocalStorage = opts.AsyncLocalStorage || globalThis.AsyncLocalStorage;
    if (_AsyncLocalStorage) {
      als = new _AsyncLocalStorage();
    } else {
      console.warn("[unctx] `AsyncLocalStorage` is not provided.");
    }
  }
  const _getCurrentInstance = () => {
    if (als) {
      const instance = als.getStore();
      if (instance !== void 0) {
        return instance;
      }
    }
    return currentInstance;
  };
  return {
    use: () => {
      const _instance = _getCurrentInstance();
      if (_instance === void 0) {
        throw new Error("Context is not available");
      }
      return _instance;
    },
    tryUse: () => {
      return _getCurrentInstance();
    },
    set: (instance, replace) => {
      if (!replace) {
        checkConflict(instance);
      }
      currentInstance = instance;
      isSingleton = true;
    },
    unset: () => {
      currentInstance = void 0;
      isSingleton = false;
    },
    call: (instance, callback) => {
      checkConflict(instance);
      currentInstance = instance;
      try {
        return als ? als.run(instance, callback) : callback();
      } finally {
        if (!isSingleton) {
          currentInstance = void 0;
        }
      }
    },
    async callAsync(instance, callback) {
      currentInstance = instance;
      const onRestore = () => {
        currentInstance = instance;
      };
      const onLeave = () => currentInstance === instance ? onRestore : void 0;
      asyncHandlers.add(onLeave);
      try {
        const r = als ? als.run(instance, callback) : callback();
        if (!isSingleton) {
          currentInstance = void 0;
        }
        return await r;
      } finally {
        asyncHandlers.delete(onLeave);
      }
    }
  };
}
function createNamespace(defaultOpts = {}) {
  const contexts = {};
  return {
    get(key, opts = {}) {
      if (!contexts[key]) {
        contexts[key] = createContext({ ...defaultOpts, ...opts });
      }
      return contexts[key];
    }
  };
}
const _globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : {};
const globalKey = "__unctx__";
const defaultNamespace = _globalThis[globalKey] || (_globalThis[globalKey] = createNamespace());
const getContext = (key, opts = {}) => defaultNamespace.get(key, opts);
const asyncHandlersKey = "__unctx_async_handlers__";
const asyncHandlers = _globalThis[asyncHandlersKey] || (_globalThis[asyncHandlersKey] = /* @__PURE__ */ new Set());
function executeAsync(function_) {
  const restores = [];
  for (const leaveHandler of asyncHandlers) {
    const restore2 = leaveHandler();
    if (restore2) {
      restores.push(restore2);
    }
  }
  const restore = () => {
    for (const restore2 of restores) {
      restore2();
    }
  };
  let awaitable = function_();
  if (awaitable && typeof awaitable === "object" && "catch" in awaitable) {
    awaitable = awaitable.catch((error) => {
      restore();
      throw error;
    });
  }
  return [awaitable, restore];
}

getContext("nitro-app", {
  asyncContext: false,
  AsyncLocalStorage: void 0
});

const config = useRuntimeConfig();
const _routeRulesMatcher = toRouteMatcher(
  createRouter$1({ routes: config.nitro.routeRules })
);
function createRouteRulesHandler(ctx) {
  return eventHandler((event) => {
    const routeRules = getRouteRules(event);
    if (routeRules.headers) {
      setHeaders(event, routeRules.headers);
    }
    if (routeRules.redirect) {
      let target = routeRules.redirect.to;
      if (target.endsWith("/**")) {
        let targetPath = event.path;
        const strpBase = routeRules.redirect._redirectStripBase;
        if (strpBase) {
          targetPath = withoutBase(targetPath, strpBase);
        }
        target = joinURL(target.slice(0, -3), targetPath);
      } else if (event.path.includes("?")) {
        const query = getQuery$1(event.path);
        target = withQuery(target, query);
      }
      return sendRedirect(event, target, routeRules.redirect.statusCode);
    }
    if (routeRules.proxy) {
      let target = routeRules.proxy.to;
      if (target.endsWith("/**")) {
        let targetPath = event.path;
        const strpBase = routeRules.proxy._proxyStripBase;
        if (strpBase) {
          targetPath = withoutBase(targetPath, strpBase);
        }
        target = joinURL(target.slice(0, -3), targetPath);
      } else if (event.path.includes("?")) {
        const query = getQuery$1(event.path);
        target = withQuery(target, query);
      }
      return proxyRequest(event, target, {
        fetch: ctx.localFetch,
        ...routeRules.proxy
      });
    }
  });
}
function getRouteRules(event) {
  event.context._nitro = event.context._nitro || {};
  if (!event.context._nitro.routeRules) {
    event.context._nitro.routeRules = getRouteRulesForPath(
      withoutBase(event.path.split("?")[0], useRuntimeConfig().app.baseURL)
    );
  }
  return event.context._nitro.routeRules;
}
function getRouteRulesForPath(path) {
  return defu({}, ..._routeRulesMatcher.matchAll(path).reverse());
}

function _captureError(error, type) {
  console.error(`[${type}]`, error);
  useNitroApp().captureError(error, { tags: [type] });
}
function trapUnhandledNodeErrors() {
  process.on(
    "unhandledRejection",
    (error) => _captureError(error, "unhandledRejection")
  );
  process.on(
    "uncaughtException",
    (error) => _captureError(error, "uncaughtException")
  );
}
function joinHeaders(value) {
  return Array.isArray(value) ? value.join(", ") : String(value);
}
function normalizeFetchResponse(response) {
  if (!response.headers.has("set-cookie")) {
    return response;
  }
  return new Response(response.body, {
    status: response.status,
    statusText: response.statusText,
    headers: normalizeCookieHeaders(response.headers)
  });
}
function normalizeCookieHeader(header = "") {
  return splitCookiesString(joinHeaders(header));
}
function normalizeCookieHeaders(headers) {
  const outgoingHeaders = new Headers();
  for (const [name, header] of headers) {
    if (name === "set-cookie") {
      for (const cookie of normalizeCookieHeader(header)) {
        outgoingHeaders.append("set-cookie", cookie);
      }
    } else {
      outgoingHeaders.set(name, joinHeaders(header));
    }
  }
  return outgoingHeaders;
}

/**
* Nitro internal functions extracted from https://github.com/nitrojs/nitro/blob/v2/src/runtime/internal/utils.ts
*/
function isJsonRequest(event) {
	// If the client specifically requests HTML, then avoid classifying as JSON.
	if (hasReqHeader(event, "accept", "text/html")) {
		return false;
	}
	return hasReqHeader(event, "accept", "application/json") || hasReqHeader(event, "user-agent", "curl/") || hasReqHeader(event, "user-agent", "httpie/") || hasReqHeader(event, "sec-fetch-mode", "cors") || event.path.startsWith("/api/") || event.path.endsWith(".json");
}
function hasReqHeader(event, name, includes) {
	const value = getRequestHeader(event, name);
	return value && typeof value === "string" && value.toLowerCase().includes(includes);
}

const errorHandler$0 = (async function errorhandler(error, event, { defaultHandler }) {
	if (event.handled || isJsonRequest(event)) {
		// let Nitro handle JSON errors
		return;
	}
	// invoke default Nitro error handler (which will log appropriately if required)
	const defaultRes = await defaultHandler(error, event, { json: true });
	// let Nitro handle redirect if appropriate
	const status = error.status || error.statusCode || 500;
	if (status === 404 && defaultRes.status === 302) {
		setResponseHeaders(event, defaultRes.headers);
		setResponseStatus(event, defaultRes.status, defaultRes.statusText);
		return send(event, JSON.stringify(defaultRes.body, null, 2));
	}
	const errorObject = defaultRes.body;
	// remove proto/hostname/port from URL
	const url = new URL(errorObject.url);
	errorObject.url = withoutBase(url.pathname, useRuntimeConfig(event).app.baseURL) + url.search + url.hash;
	// add default server message
	errorObject.message ||= "Server Error";
	// we will be rendering this error internally so we can pass along the error.data safely
	errorObject.data ||= error.data;
	errorObject.statusText ||= error.statusText || error.statusMessage;
	delete defaultRes.headers["content-type"];
	delete defaultRes.headers["content-security-policy"];
	setResponseHeaders(event, defaultRes.headers);
	// Access request headers
	const reqHeaders = getRequestHeaders(event);
	// Detect to avoid recursion in SSR rendering of errors
	const isRenderingError = event.path.startsWith("/__nuxt_error") || !!reqHeaders["x-nuxt-error"];
	// HTML response (via SSR)
	const res = isRenderingError ? null : await useNitroApp().localFetch(withQuery(joinURL(useRuntimeConfig(event).app.baseURL, "/__nuxt_error"), errorObject), {
		headers: {
			...reqHeaders,
			"x-nuxt-error": "true"
		},
		redirect: "manual"
	}).catch(() => null);
	if (event.handled) {
		return;
	}
	// Fallback to static rendered error page
	if (!res) {
		const { template } = await import('../_/error-500.mjs');
		setResponseHeader(event, "Content-Type", "text/html;charset=UTF-8");
		return send(event, template(errorObject));
	}
	const html = await res.text();
	for (const [header, value] of res.headers.entries()) {
		if (header === "set-cookie") {
			appendResponseHeader(event, header, value);
			continue;
		}
		setResponseHeader(event, header, value);
	}
	setResponseStatus(event, res.status && res.status !== 200 ? res.status : defaultRes.status, res.statusText || defaultRes.statusText);
	return send(event, html);
});

function defineNitroErrorHandler(handler) {
  return handler;
}

const errorHandler$1 = defineNitroErrorHandler(
  function defaultNitroErrorHandler(error, event) {
    const res = defaultHandler(error, event);
    setResponseHeaders(event, res.headers);
    setResponseStatus(event, res.status, res.statusText);
    return send(event, JSON.stringify(res.body, null, 2));
  }
);
function defaultHandler(error, event, opts) {
  const isSensitive = error.unhandled || error.fatal;
  const statusCode = error.statusCode || 500;
  const statusMessage = error.statusMessage || "Server Error";
  const url = getRequestURL(event, { xForwardedHost: true, xForwardedProto: true });
  if (statusCode === 404) {
    const baseURL = "/";
    if (/^\/[^/]/.test(baseURL) && !url.pathname.startsWith(baseURL)) {
      const redirectTo = `${baseURL}${url.pathname.slice(1)}${url.search}`;
      return {
        status: 302,
        statusText: "Found",
        headers: { location: redirectTo },
        body: `Redirecting...`
      };
    }
  }
  if (isSensitive && !opts?.silent) {
    const tags = [error.unhandled && "[unhandled]", error.fatal && "[fatal]"].filter(Boolean).join(" ");
    console.error(`[request error] ${tags} [${event.method}] ${url}
`, error);
  }
  const headers = {
    "content-type": "application/json",
    // Prevent browser from guessing the MIME types of resources.
    "x-content-type-options": "nosniff",
    // Prevent error page from being embedded in an iframe
    "x-frame-options": "DENY",
    // Prevent browsers from sending the Referer header
    "referrer-policy": "no-referrer",
    // Disable the execution of any js
    "content-security-policy": "script-src 'none'; frame-ancestors 'none';"
  };
  setResponseStatus(event, statusCode, statusMessage);
  if (statusCode === 404 || !getResponseHeader(event, "cache-control")) {
    headers["cache-control"] = "no-cache";
  }
  const body = {
    error: true,
    url: url.href,
    statusCode,
    statusMessage,
    message: isSensitive ? "Server Error" : error.message,
    data: isSensitive ? void 0 : error.data
  };
  return {
    status: statusCode,
    statusText: statusMessage,
    headers,
    body
  };
}

const errorHandlers = [errorHandler$0, errorHandler$1];

async function errorHandler(error, event) {
  for (const handler of errorHandlers) {
    try {
      await handler(error, event, { defaultHandler });
      if (event.handled) {
        return; // Response handled
      }
    } catch(error) {
      // Handler itself thrown, log and continue
      console.error(error);
    }
  }
  // H3 will handle fallback
}

const plugins = [
  
];

const assets = {
  "/favicon.ico": {
    "type": "image/vnd.microsoft.icon",
    "etag": "\"10be-n8egyE9tcb7sKGr/pYCaQ4uWqxI\"",
    "mtime": "2026-04-07T20:18:33.227Z",
    "size": 4286,
    "path": "../public/favicon.ico"
  },
  "/robots.txt": {
    "type": "text/plain; charset=utf-8",
    "etag": "\"18-j8OIsL9qGDmNZ+lHhp2tyH4XtaE\"",
    "mtime": "2026-04-07T20:18:33.227Z",
    "size": 24,
    "path": "../public/robots.txt"
  },
  "/_nuxt/B77IIWzB.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"730-qqryjraYnGNOv3zojkinIHFkt1M\"",
    "mtime": "2026-04-07T20:18:33.225Z",
    "size": 1840,
    "path": "../public/_nuxt/B77IIWzB.js"
  },
  "/_nuxt/C_TnQn_7.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"52a-5cu/VI6HNXbzSk04lcrbiiF0ZPs\"",
    "mtime": "2026-04-07T20:18:33.225Z",
    "size": 1322,
    "path": "../public/_nuxt/C_TnQn_7.js"
  },
  "/_nuxt/D7Bf6Say.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"1bae-+4vI/GRp5EE8r7TKU34YxCQF8y0\"",
    "mtime": "2026-04-07T20:18:33.225Z",
    "size": 7086,
    "path": "../public/_nuxt/D7Bf6Say.js"
  },
  "/_nuxt/DfTiELZi.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"9ec-J58fIoVNaokhEcgR6oeD6zmtryA\"",
    "mtime": "2026-04-07T20:18:33.225Z",
    "size": 2540,
    "path": "../public/_nuxt/DfTiELZi.js"
  },
  "/_nuxt/MmvQX_eT.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"4f9-lSHgE6sn9oFlBvedlUSvYaFznDU\"",
    "mtime": "2026-04-07T20:18:33.225Z",
    "size": 1273,
    "path": "../public/_nuxt/MmvQX_eT.js"
  },
  "/_nuxt/DMrp4Fbu.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"2c5c0-RHnXNeFAiZOpu1b0QA2EM5wRIdY\"",
    "mtime": "2026-04-07T20:18:33.225Z",
    "size": 181696,
    "path": "../public/_nuxt/DMrp4Fbu.js"
  },
  "/_nuxt/MzFTpsyS.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"e7c-G3hhATTOCBy+2ulKDBSKVL4L6r4\"",
    "mtime": "2026-04-07T20:18:33.225Z",
    "size": 3708,
    "path": "../public/_nuxt/MzFTpsyS.js"
  },
  "/_nuxt/error-404.Cz778Gtt.css": {
    "type": "text/css; charset=utf-8",
    "etag": "\"dca-dDiq3xbUAhj6YT2dG0DFy693a0M\"",
    "mtime": "2026-04-07T20:18:33.226Z",
    "size": 3530,
    "path": "../public/_nuxt/error-404.Cz778Gtt.css"
  },
  "/_nuxt/RzjnwIMW.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"3d61-gaCLMVnzBub5T9OkqW+ov5cptqM\"",
    "mtime": "2026-04-07T20:18:33.225Z",
    "size": 15713,
    "path": "../public/_nuxt/RzjnwIMW.js"
  },
  "/_nuxt/error-500.D1XFhX37.css": {
    "type": "text/css; charset=utf-8",
    "etag": "\"75a-jA8nQ4C1zT9AtTKKWpKF2TPvnSY\"",
    "mtime": "2026-04-07T20:18:33.226Z",
    "size": 1882,
    "path": "../public/_nuxt/error-500.D1XFhX37.css"
  },
  "/_nuxt/z593H3Qg.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"d2a-xRnv1va0nVidupn+1ybVoBGPB7I\"",
    "mtime": "2026-04-07T20:18:33.226Z",
    "size": 3370,
    "path": "../public/_nuxt/z593H3Qg.js"
  },
  "/_nuxt/sPdhR0i8.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"1ea1a-sNK2+hnzW2eFc16+offQJuykapM\"",
    "mtime": "2026-04-07T20:18:33.226Z",
    "size": 125466,
    "path": "../public/_nuxt/sPdhR0i8.js"
  },
  "/_nuxt/builds/latest.json": {
    "type": "application/json",
    "etag": "\"47-GPaGCNgpa1yIhd2oGEW6kNVS4HI\"",
    "mtime": "2026-04-07T20:18:33.222Z",
    "size": 71,
    "path": "../public/_nuxt/builds/latest.json"
  },
  "/_nuxt/builds/meta/cd942286-918e-455f-979d-fb392c8ae4cc.json": {
    "type": "application/json",
    "etag": "\"58-X6iFts5acrs7t8RpkF50YDZCwtU\"",
    "mtime": "2026-04-07T20:18:33.221Z",
    "size": 88,
    "path": "../public/_nuxt/builds/meta/cd942286-918e-455f-979d-fb392c8ae4cc.json"
  },
  "/_nuxt/BMw6m4EL.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"885d4-A/WIZb1LMmX75nhpZFsxOrP0gvU\"",
    "mtime": "2026-04-07T20:18:33.225Z",
    "size": 558548,
    "path": "../public/_nuxt/BMw6m4EL.js"
  }
};

const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
function normalizeWindowsPath(input = "") {
  if (!input) {
    return input;
  }
  return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
}
const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
function cwd() {
  if (typeof process !== "undefined" && typeof process.cwd === "function") {
    return process.cwd().replace(/\\/g, "/");
  }
  return "/";
}
const resolve = function(...arguments_) {
  arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
  let resolvedPath = "";
  let resolvedAbsolute = false;
  for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
    const path = index >= 0 ? arguments_[index] : cwd();
    if (!path || path.length === 0) {
      continue;
    }
    resolvedPath = `${path}/${resolvedPath}`;
    resolvedAbsolute = isAbsolute(path);
  }
  resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
  if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
    return `/${resolvedPath}`;
  }
  return resolvedPath.length > 0 ? resolvedPath : ".";
};
function normalizeString(path, allowAboveRoot) {
  let res = "";
  let lastSegmentLength = 0;
  let lastSlash = -1;
  let dots = 0;
  let char = null;
  for (let index = 0; index <= path.length; ++index) {
    if (index < path.length) {
      char = path[index];
    } else if (char === "/") {
      break;
    } else {
      char = "/";
    }
    if (char === "/") {
      if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {
        if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
          if (res.length > 2) {
            const lastSlashIndex = res.lastIndexOf("/");
            if (lastSlashIndex === -1) {
              res = "";
              lastSegmentLength = 0;
            } else {
              res = res.slice(0, lastSlashIndex);
              lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
            }
            lastSlash = index;
            dots = 0;
            continue;
          } else if (res.length > 0) {
            res = "";
            lastSegmentLength = 0;
            lastSlash = index;
            dots = 0;
            continue;
          }
        }
        if (allowAboveRoot) {
          res += res.length > 0 ? "/.." : "..";
          lastSegmentLength = 2;
        }
      } else {
        if (res.length > 0) {
          res += `/${path.slice(lastSlash + 1, index)}`;
        } else {
          res = path.slice(lastSlash + 1, index);
        }
        lastSegmentLength = index - lastSlash - 1;
      }
      lastSlash = index;
      dots = 0;
    } else if (char === "." && dots !== -1) {
      ++dots;
    } else {
      dots = -1;
    }
  }
  return res;
}
const isAbsolute = function(p) {
  return _IS_ABSOLUTE_RE.test(p);
};
const dirname = function(p) {
  const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
  if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
    segments[0] += "/";
  }
  return segments.join("/") || (isAbsolute(p) ? "/" : ".");
};

function readAsset (id) {
  const serverDir = dirname(fileURLToPath(globalThis._importMeta_.url));
  return promises.readFile(resolve(serverDir, assets[id].path))
}

const publicAssetBases = {"/_nuxt/builds/meta/":{"maxAge":31536000},"/_nuxt/builds/":{"maxAge":1},"/_nuxt/":{"maxAge":31536000}};

function isPublicAssetURL(id = '') {
  if (assets[id]) {
    return true
  }
  for (const base in publicAssetBases) {
    if (id.startsWith(base)) { return true }
  }
  return false
}

function getAsset (id) {
  return assets[id]
}

const METHODS = /* @__PURE__ */ new Set(["HEAD", "GET"]);
const EncodingMap = { gzip: ".gz", br: ".br" };
const _IwPR48 = eventHandler((event) => {
  if (event.method && !METHODS.has(event.method)) {
    return;
  }
  let id = decodePath(
    withLeadingSlash(withoutTrailingSlash(parseURL(event.path).pathname))
  );
  let asset;
  const encodingHeader = String(
    getRequestHeader(event, "accept-encoding") || ""
  );
  const encodings = [
    ...encodingHeader.split(",").map((e) => EncodingMap[e.trim()]).filter(Boolean).sort(),
    ""
  ];
  for (const encoding of encodings) {
    for (const _id of [id + encoding, joinURL(id, "index.html" + encoding)]) {
      const _asset = getAsset(_id);
      if (_asset) {
        asset = _asset;
        id = _id;
        break;
      }
    }
  }
  if (!asset) {
    if (isPublicAssetURL(id)) {
      removeResponseHeader(event, "Cache-Control");
      throw createError$1({ statusCode: 404 });
    }
    return;
  }
  if (asset.encoding !== void 0) {
    appendResponseHeader(event, "Vary", "Accept-Encoding");
  }
  const ifNotMatch = getRequestHeader(event, "if-none-match") === asset.etag;
  if (ifNotMatch) {
    setResponseStatus(event, 304, "Not Modified");
    return "";
  }
  const ifModifiedSinceH = getRequestHeader(event, "if-modified-since");
  const mtimeDate = new Date(asset.mtime);
  if (ifModifiedSinceH && asset.mtime && new Date(ifModifiedSinceH) >= mtimeDate) {
    setResponseStatus(event, 304, "Not Modified");
    return "";
  }
  if (asset.type && !getResponseHeader(event, "Content-Type")) {
    setResponseHeader(event, "Content-Type", asset.type);
  }
  if (asset.etag && !getResponseHeader(event, "ETag")) {
    setResponseHeader(event, "ETag", asset.etag);
  }
  if (asset.mtime && !getResponseHeader(event, "Last-Modified")) {
    setResponseHeader(event, "Last-Modified", mtimeDate.toUTCString());
  }
  if (asset.encoding && !getResponseHeader(event, "Content-Encoding")) {
    setResponseHeader(event, "Content-Encoding", asset.encoding);
  }
  if (asset.size > 0 && !getResponseHeader(event, "Content-Length")) {
    setResponseHeader(event, "Content-Length", asset.size);
  }
  return readAsset(id);
});

const _SxA8c9 = defineEventHandler(() => {});

const _lazy_epFSni = () => import('../routes/api/auth/login.post.mjs');
const _lazy_7wPoFw = () => import('../routes/api/burrito/consider.post.mjs');
const _lazy_fNnUdo = () => import('../routes/renderer.mjs').then(function (n) { return n.r; });

const handlers = [
  { route: '', handler: _IwPR48, lazy: false, middleware: true, method: undefined },
  { route: '/api/auth/login', handler: _lazy_epFSni, lazy: true, middleware: false, method: "post" },
  { route: '/api/burrito/consider', handler: _lazy_7wPoFw, lazy: true, middleware: false, method: "post" },
  { route: '/__nuxt_error', handler: _lazy_fNnUdo, lazy: true, middleware: false, method: undefined },
  { route: '/__nuxt_island/**', handler: _SxA8c9, lazy: false, middleware: false, method: undefined },
  { route: '/**', handler: _lazy_fNnUdo, lazy: true, middleware: false, method: undefined }
];

function createNitroApp() {
  const config = useRuntimeConfig();
  const hooks = createHooks();
  const captureError = (error, context = {}) => {
    const promise = hooks.callHookParallel("error", error, context).catch((error_) => {
      console.error("Error while capturing another error", error_);
    });
    if (context.event && isEvent(context.event)) {
      const errors = context.event.context.nitro?.errors;
      if (errors) {
        errors.push({ error, context });
      }
      if (context.event.waitUntil) {
        context.event.waitUntil(promise);
      }
    }
  };
  const h3App = createApp({
    debug: destr(false),
    onError: (error, event) => {
      captureError(error, { event, tags: ["request"] });
      return errorHandler(error, event);
    },
    onRequest: async (event) => {
      event.context.nitro = event.context.nitro || { errors: [] };
      const fetchContext = event.node.req?.__unenv__;
      if (fetchContext?._platform) {
        event.context = {
          _platform: fetchContext?._platform,
          // #3335
          ...fetchContext._platform,
          ...event.context
        };
      }
      if (!event.context.waitUntil && fetchContext?.waitUntil) {
        event.context.waitUntil = fetchContext.waitUntil;
      }
      event.fetch = (req, init) => fetchWithEvent(event, req, init, { fetch: localFetch });
      event.$fetch = (req, init) => fetchWithEvent(event, req, init, {
        fetch: $fetch
      });
      event.waitUntil = (promise) => {
        if (!event.context.nitro._waitUntilPromises) {
          event.context.nitro._waitUntilPromises = [];
        }
        event.context.nitro._waitUntilPromises.push(promise);
        if (event.context.waitUntil) {
          event.context.waitUntil(promise);
        }
      };
      event.captureError = (error, context) => {
        captureError(error, { event, ...context });
      };
      await nitroApp$1.hooks.callHook("request", event).catch((error) => {
        captureError(error, { event, tags: ["request"] });
      });
    },
    onBeforeResponse: async (event, response) => {
      await nitroApp$1.hooks.callHook("beforeResponse", event, response).catch((error) => {
        captureError(error, { event, tags: ["request", "response"] });
      });
    },
    onAfterResponse: async (event, response) => {
      await nitroApp$1.hooks.callHook("afterResponse", event, response).catch((error) => {
        captureError(error, { event, tags: ["request", "response"] });
      });
    }
  });
  const router = createRouter({
    preemptive: true
  });
  const nodeHandler = toNodeListener(h3App);
  const localCall = (aRequest) => b(
    nodeHandler,
    aRequest
  );
  const localFetch = (input, init) => {
    if (!input.toString().startsWith("/")) {
      return globalThis.fetch(input, init);
    }
    return C(
      nodeHandler,
      input,
      init
    ).then((response) => normalizeFetchResponse(response));
  };
  const $fetch = createFetch({
    fetch: localFetch,
    Headers: Headers$1,
    defaults: { baseURL: config.app.baseURL }
  });
  globalThis.$fetch = $fetch;
  h3App.use(createRouteRulesHandler({ localFetch }));
  for (const h of handlers) {
    let handler = h.lazy ? lazyEventHandler(h.handler) : h.handler;
    if (h.middleware || !h.route) {
      const middlewareBase = (config.app.baseURL + (h.route || "/")).replace(
        /\/+/g,
        "/"
      );
      h3App.use(middlewareBase, handler);
    } else {
      const routeRules = getRouteRulesForPath(
        h.route.replace(/:\w+|\*\*/g, "_")
      );
      if (routeRules.cache) {
        handler = cachedEventHandler(handler, {
          group: "nitro/routes",
          ...routeRules.cache
        });
      }
      router.use(h.route, handler, h.method);
    }
  }
  h3App.use(config.app.baseURL, router.handler);
  const app = {
    hooks,
    h3App,
    router,
    localCall,
    localFetch,
    captureError
  };
  return app;
}
function runNitroPlugins(nitroApp2) {
  for (const plugin of plugins) {
    try {
      plugin(nitroApp2);
    } catch (error) {
      nitroApp2.captureError(error, { tags: ["plugin"] });
      throw error;
    }
  }
}
const nitroApp$1 = createNitroApp();
function useNitroApp() {
  return nitroApp$1;
}
runNitroPlugins(nitroApp$1);

function defineRenderHandler(render) {
  const runtimeConfig = useRuntimeConfig();
  return eventHandler(async (event) => {
    const nitroApp = useNitroApp();
    const ctx = { event, render, response: void 0 };
    await nitroApp.hooks.callHook("render:before", ctx);
    if (!ctx.response) {
      if (event.path === `${runtimeConfig.app.baseURL}favicon.ico`) {
        setResponseHeader(event, "Content-Type", "image/x-icon");
        return send(
          event,
          "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
        );
      }
      ctx.response = await ctx.render(event);
      if (!ctx.response) {
        const _currentStatus = getResponseStatus(event);
        setResponseStatus(event, _currentStatus === 200 ? 500 : _currentStatus);
        return send(
          event,
          "No response returned from render handler: " + event.path
        );
      }
    }
    await nitroApp.hooks.callHook("render:response", ctx.response, ctx);
    if (ctx.response.headers) {
      setResponseHeaders(event, ctx.response.headers);
    }
    if (ctx.response.statusCode || ctx.response.statusMessage) {
      setResponseStatus(
        event,
        ctx.response.statusCode,
        ctx.response.statusMessage
      );
    }
    return ctx.response.body;
  });
}

const debug = (...args) => {
};
function GracefulShutdown(server, opts) {
  opts = opts || {};
  const options = Object.assign(
    {
      signals: "SIGINT SIGTERM",
      timeout: 3e4,
      development: false,
      forceExit: true,
      onShutdown: (signal) => Promise.resolve(signal),
      preShutdown: (signal) => Promise.resolve(signal)
    },
    opts
  );
  let isShuttingDown = false;
  const connections = {};
  let connectionCounter = 0;
  const secureConnections = {};
  let secureConnectionCounter = 0;
  let failed = false;
  let finalRun = false;
  function onceFactory() {
    let called = false;
    return (emitter, events, callback) => {
      function call() {
        if (!called) {
          called = true;
          return Reflect.apply(callback, this, arguments);
        }
      }
      for (const e of events) {
        emitter.on(e, call);
      }
    };
  }
  const signals = options.signals.split(" ").map((s) => s.trim()).filter((s) => s.length > 0);
  const once = onceFactory();
  once(process, signals, (signal) => {
    debug("received shut down signal", signal);
    shutdown(signal).then(() => {
      if (options.forceExit) {
        process.exit(failed ? 1 : 0);
      }
    }).catch((error) => {
      debug("server shut down error occurred", error);
      process.exit(1);
    });
  });
  function isFunction(functionToCheck) {
    const getType = Object.prototype.toString.call(functionToCheck);
    return /^\[object\s([A-Za-z]+)?Function]$/.test(getType);
  }
  function destroy(socket, force = false) {
    if (socket._isIdle && isShuttingDown || force) {
      socket.destroy();
      if (socket.server instanceof http.Server) {
        delete connections[socket._connectionId];
      } else {
        delete secureConnections[socket._connectionId];
      }
    }
  }
  function destroyAllConnections(force = false) {
    debug("Destroy Connections : " + (force ? "forced close" : "close"));
    let counter = 0;
    let secureCounter = 0;
    for (const key of Object.keys(connections)) {
      const socket = connections[key];
      const serverResponse = socket._httpMessage;
      if (serverResponse && !force) {
        if (!serverResponse.headersSent) {
          serverResponse.setHeader("connection", "close");
        }
      } else {
        counter++;
        destroy(socket);
      }
    }
    debug("Connections destroyed : " + counter);
    debug("Connection Counter    : " + connectionCounter);
    for (const key of Object.keys(secureConnections)) {
      const socket = secureConnections[key];
      const serverResponse = socket._httpMessage;
      if (serverResponse && !force) {
        if (!serverResponse.headersSent) {
          serverResponse.setHeader("connection", "close");
        }
      } else {
        secureCounter++;
        destroy(socket);
      }
    }
    debug("Secure Connections destroyed : " + secureCounter);
    debug("Secure Connection Counter    : " + secureConnectionCounter);
  }
  server.on("request", (req, res) => {
    req.socket._isIdle = false;
    if (isShuttingDown && !res.headersSent) {
      res.setHeader("connection", "close");
    }
    res.on("finish", () => {
      req.socket._isIdle = true;
      destroy(req.socket);
    });
  });
  server.on("connection", (socket) => {
    if (isShuttingDown) {
      socket.destroy();
    } else {
      const id = connectionCounter++;
      socket._isIdle = true;
      socket._connectionId = id;
      connections[id] = socket;
      socket.once("close", () => {
        delete connections[socket._connectionId];
      });
    }
  });
  server.on("secureConnection", (socket) => {
    if (isShuttingDown) {
      socket.destroy();
    } else {
      const id = secureConnectionCounter++;
      socket._isIdle = true;
      socket._connectionId = id;
      secureConnections[id] = socket;
      socket.once("close", () => {
        delete secureConnections[socket._connectionId];
      });
    }
  });
  process.on("close", () => {
    debug("closed");
  });
  function shutdown(sig) {
    function cleanupHttp() {
      destroyAllConnections();
      debug("Close http server");
      return new Promise((resolve, reject) => {
        server.close((err) => {
          if (err) {
            return reject(err);
          }
          return resolve(true);
        });
      });
    }
    debug("shutdown signal - " + sig);
    if (options.development) {
      debug("DEV-Mode - immediate forceful shutdown");
      return process.exit(0);
    }
    function finalHandler() {
      if (!finalRun) {
        finalRun = true;
        if (options.finally && isFunction(options.finally)) {
          debug("executing finally()");
          options.finally();
        }
      }
      return Promise.resolve();
    }
    function waitForReadyToShutDown(totalNumInterval) {
      debug(`waitForReadyToShutDown... ${totalNumInterval}`);
      if (totalNumInterval === 0) {
        debug(
          `Could not close connections in time (${options.timeout}ms), will forcefully shut down`
        );
        return Promise.resolve(true);
      }
      const allConnectionsClosed = Object.keys(connections).length === 0 && Object.keys(secureConnections).length === 0;
      if (allConnectionsClosed) {
        debug("All connections closed. Continue to shutting down");
        return Promise.resolve(false);
      }
      debug("Schedule the next waitForReadyToShutdown");
      return new Promise((resolve) => {
        setTimeout(() => {
          resolve(waitForReadyToShutDown(totalNumInterval - 1));
        }, 250);
      });
    }
    if (isShuttingDown) {
      return Promise.resolve();
    }
    debug("shutting down");
    return options.preShutdown(sig).then(() => {
      isShuttingDown = true;
      cleanupHttp();
    }).then(() => {
      const pollIterations = options.timeout ? Math.round(options.timeout / 250) : 0;
      return waitForReadyToShutDown(pollIterations);
    }).then((force) => {
      debug("Do onShutdown now");
      if (force) {
        destroyAllConnections(force);
      }
      return options.onShutdown(sig);
    }).then(finalHandler).catch((error) => {
      const errString = typeof error === "string" ? error : JSON.stringify(error);
      debug(errString);
      failed = true;
      throw errString;
    });
  }
  function shutdownManual() {
    return shutdown("manual");
  }
  return shutdownManual;
}

function getGracefulShutdownConfig() {
  return {
    disabled: !!process.env.NITRO_SHUTDOWN_DISABLED,
    signals: (process.env.NITRO_SHUTDOWN_SIGNALS || "SIGTERM SIGINT").split(" ").map((s) => s.trim()),
    timeout: Number.parseInt(process.env.NITRO_SHUTDOWN_TIMEOUT || "", 10) || 3e4,
    forceExit: !process.env.NITRO_SHUTDOWN_NO_FORCE_EXIT
  };
}
function setupGracefulShutdown(listener, nitroApp) {
  const shutdownConfig = getGracefulShutdownConfig();
  if (shutdownConfig.disabled) {
    return;
  }
  GracefulShutdown(listener, {
    signals: shutdownConfig.signals.join(" "),
    timeout: shutdownConfig.timeout,
    forceExit: shutdownConfig.forceExit,
    onShutdown: async () => {
      await new Promise((resolve) => {
        const timeout = setTimeout(() => {
          console.warn("Graceful shutdown timeout, force exiting...");
          resolve();
        }, shutdownConfig.timeout);
        nitroApp.hooks.callHook("close").catch((error) => {
          console.error(error);
        }).finally(() => {
          clearTimeout(timeout);
          resolve();
        });
      });
    }
  });
}

const cert = process.env.NITRO_SSL_CERT;
const key = process.env.NITRO_SSL_KEY;
const nitroApp = useNitroApp();
const server = cert && key ? new Server({ key, cert }, toNodeListener(nitroApp.h3App)) : new Server$1(toNodeListener(nitroApp.h3App));
const port = destr(process.env.NITRO_PORT || process.env.PORT) || 3e3;
const host = process.env.NITRO_HOST || process.env.HOST;
const path = process.env.NITRO_UNIX_SOCKET;
const listener = server.listen(path ? { path } : { port, host }, (err) => {
  if (err) {
    console.error(err);
    process.exit(1);
  }
  const protocol = cert && key ? "https" : "http";
  const addressInfo = listener.address();
  if (typeof addressInfo === "string") {
    console.log(`Listening on unix socket ${addressInfo}`);
    return;
  }
  const baseURL = (useRuntimeConfig().app.baseURL || "").replace(/\/$/, "");
  const url = `${protocol}://${addressInfo.family === "IPv6" ? `[${addressInfo.address}]` : addressInfo.address}:${addressInfo.port}${baseURL}`;
  console.log(`Listening on ${url}`);
});
trapUnhandledNodeErrors();
setupGracefulShutdown(listener, nitroApp);
const nodeServer = {};

export { $fetch as $, getResponseStatus as a, decodePath as b, createError$1 as c, defineEventHandler as d, defineRenderHandler as e, getQuery as f, getResponseStatusText as g, getRouteRules as h, joinURL as i, joinRelativeURL as j, useNitroApp as k, getContext as l, hasProtocol as m, isScriptProtocol as n, withTrailingSlash as o, parseQuery as p, withoutTrailingSlash as q, readBody as r, sanitizeStatusCode as s, createHooks as t, useRuntimeConfig as u, executeAsync as v, withQuery as w, defu as x, nodeServer as y };
//# sourceMappingURL=nitro.mjs.map

```

---

## .output/server/chunks/nitro/nitro.mjs.map

```map
{"version":3,"file":"nitro.mjs","sources":["../../../../node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs","../../../../node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs","../../../../node_modules/.pnpm/radix3@1.1.2/node_modules/radix3/dist/index.mjs","../../../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs","../../../../node_modules/.pnpm/node-mock-http@1.0.4/node_modules/node-mock-http/dist/index.mjs","../../../../node_modules/.pnpm/h3@1.15.5/node_modules/h3/dist/index.mjs","../../../../node_modules/.pnpm/hookable@5.5.3/node_modules/hookable/dist/index.mjs","../../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/native.mjs","../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs","../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2/node_modules/unstorage/dist/index.mjs","../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2/node_modules/unstorage/drivers/utils/index.mjs","../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2/node_modules/unstorage/drivers/fs-lite.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs","../../../../node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../node_modules/.pnpm/@nuxt+nitro-server@3.21.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@_b2c4b6af65a3b405b9ab78da468773bd/node_modules/@nuxt/nitro-server/dist/runtime/utils/error.mjs","../../../../node_modules/.pnpm/@nuxt+nitro-server@3.21.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@_b2c4b6af65a3b405b9ab78da468773bd/node_modules/@nuxt/nitro-server/dist/runtime/handlers/error.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/static.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/renderer.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/presets/node/runtime/node-server.mjs"],"names":["getQuery","createRouter","f","h","i","l","createError","mergeHeaders","s","nodeFetch","Headers","Headers$1","AbortController$1","normalizeKey","defineDriver","DRIVER_NAME","dirname","fsPromises","resolve","fsp","_inlineAppConfig","createRadixRouter","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler","gracefulShutdown","HttpsServer","HttpServer"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37]}
```

---

## .output/server/chunks/routes/api/auth/login.post.mjs

```mjs
import { d as defineEventHandler, c as createError, r as readBody, u as useRuntimeConfig } from '../../../nitro/nitro.mjs';
import { g as getOrCreateUser } from '../../../_/users.mjs';
import { createInstance } from '@amplitude/analytics-node';
import 'node:http';
import 'node:https';
import 'node:events';
import 'node:buffer';
import 'node:fs';
import 'node:path';
import 'node:crypto';
import 'node:url';

const login_post = defineEventHandler(async (event) => {
  if (event.node.req.method !== "POST") {
    throw createError({
      statusCode: 405,
      statusMessage: "Method Not Allowed"
    });
  }
  const body = await readBody(event);
  const { username, password } = body;
  if (!username || !password) {
    throw createError({
      statusCode: 400,
      statusMessage: "Username and password required"
    });
  }
  const user = getOrCreateUser(username);
  const runtimeConfig = useRuntimeConfig();
  const apiKey = runtimeConfig.public.amplitudeApiKey;
  if (apiKey) {
    const amplitudeClient = createInstance();
    amplitudeClient.init(apiKey);
    amplitudeClient.track("server_login", { username }, { user_id: username });
    await amplitudeClient.flush();
  }
  return {
    success: true,
    user: { ...user }
  };
});

export { login_post as default };
//# sourceMappingURL=login.post.mjs.map

```

---

## .output/server/chunks/routes/api/auth/login.post.mjs.map

```map
{"version":3,"file":"login.post.mjs","sources":["../../../../../../server/api/auth/login.post.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,mBAAA,kBAAA,CAAA,OAAA,KAAA,KAAA;AACA,EAAA,IAAA,KAAA,CAAA,IAAA,CAAA,GAAA,CAAA,MAAA,KAAA,MAAA,EAAA;AACA,IAAA,MAAA,WAAA,CAAA;AAAA,MACA,UAAA,EAAA,GAAA;AAAA,MACA,aAAA,EAAA;AAAA,KACA,CAAA;AAAA,EACA;AAEA,EAAA,MAAA,IAAA,GAAA,MAAA,QAAA,CAAA,KAAA,CAAA;AACA,EAAA,MAAA,EAAA,QAAA,EAAA,QAAA,EAAA,GAAA,IAAA;AAEA,EAAA,IAAA,CAAA,QAAA,IAAA,CAAA,QAAA,EAAA;AACA,IAAA,MAAA,WAAA,CAAA;AAAA,MACA,UAAA,EAAA,GAAA;AAAA,MACA,aAAA,EAAA;AAAA,KACA,CAAA;AAAA,EACA;AAGA,EAAA,MAAA,IAAA,GAAA,gBAAA,QAAA,CAAA;AAEA,EAAA,MAAA,gBAAA,gBAAA,EAAA;AACA,EAAA,MAAA,MAAA,GAAA,cAAA,MAAA,CAAA,eAAA;AAEA,EAAA,IAAA,MAAA,EAAA;AACA,IAAA,MAAA,kBAAA,cAAA,EAAA;AACA,IAAA,eAAA,CAAA,KAAA,MAAA,CAAA;AACA,IAAA,eAAA,CAAA,KAAA,CAAA,gBAAA,EAAA,QAAA,IAAA,EAAA,OAAA,EAAA,UAAA,CAAA;AACA,IAAA,MAAA,gBAAA,KAAA,EAAA;AAAA,EACA;AAEA,EAAA,OAAA;AAAA,IACA,OAAA,EAAA,IAAA;AAAA,IACA,IAAA,EAAA,EAAA,GAAA,IAAA;AAAA,GACA;AACA,CAAA,CAAA;;;;"}
```

---

## .output/server/chunks/routes/api/burrito/consider.post.mjs

```mjs
import { d as defineEventHandler, c as createError, r as readBody, u as useRuntimeConfig } from '../../../nitro/nitro.mjs';
import { u as users, i as incrementBurritoConsiderations } from '../../../_/users.mjs';
import { createInstance } from '@amplitude/analytics-node';
import 'node:http';
import 'node:https';
import 'node:events';
import 'node:buffer';
import 'node:fs';
import 'node:path';
import 'node:crypto';
import 'node:url';

const consider_post = defineEventHandler(async (event) => {
  if (event.node.req.method !== "POST") {
    throw createError({
      statusCode: 405,
      statusMessage: "Method Not Allowed"
    });
  }
  const body = await readBody(event);
  const { username } = body;
  if (!username) {
    throw createError({
      statusCode: 400,
      statusMessage: "Username required"
    });
  }
  if (!users.has(username)) {
    throw createError({
      statusCode: 404,
      statusMessage: "User not found"
    });
  }
  const user = incrementBurritoConsiderations(username);
  const runtimeConfig = useRuntimeConfig();
  const apiKey = runtimeConfig.public.amplitudeApiKey;
  if (apiKey) {
    const amplitudeClient = createInstance();
    amplitudeClient.init(apiKey);
    amplitudeClient.track("burrito_considered", {
      total_considerations: user.burritoConsiderations,
      username
    }, { user_id: username });
    await amplitudeClient.flush();
  }
  return {
    success: true,
    user: { ...user }
  };
});

export { consider_post as default };
//# sourceMappingURL=consider.post.mjs.map

```

---

## .output/server/chunks/routes/api/burrito/consider.post.mjs.map

```map
{"version":3,"file":"consider.post.mjs","sources":["../../../../../../server/api/burrito/consider.post.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,sBAAA,kBAAA,CAAA,OAAA,KAAA,KAAA;AACA,EAAA,IAAA,KAAA,CAAA,IAAA,CAAA,GAAA,CAAA,MAAA,KAAA,MAAA,EAAA;AACA,IAAA,MAAA,WAAA,CAAA;AAAA,MACA,UAAA,EAAA,GAAA;AAAA,MACA,aAAA,EAAA;AAAA,KACA,CAAA;AAAA,EACA;AAEA,EAAA,MAAA,IAAA,GAAA,MAAA,QAAA,CAAA,KAAA,CAAA;AACA,EAAA,MAAA,EAAA,UAAA,GAAA,IAAA;AAEA,EAAA,IAAA,CAAA,QAAA,EAAA;AACA,IAAA,MAAA,WAAA,CAAA;AAAA,MACA,UAAA,EAAA,GAAA;AAAA,MACA,aAAA,EAAA;AAAA,KACA,CAAA;AAAA,EACA;AAEA,EAAA,IAAA,CAAA,KAAA,CAAA,GAAA,CAAA,QAAA,CAAA,EAAA;AACA,IAAA,MAAA,WAAA,CAAA;AAAA,MACA,UAAA,EAAA,GAAA;AAAA,MACA,aAAA,EAAA;AAAA,KACA,CAAA;AAAA,EACA;AAGA,EAAA,MAAA,IAAA,GAAA,+BAAA,QAAA,CAAA;AAEA,EAAA,MAAA,gBAAA,gBAAA,EAAA;AACA,EAAA,MAAA,MAAA,GAAA,cAAA,MAAA,CAAA,eAAA;AAEA,EAAA,IAAA,MAAA,EAAA;AACA,IAAA,MAAA,kBAAA,cAAA,EAAA;AACA,IAAA,eAAA,CAAA,KAAA,MAAA,CAAA;AACA,IAAA,eAAA,CAAA,MAAA,oBAAA,EAAA;AAAA,MACA,sBAAA,IAAA,CAAA,qBAAA;AAAA,MACA;AAAA,KACA,EAAA,EAAA,OAAA,EAAA,QAAA,EAAA,CAAA;AACA,IAAA,MAAA,gBAAA,KAAA,EAAA;AAAA,EACA;AAEA,EAAA,OAAA;AAAA,IACA,OAAA,EAAA,IAAA;AAAA,IACA,IAAA,EAAA,EAAA,GAAA,IAAA;AAAA,GACA;AACA,CAAA,CAAA;;;;"}
```

---

## .output/server/chunks/routes/renderer.mjs

```mjs
import { createRenderer, getRequestDependencies, getPreloadLinks, getPrefetchLinks } from 'vue-bundle-renderer/runtime';
import { j as joinRelativeURL, u as useRuntimeConfig, g as getResponseStatusText, a as getResponseStatus, b as decodePath, e as defineRenderHandler, f as getQuery, c as createError, h as getRouteRules, i as joinURL, k as useNitroApp } from '../nitro/nitro.mjs';
import { renderToString } from 'vue/server-renderer';
import { createHead as createHead$1, propsToString, renderSSRHead } from 'unhead/server';
import { stringify, uneval } from 'devalue';
import { walkResolver } from 'unhead/utils';
import { isRef, toValue, hasInjectionContext, inject, ref, watchEffect, getCurrentInstance, onBeforeUnmount, onDeactivated, onActivated } from 'vue';
import { DeprecationsPlugin, PromisesPlugin, TemplateParamsPlugin, AliasSortingPlugin } from 'unhead/plugins';

const VueResolver = (_, value) => {
  return isRef(value) ? toValue(value) : value;
};

const headSymbol = "usehead";
// @__NO_SIDE_EFFECTS__
function vueInstall(head) {
  const plugin = {
    install(app) {
      app.config.globalProperties.$unhead = head;
      app.config.globalProperties.$head = head;
      app.provide(headSymbol, head);
    }
  };
  return plugin.install;
}

// @__NO_SIDE_EFFECTS__
function injectHead() {
  if (hasInjectionContext()) {
    const instance = inject(headSymbol);
    if (!instance) {
      throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");
    }
    return instance;
  }
  throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");
}
function useHead(input, options = {}) {
  const head = options.head || /* @__PURE__ */ injectHead();
  return head.ssr ? head.push(input || {}, options) : clientUseHead(head, input, options);
}
function clientUseHead(head, input, options = {}) {
  const deactivated = ref(false);
  let entry;
  watchEffect(() => {
    const i = deactivated.value ? {} : walkResolver(input, VueResolver);
    if (entry) {
      entry.patch(i);
    } else {
      entry = head.push(i, options);
    }
  });
  const vm = getCurrentInstance();
  if (vm) {
    onBeforeUnmount(() => {
      entry.dispose();
    });
    onDeactivated(() => {
      deactivated.value = true;
    });
    onActivated(() => {
      deactivated.value = false;
    });
  }
  return entry;
}

// @__NO_SIDE_EFFECTS__
function createHead(options = {}) {
  const head = createHead$1({
    ...options,
    propResolvers: [VueResolver]
  });
  head.install = vueInstall(head);
  return head;
}

const NUXT_RUNTIME_PAYLOAD_EXTRACTION = false;

const appHead = {"meta":[{"name":"viewport","content":"width=device-width, initial-scale=1"},{"charset":"utf-8"}],"link":[],"style":[],"script":[],"noscript":[]};

const appRootTag = "div";

const appRootAttrs = {"id":"__nuxt"};

const appTeleportTag = "div";

const appTeleportAttrs = {"id":"teleports"};

const appId = "nuxt-app";

function baseURL() {
	// TODO: support passing event to `useRuntimeConfig`
	return useRuntimeConfig().app.baseURL;
}
function buildAssetsDir() {
	// TODO: support passing event to `useRuntimeConfig`
	return useRuntimeConfig().app.buildAssetsDir;
}
function buildAssetsURL(...path) {
	return joinRelativeURL(publicAssetsURL(), buildAssetsDir(), ...path);
}
function publicAssetsURL(...path) {
	// TODO: support passing event to `useRuntimeConfig`
	const app = useRuntimeConfig().app;
	const publicBase = app.cdnURL || app.baseURL;
	return path.length ? joinRelativeURL(publicBase, ...path) : publicBase;
}

const APP_ROOT_OPEN_TAG = `<${appRootTag}${propsToString(appRootAttrs)}>`;
const APP_ROOT_CLOSE_TAG = `</${appRootTag}>`;
// @ts-expect-error file will be produced after app build
const getServerEntry = () => import('../build/server.mjs').then((r) => r.default || r);
// @ts-expect-error file will be produced after app build
const getPrecomputedDependencies = () => import('../build/client.precomputed.mjs').then((r) => r.default || r).then((r) => typeof r === "function" ? r() : r);
// -- SSR Renderer --
const getSSRRenderer = lazyCachedFunction(async () => {
	// Load server bundle
	const createSSRApp = await getServerEntry();
	if (!createSSRApp) {
		throw new Error("Server bundle is not available");
	}
	// Load precomputed dependencies
	const precomputed = await getPrecomputedDependencies();
	// Create renderer
	const renderer = createRenderer(createSSRApp, {
		precomputed,
		manifest: undefined,
		renderToString: renderToString$1,
		buildAssetsURL
	});
	async function renderToString$1(input, context) {
		const html = await renderToString(input, context);
		return APP_ROOT_OPEN_TAG + html + APP_ROOT_CLOSE_TAG;
	}
	return renderer;
});
// -- SPA Renderer --
const getSPARenderer = lazyCachedFunction(async () => {
	const precomputed = await getPrecomputedDependencies();
	// @ts-expect-error virtual file
	const spaTemplate = await import('../virtual/_virtual_spa-template.mjs').then((r) => r.template).catch(() => "").then((r) => {
		{
			return APP_ROOT_OPEN_TAG + r + APP_ROOT_CLOSE_TAG;
		}
	});
	// Create SPA renderer and cache the result for all requests
	const renderer = createRenderer(() => () => {}, {
		precomputed,
		manifest: undefined,
		renderToString: () => spaTemplate,
		buildAssetsURL
	});
	const result = await renderer.renderToString({});
	const renderToString = (ssrContext) => {
		const config = useRuntimeConfig(ssrContext.event);
		ssrContext.modules ||= new Set();
		ssrContext.payload.serverRendered = false;
		ssrContext.config = {
			public: config.public,
			app: config.app
		};
		return Promise.resolve(result);
	};
	return {
		rendererContext: renderer.rendererContext,
		renderToString
	};
});
function lazyCachedFunction(fn) {
	let res = null;
	return () => {
		if (res === null) {
			res = fn().catch((err) => {
				res = null;
				throw err;
			});
		}
		return res;
	};
}
function getRenderer(ssrContext) {
	return ssrContext.noSSR ? getSPARenderer() : getSSRRenderer();
}
// @ts-expect-error file will be produced after app build
const getSSRStyles = lazyCachedFunction(() => import('../build/styles.mjs').then((r) => r.default || r));

function renderPayloadResponse(ssrContext) {
	return {
		body: stringify(splitPayload(ssrContext).payload, ssrContext["~payloadReducers"]) ,
		statusCode: getResponseStatus(ssrContext.event),
		statusMessage: getResponseStatusText(ssrContext.event),
		headers: {
			"content-type": "application/json;charset=utf-8" ,
			"x-powered-by": "Nuxt"
		}
	};
}
function renderPayloadJsonScript(opts) {
	const contents = opts.data ? stringify(opts.data, opts.ssrContext["~payloadReducers"]) : "";
	const payload = {
		"type": "application/json",
		"innerHTML": contents,
		"data-nuxt-data": appId,
		"data-ssr": !(opts.ssrContext.noSSR)
	};
	{
		payload.id = "__NUXT_DATA__";
	}
	if (opts.src) {
		payload["data-src"] = opts.src;
	}
	const config = uneval(opts.ssrContext.config);
	return [payload, { innerHTML: `window.__NUXT__={};window.__NUXT__.config=${config}` }];
}
function splitPayload(ssrContext) {
	const { data, prerenderedAt, ...initial } = ssrContext.payload;
	return {
		initial: {
			...initial,
			prerenderedAt
		},
		payload: {
			data,
			prerenderedAt
		}
	};
}

const unheadOptions = {
  disableDefaults: true,
  disableCapoSorting: false,
  plugins: [DeprecationsPlugin, PromisesPlugin, TemplateParamsPlugin, AliasSortingPlugin],
};

function createSSRContext(event) {
	const ssrContext = {
		url: decodePath(event.path),
		event,
		runtimeConfig: useRuntimeConfig(event),
		noSSR: event.context.nuxt?.noSSR || (false),
		head: createHead(unheadOptions),
		error: false,
		nuxt: undefined,
		payload: {},
		["~payloadReducers"]: Object.create(null),
		modules: new Set()
	};
	return ssrContext;
}
function setSSRError(ssrContext, error) {
	ssrContext.error = true;
	ssrContext.payload = { error };
	ssrContext.url = error.url;
}

async function renderInlineStyles(usedModules) {
	const styleMap = await getSSRStyles();
	const inlinedStyles = new Set();
	for (const mod of usedModules) {
		if (mod in styleMap && styleMap[mod]) {
			for (const style of await styleMap[mod]()) {
				inlinedStyles.add(style);
			}
		}
	}
	return Array.from(inlinedStyles).map((style) => ({ innerHTML: style }));
}

const renderSSRHeadOptions = {"omitLineBreaks":false};

const entryIds = ["node_modules/.pnpm/nuxt@3.21.0_@parcel+watcher@2.5.6_@types+node@20.19.31_@vue+compiler-sfc@3.5.27_cac@6.7_ecadb268bd75e3f36d2c1fc8da0a5024/node_modules/nuxt/dist/app/entry.js"];

// @ts-expect-error private property consumed by vite-generated url helpers
globalThis.__buildAssetsURL = buildAssetsURL;
// @ts-expect-error private property consumed by vite-generated url helpers
globalThis.__publicAssetsURL = publicAssetsURL;
const HAS_APP_TELEPORTS = !!(appTeleportAttrs.id);
const APP_TELEPORT_OPEN_TAG = HAS_APP_TELEPORTS ? `<${appTeleportTag}${propsToString(appTeleportAttrs)}>` : "";
const APP_TELEPORT_CLOSE_TAG = HAS_APP_TELEPORTS ? `</${appTeleportTag}>` : "";
const PAYLOAD_URL_RE = /^[^?]*\/_payload.json(?:\?.*)?$/ ;
const PAYLOAD_FILENAME = "_payload.json" ;
const renderer = defineRenderHandler(async (event) => {
	const nitroApp = useNitroApp();
	// Whether we're rendering an error page
	const ssrError = event.path.startsWith("/__nuxt_error") ? getQuery(event) : null;
	if (ssrError && !("__unenv__" in event.node.req)) {
		throw createError({
			status: 404,
			statusText: "Page Not Found: /__nuxt_error",
			message: "Page Not Found: /__nuxt_error"
		});
	}
	// Initialize ssr context
	const ssrContext = createSSRContext(event);
	// needed for hash hydration plugin to work
	const headEntryOptions = { mode: "server" };
	ssrContext.head.push(appHead, headEntryOptions);
	if (ssrError) {
		// eslint-disable-next-line @typescript-eslint/no-deprecated
		const status = ssrError.status || ssrError.statusCode;
		if (status) {
			// eslint-disable-next-line @typescript-eslint/no-deprecated
			ssrError.status = ssrError.statusCode = Number.parseInt(status);
		}
		setSSRError(ssrContext, ssrError);
	}
	// Get route options (for `ssr: false`, `isr`, `cache` and `noScripts`)
	const routeOptions = getRouteRules(event);
	// Whether we are prerendering route or using ISR/SWR caching
	const _PAYLOAD_EXTRACTION = !ssrContext.noSSR && (NUXT_RUNTIME_PAYLOAD_EXTRACTION);
	const isRenderingPayload = (_PAYLOAD_EXTRACTION || false) && PAYLOAD_URL_RE.test(ssrContext.url);
	if (isRenderingPayload) {
		const url = ssrContext.url.substring(0, ssrContext.url.lastIndexOf("/")) || "/";
		ssrContext.url = url;
		event._path = event.node.req.url = url;
	}
	if (routeOptions.ssr === false) {
		ssrContext.noSSR = true;
	}
	const payloadURL = _PAYLOAD_EXTRACTION ? joinURL(ssrContext.runtimeConfig.app.cdnURL || ssrContext.runtimeConfig.app.baseURL, ssrContext.url.replace(/\?.*$/, ""), PAYLOAD_FILENAME) + "?" + ssrContext.runtimeConfig.app.buildId : undefined;
	// Render app
	const renderer = await getRenderer(ssrContext);
	{
		for (const id of entryIds) {
			ssrContext.modules.add(id);
		}
	}
	const _rendered = await renderer.renderToString(ssrContext).catch(async (error) => {
		// We use error to bypass full render if we have an early response we can make
		// TODO: remove _renderResponse in nuxt v5
		if ((ssrContext["~renderResponse"] || ssrContext._renderResponse) && error.message === "skipping render") {
			return {};
		}
		// Use explicitly thrown error in preference to subsequent rendering errors
		const _err = !ssrError && ssrContext.payload?.error || error;
		await ssrContext.nuxt?.hooks.callHook("app:error", _err);
		throw _err;
	});
	// Render inline styles
	// TODO: remove _renderResponse in nuxt v5
	const inlinedStyles = !ssrContext["~renderResponse"] && !ssrContext._renderResponse && !isRenderingPayload ? await renderInlineStyles(ssrContext.modules ?? []) : [];
	await ssrContext.nuxt?.hooks.callHook("app:rendered", {
		ssrContext,
		renderResult: _rendered
	});
	if (ssrContext["~renderResponse"] || ssrContext._renderResponse) {
		// TODO: remove _renderResponse in nuxt v5
		return ssrContext["~renderResponse"] || ssrContext._renderResponse;
	}
	// Handle errors
	if (ssrContext.payload?.error && !ssrError) {
		throw ssrContext.payload.error;
	}
	// Directly render payload routes
	if (isRenderingPayload) {
		const response = renderPayloadResponse(ssrContext);
		return response;
	}
	const NO_SCRIPTS = routeOptions.noScripts;
	// Setup head
	const { styles, scripts } = getRequestDependencies(ssrContext, renderer.rendererContext);
	// 1. Preload payloads and app manifest
	if (_PAYLOAD_EXTRACTION && !NO_SCRIPTS) {
		ssrContext.head.push({ link: [{
			rel: "preload",
			as: "fetch",
			crossorigin: "anonymous",
			href: payloadURL
		} ] }, headEntryOptions);
	}
	if (ssrContext["~preloadManifest"] && !NO_SCRIPTS) {
		ssrContext.head.push({ link: [{
			rel: "preload",
			as: "fetch",
			fetchpriority: "low",
			crossorigin: "anonymous",
			href: buildAssetsURL(`builds/meta/${ssrContext.runtimeConfig.app.buildId}.json`)
		}] }, {
			...headEntryOptions,
			tagPriority: "low"
		});
	}
	// 2. Styles
	if (inlinedStyles.length) {
		ssrContext.head.push({ style: inlinedStyles });
	}
	const link = [];
	for (const resource of Object.values(styles)) {
		// Add CSS links in <head> for CSS files
		// - in production
		// - in dev mode when not rendering an island
		link.push({
			rel: "stylesheet",
			href: renderer.rendererContext.buildAssetsURL(resource.file),
			crossorigin: ""
		});
	}
	if (link.length) {
		ssrContext.head.push({ link }, headEntryOptions);
	}
	if (!NO_SCRIPTS) {
		// 4. Resource Hints
		// Remove lazy hydrated modules from ssrContext.modules so they don't get preloaded
		// (CSS links are already added above, this only affects JS preloads)
		if (ssrContext["~lazyHydratedModules"]) {
			for (const id of ssrContext["~lazyHydratedModules"]) {
				ssrContext.modules?.delete(id);
			}
		}
		// TODO: add priorities based on Capo
		ssrContext.head.push({ link: getPreloadLinks(ssrContext, renderer.rendererContext) }, headEntryOptions);
		ssrContext.head.push({ link: getPrefetchLinks(ssrContext, renderer.rendererContext) }, headEntryOptions);
		// 5. Payloads
		ssrContext.head.push({ script: _PAYLOAD_EXTRACTION ? renderPayloadJsonScript({
			ssrContext,
			data: splitPayload(ssrContext).initial,
			src: payloadURL
		})  : renderPayloadJsonScript({
			ssrContext,
			data: ssrContext.payload
		})  }, {
			...headEntryOptions,
			tagPosition: "bodyClose",
			tagPriority: "high"
		});
	}
	// 6. Scripts
	if (!routeOptions.noScripts) {
		const tagPosition = "head";
		ssrContext.head.push({ script: Object.values(scripts).map((resource) => ({
			type: resource.module ? "module" : null,
			src: renderer.rendererContext.buildAssetsURL(resource.file),
			defer: resource.module ? null : true,
			tagPosition,
			crossorigin: ""
		})) }, headEntryOptions);
	}
	const { headTags, bodyTags, bodyTagsOpen, htmlAttrs, bodyAttrs } = await renderSSRHead(ssrContext.head, renderSSRHeadOptions);
	// Create render context
	const htmlContext = {
		htmlAttrs: htmlAttrs ? [htmlAttrs] : [],
		head: normalizeChunks([headTags]),
		bodyAttrs: bodyAttrs ? [bodyAttrs] : [],
		bodyPrepend: normalizeChunks([bodyTagsOpen, ssrContext.teleports?.body]),
		body: [_rendered.html, APP_TELEPORT_OPEN_TAG + (HAS_APP_TELEPORTS ? joinTags([ssrContext.teleports?.[`#${appTeleportAttrs.id}`]]) : "") + APP_TELEPORT_CLOSE_TAG],
		bodyAppend: [bodyTags]
	};
	// Allow hooking into the rendered result
	await nitroApp.hooks.callHook("render:html", htmlContext, { event });
	// Construct HTML response
	return {
		body: renderHTMLDocument(htmlContext),
		statusCode: getResponseStatus(event),
		statusMessage: getResponseStatusText(event),
		headers: {
			"content-type": "text/html;charset=utf-8",
			"x-powered-by": "Nuxt"
		}
	};
});
function normalizeChunks(chunks) {
	const result = [];
	for (const _chunk of chunks) {
		const chunk = _chunk?.trim();
		if (chunk) {
			result.push(chunk);
		}
	}
	return result;
}
function joinTags(tags) {
	return tags.join("");
}
function joinAttrs(chunks) {
	if (chunks.length === 0) {
		return "";
	}
	return " " + chunks.join(" ");
}
function renderHTMLDocument(html) {
	return "<!DOCTYPE html>" + `<html${joinAttrs(html.htmlAttrs)}>` + `<head>${joinTags(html.head)}</head>` + `<body${joinAttrs(html.bodyAttrs)}>${joinTags(html.bodyPrepend)}${joinTags(html.body)}${joinTags(html.bodyAppend)}</body>` + "</html>";
}

const renderer$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
  __proto__: null,
  default: renderer
}, Symbol.toStringTag, { value: 'Module' }));

export { baseURL as b, headSymbol as h, renderer$1 as r, useHead as u };
//# sourceMappingURL=renderer.mjs.map

```

---

## .output/server/chunks/routes/renderer.mjs.map

```map
{"version":3,"file":"renderer.mjs","sources":["../../../../node_modules/.pnpm/@unhead+vue@2.1.2_vue@3.5.27/node_modules/@unhead/vue/dist/shared/vue.N9zWjxoK.mjs","../../../../node_modules/.pnpm/@unhead+vue@2.1.2_vue@3.5.27/node_modules/@unhead/vue/dist/shared/vue.Bm-NbY4b.mjs","../../../../node_modules/.pnpm/@unhead+vue@2.1.2_vue@3.5.27/node_modules/@unhead/vue/dist/server.mjs","../../../../node_modules/.pnpm/@nuxt+nitro-server@3.21.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@_b2c4b6af65a3b405b9ab78da468773bd/node_modules/@nuxt/nitro-server/dist/runtime/utils/paths.mjs","../../../../node_modules/.pnpm/@nuxt+nitro-server@3.21.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@_b2c4b6af65a3b405b9ab78da468773bd/node_modules/@nuxt/nitro-server/dist/runtime/utils/renderer/build-files.mjs","../../../../node_modules/.pnpm/@nuxt+nitro-server@3.21.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@_b2c4b6af65a3b405b9ab78da468773bd/node_modules/@nuxt/nitro-server/dist/runtime/utils/renderer/payload.mjs","../../../../node_modules/.pnpm/@nuxt+nitro-server@3.21.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@_b2c4b6af65a3b405b9ab78da468773bd/node_modules/@nuxt/nitro-server/dist/runtime/utils/renderer/app.mjs","../../../../node_modules/.pnpm/@nuxt+nitro-server@3.21.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@_b2c4b6af65a3b405b9ab78da468773bd/node_modules/@nuxt/nitro-server/dist/runtime/utils/renderer/inline-styles.mjs","../../../../node_modules/.pnpm/@nuxt+nitro-server@3.21.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@_b2c4b6af65a3b405b9ab78da468773bd/node_modules/@nuxt/nitro-server/dist/runtime/handlers/renderer.mjs"],"names":["renderToString","_renderToString"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8]}
```

---

## .output/server/chunks/virtual/_virtual_spa-template.mjs

```mjs
const template = "";

export { template };
//# sourceMappingURL=_virtual_spa-template.mjs.map

```

---

## .output/server/chunks/virtual/_virtual_spa-template.mjs.map

```map
{"version":3,"file":"_virtual_spa-template.mjs","sources":[],"names":[],"mappings":";;;;"}
```

---

## .output/server/index.mjs

```mjs
import process from 'node:process';globalThis._importMeta_={url:import.meta.url,env:process.env};import 'node:http';
import 'node:https';
export { y as default } from './chunks/nitro/nitro.mjs';
import 'node:events';
import 'node:buffer';
import 'node:fs';
import 'node:path';
import 'node:crypto';
import 'node:url';
//# sourceMappingURL=index.mjs.map

```

---

## .output/server/index.mjs.map

```map
{"version":3,"file":"index.mjs","sources":[],"names":[],"mappings":";;;;;;;;"}
```

---

## app.vue

```vue
<template>
  <div>
    <NuxtRouteAnnouncer />
    <Header />
    <main>
      <NuxtPage />
    </main>
  </div>
</template>

```

---

## components/Header.vue

```vue
<template>
  <header class="header">
    <div class="header-container">
      <nav>
        <NuxtLink to="/">Home</NuxtLink>
        <template v-if="user">
          <NuxtLink to="/burrito">Burrito Consideration</NuxtLink>
          <NuxtLink to="/profile">Profile</NuxtLink>
        </template>
      </nav>
      <div class="user-section">
        <template v-if="user">
          <span>Welcome, {{ user.username }}!</span>
          <button @click="handleLogout" class="btn-logout">
            Logout
          </button>
        </template>
        <template v-else>
          <span>Not logged in</span>
        </template>
      </div>
    </div>
  </header>
</template>

<script setup lang="ts">
const auth = useAuth()
const user = computed(() => auth.user.value)
const { $amplitude: amplitude } = useNuxtApp()

const handleLogout = () => {
  amplitude?.track('User Logged Out')
  amplitude?.reset()
  auth.logout()
}
</script>

```

---

## composables/useAuth.ts

```ts
interface User {
  username: string
  burritoConsiderations: number
}

const users = new Map<string, User>()

export const useAuth = () => {
  const user = useState<User | null>('auth-user', () => {
    if (typeof window !== 'undefined') {
      const storedUsername = localStorage.getItem('currentUser')
      if (storedUsername) {
        const existingUser = users.get(storedUsername)
        if (existingUser) {
          return existingUser
        }
      }
    }
    return null
  })

  const login = async (username: string, password: string): Promise<boolean> => {
    if (!username || !password) {
      return false
    }

    try {
      const response = await $fetch('/api/auth/login', {
        method: 'POST',
        body: { username, password },
      })

      if (response.success && response.user) {
        // Update client-side state
        user.value = response.user
        users.set(username, response.user)
        
        if (typeof window !== 'undefined') {
          localStorage.setItem('currentUser', username)
        }

        return true
      }
      return false
    } catch (err) {
      console.error('Login error:', err)
      return false
    }
  }

  const logout = () => {
    user.value = null
    if (typeof window !== 'undefined') {
      localStorage.removeItem('currentUser')
    }
  }

  const setUser = (newUser: User) => {
    user.value = newUser
    users.set(newUser.username, newUser)
  }

  const incrementBurritoConsiderations = () => {
    if (user.value) {
      user.value.burritoConsiderations++
      users.set(user.value.username, user.value)
      // Trigger reactivity by creating a new object
      user.value = { ...user.value }
    }
  }

  return {
    user,
    login,
    logout,
    setUser,
    incrementBurritoConsiderations
  }
}

```

---

## nuxt.config.ts

```ts
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2025-07-15',
  devtools: { enabled: true },
  css: ['~/assets/css/main.css'],
  runtimeConfig: {
    public: {
      amplitudeApiKey: process.env.NUXT_PUBLIC_AMPLITUDE_API_KEY,
    },
  },
})


```

---

## pages/burrito.vue

```vue
<template>
  <div class="container">
    <h1>Burrito consideration zone</h1>
    <p>Take a moment to truly consider the potential of burritos.</p>

    <div style="text-align: center">
      <button
        @click="handleConsideration"
        class="btn-burrito"
      >
        I have considered the burrito potential
      </button>

      <p v-if="hasConsidered" class="success">
        Thank you for your consideration! Count: {{ user?.burritoConsiderations }}
      </p>
    </div>

    <div class="stats">
      <h3>Consideration stats</h3>
      <p>Total considerations: {{ user?.burritoConsiderations }}</p>
    </div>
  </div>
</template>

<script setup lang="ts">
const auth = useAuth()
const user = computed(() => auth.user.value)
const router = useRouter()
const hasConsidered = ref(false)
const { $amplitude: amplitude } = useNuxtApp()

// Redirect to home if not logged in
watchEffect(() => {
  if (!user.value) {
    router.push('/')
  }
})

const handleConsideration = async () => {
  if (!user.value) return

  try {
    const response = await $fetch('/api/burrito/consider', {
      method: 'POST',
      body: { username: user.value.username },
    })

    if (response.success && response.user) {
      auth.setUser(response.user)
      hasConsidered.value = true

      // Client-side tracking (in addition to server-side tracking)
      amplitude.track('Burrito Considered', {
        total_considerations: response.user.burritoConsiderations,
        username: response.user.username,
      })

      setTimeout(() => {
        hasConsidered.value = false
      }, 2000)
    }
  } catch (err) {
    console.error('Error considering burrito:', err)
  }
}
</script>

```

---

## pages/index.vue

```vue
<template>
  <div class="container">
    <template v-if="user">
      <h1>Welcome back, {{ user.username }}!</h1>
      <p>You are now logged in. Feel free to explore:</p>
      <ul>
        <li>Consider the potential of burritos</li>
        <li>View your profile and statistics</li>
      </ul>
    </template>
    <template v-else>
      <h1>Welcome to Burrito Consideration App</h1>
      <p>Please sign in to begin your burrito journey</p>

      <form @submit.prevent="handleSubmit" class="form">
        <div class="form-group">
          <label for="username">Username:</label>
          <input
            type="text"
            id="username"
            v-model="username"
            placeholder="Enter any username"
          />
        </div>

        <div class="form-group">
          <label for="password">Password:</label>
          <input
            type="password"
            id="password"
            v-model="password"
            placeholder="Enter any password"
          />
        </div>

        <p v-if="error" class="error">{{ error }}</p>

        <button type="submit" class="btn-primary">Sign In</button>
      </form>

      <p class="note">
        Note: This is a demo app. Use any username and password to sign in.
      </p>
    </template>
  </div>
</template>

<script setup lang="ts">
import { Identify } from '@amplitude/unified'

const auth = useAuth()
const user = computed(() => auth.user.value)
const username = ref('')
const password = ref('')
const error = ref('')
const { $amplitude: amplitude } = useNuxtApp()

const handleSubmit = async () => {
  error.value = ''

  const success = await auth.login(username.value, password.value)
  if (success) {
    // Identify user in Amplitude using username as user ID
    amplitude.setUserId(username.value)
    const identifyObj = new Identify()
    identifyObj.set('username', username.value)
    amplitude.identify(identifyObj)

    // Capture login event
    amplitude.track('User Logged In', { username: username.value })

    username.value = ''
    password.value = ''
  } else {
    error.value = 'Please provide both username and password'
  }
}
</script>

```

---

## pages/profile.vue

```vue
<template>
  <div class="container">
    <h1>User Profile</h1>

    <div class="stats">
      <h2>Your Information</h2>
      <p><strong>Username:</strong> {{ user?.username }}</p>
      <p><strong>Burrito Considerations:</strong> {{ user?.burritoConsiderations }}</p>
    </div>

    <div style="margin-top: 2rem">
      <h3>Your Burrito Journey</h3>
      <template v-if="user">
        <p v-if="user.burritoConsiderations === 0">
          You haven't considered any burritos yet. Visit the Burrito Consideration page to start!
        </p>
        <p v-else-if="user.burritoConsiderations === 1">
          You've considered the burrito potential once. Keep going!
        </p>
        <p v-else-if="user.burritoConsiderations < 5">
          You're getting the hang of burrito consideration!
        </p>
        <p v-else-if="user.burritoConsiderations < 10">
          You're becoming a burrito consideration expert!
        </p>
        <p v-else>
          You are a true burrito consideration master! 🌯
        </p>
      </template>
    </div>
  </div>
</template>

<script setup lang="ts">
const auth = useAuth()
const user = computed(() => auth.user.value)
const router = useRouter()

// Redirect to home if not logged in
watchEffect(() => {
  if (!user.value) {
    router.push('/')
  }
})
</script>

```

---

## plugins/amplitude.client.ts

```ts
import { defineNuxtPlugin, useRuntimeConfig } from '#imports'
import * as amplitude from '@amplitude/unified'

export default defineNuxtPlugin((nuxtApp) => {
  const runtimeConfig = useRuntimeConfig()
  const apiKey = runtimeConfig.public.amplitudeApiKey as string | undefined

  if (apiKey) {
    void amplitude.initAll(apiKey)
  }

  return {
    provide: {
      amplitude,
    },
  }
})

```

---

## public/robots.txt

```txt
User-Agent: *
Disallow:

```

---

## server/api/auth/login.post.ts

```ts
import { getOrCreateUser } from '~/server/utils/users'
import { createInstance } from '@amplitude/analytics-node'
import type { NodeClient } from '@amplitude/analytics-core'
import { useRuntimeConfig } from '#imports'

export default defineEventHandler(async (event) => {
  if (event.node.req.method !== 'POST') {
    throw createError({
      statusCode: 405,
      statusMessage: 'Method Not Allowed'
    })
  }

  const body = await readBody(event)
  const { username, password } = body

  if (!username || !password) {
    throw createError({
      statusCode: 400,
      statusMessage: 'Username and password required'
    })
  }

  // Fake auth - just get or create user
  const user = getOrCreateUser(username)

  const runtimeConfig = useRuntimeConfig()
  const apiKey = runtimeConfig.public.amplitudeApiKey as string | undefined

  if (apiKey) {
    const amplitudeClient: NodeClient = createInstance()
    amplitudeClient.init(apiKey)
    amplitudeClient.track('Server Login Completed', { username }, { user_id: username })
    await amplitudeClient.flush()
  }

  return {
    success: true,
    user: { ...user }
  }
})

```

---

## server/api/burrito/consider.post.ts

```ts
import { users, incrementBurritoConsiderations } from '~/server/utils/users'
import { createInstance } from '@amplitude/analytics-node'
import type { NodeClient } from '@amplitude/analytics-core'
import { useRuntimeConfig } from '#imports'

export default defineEventHandler(async (event) => {
  if (event.node.req.method !== 'POST') {
    throw createError({
      statusCode: 405,
      statusMessage: 'Method Not Allowed'
    })
  }

  const body = await readBody(event)
  const { username } = body

  if (!username) {
    throw createError({
      statusCode: 400,
      statusMessage: 'Username required'
    })
  }

  if (!users.has(username)) {
    throw createError({
      statusCode: 404,
      statusMessage: 'User not found'
    })
  }

  // Increment burrito considerations (fake, in-memory)
  const user = incrementBurritoConsiderations(username)

  const runtimeConfig = useRuntimeConfig()
  const apiKey = runtimeConfig.public.amplitudeApiKey as string | undefined

  if (apiKey) {
    const amplitudeClient: NodeClient = createInstance()
    amplitudeClient.init(apiKey)
    amplitudeClient.track('Burrito Considered', {
      total_considerations: user.burritoConsiderations,
      username,
    }, { user_id: username })
    await amplitudeClient.flush()
  }

  return {
    success: true,
    user: { ...user }
  }
})

```

---

## server/utils/users.ts

```ts
interface User {
  username: string
  burritoConsiderations: number
}

// Shared in-memory storage for users (fake, no database)
export const users = new Map<string, User>()

export function getOrCreateUser(username: string): User {
  let user = users.get(username)
  
  if (!user) {
    user = { 
      username, 
      burritoConsiderations: 0 
    }
    users.set(username, user)
  }
  
  return user
}

export function incrementBurritoConsiderations(username: string): User {
  const user = users.get(username)
  
  if (!user) {
    throw new Error('User not found')
  }
  
  user.burritoConsiderations++
  users.set(username, user)
  
  return { ...user }
}

```

---

## types/nuxt-app.d.ts

```ts
import type * as amplitude from '@amplitude/unified'

declare module '#app' {
  interface NuxtApp {
    $amplitude: typeof amplitude
  }
}

export {}

```

---

