From 01d450c3fa06aeddc4bbbc3cb7e1238f4fc72854 Mon Sep 17 00:00:00 2001 From: GauthierWebDev Date: Thu, 17 Apr 2025 13:14:30 +0200 Subject: [PATCH] chore: Delete dist directory --- .gitea/workflows/deploy.yaml | 62 + .gitignore | 3 +- app/dist/assets.json | 206 ---- .../client/assets/chunks/chunk-FoQi8sq6.js | 4 - .../client/assets/chunks/chunk-YnSR0nZE.js | 75 -- .../entries/entry-client-routing.Bc4tBJ4_.js | 1 - .../assets/entries/pages_docs.Gi7h7KmT.js | 65 - .../assets/entries/pages_error.DlwLYWej.js | 1 - .../assets/entries/pages_index.Bb824t1n.js | 1 - .../assets/static/blur-cyan.DJww6-ho.png | Bin 218615 -> 0 bytes .../assets/static/blur-indigo.Cbr0CUfr.png | Bin 224214 -> 0 bytes ...er-cyrillic-ext-wght-normal.B2xhLi22.woff2 | Bin 25888 -> 0 bytes .../inter-cyrillic-wght-normal.CMZtQduZ.woff2 | Bin 18740 -> 0 bytes ...inter-greek-ext-wght-normal.CGAr0uHJ.woff2 | Bin 11200 -> 0 bytes .../inter-greek-wght-normal.CaVNZxsx.woff2 | Bin 19072 -> 0 bytes ...inter-latin-ext-wght-normal.CFHvXkgd.woff2 | Bin 74328 -> 0 bytes .../inter-latin-wght-normal.C2S99t-D.woff2 | Bin 48444 -> 0 bytes ...nter-vietnamese-wght-normal.CBcvBZtf.woff2 | Bin 10252 -> 0 bytes .../layouts_prism-feac250c.B2a_QZIO.css | 1 - .../layouts_style-b34a8e57.HyLxvJhb.css | 1 - .../layouts_tailwind-00e65532.kM054_rr.css | 1 - ...exend-latin-ext-wght-normal.Ca5OILQq.woff2 | Bin 34384 -> 0 bytes .../lexend-latin-wght-normal.ga3u8m5q.woff2 | Bin 39728 -> 0 bytes ...xend-vietnamese-wght-normal.RvljkFvg.woff2 | Bin 13840 -> 0 bytes .../assets/static/style-1efdef47.B5Troj4Q.css | 1 - .../static/vike-react-fe70c48a.BcWtY8Ol.css | 1 - app/dist/client/merise/mcd-1.webp | Bin 7768 -> 0 bytes app/dist/client/merise/mcd-2.webp | Bin 10346 -> 0 bytes app/dist/client/merise/mcd-3.webp | Bin 5988 -> 0 bytes app/dist/client/merise/mcd-4.webp | Bin 22046 -> 0 bytes app/dist/client/merise/mcd-5.webp | Bin 22322 -> 0 bytes app/dist/server/chunks/chunk-Cog4aWZK.js | 775 ------------ app/dist/server/chunks/chunk-DhcPoVSR.js | 1089 ----------------- app/dist/server/entries/pages_docs.mjs | 160 --- app/dist/server/entries/pages_error.mjs | 132 -- app/dist/server/entries/pages_index.mjs | 120 -- app/dist/server/entry.mjs | 385 ------ app/dist/server/package.json | 1 - 38 files changed, 64 insertions(+), 3021 deletions(-) create mode 100644 .gitea/workflows/deploy.yaml delete mode 100644 app/dist/assets.json delete mode 100644 app/dist/client/assets/chunks/chunk-FoQi8sq6.js delete mode 100644 app/dist/client/assets/chunks/chunk-YnSR0nZE.js delete mode 100644 app/dist/client/assets/entries/entry-client-routing.Bc4tBJ4_.js delete mode 100644 app/dist/client/assets/entries/pages_docs.Gi7h7KmT.js delete mode 100644 app/dist/client/assets/entries/pages_error.DlwLYWej.js delete mode 100644 app/dist/client/assets/entries/pages_index.Bb824t1n.js delete mode 100644 app/dist/client/assets/static/blur-cyan.DJww6-ho.png delete mode 100644 app/dist/client/assets/static/blur-indigo.Cbr0CUfr.png delete mode 100644 app/dist/client/assets/static/inter-cyrillic-ext-wght-normal.B2xhLi22.woff2 delete mode 100644 app/dist/client/assets/static/inter-cyrillic-wght-normal.CMZtQduZ.woff2 delete mode 100644 app/dist/client/assets/static/inter-greek-ext-wght-normal.CGAr0uHJ.woff2 delete mode 100644 app/dist/client/assets/static/inter-greek-wght-normal.CaVNZxsx.woff2 delete mode 100644 app/dist/client/assets/static/inter-latin-ext-wght-normal.CFHvXkgd.woff2 delete mode 100644 app/dist/client/assets/static/inter-latin-wght-normal.C2S99t-D.woff2 delete mode 100644 app/dist/client/assets/static/inter-vietnamese-wght-normal.CBcvBZtf.woff2 delete mode 100644 app/dist/client/assets/static/layouts_prism-feac250c.B2a_QZIO.css delete mode 100644 app/dist/client/assets/static/layouts_style-b34a8e57.HyLxvJhb.css delete mode 100644 app/dist/client/assets/static/layouts_tailwind-00e65532.kM054_rr.css delete mode 100644 app/dist/client/assets/static/lexend-latin-ext-wght-normal.Ca5OILQq.woff2 delete mode 100644 app/dist/client/assets/static/lexend-latin-wght-normal.ga3u8m5q.woff2 delete mode 100644 app/dist/client/assets/static/lexend-vietnamese-wght-normal.RvljkFvg.woff2 delete mode 100644 app/dist/client/assets/static/style-1efdef47.B5Troj4Q.css delete mode 100644 app/dist/client/assets/static/vike-react-fe70c48a.BcWtY8Ol.css delete mode 100644 app/dist/client/merise/mcd-1.webp delete mode 100644 app/dist/client/merise/mcd-2.webp delete mode 100644 app/dist/client/merise/mcd-3.webp delete mode 100644 app/dist/client/merise/mcd-4.webp delete mode 100644 app/dist/client/merise/mcd-5.webp delete mode 100644 app/dist/server/chunks/chunk-Cog4aWZK.js delete mode 100644 app/dist/server/chunks/chunk-DhcPoVSR.js delete mode 100644 app/dist/server/entries/pages_docs.mjs delete mode 100644 app/dist/server/entries/pages_error.mjs delete mode 100644 app/dist/server/entries/pages_index.mjs delete mode 100644 app/dist/server/entry.mjs delete mode 100644 app/dist/server/package.json diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..b124e10 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,62 @@ +name: Update Memento Dev on VPS +run-name: ${{ gitea.actor }} is deploying the application on the VPS 🚀 +on: [push] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered." + + - name: Checkout the repository code + uses: actions/checkout@v4 + + - run: echo "💡 The repository has been cloned to the runner." + + - name: Setup SSH to the VPS + run: | + mkdir -p ~/.ssh + echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + ssh-keyscan -H -p ${{ secrets.VPS_PORT }} ${{ secrets.VPS_HOST }} >> ~/.ssh/known_hosts + echo "🔑 SSH has been set up to the VPS." + + - name: Pull main branch on the VPS + env: + VPS_USER: ${{ secrets.VPS_USER }} + VPS_HOST: ${{ secrets.VPS_HOST }} + VPS_PATH: ${{ secrets.VPS_PATH }} + VPS_PORT: ${{ secrets.VPS_PORT }} + run: | + ssh -i ~/.ssh/id_ed25519 -p $VPS_PORT $VPS_USER@$VPS_HOST "cd $VPS_PATH && git pull origin main" + echo "🚀 The main branch has been pulled on the VPS." + + - name: Building the Docker services + env: + VPS_USER: ${{ secrets.VPS_USER }} + VPS_HOST: ${{ secrets.VPS_HOST }} + VPS_PATH: ${{ secrets.VPS_PATH }} + VPS_PORT: ${{ secrets.VPS_PORT }} + run: | + ssh -i ~/.ssh/id_ed25519 -p $VPS_PORT $VPS_USER@$VPS_HOST "sudo docker compose build" + echo "📦 The services have been builded on the VPS." + + - name: Building the application + env: + VPS_USER: ${{ secrets.VPS_USER }} + VPS_HOST: ${{ secrets.VPS_HOST }} + VPS_PATH: ${{ secrets.VPS_PATH }} + VPS_PORT: ${{ secrets.VPS_PORT }} + run: | + ssh -i ~/.ssh/id_ed25519 -p $VPS_PORT $VPS_USER@$VPS_HOST "sudo docker compose run --rm memento-dev build" + echo "📦 The application have been builded on the VPS." + + - name: Restart the application + env: + VPS_USER: ${{ secrets.VPS_USER }} + VPS_HOST: ${{ secrets.VPS_HOST }} + VPS_PATH: ${{ secrets.VPS_PATH }} + VPS_PORT: ${{ secrets.VPS_PORT }} + run: | + ssh -i ~/.ssh/id_ed25519 -p $VPS_PORT $VPS_USER@$VPS_HOST "sudo docker compose restart" + echo "🚀 The application has been started on the VPS." diff --git a/.gitignore b/.gitignore index 98ed1d1..cc5f7e3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /.env app/.pnpm-store -app/node_modules \ No newline at end of file +app/node_modules +app/dist \ No newline at end of file diff --git a/app/dist/assets.json b/app/dist/assets.json deleted file mode 100644 index 2612f7c..0000000 --- a/app/dist/assets.json +++ /dev/null @@ -1,206 +0,0 @@ -{ - "_chunk-FoQi8sq6.js": { - "file": "assets/chunks/chunk-FoQi8sq6.js", - "name": "renderPageClientSide", - "dynamicImports": [ - "virtual:vike:pageConfigValuesAll:client:/pages/_error", - "virtual:vike:pageConfigValuesAll:client:/pages/index", - "virtual:vike:pageConfigValuesAll:client:/pages/docs" - ] - }, - "_chunk-YnSR0nZE.js": { - "file": "assets/chunks/chunk-YnSR0nZE.js", - "name": "Loading", - "imports": [ - "_chunk-FoQi8sq6.js" - ], - "css": [ - "assets/static/vike-react-fe70c48a.BcWtY8Ol.css", - "assets/static/layouts_style-b34a8e57.HyLxvJhb.css", - "assets/static/layouts_tailwind-00e65532.kM054_rr.css", - "assets/static/layouts_prism-feac250c.B2a_QZIO.css", - "assets/static/style-1efdef47.B5Troj4Q.css" - ], - "assets": [ - "assets/static/blur-indigo.Cbr0CUfr.png", - "assets/static/blur-cyan.DJww6-ho.png", - "assets/static/inter-cyrillic-ext-wght-normal.B2xhLi22.woff2", - "assets/static/inter-cyrillic-wght-normal.CMZtQduZ.woff2", - "assets/static/inter-greek-ext-wght-normal.CGAr0uHJ.woff2", - "assets/static/inter-greek-wght-normal.CaVNZxsx.woff2", - "assets/static/inter-vietnamese-wght-normal.CBcvBZtf.woff2", - "assets/static/inter-latin-ext-wght-normal.CFHvXkgd.woff2", - "assets/static/inter-latin-wght-normal.C2S99t-D.woff2", - "assets/static/lexend-vietnamese-wght-normal.RvljkFvg.woff2", - "assets/static/lexend-latin-ext-wght-normal.Ca5OILQq.woff2", - "assets/static/lexend-latin-wght-normal.ga3u8m5q.woff2" - ] - }, - "_layouts_prism-feac250c.B2a_QZIO.css": { - "file": "assets/static/layouts_prism-feac250c.B2a_QZIO.css", - "src": "_layouts_prism-feac250c.B2a_QZIO.css" - }, - "_layouts_style-b34a8e57.HyLxvJhb.css": { - "file": "assets/static/layouts_style-b34a8e57.HyLxvJhb.css", - "src": "_layouts_style-b34a8e57.HyLxvJhb.css" - }, - "_layouts_tailwind-00e65532.kM054_rr.css": { - "file": "assets/static/layouts_tailwind-00e65532.kM054_rr.css", - "src": "_layouts_tailwind-00e65532.kM054_rr.css" - }, - "_style-1efdef47.B5Troj4Q.css": { - "file": "assets/static/style-1efdef47.B5Troj4Q.css", - "src": "_style-1efdef47.B5Troj4Q.css" - }, - "_vike-react-fe70c48a.BcWtY8Ol.css": { - "file": "assets/static/vike-react-fe70c48a.BcWtY8Ol.css", - "src": "_vike-react-fe70c48a.BcWtY8Ol.css" - }, - "images/blur-cyan.png": { - "file": "assets/static/blur-cyan.DJww6-ho.png", - "src": "images/blur-cyan.png" - }, - "images/blur-indigo.png": { - "file": "assets/static/blur-indigo.Cbr0CUfr.png", - "src": "images/blur-indigo.png" - }, - "node_modules/.pnpm/@fontsource-variable+inter@5.2.5/node_modules/@fontsource-variable/inter/files/inter-cyrillic-ext-wght-normal.woff2": { - "file": "assets/static/inter-cyrillic-ext-wght-normal.B2xhLi22.woff2", - "src": "node_modules/.pnpm/@fontsource-variable+inter@5.2.5/node_modules/@fontsource-variable/inter/files/inter-cyrillic-ext-wght-normal.woff2" - }, - "node_modules/.pnpm/@fontsource-variable+inter@5.2.5/node_modules/@fontsource-variable/inter/files/inter-cyrillic-wght-normal.woff2": { - "file": "assets/static/inter-cyrillic-wght-normal.CMZtQduZ.woff2", - "src": "node_modules/.pnpm/@fontsource-variable+inter@5.2.5/node_modules/@fontsource-variable/inter/files/inter-cyrillic-wght-normal.woff2" - }, - "node_modules/.pnpm/@fontsource-variable+inter@5.2.5/node_modules/@fontsource-variable/inter/files/inter-greek-ext-wght-normal.woff2": { - "file": "assets/static/inter-greek-ext-wght-normal.CGAr0uHJ.woff2", - "src": "node_modules/.pnpm/@fontsource-variable+inter@5.2.5/node_modules/@fontsource-variable/inter/files/inter-greek-ext-wght-normal.woff2" - }, - "node_modules/.pnpm/@fontsource-variable+inter@5.2.5/node_modules/@fontsource-variable/inter/files/inter-greek-wght-normal.woff2": { - "file": "assets/static/inter-greek-wght-normal.CaVNZxsx.woff2", - "src": "node_modules/.pnpm/@fontsource-variable+inter@5.2.5/node_modules/@fontsource-variable/inter/files/inter-greek-wght-normal.woff2" - }, - "node_modules/.pnpm/@fontsource-variable+inter@5.2.5/node_modules/@fontsource-variable/inter/files/inter-latin-ext-wght-normal.woff2": { - "file": "assets/static/inter-latin-ext-wght-normal.CFHvXkgd.woff2", - "src": "node_modules/.pnpm/@fontsource-variable+inter@5.2.5/node_modules/@fontsource-variable/inter/files/inter-latin-ext-wght-normal.woff2" - }, - "node_modules/.pnpm/@fontsource-variable+inter@5.2.5/node_modules/@fontsource-variable/inter/files/inter-latin-wght-normal.woff2": { - "file": "assets/static/inter-latin-wght-normal.C2S99t-D.woff2", - "src": "node_modules/.pnpm/@fontsource-variable+inter@5.2.5/node_modules/@fontsource-variable/inter/files/inter-latin-wght-normal.woff2" - }, - "node_modules/.pnpm/@fontsource-variable+inter@5.2.5/node_modules/@fontsource-variable/inter/files/inter-vietnamese-wght-normal.woff2": { - "file": "assets/static/inter-vietnamese-wght-normal.CBcvBZtf.woff2", - "src": "node_modules/.pnpm/@fontsource-variable+inter@5.2.5/node_modules/@fontsource-variable/inter/files/inter-vietnamese-wght-normal.woff2" - }, - "node_modules/.pnpm/@fontsource-variable+lexend@5.2.6/node_modules/@fontsource-variable/lexend/files/lexend-latin-ext-wght-normal.woff2": { - "file": "assets/static/lexend-latin-ext-wght-normal.Ca5OILQq.woff2", - "src": "node_modules/.pnpm/@fontsource-variable+lexend@5.2.6/node_modules/@fontsource-variable/lexend/files/lexend-latin-ext-wght-normal.woff2" - }, - "node_modules/.pnpm/@fontsource-variable+lexend@5.2.6/node_modules/@fontsource-variable/lexend/files/lexend-latin-wght-normal.woff2": { - "file": "assets/static/lexend-latin-wght-normal.ga3u8m5q.woff2", - "src": "node_modules/.pnpm/@fontsource-variable+lexend@5.2.6/node_modules/@fontsource-variable/lexend/files/lexend-latin-wght-normal.woff2" - }, - "node_modules/.pnpm/@fontsource-variable+lexend@5.2.6/node_modules/@fontsource-variable/lexend/files/lexend-vietnamese-wght-normal.woff2": { - "file": "assets/static/lexend-vietnamese-wght-normal.RvljkFvg.woff2", - "src": "node_modules/.pnpm/@fontsource-variable+lexend@5.2.6/node_modules/@fontsource-variable/lexend/files/lexend-vietnamese-wght-normal.woff2" - }, - "node_modules/.pnpm/vike@0.4.228_react-streaming@0.3.50_react-dom@19.1.0_react@19.1.0__react@19.1.0__vite@6_a5d8557c8c03851ef9ff4b1fc2b0d591/node_modules/vike/dist/esm/client/client-routing-runtime/entry.js": { - "file": "assets/entries/entry-client-routing.Bc4tBJ4_.js", - "name": "entries/entry-client-routing", - "src": "node_modules/.pnpm/vike@0.4.228_react-streaming@0.3.50_react-dom@19.1.0_react@19.1.0__react@19.1.0__vite@6_a5d8557c8c03851ef9ff4b1fc2b0d591/node_modules/vike/dist/esm/client/client-routing-runtime/entry.js", - "isEntry": true, - "imports": [ - "_chunk-FoQi8sq6.js" - ] - }, - "virtual:vike:pageConfigValuesAll:client:/pages/_error": { - "file": "assets/entries/pages_error.DlwLYWej.js", - "name": "entries/pages/_error", - "src": "virtual:vike:pageConfigValuesAll:client:/pages/_error", - "isEntry": true, - "isDynamicEntry": true, - "imports": [ - "_chunk-YnSR0nZE.js", - "_chunk-FoQi8sq6.js" - ], - "css": [ - "assets/static/vike-react-fe70c48a.BcWtY8Ol.css", - "assets/static/layouts_style-b34a8e57.HyLxvJhb.css", - "assets/static/layouts_tailwind-00e65532.kM054_rr.css", - "assets/static/layouts_prism-feac250c.B2a_QZIO.css", - "assets/static/style-1efdef47.B5Troj4Q.css" - ], - "assets": [ - "assets/static/inter-cyrillic-ext-wght-normal.B2xhLi22.woff2", - "assets/static/inter-cyrillic-wght-normal.CMZtQduZ.woff2", - "assets/static/inter-greek-ext-wght-normal.CGAr0uHJ.woff2", - "assets/static/inter-greek-wght-normal.CaVNZxsx.woff2", - "assets/static/inter-vietnamese-wght-normal.CBcvBZtf.woff2", - "assets/static/inter-latin-ext-wght-normal.CFHvXkgd.woff2", - "assets/static/inter-latin-wght-normal.C2S99t-D.woff2", - "assets/static/lexend-vietnamese-wght-normal.RvljkFvg.woff2", - "assets/static/lexend-latin-ext-wght-normal.Ca5OILQq.woff2", - "assets/static/lexend-latin-wght-normal.ga3u8m5q.woff2" - ] - }, - "virtual:vike:pageConfigValuesAll:client:/pages/docs": { - "file": "assets/entries/pages_docs.Gi7h7KmT.js", - "name": "entries/pages/docs", - "src": "virtual:vike:pageConfigValuesAll:client:/pages/docs", - "isEntry": true, - "isDynamicEntry": true, - "imports": [ - "_chunk-YnSR0nZE.js", - "_chunk-FoQi8sq6.js" - ], - "css": [ - "assets/static/vike-react-fe70c48a.BcWtY8Ol.css", - "assets/static/layouts_style-b34a8e57.HyLxvJhb.css", - "assets/static/layouts_tailwind-00e65532.kM054_rr.css", - "assets/static/layouts_prism-feac250c.B2a_QZIO.css", - "assets/static/style-1efdef47.B5Troj4Q.css" - ], - "assets": [ - "assets/static/inter-cyrillic-ext-wght-normal.B2xhLi22.woff2", - "assets/static/inter-cyrillic-wght-normal.CMZtQduZ.woff2", - "assets/static/inter-greek-ext-wght-normal.CGAr0uHJ.woff2", - "assets/static/inter-greek-wght-normal.CaVNZxsx.woff2", - "assets/static/inter-vietnamese-wght-normal.CBcvBZtf.woff2", - "assets/static/inter-latin-ext-wght-normal.CFHvXkgd.woff2", - "assets/static/inter-latin-wght-normal.C2S99t-D.woff2", - "assets/static/lexend-vietnamese-wght-normal.RvljkFvg.woff2", - "assets/static/lexend-latin-ext-wght-normal.Ca5OILQq.woff2", - "assets/static/lexend-latin-wght-normal.ga3u8m5q.woff2" - ] - }, - "virtual:vike:pageConfigValuesAll:client:/pages/index": { - "file": "assets/entries/pages_index.Bb824t1n.js", - "name": "entries/pages/index", - "src": "virtual:vike:pageConfigValuesAll:client:/pages/index", - "isEntry": true, - "isDynamicEntry": true, - "imports": [ - "_chunk-YnSR0nZE.js", - "_chunk-FoQi8sq6.js" - ], - "css": [ - "assets/static/vike-react-fe70c48a.BcWtY8Ol.css", - "assets/static/layouts_style-b34a8e57.HyLxvJhb.css", - "assets/static/layouts_tailwind-00e65532.kM054_rr.css", - "assets/static/layouts_prism-feac250c.B2a_QZIO.css", - "assets/static/style-1efdef47.B5Troj4Q.css" - ], - "assets": [ - "assets/static/inter-cyrillic-ext-wght-normal.B2xhLi22.woff2", - "assets/static/inter-cyrillic-wght-normal.CMZtQduZ.woff2", - "assets/static/inter-greek-ext-wght-normal.CGAr0uHJ.woff2", - "assets/static/inter-greek-wght-normal.CaVNZxsx.woff2", - "assets/static/inter-vietnamese-wght-normal.CBcvBZtf.woff2", - "assets/static/inter-latin-ext-wght-normal.CFHvXkgd.woff2", - "assets/static/inter-latin-wght-normal.C2S99t-D.woff2", - "assets/static/lexend-vietnamese-wght-normal.RvljkFvg.woff2", - "assets/static/lexend-latin-ext-wght-normal.Ca5OILQq.woff2", - "assets/static/lexend-latin-wght-normal.ga3u8m5q.woff2" - ] - } -} \ No newline at end of file diff --git a/app/dist/client/assets/chunks/chunk-FoQi8sq6.js b/app/dist/client/assets/chunks/chunk-FoQi8sq6.js deleted file mode 100644 index fcab78b..0000000 --- a/app/dist/client/assets/chunks/chunk-FoQi8sq6.js +++ /dev/null @@ -1,4 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/entries/pages_error.DlwLYWej.js","assets/chunks/chunk-YnSR0nZE.js","assets/static/vike-react-fe70c48a.BcWtY8Ol.css","assets/static/layouts_style-b34a8e57.HyLxvJhb.css","assets/static/layouts_tailwind-00e65532.kM054_rr.css","assets/static/layouts_prism-feac250c.B2a_QZIO.css","assets/static/style-1efdef47.B5Troj4Q.css","assets/entries/pages_index.Bb824t1n.js","assets/entries/pages_docs.Gi7h7KmT.js"])))=>i.map(i=>d[i]); -function We(e){return Array.from(new Set(e))}function j(e,t){const n=Jn();return n[e]=n[e]||t}function Jn(){const e="_vike";return globalThis[e]=globalThis[e]||{}}const h=new Proxy({},{get:(e,t)=>n=>t==="code"?`\`${n}\``:t==="string"?`'${n}'`:n}),Vt="0.4.228";let q;q??(q=zt());function zt(){return j("utils/assertSingleInstance.ts",{instances:[],alreadyLogged:new Set})}function ce(){return q??(q=zt()),q}const qn="Client runtime of both Server Routing and Client Routing loaded https://vike.dev/client-runtimes-conflict",Nt="Client runtime loaded twice https://vike.dev/client-runtime-duplicated";function Gt(){const e=ce();{const t=We(e.instances);le(t.length<=1,`vike@${h.bold(t[0])} and vike@${h.bold(t[1])} loaded which is highly discouraged, see ${h.underline("https://vike.dev/warning/version-mismatch")}`,{onlyOnce:!0,showStackTrace:!1})}e.checkSingleInstance&&e.instances.length>1&&le(!1,Nt,{onlyOnce:!0,showStackTrace:!0})}function js(e){const t=ce();le(t.isClientRouting!==!1,qn,{onlyOnce:!0,showStackTrace:!0}),le(t.isClientRouting===void 0,Nt,{onlyOnce:!0,showStackTrace:!0}),t.isClientRouting=!0,t.checkSingleInstance=!0,Gt()}function Xn(){ce().instances.push(Vt),Gt()}function le(e,t,{onlyOnce:n,showStackTrace:r}){const o=ce();if(e)return;const i=`[Vike][Warning] ${t}`;{const{alreadyLogged:a}=o,l=i;if(a.has(l))return;a.add(l)}console.warn(r?new Error(i):i)}function Zn(){return!(typeof process>"u"||!process.cwd||!process.versions||typeof process.versions.node>"u"||!process.release||process.release.name!=="node")}function fe(e,t){const n=new Error(e);return Zn()&&(n.stack=Qn(n.stack,t)),n}function Qn(e,t){if(!e)return e;const n=tr(e);let r=0;return n.filter(i=>i.includes(" (internal/")||i.includes(" (node:internal")?!1:r{if(!t)return null;const a=typeof t=="string"?t:JSON.stringify(t);return h.dim(`Debug info (for Vike maintainers; you can ignore this): ${a}`)})();let o=[`You stumbled upon a Vike bug. Go to ${h.underline("https://github.com/vikejs/vike/issues/new?template=bug.yml")} and copy-paste this error. A maintainer will fix the bug (usually within 24 hours).`,n].filter(Boolean).join(" ");o=ee(o),o=ge(o,or),o=te(o,!0);const i=fe(o,de);throw $.onBeforeLog?.(),i}function p(e,t,{showStackTrace:n,exitOnError:r}={}){if(e)return;n=n||$.alwaysShowStackTrace,t=ee(t),t=ge(t,"Wrong Usage"),t=te(t);const o=fe(t,de);if(n&&$.showStackTraceList.add(o),$.onBeforeLog?.(),r)console.error(n?o:t),process.exit(1);else throw o}function Mt(e){return e=ee(e),e=ge(e,"Error"),e=te(e),fe(e,de)}function O(e,t,{onlyOnce:n,showStackTrace:r}){if(!e){if(r=r||$.alwaysShowStackTrace,t=ee(t),t=ge(t,"Warning"),t=te(t),n){const{alreadyLogged:o}=$,i=n===!0?t:n;if(o.has(i))return;o.add(i)}if($.onBeforeLog?.(),r){const o=fe(t,de);$.showStackTraceList.add(o),$.logger(o,"warn")}else $.logger(t,"warn")}}function ir(e,t,{onlyOnce:n}){t=ee(t),t=te(t);{const{alreadyLogged:r}=$,o=t;if(r.has(o))return;r.add(o)}$.onBeforeLog?.(),$.logger(t,"info")}function ge(e,t){let n=`[${t}]`;const r=t==="Warning"?"yellow":"red";return n=h.bold(h[r](n)),`${n}${e}`}function ee(e){return e.startsWith("[")?e:` ${e}`}function te(e,t=!1){return`${t?rr:nr}${e}`}function it(e){const t=e/1e3;if(t<120){const n=st(t);return`${n} second${at(n)}`}{const n=t/60,r=st(n);return`${r} minute${at(r)}`}}function st(e){let t=e.toFixed(1);return t.endsWith(".0")&&(t=t.slice(0,-2)),t}function at(e){return e==="1"?"":"s"}const Oe=j("utils/executeHook.ts",{userHookErrors:new WeakMap,pageContext:null});function N(e,t,n){const{hookName:r,hookFilePath:o,hookTimeout:{error:i,warning:a}}=t;let l,u;const c=new Promise((m,w)=>{l=_=>{f(),m(_)},u=_=>{f(),w(_)}}),f=()=>{d&&clearTimeout(d),y&&clearTimeout(y)},d=lt(a)&&setTimeout(()=>{O(!1,`The ${r}() hook defined by ${o} is slow: it's taking more than ${it(a)} (https://vike.dev/hooksTimeout)`,{onlyOnce:!1})},a),y=lt(i)&&setTimeout(()=>{const m=Mt(`The ${r}() hook defined by ${o} timed out: it didn't finish after ${it(i)} (https://vike.dev/hooksTimeout)`);u(m)},i);return(async()=>{try{sr(n);const m=await e();l(m)}catch(m){x(m)&&Oe.userHookErrors.set(m,{hookName:r,hookFilePath:o}),u(m)}})(),c}function lt(e){return!!e&&e!==1/0}function sr(e){Oe.pageContext=e,Promise.resolve().then(()=>{Oe.pageContext=null})}function W(e,t,n){return typeof e=="string"?ut(e.split(""),t,n).join(""):ut(e,t,n)}function ut(e,t,n){const r=[];let o=t>=0?t:e.length+t;s(o>=0&&o<=e.length);let i=n>=0?n:e.length+n;for(s(i>=0&&i<=e.length);!(o===i||(o===e.length&&(o=0),o===i));){const a=e[o];s(a!==void 0),r.push(a),o++}return r}function he(e,t){s(Xt(e),e),s(t.startsWith("/"));const{hashString:n,withoutHash:r}=ar(e);s(n===null||n.startsWith("#"));const o=n===null?"":Kt(n.slice(1)),{searchString:i,withoutSearch:a}=ct(r);s(i===null||i.startsWith("?"));let l="";if(i!==null)l=i;else if(e.startsWith("#")){const g=Yt();l=g&&ct(g).searchString||""}const u={},c={};Array.from(new URLSearchParams(l)).forEach(([g,k])=>{u[g]=k,c[g]=[...c.hasOwnProperty(g)?c[g]:[],k]});let{protocol:f,origin:d,pathnameAbsoluteWithBase:y}=ur(a,t);const m=a.slice((d||"").length);gr(e,d,m,i,n);let{pathname:w,isBaseMissing:_}=dr(y,t);const T=qt(d,w,i,n),L=d?d.slice(f.length):null,{hostname:v,port:P}=cr(L,e);return w=lr(w),s(w.startsWith("/")),{href:T,protocol:f,hostname:v,port:P,origin:d,pathname:w,pathnameOriginal:m,isBaseMissing:_,search:u,searchAll:c,searchOriginal:i,hash:o,hashOriginal:n}}function ar(e){const[t,...n]=e.split("#");return{hashString:["",...n].join("#")||null,withoutHash:t}}function ct(e){const[t,...n]=e.split("?");return{searchString:["",...n].join("?")||null,withoutSearch:t}}function Kt(e){try{return decodeURIComponent(e)}catch{}try{return decodeURI(e)}catch{}return e}function lr(e){return e=e.replace(/\s+$/,""),e=e.split("/").map(t=>Kt(t).split("/").join("%2F")).join("/"),e}function ur(e,t){s(!e.includes("?")&&!e.includes("#"));{const{protocol:n,origin:r,pathname:o}=ft(e);if(r)return{protocol:n,origin:r,pathnameAbsoluteWithBase:o};s(o===e)}if(e.startsWith("/"))return{protocol:null,origin:null,pathnameAbsoluteWithBase:e};{const n=Yt();let r;return n?r=ft(n.split("?")[0].split("#")[0]).pathname:r=t,{protocol:null,origin:null,pathnameAbsoluteWithBase:fr(e,r)}}}function Yt(){return typeof window<"u"?window?.document?.baseURI:void 0}function ft(e){if(Ue(e)){const{protocol:t,uriWithoutProtocol:n}=De(e);s(t);const[r,...o]=n.split("/"),i=t+r;return{pathname:"/"+o.join("/"),origin:i,protocol:t}}else return{pathname:e,origin:null,protocol:null}}function cr(e,t){const n={hostname:null,port:null};if(!e)return n;const r=e.split(":");if(r.length>1){const o=parseInt(r.pop(),10);s(o||o===0,t),n.port=o}return n.hostname=r.join(":"),n}function De(e){const t=":",[n,...r]=e.split(t);if(r.length===0||!/^[a-z][a-z0-9\+\-]*$/i.test(n))return{protocol:null,uriWithoutProtocol:e};let o=n+t,i=r.join(t);const a="//";return i.startsWith(a)&&(o=o+a,i=i.slice(a.length)),{protocol:o,uriWithoutProtocol:i}}function Jt(e){return["ipfs://","ipns://"].includes(e)?!1:e.endsWith("://")}function fr(e,t){const n=t.split("/"),r=e.split("/");let o=t.endsWith("/");e.startsWith(".")&&n.pop();for(const a in r){const l=r[a];l==""&&a==="0"||l!="."&&(l==".."?n.pop():(o=!1,n.push(l)))}let i=n.join("/");return o&&!i.endsWith("/")&&(i+="/"),i.startsWith("/")||(i="/"+i),i}function dr(e,t){s(e.startsWith("/")),s(Be(t));let n=e;if(s(n.startsWith("/")),s(t.startsWith("/")),t==="/")return{pathname:e,isBaseMissing:!1};let r=t;return t.endsWith("/")&&n===W(t,0,-1)&&(r=W(t,0,-1),s(n===r)),n.startsWith(r)?(s(n.startsWith("/")||n.startsWith("http")),s(n.startsWith(r)),n=n.slice(r.length),n.startsWith("/")||(n="/"+n),s(n.startsWith("/")),{pathname:n,isBaseMissing:!1}):{pathname:e,isBaseMissing:!0}}function Be(e){return e.startsWith("/")}function gr(e,t,n,r,o){const i=qt(t,n,r,o);s(e===i)}function qt(e,t,n,r){return`${e||""}${t}${n||""}${r||""}`}function Xt(e){return Ue(e)||e.startsWith("/")||Zt(e)}function hr(e){return e.startsWith("/")||mr(e)||Ue(e)}function Zt(e){return[".","?","#"].some(t=>e.startsWith(t))||e===""}function pr(e){return!e.startsWith("/")&&!Zt(e)}function Ue(e){const{protocol:t}=De(e);return!!t&&Jt(t)}function mr(e){const{protocol:t}=De(e);return!!t&&!Jt(e)}function yr(e,t){br(e,t)}function br(e,t,{isRedirectTarget:n}={}){if(e.startsWith("/"))return;let r=`${t} is ${h.string(e)} but it should start with ${h.string("/")}`;if(n){if(hr(e))return;if(r+=` or a protocol (${h.string("http://")}, ${h.string("mailto:")}, ...)`,n==="unresolved"){if(e==="*")return;r+=`, or be ${h.string("*")}`}}p(!1,r)}function Z(e,t){s(!e.startsWith("#"));const{searchOriginal:n,hashOriginal:r,pathname:o}=he(e,"/");let i=`${o}${n||""}`;return t?.withoutHash||(i+=r||""),s(i.startsWith("/")),i}function Ve(e){return Z(window.location.href,e)}function G(){return typeof window<"u"&&typeof window.scrollY=="number"}function Qt(){s(G())}const en=j("utils/assertRouterType.ts",{});function pe(){Sr(Pr()),en.isClientRouting=!0}function Pr(){return en.isClientRouting!==!1}function Sr(e){p(G(),`${h.cyan("import { something } from 'vike/client/router'")} is forbidden on the server-side`,{showStackTrace:!0}),O(e,"You shouldn't `import { something } from 'vike/client/router'` when using Server Routing. The 'vike/client/router' utilities work only with Client Routing. In particular, don't `import { navigate }` nor `import { prefetch }` as they unnecessarily bloat your client-side bundle sizes.",{showStackTrace:!0,onlyOnce:!0})}function wr(){Qt(),pe()}function B(e){return e instanceof Function||typeof e=="function"}function M(e){return Array.isArray(e)}function vr(e){return M(e)&&e.every(t=>typeof t=="string")}function Cr(e){return x(e)&&Object.values(e).every(t=>typeof t=="string")}function b(e,t,n){if(!x(e))return!1;if(!(t in e))return n==="undefined";if(n===void 0)return!0;const r=e[t];return n==="undefined"?r===void 0:n==="array"?M(r):n==="object"?x(r):n==="string[]"?vr(r):n==="string{}"?Cr(r):n==="function"?B(r):M(n)?typeof r=="string"&&n.includes(r):n==="null"?r===null:n==="true"?r===!0:n==="false"?r===!1:typeof r===n}function K(e){return typeof e!="object"||e===null?!1:Object.getPrototypeOf(e)===null?!0:e.constructor.name==="Object"}function Rr(){const e=!!window.__REACT_DEVTOOLS_GLOBAL_HOOK__?.renderers?.size,t=!!window.__REACT_DEVTOOLS_GLOBAL_HOOK__?.rendererInterfaces?.size,n=!!window.__vite_plugin_react_preamble_installed__;return e||t||n}function dt(e,t){return!x(e)||!x(t)?!1:e.message===t.message}function S(e,t,n){t&&(s(!("_isPageContextObject"in t)),Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)))}function V(e){window.location.href=e}function Er(e){return new Promise(t=>setTimeout(t,e))}function Or(e,t){let n=!1;return()=>{n||(n=!0,setTimeout(()=>{n=!1,e()},t))}}function tn(e){window.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&e()})}function xr(e){window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()})}function Pe(e,t){s(e===t)}function _r(){let e;return{promise:new Promise(n=>e=n),resolve:e}}const Se={};function kr(e,t=100,n=5){const r=new Date;let o=Se[e]??(Se[e]=gt(r));r.getTime()-o.start.getTime()>n*1e3&&(o=Se[e]=gt(r)),o.count++;const a=`[Infinite Loop] ${e} called ${o.count} times within ${n} seconds`;o.count>t&&s(!1,a),!o.warned&&o.count>t*.5&&(O(!1,a,{onlyOnce:!1}),o.warned=!0)}function gt(e){return{count:0,start:e}}wr();const Tr=[{is:e=>e===void 0,match:e=>e==="!undefined",serialize:()=>"!undefined",deserialize:()=>{}},{is:e=>e===1/0,match:e=>e==="!Infinity",serialize:()=>"!Infinity",deserialize:()=>1/0},{is:e=>e===-1/0,match:e=>e==="!-Infinity",serialize:()=>"!-Infinity",deserialize:()=>-1/0},{is:e=>typeof e=="number"&&isNaN(e),match:e=>e==="!NaN",serialize:()=>"!NaN",deserialize:()=>NaN},{is:e=>e instanceof Date,match:e=>e.startsWith("!Date:"),serialize:e=>"!Date:"+e.toISOString(),deserialize:e=>new Date(e.slice(6))},{is:e=>typeof e=="bigint",match:e=>e.startsWith("!BigInt:"),serialize:e=>"!BigInt:"+e.toString(),deserialize:e=>{if(typeof BigInt>"u")throw new Error("Your JavaScript environement does not support BigInt. Consider adding a polyfill.");return BigInt(e.slice(8))}},{is:e=>e instanceof RegExp,match:e=>e.startsWith("!RegExp:"),serialize:e=>"!RegExp:"+e.toString(),deserialize:e=>{e=e.slice(8);const t=e.match(/\/(.*)\/(.*)?/),n=t[1],r=t[2];return new RegExp(n,r)}},{is:e=>e instanceof Map,match:e=>e.startsWith("!Map:"),serialize:(e,t)=>"!Map:"+t(Array.from(e.entries())),deserialize:(e,t)=>new Map(t(e.slice(5)))},{is:e=>e instanceof Set,match:e=>e.startsWith("!Set:"),serialize:(e,t)=>"!Set:"+t(Array.from(e.values())),deserialize:(e,t)=>new Set(t(e.slice(5)))},{is:e=>typeof e=="string"&&e.startsWith("!"),match:e=>e.startsWith("!"),serialize:e=>"!"+e,deserialize:e=>e.slice(1)}];function ze(e){const t=JSON.parse(e);return Ne(t)}function Ne(e){return typeof e=="string"?$r(e):(typeof e=="object"&&e!==null&&Object.entries(e).forEach(([t,n])=>{e[t]=Ne(n)}),e)}function $r(e){for(const{match:t,deserialize:n}of Tr)if(t(e))return n(e,ze);return e}function Fr(){Qt()}function Ir(e){return typeof e=="string"&&Ar(e)?`.${e}`:`[${JSON.stringify(e)}]`}function Ar(e){return/^[a-z0-9\$_]+$/i.test(e)}Fr();function jr(){const e="vike_pageContext",t=document.getElementById(e);p(t,`Couldn't find #${e} (which Vike automatically injects in the HTML): make sure it exists (i.e. don't remove it and make sure your HTML isn't malformed)`);const n=t.textContent;s(n);const r=ze(n);return s(b(r,"pageId","string")),s(b(r,"routeParams","string{}")),r}function ae(e){return(t,n)=>{const r=e(t),o=e(n);return r===o?0:r>o?-1:1}}function Lr(e){return(t,n)=>{const r=e(t),o=e(n);return r===o?0:r{const r=e(t),o=e(n);if(s([!0,!1,null].includes(r)),s([!0,!1,null].includes(o)),r===o)return 0;if(r===!0||o===!1)return-1;if(o===!0||r===!1)return 1;s(!1)}}function Hr(e){return U(t=>{const n=e(t);return n===null?null:!n})}function Wr(e,t){return e.toLowerCase()t.toLowerCase()?1:0}function Dr(e){return e==null}function Br(e){return!Dr(e)}function ht(e){return"["+e.map(t=>"'"+t+"'").join(", ")+"]"}function we(e,t){const n=Object.getOwnPropertyDescriptor(e,t);return!!n&&!("value"in n)&&!!n.get}function Ur(e){return typeof e=="object"&&e!==null&&"then"in e&&B(e.then)}function Vr(e){return[null,void 0].includes(e)?String(e):["boolean","number","string"].includes(typeof e)?JSON.stringify(e):null}function zr(e){return e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&")}function re(e,t,n){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(e,t,{...r,enumerable:n})}function ve(e,t,{get:n,...r}){Object.defineProperty(e,t,{...r,get:n})}const nn=["js","ts","cjs","cts","mjs","mts"],Nr=["jsx","tsx","cjsx","ctsx","mjsx","mtsx"],rn=["vue","svelte","marko","md","mdx"],Gr=[...nn,...Nr,...rn];function on(e){const t=Gr.some(n=>e.endsWith("."+n));return Mr(e)&&s(t),t}function Mr(e){const t=/\.(c|m)?(j|t)s$/.test(e),n=nn.some(r=>e.endsWith("."+r));return s(t===n),t}function Kr(e){return rn.some(t=>e.endsWith("."+t))}function Ge(e,t){return an(e,t,!0)}function sn(e,t){return an(e,t,!1)}function an(e,t,n){const r=n?"CLIENT_ONLY":"SERVER_ONLY",o=e.filter(m=>m.isRelevant(t)&&m.fileType!==".page.route").sort(Yr(n,t)),i=m=>{const w=o.filter(T=>T.pageId===t&&T.isEnv(m?"CLIENT_AND_SERVER":r));p(w.length<=1,`Merge the following files into a single file: ${w.map(T=>T.filePath).join(" ")}`);const _=w[0];return s(_===void 0||!_.isDefaultPageFile),_},a=i(!1),l=i(!0),u=m=>o.filter(w=>w.isRendererPageFile&&w.isEnv(m?"CLIENT_AND_SERVER":r))[0],c=u(!1),f=u(!0),d=o.filter(m=>m.isDefaultPageFile&&!m.isRendererPageFile&&(m.isEnv(r)||m.isEnv("CLIENT_AND_SERVER")));return[a,l,...d,c,f].filter(Br)}function Yr(e,t){const n=e?"CLIENT_ONLY":"SERVER_ONLY",r=-1,o=1,i=0;return(a,l)=>{if(!a.isDefaultPageFile&&l.isDefaultPageFile)return r;if(!l.isDefaultPageFile&&a.isDefaultPageFile)return o;{const u=a.isRendererPageFile,c=l.isRendererPageFile;if(!u&&c)return r;if(!c&&u)return o;s(u===c)}{const u=pt(t,a.filePath),c=pt(t,l.filePath);if(ui.fileType===".page.server");return await Promise.all(r.map(async i=>{i.exportNames||(s(i.loadExportNames,t),await i.loadExportNames())})),{hasOnBeforeRenderServerSideOnlyHook:r.some(({exportNames:i})=>(s(i),i.includes("onBeforeRender")))}}function ln(e,t){const n=t.find(r=>r.pageId===e);return s(t.length>0),s(n),n}function un(e){if(!e||M(e)||e.definedBy)return null;const{filePathToShowToUser:t}=e;return s(t),t}function qr(e){const t=un(e);return s(t),t}function Xr(e,t){if(!e)return null;let[n,...r]=e;if(!n||r.length===0&&["*","default",t].includes(n))return null;s(n!=="*");let o="",i="";return n==="default"?o="export default":(o="export",r=[n,...r]),r.forEach(l=>{o=`${o} { ${l}`,i=` }${i}`}),o+i}function Zr(e,t,n){return`${xe(e,t)} at ${Q(n,t)}`}function cn(e,t,n){return n?`${xe(e,t)} at ${Q(n,t)}`:`${xe(e,t)} internally`}function xe(e,t){return`${e} ${h.cyan(t)} defined`}function Q(e,t){let n;return M(e)?n=e:n=[e],s(n.length>=1),n.map(o=>{if(o.definedBy)return Qr(o,t);const{filePathToShowToUser:i,fileExportPathToShowToUser:a}=o;let l=i;const u=Xr(a,t);return u&&(l=`${l} > ${h.cyan(u)}`),l}).join(" / ")}function Qr(e,t){if(e.definedBy==="api")return`API call ${h.cyan(`${e.operation}({ vikeConfig: { ${t} } })`)}`;const{definedBy:n}=e;if(n==="cli")return`CLI option ${h.cyan(`--${t}`)}`;if(n==="env")return`environment variable ${h.cyan(`VIKE_CONFIG="{${t}}"`)}`;s(!1)}function eo(e,t,n){const{value:r,definedAtData:o}=e;return n&&to(r,n,t,o),e}function to(e,t,n,r){s(e!==null);const o=typeof e;if(o===t)return;const i=Vr(e),a=i!==null?`value ${h.cyan(i)}`:`type ${h.cyan(o)}`,u=`${cn("Config",n,r)} has an invalid ${a}: it should be a ${h.cyan(t)} instead`;p(!1,u)}function Y(e,t,n){const r=e.configValues[t];return r?eo(r,t,n):null}const no=j("hooks/getHook.ts",{});function D(e,t){if(!(t in e.exports))return null;const{hooksTimeout:n}=e.config,r=oo(n,t),o=e.exports[t],i=e.exportsAll[t][0];if(s(i.exportValue===o),o===null)return null;const a=i.filePath;return s(a),s(!a.endsWith(" ")),fn(o,{hookName:t,hookFilePath:a}),{hookFn:o,hookName:t,hookFilePath:a,hookTimeout:r}}function ro(e,t){const n=e.configValues[t];if(!n)return null;const r=n.value;if(!r)return null;const o=qr(n.definedAtData);s(o),fn(r,{hookName:t,hookFilePath:o});const i=me(t);return{hookFn:r,hookName:t,hookFilePath:o,hookTimeout:i}}function Ce(e,t){D(e,t)}function fn(e,{hookName:t,hookFilePath:n}){s(t&&n),s(!t.endsWith(")")),p(B(e),`Hook ${t}() defined by ${n} should be a function`)}function oo(e,t){const n=io(e);if(n===!1)return{error:!1,warning:!1};const r=n[t],o=me(t);return r?.error!==void 0&&(o.error=r.error),r?.warning!==void 0&&(o.warning=r.warning),o}function io(e){if(e===void 0)return{};if(e===!1)return!1;p(x(e),`Setting ${h.cyan("hooksTimeout")} should be ${h.cyan("false")} or an object`);const t={};return Object.entries(e).forEach(([n,r])=>{if(r===!1){t[n]={error:!1,warning:!1};return}p(x(r),`Setting ${h.cyan(`hooksTimeout.${n}`)} should be ${h.cyan("false")} or an object`);const[o,i]=["error","warning"].map(a=>{const l=r[a];if(l===void 0||l===!1)return l;const u=`Setting ${h.cyan(`hooksTimeout.${n}.${a}`)} should be`;return p(typeof l=="number",`${u} ${h.cyan("false")} or a number`),p(l>0,`${u} a positive number`),l});t[n]={error:o,warning:i}}),t}function me(e){return e==="onBeforeRoute"?{error:5*1e3,warning:1*1e3}:no.isPrerendering?{error:2*60*1e3,warning:30*1e3}:(s(!e.toLowerCase().includes("prerender")),{error:30*1e3,warning:4*1e3})}const so="__VIKE__NOT_SERIALIZABLE__";function ao(e){return new Proxy(e,{get(t,n){const r=e[n],o=Ir(n);return p(r!==so,`Can't access pageContext${o} on the client side. Because it can't be serialized, see server logs.`),r}})}function lo(e,t){if(t.length>0){const r=t.filter(o=>o.isErrorPage);return r.length===0?null:(p(r.length===1,"Only one error page can be defined"),r[0].pageId)}const n=We(e.map(({pageId:r})=>r).filter(r=>ne(r)));if(p(n.length<=1,`Only one _error.page.js is allowed, but found several: ${n.join(" ")}`),n.length>0){const r=n[0];return s(r),r}return null}function ne(e,t){return s(!e.includes("\\")),e.includes("/_error")}function uo(e,t){if(t.length>0){const n=t.find(r=>r.pageId===e);return s(n),!!n.isErrorPage}else return ne(e)}function co(e){fo(e),go(e)}function fo(e){uo(e.pageId,e._pageConfigs)&&s(b(e,"is404","boolean"))}function go(e){if(e.is404===void 0||e.is404===null)return;const t=e.pageProps||{};if(!x(t)){O(!1,"pageContext.pageProps should be an object",{showStackTrace:!0,onlyOnce:!0});return}t.is404=t.is404||e.is404,e.pageProps=t}function ho(e){s(e.pageId),s("config"in e),s("configEntries"in e),co(e),"_pageId"in e||Object.defineProperty(e,"_pageId",{get(){return O(!1,"pageContext._pageId has been renamed to pageContext.pageId",{showStackTrace:!0,onlyOnce:!0}),e.pageId},enumerable:!1}),po(e)}function po(e){let t=Object.getOwnPropertyDescriptors(e);for(const n of Object.keys(e))delete e[n];t=Object.fromEntries(Object.entries(t).sort(([n],[r])=>Wr(n,r))),Object.defineProperties(e,t)}function Me(e,t){{const o=e;s([!0,!1].includes(o.isHydration)),s([!0,!1,null].includes(o.isBackwardNavigation))}const n=e.config.Page||e.exports.Page;return S(e,{Page:n}),mo(e),ho(e),ao(e)}function mo(e){yo(e)}function yo(e){Object.entries(e).forEach(([t,n])=>{delete e[t],e[t]=n})}const mt=["urlPathname","urlParsed"],bo=["Page","pageExports","exports"];function Po(e){[...bo,...mt].forEach(n=>{n in e&&(mt.includes(n)?(s(n.startsWith("url")),O(!1,`pageContext.${n} is already available in the browser when using Client Routing; adding '${n}' to passToClient has no effect`,{onlyOnce:!0})):O(!1,`pageContext.${n} is a built-in that cannot be overriden; adding '${n}' to passToClient has no effect`,{onlyOnce:!0}),delete e[n])})}const So="/";function wo(e,t,n){const{pathnameOriginal:r,searchOriginal:o,hashOriginal:i}=he(e,So);e.startsWith("/")&&s(e===`${r}${o||""}${i||""}`,{url:e});const a=r.endsWith("/");let l;return l=r+(a?"":"/")+"index",s(l),l=l+t,`${l}${o||""}${i||""}`}const vo=".pageContext.json";function Co(e){return wo(e,vo)}function dn(e,{hookName:t,hookFilePath:n}){if(e==null)return;s(!t.endsWith(")"));const r=`The ${h.cyan("pageContext")} object provided by the ${t}() hook defined by ${n}`;p(x(e),`${r} should be an object (but it's ${h.cyan(`typeof pageContext === ${JSON.stringify(typeof e)}`)} instead)`),p(!("_objectCreatedByVike"in e),`${r} shouldn't be the whole ${h.cyan("pageContext")} object, see https://vike.dev/pageContext-manipulation#do-not-return-entire-pagecontext`),O(!("pageId"in e),`${r} sets ${h.cyan("pageContext.pageId")} which means that Vike's routing is overriden. This is an experimental feature: make sure to contact a vike maintainer before using this.`,{onlyOnce:!0}),p(!("is404"in e),`${r} sets ${h.cyan("pageContext.is404")} which is forbidden, use ${h.cyan("throw render()")} instead, see https://vike.dev/render`)}function Ro(e,t,n){s(!n.endsWith(" "));const r=[],o=Object.keys(e);for(const i of o)t.includes(i)||r.push(i);p(r.length===0,[n,"returned an object with following unknown keys:",ht(r)+".","Only following keys are allowed:",ht(t)+"."].join(" "))}function Eo(e,t){if(e==null)return;const n=`The onBeforeRender() hook defined by ${t}`;p(K(e),`${n} should return a plain JavaScript object, ${h.cyan("undefined")}, or ${h.cyan("null")}`),Ro(e,["pageContext"],n),e.pageContext&&dn(e.pageContext,{hookName:"onBeforeRender",hookFilePath:t})}function Oo(e,t){if(!K(e))return!1;for(const n of Object.keys(e))if(!t.includes(n))return!1;return!0}function xo(e,t,n=r=>r){if(s(e.length>0),e.length===1)return n(e[0]);const r=e.slice(0,e.length-1),o=e[e.length-1];return r.map(n).join(", ")+`, ${t} `+n(o)}G()&&pe();const gn="The guard() hook defined by";async function _o(e,t){let n;if(e._pageFilesAll.length>0?(s(e._pageConfigs.length===0),n=ko(e.pageId,e._pageFilesAll)):n=D(e,"guard"),!n)return;const r=n.hookFn;let o=e;const i=t(e);i&&(o=i);const a=await N(()=>r(o),n,e);p(a===void 0,`${gn} ${n.hookFilePath} returns a value, but guard() shouldn't return any value`)}function ko(e,t){const n=t.find(u=>u.pageId===e&&u.fileType===".page.route");if(!n)return null;const{filePath:r,fileExports:o}=n;s(o);const i=o.guard;if(!i)return null;const a=r,l=me("guard");return p(B(i),`${gn} ${a} should be a function`),{hookFn:i,hookName:"guard",hookFilePath:a,hookTimeout:l}}function To(e){const t=new Error("AbortRender");return S(t,{_pageContextAbort:e,[hn]:!0}),t}const hn="_isAbortError";function yt(e){return typeof e=="object"&&e!==null&&hn in e}function $o(e){return e._urlRewrite||e._urlRedirect||e.abortStatusCode?(s(b(e,"_abortCall","string")),!0):!1}function Fo(e){Io(e);const t={_urlRewrite:null};return e.forEach(n=>{Object.assign(t,n)}),t}function Io(e){const t=[];e.forEach(n=>{const r=n._urlRewrite;{const o=t.indexOf(r);if(o!==-1){const i=[...t.slice(o),r].map(a=>`render('${a}')`).join(" => ");p(!1,`Infinite loop of render() calls: ${i}`)}}t.push(r)})}function Ao(e,t){const n=[e>0&&h.cyan("throw render('/some-url')"),t>0&&h.cyan("throw redirect('/some-url')")].filter(Boolean).join(" and ");p(e+t<=7,`Maximum chain length of 7 ${n} exceeded. Did you define an infinite loop of ${n}?`)}const jo="_pageContextInitIsPassedToClient",pn="_isServerSideError",mn=j("client-routing-runtime/getPageContextFromHooks.ts",{});function Lo(){const e=jr();return p(!("urlOriginal"in e),"Adding 'urlOriginal' to passToClient is forbidden"),Pn(e),S(e,{_hasPageContextFromServer:!0}),e}async function Ho(e){S(e,{_hasPageContextFromClient:!1});for(const t of["data","onBeforeRender"])if(bn(t,e)){const n=await yn(t,e);s(!("urlOriginal"in n)),Object.assign(e,n)}return e}async function _e(e,t){const n={_hasPageContextFromServer:!1};if(!t&&await Do(e)){const r=await Bo(e);if("is404ServerSideRouted"in r)return{is404ServerSideRouted:!0};const{pageContextFromServer:o}=r;n._hasPageContextFromServer=!0,s(!(pn in o)),s(!("serverSideError"in o)),S(n,o)}return{pageContextFromServerHooks:n}}async function bt(e,t){S(e,{_hasPageContextFromClient:!1});for(const r of["guard","data","onBeforeRender"])if(r==="guard")!t&&!e._hasPageContextFromServer&&await _o(e,o=>Me(o));else if(s(r==="data"||r==="onBeforeRender"),bn(r,e)||!e._hasPageContextFromServer){const o=await yn(r,e);s(!("urlOriginal"in o)),Object.assign(e,o)}return e}async function yn(e,t){const n=D(t,e);if(!n)return{};const r=Me(t),o=await N(()=>n.hookFn(r),n,t),i={};if(e==="onBeforeRender"){Eo(o,n.hookFilePath);const a=o?.pageContext;a&&(S(i,{_hasPageContextFromClient:!0}),S(i,a))}else{s(e==="data");const a={data:o};o&&S(i,{_hasPageContextFromClient:!0}),S(i,a)}return i}function Wo(e){e[jo]&&(mn.pageContextInitIsPassedToClient=!0)}async function Do(e){return!!mn.pageContextInitIsPassedToClient||await Pt("data",e)||await Pt("onBeforeRender",e)}async function Pt(e,t){if(t._pageConfigs.length>0){const n=ln(t.pageId,t._pageConfigs),r=Y(n,`${e}Env`)?.value;if(r===null)return!1;s(x(r));const{client:o,server:i}=r;return s(o===!0||o===void 0),s(i===!0||i===void 0),s(o||i),!!i&&!o}else{if(e==="data")return!1;s(e==="onBeforeRender");const{hasOnBeforeRenderServerSideOnlyHook:n}=await Jr(t._pageFilesAll,t.pageId);return n}}function bn(e,t){if(t._pageConfigs.length>0){const n=ln(t.pageId,t._pageConfigs),r=Y(n,`${e}Env`)?.value??{};return s(x(r)),!!r.client&&!r.server}else return!1}async function Bo(e){const t=Co(e._urlRewrite??e.urlOriginal),n=await fetch(t);{const i=n.headers.get("content-type"),a="application/json",l=i&&i.includes(a);if(!l&&n.status===404)return V(e.urlOriginal),{is404ServerSideRouted:!0};p(l,`Wrong Content-Type for ${t}: it should be ${a} but it's ${i} instead. Make sure to properly use pageContext.httpResponse.headers, see https://vike.dev/renderPage`)}const r=await n.text(),o=ze(r);if(s(x(o)),$o(o))throw To(o);if("serverSideError"in o||pn in o)throw Mt("pageContext couldn't be fetched because an error occurred on the server-side");return s(b(o,"pageId","string")),Pn(o),{pageContextFromServer:o}}function Pn(e){Po(e)}const Uo=["clientRouting"];function Vo(e){Uo.forEach(t=>{if(s(e.fileExports),!(t in e.fileExports))return;const n=`The value of \`${t}\` is only allowed to be \`true\`.`;p(e.fileExports[t]!==!1,`${e.filePath} has \`export { ${t} }\` with the value \`false\` which is prohibited: remove \`export { ${t} }\` instead. (${n})`),p(e.fileExports[t]===!0,`${e.filePath} has \`export { ${t} }\` with a forbidden value. ${n}`)})}const Sn=["render","clientRouting","prerender","doNotPrerender"];function zo(e,t){p(!Sn.includes(e),`${t} has \`export default { ${e} }\` which is prohibited, use \`export { ${e} }\` instead.`)}function No(e){const t=".page.",n=W(e.split(t),0,-1).join(t);return s(!n.includes("\\")),n}const Go=[".page",".page.server",".page.route",".page.client",".css"];function Mo(e){if(e.endsWith(".css"))return".css";s(on(e),e);const n=e.split("/").slice(-1)[0].split("."),r=n.slice(-3)[0],o=n.slice(-2)[0];if(o==="page")return".page";if(s(r==="page",e),o==="server")return".page.server";if(o==="client")return".page.client";if(o==="route")return".page.route";s(!1,e)}function wn(e){const t=i=>o.pageId===i||o.isDefaultPageFile&&(St(o.filePath)||Ko(i,o.filePath)),n=Mo(e),o={filePath:e,fileType:n,isEnv:i=>{if(s(n!==".page.route"),i==="CLIENT_ONLY")return n===".page.client"||n===".css";if(i==="SERVER_ONLY")return n===".page.server";if(i==="CLIENT_AND_SERVER")return n===".page";s(!1)},isRelevant:t,isDefaultPageFile:ke(e),isRendererPageFile:n!==".css"&&ke(e)&&St(e),isErrorPageFile:ne(e),pageId:No(e)};return o}function ke(e){return ne(e)?!1:e.includes("/_default")}function St(e){return e.includes("/renderer/")}function Ko(e,t){s(!e.endsWith("/")),s(!t.endsWith("/")),s(ke(t));const n=W(t.split("/"),0,-1).filter(r=>r!=="_default").join("/");return e.startsWith(n)}const Yo=["$$registrations","_rerender_only"],Jo=[".md",".mdx"];function qo(e,t,n){const r=Object.keys(e),o=c=>c==="default"||c===n,i=r.filter(o),a=h.code("export default"),l=h.code(`export { ${n} }`);i.length===0&&p(!1,`${t} should have ${l} or ${a}`),i.length===2&&p(!1,`${t} is ambiguous: remove ${a} or ${l}`),s(i.length===1);const u=r.filter(c=>!o(c)).filter(c=>!Yo.includes(c));Jo.some(c=>t.endsWith(c))||u.forEach(c=>{O(!1,`${t} unexpected ${h.cyan(`export { ${c} }`)}, see https://vike.dev/no-side-exports`,{onlyOnce:!0})})}function Xo(e,t){const n=e.map(o=>{const i=Te(o.configValuesSerialized);return Zo(i),{...o,configValues:i}}),r={configValues:{}};{const o=Te(t.configValuesSerialized);Object.assign(r.configValues,o)}return{pageConfigs:n,pageConfigGlobal:r}}function Zo(e){const t="route",n=e[t];if(!n)return;const{value:r,definedAtData:o}=n,i=typeof r;s(o);const a=Zr("Config",t,o);p(i==="string"||B(r),`${a} has an invalid type '${i}': it should be a string or a function instead, see https://vike.dev/route`)}function Te(e){const t={};return Object.entries(e).forEach(([r,o])=>{let i;if(o.type==="cumulative"){const{valueSerialized:a,...l}=o;i={value:a.map((c,f)=>{const{value:d,sideExports:y}=wt(c,r,()=>{const m=o.definedAtData[f];return s(m),m});return n(y),d}),...l}}else{const{valueSerialized:a,...l}=o,{value:u,sideExports:c}=wt(a,r,()=>{s(o.type!=="computed");const{definedAtData:f}=o;return Array.isArray(f)?f[0]:f});n(c),i={value:u,...l}}t[r]=i}),t;function n(r){r.forEach(o=>{const{configName:i,configValue:a}=o;t[i]||(t[i]=a)})}}function wt(e,t,n){if(e.type==="js-serialized"){let{value:r}=e;return r=Ne(r),{value:r,sideExports:[]}}if(e.type==="pointer-import"){const{value:r}=e;return{value:r,sideExports:[]}}if(e.type==="plus-file"){const r=n(),{exportValues:o}=e;s(!r.definedBy),qo(o,r.filePathToShowToUser,t);let i,a=!1;const l=[];return Object.entries(o).forEach(([u,c])=>{u!=="default"&&u!==t?l.push({configName:u,configValue:{type:"standard",value:c,definedAtData:{filePathToShowToUser:r.filePathToShowToUser,fileExportPathToShowToUser:[u]}}}):(i=c,s(!a),a=!0)}),s(a),{value:i,sideExports:l}}s(!1)}function Qo(e){s(b(e,"pageFilesLazy","object")),s(b(e,"pageFilesEager","object")),s(b(e,"pageFilesExportNamesLazy","object")),s(b(e,"pageFilesExportNamesEager","object")),s(b(e.pageFilesLazy,".page")),s(b(e.pageFilesLazy,".page.client")||b(e.pageFilesLazy,".page.server")),s(b(e,"pageFilesList","string[]")),s(b(e,"pageConfigsSerialized")),s(b(e,"pageConfigGlobalSerialized"));const{pageConfigsSerialized:t,pageConfigGlobalSerialized:n}=e;ei(t),ti(n);const{pageConfigs:r,pageConfigGlobal:o}=Xo(t,n),i={};oe(e.pageFilesLazy).forEach(({filePath:l,pageFile:u,globValue:c})=>{u=i[l]=i[l]??u;const f=c;vt(f),u.loadFile=async()=>{"fileExports"in u||(u.fileExports=await f(),Vo(u))}}),oe(e.pageFilesExportNamesLazy).forEach(({filePath:l,pageFile:u,globValue:c})=>{u=i[l]=i[l]??u;const f=c;vt(f),u.loadExportNames=async()=>{if(!("exportNames"in u)){const d=await f();s(b(d,"exportNames","string[]"),u.filePath),u.exportNames=d.exportNames}}}),oe(e.pageFilesEager).forEach(({filePath:l,pageFile:u,globValue:c})=>{u=i[l]=i[l]??u;const f=c;s(x(f)),u.fileExports=f}),oe(e.pageFilesExportNamesEager).forEach(({filePath:l,pageFile:u,globValue:c})=>{u=i[l]=i[l]??u;const f=c;s(x(f)),s(b(f,"exportNames","string[]"),u.filePath),u.exportNames=f.exportNames}),e.pageFilesList.forEach(l=>{i[l]=i[l]??wn(l)});const a=Object.values(i);return a.forEach(({filePath:l})=>{s(!l.includes("\\"))}),{pageFilesAll:a,pageConfigs:r,pageConfigGlobal:o}}function oe(e){const t=[];return Object.entries(e).forEach(([n,r])=>{s(Go.includes(n)),s(x(r)),Object.entries(r).forEach(([o,i])=>{const a=wn(o);s(a.fileType===n),t.push({filePath:o,pageFile:a,globValue:i})})}),t}function vt(e){s(B(e))}function ei(e){s(M(e)),e.forEach(t=>{s(x(t)),s(b(t,"pageId","string")),s(b(t,"routeFilesystem")),s(b(t,"configValuesSerialized"))})}function ti(e){s(b(e,"configValuesSerialized"))}function ni(e,t,n){const r=ri({pageConfigGlobalValues:e,pageConfigValues:n});let o;if(t.isErrorPage)o={...r,isErrorPage:!0};else{const i=r.config.route??t.routeFilesystem.routeString;o={...r,route:i}}return[t.pageId,o]}function ri({pageConfigGlobalValues:e,pageConfigValues:t}){const n=Cn({pageConfigGlobalValues:e,pageConfigValues:t});return vn(n)}function vn(e){const t=e;return{config:t.config,_source:t.source,_sources:t.sources,_from:t.from}}function Cn({pageConfigGlobalValues:e,pageConfigValues:t}){const n={...e,...t};return Rn({configValues:n})}function oi({pageConfigGlobalValues:e}){const t=Rn({configValues:e});return vn(t)}function ii(e,t,n){const r={},o={},i={};e.forEach(y=>{si(y).forEach(({exportName:w,exportValue:_,isFromDefaultExport:T})=>{s(w!=="default"),i[w]=i[w]??[],i[w].push({exportValue:_,exportSource:`${y.filePath} > ${T?`\`export default { ${w} }\``:`\`export { ${w} }\``}`,filePath:y.filePath,_filePath:y.filePath,_fileType:y.fileType,_isFromDefaultExport:T})})});let a,l,u;if(t){const y=Cn({pageConfigGlobalValues:n.configValues,pageConfigValues:t.configValues});a=y.source,l=y.sources,u=y.from,Object.assign(r,y.config),Object.assign(o,y.configEntries),Object.assign(i,y.exportsAll)}else a={},l={},u={configsStandard:{},configsCumulative:{},configsComputed:{}};const c=ai(),f={};return Object.entries(i).forEach(([y,m])=>{m.forEach(({exportValue:w,_fileType:_,_isFromDefaultExport:T})=>{f[y]=f[y]??w,_===".page"&&!T&&(y in c||(c[y]=w))})}),s(!("default"in f)),s(!("default"in i)),{config:r,from:u,source:a,sources:l,configEntries:o,exports:f,exportsAll:i,pageExports:c}}function Rn(e){const t={},n={},r={},o={},i={},a={configsStandard:{},configsCumulative:{},configsComputed:{}},l=(u,c)=>{o[c]=u,i[c]??(i[c]=[]),i[c].push(u)};return Object.entries(e.configValues).forEach(([u,c])=>{const{value:f}=c,d=un(c.definedAtData),y=cn("Config",u,c.definedAtData);if(t[u]=t[u]??f,n[u]=n[u]??[],s(n[u].length===0),n[u].push({configValue:f,configDefinedAt:y,configDefinedByFile:d}),c.type==="standard"){const w={type:"configsStandard",value:c.value,definedAt:Q(c.definedAtData,u)};l(w,u),a.configsStandard[u]=w}if(c.type==="cumulative"){const w={type:"configsCumulative",values:c.value.map((_,T)=>{const L=c.definedAtData[T];s(L);const v=Q(L,u);return{value:_,definedAt:v}})};l(w,u),a.configsCumulative[u]=w}if(c.type==="computed"){const w={type:"configsComputed",value:c.value};l(w,u),a.configsComputed[u]=w}const m=u;r[m]=r[m]??[],r[m].push({exportValue:f,exportSource:y,filePath:d,_filePath:d,_fileType:null,_isFromDefaultExport:null})}),{config:t,configEntries:n,exportsAll:r,source:o,sources:i,from:a}}function si(e){const{filePath:t,fileExports:n}=e;s(n),s(on(t));const r=[];return Object.entries(n).sort(Hr(([o])=>o==="default")).forEach(([o,i])=>{let a=o==="default";if(a)if(Kr(t))o="Page";else{p(x(i),`The ${h.cyan("export default")} of ${t} should be an object.`),Object.entries(i).forEach(([l,u])=>{zo(l,t),r.push({exportName:l,exportValue:u,isFromDefaultExport:a})});return}r.push({exportName:o,exportValue:i,isFromDefaultExport:a})}),r.forEach(({exportName:o,isFromDefaultExport:i})=>{s(!(i&&Sn.includes(o)))}),r}function ai(){return new Proxy({},{get(...e){return G()||O(!1,"`pageContext.pageExports` is outdated. Use `pageContext.exports` instead, see https://vike.dev/exports",{onlyOnce:!0,showStackTrace:!0}),Reflect.get(...e)}})}function li(e){const{pageFilesAll:t,pageConfigs:n,pageConfigGlobal:r}=Qo(e),o=ui(t,n),i=oi({pageConfigGlobalValues:r.configValues}),a=Object.fromEntries(n.map(l=>ni(r.configValues,l,l.configValues)));return{pageFilesAll:t,allPageIds:o,pageConfigs:n,pageConfigGlobal:r,globalConfig:i,pageConfigsUserFriendly:a}}function ui(e,t){const n=e.filter(({isDefaultPageFile:i})=>!i).map(({pageId:i})=>i),r=We(n),o=t.map(i=>i.pageId);return[...r,...o]}function ci(e){s(typeof e.urlOriginal=="string"),_n(e);const t={};return ve(t,"urlPathname",{get:On,enumerable:!0,configurable:!0}),ve(t,"url",{get:fi,enumerable:!1,configurable:!0}),ve(t,"urlParsed",{get:di,enumerable:!0,configurable:!0}),t}function En(e){const t=a=>s(typeof n=="string",{src:a,urlResolved:n});let n,r;e.urlLogical?(n=e.urlLogical,r=!1,t(1)):e._urlRewrite?(n=e._urlRewrite,r=!1,t(2)):(n=e.urlOriginal,r=!0,t(3)),t(4);let o=e._urlHandler;o||(o=a=>a),n=o(n);const i=r?e._baseServer:"/";return he(n,i)}function On(){const{pathname:e}=En(this),t=e;return s(t.startsWith("/")),t}function fi(){return O(!1,"`pageContext.url` is outdated. Use `pageContext.urlPathname`, `pageContext.urlParsed`, or `pageContext.urlOriginal` instead. (See https://vike.dev/migration/0.4.23 for more information.)",{onlyOnce:!0,showStackTrace:!0}),On.call(this)}function di(){const{isBaseMissing:e,...t}=En(this),n=G(),r=i=>{O(n,`pageContext.urlParsed.${i} isn't available on the server-side (HTTP requests don't include the URL hash)`,{onlyOnce:!0,showStackTrace:!0})},o={...t,get hash(){return r("hash"),t.hash},get hashOriginal(){return r("hashOriginal"),t.hashOriginal},get hashString(){return O(!1,"pageContext.urlParsed.hashString has been renamed to pageContext.urlParsed.hashOriginal",{onlyOnce:!0,showStackTrace:!0}),r("hashString"),t.hashOriginal},get searchString(){return O(!1,"pageContext.urlParsed.searchString has been renamed to pageContext.urlParsed.searchOriginal",{onlyOnce:!0,showStackTrace:!0}),t.searchOriginal}};return re(o,"hashString",!1),re(o,"searchString",!1),n||(re(o,"hash",!1),re(o,"hashOriginal",!1)),o}function xn(e){s(typeof e.urlOriginal=="string"),s(typeof e.urlPathname=="string"),s(K(e.urlParsed)),s(e.urlPathname===e.urlParsed.pathname),_n(e)}function _n(e){"urlPathname"in e?(s(typeof e.urlPathname=="string"),s(we(e,"urlPathname")),s(we(e,"urlParsed")),s(we(e,"url"))):(s(!("urlParsed"in e)),s(!("url"in e)))}function gi(e,t){const r=t.filter(({filesystemRoot:i})=>e.startsWith(i)).sort(ae(({filesystemRoot:i})=>i.length))[0];let o;if(r){const{filesystemRoot:i,urlRoot:a}=r,l={pageId:e,filesystemRoot:i,urlRoot:a};s(a.startsWith("/")&&e.startsWith("/")&&i.startsWith("/"),l),s(e.startsWith(i),l),i!=="/"?(s(!i.endsWith("/"),l),o=W(e,i.length,0)):o=e,s(o.startsWith("/"),l),o=a+(a.endsWith("/")?"":"/")+W(o,1,0)}else o=e;return s(o.startsWith("/")),o=o.split("/").filter(i=>i!=="pages"&&i!=="src"&&i!=="index").join("/"),s(!o.includes(".page.")),s(!o.endsWith(".")),o.endsWith("/index")&&(o=W(o,0,-6)),o===""&&(o="/"),s(o.startsWith("/")),s(!o.endsWith("/")||o==="/"),o}async function hi(e,t,n){xn(t);let r=e(t);if(kn(r,`The Route Function ${n}`),r=await r,r===!1)return null;if(r===!0&&(r={}),p(K(r),`The Route Function ${n} should return a boolean or a plain JavaScript object (but it's ${h.cyan(`typeof result === ${JSON.stringify(typeof r)}`)} instead)`),"match"in r){const{match:a}=r;if(p(typeof a=="boolean",`The ${h.cyan("match")} value returned by the Route Function ${n} should be a boolean.`),!a)return null}let o=null;"precedence"in r&&(o=r.precedence,p(typeof o=="number",`The ${h.cyan("precedence")} value returned by the Route Function ${n} should be a number.`)),Tn(r,`The ${h.cyan("routeParams")} object returned by the Route Function ${n} should`);const i=r.routeParams||{};return p(!("pageContext"in r),`Providing ${h.cyan("pageContext")} in Route Functions is prohibited, see https://vike.dev/route-function#cannot-provide-pagecontext`),s(K(i)),Object.keys(r).forEach(a=>{p(a==="match"||a==="routeParams"||a==="precedence",`The Route Function ${n} returned an object with an unknown property ${h.cyan(a)} (the known properties are ${h.cyan("match")}, ${h.cyan("routeParams")}, and ${h.cyan("precedence")})`)}),{precedence:o,routeParams:i}}function kn(e,t){O(!Ur(e),`${t} returned a promise, but asynchronous routing is deprecated and will be removed in the next major release, see https://vike.dev/route-function#async`,{onlyOnce:!0})}function Ct(){const e=h.cyan("iKnowThePerformanceRisksOfAsyncRouteFunctions");O(!1,`${e} is deprecated and will be removed in the next major release`,{onlyOnce:!0})}function Tn(e,t){s(t.endsWith(" should")),b(e,"routeParams")&&(s(t.endsWith(" should")),p(b(e,"routeParams","string{}"),`${t} be an object holding string values.`))}async function pi(e,t,n,r){await Promise.all(e.filter(l=>l.fileType===".page.route").map(l=>l.loadFile?.()));const{onBeforeRouteHook:o,filesystemRoots:i}=yi(e,t,n);return{pageRoutes:mi(i,e,t,r),onBeforeRouteHook:o}}function mi(e,t,n,r){const o=[];if(n.length>0){s(e===null);const i=!0;n.filter(a=>!a.isErrorPage).forEach(a=>{const l=a.pageId;let u=null;{const c="route",f=Y(a,c);if(f){const d=f.value;s(f.definedAtData);const y=Q(f.definedAtData,c);typeof d=="string"?u={pageId:l,comesFromV1PageConfig:i,routeString:d,routeDefinedAtString:y,routeType:"STRING"}:(s(B(d)),Y(a,"iKnowThePerformanceRisksOfAsyncRouteFunctions","boolean")&&Ct(),u={pageId:l,comesFromV1PageConfig:i,routeFunction:d,routeDefinedAtString:y,routeType:"FUNCTION"})}}if(!u){const{routeFilesystem:c}=a;s(c);const{routeString:f,definedAtLocation:d}=c;s(c.routeString.startsWith("/")),u={pageId:l,routeFilesystemDefinedBy:d,comesFromV1PageConfig:i,routeString:f,routeDefinedAtString:null,routeType:"FILESYSTEM"}}s(u),o.push(u)})}if(n.length===0){s(e);const i=!1;r.filter(a=>!ne(a)).forEach(a=>{const l=t.find(u=>u.pageId===a&&u.fileType===".page.route");if(!l||!("default"in l.fileExports)){const u=gi(a,e);s(u.startsWith("/")),s(!u.endsWith("/")||u==="/"),o.push({pageId:a,comesFromV1PageConfig:i,routeString:u,routeDefinedAtString:null,routeFilesystemDefinedBy:`${a}.page.*`,routeType:"FILESYSTEM"})}else{const{filePath:u,fileExports:c}=l;if(s(c.default),b(c,"default","string")){const f=c.default;p(f.startsWith("/"),`A Route String should start with a leading slash '/' but ${u} has \`export default '${f}'\`. Make sure to \`export default '/${f}'\` instead.`),o.push({pageId:a,comesFromV1PageConfig:i,routeString:f,routeDefinedAtString:u,routeType:"STRING"});return}if(b(c,"default","function")){const f=c.default;"iKnowThePerformanceRisksOfAsyncRouteFunctions"in c&&Ct(),o.push({pageId:a,comesFromV1PageConfig:i,routeFunction:f,routeDefinedAtString:u,routeType:"FUNCTION"});return}p(!1,`The default export of ${u} should be a string or a function.`)}})}return o}function yi(e,t,n){if(t.length>0)return{onBeforeRouteHook:ro(n,"onBeforeRoute"),filesystemRoots:null};let r=null;const o=[];return e.filter(i=>i.fileType===".page.route"&&i.isDefaultPageFile).forEach(({filePath:i,fileExports:a})=>{if(s(a),"onBeforeRoute"in a){p(b(a,"onBeforeRoute","function"),`\`export { onBeforeRoute }\` of ${i} should be a function.`);const{onBeforeRoute:l}=a,u="onBeforeRoute";r={hookFilePath:i,hookFn:l,hookName:u,hookTimeout:me(u)}}"filesystemRoutingRoot"in a&&(p(b(a,"filesystemRoutingRoot","string"),`\`export { filesystemRoutingRoot }\` of ${i} should be a string.`),p(b(a,"filesystemRoutingRoot","string"),`\`export { filesystemRoutingRoot }\` of ${i} is \`'${a.filesystemRoutingRoot}'\` but it should start with a leading slash \`/\`.`),o.push({filesystemRoot:bi(i),urlRoot:a.filesystemRoutingRoot}))}),{onBeforeRouteHook:r,filesystemRoots:o}}function bi(e){s(e.startsWith("/")),s(!e.endsWith("/"));const t=e.split("/"),n=W(t,0,-1).join("/")||"/";return s(n.startsWith("/")),s(!n.endsWith("/")||n==="/"),n}function $n(){const e="/";return s(Pi(e)),e}function Pi(e){return e.startsWith("/")}const Si="modulepreload",wi=function(e){return"/"+e},Rt={},Re=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");o=Promise.allSettled(n.map(u=>{if(u=wi(u),u in Rt)return;Rt[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":Si,c||(d.as="script"),d.crossOrigin="",d.href=u,l&&d.setAttribute("nonce",l),document.head.appendChild(d),c)return new Promise((y,m)=>{d.addEventListener("load",y),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return o.then(a=>{for(const l of a||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},vi=/^\/docs\/(.*)$/;function Ci(e){const t=e.urlPathname.match(vi);if(!t)return!1;const[,n]=t;return{routeParams:{key:n}}}const Ri=Object.freeze(Object.defineProperty({__proto__:null,route:Ci},Symbol.toStringTag,{value:"Module"})),Ke={},Fn={},Ei={},ye={},Oi=[],In={},xi=[{pageId:"/pages/_error",isErrorPage:!0,routeFilesystem:void 0,loadConfigValuesAll:()=>({moduleId:"virtual:vike:pageConfigValuesAll:client:/pages/_error",moduleExports:Re(()=>import("../entries/pages_error.DlwLYWej.js"),__vite__mapDeps([0,1,2,3,4,5,6]))}),configValuesSerialized:{isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/config",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!0}}}},{pageId:"/pages/index",isErrorPage:void 0,routeFilesystem:{routeString:"/",definedAtLocation:"/pages/index/"},loadConfigValuesAll:()=>({moduleId:"virtual:vike:pageConfigValuesAll:client:/pages/index",moduleExports:Re(()=>import("../entries/pages_index.Bb824t1n.js"),__vite__mapDeps([7,1,2,3,4,5,6]))}),configValuesSerialized:{isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/config",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!0}}}},{pageId:"/pages/docs",isErrorPage:void 0,routeFilesystem:{routeString:"/docs",definedAtLocation:"/pages/docs/"},loadConfigValuesAll:()=>({moduleId:"virtual:vike:pageConfigValuesAll:client:/pages/docs",moduleExports:Re(()=>import("../entries/pages_docs.Gi7h7KmT.js"),__vite__mapDeps([8,1,2,3,4,5,6]))}),configValuesSerialized:{isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:{server:!0}}},route:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/docs/+route.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:Ri}},clientRouting:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/config",fileExportPathToShowToUser:["default","clientRouting"]},valueSerialized:{type:"js-serialized",value:!0}}}}],_i={configValuesSerialized:{}},ki=Object.assign({}),Ti={...ki};Ke[".page"]=Ti;const $i=Object.assign({}),Fi={...$i};ye[".page"]=Fi;const Ii=Object.assign({}),Ai={...Ii};ye[".page.server"]=Ai;const ji=Object.assign({}),Li={...ji};Fn[".page.route"]=Li;const Hi=Object.assign({}),Wi={...Hi};Ke[".page.client"]=Wi;const Di=Object.assign({}),Bi={...Di};ye[".page.client"]=Bi;const Ui=Object.assign({}),Vi={...Ui};In[".page.server"]=Vi;const zi=Object.freeze(Object.defineProperty({__proto__:null,neverLoaded:In,pageConfigGlobalSerialized:_i,pageConfigsSerialized:xi,pageFilesEager:Fn,pageFilesExportNamesEager:ye,pageFilesExportNamesLazy:Ei,pageFilesLazy:Ke,pageFilesList:Oi},Symbol.toStringTag,{value:"Module"})),{pageFilesAll:Et,allPageIds:Ot,pageConfigs:xt,pageConfigGlobal:_t}=li(zi);async function An(e){const{pageRoutes:t,onBeforeRouteHook:n}=await pi(Et,xt,_t,Ot),r=$n();s(Be(r));const o={_isPageContextObject:!0,isClientSide:!0,isPrerendering:!1,urlOriginal:e,_objectCreatedByVike:!0,_urlHandler:null,_urlRewrite:null,_baseServer:r,_pageFilesAll:Et,_pageConfigs:xt,_pageConfigGlobal:_t,_allPageIds:Ot,_pageRoutes:t,_onBeforeRouteHook:n},i=ci(o);return S(o,i),o}function jn(e,t){const n=e.filter(o=>o.pageId===t);return s(n.length<=1),n[0]??null}async function Ni(e,t){if("isAllLoaded"in e)return e;const{moduleId:n,moduleExports:r}=e.loadConfigValuesAll(),o=await r;o||s(!1,{moduleExports:r,configValuesLoaded:o,moduleId:n});const i=Te(o.configValuesSerialized);return Object.assign(e.configValues,i),S(e,{isAllLoaded:!0}),e}const Ln="__whileFetchingAssets";async function $e(e,t,n,r){const o=Ge(t,e),i=jn(n,e);let a;const l=!1;try{a=(await Promise.all([i&&Ni(i,l),...o.map(d=>d.loadFile?.())]))[0]}catch(f){throw Gi(f)&&Object.assign(f,{[Ln]:!0}),f}const u=ii(o,a,r),c={};return S(c,u),S(c,{_pageFilesLoaded:o}),c}function Ye(e){return e?e[Ln]===!0:!1}function Gi(e){return e instanceof Error?["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed","error resolving module specifier","failed to resolve module"].some(n=>e.message.toLowerCase().includes(n.toLowerCase())):!1}function Hn(e){const t=e.getAttribute("href");return t===null||!Xt(t)||t===""||pr(t)||Yi(t)||Ki(e)||!Ji(t)||!Mi(e)}function Mi(e){if(qi()){const n=e.getAttribute("data-vike-link");return n!==null&&n!=="false"}else return!0}function Ki(e){const t=e.getAttribute("target"),n=e.getAttribute("rel");return t==="_blank"||t==="_external"||n==="external"||e.hasAttribute("download")}function Yi(e){return!!(e.startsWith("#")||e.includes("#")&&Z(e,{withoutHash:!0})===Z(window.location.href,{withoutHash:!0}))}function Ls(e){return e.startsWith("#")?e===window.location.hash:Z(e)===Z(window.location.href)}function Ji(e){const t=$n();s(Be(t));const{isBaseMissing:n}=he(e,t);return!n}function qi(){return!!window._disableAutomaticLinkInterception}function X(e){return e.fileType===".css"?[]:e.exportNames?e.exportNames:(s(e.fileExports,e.filePath),Object.keys(e.fileExports))}function Xi({pageFilesClientSide:e,pageFilesServerSide:t,pageId:n}){return{isHtmlOnly:r(),isClientRouting:i()};function r(){return t.some(l=>l.pageId===n&&l.fileType===".page")?(o(),!1):!(!t.some(l=>l.pageId===n&&l.fileType===".page.server")||e.some(l=>l.pageId===n&&l.fileType===".page.client"&&X(l).includes("render")))}function o(){const a=e.some(l=>X(l).includes("render"));p(a,["No client-side `render()` hook found.","See https://vike.dev/render-modes for more information.",["Loaded client-side page files (none of them `export { render }`):",...e.map((l,u)=>` (${u+1}): ${l.filePath}`)].join(` -`)].join(" "))}function i(){return e.some(l=>X(l).includes("clientRouting"))}}function Zi({pageFilesClientSide:e,pageFilesServerSide:t,isHtmlOnly:n,isClientRouting:r}){let o=[];const i=t.filter(l=>!e.includes(l)),a=[];if(a.push(...e.map(l=>({id:l.filePath,onlyAssets:!1,eagerlyImported:!1}))),a.push(...i.map(l=>({id:l.filePath,onlyAssets:!0,eagerlyImported:!1}))),n)o=e.map(l=>l.filePath);else{const l=Qi(r);a.push({id:l,onlyAssets:!1,eagerlyImported:!1}),o=[l]}return{clientEntries:o,clientDependencies:a}}function Qi(e){return e?"@@vike/dist/esm/client/client-routing-runtime/entry.js":"@@vike/dist/esm/client/server-routing-runtime/entry.js"}function es(e,t){let n=Ge(e,t);const r=sn(e,t),{isHtmlOnly:o,isClientRouting:i}=Xi({pageFilesClientSide:n,pageFilesServerSide:r,pageId:t});o&&(n=n.filter(u=>u.isEnv("CLIENT_ONLY")&&!X(u).includes("render")),n=ns(n));const{clientEntries:a,clientDependencies:l}=Zi({pageFilesClientSide:n,pageFilesServerSide:r,isHtmlOnly:o,isClientRouting:i});return{isHtmlOnly:o,isClientRouting:i,clientEntries:a,clientDependencies:l,pageFilesClientSide:n,pageFilesServerSide:r}}async function ts(e,t,{sharedPageFilesAlreadyLoaded:n}){const r=Ge(e,t);await Promise.all(r.map(async o=>{s(o.isEnv("CLIENT_ONLY")||o.isEnv("CLIENT_AND_SERVER")),await o.loadExportNames?.()}))}function ns(e){const t=[];for(const n of e)if(t.push(n),X(n).includes("overrideDefaultPages"))break;return t}function rs(e,t,n){if(e){const r=Y(e,"clientRouting","boolean")?.value??!1;return{isClientRuntimeLoaded:Y(e,"isClientRuntimeLoaded","boolean")?.value??!1,isClientRouting:r}}else{const{isHtmlOnly:r,isClientRouting:o}=es(t,n);return{isClientRuntimeLoaded:!r,isClientRouting:o}}}async function Fe(e,t){await ts(t._pageFilesAll,e,{sharedPageFilesAlreadyLoaded:!1});const n=jn(t._pageConfigs,e),{isClientRuntimeLoaded:r,isClientRouting:o}=rs(n,t._pageFilesAll,e);return r&&o}const Wn="@",Ie=":";function os(e,t="Invalid"){let n=`${t} Route String ${z(e)}`;p(e!=="",`${n} (empty string): set it to ${z("/")} instead`),p(["/","*"].includes(e[0]),`${n}: it should start with ${z("/")} or ${z("*")}`),p(!e.includes("**"),`${n}: set it to ${z(e.split("**").join("*"))} instead`)}function Ae(e,t){os(e);const n=Je(e),r=n.map(d=>d.param?"[^/]+":d.glob?".*":zr(d.static)).map(d=>`(${d})`).join(""),o=new RegExp(`^${r}/?$`),i=t.match(o);if(!i)return null;const a={},[l,...u]=i;let c=0;const f=n.filter(d=>d.glob).length>1;return n.forEach((d,y)=>{let m=u[y];if(d.param&&(a[d.param]=m),d.glob){const w=`*${f?++c:""}`;a[w]=m}}),{routeParams:a}}function Je(e){const t=[],n=o=>{const i=t[t.length-1];i?.static?i.static+=o:t.push({static:o})},r=e.split("/");return r.forEach((o,i)=>{i!==0&&n("/"),ss(o)?(O(!o.startsWith(Ie),`Outdated Route String ${z(e)}, use ${z(e.split(Ie).join(Wn))} instead`,{onlyOnce:!0}),t.push({param:o.slice(1)})):o==="*"&&i===r.length-1&&e!=="*"&&e!=="/*"?t.push({glob:!0}):o.split("*").forEach((a,l)=>{l!==0&&t.push({glob:!0}),a!==""&&n(a)})}),t}function is(e){const t=[];return Je(e).forEach(r=>{r.param&&t.push(r.param)}),t}function ie(e){const t=Je(e),n=l=>l?.split("/").filter(Boolean).length||0;let r=0;for(const l of t){if(!l.static)break;r+=n(l.static)}const o=t.map(l=>n(l.static)).reduce((l,u)=>l+u,0),i=t.filter(l=>l.param).length,a=t.filter(l=>l.glob).length;return{numberOfStaticPartsBeginning:r,numberOfStaticParts:o,numberOfParams:i,numberOfGlobs:a}}function ss(e){return e.startsWith(Wn)||e.startsWith(Ie)}function kt(e){const n=Ae(e,e);return s(n),Object.keys(n.routeParams).length===0}function z(e){return G()?`'${e}'`:(e===""&&(e="''"),h.cyan(e))}function as(e){e.sort(ls).sort(U(t=>t.routeType==="FUNCTION"&&!!t.precedence&&t.precedence<0)).sort(U(t=>t.routeType==="STRING"&&kt(t.routeString)===!1)).sort(U(t=>t.routeType==="FUNCTION"&&!t.precedence)).sort(U(t=>t.routeType==="STRING"&&kt(t.routeString)===!0)).sort(U(t=>t.routeType==="FILESYSTEM")).sort(U(t=>t.routeType==="FUNCTION"&&!!t.precedence&&t.precedence>0))}function ls(e,t){{const n=e.precedence??0,r=t.precedence??0;if(n!==r)return n>r?-1:1}if(!t.routeString||!e.routeString)return 0;{const r=ae(o=>ie(o).numberOfStaticPartsBeginning)(e.routeString,t.routeString);if(r!==0)return r}{const r=ae(o=>ie(o).numberOfStaticParts)(e.routeString,t.routeString);if(r!==0)return r}{const r=Lr(o=>ie(o).numberOfGlobs)(e.routeString,t.routeString);if(r!==0)return r}{const r=ae(o=>ie(o).numberOfParams)(e.routeString,t.routeString);if(r!==0)return r}return 0}async function us(e){const t={};if(!e._onBeforeRouteHook)return null;const n=await cs(e._onBeforeRouteHook,e);return n&&(S(t,n),b(t,"pageId","string")||b(t,"pageId","null"))?(b(t,"routeParams")?s(b(t,"routeParams","object")):S(t,{routeParams:{}}),S(t,{_routingProvidedByOnBeforeRouteHook:!0,_debugRouteMatches:"CUSTOM_ROUTING"}),t):(S(t,{_routingProvidedByOnBeforeRouteHook:!1}),t)}async function cs(e,t){let n=e.hookFn(t);kn(n,`The onBeforeRoute() hook ${e.hookFilePath}`),n=await N(()=>n,e,t);const r=`The onBeforeRoute() hook defined by ${e.hookFilePath}`;if(p(n==null||Oo(n,["pageContext"])&&b(n,"pageContext"),`${r} should return ${h.cyan("null")}, ${h.cyan("undefined")}, or a plain JavaScript object ${h.cyan("{ pageContext: { /* ... */ } }")}`),n==null)return null;if(p(b(n,"pageContext","object"),`${r} returned ${h.cyan("{ pageContext }")} but pageContext should be a plain JavaScript object.`),b(n.pageContext,"pageId")&&!b(n.pageContext,"pageId","null")){const a=`${r} returned ${h.cyan("{ pageContext: { pageId } }")} but ${h.cyan("pageId")} should be`;p(b(n.pageContext,"pageId","string"),`${a} a string or null`),p(t._allPageIds.includes(n.pageContext.pageId),`${a} ${xo(t._allPageIds.map(l=>h.cyan(l)),"or")}`)}b(n.pageContext,"routeParams")&&Tn(n.pageContext,`${r} returned ${h.cyan("{ pageContext: { routeParams } }")} but routeParams should`);const o=a=>`${r} returned ${h.cyan(`{ pageContext: { ${a} } }`)} which is deprecated. Return ${h.cyan("{ pageContext: { urlLogical } }")} instead.`;b(n.pageContext,"url")&&(O(!1,o("url"),{onlyOnce:!0}),n.pageContext.urlLogical=n.pageContext.url,delete n.pageContext.url),b(n.pageContext,"urlOriginal")&&(O(!1,o("urlOriginal"),{onlyOnce:!0}),n.pageContext.urlLogical=n.pageContext.urlOriginal,delete n.pageContext.urlOriginal),b(n.pageContext,"urlLogical")&&yr(n.pageContext.urlLogical,`${r} returned ${h.cyan("{ pageContext: { urlLogical } }")} and ${h.cyan("urlLogical")}`),dn(n.pageContext,{hookFilePath:e.hookFilePath,hookName:"onBeforeRoute"});const i={};return S(i,n.pageContext),i}var se;function Tt(...e){se||(se=globalThis.__brillout_debug_createDebugger?.("vike:routing")),se&&se(...e)}G()&&pe();async function Dn(e,t){Tt("Pages routes:",e._pageRoutes),xn(e);const n={};{const l=await us(e);if(l){if(l._routingProvidedByOnBeforeRouteHook)return s(l.pageId),l;S(n,l)}S(e,l)}const r=e._allPageIds;p(r.length>0,"No page found. You must create at least one page."),s(e._pageFilesAll.length>0||e._pageConfigs.length>0);const{urlPathname:o}=e;s(o.startsWith("/"));const i=[];await Promise.all(e._pageRoutes.map(async l=>{const{pageId:u,routeType:c}=l;if(l.routeType==="FILESYSTEM"){const{routeString:f}=l,d=Ae(f,o);if(d){const{routeParams:y}=d;i.push({pageId:u,routeParams:y,routeString:f,routeType:c})}return}if(l.routeType==="STRING"){const{routeString:f}=l,d=Ae(f,o);if(d){const{routeParams:y}=d;s(c==="STRING"),i.push({pageId:u,routeString:f,routeParams:y,routeType:c})}return}if(l.routeType==="FUNCTION"){const{routeFunction:f,routeDefinedAtString:d}=l,y=await hi(f,e,d);if(y){const{routeParams:m,precedence:w}=y;i.push({pageId:u,precedence:w,routeParams:m,routeType:c})}return}s(!1)})),as(i);const a=i[0]??null;if(Tt(`Route matches for URL ${h.cyan(o)} (in precedence order):`,i),S(n,{_debugRouteMatches:i}),S(n,{_routeMatch:a}),!a)return S(n,{pageId:null,routeParams:{}}),n;{const{routeParams:l}=a;s(K(l)),S(n,{pageId:a.pageId,routeParams:a.routeParams})}return n}const Bn=j("client-routing-runtime/getPageContextCurrent.ts",{pageContextCurrent:null});function Un(){const{pageContextCurrent:e}=Bn;return e}function $t(e){Bn.pageContextCurrent=e}const ue=5e3,Ft={staticAssets:"hover",pageContext:ue},je={staticAssets:"hover",pageContext:!1},fs=je;function qe(e,t){let n=fs;if("prefetchLinks"in e.exports&&p(!1,"`export { prefetchLinks }` is deprecated, use `export { prefetchStaticAssets }` instead."),"prefetchStaticAssets"in e.exports){const r=e.exports.prefetchStaticAssets;n.staticAssets=r}if("prefetch"in e.exports){const{prefetch:r}=e.exports;r===!0&&(n=Ft),r===!1&&(n=je),Object.assign(n,r),n.pageContext===!0&&(n.pageContext=ue)}if(n.staticAssets,t){{let r=t.getAttribute("data-prefetch");r!==null&&(r===""&&(r="true"),r==="true"&&(n=Ft),r==="false"&&(n=je))}{let r=t.getAttribute("data-prefetch-static-assets");r!==null&&(r==="false"&&(n.staticAssets=!1),n.staticAssets=r)}{let r=t.getAttribute("data-prefetch-page-context");if(r!==null){r===""&&(r="true"),r==="true"&&(n.pageContext=ue),r==="false"&&(n.pageContext=!1);const o=parseInt(r,10);Number.isNaN(o)||(n.pageContext=o)}}}return n}pe();const A=j("client-routing-runtime/prefetch.ts",{linkPrefetchHandlerAdded:new WeakSet,addLinkPrefetchHandlers_debounce:null,mutationObserver:new MutationObserver(Xe),linkTags:document.getElementsByTagName("A"),prefetchedPageContexts:{}});function ds(e){if(!qe(e,null).pageContext)return null;const n=Ze(e.urlPathname),r=A.prefetchedPageContexts[n];return!r||r.result.is404ServerSideRouted||zn(r)?null:r.result.pageContextFromServerHooks}async function gs(e){try{await $e(e.pageId,e._pageFilesAll,e._pageConfigs,e._pageConfigGlobal)}catch(t){if(Ye(t))He(t,!0);else throw t}}async function hs(e,t){const n=await _e(e,!1);Vn(e,n,t)}function It(e,t){Qe()&&Vn(e,t,null)}function Vn(e,t,n){n===null&&(n=ps());const r=Ze(e.urlPathname);s(Qe()),A.prefetchedPageContexts[r]={resultFetchedAt:Date.now(),resultMaxAge:n,result:t}}function ps(){const e=Un();if(!e)return 1/0;const t=qe(e,null);return typeof t.pageContext=="number"?t.pageContext:ue}function Xe(){A.addLinkPrefetchHandlers_debounce&&clearTimeout(A.addLinkPrefetchHandlers_debounce),A.addLinkPrefetchHandlers_debounce=setTimeout(()=>{"requestIdleCallback"in window?requestIdleCallback(At,{timeout:300}):setTimeout(At,150)},250)}function Hs(){Xe()}function ms(){A.mutationObserver.observe(document.body,{childList:!0,subtree:!0})}function ys(){A.mutationObserver.disconnect()}function At(){for(let e of A.linkTags){if(A.linkPrefetchHandlerAdded.has(e)||(A.linkPrefetchHandlerAdded.add(e),Hn(e)))continue;e.addEventListener("mouseover",()=>{Ee(e,"hover")},{passive:!0}),e.addEventListener("touchstart",()=>{Ee(e,"hover")},{passive:!0}),new IntersectionObserver(n=>{n.forEach(r=>{r.isIntersecting&&Ee(e,"viewport")})}).observe(e)}}async function Ee(e,t){let n;const r=Un();if(r)n=qe(r,e);else if(Qe())n={staticAssets:"hover",pageContext:1/0};else return;if(Hn(e))return;const o=e.getAttribute("href"),i=await bs(o);i?.pageId&&(s(b(i,"pageId","string")),await Fe(i.pageId,i)&&await Promise.all([(async()=>{n.staticAssets===t&&await gs(i)})(),(async()=>{if(t!=="viewport"&&n.pageContext){const a=Ze(o),l=A.prefetchedPageContexts[a];if(!l||zn(l)){const u=n.pageContext;await hs(i,u)}}})()]))}function zn(e){return Date.now()-e.resultFetchedAt>e.resultMaxAge}async function bs(e){const t=await An(e);let n;try{n=await Dn(t)}catch{return null}return S(t,n),t}function Ze(e){return e.startsWith("#")&&(e="/"),s(e.startsWith("/"),{urlPathname:e}),e.split("#")[0]}function Qe(){return"_isBrilloutDocpress"in window}async function Ps(e,t){const n=Me(e);let r=null,o;r=D(e,"render"),o="render";{const l=D(e,"onRenderClient");l&&(r=l,o="onRenderClient")}if(!r){const l=Ss(e);if(s(l),e._pageConfigs.length>0)p(!1,`No onRenderClient() hook defined for URL '${l}', but it's needed, see https://vike.dev/onRenderClient`);else{const u=e._pageFilesLoaded.filter(f=>f.fileType===".page.client");let c;u.length===0?c="No file `*.page.client.*` found for URL "+l:c="One of the following files should export a render() hook: "+u.map(f=>f.filePath).join(" "),p(!1,c)}}s(r);const i=r.hookFn;s(o);const a=await N(()=>i(n),r,e);p(a===void 0,`The ${o}() hook defined by ${r.hookFilePath} isn't allowed to return a value`)}function Ss(e){let t;try{t=e.urlPathname??e.urlOriginal}catch{}return t=t??window.location.href,t}Cs();const Le=j("client-routing-runtime/history.ts",{previous:ot()});function Nn(){const e=Gn();if(J(e))return;const t=ws(e);rt(t)}function ws(e){const t=nt(),n=tt(),r="browser";let o;return e?o={timestamp:e.timestamp??t,scrollPosition:e.scrollPosition??n,triggeredBy:e.triggeredBy??r,_isVikeEnhanced:!0}:o={timestamp:t,scrollPosition:n,triggeredBy:r,_isVikeEnhanced:!0},s(J(o)),o}function et(){const e=Gn();return s(J(e),{state:e}),e}function Gn(){return window.history.state}function tt(){return{x:window.scrollX,y:window.scrollY}}function nt(){return new Date().getTime()}function jt(){const e=tt(),t=et();rt({...t,scrollPosition:e})}function vs(e,t){if(t)rt(et(),e);else{const n={timestamp:nt(),scrollPosition:null,triggeredBy:"vike",_isVikeEnhanced:!0};window.history.pushState(n,"",e)}}function rt(e,t){const n=t??null;window.history.replaceState(e,"",n)}function Lt(e,t){History.prototype.replaceState.bind(window.history)(e,"",t)}function Ws(){["pushState","replaceState"].forEach(e=>{const t=window.history[e].bind(window.history);window.history[e]=(n={},...r)=>{p(n==null||x(n),`history.${e}(state) argument state must be an object`);const o=J(n)?n:{_isVikeEnhanced:!0,scrollPosition:tt(),timestamp:nt(),triggeredBy:"user",...n};s(J(o));const i=t(o,...r);return Le.previous=ot(),i}})}function J(e){return!!(x(e)&&"_isVikeEnhanced"in e)}function ot(){return{url:Ve(),state:et()}}function Ds(){const{previous:e}=Le,t=window.history.state!==null;t||Nn(),s(J(window.history.state));const n=ot();return Le.previous=n,{isHistoryStateEnhanced:t,previous:e,current:n}}function Cs(){Nn()}function Rs(e,t){if(!e&&t&&Os(t)){Es(t);return}if(e&&"x"in e){Mn(e);return}if(e?.preserveScroll)return;const n=_s();xs(n)}function Es(e){const t=window.history.state;Lt(null,e),s(window.history.state===null),window.location.replace(e),Lt(t,e)}function Os(e){return e.includes("#")&&e.includes(":~:text")}function xs(e){if(!e)Ht();else{const t=decodeURIComponent(e),n=document.getElementById(t)||document.getElementsByName(t)[0];n?(n.scrollIntoView(),n.focus()):e==="top"&&Ht()}}function Ht(){Mn({x:0,y:0})}function Mn(e){const t=()=>{window.scrollTo(e.x,e.y)},n=()=>window.scrollX===e.x&&window.scrollY===e.y;n()||(t(),!n()&&requestAnimationFrame(()=>{t(),!n()&&setTimeout(async()=>{if(t(),n())return;const r=new Date().getTime();for(;;)if(await Er(10),t(),n()||new Date().getTime()-r>100)return},0)}))}function _s(){let{hash:e}=window.location;return e===""?null:(s(e.startsWith("#")),e=e.slice(1),e)}function Bs(){window.addEventListener("scroll",Or(jt,Math.ceil(1e3/3)),{passive:!0}),tn(jt)}const Kn=j("client-routing-runtime/scrollRestoration.ts",{});function Us(){Wt(),tn(Wt),xr(()=>Kn.initialRenderIsDone&&Yn())}function ks(){Kn.initialRenderIsDone=!0,Yn()}function Yn(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual")}function Wt(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto")}const E=j("client-routing-runtime/renderPageClientSide.ts",(()=>{const{promise:e,resolve:t}=_r();return{renderCounter:0,firstRenderStartPromise:e,firstRenderStartPromiseResolve:t}})()),{firstRenderStartPromise:Vs}=E;async function Dt(e){kr("renderPageClientSide()");const{urlOriginal:t=Ve(),overwriteLastHistoryEntry:n=!1,isBackwardNavigation:r,pageContextsFromRewrite:o=[],redirectCount:i=0,doNotRenderIfSamePage:a,isClientSideNavigation:l=!0,pageContextInitClient:u}=e;let{scrollTarget:c}=e;const{previousPageContext:f}=E;ys();const{isRenderOutdated:d,setHydrationCanBeAborted:y,isFirstRender:m}=Fs();if(Ao(o.length,i),E.clientRoutingIsDisabled){V(t);return}if(E.firstRenderStartPromiseResolve(),d())return;await w();return;async function w(){const v=async g=>{await T({err:g})},P=await _(!1);if(!d()){if(E.isFirstRenderDone&&(s(f),Ce(f,"onPageTransitionStart"),!E.isTransitioning)){E.isTransitioning=!0;const g=D(f,"onPageTransitionStart");if(g){const k=g,{hookFn:F}=k;try{await N(()=>F(P),k,P)}catch(C){await v(C);return}if(d())return}}if(m){const g=Lo();s(!("urlOriginal"in g)),S(P,g),It(P,{pageContextFromServerHooks:g})}else{let g;try{g=await Dn(P)}catch(C){await v(C);return}if(d())return;if(!g.pageId){V(t);return}s(b(g,"pageId","string"));const k=await Fe(g.pageId,P);if(d())return;if(!k){V(t);return}const F=g.pageId&&f?.pageId&&g.pageId===f.pageId;if(a&&F)return;s(!("urlOriginal"in g)),S(P,g)}try{S(P,await $e(P.pageId,P._pageFilesAll,P._pageConfigs,P._pageConfigGlobal))}catch(g){if(Bt(g,P,m))return;await v(g);return}if(!d()&&($t(P),P.exports.hydrationCanBeAborted?y():O(!Rr(),"You seem to be using React; we recommend setting hydrationCanBeAborted to true, see https://vike.dev/hydrationCanBeAborted",{onlyOnce:!0}),!d()))if(m){s(b(P,"_hasPageContextFromServer","true"));let g;try{g=await Ho(P)}catch(k){await v(k);return}if(d())return;Pe(P,g),await L(P)}else{let g;const k=ds(P);if(k)g=k;else try{const C=await _e(P,!1);if(C.is404ServerSideRouted)return;g=C.pageContextFromServerHooks,It(P,C)}catch(C){await v(C);return}if(d())return;s(!("urlOriginal"in g)),S(P,g);let F;try{F=await bt(P,!1)}catch(C){await v(C);return}if(d())return;Pe(P,F),await L(P)}}}async function _(v){const P=await An(t);S(P,{isBackwardNavigation:r,isClientSideNavigation:l,isHydration:m&&!v,previousPageContext:f,...u}),Object.defineProperty(P,"_previousPageContext",{get(){return O(!1,"pageContext._previousPageContext has been renamed pageContext.previousPageContext",{showStackTrace:!0,onlyOnce:!0}),f},enumerable:!1});{const g=Fo(o);s(!("urlOriginal"in g)),S(P,g)}return P}async function T(v){const P=R=>{dt(R,v.err)||console.error(R)};if("err"in v){const{err:R}=v;s(R),yt(R)||console.error(R)}const g=await _(!0);if(d())return;if(v.is404&&S(g,{is404:!0}),v.pageContextError&&S(g,v.pageContextError),"err"in v){const{err:R}=v;if(s(!("errorWhileRendering"in g)),S(g,{errorWhileRendering:R}),yt(R)){const H=R._pageContextAbort;if(H._urlRewrite){await Dt({...e,scrollTarget:void 0,pageContextsFromRewrite:[...o,H]});return}if(H._urlRedirect){const be=H._urlRedirect.url;if(be.startsWith("/"))await Dt({...e,scrollTarget:void 0,urlOriginal:be,overwriteLastHistoryEntry:!1,isBackwardNavigation:!1,redirectCount:i+1});else{V(be);return}return}s(H.abortStatusCode),s(!("urlOriginal"in H)),S(g,H),H.abortStatusCode===404&&S(g,{is404:!0})}else S(g,{is404:!1})}const k=lo(g._pageFilesAll,g._pageConfigs);if(!k)throw new Error("No error page defined.");S(g,{pageId:k});const F=await Fe(g.pageId,g);if(d())return;if(!F){V(t);return}try{S(g,await $e(g.pageId,g._pageFilesAll,g._pageConfigs,g._pageConfigGlobal))}catch(R){if(Bt(R,g,m))return;P(R);return}if(d())return;$t(g);let C;try{const R=await _e(g,!0);if(R.is404ServerSideRouted)return;C=R.pageContextFromServerHooks}catch(R){P(R);return}if(d())return;s(!("urlOriginal"in C)),S(g,C);let I;try{I=await bt(g,!0)}catch(R){P(R);return}d()||(Pe(g,I),S(g,{routeParams:{}}),await L(g,v))}async function L(v,P){const g=async C=>{P?dt(C,P.err)||console.error(C):await T({err:C})};if(E.onRenderClientPreviousPromise&&(await E.onRenderClientPreviousPromise,s(E.onRenderClientPreviousPromise===void 0),d()))return;$s(t,n),E.previousPageContext=v,s(E.onRenderClientPreviousPromise===void 0);const k=(async()=>{let C;try{await Ps(v,!0)}catch(I){C=I}return E.onRenderClientPreviousPromise=void 0,E.isFirstRenderDone=!0,C})();E.onRenderClientPreviousPromise=k;const F=await k;if(s(E.onRenderClientPreviousPromise===void 0),!(F&&(await g(F),!P))){if(m&&!F){Ce(v,"onHydrationEnd");const C=D(v,"onHydrationEnd");if(C){const{hookFn:I}=C;try{await N(()=>I(v),C,v)}catch(R){if(await g(R),!P)return}if(d(!0))return}}if(!d(!0)){if(E.isTransitioning){E.isTransitioning=void 0,s(f),Ce(f,"onPageTransitionEnd");const C=D(f,"onPageTransitionEnd");if(C){const{hookFn:I}=C;try{await N(()=>I(v),C,v)}catch(R){if(await g(R),!P)return}if(d(!0))return}}if(!c&&f){const C=Ut(f),I=Ut(v);I!==!1&&C!==!1&&Is(I,C)&&(c={preserveScroll:!0})}Rs(c,t),ks(),v._hasPageContextFromServer&&Wo(v),ms(),Xe(),E.renderedPageContext=v,Ts(t)}}}}function Ts(e){window._vike??(window._vike={}),window._vike.fullyRenderedUrl=e}function $s(e,t){Ve()!==e&&vs(e,t)}function Bt(e,t,n){if(!Ye(e))return!1;if(n)throw He(e,!1),e;return He(e,!0),V(t.urlOriginal),!0}function He(e,t){s(Ye(e)),E.clientRoutingIsDisabled=!0,t&&console.log(e),ir(!1,["Failed to fetch static asset.","This usually happens when a new frontend is deployed.","Falling back to Server Routing.","(The next page navigation will use Server Routing instead of Client Routing.)"].filter(Boolean).join(" "),{onlyOnce:!0})}function Fs(){const e=++E.renderCounter;s(e>=1);let t=!1;return{isRenderOutdated:o=>e===1&&!t&&!o?!1:e!==E.renderCounter,setHydrationCanBeAborted:()=>{t=!0},isFirstRender:e===1}}function zs(){return E.renderCounter}function Ut(e){const t=e.from.configsStandard.keepScrollPosition;if(!t)return!1;let n=t.value;const r=t.definedAt;s(r);const o=is(r);return B(n)&&(n=n(e,{configDefinedAt:t.definedAt})),n===!0?[r,...o.map(i=>{const a=e.routeParams[i];return s(a),a})]:n}function Is(e,t){return e===t?!0:!Array.isArray(e)||!Array.isArray(t)?!1:e.length===t.length&&e.every((n,r)=>e[r]===t[r])}export{p as a,Zt as b,pe as c,ze as d,kr as e,Vs as f,Ls as g,xs as h,Xt as i,Hn as j,Hs as k,Us as l,Ws as m,Cs as n,Ds as o,sr as p,Bs as q,Dt as r,Rs as s,Tr as t,s as u,zs as v,js as w}; diff --git a/app/dist/client/assets/chunks/chunk-YnSR0nZE.js b/app/dist/client/assets/chunks/chunk-YnSR0nZE.js deleted file mode 100644 index 93384b0..0000000 --- a/app/dist/client/assets/chunks/chunk-YnSR0nZE.js +++ /dev/null @@ -1,75 +0,0 @@ -/* empty css */import{p as Fv,a as Lg,i as qv,b as Gv,f as Yv,r as Zv,c as Vv,d as Xv,t as Qv}from"./chunk-FoQi8sq6.js";/* empty css *//* empty css *//* empty css *//* empty css */function Kv(l,r){for(var i=0;io[c]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}function Tc(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Zs={exports:{}},wr={},Vs={exports:{}},Xs={};/** - * @license React - * scheduler.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var kg;function Pv(){return kg||(kg=1,function(l){function r(z,Q){var V=z.length;z.push(Q);e:for(;0>>1,O=z[ne];if(0>>1;nec(X,V))Kc(ue,X)?(z[ne]=ue,z[K]=V,ne=K):(z[ne]=X,z[I]=V,ne=I);else if(Kc(ue,V))z[ne]=ue,z[K]=V,ne=K;else break e}}return Q}function c(z,Q){var V=z.sortIndex-Q.sortIndex;return V!==0?V:z.id-Q.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var p=Date,m=p.now();l.unstable_now=function(){return p.now()-m}}var d=[],h=[],y=1,S=null,w=3,T=!1,v=!1,x=!1,A=!1,N=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function $(z){for(var Q=i(h);Q!==null;){if(Q.callback===null)o(h);else if(Q.startTime<=z)o(h),Q.sortIndex=Q.expirationTime,r(d,Q);else break;Q=i(h)}}function F(z){if(x=!1,$(z),!v)if(i(d)!==null)v=!0,J||(J=!0,oe());else{var Q=i(h);Q!==null&&ge(F,Q.startTime-z)}}var J=!1,W=-1,le=5,te=-1;function re(){return A?!0:!(l.unstable_now()-tez&&re());){var ne=S.callback;if(typeof ne=="function"){S.callback=null,w=S.priorityLevel;var O=ne(S.expirationTime<=z);if(z=l.unstable_now(),typeof O=="function"){S.callback=O,$(z),Q=!0;break t}S===i(d)&&o(d),$(z)}else o(d);S=i(d)}if(S!==null)Q=!0;else{var U=i(h);U!==null&&ge(F,U.startTime-z),Q=!1}}break e}finally{S=null,w=V,T=!1}Q=void 0}}finally{Q?oe():J=!1}}}var oe;if(typeof _=="function")oe=function(){_(P)};else if(typeof MessageChannel<"u"){var ye=new MessageChannel,ce=ye.port2;ye.port1.onmessage=P,oe=function(){ce.postMessage(null)}}else oe=function(){N(P,0)};function ge(z,Q){W=N(function(){z(l.unstable_now())},Q)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(z){z.callback=null},l.unstable_forceFrameRate=function(z){0>z||125ne?(z.sortIndex=V,r(h,z),i(d)===null&&z===i(h)&&(x?(M(W),W=-1):x=!0,ge(F,V-ne))):(z.sortIndex=O,r(d,z),v||T||(v=!0,J||(J=!0,oe()))),z},l.unstable_shouldYield=re,l.unstable_wrapCallback=function(z){var Q=w;return function(){var V=w;w=Q;try{return z.apply(this,arguments)}finally{w=V}}}}(Xs)),Xs}var jg;function Jv(){return jg||(jg=1,Vs.exports=Pv()),Vs.exports}var Qs={exports:{}},he={};/** - * @license React - * react.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var zg;function Iv(){if(zg)return he;zg=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),p=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),S=Symbol.iterator;function w(O){return O===null||typeof O!="object"?null:(O=S&&O[S]||O["@@iterator"],typeof O=="function"?O:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,x={};function A(O,U,I){this.props=O,this.context=U,this.refs=x,this.updater=I||T}A.prototype.isReactComponent={},A.prototype.setState=function(O,U){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,U,"setState")},A.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function N(){}N.prototype=A.prototype;function M(O,U,I){this.props=O,this.context=U,this.refs=x,this.updater=I||T}var _=M.prototype=new N;_.constructor=M,v(_,A.prototype),_.isPureReactComponent=!0;var $=Array.isArray,F={H:null,A:null,T:null,S:null,V:null},J=Object.prototype.hasOwnProperty;function W(O,U,I,X,K,ue){return I=ue.ref,{$$typeof:l,type:O,key:U,ref:I!==void 0?I:null,props:ue}}function le(O,U){return W(O.type,U,void 0,void 0,void 0,O.props)}function te(O){return typeof O=="object"&&O!==null&&O.$$typeof===l}function re(O){var U={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(I){return U[I]})}var P=/\/+/g;function oe(O,U){return typeof O=="object"&&O!==null&&O.key!=null?re(""+O.key):U.toString(36)}function ye(){}function ce(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(ye,ye):(O.status="pending",O.then(function(U){O.status==="pending"&&(O.status="fulfilled",O.value=U)},function(U){O.status==="pending"&&(O.status="rejected",O.reason=U)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function ge(O,U,I,X,K){var ue=typeof O;(ue==="undefined"||ue==="boolean")&&(O=null);var ie=!1;if(O===null)ie=!0;else switch(ue){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(O.$$typeof){case l:case r:ie=!0;break;case y:return ie=O._init,ge(ie(O._payload),U,I,X,K)}}if(ie)return K=K(O),ie=X===""?"."+oe(O,0):X,$(K)?(I="",ie!=null&&(I=ie.replace(P,"$&/")+"/"),ge(K,U,I,"",function(ke){return ke})):K!=null&&(te(K)&&(K=le(K,I+(K.key==null||O&&O.key===K.key?"":(""+K.key).replace(P,"$&/")+"/")+ie)),U.push(K)),1;ie=0;var Me=X===""?".":X+":";if($(O))for(var Te=0;Te"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),Ks.exports=Wv(),Ks.exports}/** - * @license React - * react-dom-client.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var $g;function eb(){if($g)return wr;$g=1;var l=Jv(),r=gu(),i=Lm();function o(e){var t="https://react.dev/errors/"+e;if(1O||(e.current=ne[O],ne[O]=null,O--)}function X(e,t){O++,ne[O]=e.current,e.current=t}var K=U(null),ue=U(null),ie=U(null),Me=U(null);function Te(e,t){switch(X(ie,t),X(ue,e),X(K,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ug(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ug(t),e=og(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}I(K),X(K,e)}function ke(){I(K),I(ue),I(ie)}function Yt(e){e.memoizedState!==null&&X(Me,e);var t=K.current,n=og(t,e.type);t!==n&&(X(ue,e),X(K,n))}function mt(e){ue.current===e&&(I(K),I(ue)),Me.current===e&&(I(Me),br._currentValue=V)}var Se=Object.prototype.hasOwnProperty,Be=l.unstable_scheduleCallback,nt=l.unstable_cancelCallback,Nu=l.unstable_shouldYield,E0=l.unstable_requestPaint,Pt=l.unstable_now,x0=l.unstable_getCurrentPriorityLevel,$c=l.unstable_ImmediatePriority,Fc=l.unstable_UserBlockingPriority,Yr=l.unstable_NormalPriority,S0=l.unstable_LowPriority,qc=l.unstable_IdlePriority,T0=l.log,w0=l.unstable_setDisableYieldValue,Ra=null,St=null;function wn(e){if(typeof T0=="function"&&w0(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(Ra,e)}catch{}}var Tt=Math.clz32?Math.clz32:R0,A0=Math.log,O0=Math.LN2;function R0(e){return e>>>=0,e===0?32:31-(A0(e)/O0|0)|0}var Zr=256,Vr=4194304;function nl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Xr(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var u=0,s=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~s,a!==0?u=nl(a):(g&=b,g!==0?u=nl(g):n||(n=b&~e,n!==0&&(u=nl(n))))):(b=a&~s,b!==0?u=nl(b):g!==0?u=nl(g):n||(n=a&~e,n!==0&&(u=nl(n)))),u===0?0:t!==0&&t!==u&&(t&s)===0&&(s=u&-u,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:u}function _a(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function _0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Gc(){var e=Zr;return Zr<<=1,(Zr&4194048)===0&&(Zr=256),e}function Yc(){var e=Vr;return Vr<<=1,(Vr&62914560)===0&&(Vr=4194304),e}function Lu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ma(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function M0(e,t,n,a,u,s){var g=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var b=e.entanglements,R=e.expirationTimes,j=e.hiddenUpdates;for(n=g&~n;0)":-1u||R[a]!==j[u]){var q=` -`+R[a].replace(" at new "," at ");return e.displayName&&q.includes("")&&(q=q.replace("",e.displayName)),q}while(1<=a&&0<=u);break}}}finally{Uu=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?kl(n):""}function j0(e){switch(e.tag){case 26:case 27:case 5:return kl(e.type);case 16:return kl("Lazy");case 13:return kl("Suspense");case 19:return kl("SuspenseList");case 0:case 15:return $u(e.type,!1);case 11:return $u(e.type.render,!1);case 1:return $u(e.type,!0);case 31:return kl("Activity");default:return""}}function ef(e){try{var t="";do t+=j0(e),e=e.return;while(e);return t}catch(n){return` -Error generating stack: `+n.message+` -`+n.stack}}function kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function z0(e){var t=tf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var u=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(g){a=""+g,s.call(this,g)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pr(e){e._valueTracker||(e._valueTracker=z0(e))}function nf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=tf(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Jr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var B0=/[\n"\\]/g;function jt(e){return e.replace(B0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fu(e,t,n,a,u,s,g,b){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+kt(t)):e.value!==""+kt(t)&&(e.value=""+kt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?qu(e,g,kt(t)):n!=null?qu(e,g,kt(n)):a!=null&&e.removeAttribute("value"),u==null&&s!=null&&(e.defaultChecked=!!s),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+kt(b):e.removeAttribute("name")}function lf(e,t,n,a,u,s,g,b){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null))return;n=n!=null?""+kt(n):"",t=t!=null?""+kt(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function qu(e,t,n){t==="number"&&Jr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function jl(e,t,n,a){if(e=e.options,t){t={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xu=!1;if(on)try{var La={};Object.defineProperty(La,"passive",{get:function(){Xu=!0}}),window.addEventListener("test",La,La),window.removeEventListener("test",La,La)}catch{Xu=!1}var On=null,Qu=null,Wr=null;function ff(){if(Wr)return Wr;var e,t=Qu,n=t.length,a,u="value"in On?On.value:On.textContent,s=u.length;for(e=0;e=za),yf=" ",vf=!1;function bf(e,t){switch(e){case"keyup":return fy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ef(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ul=!1;function py(e,t){switch(e){case"compositionend":return Ef(t);case"keypress":return t.which!==32?null:(vf=!0,yf);case"textInput":return e=t.data,e===yf&&vf?null:e;default:return null}}function gy(e,t){if(Ul)return e==="compositionend"||!Wu&&bf(e,t)?(e=ff(),Wr=Qu=On=null,Ul=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_f(n)}}function Df(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Df(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Jr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jr(e.document)}return t}function no(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Sy=on&&"documentMode"in document&&11>=document.documentMode,$l=null,lo=null,$a=null,ao=!1;function Nf(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ao||$l==null||$l!==Jr(a)||(a=$l,"selectionStart"in a&&no(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),$a&&Ua($a,a)||($a=a,a=Gi(lo,"onSelect"),0>=g,u-=g,cn=1<<32-Tt(t)+u|n<s?s:8;var g=z.T,b={};z.T=b,Yo(e,!1,t,n);try{var R=u(),j=z.S;if(j!==null&&j(b,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var q=Cy(R,a);tr(e,t,q,Mt(e))}else tr(e,t,a,Mt(e))}catch(Z){tr(e,t,{then:function(){},status:"rejected",reason:Z},Mt())}finally{Q.p=s,z.T=g}}function zy(){}function qo(e,t,n,a){if(e.tag!==5)throw Error(o(476));var u=Ld(e).queue;Nd(e,u,t,V,n===null?zy:function(){return kd(e),n(a)})}function Ld(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:V},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kd(e){var t=Ld(e).next.queue;tr(e,t,{},Mt())}function Go(){return ut(br)}function jd(){return Ze().memoizedState}function zd(){return Ze().memoizedState}function By(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Mt();e=Mn(n);var a=Dn(t,e,n);a!==null&&(Dt(a,t,n),Ka(a,t,n)),t={cache:bo()},e.payload=t;return}t=t.return}}function Hy(e,t,n){var a=Mt();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Ti(e)?Hd(t,n):(n=oo(e,t,n,a),n!==null&&(Dt(n,e,a),Ud(n,t,a)))}function Bd(e,t,n){var a=Mt();tr(e,t,n,a)}function tr(e,t,n,a){var u={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ti(e))Hd(t,u);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var g=t.lastRenderedState,b=s(g,n);if(u.hasEagerState=!0,u.eagerState=b,wt(b,g))return ii(e,t,u,0),je===null&&ri(),!1}catch{}finally{}if(n=oo(e,t,u,a),n!==null)return Dt(n,e,a),Ud(n,t,a),!0}return!1}function Yo(e,t,n,a){if(a={lane:2,revertLane:Ss(),action:a,hasEagerState:!1,eagerState:null,next:null},Ti(e)){if(t)throw Error(o(479))}else t=oo(e,n,a,2),t!==null&&Dt(t,e,2)}function Ti(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Hd(e,t){Pl=yi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ud(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Vc(e,n)}}var wi={readContext:ut,use:bi,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe},$d={readContext:ut,use:bi,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:Td,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Si(4194308,4,Rd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Si(4194308,4,e,t)},useInsertionEffect:function(e,t){Si(4,2,e,t)},useMemo:function(e,t){var n=vt();t=t===void 0?null:t;var a=e();if(ml){wn(!0);try{e()}finally{wn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=vt();if(n!==void 0){var u=n(t);if(ml){wn(!0);try{n(t)}finally{wn(!1)}}}else u=t;return a.memoizedState=a.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},a.queue=e,e=e.dispatch=Hy.bind(null,ve,e),[a.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ho(e);var t=e.queue,n=Bd.bind(null,ve,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:$o,useDeferredValue:function(e,t){var n=vt();return Fo(n,e,t)},useTransition:function(){var e=Ho(!1);return e=Nd.bind(null,ve,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ve,u=vt();if(Oe){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),je===null)throw Error(o(349));(we&124)!==0||ud(a,t,n)}u.memoizedState=n;var s={value:n,getSnapshot:t};return u.queue=s,Td(sd.bind(null,a,s,e),[e]),a.flags|=2048,Il(9,xi(),od.bind(null,a,s,n,t),null),n},useId:function(){var e=vt(),t=je.identifierPrefix;if(Oe){var n=fn,a=cn;n=(a&~(1<<32-Tt(a)-1)).toString(32)+n,t="«"+t+"R"+n,n=vi++,0pe?(et=se,se=null):et=se.sibling;var Ae=B(L,se,k[pe],G);if(Ae===null){se===null&&(se=et);break}e&&se&&Ae.alternate===null&&t(L,se),D=s(Ae,D,pe),be===null?ae=Ae:be.sibling=Ae,be=Ae,se=et}if(pe===k.length)return n(L,se),Oe&&sl(L,pe),ae;if(se===null){for(;pepe?(et=se,se=null):et=se.sibling;var Xn=B(L,se,Ae.value,G);if(Xn===null){se===null&&(se=et);break}e&&se&&Xn.alternate===null&&t(L,se),D=s(Xn,D,pe),be===null?ae=Xn:be.sibling=Xn,be=Xn,se=et}if(Ae.done)return n(L,se),Oe&&sl(L,pe),ae;if(se===null){for(;!Ae.done;pe++,Ae=k.next())Ae=Z(L,Ae.value,G),Ae!==null&&(D=s(Ae,D,pe),be===null?ae=Ae:be.sibling=Ae,be=Ae);return Oe&&sl(L,pe),ae}for(se=a(se);!Ae.done;pe++,Ae=k.next())Ae=H(se,L,pe,Ae.value,G),Ae!==null&&(e&&Ae.alternate!==null&&se.delete(Ae.key===null?pe:Ae.key),D=s(Ae,D,pe),be===null?ae=Ae:be.sibling=Ae,be=Ae);return e&&se.forEach(function($v){return t(L,$v)}),Oe&&sl(L,pe),ae}function Ne(L,D,k,G){if(typeof k=="object"&&k!==null&&k.type===v&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case w:e:{for(var ae=k.key;D!==null;){if(D.key===ae){if(ae=k.type,ae===v){if(D.tag===7){n(L,D.sibling),G=u(D,k.props.children),G.return=L,L=G;break e}}else if(D.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===le&&qd(ae)===D.type){n(L,D.sibling),G=u(D,k.props),lr(G,k),G.return=L,L=G;break e}n(L,D);break}else t(L,D);D=D.sibling}k.type===v?(G=ul(k.props.children,L.mode,G,k.key),G.return=L,L=G):(G=oi(k.type,k.key,k.props,null,L.mode,G),lr(G,k),G.return=L,L=G)}return g(L);case T:e:{for(ae=k.key;D!==null;){if(D.key===ae)if(D.tag===4&&D.stateNode.containerInfo===k.containerInfo&&D.stateNode.implementation===k.implementation){n(L,D.sibling),G=u(D,k.children||[]),G.return=L,L=G;break e}else{n(L,D);break}else t(L,D);D=D.sibling}G=fo(k,L.mode,G),G.return=L,L=G}return g(L);case le:return ae=k._init,k=ae(k._payload),Ne(L,D,k,G)}if(ge(k))return me(L,D,k,G);if(oe(k)){if(ae=oe(k),typeof ae!="function")throw Error(o(150));return k=ae.call(k),de(L,D,k,G)}if(typeof k.then=="function")return Ne(L,D,Ai(k),G);if(k.$$typeof===_)return Ne(L,D,di(L,k),G);Oi(L,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,D!==null&&D.tag===6?(n(L,D.sibling),G=u(D,k),G.return=L,L=G):(n(L,D),G=co(k,L.mode,G),G.return=L,L=G),g(L)):n(L,D)}return function(L,D,k,G){try{nr=0;var ae=Ne(L,D,k,G);return Wl=null,ae}catch(se){if(se===Xa||se===gi)throw se;var be=At(29,se,null,L.mode);return be.lanes=G,be.return=L,be}finally{}}}var ea=Gd(!0),Yd=Gd(!1),$t=U(null),It=null;function Nn(e){var t=e.alternate;X(Qe,Qe.current&1),X($t,e),It===null&&(t===null||Kl.current!==null||t.memoizedState!==null)&&(It=e)}function Zd(e){if(e.tag===22){if(X(Qe,Qe.current),X($t,e),It===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(It=e)}}else Ln()}function Ln(){X(Qe,Qe.current),X($t,$t.current)}function mn(e){I($t),It===e&&(It=null),I(Qe)}var Qe=U(0);function Ri(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||ks(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Zo(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vo={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Mt(),u=Mn(a);u.payload=t,n!=null&&(u.callback=n),t=Dn(e,u,a),t!==null&&(Dt(t,e,a),Ka(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Mt(),u=Mn(a);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Dn(e,u,a),t!==null&&(Dt(t,e,a),Ka(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Mt(),a=Mn(n);a.tag=2,t!=null&&(a.callback=t),t=Dn(e,a,n),t!==null&&(Dt(t,e,n),Ka(t,e,n))}};function Vd(e,t,n,a,u,s,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,g):t.prototype&&t.prototype.isPureReactComponent?!Ua(n,a)||!Ua(u,s):!0}function Xd(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Vo.enqueueReplaceState(t,t.state,null)}function hl(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=y({},n));for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n}var _i=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Qd(e){_i(e)}function Kd(e){console.error(e)}function Pd(e){_i(e)}function Mi(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Jd(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Xo(e,t,n){return n=Mn(n),n.tag=3,n.payload={element:null},n.callback=function(){Mi(e,t)},n}function Id(e){return e=Mn(e),e.tag=3,e}function Wd(e,t,n,a){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var s=a.value;e.payload=function(){return u(s)},e.callback=function(){Jd(t,n,a)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Jd(t,n,a),typeof u!="function"&&(Un===null?Un=new Set([this]):Un.add(this));var b=a.stack;this.componentDidCatch(a.value,{componentStack:b!==null?b:""})})}function $y(e,t,n,a,u){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Ya(t,n,u,!0),n=$t.current,n!==null){switch(n.tag){case 13:return It===null?ys():n.alternate===null&&Fe===0&&(Fe=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===So?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),bs(e,a,u)),!1;case 22:return n.flags|=65536,a===So?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),bs(e,a,u)),!1}throw Error(o(435,n.tag))}return bs(e,a,u),ys(),!1}if(Oe)return t=$t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==mo&&(e=Error(o(422),{cause:a}),Ga(zt(e,n)))):(a!==mo&&(t=Error(o(423),{cause:a}),Ga(zt(t,n))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,a=zt(a,n),u=Xo(e.stateNode,a,u),Ao(e,u),Fe!==4&&(Fe=2)),!1;var s=Error(o(520),{cause:a});if(s=zt(s,n),cr===null?cr=[s]:cr.push(s),Fe!==4&&(Fe=2),t===null)return!0;a=zt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=u&-u,n.lanes|=e,e=Xo(n.stateNode,a,e),Ao(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Un===null||!Un.has(s))))return n.flags|=65536,u&=-u,n.lanes|=u,u=Id(u),Wd(u,e,n,a),Ao(n,u),!1}n=n.return}while(n!==null);return!1}var ep=Error(o(461)),Ie=!1;function lt(e,t,n,a){t.child=e===null?Yd(t,null,n,a):ea(t,e.child,n,a)}function tp(e,t,n,a,u){n=n.render;var s=t.ref;if("ref"in a){var g={};for(var b in a)b!=="ref"&&(g[b]=a[b])}else g=a;return pl(t),a=Do(e,t,n,g,s,u),b=Co(),e!==null&&!Ie?(No(e,t,u),hn(e,t,u)):(Oe&&b&&po(t),t.flags|=1,lt(e,t,a,u),t.child)}function np(e,t,n,a,u){if(e===null){var s=n.type;return typeof s=="function"&&!so(s)&&s.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=s,lp(e,t,s,a,u)):(e=oi(n.type,null,a,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!ts(e,u)){var g=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ua,n(g,a)&&e.ref===t.ref)return hn(e,t,u)}return t.flags|=1,e=sn(s,a),e.ref=t.ref,e.return=t,t.child=e}function lp(e,t,n,a,u){if(e!==null){var s=e.memoizedProps;if(Ua(s,a)&&e.ref===t.ref)if(Ie=!1,t.pendingProps=a=s,ts(e,u))(e.flags&131072)!==0&&(Ie=!0);else return t.lanes=e.lanes,hn(e,t,u)}return Qo(e,t,n,a,u)}function ap(e,t,n){var a=t.pendingProps,u=a.children,s=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=s!==null?s.baseLanes|n:n,e!==null){for(u=t.child=e.child,s=0;u!==null;)s=s|u.lanes|u.childLanes,u=u.sibling;t.childLanes=s&~a}else t.childLanes=0,t.child=null;return rp(e,t,a,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&pi(t,s!==null?s.cachePool:null),s!==null?ld(t,s):Ro(),Zd(t);else return t.lanes=t.childLanes=536870912,rp(e,t,s!==null?s.baseLanes|n:n,n)}else s!==null?(pi(t,s.cachePool),ld(t,s),Ln(),t.memoizedState=null):(e!==null&&pi(t,null),Ro(),Ln());return lt(e,t,u,n),t.child}function rp(e,t,n,a){var u=xo();return u=u===null?null:{parent:Xe._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&pi(t,null),Ro(),Zd(t),e!==null&&Ya(e,t,a,!0),null}function Di(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Qo(e,t,n,a,u){return pl(t),n=Do(e,t,n,a,void 0,u),a=Co(),e!==null&&!Ie?(No(e,t,u),hn(e,t,u)):(Oe&&a&&po(t),t.flags|=1,lt(e,t,n,u),t.child)}function ip(e,t,n,a,u,s){return pl(t),t.updateQueue=null,n=rd(t,a,n,u),ad(e),a=Co(),e!==null&&!Ie?(No(e,t,s),hn(e,t,s)):(Oe&&a&&po(t),t.flags|=1,lt(e,t,n,s),t.child)}function up(e,t,n,a,u){if(pl(t),t.stateNode===null){var s=Yl,g=n.contextType;typeof g=="object"&&g!==null&&(s=ut(g)),s=new n(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Vo,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},To(t),g=n.contextType,s.context=typeof g=="object"&&g!==null?ut(g):Yl,s.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(Zo(t,n,g,a),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(g=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),g!==s.state&&Vo.enqueueReplaceState(s,s.state,null),Ja(t,a,s,u),Pa(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var b=t.memoizedProps,R=hl(n,b);s.props=R;var j=s.context,q=n.contextType;g=Yl,typeof q=="object"&&q!==null&&(g=ut(q));var Z=n.getDerivedStateFromProps;q=typeof Z=="function"||typeof s.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,q||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(b||j!==g)&&Xd(t,s,a,g),_n=!1;var B=t.memoizedState;s.state=B,Ja(t,a,s,u),Pa(),j=t.memoizedState,b||B!==j||_n?(typeof Z=="function"&&(Zo(t,n,Z,a),j=t.memoizedState),(R=_n||Vd(t,n,R,a,B,j,g))?(q||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=j),s.props=a,s.state=j,s.context=g,a=R):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,wo(e,t),g=t.memoizedProps,q=hl(n,g),s.props=q,Z=t.pendingProps,B=s.context,j=n.contextType,R=Yl,typeof j=="object"&&j!==null&&(R=ut(j)),b=n.getDerivedStateFromProps,(j=typeof b=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(g!==Z||B!==R)&&Xd(t,s,a,R),_n=!1,B=t.memoizedState,s.state=B,Ja(t,a,s,u),Pa();var H=t.memoizedState;g!==Z||B!==H||_n||e!==null&&e.dependencies!==null&&fi(e.dependencies)?(typeof b=="function"&&(Zo(t,n,b,a),H=t.memoizedState),(q=_n||Vd(t,n,q,a,B,H,R)||e!==null&&e.dependencies!==null&&fi(e.dependencies))?(j||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,H,R),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,H,R)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||g===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=H),s.props=a,s.state=H,s.context=R,a=q):(typeof s.componentDidUpdate!="function"||g===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,Di(e,t),a=(t.flags&128)!==0,s||a?(s=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&a?(t.child=ea(t,e.child,null,u),t.child=ea(t,null,n,u)):lt(e,t,n,u),t.memoizedState=s.state,e=t.child):e=hn(e,t,u),e}function op(e,t,n,a){return qa(),t.flags|=256,lt(e,t,n,a),t.child}var Ko={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Po(e){return{baseLanes:e,cachePool:Kf()}}function Jo(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Ft),e}function sp(e,t,n){var a=t.pendingProps,u=!1,s=(t.flags&128)!==0,g;if((g=s)||(g=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),g&&(u=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(u?Nn(t):Ln(),Oe){var b=$e,R;if(R=b){e:{for(R=b,b=Jt;R.nodeType!==8;){if(!b){b=null;break e}if(R=Xt(R.nextSibling),R===null){b=null;break e}}b=R}b!==null?(t.memoizedState={dehydrated:b,treeContext:ol!==null?{id:cn,overflow:fn}:null,retryLane:536870912,hydrationErrors:null},R=At(18,null,null,0),R.stateNode=b,R.return=t,t.child=R,dt=t,$e=null,R=!0):R=!1}R||fl(t)}if(b=t.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return ks(b)?t.lanes=32:t.lanes=536870912,null;mn(t)}return b=a.children,a=a.fallback,u?(Ln(),u=t.mode,b=Ci({mode:"hidden",children:b},u),a=ul(a,u,n,null),b.return=t,a.return=t,b.sibling=a,t.child=b,u=t.child,u.memoizedState=Po(n),u.childLanes=Jo(e,g,n),t.memoizedState=Ko,a):(Nn(t),Io(t,b))}if(R=e.memoizedState,R!==null&&(b=R.dehydrated,b!==null)){if(s)t.flags&256?(Nn(t),t.flags&=-257,t=Wo(e,t,n)):t.memoizedState!==null?(Ln(),t.child=e.child,t.flags|=128,t=null):(Ln(),u=a.fallback,b=t.mode,a=Ci({mode:"visible",children:a.children},b),u=ul(u,b,n,null),u.flags|=2,a.return=t,u.return=t,a.sibling=u,t.child=a,ea(t,e.child,null,n),a=t.child,a.memoizedState=Po(n),a.childLanes=Jo(e,g,n),t.memoizedState=Ko,t=u);else if(Nn(t),ks(b)){if(g=b.nextSibling&&b.nextSibling.dataset,g)var j=g.dgst;g=j,a=Error(o(419)),a.stack="",a.digest=g,Ga({value:a,source:null,stack:null}),t=Wo(e,t,n)}else if(Ie||Ya(e,t,n,!1),g=(n&e.childLanes)!==0,Ie||g){if(g=je,g!==null&&(a=n&-n,a=(a&42)!==0?1:ku(a),a=(a&(g.suspendedLanes|n))!==0?0:a,a!==0&&a!==R.retryLane))throw R.retryLane=a,Gl(e,a),Dt(g,e,a),ep;b.data==="$?"||ys(),t=Wo(e,t,n)}else b.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,$e=Xt(b.nextSibling),dt=t,Oe=!0,cl=null,Jt=!1,e!==null&&(Ht[Ut++]=cn,Ht[Ut++]=fn,Ht[Ut++]=ol,cn=e.id,fn=e.overflow,ol=t),t=Io(t,a.children),t.flags|=4096);return t}return u?(Ln(),u=a.fallback,b=t.mode,R=e.child,j=R.sibling,a=sn(R,{mode:"hidden",children:a.children}),a.subtreeFlags=R.subtreeFlags&65011712,j!==null?u=sn(j,u):(u=ul(u,b,n,null),u.flags|=2),u.return=t,a.return=t,a.sibling=u,t.child=a,a=u,u=t.child,b=e.child.memoizedState,b===null?b=Po(n):(R=b.cachePool,R!==null?(j=Xe._currentValue,R=R.parent!==j?{parent:j,pool:j}:R):R=Kf(),b={baseLanes:b.baseLanes|n,cachePool:R}),u.memoizedState=b,u.childLanes=Jo(e,g,n),t.memoizedState=Ko,a):(Nn(t),n=e.child,e=n.sibling,n=sn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=n,t.memoizedState=null,n)}function Io(e,t){return t=Ci({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ci(e,t){return e=At(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Wo(e,t,n){return ea(t,e.child,null,n),e=Io(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function cp(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),yo(e.return,t,n)}function es(e,t,n,a,u){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:u}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=a,s.tail=n,s.tailMode=u)}function fp(e,t,n){var a=t.pendingProps,u=a.revealOrder,s=a.tail;if(lt(e,t,a.children,n),a=Qe.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cp(e,n,t);else if(e.tag===19)cp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(X(Qe,a),u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&Ri(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),es(t,!1,u,n,s);break;case"backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Ri(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}es(t,!0,n,null,s);break;case"together":es(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Hn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ya(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=sn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ts(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&fi(e)))}function Fy(e,t,n){switch(t.tag){case 3:Te(t,t.stateNode.containerInfo),Rn(t,Xe,e.memoizedState.cache),qa();break;case 27:case 5:Yt(t);break;case 4:Te(t,t.stateNode.containerInfo);break;case 10:Rn(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Nn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?sp(e,t,n):(Nn(t),e=hn(e,t,n),e!==null?e.sibling:null);Nn(t);break;case 19:var u=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Ya(e,t,n,!1),a=(n&t.childLanes)!==0),u){if(a)return fp(e,t,n);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),X(Qe,Qe.current),a)break;return null;case 22:case 23:return t.lanes=0,ap(e,t,n);case 24:Rn(t,Xe,e.memoizedState.cache)}return hn(e,t,n)}function dp(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ie=!0;else{if(!ts(e,n)&&(t.flags&128)===0)return Ie=!1,Fy(e,t,n);Ie=(e.flags&131072)!==0}else Ie=!1,Oe&&(t.flags&1048576)!==0&&qf(t,ci,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,u=a._init;if(a=u(a._payload),t.type=a,typeof a=="function")so(a)?(e=hl(a,e),t.tag=1,t=up(null,t,a,e,n)):(t.tag=0,t=Qo(null,t,a,e,n));else{if(a!=null){if(u=a.$$typeof,u===$){t.tag=11,t=tp(null,t,a,e,n);break e}else if(u===W){t.tag=14,t=np(null,t,a,e,n);break e}}throw t=ce(a)||a,Error(o(306,t,""))}}return t;case 0:return Qo(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,u=hl(a,t.pendingProps),up(e,t,a,u,n);case 3:e:{if(Te(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var s=t.memoizedState;u=s.element,wo(e,t),Ja(t,a,null,n);var g=t.memoizedState;if(a=g.cache,Rn(t,Xe,a),a!==s.cache&&vo(t,[Xe],n,!0),Pa(),a=g.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=op(e,t,a,n);break e}else if(a!==u){u=zt(Error(o(424)),t),Ga(u),t=op(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for($e=Xt(e.firstChild),dt=t,Oe=!0,cl=null,Jt=!0,n=Yd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qa(),a===u){t=hn(e,t,n);break e}lt(e,t,a,n)}t=t.child}return t;case 26:return Di(e,t),e===null?(n=hg(t.type,null,t.pendingProps,null))?t.memoizedState=n:Oe||(n=t.type,e=t.pendingProps,a=Zi(ie.current).createElement(n),a[it]=t,a[ht]=e,rt(a,n,e),Je(a),t.stateNode=a):t.memoizedState=hg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Yt(t),e===null&&Oe&&(a=t.stateNode=pg(t.type,t.pendingProps,ie.current),dt=t,Jt=!0,u=$e,qn(t.type)?(js=u,$e=Xt(a.firstChild)):$e=u),lt(e,t,t.pendingProps.children,n),Di(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((u=a=$e)&&(a=mv(a,t.type,t.pendingProps,Jt),a!==null?(t.stateNode=a,dt=t,$e=Xt(a.firstChild),Jt=!1,u=!0):u=!1),u||fl(t)),Yt(t),u=t.type,s=t.pendingProps,g=e!==null?e.memoizedProps:null,a=s.children,Cs(u,s)?a=null:g!==null&&Cs(u,g)&&(t.flags|=32),t.memoizedState!==null&&(u=Do(e,t,Ly,null,null,n),br._currentValue=u),Di(e,t),lt(e,t,a,n),t.child;case 6:return e===null&&Oe&&((e=n=$e)&&(n=hv(n,t.pendingProps,Jt),n!==null?(t.stateNode=n,dt=t,$e=null,e=!0):e=!1),e||fl(t)),null;case 13:return sp(e,t,n);case 4:return Te(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ea(t,null,a,n):lt(e,t,a,n),t.child;case 11:return tp(e,t,t.type,t.pendingProps,n);case 7:return lt(e,t,t.pendingProps,n),t.child;case 8:return lt(e,t,t.pendingProps.children,n),t.child;case 12:return lt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Rn(t,t.type,a.value),lt(e,t,a.children,n),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,pl(t),u=ut(u),a=a(u),t.flags|=1,lt(e,t,a,n),t.child;case 14:return np(e,t,t.type,t.pendingProps,n);case 15:return lp(e,t,t.type,t.pendingProps,n);case 19:return fp(e,t,n);case 31:return a=t.pendingProps,n=t.mode,a={mode:a.mode,children:a.children},e===null?(n=Ci(a,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=sn(e.child,a),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return ap(e,t,n);case 24:return pl(t),a=ut(Xe),e===null?(u=xo(),u===null&&(u=je,s=bo(),u.pooledCache=s,s.refCount++,s!==null&&(u.pooledCacheLanes|=n),u=s),t.memoizedState={parent:a,cache:u},To(t),Rn(t,Xe,u)):((e.lanes&n)!==0&&(wo(e,t),Ja(t,null,null,n),Pa()),u=e.memoizedState,s=t.memoizedState,u.parent!==a?(u={parent:a,cache:a},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Rn(t,Xe,a)):(a=s.cache,Rn(t,Xe,a),a!==u.cache&&vo(t,[Xe],n,!0))),lt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function yn(e){e.flags|=4}function pp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!xg(t)){if(t=$t.current,t!==null&&((we&4194048)===we?It!==null:(we&62914560)!==we&&(we&536870912)===0||t!==It))throw Qa=So,Pf;e.flags|=8192}}function Ni(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Yc():536870912,e.lanes|=t,aa|=t)}function ar(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var u=e.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function qy(e,t,n){var a=t.pendingProps;switch(go(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),pn(Xe),ke(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Fa(t)?yn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Zf())),Ue(t),null;case 26:return n=t.memoizedState,e===null?(yn(t),n!==null?(Ue(t),pp(t,n)):(Ue(t),t.flags&=-16777217)):n?n!==e.memoizedState?(yn(t),Ue(t),pp(t,n)):(Ue(t),t.flags&=-16777217):(e.memoizedProps!==a&&yn(t),Ue(t),t.flags&=-16777217),null;case 27:mt(t),n=ie.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&yn(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ue(t),null}e=K.current,Fa(t)?Gf(t):(e=pg(u,a,n),t.stateNode=e,yn(t))}return Ue(t),null;case 5:if(mt(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&yn(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ue(t),null}if(e=K.current,Fa(t))Gf(t);else{switch(u=Zi(ie.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=u.createElement("div"),e.innerHTML="