diff --git a/.gitignore b/.gitignore index ddce69b..de35ccf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules/ dist/ .astro/ +.DS_Store diff --git a/DESIGN.md b/DESIGN.md index 0ff4c2f..cf6830c 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -43,17 +43,17 @@ Type scale — the ONLY font sizes in the codebase (no ad-hoc rem values): | `--fs-h1` | clamp(2.25–3.5rem) | Page/article headlines | | `--fs-display` | clamp(2.5–4.75rem) | Home hero only | -Always end `font-family` with a generic (`sans-serif`) — lint requirement. +Font tokens end with a generic (`sans-serif`); use them bare — +`var(--font-body), sans-serif` doubles the generic. -Font loading (decided after the navigation-blink incident): self-hosted latin -woff2, preloaded in `Base.astro`, `font-display: swap` + metric-matched Arial -fallbacks for BOTH families (`Inter Fallback`, `Space Grotesk Fallback` — -size-adjust/ascent/descent computed from the real font metrics, capsize -method). Never `optional`: its ~100ms window loses to per-navigation -revalidation (dev/preview serve `Cache-Control: no-cache`), which randomly -committed whole pageviews to Arial — the "fonts flash between navigations" -bug. With swap + matched metrics every page converges on brand fonts and the -swap is layout-neutral. +Font loading (prevents any navigation blink): BOTH families are inlined as +base64 `data:` URIs inside the render-blocking `global.css` — no separate +font fetch exists, so there is no swap window and no font flash between +navigations. Metric-matched Arial fallbacks (`Inter Fallback`, +`Space Grotesk Fallback` — size-adjust/ascent/descent computed from the real +font metrics, capsize method) cover only the pre-CSS paint. The standalone +`public/fonts/*.woff2` files are referenced ONLY by +`public/admin/preview.css` (CMS entry preview) — they look unused but aren't. ## Spacing scale (fluid; mobile ≈ min, desktop ≈ max) @@ -305,8 +305,8 @@ inventing a section order. The navy band is reserved for `/` and `/login`. ## Serving the demo -Phone/tunnel demos run the **production build**: `npm run demo` -(= `astro build && astro preview`, same port 4321 so the tunnel URL keeps +Phone/tunnel demos run the **production build**: +`npm run build && npm run preview` (same port 4321 so the tunnel URL keeps working). `astro dev` through the tunnel adds HMR + dev-toolbar module traffic and serves everything `no-cache` — every navigation re-negotiates assets over the tunnel, which reads as blinking/slow paints that do NOT diff --git a/README.md b/README.md new file mode 100644 index 0000000..ab25a5d --- /dev/null +++ b/README.md @@ -0,0 +1,59 @@ +# CTAO Science Portal — static site + git-based CMS + +Public portal for CTAO news, built as a fully static site. Editors get a +browser WYSIWYG editor (Sveltia CMS) that commits Markdown to a Gitea repo; +a build job turns commits into static HTML. No application or database runs +on the public path. + +Live demo: · +content repo (Gitea): + +## Stack + +- **Astro** (static output). Pages are `.astro` templates (plain HTML with a + JS frontmatter block). No React/Vue/Svelte components, no client-side + framework. +- **Plain CSS** — everything lives in `src/styles/global.css` as design + tokens (custom properties) + rules. No Tailwind, no preprocessor. + The design system (tokens, type scale, spacing, motion policy) is + documented in `DESIGN.md` — read it before touching styles. +- **Sveltia CMS** — a single prebuilt JS bundle, vendored in + `public/vendor/sveltia-cms.js` and loaded on `/admin/` + (`src/pages/admin/index.astro`), configured by `public/admin/config.yml`. + It runs entirely in the editor's browser and talks to the Gitea API + (OAuth PKCE). There is no CMS server. To update it: + `curl -sL https://unpkg.com/@sveltia/cms/dist/sveltia-cms.js -o public/vendor/sveltia-cms.js` +- Runtime dependencies: none beyond Astro. This is deliberate — keep it + that way. + +## Develop + +``` +npm ci +npm run dev # http://localhost:4321 +npm run build # static output in dist/ +``` + +## Layout + +| Path | What | +|---|---| +| `src/pages/` | Routes (`.astro` templates), incl. `news/`, `search`, RSS/sitemap | +| `src/layouts/Base.astro` | HTML shell: head, header/nav, footer | +| `src/content/news/*.md` | Articles — Markdown + frontmatter (schema in `src/content.config.ts`) | +| `src/styles/global.css` | All CSS: tokens + components + prose | +| `DESIGN.md` | Design-system rules the CSS implements | +| `public/admin/` | CMS config (`config.yml`) + editor preview styles (`preview.css`) | +| `public/uploads/` | Editor-uploaded media (committed as WebP by the CMS) | +| `deploy/` | Runbook + container/systemd units for the demo machine — see `deploy/README.md` | + +## Editing content + +Editors use `/admin/` (link in the footer) and sign in with a Gitea account. +Saving commits to `main`; the machine polls and republishes automatically +(seconds). Full history/rollback = git history in Gitea. Articles with +`draft: true` are excluded from the build. + +Note for styling work: `public/admin/preview.css` mirrors the `.prose` rules +from `global.css` so the editor preview matches the site 1:1 — keep them in +sync (both files carry a KEEP IN SYNC comment). diff --git a/astro.config.mjs b/astro.config.mjs index 50ebe98..479fa62 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,9 +3,9 @@ import { defineConfig } from 'astro/config'; // Static output (zero runtime) — the whole point of the git-based approach. export default defineConfig({ output: 'static', - // Placeholder domain until the real one exists — only used to build absolute - // URLs (canonical, og:*, RSS, sitemap). Swap once the portal has a home. - site: 'https://portal.ctao.org', + // Public origin — used to build absolute URLs (canonical, og:*, RSS, + // sitemap). Change when the portal moves to its production domain. + site: 'https://astro.isl-dev.grid.cyfronet.pl', // Built-in prefetch on every internal link (no per-link attributes needed). // Default 'hover' strategy: near-instant navigation without the bandwidth // cost of 'viewport' on a 24-card grid; auto-falls back to 'tap' on @@ -24,13 +24,6 @@ export default defineConfig({ // Vite blocks unknown Host headers by default; the demo is viewed through an // ephemeral cloudflared quick tunnel, so allow any *.trycloudflare.com host. allowedHosts: ['.trycloudflare.com'], - // Same-origin path for the Sveltia/Decap local backend proxy (default port - // moved to 8082 to avoid colliding with Metro on 8081). Proxying it here - // means the CMS admin talks to one origin, so editing also works through the - // cloudflared tunnel from the phone. - proxy: { - '/api/v1': { target: 'http://localhost:8082', changeOrigin: true }, - }, }, }, }); diff --git a/deploy/Containerfile.build b/deploy/Containerfile.build index 3314604..34955b0 100644 --- a/deploy/Containerfile.build +++ b/deploy/Containerfile.build @@ -1,6 +1,7 @@ # Build image for the CTAO portal demo: pinned Node + git. # Why: the host has node 24 but NO git (and we have no sudo); a 2-line image -# keeps the whole toolchain pinned and independent of host packages. +# keeps node pinned and independent of host packages (git comes from the +# alpine repo unpinned — alpine drops old package versions, pinning is moot). # Built ONCE at install, never pulled again at runtime: # podman build -t localhost/ctao-portal-build:1 -f Containerfile.build . FROM docker.io/library/node:24-alpine@sha256:a0b9bf06e4e6193cf7a0f58816cc935ff8c2a908f81e6f1a95432d679c54fbfd diff --git a/deploy/README.md b/deploy/README.md index 6891a54..39c267a 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -11,62 +11,68 @@ Uninstall restores the machine exactly (see bottom). No secrets in any file. ├── repo/ # clone of the portal repo (created by first build) ├── releases/ # / dirs + `current` symlink (what nginx serves) ├── state/ # last-built SHA +├── npm-cache/ # npm cache for the build container (created by build.sh) ├── bin/build.sh # copied from deploy/ (source of truth stays in the repo) └── config/nginx.conf ``` -| Port | What | Exposed how | +Host prerequisites: `podman`, `curl`, `jq` (build.sh checks and says which is +missing). Everything else runs inside containers. + +| Port | What | Exposed as | |---|---|---| -| 3000 | Gitea | ingress vhost (TODO: ask Hubert) | -| 8080 | portal (nginx, static) | ingress vhost (TODO: ask Hubert) | +| 3000 | Gitea | https://astro-git.isl-dev.grid.cyfronet.pl (ingress vhost) | +| 8080 | portal (nginx, static) | https://astro.isl-dev.grid.cyfronet.pl (ingress vhost) | ## Install (each step reviewed before running; [W] = writes to the machine) -1. **[W]** `mkdir -p ~/ctao-portal-demo/{gitea-data,gitea-config,releases,state,bin,config} ~/.config/containers/systemd ~/.config/systemd/user` -2. **[W]** Copy files from this dir (scp from the Mac): +1. **[W]** `loginctl enable-linger $USER` — without lingering every user unit + dies at logout and nothing starts after a reboot. Verify: + `loginctl show-user $USER -p Linger` → `Linger=yes`. +2. **[W]** `mkdir -p ~/ctao-portal-demo/{gitea-data,gitea-config,releases,state,bin,config} ~/.config/containers/systemd ~/.config/systemd/user` +3. **[W]** Copy files from this dir (scp): - `ctao-demo-gitea.container`, `ctao-demo-web.container` → `~/.config/containers/systemd/` - `ctao-portal-build.service`, `ctao-portal-build.timer` → `~/.config/systemd/user/` - `build.sh` → `~/ctao-portal-demo/bin/` (`chmod +x`) - `nginx.conf` → `~/ctao-portal-demo/config/` -3. **[W]** Pull + pin images (one-time, needs internet): - `podman pull docker.io/gitea/gitea:1.27-rootless docker.io/library/nginx:stable-alpine docker.io/library/node:24-alpine` + - `Containerfile.build` → anywhere (needed once, for the next step) +4. **[W]** Pull the images at the digests pinned in the unit files (one-time, + needs internet) and build the build image: + `podman pull docker.io/gitea/gitea@sha256:` + `podman pull docker.io/library/nginx@sha256:` `podman build -t localhost/ctao-portal-build:1 -f Containerfile.build .` - Then `podman images --digests` → paste the sha256 digests into both `.container` files. -4. **[W]** `systemctl --user daemon-reload && systemctl --user start ctao-demo-gitea` -5. **[W]** Create the Gitea admin — run YOURSELF in your own terminal (password - is prompted/printed there only; never goes through chat or shell history): + (Upgrading later = pick new digests deliberately, update the pins in the + `.container` files / `Containerfile.build`, re-pull, re-build.) +5. **[W]** `systemctl --user daemon-reload && systemctl --user start ctao-demo-gitea` +6. **[W]** Create the Gitea admin — run interactively in a terminal so the + password never lands in a file or shell history: `podman exec -it ctao-demo-gitea gitea admin user create --admin --username --email --random-password` -6. **[W]** In the Gitea UI: create org `ctao`, repo `portal` (public read). - Push from the Mac through an SSH port-forward: - `ssh -L 3300:localhost:3000 strapi-experimental.cyfronet` then - `git remote add machine http://localhost:3300/ctao/portal.git && git push machine main` -7. **[W]** `systemctl --user enable --now ctao-portal-build.timer` — first run +7. **[W]** In the Gitea UI: create org `ctao`, repo `portal` (public read). + Then, from your workstation, push the portal repo over the vhost with a + repo-scoped token: + `git push https://:@astro-git.isl-dev.grid.cyfronet.pl/ctao/portal.git main` +8. **[W]** `systemctl --user enable --now ctao-portal-build.timer` — first run clones + `npm ci` + builds (minutes); later runs are seconds. Wait until `journalctl --user -u ctao-portal-build -n 5` shows `published ` (starting nginx earlier just serves 404s until the first build lands). -8. **[W]** `systemctl --user start ctao-demo-web` -9. **[R]** Verify: `curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/` +9. **[W]** `systemctl --user start ctao-demo-web` +10. **[R]** Verify: `curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/` and `journalctl --user -u ctao-portal-build -n 20` (shows measured build times). -## After Hubert assigns the vhosts +## CMS sign-in (Sveltia ↔ Gitea OAuth) -1. Replace both `TODO(vhost)` values in `ctao-demo-gitea.container` - (ROOT_URL → gitea vhost, CORS `*` → portal origin, add - `GITEA__cors__SCHEME=https`); `systemctl --user daemon-reload && systemctl --user restart ctao-demo-gitea`. -2. In Gitea UI: Settings → Applications → new OAuth2 app for Sveltia - (redirect: `https:///admin/`), PKCE, no client secret. -3. Put the Gitea vhost URL + client id into `public/admin/config.yml` in the - portal repo, commit, push — the timer publishes it like any other change. +- Gitea OAuth2 app (PKCE, `confidential_client=false`, no secret) with + redirect `https://astro.isl-dev.grid.cyfronet.pl/admin/`; its client id is + the `app_id` in `public/admin/config.yml`. +- CORS is pinned in `ctao-demo-gitea.container`: `ALLOW_DOMAIN` takes the + FULL portal origin with scheme (a bare hostname silently disables CORS in + Gitea 1.27; there is no `SCHEME` key) and `HEADERS` must include + `Authorization` or authenticated API calls from the browser fail. +- OAuth requires a secure context: the vhosts must stay HTTPS. +- Changing origins later = edit the quadlet env + the OAuth app's redirect + URI + `config.yml`, then `systemctl --user daemon-reload && systemctl --user restart ctao-demo-gitea`. -## Ask Hubert (one message) - -1. Two ingress vhosts → `192.168.10.15:8080` (portal) and `:3000` (gitea) — - same mechanism as `strapi.isl-dev…:1337`. -2. Are vhosts public-internet or VPN-scopable? (Gitea preferably VPN-only.) -3. Does Cyfronet offer static-file hosting on the ingress itself? If yes, we - drop our nginx container entirely and rsync builds there instead. - -## Uninstall (leaves zero traces) +## Uninstall (leaves only podman's own storage metadata) ``` systemctl --user disable --now ctao-portal-build.timer @@ -74,14 +80,22 @@ systemctl --user stop ctao-demo-web ctao-demo-gitea rm ~/.config/containers/systemd/ctao-demo-*.container \ ~/.config/systemd/user/ctao-portal-build.{service,timer} systemctl --user daemon-reload -podman rmi localhost/ctao-portal-build:1 docker.io/gitea/gitea:1.27-rootless docker.io/library/nginx:stable-alpine +podman rmi localhost/ctao-portal-build:1 docker.io/gitea/gitea:1.27-rootless \ + docker.io/library/nginx:stable-alpine docker.io/library/node:24-alpine rm -rf ~/ctao-portal-demo +loginctl disable-linger $USER # only if nothing else of yours should survive logout ``` ## Notes -- Publish latency = poll (≤10 s) + build (measured 1 s on M-series; expect - 4–8 s on the 2 vCPU VM — every build's time lands in the journal). +- **Only site content auto-deploys.** Changes to `deploy/*` need a manual + re-copy: `build.sh` → `bin/`, `nginx.conf` → `config/` + + `systemctl --user restart ctao-demo-web`, unit files → + `~/.config/…` + `systemctl --user daemon-reload` (+ restart). This is + deliberate: the build pipeline must not execute host-side code straight + from the content repo. +- Publish latency = poll (≤10 s) + build (measured: astro build 5–7 s on the + 2 vCPU VM, whole build.sh 16–21 s; every build's time lands in the journal). - Internet needed only for: image pulls (install) and `npm ci` when the lockfile changes. Routine rebuilds are fully offline. - Memory caps (`MemoryHigh`) keep us polite next to Outline + Strapi; @@ -93,4 +107,5 @@ rm -rf ~/ctao-portal-demo Gitea on localhost:3000 but cannot reach host loopback services. (Rootless netavark bridges don't work here: no `ip_tables` kernel module, no sudo.) - Secrets inventory: Gitea admin password (typed interactively, lives only - in Gitea's DB) — that's the complete list. Build/poll/serve use none. + in Gitea's DB) and repo-scoped push tokens (managed in Gitea) — that's the + complete list. Build/poll/serve use none. diff --git a/deploy/build.sh b/deploy/build.sh index a66e21f..82fbcf0 100755 --- a/deploy/build.sh +++ b/deploy/build.sh @@ -21,6 +21,12 @@ REPO_INTERNAL="${REPO_INTERNAL:-http://localhost:3000/$REPO.git}" KEEP="${KEEP:-3}" # released builds to retain mkdir -p "$BASE/repo" "$BASE/releases" "$BASE/state" "$BASE/npm-cache" +# Host prerequisites (everything else runs inside containers). Fail loud — +# a missing tool is permanent, unlike a Gitea hiccup below. +for tool in curl jq podman; do + command -v "$tool" >/dev/null || { echo "missing host tool: $tool"; exit 1; } +done + # --- 1. Cheap poll: branch head via the local Gitea API (host curl + jq) --- sha=$(curl -fsS --max-time 5 "$GITEA_URL/api/v1/repos/$REPO/branches/$BRANCH" \ | jq -r '.commit.id' || true) @@ -30,7 +36,10 @@ if [[ ! "$sha" =~ ^[0-9a-f]{40}$ ]]; then echo "poll failed (gitea unreachable?) — skipping this tick" exit 0 fi -[[ "$sha" == "$(cat "$BASE/state/last-built" 2>/dev/null)" ]] && exit 0 +# Skip only if this sha is both recorded AND still present in releases/ +# (a deleted release dir must trigger a rebuild, not an eternal skip). +[[ "$sha" == "$(cat "$BASE/state/last-built" 2>/dev/null)" \ + && -d "$BASE/releases/$sha" ]] && exit 0 echo "building $sha" t0=$(date +%s) @@ -48,18 +57,21 @@ podman run --rm --network="$BUILD_NETNS" --memory=1g \ -v "$BASE/releases:/work/releases:z" \ -v "$BASE/npm-cache:/root/.npm:z" \ -w /work "$BUILD_IMAGE" sh -ec ' - git config --global safe.directory "*" + git config --global safe.directory /work/repo [ -d repo/.git ] || git clone --branch "$BRANCH" "$REPO_URL" repo git -C repo remote set-url origin "$REPO_URL" # self-heal if the URL changes git -C repo fetch --quiet origin "$BRANCH" - git -C repo checkout --quiet "$SHA" + # --force: the working copy is disposable; a stray tracked-file edit must + # not wedge every future build. + git -C repo checkout --quiet --force "$SHA" cd repo lock=$(sha256sum package-lock.json | cut -d" " -f1) if [ ! -d node_modules ] || [ "$lock" != "$(cat .deps-hash 2>/dev/null)" ]; then - # --ignore-scripts: (1) kills the malicious-postinstall vector from npm - # deps entirely, (2) avoids the esbuild ETXTBSY postinstall race in - # rootless containers. esbuild ships its binary as an optional dep, so - # nothing needed here actually requires lifecycle scripts. + # --ignore-scripts: (1) removes the install-time postinstall vector from + # npm deps (build-time repo code still runs `npm run build` below — the + # netns confinement is the control for that), (2) avoids the esbuild + # ETXTBSY postinstall race in rootless containers. esbuild ships its + # binary as an optional dep, so nothing here needs lifecycle scripts. npm ci --ignore-scripts --no-audit --no-fund echo "$lock" > .deps-hash fi @@ -76,11 +88,13 @@ ln -s "$sha" "$BASE/releases/.current.$$" mv -Tf "$BASE/releases/.current.$$" "$BASE/releases/current" echo "$sha" > "$BASE/state/last-built" -# --- 4. Prune old releases (never touches `current` — it is always newest). +# --- 4. Prune old releases. `current`'s target is excluded explicitly — +# mtime ordering makes it newest today, but nothing should depend on that. # `|| true`: an empty match must not fail the unit after a successful publish # (grep exits 1 under pipefail when there is nothing to prune). cd "$BASE/releases" -ls -1t | grep -vx current | tail -n +"$((KEEP + 1))" | while read -r old; do +cur=$(readlink current || true) +ls -1t | grep -vx current | grep -vx -- "$cur" | tail -n +"$((KEEP + 1))" | while read -r old; do rm -rf -- "$old" done || true diff --git a/deploy/ctao-demo-gitea.container b/deploy/ctao-demo-gitea.container index afaea50..055e70a 100644 --- a/deploy/ctao-demo-gitea.container +++ b/deploy/ctao-demo-gitea.container @@ -22,25 +22,26 @@ UserNS=keep-id:uid=1000,gid=1000 # so it sees Gitea on localhost:3000 while the HOST loopback stays invisible. Volume=%h/ctao-portal-demo/gitea-data:/var/lib/gitea:Z Volume=%h/ctao-portal-demo/gitea-config:/etc/gitea:Z +# Bound on all interfaces DELIBERATELY: the ingress that terminates the +# public vhost runs on a separate box and reaches this VM over the network — +# a 127.0.0.1 bind would cut it off. PublishPort=3000:3000 # Env-driven config — re-applied on every start, no hand-edited app.ini # (see .skills/gitea/SKILL.md). Secrets: none here; the admin account is # created interactively after first start (README). Environment=GITEA__server__HTTP_PORT=3000 -# Public URL via the Cyfronet ingress (vhost by Hubert, 2026-07-29). +# Public URL via the Cyfronet ingress vhost. Environment=GITEA__server__ROOT_URL=https://astro-git.isl-dev.grid.cyfronet.pl/ Environment=GITEA__server__DISABLE_SSH=true Environment=GITEA__database__DB_TYPE=sqlite3 Environment=GITEA__security__INSTALL_LOCK=true Environment=GITEA__service__DISABLE_REGISTRATION=true Environment=GITEA__mailer__ENABLED=false -# First `git push` auto-creates the repo (no UI step); public so the build -# pipeline can clone anonymously — content is the public site anyway. -Environment=GITEA__repository__ENABLE_PUSH_CREATE_USER=true +# Repos default to public so the build pipeline can clone anonymously — +# content is the public site anyway. The `ctao/portal` repo itself is +# created in the UI (README step 6). Environment=GITEA__repository__DEFAULT_PRIVATE=public -# Push-created repos have their OWN default (true = private) — learned the hard way: -Environment=GITEA__repository__DEFAULT_PUSH_CREATE_PRIVATE=false # Sveltia is served from the portal vhost and calls the Gitea API cross-origin # — CORS locked to exactly that origin. ALLOW_DOMAIN takes FULL origins with # scheme (verified in the 1.27 config cheat sheet; a SCHEME key no longer diff --git a/deploy/ctao-demo-web.container b/deploy/ctao-demo-web.container index dd1355d..7c3f487 100644 --- a/deploy/ctao-demo-web.container +++ b/deploy/ctao-demo-web.container @@ -15,11 +15,14 @@ Image=docker.io/library/nginx:stable-alpine@sha256:97d490c12ba55b4946b01546d1c3e # the config file is exclusive to nginx (:Z). Volume=%h/ctao-portal-demo/releases:/srv/releases:ro,z Volume=%h/ctao-portal-demo/config/nginx.conf:/etc/nginx/conf.d/default.conf:ro,Z +# All-interfaces bind is deliberate — the ingress box reaches us over the +# network (see the matching note in ctao-demo-gitea.container). PublishPort=8080:80 [Service] Restart=on-failure MemoryHigh=64M +MemoryMax=128M [Install] WantedBy=default.target diff --git a/deploy/nginx.conf b/deploy/nginx.conf index 9e30669..5852b5a 100644 --- a/deploy/nginx.conf +++ b/deploy/nginx.conf @@ -7,28 +7,43 @@ server { server_name _; root /srv/releases/current; charset utf-8; + server_tokens off; error_page 404 /404.html; # Astro emits 404.html at the site root # Directory redirects (/admin -> /admin/) must stay relative: an absolute # redirect is built from listen port 80 and loses the real port whenever the # site is reached through a tunnel or a proxy on a non-default port. absolute_redirect off; + # Security headers are REPEATED in every location on purpose: nginx + # `add_header` inheritance is all-or-nothing — any add_header in a location + # discards ALL server-level ones, so server-level headers would silently + # vanish. `always` keeps them on error responses (404) too. + # Fingerprinted build assets (/_astro/..*) — immutable location /_astro/ { - add_header Cache-Control "public, max-age=31536000, immutable"; + add_header Cache-Control "public, max-age=31536000, immutable" always; + add_header X-Content-Type-Options "nosniff" always; + add_header Referrer-Policy "strict-origin-when-cross-origin" always; + add_header X-Frame-Options "SAMEORIGIN" always; } # Editor-uploaded media (stable paths, may be re-uploaded) — short cache location /uploads/ { - add_header Cache-Control "public, max-age=3600"; + add_header Cache-Control "public, max-age=3600" always; + add_header X-Content-Type-Options "nosniff" always; + add_header Referrer-Policy "strict-origin-when-cross-origin" always; + add_header X-Frame-Options "SAMEORIGIN" always; } # Everything else: HTML pages, feeds, /admin (Sveltia is static files too) location / { try_files $uri $uri/ =404; - add_header Cache-Control "no-cache"; + add_header Cache-Control "no-cache" always; + add_header X-Content-Type-Options "nosniff" always; + add_header Referrer-Policy "strict-origin-when-cross-origin" always; + add_header X-Frame-Options "SAMEORIGIN" always; } gzip on; - gzip_types text/css application/javascript application/json image/svg+xml application/rss+xml text/xml; + gzip_types text/css application/javascript application/json image/svg+xml application/rss+xml text/xml application/xml; } diff --git a/package-lock.json b/package-lock.json index 4f9893c..c7ad4f6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,43 +1,40 @@ { - "name": "ctao-demo-git-cms", + "name": "ctao-portal", "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "ctao-demo-git-cms", + "name": "ctao-portal", "version": "0.1.0", "dependencies": { - "astro": "latest" - }, - "devDependencies": { - "decap-server": "latest" + "astro": "^7.2.10" } }, "node_modules/@astrojs/compiler-binding": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding/-/compiler-binding-0.3.1.tgz", - "integrity": "sha512-DaAUj29AIBU2XdJ8uwcab8lW5O2pk9pY8AXkcMw0sw77nVa3oeTYRcO+Dvbbpoexf6ThMc0FMWYCQ/wN1/T7oQ==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding/-/compiler-binding-0.4.0.tgz", + "integrity": "sha512-x2RjDUuWfwLNtc3mjAdSRInwqh/rqbLar9cm/5FOMbHvmYZB7yfKewzSclAxWjIZsypJDXv1lhaP2WG+P8TK3g==", "license": "MIT", "engines": { "node": "^20.19.0 || >=22.12.0" }, "optionalDependencies": { - "@astrojs/compiler-binding-darwin-arm64": "0.3.1", - "@astrojs/compiler-binding-darwin-x64": "0.3.1", - "@astrojs/compiler-binding-linux-arm64-gnu": "0.3.1", - "@astrojs/compiler-binding-linux-arm64-musl": "0.3.1", - "@astrojs/compiler-binding-linux-x64-gnu": "0.3.1", - "@astrojs/compiler-binding-linux-x64-musl": "0.3.1", - "@astrojs/compiler-binding-wasm32-wasi": "0.3.1", - "@astrojs/compiler-binding-win32-arm64-msvc": "0.3.1", - "@astrojs/compiler-binding-win32-x64-msvc": "0.3.1" + "@astrojs/compiler-binding-darwin-arm64": "0.4.0", + "@astrojs/compiler-binding-darwin-x64": "0.4.0", + "@astrojs/compiler-binding-linux-arm64-gnu": "0.4.0", + "@astrojs/compiler-binding-linux-arm64-musl": "0.4.0", + "@astrojs/compiler-binding-linux-x64-gnu": "0.4.0", + "@astrojs/compiler-binding-linux-x64-musl": "0.4.0", + "@astrojs/compiler-binding-wasm32-wasi": "0.4.0", + "@astrojs/compiler-binding-win32-arm64-msvc": "0.4.0", + "@astrojs/compiler-binding-win32-x64-msvc": "0.4.0" } }, "node_modules/@astrojs/compiler-binding-darwin-arm64": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-arm64/-/compiler-binding-darwin-arm64-0.3.1.tgz", - "integrity": "sha512-IEmEF2fUIlTHtpeE/isyEGVOB14cEyh/LZOFYt6wn3jNyVpdC8aR5OZ+RzFUR/f+8ZDM1LaMwZKvoA7eMyJeFw==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-arm64/-/compiler-binding-darwin-arm64-0.4.0.tgz", + "integrity": "sha512-ZVUwHundaQyFNjE6uoa0usaC0WOCitDCLS/4mdb4rOiJXwVUuKJBMxI5WMzXLWmamsXtK/Z//ifLXvV5Yeh4Hw==", "cpu": [ "arm64" ], @@ -51,9 +48,9 @@ } }, "node_modules/@astrojs/compiler-binding-darwin-x64": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-x64/-/compiler-binding-darwin-x64-0.3.1.tgz", - "integrity": "sha512-GF2kIxjpPDLsn94zbZNMsxEmkU828QqnmM7kiQJnaooS3jmI+I7kk6+oI6EpwOsK3femCMdcm+wmOsEqtGrmjQ==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-x64/-/compiler-binding-darwin-x64-0.4.0.tgz", + "integrity": "sha512-FI6G8AY8u6fR1SI/QRR5yGMwtvZwP34CDmZpZ5HwJGa50UM1VISTLhqkhV4a476pmgd25X1Aur2dqw6hUnrlKA==", "cpu": [ "x64" ], @@ -67,9 +64,9 @@ } }, "node_modules/@astrojs/compiler-binding-linux-arm64-gnu": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-gnu/-/compiler-binding-linux-arm64-gnu-0.3.1.tgz", - "integrity": "sha512-XJL3SDmOtVrqFhCirNcHwE91+IesJqlgNo23I4qW9QUYfwzm/TBZuH61fgqsb1ttgR1mMYz6ooPWs0JDhwMqpQ==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-gnu/-/compiler-binding-linux-arm64-gnu-0.4.0.tgz", + "integrity": "sha512-lB9gLFJK7m82EnjaU8nlRBEfcwGNeHidW3sSjODTUjMNaoewVuUz9fwwdY5M4jiSXIqWLH3yl6TX8FTDKA74Sw==", "cpu": [ "arm64" ], @@ -83,9 +80,9 @@ } }, "node_modules/@astrojs/compiler-binding-linux-arm64-musl": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-musl/-/compiler-binding-linux-arm64-musl-0.3.1.tgz", - "integrity": "sha512-xqE8BVbDoBueK/B47w30PtkVofUWJKGkwoMVE+EOMLf11rnoANxIAdA9FPqY+rng4oNI5ndHGsri1yPj2k8vZQ==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-musl/-/compiler-binding-linux-arm64-musl-0.4.0.tgz", + "integrity": "sha512-HPbvWqbxFxyaoQJhLxCaSjtYBx9KBo7JGVzEFZCmMl968a2PsSH0UfiODYgYPXofTOIsIH2aoCcrHXML0IA3ig==", "cpu": [ "arm64" ], @@ -99,9 +96,9 @@ } }, "node_modules/@astrojs/compiler-binding-linux-x64-gnu": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-gnu/-/compiler-binding-linux-x64-gnu-0.3.1.tgz", - "integrity": "sha512-1y0StU1qiCuDFH3rmbRJXcxdfHxFPrES1Rd+RLffosvUR7I2cH5SF5SFnBN9vXpzpkmyElZm3Yr47iJBPN7vVA==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-gnu/-/compiler-binding-linux-x64-gnu-0.4.0.tgz", + "integrity": "sha512-tQKolMxoJ/+0AmLWm1PmJ/i+z3i10ZU1bNuVjEDulCf48azEMtUNjTZgHJ5MPtpYRNc7dlETr8QujUfduzoC7Q==", "cpu": [ "x64" ], @@ -115,9 +112,9 @@ } }, "node_modules/@astrojs/compiler-binding-linux-x64-musl": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-musl/-/compiler-binding-linux-x64-musl-0.3.1.tgz", - "integrity": "sha512-16q0fYf7kpbmdObZEeZJEup8hQv/whgNwVjrSvT8umrKwLDSnNIWiQpm09lQQu6bweZB0XyIvHwlPitvJhC+hg==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-musl/-/compiler-binding-linux-x64-musl-0.4.0.tgz", + "integrity": "sha512-5v5YymudsxMHp3NBLCS8BUlu5CRqeLtWD9cKS/4nIhIEHCbpz9okmVV6I0HWqmBAPhWYcDa3vw/vltYPrOQCTA==", "cpu": [ "x64" ], @@ -131,25 +128,25 @@ } }, "node_modules/@astrojs/compiler-binding-wasm32-wasi": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-wasm32-wasi/-/compiler-binding-wasm32-wasi-0.3.1.tgz", - "integrity": "sha512-cB456shIwDv/PrVT+2QG7LFndpHkVge5HjqADKZgGaAc9JHVktCtjSrcdkRQ+3tbkPazNKaTLRjXLIiz2NIx9g==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-wasm32-wasi/-/compiler-binding-wasm32-wasi-0.4.0.tgz", + "integrity": "sha512-m/phuH3x3PREvv1OnkM44NoPh4MatUadix1fB1u5SvMLCyDTUZykDJbKnWf1cjnYmHdlB8HcjTjl6JrCqAIXcw==", "cpu": [ "wasm32" ], "license": "MIT", "optional": true, "dependencies": { - "@napi-rs/wasm-runtime": "^1.1.6" + "@napi-rs/wasm-runtime": "^1.2.2" }, "engines": { "node": ">=14.0.0" } }, "node_modules/@astrojs/compiler-binding-win32-arm64-msvc": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-arm64-msvc/-/compiler-binding-win32-arm64-msvc-0.3.1.tgz", - "integrity": "sha512-ur/9+If/yTE69mmeX5MqSZndL0HOyx67GeNZUy3N7wVdWpLz9UTJXwyWS4UR2PUQHitghjsM5xoX0Ge56WRVQQ==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-arm64-msvc/-/compiler-binding-win32-arm64-msvc-0.4.0.tgz", + "integrity": "sha512-B9zYf3okEY83kM8gydlpH2BHP00w4ifxPqlYlWrgTwuD6wnkrJDCwBlgy1q31cERjCJRXN1lrE2VmkLvFjv/6g==", "cpu": [ "arm64" ], @@ -163,9 +160,9 @@ } }, "node_modules/@astrojs/compiler-binding-win32-x64-msvc": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-x64-msvc/-/compiler-binding-win32-x64-msvc-0.3.1.tgz", - "integrity": "sha512-k0W+kDBzDkNZOqu4kElDvCOIbKw5Ut9S1WZ1Krj3KTgNuBERNKXsMMsRLLcbgfdMdbe7bTekQLshZrrvmYpmwA==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-x64-msvc/-/compiler-binding-win32-x64-msvc-0.4.0.tgz", + "integrity": "sha512-zB0Nrv0dGc0zZWPGDRmmETTPhDRqyZjAjk+gWMlVrJX5U89obpB3VUUE1ZiHxOCN5LQojeLK6O8L/dnoHolvNQ==", "cpu": [ "x64" ], @@ -179,26 +176,26 @@ } }, "node_modules/@astrojs/compiler-rs": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@astrojs/compiler-rs/-/compiler-rs-0.3.1.tgz", - "integrity": "sha512-aT7xkgsbNoS6nriY5qKpbihK43slFHO41iqgHCTdOvn1ifaQxLCc5yXy+6GzAtiafoaC1zA7OwVXCXMsvUZOkg==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-rs/-/compiler-rs-0.4.0.tgz", + "integrity": "sha512-koVikeon1kreEy+/JzLQRy3vzHHQVOjycs4degg4vFufKApZOwMZvSSAEztYNhmcQVfNVsVZZI4cEge3cexAbQ==", "license": "MIT", "dependencies": { - "@astrojs/compiler-binding": "0.3.1" + "@astrojs/compiler-binding": "0.4.0" }, "engines": { "node": ">=22.12.0" } }, "node_modules/@astrojs/internal-helpers": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/@astrojs/internal-helpers/-/internal-helpers-0.10.1.tgz", - "integrity": "sha512-5phcroT/vmOOrYuuAxtkbPixy5hePtlz9i8K4OeDv3dNK6/UQRuXPOSRTxIOBbUY5Sonw2UaxjbuVc43Mcir6Q==", + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@astrojs/internal-helpers/-/internal-helpers-0.11.0.tgz", + "integrity": "sha512-3rzxJ+xbo0+8YyqOzLziIN32wmsHdCjEVz2sGOpRxJ+Ben/KiLph4ItxBy1abEL+E8fkRzqjg0rfXmaHJGw9JA==", "license": "MIT", "dependencies": { "@types/hast": "^3.0.4", "@types/mdast": "^4.0.4", - "js-yaml": "^4.1.1", + "js-yaml": "^4.3.0", "picomatch": "^4.0.4", "retext-smartypants": "^6.2.0", "shiki": "^4.0.2", @@ -207,16 +204,15 @@ } }, "node_modules/@astrojs/markdown-satteri": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/@astrojs/markdown-satteri/-/markdown-satteri-0.3.4.tgz", - "integrity": "sha512-6Lvt/bQZEBW+zzdhPblvfZEy5PGEYJaUsUqaCgwHeRPxZJL1gc9I+DRLKWJjjYTWDzVUTzXlMq4WwSK+X34CVw==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@astrojs/markdown-satteri/-/markdown-satteri-0.4.0.tgz", + "integrity": "sha512-wykOOW9KsUVcZweOpY/CeXpdKcCKZy6fQbdcteWFuI75+sQCiqxYM7VKsGa5b+aGl3cYQscFY37rsbbyal5MRw==", "license": "MIT", "dependencies": { - "@astrojs/internal-helpers": "0.10.1", + "@astrojs/internal-helpers": "0.11.0", "@astrojs/prism": "4.0.2", "github-slugger": "^2.0.0", - "hast-util-from-html": "^2.0.3", - "satteri": "^0.9.1" + "satteri": "^0.10.3" } }, "node_modules/@astrojs/prism": { @@ -293,9 +289,9 @@ } }, "node_modules/@bruits/satteri-darwin-arm64": { - "version": "0.9.5", - "resolved": "https://registry.npmjs.org/@bruits/satteri-darwin-arm64/-/satteri-darwin-arm64-0.9.5.tgz", - "integrity": "sha512-iw4nZgx9v30lWo/MTngQqi1pI78KI0DnkSm+lVJGYdmPLgAyDNJigVhpG42/Iq55A6c1Ll8q66ljyyRiQUxwow==", + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@bruits/satteri-darwin-arm64/-/satteri-darwin-arm64-0.10.5.tgz", + "integrity": "sha512-27KTVl4TJkVahMy/ohyA7qd4938G5UNneFUz/PsScYfpIhj0IVAS23mpcJXdPF44sa6nva198lmV/cKIb2YPyA==", "cpu": [ "arm64" ], @@ -306,9 +302,9 @@ ] }, "node_modules/@bruits/satteri-darwin-x64": { - "version": "0.9.5", - "resolved": "https://registry.npmjs.org/@bruits/satteri-darwin-x64/-/satteri-darwin-x64-0.9.5.tgz", - "integrity": "sha512-6T26Z5Kf3cFW2PSlk9p7zT7yVxvuBSiJvYyz9u8KjYwMTqZyIDOj2wDyNpxKV4+6yUVG7rddq2QwvG/8LJA2+Q==", + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@bruits/satteri-darwin-x64/-/satteri-darwin-x64-0.10.5.tgz", + "integrity": "sha512-IjnLe3nKspq6qaeqGgjT7MT8VrTV74yWRlaag7ZdNsI8TDAYZ0iPxMCo+9KQZHUk5EyVB+reBI/PFWL5KuFw9Q==", "cpu": [ "x64" ], @@ -319,9 +315,9 @@ ] }, "node_modules/@bruits/satteri-linux-arm64-gnu": { - "version": "0.9.5", - "resolved": "https://registry.npmjs.org/@bruits/satteri-linux-arm64-gnu/-/satteri-linux-arm64-gnu-0.9.5.tgz", - "integrity": "sha512-u51id17uJwNEMK9nBlICsq6U31c+XVqQueVBkwRIzZG+gMpS8TOJctt5h5Wz33Z8xnMdTd+adtACVz0yHgGuOA==", + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@bruits/satteri-linux-arm64-gnu/-/satteri-linux-arm64-gnu-0.10.5.tgz", + "integrity": "sha512-glkYXZCJywjP13v67eAyAMSJdF+ncvEbYvgi/wOtffL9tQ27lr/zsyzUfgs+ovjJ9d8JNQKiXeiArJcX8PJL9w==", "cpu": [ "arm64" ], @@ -332,9 +328,9 @@ ] }, "node_modules/@bruits/satteri-linux-arm64-musl": { - "version": "0.9.5", - "resolved": "https://registry.npmjs.org/@bruits/satteri-linux-arm64-musl/-/satteri-linux-arm64-musl-0.9.5.tgz", - "integrity": "sha512-v39HxiwGC5Rqm01HksP6+5Y+xKLPlsuVFgIgpEAo+SiQ22c+mJVhS3u7Z6ePAKdhL5NJoK1xq70kLz3L13AhpQ==", + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@bruits/satteri-linux-arm64-musl/-/satteri-linux-arm64-musl-0.10.5.tgz", + "integrity": "sha512-yWdgG1g17Nh2QyGVlFUxGRa3FEFwiMcpZEyMNWkbM3deC94cmVc+/i9OuyFpdKuWo3GkgoCtYVOoxk1uCnCZIA==", "cpu": [ "arm64" ], @@ -345,9 +341,9 @@ ] }, "node_modules/@bruits/satteri-linux-x64-gnu": { - "version": "0.9.5", - "resolved": "https://registry.npmjs.org/@bruits/satteri-linux-x64-gnu/-/satteri-linux-x64-gnu-0.9.5.tgz", - "integrity": "sha512-F3uO8uFp3pAP5ZGXttwvh57GS7s0lL953tnNdyI2gRyP4kOOkp6pyGojNJzCjkDvWI2Cvb9iNrKok3aqQPauAw==", + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@bruits/satteri-linux-x64-gnu/-/satteri-linux-x64-gnu-0.10.5.tgz", + "integrity": "sha512-FVaLoPT1fBgGl0J+AYebyyXJYBachGl8Oyyrf1lye4RTqCB4S0Gwkj1uM9RJyThUOvx5VUmAT1CnNh1SFHA+kw==", "cpu": [ "x64" ], @@ -358,9 +354,9 @@ ] }, "node_modules/@bruits/satteri-linux-x64-musl": { - "version": "0.9.5", - "resolved": "https://registry.npmjs.org/@bruits/satteri-linux-x64-musl/-/satteri-linux-x64-musl-0.9.5.tgz", - "integrity": "sha512-bicEqglLlz++mWyADaZoP0JY20s4vDfLjaPYgQqC+NI4zZLTOOg1T4GB8aqtc822Pqji8SQBmSrTb7CrP8i08Q==", + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@bruits/satteri-linux-x64-musl/-/satteri-linux-x64-musl-0.10.5.tgz", + "integrity": "sha512-EHpVAx2bqW3GINHTKkljtxVfQmVDGWIuwOYOP5YghTj+0PkBa2o8oKPRtQ9Kbsr1Fye8jtUcDjhwj2jMNugZKg==", "cpu": [ "x64" ], @@ -371,9 +367,9 @@ ] }, "node_modules/@bruits/satteri-wasm32-wasi": { - "version": "0.9.5", - "resolved": "https://registry.npmjs.org/@bruits/satteri-wasm32-wasi/-/satteri-wasm32-wasi-0.9.5.tgz", - "integrity": "sha512-zauAuMwfPnKPUkd4AFixRFpXdgKwP2mKgxrIIo2gJzW0/ZneF9dbHnLkojSpaBnCCp7VUL1hIi5WWZvB1CqmAQ==", + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@bruits/satteri-wasm32-wasi/-/satteri-wasm32-wasi-0.10.5.tgz", + "integrity": "sha512-ypz8c/Zmipxp4IoeDa228Gstv6TLzVmNs3yC6wKCoNSOjx1iwpgzu87Y3hTkXFdwChVGU85qeUDuOIarGUZQLw==", "cpu": [ "wasm32" ], @@ -382,7 +378,7 @@ "dependencies": { "@emnapi/core": "1.11.1", "@emnapi/runtime": "1.11.1", - "@napi-rs/wasm-runtime": "^1.1.6" + "@napi-rs/wasm-runtime": "^1.2.3" }, "engines": { "node": ">=14.0.0" @@ -410,9 +406,9 @@ } }, "node_modules/@bruits/satteri-win32-arm64-msvc": { - "version": "0.9.5", - "resolved": "https://registry.npmjs.org/@bruits/satteri-win32-arm64-msvc/-/satteri-win32-arm64-msvc-0.9.5.tgz", - "integrity": "sha512-SrfE7NEsgZjBvU3c+RR6oQRu0ToXY5uVJEbieXEF0YTctIV2zAVlbaMjWLts074QCgh3a+XHWkR/lWh2VH2LUg==", + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@bruits/satteri-win32-arm64-msvc/-/satteri-win32-arm64-msvc-0.10.5.tgz", + "integrity": "sha512-siTV88nb0LRqNpkL2gXboqCwVdq95sLtzMHS1/3eONV2gLbB3NAK46wmSMvCO/yquBvI2lvaFIfd8P12ecsxBw==", "cpu": [ "arm64" ], @@ -423,9 +419,9 @@ ] }, "node_modules/@bruits/satteri-win32-x64-msvc": { - "version": "0.9.5", - "resolved": "https://registry.npmjs.org/@bruits/satteri-win32-x64-msvc/-/satteri-win32-x64-msvc-0.9.5.tgz", - "integrity": "sha512-5Kw9ZAtTGS8WHizyn+CJhjjfIQrw+7jcZodpmpXJjefnO15M8UexIi6JR2E5thyvsmHyhL6ZDDMUNR4bKJPd4g==", + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@bruits/satteri-win32-x64-msvc/-/satteri-win32-x64-msvc-0.10.5.tgz", + "integrity": "sha512-C3IfPvfvMXmlzBxaMPKFS1XiuV9pu2mC7YqkPk7PSvTgPZ8gbdASIpHpztDLvTTQjqZ0z1Ol8tK5X+V6XXC0wQ==", "cpu": [ "x64" ], @@ -475,28 +471,6 @@ "node": ">= 20.12.0" } }, - "node_modules/@colors/colors": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.6.0.tgz", - "integrity": "sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.1.90" - } - }, - "node_modules/@dabh/diagnostics": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.8.tgz", - "integrity": "sha512-R4MSXTVnuMzGD7bzHdW2ZhhdPC/igELENcq5IjEverBvq5hn1SXCWcsi6eSsdWP0/Ur+SItRRjAktmdoX/8R/Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@so-ric/colorspace": "^1.1.6", - "enabled": "2.0.x", - "kuler": "^2.0.0" - } - }, "node_modules/@emnapi/core": { "version": "1.11.2", "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.2.tgz", @@ -510,9 +484,9 @@ } }, "node_modules/@emnapi/runtime": { - "version": "1.11.2", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.2.tgz", - "integrity": "sha512-kyOl3X0DuTiT1h2ft8r2fYO8JYtU9a9Xis/zBSiGArNaagCOWx90N1k2wxp18czFDH+OgcWGb5ZP/XMt3dcyPA==", + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz", + "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==", "license": "MIT", "optional": true, "dependencies": { @@ -945,64 +919,6 @@ "node": ">=18" } }, - "node_modules/@hapi/address": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@hapi/address/-/address-4.1.0.tgz", - "integrity": "sha512-SkszZf13HVgGmChdHo/PxchnSaCJ6cetVqLzyciudzZRT0jcOouIF/Q93mgjw8cce+D+4F4C1Z/WrfFN+O3VHQ==", - "deprecated": "Moved to 'npm install @sideway/address'", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@hapi/hoek": "^9.0.0" - } - }, - "node_modules/@hapi/formula": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@hapi/formula/-/formula-2.0.0.tgz", - "integrity": "sha512-V87P8fv7PI0LH7LiVi8Lkf3x+KCO7pQozXRssAHNXXL9L1K+uyu4XypLXwxqVDKgyQai6qj3/KteNlrqDx4W5A==", - "deprecated": "Moved to 'npm install @sideway/formula'", - "dev": true, - "license": "BSD-3-Clause" - }, - "node_modules/@hapi/hoek": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", - "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==", - "dev": true, - "license": "BSD-3-Clause" - }, - "node_modules/@hapi/joi": { - "version": "17.1.1", - "resolved": "https://registry.npmjs.org/@hapi/joi/-/joi-17.1.1.tgz", - "integrity": "sha512-p4DKeZAoeZW4g3u7ZeRo+vCDuSDgSvtsB/NpfjXEHTUjSeINAi/RrVOWiVQ1isaoLzMvFEhe8n5065mQq1AdQg==", - "deprecated": "Switch to 'npm install joi'", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@hapi/address": "^4.0.1", - "@hapi/formula": "^2.0.0", - "@hapi/hoek": "^9.0.0", - "@hapi/pinpoint": "^2.0.0", - "@hapi/topo": "^5.0.0" - } - }, - "node_modules/@hapi/pinpoint": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@hapi/pinpoint/-/pinpoint-2.0.1.tgz", - "integrity": "sha512-EKQmr16tM8s16vTT3cA5L0kZZcTMU5DUOZTuvpnY738m+jyP3JIUj+Mm1xc1rsLkGBQ/gVnfKYPwOmPg1tUR4Q==", - "dev": true, - "license": "BSD-3-Clause" - }, - "node_modules/@hapi/topo": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz", - "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "@hapi/hoek": "^9.0.0" - } - }, "node_modules/@img/colour": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz", @@ -1014,9 +930,9 @@ } }, "node_modules/@img/sharp-darwin-arm64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.3.tgz", - "integrity": "sha512-RMnFX7YQsMoh7lWfcM4NEHHymBX/rLuKNPVM84XE9ONPcaSCDgE7CHIHpSgPcO2xcRthgBy1HfNO319mwhIAkg==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.4.tgz", + "integrity": "sha512-Uhfl4V4lhP2nbUVF9+hyH1+luj86f1gUFeo8ALYxFoULoU+G87D43BfeMP8XHsk9boxAnCY/bf2EHwhA7MuGsA==", "cpu": [ "arm64" ], @@ -1032,13 +948,13 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-darwin-arm64": "1.3.2" + "@img/sharp-libvips-darwin-arm64": "1.3.3" } }, "node_modules/@img/sharp-darwin-x64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.3.tgz", - "integrity": "sha512-Xo+5uFBtLN0BKqieTxiFzFPQAUlBbbH5iBKyRX/z1JrbnYsHTfKJnUfL8+p2TPXr1pXqao4eeL4Rl144uDpK9w==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.4.tgz", + "integrity": "sha512-hWniXY3bG5qKpkKrAwPe4y+VTPmf086YQAnkxWh7uA1YrlRouWGa0M0Mxj3ZjnXFkv7/TD1bTy9lGUK26vRvWw==", "cpu": [ "x64" ], @@ -1054,20 +970,20 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-darwin-x64": "1.3.2" + "@img/sharp-libvips-darwin-x64": "1.3.3" } }, "node_modules/@img/sharp-freebsd-wasm32": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.3.tgz", - "integrity": "sha512-lUxcqWIj2wMQ9BrwNjngcr1gWUr5xgaGThBRqPPalIC2n67Cqj1uPh8NnA/ZhAg8hUbKl+kVHKwgUIwe6ZYPrg==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.4.tgz", + "integrity": "sha512-lIsKw/BU+kjB4eZjxrYrZmwOJYi3Ajrv66iAlBmUPyKc3HpnloevB1g3wxGD9P/5BbQ1brBGl65VRRrCvQDEqA==", "license": "Apache-2.0", "optional": true, "os": [ "freebsd" ], "dependencies": { - "@img/sharp-wasm32": "0.35.3" + "@img/sharp-wasm32": "0.35.4" }, "engines": { "node": ">=20.9.0" @@ -1077,9 +993,9 @@ } }, "node_modules/@img/sharp-libvips-darwin-arm64": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.2.tgz", - "integrity": "sha512-9J6ypZFpQBj4YnePGoq/S38w6nz+vqg5WZLrLGY4YuSemdMq47GMLBPO42MzwdGwpg/agZ7xzZcFHa48xlywfg==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.3.tgz", + "integrity": "sha512-suTBPTDGrI9WodccaDdwZItTSaBYASlBk1NSfElSHrUfzu3szG6lvIF58+WiFvnfzuK8ZBFS5zE00PxqxnRiPg==", "cpu": [ "arm64" ], @@ -1093,9 +1009,9 @@ } }, "node_modules/@img/sharp-libvips-darwin-x64": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.2.tgz", - "integrity": "sha512-m2pW1n6cns9VaubNwsZ+c3CRYjxNQWgJ5gPlnL1nbBcpkBvFm6SCFN5o0psFHI8w9n11NKhFkeEDns98tiqbEw==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.3.tgz", + "integrity": "sha512-FVJZ5mITMobmXIz/hPDTw0EintTW5H3WfrxwLqEqjiIihlu+hVRyGrFQ60xl0Lxn7Bt3zdpevPaQi0HEzqz9fw==", "cpu": [ "x64" ], @@ -1109,9 +1025,9 @@ } }, "node_modules/@img/sharp-libvips-linux-arm": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.2.tgz", - "integrity": "sha512-1eMLzy92I4J6rmi4mAT8yC3HxOtniyGELlzGbNMLLeqe052ahFQ0h6LFq+lh5DsDIdYViIDst08abvSbcEdLXQ==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.3.tgz", + "integrity": "sha512-3rbU4vqXXc3hY/OiXdl52xZvT0F1yEngWfvqudtPJg/KkyiaQw2DRsFrNzpmLvfavbwOq3qXn36GP8obHRULQA==", "cpu": [ "arm" ], @@ -1125,9 +1041,9 @@ } }, "node_modules/@img/sharp-libvips-linux-arm64": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.2.tgz", - "integrity": "sha512-dqVSFynCox4C/J8kT16V7SIFAns0IjgLwkvYT7p8LQVmJ5OS5b6tI9IGflxTeuBS//zXeFIUbwt5dwxyZ17cnA==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.3.tgz", + "integrity": "sha512-0DaL0A6Xu6sQSQFwe4iVCrKWU2cCTItnRsYsCdxAMm9NF6twAA9BKnoqy4hqz4+azQ0JHuA26qiUKsf1XJ/v5A==", "cpu": [ "arm64" ], @@ -1141,9 +1057,9 @@ } }, "node_modules/@img/sharp-libvips-linux-ppc64": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.2.tgz", - "integrity": "sha512-3z0NHDxD6n5I9gc05U1eW1AyRm+Gznzq3naMrthPNqE6oYykcogW0l/jfpJdjYnuNl8R7yI9pNbE1XiUeyq0Aw==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.3.tgz", + "integrity": "sha512-cdn1OvUBwsXhbC0zSzJnNzf5MZ/mTrobawDvNXBTxe8VtqKAm0sRuEY2Evzovb/w9JMk4TvRxqt1mekSuJz64w==", "cpu": [ "ppc64" ], @@ -1157,9 +1073,9 @@ } }, "node_modules/@img/sharp-libvips-linux-riscv64": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.2.tgz", - "integrity": "sha512-bsb4rI+NldGOsXuej2r8OdSS8+zXDVaCWxyWrcv6kneTOlgAHtZABRzBBCwdsPiD90J4myNJuHpg6kA20ImW/w==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.3.tgz", + "integrity": "sha512-HjPVx7yKz+0lqdhDlTw1tt90wamBoxhiXpvl1XZpJLiHH4RCJ5yDTqH+VlYPv2fwFs89JFw4c1IexYOcQUi4IQ==", "cpu": [ "riscv64" ], @@ -1173,9 +1089,9 @@ } }, "node_modules/@img/sharp-libvips-linux-s390x": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.2.tgz", - "integrity": "sha512-/ABshyj8gCpyIrNXnHn4LorDJ0HHm1VhXPBlxZ8zAtfVPAaSafXPGn+sUSIRiwaSBy0mmFjSjiXI5mkcwdChKQ==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.3.tgz", + "integrity": "sha512-neWLh+3yCNThxnfy3c4BbVBeGgt9aftno+XbT56iK28RgeDs3UOFWviLWlUu0bArYVYJaFDK+RRohbicUNCm8Q==", "cpu": [ "s390x" ], @@ -1189,9 +1105,9 @@ } }, "node_modules/@img/sharp-libvips-linux-x64": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.2.tgz", - "integrity": "sha512-ITPEtgffGJ0S6G9dRyw/366tJQqFRcHWPHhC+Stpg3Z8AEMrDrTr2lhdz4f/Y/HMbRh//7Z5mBzEpVdi62Oc3w==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.3.tgz", + "integrity": "sha512-4vKmvAst9nrowcqquKFAyZJUDolUaIp8uRiN0mWFguJ1IplC9/pitXtlnnlU4aa/eJw3J7i67V+pwUL+wZGdsA==", "cpu": [ "x64" ], @@ -1205,9 +1121,9 @@ } }, "node_modules/@img/sharp-libvips-linuxmusl-arm64": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.2.tgz", - "integrity": "sha512-zE9EdiUzUmg5mDT5a1rk5fYJ6GWPloTwWBYDS14naqHsL+EaMpDj1AWnpLgh3u0YCORv2Tt50wrcrpYqkP97Kw==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.3.tgz", + "integrity": "sha512-Y9kQaLMuNoB0bPYOOdcZMaseNrFpPodIWWMrx+CZyydf2xn68j9WYc6sWWRrDwNkzCQjKYfc68L7jKjGlHMibw==", "cpu": [ "arm64" ], @@ -1221,9 +1137,9 @@ } }, "node_modules/@img/sharp-libvips-linuxmusl-x64": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.2.tgz", - "integrity": "sha512-m0lrLiUt+lBYnCFr8qV/65yMR4E/c7/wf78I5eKTdkEakFAlZ9QlzEM3QIhhAwVeUhLAHLcCq7a7Vszq/oFNZQ==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.3.tgz", + "integrity": "sha512-fj8Mv0HHfD1Rr+4I68+3agJynxDWtBFgicTbSOb9Bke6pIwzGcJ+RX/yHjmiEGFMCavY/dxvem7MyNaJF+wDiw==", "cpu": [ "x64" ], @@ -1237,9 +1153,9 @@ } }, "node_modules/@img/sharp-linux-arm": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.3.tgz", - "integrity": "sha512-affVWCTLooy8TSxbDx2qkzuDeaWLNVBA+P//FNBirHsXpP2fuBhk5AuboYUnrDnzoXes8GFjpTx0SBFOCRg+FA==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.4.tgz", + "integrity": "sha512-7OAS8gI0EReKGVN2HssHlM6umJgxF5VI3xN0p9FA91p/YO+ou5hiNghLdZ5BEHztwaaK5+bLKRf8x/o2L2nk9A==", "cpu": [ "arm" ], @@ -1255,13 +1171,13 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-arm": "1.3.2" + "@img/sharp-libvips-linux-arm": "1.3.3" } }, "node_modules/@img/sharp-linux-arm64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.3.tgz", - "integrity": "sha512-QgKDspHPnrU+GQ55XPhGwyhC8acLVOOSyAvo1oVfFmrIXLkDNmGWzAfDZ4xK8oSA1qBQrALcHX0G5UZni/SuFQ==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.4.tgz", + "integrity": "sha512-De4jpEnAU8Hd5oT0j1G3uL4ZvTuipVMn7YC6vPaJhy6/7EwEae0SVAoBrUMYQbkLGDm85taVWwuPc1a44LTzCQ==", "cpu": [ "arm64" ], @@ -1277,13 +1193,13 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-arm64": "1.3.2" + "@img/sharp-libvips-linux-arm64": "1.3.3" } }, "node_modules/@img/sharp-linux-ppc64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.3.tgz", - "integrity": "sha512-sMd8rDxmpLOwv/7N44klFjOD5DUO7FLdjiXDI0hoxYaf7Ar262dQIEkosE98bps+5HPLtp/EvNqeqQtOycP/IA==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.4.tgz", + "integrity": "sha512-2oYZJeIl4kCcMGk4ouZVjnkCtFrpQFlNEtJ6GbxzhHQchwH0NH/qEb9ykmOl29dqwMq+JhFdZn+1ak2FKhI9fQ==", "cpu": [ "ppc64" ], @@ -1299,13 +1215,13 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-ppc64": "1.3.2" + "@img/sharp-libvips-linux-ppc64": "1.3.3" } }, "node_modules/@img/sharp-linux-riscv64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.3.tgz", - "integrity": "sha512-0Eob78yjlYPfL5vMNWAW55l3R9Y6BQS/gOfe0ZcP9mEz9ohhKSt4im1hayiknXgf8AWrFqMvJcKIdmLmEe7yeQ==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.4.tgz", + "integrity": "sha512-cPbNChoRURAWdebDIHSenxRpgEdy7JkPydSnUxRm9VvKD7m0/xVaR/8Fzlu81pk5nHEvHH87UZUA7cTtwnbJSA==", "cpu": [ "riscv64" ], @@ -1321,13 +1237,13 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-riscv64": "1.3.2" + "@img/sharp-libvips-linux-riscv64": "1.3.3" } }, "node_modules/@img/sharp-linux-s390x": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.3.tgz", - "integrity": "sha512-KgAxQ0DxpNOq1rG2t5cgTgShJFGSuU7XO45cqC+1NVOuZnP6tlgZRuSYOfNupGkHID0o3cJOsw4DVeJpMovcGw==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.4.tgz", + "integrity": "sha512-RY0JFY8Fd6RonCBtHz+DvadaPkXDSI1AUn6yWL9TipqkZ1vY8w8evqdgyDFnkm4/K1ve1TvZiaePP5oSd4+WVQ==", "cpu": [ "s390x" ], @@ -1343,13 +1259,13 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-s390x": "1.3.2" + "@img/sharp-libvips-linux-s390x": "1.3.3" } }, "node_modules/@img/sharp-linux-x64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.3.tgz", - "integrity": "sha512-8pqvxubL2PGdhlPy6GLqzDYMUjyRmKAwKHYKixpdJYBUK7PJ0C029XdsnpFIdgRZG68fZiGdHVWcKPvtiPB4cA==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.4.tgz", + "integrity": "sha512-9qvvEAuk8k89TfWUoX2htWjbAMX8p+NxCppjpcg5k6xMsjhBQPTsoIh36h9Qde4WRuGpJeYnOjdosDn/cnv+OA==", "cpu": [ "x64" ], @@ -1365,13 +1281,13 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-x64": "1.3.2" + "@img/sharp-libvips-linux-x64": "1.3.3" } }, "node_modules/@img/sharp-linuxmusl-arm64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.3.tgz", - "integrity": "sha512-Vz0iQjzzcSX3HCbfwFfCSG/9SCIqyO0mH2sXyiHaAYfBk0cRsCWXRyQYX0ovCK/PAQBbTzQ0dsPQHh5MAFL59w==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.4.tgz", + "integrity": "sha512-KB5jxpfWQTr0nc3xdHtWChdbifHrBGsd2SM62Eyxrl8afikm+f5qGBU75SJIZBT/S1MC8XyacdlXBMSWq6OURA==", "cpu": [ "arm64" ], @@ -1387,13 +1303,13 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linuxmusl-arm64": "1.3.2" + "@img/sharp-libvips-linuxmusl-arm64": "1.3.3" } }, "node_modules/@img/sharp-linuxmusl-x64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.3.tgz", - "integrity": "sha512-6O1NPKcDVj9QEdg7Hx549EX8U0rp6yXQERqru6yRN7fGBn32UvIRJUlWnk+8xDCiG76hXVBbX82NZ/ZKr0euIg==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.4.tgz", + "integrity": "sha512-f+eZJZIQNEEd26RPSW+76chwOf1XtA2Y/O+5ocVyLliHkeih3e+jhLVBdNTd2rS3IbNXK8+ug93Vf5ZXtF5Lxg==", "cpu": [ "x64" ], @@ -1409,17 +1325,17 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linuxmusl-x64": "1.3.2" + "@img/sharp-libvips-linuxmusl-x64": "1.3.3" } }, "node_modules/@img/sharp-wasm32": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.3.tgz", - "integrity": "sha512-cZ0XkcYGpHZkqW6iCkqTcmUC0CD9DhD5d/qeZlZkfRBn6GnHniZXLUo5+9xw8Iv76YE6LQFN9YNBlKREcCG76w==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.4.tgz", + "integrity": "sha512-zQnl4Kwp7Q6NHsENtU2T/00Zi+w3AQNwz3+UaTyVBy2FpXrzXzGjndpK61onhZjRtRpQXxCTeqw19bVyXOh7jA==", "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", "optional": true, "dependencies": { - "@emnapi/runtime": "^1.11.1" + "@emnapi/runtime": "^1.11.3" }, "engines": { "node": ">=20.9.0" @@ -1429,16 +1345,16 @@ } }, "node_modules/@img/sharp-webcontainers-wasm32": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.3.tgz", - "integrity": "sha512-2rnq7bX3NzeR2T4YWgz8qiG4h3TSdMe+vN1iQXpJleSJ3SM5zQ8Fy2SyyXAWlbxpEZ2Y+Z4u1BePgJEYbSy80Q==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.4.tgz", + "integrity": "sha512-ESfNkywmCfPNyaZjxooddJQiQ+l/nTpGEOGthxiLnIHXC/CmcBixnfwUleX9mCz9ovrUUvKMap/pm8RYbzfwaA==", "cpu": [ "wasm32" ], "license": "Apache-2.0", "optional": true, "dependencies": { - "@img/sharp-wasm32": "0.35.3" + "@img/sharp-wasm32": "0.35.4" }, "engines": { "node": ">=20.9.0" @@ -1448,9 +1364,9 @@ } }, "node_modules/@img/sharp-win32-arm64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.3.tgz", - "integrity": "sha512-4bPwFdMbeC4JQ8L8LOyWp6nsHcboP5fxkp6iPOXz2Vg49R42TuMs2whkJ5OAP4/Ul035qOzy0AecOF9VOscn4w==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.4.tgz", + "integrity": "sha512-iNdlBX9gLVvqe2I3uIJSIKTq6wckP/DYxZtcqxm09x5Gi24DnFBmPAWZmr60ZyYMG0xlzo6goG3670ar+RXvRw==", "cpu": [ "arm64" ], @@ -1467,9 +1383,9 @@ } }, "node_modules/@img/sharp-win32-ia32": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.3.tgz", - "integrity": "sha512-r53mXsBN6lFUDiST764SvgwUdHAqM4rPAiDzAmf4fLoB6X/rkfyTrLCg6+g17wJJiCmB3JYgHuUldCWUIRFSXw==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.4.tgz", + "integrity": "sha512-kqRsbaa5CS6KHlpxnN7WhE6vAAugXyZButpRdvDWetlv6Qv4N9WTcrWzF7tXfB9T7MsoadqdI8hmwLq6UlLvtw==", "cpu": [ "ia32" ], @@ -1486,9 +1402,9 @@ } }, "node_modules/@img/sharp-win32-x64": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.3.tgz", - "integrity": "sha512-D4y1vNeZrIIJCN+uHaWVtH86B+aCrdMYYjicy9pXHvbGZeGYLLSd3wdVuC37FxVXlU1ARsk84eKWfWMXGYEqvA==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.4.tgz", + "integrity": "sha512-XtmnYhBcrORsJ4XJngyzr/EWP0hRZLAZRFaApdKuviyqF78+ylxh2y06ZmtULAMOnObJ3ucpN0AcwSWnMowTRg==", "cpu": [ "x64" ], @@ -1505,69 +1421,30 @@ } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", - "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", - "license": "MIT" - }, - "node_modules/@kwsites/file-exists": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@kwsites/file-exists/-/file-exists-1.1.1.tgz", - "integrity": "sha512-m9/5YGR18lIwxSFDwfE3oA7bWuq9kdau6ugN4H2rJeyhFQZcG9AgSHkQtSD15a8WvTgfz9aikZMrKPHvbpqFiw==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.1.1" - } - }, - "node_modules/@kwsites/file-exists/node_modules/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/@kwsites/file-exists/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@kwsites/promise-deferred": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@kwsites/promise-deferred/-/promise-deferred-1.1.1.tgz", - "integrity": "sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw==", - "dev": true, + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", "license": "MIT" }, "node_modules/@napi-rs/wasm-runtime": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.6.tgz", - "integrity": "sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.3.tgz", + "integrity": "sha512-UMduMbqO5s5zF2NkNacMT/yK5Y5QiKvWr2+50bzIIxFDwVJ2h49b+oyjaCGPhJxd2/gC2x39EHv/gHVuu36x2Q==", "license": "MIT", "optional": true, "dependencies": { "@tybys/wasm-util": "^0.10.3" }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + }, "funding": { "type": "github", "url": "https://github.com/sponsors/Brooooooklyn" }, "peerDependencies": { - "@emnapi/core": "^1.7.1", - "@emnapi/runtime": "^1.7.1" + "@emnapi/core": "^1.7.1 || ^2.0.0-alpha.4", + "@emnapi/runtime": "^1.7.1 || ^2.0.0-alpha.4" } }, "node_modules/@oslojs/encoding": { @@ -1854,38 +1731,16 @@ "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", "license": "MIT" }, - "node_modules/@rollup/pluginutils": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.4.0.tgz", - "integrity": "sha512-MfPp06CjRLfXQ3wY0R8vJDYBy/MvVcc9OulEfR0B8Iv9ko+GCNaRZ+EpJYFl27LhKsZK0o420sYCRHCjfCgeUg==", - "license": "MIT", - "dependencies": { - "@types/estree": "^1.0.0", - "estree-walker": "^2.0.2", - "picomatch": "^4.0.2" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, "node_modules/@shikijs/core": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-4.3.1.tgz", - "integrity": "sha512-ANMDxuaPsNMdDC1m4vfvhlDmJweMwkE5XitTwrq2rWHx5jM+dlm4MmHt2PP6t0uejfR77SuhrhJ0zEijIF/uhA==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-4.4.3.tgz", + "integrity": "sha512-QCR4q2ZO/ILJEuwiBMel4wdcTDb1JGwfjKTxPDF6x8ixOaluPrVqIn06C99AcRPhmYlBR56d/Fb+GN58GzExpg==", "license": "MIT", "dependencies": { - "@shikijs/primitive": "4.3.1", - "@shikijs/types": "4.3.1", + "@shikijs/primitive": "4.4.3", + "@shikijs/types": "4.4.3", "@shikijs/vscode-textmate": "^10.0.2", - "@types/hast": "^3.0.4", + "@types/hast": "^3.0.5", "hast-util-to-html": "^9.0.5" }, "engines": { @@ -1893,12 +1748,12 @@ } }, "node_modules/@shikijs/engine-javascript": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-4.3.1.tgz", - "integrity": "sha512-JBItcnPuYq7jVJdZo/vMj94r+szT7XEjHFX+mvFDGSEIbVAXAGyHAHzhbWzpGOwYidCZrErJLLgn2PVeiokHnQ==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-4.4.3.tgz", + "integrity": "sha512-FbOjFJp9VLdo1Wevs10BBtVxiTWwNLqZh5Gkhjgda/ioL15YOgeSl9n+6XMa3qRlPQzfhFNe641SrynFHYG0nQ==", "license": "MIT", "dependencies": { - "@shikijs/types": "4.3.1", + "@shikijs/types": "4.4.3", "@shikijs/vscode-textmate": "^10.0.2", "oniguruma-to-es": "^4.3.6" }, @@ -1907,12 +1762,12 @@ } }, "node_modules/@shikijs/engine-oniguruma": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-4.3.1.tgz", - "integrity": "sha512-OXyNMzg0pews+msMj4cHeqT4xiYKKvbnn6VbdAXxfoFl3SSx4fJTc8FadECuc5/H9p3BzhNAoAUXKwAu9rWYhg==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-4.4.3.tgz", + "integrity": "sha512-EcOQkxdxGQrc1Row/cC2c96/v1dbZqGnEVu1qTuT/MJmp6+cXCvQussowVmCv5Tqr3KuY3c7IbM6HTW3LJ1k9w==", "license": "MIT", "dependencies": { - "@shikijs/types": "4.3.1", + "@shikijs/types": "4.4.3", "@shikijs/vscode-textmate": "^10.0.2" }, "engines": { @@ -1920,51 +1775,51 @@ } }, "node_modules/@shikijs/langs": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-4.3.1.tgz", - "integrity": "sha512-m0l9nsDqgBHvbZbk7A0/kXz/impK3uB/c6rAn6Gpg/uPtdZRQ+alsN/17MU5thb68XTj/4DxkZAotrM0GGSpDQ==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-4.4.3.tgz", + "integrity": "sha512-ePic0yfAJGOF83D5wBHK/00EjK65oahBYxFk5epgq33WRv7X9UuxLEV8PtR0szC0z8dl7INIpIodB99JRFlR+A==", "license": "MIT", "dependencies": { - "@shikijs/types": "4.3.1" + "@shikijs/types": "4.4.3" }, "engines": { "node": ">=20" } }, "node_modules/@shikijs/primitive": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/@shikijs/primitive/-/primitive-4.3.1.tgz", - "integrity": "sha512-CXQRQOYy1leqQ8ceTeJdmXv/bsUY++6QyLpXJ94LZAAYj5X2SKRdc5ipguv4NPyGVKItB2PPwUpRNe0Sjh5S1A==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/@shikijs/primitive/-/primitive-4.4.3.tgz", + "integrity": "sha512-m0wBeLDQDeIxRdUmrCPdQqfuUamDwRL5isCfYbguKD6NiaKpVbsv+3J81DyIKgNW5h4WAIIr8T4EkgQrBBxvaQ==", "license": "MIT", "dependencies": { - "@shikijs/types": "4.3.1", + "@shikijs/types": "4.4.3", "@shikijs/vscode-textmate": "^10.0.2", - "@types/hast": "^3.0.4" + "@types/hast": "^3.0.5" }, "engines": { "node": ">=20" } }, "node_modules/@shikijs/themes": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-4.3.1.tgz", - "integrity": "sha512-dgpoJ4WqNi2yTmizQHBJ5zcX6j2lE6icN/0yt4l1kkf16jrY/pwPLoTb1ETsWMz0OBLf9ZNvwmxft+cH+N9qSA==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-4.4.3.tgz", + "integrity": "sha512-w8UHjeUnIR965KMWJHUPXOc2mNJUnK3vpVLYLvw5IYU2mnTTJ89E24OrJDBNiJDQ0qzb0tc4l7mrIXx5cFeIyw==", "license": "MIT", "dependencies": { - "@shikijs/types": "4.3.1" + "@shikijs/types": "4.4.3" }, "engines": { "node": ">=20" } }, "node_modules/@shikijs/types": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-4.3.1.tgz", - "integrity": "sha512-CHFxE0jztBIZRHH6gxXE7DXUCFXjReEGxZ/j0rfSLGKZuwp2xBYycEP14875DSa9KLL/6700oxIq6oO6ef9K2g==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-4.4.3.tgz", + "integrity": "sha512-UEJxmRR++MAGR6hugn0vgVS2W/6lWAts84FFSrnlH9sP0LNol7E5+NQ792pH8liWUhyMyjhTgSUH3k7iD7tc5g==", "license": "MIT", "dependencies": { "@shikijs/vscode-textmate": "^10.0.2", - "@types/hast": "^3.0.4" + "@types/hast": "^3.0.5" }, "engines": { "node": ">=20" @@ -1976,34 +1831,6 @@ "integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==", "license": "MIT" }, - "node_modules/@simple-git/args-pathspec": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@simple-git/args-pathspec/-/args-pathspec-1.0.3.tgz", - "integrity": "sha512-ngJMaHlsWDTfjyq9F3VIQ8b7NXbBLq5j9i5bJ6XLYtD6qlDXT7fdKY2KscWWUF8t18xx052Y/PUO1K1TRc9yKA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@simple-git/argv-parser": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@simple-git/argv-parser/-/argv-parser-1.1.1.tgz", - "integrity": "sha512-Q9lBcfQ+VQCpQqGJFHe5yooOS5hGdLFFbJ5R+R5aDsnkPCahtn1hSkMcORX65J2Z5lxSkD0lQorMsncuBQxYUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@simple-git/args-pathspec": "^1.0.3" - } - }, - "node_modules/@so-ric/colorspace": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/@so-ric/colorspace/-/colorspace-1.1.6.tgz", - "integrity": "sha512-/KiKkpHNOBgkFJwu9sh48LkHSMYGyuTcSFK/qMBdnOAlrRJzRSXAOFB5qwzaVQuDl8wAvHVMkaASQDReTahxuw==", - "dev": true, - "license": "MIT", - "dependencies": { - "color": "^5.0.2", - "text-hex": "1.0.x" - } - }, "node_modules/@tybys/wasm-util": { "version": "0.10.3", "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.3.tgz", @@ -2056,13 +1883,6 @@ "@types/unist": "*" } }, - "node_modules/@types/triple-beam": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/@types/triple-beam/-/triple-beam-1.3.5.tgz", - "integrity": "sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw==", - "dev": true, - "license": "MIT" - }, "node_modules/@types/unist": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", @@ -2070,25 +1890,11 @@ "license": "MIT" }, "node_modules/@ungap/structured-clone": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.3.tgz", - "integrity": "sha512-60YRaenCQcVjYEKOcG824+DRGGIQ3VKErcBoAEDJZz5bKIs2ZG+X/H9Nk+Q6EVkwJk5QNApxbrc5QtBSwtrXAg==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.4.0.tgz", + "integrity": "sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==", "license": "ISC" }, - "node_modules/accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "dev": true, - "license": "MIT", - "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - }, - "engines": { - "node": ">= 0.6" - } - }, "node_modules/am-i-vibing": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/am-i-vibing/-/am-i-vibing-0.4.0.tgz", @@ -2141,27 +1947,19 @@ "node": ">= 0.4" } }, - "node_modules/array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", - "dev": true, - "license": "MIT" - }, "node_modules/astro": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/astro/-/astro-7.1.3.tgz", - "integrity": "sha512-4dhPyAAXthf3xLEYnG8SeL7yr/nTPPABfY7e9YF0yuO+vK9Xp+8Q5j4xzsmL3GueukQv4oNwGNTBepLOiDGeJA==", + "version": "7.2.10", + "resolved": "https://registry.npmjs.org/astro/-/astro-7.2.10.tgz", + "integrity": "sha512-uPtD+nK6kQXugyq4kiMPwj9OI3Sae6HSerA5X+fuv2CPaDwxmokFPPFlGRKIAXH0QAKu+zot2q6yrLG61wFmqg==", "license": "MIT", "dependencies": { - "@astrojs/compiler-rs": "^0.3.1", - "@astrojs/internal-helpers": "0.10.1", - "@astrojs/markdown-satteri": "0.3.4", + "@astrojs/compiler-rs": "^0.4.0", + "@astrojs/internal-helpers": "0.11.0", + "@astrojs/markdown-satteri": "0.4.0", "@astrojs/telemetry": "3.3.3", "@capsizecss/unpack": "^4.0.0", "@clack/prompts": "^1.1.0", "@oslojs/encoding": "^1.1.0", - "@rollup/pluginutils": "^5.3.0", "am-i-vibing": "^0.4.0", "aria-query": "^5.3.2", "axobject-query": "^4.1.0", @@ -2170,19 +1968,20 @@ "common-ancestor-path": "^2.0.0", "cookie": "^2.0.1", "devalue": "^5.8.1", - "diff": "^8.0.3", + "diff": "^9.0.0", "dset": "^3.1.4", "es-module-lexer": "^2.0.0", "esbuild": "^0.28.0", + "find-proc": "0.1.0", "flattie": "^1.1.1", "fontace": "~0.4.1", "get-tsconfig": "5.0.0-beta.4", "github-slugger": "^2.0.0", "html-escaper": "3.0.3", "http-cache-semantics": "^4.2.0", - "js-yaml": "^4.1.1", + "js-yaml": "^4.3.0", "jsonc-parser": "^3.3.1", - "magic-string": "^0.30.21", + "magic-string": "^1.0.0", "magicast": "^0.5.2", "mrmime": "^2.0.1", "neotraverse": "^1.0.1", @@ -2200,7 +1999,7 @@ "tinyexec": "^1.0.4", "tinyglobby": "^0.2.15", "ultrahtml": "^1.6.0", - "unifont": "~0.7.4", + "unifont": "~0.7.5", "unstorage": "^1.17.5", "vite": "^8.0.13", "vitefu": "^1.1.2", @@ -2221,10 +2020,10 @@ "url": "https://opencollective.com/astrodotbuild" }, "optionalDependencies": { - "sharp": "^0.34.0 || ^0.35.0" + "sharp": "^0.35.4" }, "peerDependencies": { - "@astrojs/markdown-remark": "7.2.1" + "@astrojs/markdown-remark": "^7.3.0" }, "peerDependenciesMeta": { "@astrojs/markdown-remark": { @@ -2232,23 +2031,6 @@ } } }, - "node_modules/async": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", - "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", - "dev": true, - "license": "MIT" - }, - "node_modules/async-mutex": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.3.2.tgz", - "integrity": "sha512-HuTK7E7MT7jZEh1P9GtRW9+aTWiDWWi9InbZ5hjxrnRa39KS4BW04+xLBhYNS2aXhHUIKZSw3gj4Pn1pj+qGAA==", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.3.1" - } - }, "node_modules/axobject-query": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", @@ -2268,98 +2050,12 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/basic-auth": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", - "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", - "dev": true, - "license": "MIT", - "dependencies": { - "safe-buffer": "5.1.2" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/basic-auth/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true, - "license": "MIT" - }, - "node_modules/body-parser": { - "version": "1.20.6", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.6.tgz", - "integrity": "sha512-p5tAzS57i5MV9fZFDj9LeIiTZEufbSe2eDozP+ElheSUq1m74CRq1jI4mYNDdVs9vQztXFLuk/Gd6BWTdwRJ5g==", - "dev": true, - "license": "MIT", - "dependencies": { - "bytes": "~3.1.2", - "content-type": "~1.0.5", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "~1.2.0", - "http-errors": "~2.0.1", - "iconv-lite": "~0.4.24", - "on-finished": "~2.4.1", - "qs": "~6.15.1", - "raw-body": "~2.5.3", - "type-is": "~1.6.18", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, "node_modules/boolbase": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", "license": "ISC" }, - "node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/ccount": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", @@ -2429,56 +2125,6 @@ "node": ">=6" } }, - "node_modules/color": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/color/-/color-5.0.3.tgz", - "integrity": "sha512-ezmVcLR3xAVp8kYOm4GS45ZLLgIE6SPAFoduLr6hTDajwb3KZ2F46gulK3XpcwRFb5KKGCSezCBAY4Dw4HsyXA==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^3.1.3", - "color-string": "^2.1.3" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/color-convert": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-3.1.3.tgz", - "integrity": "sha512-fasDH2ont2GqF5HpyO4w0+BcewlhHEZOFn9c1ckZdHpJ56Qb7MHhH/IcJZbBGgvdtwdwNbLvxiBEdg336iA9Sg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "^2.0.0" - }, - "engines": { - "node": ">=14.6" - } - }, - "node_modules/color-name": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-2.1.1.tgz", - "integrity": "sha512-p2FdgwVx1a9yWBHP2wI0VgShkDpgN4kZISkxdNipGBJWpa5G6b04OINlVWCyJj0JmfvcPrgqt95E9k8yvaOJFg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.20" - } - }, - "node_modules/color-string": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/color-string/-/color-string-2.1.4.tgz", - "integrity": "sha512-Bb6Cq8oq0IjDOe8wJmi4JeNn763Xs9cfrBcaylK1tPypWzyoy2G3l90v9k64kjphl/ZJjPIShFztenRomi8WTg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "^2.0.0" - }, - "engines": { - "node": ">=18" - } - }, "node_modules/comma-separated-tokens": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", @@ -2507,29 +2153,6 @@ "node": ">= 18" } }, - "node_modules/content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, "node_modules/cookie": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/cookie/-/cookie-2.0.1.tgz", @@ -2549,31 +2172,6 @@ "integrity": "sha512-lXVyvUvrNXblMqzIRrxHb57UUVmqsSWlxqt3XIjCkUP0wDAf6uicO6KMbEgYrMNtEvWgWHwe42CKxPu9MYAnWw==", "license": "MIT" }, - "node_modules/cookie-signature": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz", - "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==", - "dev": true, - "license": "MIT" - }, - "node_modules/cors": { - "version": "2.8.6", - "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz", - "integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==", - "dev": true, - "license": "MIT", - "dependencies": { - "object-assign": "^4", - "vary": "^1" - }, - "engines": { - "node": ">= 0.10" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, "node_modules/crossws": { "version": "0.3.5", "resolved": "https://registry.npmjs.org/crossws/-/crossws-0.3.5.tgz", @@ -2657,56 +2255,12 @@ "integrity": "sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==", "license": "CC0-1.0" }, - "node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/decap-server": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/decap-server/-/decap-server-3.10.0.tgz", - "integrity": "sha512-iFojvqTx9rA45pVmS6EWM6Z9n4hr2DLRbcqDCb/pUtCYX5mJ0u1WvBrC/G5ZynDTE3awC6MYzHngAThhje4MjQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@hapi/joi": "^17.0.2", - "async-mutex": "^0.3.0", - "cors": "^2.8.5", - "dotenv": "^10.0.0", - "express": "^4.18.2", - "morgan": "^1.11.0", - "simple-git": "^3.0.0", - "what-the-diff": "^0.6.0", - "winston": "^3.3.3" - }, - "bin": { - "decap-server": "dist/index.js" - }, - "engines": { - "node": ">=v10.22.1" - } - }, "node_modules/defu": { "version": "6.1.7", "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.7.tgz", "integrity": "sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==", "license": "MIT" }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, "node_modules/dequal": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", @@ -2722,17 +2276,6 @@ "integrity": "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==", "license": "MIT" }, - "node_modules/destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, "node_modules/detect-libc": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", @@ -2762,9 +2305,9 @@ } }, "node_modules/diff": { - "version": "8.0.4", - "resolved": "https://registry.npmjs.org/diff/-/diff-8.0.4.tgz", - "integrity": "sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-9.0.0.tgz", + "integrity": "sha512-svtcdpS8CgJyqAjEQIXdb3OjhFVVYjzGAPO8WGCmRbrml64SPw/jJD4GoE98aR7r25A0XcgrK3F02yw9R/vhQw==", "license": "BSD-3-Clause", "engines": { "node": ">=0.3.1" @@ -2837,16 +2380,6 @@ "url": "https://github.com/fb55/domutils?sponsor=1" } }, - "node_modules/dotenv": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", - "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=10" - } - }, "node_modules/dset": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.4.tgz", @@ -2856,96 +2389,12 @@ "node": ">=4" } }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "dev": true, - "license": "MIT" - }, - "node_modules/enabled": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz", - "integrity": "sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/encodeurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", - "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/entities": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz", - "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==", - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, "node_modules/es-module-lexer": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.1.tgz", "integrity": "sha512-shc1dbU90Yl/xq1QrC7QRtfcwURZuVRfPhZbDoldJ1cn1gzDvBaBWlv0eFolj5+0znnPJz5TXLxsN77X/12KTA==", "license": "MIT" }, - "node_modules/es-object-atoms": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", - "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/esbuild": { "version": "0.28.1", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.1.tgz", @@ -2987,92 +2436,12 @@ "@esbuild/win32-x64": "0.28.1" } }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "dev": true, - "license": "MIT" - }, - "node_modules/estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "license": "MIT" - }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, "node_modules/eventemitter3": { "version": "5.0.4", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz", "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==", "license": "MIT" }, - "node_modules/express": { - "version": "4.22.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.22.2.tgz", - "integrity": "sha512-IuL+Elrou2ZvCFHs18/CIzy2Nzvo25nZ1/D2eIZlz7c+QUayAcYoiM2BthCjs+EBHVpjYjcuLDAiCWgeIX3X1Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "~1.20.5", - "content-disposition": "~0.5.4", - "content-type": "~1.0.4", - "cookie": "~0.7.1", - "cookie-signature": "~1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "~1.3.1", - "fresh": "~0.5.2", - "http-errors": "~2.0.0", - "merge-descriptors": "1.0.3", - "methods": "~1.1.2", - "on-finished": "~2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "~0.1.12", - "proxy-addr": "~2.0.7", - "qs": "~6.15.1", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "~0.19.0", - "serve-static": "~1.16.2", - "setprototypeof": "1.2.0", - "statuses": "~2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.10.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/express/node_modules/cookie": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", - "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", @@ -3120,30 +2489,13 @@ } } }, - "node_modules/fecha": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.3.tgz", - "integrity": "sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==", - "dev": true, - "license": "MIT" - }, - "node_modules/finalhandler": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz", - "integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==", - "dev": true, + "node_modules/find-proc": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/find-proc/-/find-proc-0.1.0.tgz", + "integrity": "sha512-OaOpEYv2PiQ7SQ5LIrl+deA1XaWcxEjnpM6VuWXTUvn+teIXxeFTLDmu18/zDQpFmHN4o3oDBX+BT0AGwEhemg==", "license": "MIT", - "dependencies": { - "debug": "2.6.9", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "on-finished": "~2.4.1", - "parseurl": "~1.3.3", - "statuses": "~2.0.2", - "unpipe": "~1.0.0" - }, "engines": { - "node": ">= 0.8" + "node": "^20.19.0 || >=22.12.0" } }, "node_modules/flattie": { @@ -3155,13 +2507,6 @@ "node": ">=8" } }, - "node_modules/fn.name": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fn.name/-/fn.name-1.1.0.tgz", - "integrity": "sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==", - "dev": true, - "license": "MIT" - }, "node_modules/fontace": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/fontace/-/fontace-0.4.1.tgz", @@ -3183,26 +2528,6 @@ "node": ">=20" } }, - "node_modules/forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", @@ -3217,55 +2542,6 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/get-tsconfig": { "version": "5.0.0-beta.4", "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-5.0.0-beta.4.tgz", @@ -3287,19 +2563,6 @@ "integrity": "sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==", "license": "ISC" }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/h3": { "version": "1.15.11", "resolved": "https://registry.npmjs.org/h3/-/h3-1.15.11.tgz", @@ -3317,83 +2580,6 @@ "uncrypto": "^0.1.3" } }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", - "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", - "dev": true, - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/hast-util-from-html": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/hast-util-from-html/-/hast-util-from-html-2.0.3.tgz", - "integrity": "sha512-CUSRHXyKjzHov8yKsQjGOElXy/3EKpyX56ELnkHH34vDVw1N1XSQ1ZcAvTyAPtGqLTuKP/uxM+aLkSPqF/EtMw==", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "devlop": "^1.1.0", - "hast-util-from-parse5": "^8.0.0", - "parse5": "^7.0.0", - "vfile": "^6.0.0", - "vfile-message": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-from-parse5": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-8.0.3.tgz", - "integrity": "sha512-3kxEVkEKt0zvcZ3hCRYI8rqrgwtlIOFMWkbclACvjlDw8Li9S2hk/d51OI0nr/gIpdMHNepwgOKqZ/sy0Clpyg==", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "@types/unist": "^3.0.0", - "devlop": "^1.0.0", - "hastscript": "^9.0.0", - "property-information": "^7.0.0", - "vfile": "^6.0.0", - "vfile-location": "^5.0.0", - "web-namespaces": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-parse-selector": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz", - "integrity": "sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, "node_modules/hast-util-to-html": { "version": "9.0.5", "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.5.tgz", @@ -3430,23 +2616,6 @@ "url": "https://opencollective.com/unified" } }, - "node_modules/hastscript": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-9.0.1.tgz", - "integrity": "sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w==", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "comma-separated-tokens": "^2.0.0", - "hast-util-parse-selector": "^4.0.0", - "property-information": "^7.0.0", - "space-separated-tokens": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, "node_modules/html-escaper": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-3.0.3.tgz", @@ -3469,57 +2638,6 @@ "integrity": "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==", "license": "BSD-2-Clause" }, - "node_modules/http-errors": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", - "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "depd": "~2.0.0", - "inherits": "~2.0.4", - "setprototypeof": "~1.2.0", - "statuses": "~2.0.2", - "toidentifier": "~1.0.1" - }, - "engines": { - "node": ">= 0.8" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "license": "MIT", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.10" - } - }, "node_modules/iron-webcrypto": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/iron-webcrypto/-/iron-webcrypto-1.2.1.tgz", @@ -3556,23 +2674,10 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/js-yaml": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.0.tgz", - "integrity": "sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", + "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", "funding": [ { "type": "github", @@ -3597,13 +2702,6 @@ "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==", "license": "MIT" }, - "node_modules/kuler": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz", - "integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==", - "dev": true, - "license": "MIT" - }, "node_modules/lightningcss": { "version": "1.33.0", "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", @@ -3853,31 +2951,6 @@ "url": "https://opencollective.com/parcel" } }, - "node_modules/logform": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/logform/-/logform-2.7.0.tgz", - "integrity": "sha512-TFYA4jnP7PVbmlBIfhlSe+WKxs9dklXMTEGcBCIvLhE/Tn3H6Gk1norupVW7m5Cnd4bLcr08AytbyV/xj7f/kQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@colors/colors": "1.6.0", - "@types/triple-beam": "^1.3.2", - "fecha": "^4.2.0", - "ms": "^2.1.1", - "safe-stable-stringify": "^2.3.1", - "triple-beam": "^1.3.0" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/logform/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" - }, "node_modules/lru-cache": { "version": "11.5.2", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz", @@ -3888,9 +2961,9 @@ } }, "node_modules/magic-string": { - "version": "0.30.21", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", - "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.2.3.tgz", + "integrity": "sha512-Bpb0W2TbLKOZ7vJnOUnVRGq3WL2p+ISV29M6hYPL1AFCpyKZpdr5ytiXoTSSxRVhg8YW7f65+6gbG8WG6PCa/g==", "license": "MIT", "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" @@ -3907,16 +2980,6 @@ "source-map-js": "^1.2.1" } }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, "node_modules/mdast-util-to-hast": { "version": "13.2.1", "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz", @@ -3944,36 +3007,6 @@ "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==", "license": "CC0-1.0" }, - "node_modules/media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/merge-descriptors": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", - "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, "node_modules/micromark-util-character": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", @@ -4063,63 +3096,6 @@ ], "license": "MIT" }, - "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true, - "license": "MIT", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "license": "MIT", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/morgan": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.11.0.tgz", - "integrity": "sha512-zSkVu3t18r39pw4ixfBKvfZi3y2UOqr7d4WYwcj3m8nXpEQK4rPO6GLzs/CExoRgmX3y9EjmmcXqv6jq0SK46g==", - "dev": true, - "license": "MIT", - "dependencies": { - "basic-auth": "~2.0.1", - "debug": "2.6.9", - "depd": "~2.0.0", - "on-finished": "~2.4.1", - "on-headers": "~1.1.0" - }, - "engines": { - "node": ">= 0.8.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, "node_modules/mrmime": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.1.tgz", @@ -4129,13 +3105,6 @@ "node": ">=10" } }, - "node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, - "license": "MIT" - }, "node_modules/nanoid": { "version": "3.3.16", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.16.tgz", @@ -4154,16 +3123,6 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, - "node_modules/negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, "node_modules/neotraverse": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/neotraverse/-/neotraverse-1.0.1.tgz", @@ -4219,29 +3178,6 @@ "url": "https://github.com/fb55/nth-check?sponsor=1" } }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/obug": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.4.tgz", @@ -4267,44 +3203,11 @@ } }, "node_modules/ohash": { - "version": "2.0.11", - "resolved": "https://registry.npmjs.org/ohash/-/ohash-2.0.11.tgz", - "integrity": "sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ==", + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/ohash/-/ohash-2.0.12.tgz", + "integrity": "sha512-65S/5gk9YSsaRjcyf7Nfa6h/d3E8/1gslpXfI4W7Dxn/oap8IKRuNT5VXkLQ1YFKIEg4apRY4Pj6aiwFzrDdmw==", "license": "MIT" }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "dev": true, - "license": "MIT", - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/on-headers": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.1.0.tgz", - "integrity": "sha512-737ZY3yNnXy37FHkQxPzt4UZ2UWPWiCZWLvFZ4fu5cueciegX0zGPnrlY6bwRg4FdQOe9YU8MkmJwGhoMybl8A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/one-time": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/one-time/-/one-time-1.0.0.tgz", - "integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==", - "dev": true, - "license": "MIT", - "dependencies": { - "fn.name": "1.x.x" - } - }, "node_modules/oniguruma-parser": { "version": "0.12.2", "resolved": "https://registry.npmjs.org/oniguruma-parser/-/oniguruma-parser-0.12.2.tgz", @@ -4371,35 +3274,6 @@ "integrity": "sha512-yQA4H19AmPEoMUeavPMDIe1higySl/gH/yaQrkT/s07Qp+7pp2hYz30N3z2l5BkjVkF9Ow6o0wjJamm2y7Sn0A==", "license": "MIT" }, - "node_modules/parse5": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz", - "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==", - "license": "MIT", - "dependencies": { - "entities": "^6.0.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/path-to-regexp": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz", - "integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==", - "dev": true, - "license": "MIT" - }, "node_modules/piccolore": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/piccolore/-/piccolore-0.1.3.tgz", @@ -4480,84 +3354,12 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "dev": true, - "license": "MIT", - "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/qs": { - "version": "6.15.3", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.3.tgz", - "integrity": "sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "es-define-property": "^1.0.1", - "side-channel": "^1.1.1" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/radix3": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/radix3/-/radix3-1.1.2.tgz", "integrity": "sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==", "license": "MIT" }, - "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/raw-body": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz", - "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==", - "dev": true, - "license": "MIT", - "dependencies": { - "bytes": "~3.1.2", - "http-errors": "~2.0.1", - "iconv-lite": "~0.4.24", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/readdirp": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.0.0.tgz", @@ -4652,65 +3454,27 @@ "@rolldown/binding-win32-x64-msvc": "1.1.5" } }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/safe-stable-stringify": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.5.0.tgz", - "integrity": "sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true, - "license": "MIT" - }, "node_modules/satteri": { - "version": "0.9.5", - "resolved": "https://registry.npmjs.org/satteri/-/satteri-0.9.5.tgz", - "integrity": "sha512-ZuWVl+vnM64y+/TtX8Kosv2c00W+hLQiiwnEL6H0UKVVrxFqMw4D2CJHHQaouVd89OAhtBBfjWLqhKi3TVUV4w==", + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/satteri/-/satteri-0.10.5.tgz", + "integrity": "sha512-Ao1LKpAEa9Wdg0otgbVKViZHEq9ebdXe4DMrp3s9vQAU0HNIuHnFEuMuOcm0ZIXyV0Yzxj91NvhLpvXZJO/5ZQ==", "license": "MIT", "dependencies": { "@types/estree-jsx": "^1.0.5", - "@types/hast": "^3.0.4", + "@types/hast": "^3.0.5", "@types/mdast": "^4.0.4", "@types/unist": "^3.0.3" }, "optionalDependencies": { - "@bruits/satteri-darwin-arm64": "0.9.5", - "@bruits/satteri-darwin-x64": "0.9.5", - "@bruits/satteri-linux-arm64-gnu": "0.9.5", - "@bruits/satteri-linux-arm64-musl": "0.9.5", - "@bruits/satteri-linux-x64-gnu": "0.9.5", - "@bruits/satteri-linux-x64-musl": "0.9.5", - "@bruits/satteri-wasm32-wasi": "0.9.5", - "@bruits/satteri-win32-arm64-msvc": "0.9.5", - "@bruits/satteri-win32-x64-msvc": "0.9.5" + "@bruits/satteri-darwin-arm64": "0.10.5", + "@bruits/satteri-darwin-x64": "0.10.5", + "@bruits/satteri-linux-arm64-gnu": "0.10.5", + "@bruits/satteri-linux-arm64-musl": "0.10.5", + "@bruits/satteri-linux-x64-gnu": "0.10.5", + "@bruits/satteri-linux-x64-musl": "0.10.5", + "@bruits/satteri-wasm32-wasi": "0.10.5", + "@bruits/satteri-win32-arm64-msvc": "0.10.5", + "@bruits/satteri-win32-x64-msvc": "0.10.5" } }, "node_modules/sax": { @@ -4734,65 +3498,10 @@ "node": ">=10" } }, - "node_modules/send": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz", - "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "~0.5.2", - "http-errors": "~2.0.1", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "~2.4.1", - "range-parser": "~1.2.1", - "statuses": "~2.0.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/send/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" - }, - "node_modules/serve-static": { - "version": "1.16.3", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz", - "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==", - "dev": true, - "license": "MIT", - "dependencies": { - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "~0.19.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "dev": true, - "license": "ISC" - }, "node_modules/sharp": { - "version": "0.35.3", - "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.3.tgz", - "integrity": "sha512-ej0zVHuZGHCiABXcNxeYhpRnPNPAcvbG8RMdBAhDAxLKkCRVSpK3Iyu7qbqw3JMzoj0REeM6f3tJLtVwl0023Q==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.4.tgz", + "integrity": "sha512-n++8XWcj+jCOr2IOl7h8LbKnGBDY4aPbmprMONBNFdn0ImXqpGVv5zliDs0V9HbmbCQLpbuo2ej9rAoOQTvMDA==", "license": "Apache-2.0", "optional": true, "dependencies": { @@ -4807,31 +3516,31 @@ "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-darwin-arm64": "0.35.3", - "@img/sharp-darwin-x64": "0.35.3", - "@img/sharp-freebsd-wasm32": "0.35.3", - "@img/sharp-libvips-darwin-arm64": "1.3.2", - "@img/sharp-libvips-darwin-x64": "1.3.2", - "@img/sharp-libvips-linux-arm": "1.3.2", - "@img/sharp-libvips-linux-arm64": "1.3.2", - "@img/sharp-libvips-linux-ppc64": "1.3.2", - "@img/sharp-libvips-linux-riscv64": "1.3.2", - "@img/sharp-libvips-linux-s390x": "1.3.2", - "@img/sharp-libvips-linux-x64": "1.3.2", - "@img/sharp-libvips-linuxmusl-arm64": "1.3.2", - "@img/sharp-libvips-linuxmusl-x64": "1.3.2", - "@img/sharp-linux-arm": "0.35.3", - "@img/sharp-linux-arm64": "0.35.3", - "@img/sharp-linux-ppc64": "0.35.3", - "@img/sharp-linux-riscv64": "0.35.3", - "@img/sharp-linux-s390x": "0.35.3", - "@img/sharp-linux-x64": "0.35.3", - "@img/sharp-linuxmusl-arm64": "0.35.3", - "@img/sharp-linuxmusl-x64": "0.35.3", - "@img/sharp-webcontainers-wasm32": "0.35.3", - "@img/sharp-win32-arm64": "0.35.3", - "@img/sharp-win32-ia32": "0.35.3", - "@img/sharp-win32-x64": "0.35.3" + "@img/sharp-darwin-arm64": "0.35.4", + "@img/sharp-darwin-x64": "0.35.4", + "@img/sharp-freebsd-wasm32": "0.35.4", + "@img/sharp-libvips-darwin-arm64": "1.3.3", + "@img/sharp-libvips-darwin-x64": "1.3.3", + "@img/sharp-libvips-linux-arm": "1.3.3", + "@img/sharp-libvips-linux-arm64": "1.3.3", + "@img/sharp-libvips-linux-ppc64": "1.3.3", + "@img/sharp-libvips-linux-riscv64": "1.3.3", + "@img/sharp-libvips-linux-s390x": "1.3.3", + "@img/sharp-libvips-linux-x64": "1.3.3", + "@img/sharp-libvips-linuxmusl-arm64": "1.3.3", + "@img/sharp-libvips-linuxmusl-x64": "1.3.3", + "@img/sharp-linux-arm": "0.35.4", + "@img/sharp-linux-arm64": "0.35.4", + "@img/sharp-linux-ppc64": "0.35.4", + "@img/sharp-linux-riscv64": "0.35.4", + "@img/sharp-linux-s390x": "0.35.4", + "@img/sharp-linux-x64": "0.35.4", + "@img/sharp-linuxmusl-arm64": "0.35.4", + "@img/sharp-linuxmusl-x64": "0.35.4", + "@img/sharp-webcontainers-wasm32": "0.35.4", + "@img/sharp-win32-arm64": "0.35.4", + "@img/sharp-win32-ia32": "0.35.4", + "@img/sharp-win32-x64": "0.35.4" }, "peerDependenciesMeta": { "@types/node": { @@ -4840,143 +3549,24 @@ } }, "node_modules/shiki": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/shiki/-/shiki-4.3.1.tgz", - "integrity": "sha512-oR+qDVi2OjX1tmDpyv+3KviX01KzO6Af+0NNnKnsp9491UEGz2YpxTuJboS/6VhYpTdqzmuJBuiTlrAWWJAssw==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/shiki/-/shiki-4.4.3.tgz", + "integrity": "sha512-Mb/GvXPHBAXdgGIcnfU5L3ldpn1XcxrGkPHwqgRx17/I2XRfqlFKk2vGkHWINn1kdXvzJZeuO3is6I9KLPFm0g==", "license": "MIT", "dependencies": { - "@shikijs/core": "4.3.1", - "@shikijs/engine-javascript": "4.3.1", - "@shikijs/engine-oniguruma": "4.3.1", - "@shikijs/langs": "4.3.1", - "@shikijs/themes": "4.3.1", - "@shikijs/types": "4.3.1", + "@shikijs/core": "4.4.3", + "@shikijs/engine-javascript": "4.4.3", + "@shikijs/engine-oniguruma": "4.4.3", + "@shikijs/langs": "4.4.3", + "@shikijs/themes": "4.4.3", + "@shikijs/types": "4.4.3", "@shikijs/vscode-textmate": "^10.0.2", - "@types/hast": "^3.0.4" + "@types/hast": "^3.0.5" }, "engines": { "node": ">=20" } }, - "node_modules/side-channel": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", - "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.4", - "side-channel-list": "^1.0.1", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-list": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", - "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/simple-git": { - "version": "3.36.0", - "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.36.0.tgz", - "integrity": "sha512-cGQjLjK8bxJw4QuYT7gxHw3/IouVESbhahSsHrX97MzCL1gu2u7oy38W6L2ZIGECEfIBG4BabsWDPjBxJENv9Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@kwsites/file-exists": "^1.1.1", - "@kwsites/promise-deferred": "^1.1.1", - "@simple-git/args-pathspec": "^1.0.3", - "@simple-git/argv-parser": "^1.1.0", - "debug": "^4.4.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/steveukx/git-js?sponsor=1" - } - }, - "node_modules/simple-git/node_modules/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/simple-git/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" - }, "node_modules/sisteransi": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", @@ -4984,9 +3574,9 @@ "license": "MIT" }, "node_modules/smol-toml": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.7.0.tgz", - "integrity": "sha512-aqVvWoyO21L23mb+drl4RmMXbf6N7FdHjAhTRA9ZBL7apWBgfWC16KjrASI+1p9GAroljyMHj6fK67i0UiTNvQ==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.8.0.tgz", + "integrity": "sha512-kCZr2V3ch9i00x8zXRhjUNVcjG9ijES5dDudkXvUVCT5QlJNQWElSJdZqyPemffHoLNUYwOcou0Fy+ojN0uHSQ==", "license": "BSD-3-Clause", "engines": { "node": ">= 18" @@ -5014,36 +3604,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/stack-trace": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", - "integrity": "sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/statuses": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", - "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, "node_modules/stringify-entities": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz", @@ -5083,13 +3643,6 @@ "url": "https://opencollective.com/svgo" } }, - "node_modules/text-hex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz", - "integrity": "sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==", - "dev": true, - "license": "MIT" - }, "node_modules/tiny-inflate": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/tiny-inflate/-/tiny-inflate-1.0.3.tgz", @@ -5130,16 +3683,6 @@ "url": "https://github.com/sponsors/SuperchupuDev" } }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.6" - } - }, "node_modules/trim-lines": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", @@ -5150,16 +3693,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/triple-beam": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.4.1.tgz", - "integrity": "sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14.0.0" - } - }, "node_modules/trough": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz", @@ -5174,22 +3707,8 @@ "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "devOptional": true, - "license": "0BSD" - }, - "node_modules/type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "dev": true, - "license": "MIT", - "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - }, - "engines": { - "node": ">= 0.6" - } + "license": "0BSD", + "optional": true }, "node_modules/ufo": { "version": "1.6.4", @@ -5209,6 +3728,15 @@ "integrity": "sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==", "license": "MIT" }, + "node_modules/undici": { + "version": "8.10.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-8.10.1.tgz", + "integrity": "sha512-YQ3WlbqjYMmNpdvDH64jAgLjxuAR9+649calDWhbshYaeQGO2bR4nI94ORJmwI3J9YhoKQnpyGOK+0zlWS5N5Q==", + "license": "MIT", + "engines": { + "node": ">=22.19.0" + } + }, "node_modules/unified": { "version": "11.0.5", "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz", @@ -5229,14 +3757,14 @@ } }, "node_modules/unifont": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/unifont/-/unifont-0.7.4.tgz", - "integrity": "sha512-oHeis4/xl42HUIeHuNZRGEvxj5AaIKR+bHPNegRq5LV1gdc3jundpONbjglKpihmJf+dswygdMJn3eftGIMemg==", + "version": "0.7.5", + "resolved": "https://registry.npmjs.org/unifont/-/unifont-0.7.5.tgz", + "integrity": "sha512-ULe/Cs+ZIsq+dcFofNkhqielCrUJnb5mr+Yc4EBM2VlL+6OZR6+cjtI2mT1bJvRBrVncqHAbLURxmPLcCXzWMg==", "license": "MIT", "dependencies": { "css-tree": "^3.1.0", - "ofetch": "^1.5.1", - "ohash": "^2.0.11" + "ohash": "^2.0.11", + "undici": "^8.0.0" } }, "node_modules/unist-util-is": { @@ -5307,16 +3835,6 @@ "url": "https://opencollective.com/unified" } }, - "node_modules/unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, "node_modules/unstorage": { "version": "1.17.5", "resolved": "https://registry.npmjs.org/unstorage/-/unstorage-1.17.5.tgz", @@ -5413,33 +3931,6 @@ } } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true, - "license": "MIT" - }, - "node_modules/utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, "node_modules/vfile": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", @@ -5454,20 +3945,6 @@ "url": "https://opencollective.com/unified" } }, - "node_modules/vfile-location": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-5.0.3.tgz", - "integrity": "sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, "node_modules/vfile-message": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz", @@ -5578,61 +4055,6 @@ } } }, - "node_modules/web-namespaces": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz", - "integrity": "sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/what-the-diff": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/what-the-diff/-/what-the-diff-0.6.0.tgz", - "integrity": "sha512-8BgQ4uo4cxojRXvCIcqDpH4QHaq0Ksn2P3LYfztylC5LDSwZKuGHf0Wf7sAStjPLTcB8eCB8pJJcPQSWfhZlkg==", - "dev": true, - "license": "MIT" - }, - "node_modules/winston": { - "version": "3.19.0", - "resolved": "https://registry.npmjs.org/winston/-/winston-3.19.0.tgz", - "integrity": "sha512-LZNJgPzfKR+/J3cHkxcpHKpKKvGfDZVPS4hfJCc4cCG0CgYzvlD6yE/S3CIL/Yt91ak327YCpiF/0MyeZHEHKA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@colors/colors": "^1.6.0", - "@dabh/diagnostics": "^2.0.8", - "async": "^3.2.3", - "is-stream": "^2.0.0", - "logform": "^2.7.0", - "one-time": "^1.0.0", - "readable-stream": "^3.4.0", - "safe-stable-stringify": "^2.3.1", - "stack-trace": "0.0.x", - "triple-beam": "^1.3.0", - "winston-transport": "^4.9.0" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/winston-transport": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.9.0.tgz", - "integrity": "sha512-8drMJ4rkgaPo1Me4zD/3WLfI/zPdA9o2IipKODunnGDcuqbHwjsbB79ylv04LCGGzU0xQ6vTznOMpQGaLhhm6A==", - "dev": true, - "license": "MIT", - "dependencies": { - "logform": "^2.7.0", - "readable-stream": "^3.6.2", - "triple-beam": "^1.3.0" - }, - "engines": { - "node": ">= 12.0.0" - } - }, "node_modules/xxhash-wasm": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/xxhash-wasm/-/xxhash-wasm-1.1.0.tgz", @@ -5661,9 +4083,9 @@ } }, "node_modules/zod": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz", - "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==", + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.5.4.tgz", + "integrity": "sha512-sC95tT5iHHH9gtpj6A81kh+NEaRAUFN+qlUPDUbRfOMvNf5QCBqsb3WgvnpVtK5Y+4UfA6KqufotuTvMGiTlsA==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" diff --git a/package.json b/package.json index f07620c..94464e4 100644 --- a/package.json +++ b/package.json @@ -1,19 +1,14 @@ { - "name": "ctao-demo-git-cms", + "name": "ctao-portal", "type": "module", "version": "0.1.0", "private": true, "scripts": { - "dev": "astro dev --port 4321 --host", + "dev": "astro dev", "build": "astro build", - "preview": "astro preview --port 4321 --host", - "demo": "astro build && astro preview --port 4321 --host", - "cms-proxy": "PORT=8082 decap-server" + "preview": "astro preview" }, "dependencies": { - "astro": "latest" - }, - "devDependencies": { - "decap-server": "latest" + "astro": "^7.2.10" } } diff --git a/public/admin/config.yml b/public/admin/config.yml index fe2a887..2d2503d 100644 --- a/public/admin/config.yml +++ b/public/admin/config.yml @@ -59,6 +59,7 @@ collections: - { name: category, label: "Category", widget: string, default: "news" } - { name: author, label: "Author", widget: string, default: "CTAO" } - { name: cover, label: "Cover image", widget: image, required: false } + - { name: lang, label: "Language (if not English, e.g. pl)", widget: string, required: false } - { name: draft, label: "Draft (unpublished)", widget: boolean, default: false } - { name: body, label: "Body", widget: markdown } diff --git a/public/admin/preview.css b/public/admin/preview.css index 6509685..b4d3a0c 100644 --- a/public/admin/preview.css +++ b/public/admin/preview.css @@ -5,9 +5,17 @@ dropped from selectors (the preview pane has no such wrapper). KEEP IN SYNC: when you touch `.prose` or the tokens in global.css, update the corresponding value here (a matching reminder sits next to `.prose`). - Fonts: same families as the site (site inlines them; the preview loads them - from Google Fonts — editors' browsers are online by definition). */ -@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400..700&family=Space+Grotesk:wght@500..700&display=swap"); + Fonts: same self-hosted woff2 files the site uses, same origin. (The + Sveltia bundle still loads its own UI fonts from jsDelivr — only the + PREVIEW pane is CDN-free.) */ +@font-face { + font-family: "Inter"; font-weight: 400 700; font-display: swap; + src: url("/fonts/inter-latin.woff2") format("woff2"); +} +@font-face { + font-family: "Space Grotesk"; font-weight: 500 700; font-display: swap; + src: url("/fonts/space-grotesk-latin.woff2") format("woff2"); +} :root { /* tokens copied from global.css :root */ @@ -22,6 +30,7 @@ --fs-s: 0.9rem; --fs-l: 1.125rem; --fs-xl: 1.5rem; + --fs-h1: clamp(2.25rem, 5vw, 3.5rem); --radius: 16px; } @@ -42,7 +51,8 @@ a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; /* = global.css `.prose` rules, selectors unwrapped = */ body { line-height: 1.65; overflow-wrap: break-word; } -h1 { color: var(--galaxy); } +a { overflow-wrap: anywhere; } +h1 { color: var(--galaxy); font-size: var(--fs-h1); } h2 { color: var(--galaxy); margin: 44px 0 12px; font-size: var(--fs-xl); } h3 { color: var(--galaxy); margin: 30px 0 8px; font-size: var(--fs-l); } p { margin: 0 0 16px; text-wrap: pretty; } @@ -52,7 +62,7 @@ blockquote { margin: 22px 0; padding: 12px 20px; border-left: 3px solid var(--galaxy); background: var(--moon); color: var(--text); } -img { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); } +img { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); } img + em, p > em:only-child { color: var(--muted); font-size: var(--fs-s); } hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; } table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 16px; font-size: var(--fs-s); } diff --git a/public/search-client.js b/public/search-client.js index 5315bc2..d2c06a0 100644 --- a/public/search-client.js +++ b/public/search-client.js @@ -26,7 +26,15 @@ let index = null; let timer; async function ensureIndex() { - if (!index) index = await (await fetch('/search.json')).json(); + if (index) return index; + try { + index = await (await fetch('/search.json')).json(); + } catch { + // Network hiccup: say so instead of failing silently; index stays + // null so the next keystroke retries. + status.textContent = 'Search is unavailable right now.'; + return null; + } return index; } // First title match wrapped in (Starlight search pattern) — built @@ -77,7 +85,9 @@ frag.append(label('Recent')); for (const term of r) frag.append(row([term], '/search?q=' + encodeURIComponent(term), term)); } - const fresh = (await ensureIndex()).slice(0, Math.max(1, 5 - r.length)); + const idx = await ensureIndex(); + if (!idx) return; + const fresh = idx.slice(0, Math.max(1, 5 - r.length)); if (input.value.trim().length >= 2) return; // typed meanwhile — run() owns the list frag.append(label('Latest news')); for (const p of fresh) { @@ -95,6 +105,7 @@ const q = input.value.trim().toLowerCase(); if (q.length < 2) { list.replaceChildren(); idle(); return; } const idx = await ensureIndex(); + if (!idx) { list.replaceChildren(); return; } const hits = idx .filter((p) => (p.title + ' ' + p.description + ' ' + p.category).toLowerCase().includes(q)) .slice(0, opts.limit); @@ -111,6 +122,17 @@ li.append(small); frag.append(li); } + // Dropdown only: an empty list would collapse (.suggest:empty) and the + // panel would just vanish — show the no-results line sighted users too + // (the status line above is sr-only in the header; /search shows a + // visible notice instead). + if (!hits.length && opts.dismiss) { + const li = document.createElement('li'); + li.className = 'suggest-hint'; + li.setAttribute('aria-hidden', 'true'); // the status line announces it + li.textContent = 'No results for “' + input.value.trim() + '”'; + frag.append(li); + } list.replaceChildren(frag); hint(); } @@ -122,13 +144,14 @@ const a = e.target.closest && e.target.closest('a'); remember((a && a.dataset.q) || input.value); }); - // Dropdown dismiss (opt-in — /search keeps its results list). A suggestion - // list is a NON-MODAL combobox popup (ARIA combobox pattern): interacting - // outside the field+list closes it but the interaction is NOT swallowed — + // Dropdown dismiss (opt-in — /search keeps its results list). The + // suggestion list is a NON-MODAL popup (combobox-style; plain + // Tab-reachable links, no roving arrow-key focus): interacting outside + // the field+list closes it but the interaction is NOT swallowed — // unlike the modal header panels, which scrim-dismiss in Base.astro. if (opts.dismiss) { const box = input.closest('form') || input.parentElement; - const hide = () => { clearTimeout(timer); list.innerHTML = ''; status.textContent = ''; }; + const hide = () => { clearTimeout(timer); list.replaceChildren(); status.textContent = ''; }; document.addEventListener('pointerdown', (e) => { if (list.firstChild && !box.contains(e.target)) hide(); }); // relatedTarget may be null mid-click on our own links — pointerdown covers that path box.addEventListener('focusout', (e) => { if (e.relatedTarget && !box.contains(e.relatedTarget)) hide(); }); diff --git a/public/uploads/CTAO_North_Alpha_Final_2024.png b/public/uploads/CTAO_North_Alpha_Final_2024.png deleted file mode 100644 index a69ec16..0000000 Binary files a/public/uploads/CTAO_North_Alpha_Final_2024.png and /dev/null differ diff --git a/public/uploads/CTAO_South_Alpha_Final2_2024-1248x1600.png b/public/uploads/CTAO_South_Alpha_Final2_2024-1248x1600.png deleted file mode 100644 index f451977..0000000 Binary files a/public/uploads/CTAO_South_Alpha_Final2_2024-1248x1600.png and /dev/null differ diff --git a/public/uploads/JaneGoodall_CTAO.png b/public/uploads/JaneGoodall_CTAO.png deleted file mode 100644 index 971e4a5..0000000 Binary files a/public/uploads/JaneGoodall_CTAO.png and /dev/null differ diff --git a/public/uploads/SST_Shower-1600x754.png b/public/uploads/SST_Shower-1600x754.png deleted file mode 100644 index a5ebb22..0000000 Binary files a/public/uploads/SST_Shower-1600x754.png and /dev/null differ diff --git a/public/vendor/sveltia-cms.js b/public/vendor/sveltia-cms.js new file mode 100644 index 0000000..e1b9df9 --- /dev/null +++ b/public/vendor/sveltia-cms.js @@ -0,0 +1,3418 @@ +(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;lt[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},l=(e,r,i)=>(i=e==null?{}:t(a(e)),c(r||!e||!e.__esModule||!o.call(e,`default`)?n(i,`default`,{value:e,enumerable:!0}):i,e)),u=s((e=>{ +/** +* @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 t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ee(e,t){return E(e.type,t,e.props)}function te(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ne(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var re=/\/+/g;function ie(e,t){return typeof e==`object`&&e&&e.key!=null?ne(``+e.key):t.toString(36)}function ae(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function oe(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,oe(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ie(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(re,`$&/`)+`/`),oe(o,r,i,``,function(e){return e})):o!=null&&(te(o)&&(o=ee(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(re,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=u()})),f=s(((e,t)=>{ +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/ +var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l{var n=f(),r={};function i(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}var a=`mixins`;function o(e){return e}function s(e,t,s){var c=[],l={mixins:`DEFINE_MANY`,statics:`DEFINE_MANY`,propTypes:`DEFINE_MANY`,contextTypes:`DEFINE_MANY`,childContextTypes:`DEFINE_MANY`,getDefaultProps:`DEFINE_MANY_MERGED`,getInitialState:`DEFINE_MANY_MERGED`,getChildContext:`DEFINE_MANY_MERGED`,render:`DEFINE_ONCE`,componentWillMount:`DEFINE_MANY`,componentDidMount:`DEFINE_MANY`,componentWillReceiveProps:`DEFINE_MANY`,shouldComponentUpdate:`DEFINE_ONCE`,componentWillUpdate:`DEFINE_MANY`,componentDidUpdate:`DEFINE_MANY`,componentWillUnmount:`DEFINE_MANY`,UNSAFE_componentWillMount:`DEFINE_MANY`,UNSAFE_componentWillReceiveProps:`DEFINE_MANY`,UNSAFE_componentWillUpdate:`DEFINE_MANY`,updateComponent:`OVERRIDE_BASE`},u={getDerivedStateFromProps:`DEFINE_MANY_MERGED`},d={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n{var n=d(),r=p();if(n===void 0)throw Error(`create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.`);var i=new n.Component().updater;t.exports=r(n.Component,n.isValidElement,i)}))(),1); +/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */ +function h(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2?n-2:0),i=2;i1?t-1:0),r=1;r`u`?null:Te(BigInt.prototype.toString),be=typeof Symbol>`u`?null:Te(Symbol.prototype.toString),xe=Te(Object.prototype.hasOwnProperty),Se=Te(Object.prototype.toString),Ce=Te(RegExp.prototype.test),we=Ee(TypeError);function Te(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:de;if(S&&S(e,null),!ue(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(C(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Oe(e){for(let t=0;t/g),Ke=ee(/\${[\w\W]*/g),qe=ee(/^data-[\-\w.\u00B7-\uFFFF]+$/),Je=ee(/^aria-[\-\w]+$/),Ye=ee(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Xe=ee(/^(?:\w+script|data):/i),Ze=ee(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qe=ee(/^html$/i),$e=ee(/^[a-z][.\w]*(-[.\w]+)+$/i),et=ee(/<[/\w!]/g),tt=ee(/<[/\w]/g),nt=ee(/<\/no(script|embed|frames)/i),rt=ee(/\/>/i),it={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},at=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],ot=E(De({},at)),st=function(){let e={};return ae(at,t=>{e[t]=ee(RegExp(`])`,`i`))}),E(e)}(),ct=function(){return typeof window>`u`?null:window},lt=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},ut=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},dt=function(e,t,n,r){return xe(e,t)&&ue(e[t])?De(r.base?ke(r.base):{},e[t],r.transform):n},ft=function(e,t,n){let r=xe(e,t)?e[t]:void 0;return r&&typeof r==`object`?ke(r):n()};function pt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ct(),t=e=>pt(e);if(t.version=`3.4.14`,t.removed=[],!e||!e.document||e.document.nodeType!==it.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=je(d,`cloneNode`),p=je(d,`remove`),m=je(d,`nextSibling`),h=je(d,`childNodes`),g=je(d,`parentNode`),_=je(d,`shadowRoot`),v=je(d,`attributes`),y=o&&o.prototype?je(o.prototype,`nodeType`):null,b=o&&o.prototype?je(o.prototype,`nodeName`):null,S=o&&o.prototype?je(o.prototype,`ownerDocument`):null,C=function(e){return y?y(e):e.nodeType},w=function(e){return b?b(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let T,ne=``,re,ie=!1,_e=0,ve=function(){if(_e>0)throw we(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},ye=function(e){ve(),_e++;try{return T.createHTML(e)}finally{_e--}},be=function(e){ve(),_e++;try{return T.createScriptURL(e)}finally{_e--}},Se=function(){return ie||=(re=lt(u,i),!0),re},Te=n,Ee=Te.implementation,Oe=Te.createNodeIterator,at=Te.createDocumentFragment,mt=Te.getElementsByTagName,ht=r.importNode,gt=ut();t.isSupported=typeof x==`function`&&typeof g==`function`&&Ee&&Ee.createHTMLDocument!==void 0;let _t=We,vt=Ge,yt=Ke,bt=qe,xt=Je,St=Xe,Ct=Ze,wt=$e,Tt=Ye,Et=null,Dt=De({},[...Ne,...Pe,...Fe,...Le,...ze]),Ot=null,kt=De({},[...Be,...Ve,...He,...Ue]),At=Object.seal(te(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),jt=null,Mt=null,Nt=Object.seal(te(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Pt=!0,Ft=!0,It=!1,Lt=!0,Rt=!1,zt=!0,Bt=!1,Vt=!1,Ht=null,Ut=null,Wt=!1,Gt=!1,Kt=!1,qt=!1,Jt=!0,Yt=!1,Xt=`user-content-`,Zt=!0,Qt=!1,$t={},en=null,tn=De({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),nn=null,rn=De({},[`audio`,`video`,`img`,`source`,`image`,`track`]),an=null,on=De({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),sn=`http://www.w3.org/1998/Math/MathML`,cn=`http://www.w3.org/2000/svg`,ln=`http://www.w3.org/1999/xhtml`,un=ln,dn=!1,fn=null,pn=De({},[sn,cn,ln],fe),mn=E([`mi`,`mo`,`mn`,`ms`,`mtext`]),hn=De({},mn),gn=E([`annotation-xml`]),_n=De({},gn),vn=De({},[`title`,`style`,`font`,`a`,`script`]),yn=null,bn=[`application/xhtml+xml`,`text/html`],xn=null,Sn=null,Cn=n.createElement(`form`),wn=function(e){return e instanceof RegExp||e instanceof Function},Tn=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Sn&&Sn===e)return;(!e||typeof e!=`object`)&&(e={}),e=ke(e),yn=bn.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,xn=yn===`application/xhtml+xml`?fe:de,Et=dt(e,`ALLOWED_TAGS`,Dt,{transform:xn}),Ot=dt(e,`ALLOWED_ATTR`,kt,{transform:xn}),fn=dt(e,`ALLOWED_NAMESPACES`,pn,{transform:fe}),an=dt(e,`ADD_URI_SAFE_ATTR`,on,{transform:xn,base:on}),nn=dt(e,`ADD_DATA_URI_TAGS`,rn,{transform:xn,base:rn}),en=dt(e,`FORBID_CONTENTS`,tn,{transform:xn}),jt=dt(e,`FORBID_TAGS`,ke({}),{transform:xn}),Mt=dt(e,`FORBID_ATTR`,ke({}),{transform:xn}),$t=xe(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?ke(e.USE_PROFILES):e.USE_PROFILES:!1,Pt=e.ALLOW_ARIA_ATTR!==!1,Ft=e.ALLOW_DATA_ATTR!==!1,It=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Lt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Rt=e.SAFE_FOR_TEMPLATES||!1,zt=e.SAFE_FOR_XML!==!1,Bt=e.WHOLE_DOCUMENT||!1,Gt=e.RETURN_DOM||!1,Kt=e.RETURN_DOM_FRAGMENT||!1,qt=e.RETURN_TRUSTED_TYPE||!1,Wt=e.FORCE_BODY||!1,Jt=e.SANITIZE_DOM!==!1,Yt=e.SANITIZE_NAMED_PROPS||!1,Zt=e.KEEP_CONTENT!==!1,Qt=e.IN_PLACE||!1,Tt=Me(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Ye,un=typeof e.NAMESPACE==`string`?e.NAMESPACE:ln,hn=ft(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>De({},mn)),_n=ft(e,`HTML_INTEGRATION_POINTS`,()=>De({},gn));let t=ft(e,`CUSTOM_ELEMENT_HANDLING`,()=>te(null));if(At=te(null),xe(t,`tagNameCheck`)&&wn(t.tagNameCheck)&&(At.tagNameCheck=t.tagNameCheck),xe(t,`attributeNameCheck`)&&wn(t.attributeNameCheck)&&(At.attributeNameCheck=t.attributeNameCheck),xe(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(At.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),ee(At),Rt&&(Ft=!1),Kt&&(Gt=!0),$t&&(Et=De({},ze),Ot=te(null),$t.html===!0&&(De(Et,Ne),De(Ot,Be)),$t.svg===!0&&(De(Et,Pe),De(Ot,Ve),De(Ot,Ue)),$t.svgFilters===!0&&(De(Et,Fe),De(Ot,Ve),De(Ot,Ue)),$t.mathMl===!0&&(De(Et,Le),De(Ot,He),De(Ot,Ue))),Nt.tagCheck=null,Nt.attributeCheck=null,xe(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Nt.tagCheck=e.ADD_TAGS:ue(e.ADD_TAGS)&&(Et===Dt&&(Et=ke(Et)),De(Et,e.ADD_TAGS,xn))),xe(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Nt.attributeCheck=e.ADD_ATTR:ue(e.ADD_ATTR)&&(Ot===kt&&(Ot=ke(Ot)),De(Ot,e.ADD_ATTR,xn))),xe(e,`ADD_FORBID_CONTENTS`)&&ue(e.ADD_FORBID_CONTENTS)&&(en===tn&&(en=ke(en)),De(en,e.ADD_FORBID_CONTENTS,xn)),Zt&&(Et[`#text`]=!0),Bt&&De(Et,[`html`,`head`,`body`]),Et.table&&(De(Et,[`tbody`]),delete jt.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw we(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw we(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=T;T=e.TRUSTED_TYPES_POLICY;try{ne=ye(``)}catch(e){throw T=t,e}}else e.TRUSTED_TYPES_POLICY===null?(T=void 0,ne=``):(T===void 0&&(T=Se()),T&&typeof ne==`string`&&(ne=ye(``)));E&&E(e),Sn=e},En=De({},[...Pe,...Fe,...Ie]),Dn=De({},[...Le,...Re]),On=function(e,t,n){return t.namespaceURI===ln?e===`svg`:t.namespaceURI===sn?e===`svg`&&(n===`annotation-xml`||hn[n]):!!En[e]},kn=function(e,t,n){return t.namespaceURI===ln?e===`math`:t.namespaceURI===cn?e===`math`&&_n[n]:!!Dn[e]},An=function(e,t,n){return t.namespaceURI===cn&&!_n[n]||t.namespaceURI===sn&&!hn[n]?!1:!Dn[e]&&(vn[e]||!En[e])},jn=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:un,tagName:`template`});let n=de(e.tagName),r=de(t.tagName);return fn[e.namespaceURI]?e.namespaceURI===cn?On(n,t,r):e.namespaceURI===sn?kn(n,t,r):e.namespaceURI===ln?An(n,t,r):!!(yn===`application/xhtml+xml`&&fn[e.namespaceURI]):!1},Mn=function(e){ce(t.removed,{element:e});try{g(e).removeChild(e)}catch{if(p(e),!g(e))throw we(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},Nn=function(e,t,n){try{e.removeAttributeNode(t)}catch{try{e.removeAttribute(n)}catch{}}},Pn=function(e){Ln(e);let t=h(e);if(t){let e=[];ae(t,t=>{ce(e,t)}),ae(e,e=>{try{p(e)}catch{}})}let n=v(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&Nn(e,r,i)}},Fn=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}ce(t.removed,{attribute:r||null,from:n});try{r?n.removeAttributeNode(r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(Gt||Kt)try{Mn(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},In=function(e){let t=v(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||Ot[xn(i)]||Nn(e,r,i)}},Ln=function(e){let t=[e];for(;t.length>0;){let e=t.pop();C(e)===it.element&&In(e);let n=h(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Rn=function(e,t){return zt?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},zn=function(e){if(!zt)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=C(e);if(n===it.processingInstruction||n===it.comment&&Ce(tt,e.data)){try{p(e)}catch{}continue}if(n===it.element){let t=e,n=xn(w(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&Rn(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=h(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},Bn=function(e){let t=null,r=null;if(Wt)e=``+e;else{let t=pe(e,/^[\r\n\t ]+/);r=t&&t[0]}yn===`application/xhtml+xml`&&un===ln&&(e=``+e+``);let i=T?ye(e):e;if(un===ln)try{t=new l().parseFromString(i,yn)}catch{}if(!t||!t.documentElement){t=Ee.createDocument(un,`template`,null);try{t.documentElement.innerHTML=dn?ne:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),un===ln?mt.call(t,Bt?`html`:`body`)[0]:Bt?t.documentElement:a},Vn=function(e){let t=S?S(e):e.ownerDocument;return Oe.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Hn=function(e){return e=me(e,_t,` `),e=me(e,vt,` `),e=me(e,yt,` `),e},Un=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=Oe.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Hn(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&ae(i,e=>{Gn(e.content)&&Un(e.content)})},Wn=function(e){let t=b?b(e):null;return typeof t!=`string`||xn(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==v(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==y(e)||e.childNodes!==h(e)},Gn=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return y(e)===it.documentFragment}catch{return!1}},Kn=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return typeof y(e)==`number`}catch{return!1}};function qn(e,n,r){e.length!==0&&ae(e,e=>{e.call(t,n,r,Sn)})}let Jn=function(e,t){return!!(zt&&e.hasChildNodes()&&!Kn(e.firstElementChild)&&Ce(et,e.textContent)&&Ce(et,e.innerHTML)||zt&&e.namespaceURI===ln&&ot[t]&&(Kn(e.firstElementChild)||typeof e.textContent==`string`&&Ce(st[t],e.textContent))||e.nodeType===it.processingInstruction||zt&&e.nodeType===it.comment&&Ce(tt,e.data))},Yn=function(e,t){if(e instanceof RegExp)return Ce(e,t);if(e instanceof Function){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,m(e))}}}return Mn(e),!0},Zn=function(e,t,n,r){return e.length===0?t:t===n||t===r?ke(t):t},Qn=function(e,t){return e===t||g(e)!==null?!1:(Qt&&Ln(e),!0)},$n=function(e,n){if(qn(gt.beforeSanitizeElements,e,null),Qn(e,n))return!0;if(Wn(e))return Mn(e),!0;let r=xn(w(e));if(Et=Zn(gt.uponSanitizeElement,Et,Dt,Ht),qn(gt.uponSanitizeElement,e,{tagName:r,allowedTags:Et}),Qn(e,n))return!0;if(Jn(e,r))return Mn(e),!0;if(jt[r]||!(Nt.tagCheck instanceof Function&&Nt.tagCheck(r))&&!Et[r]){let t=Xn(e,r,n);return t===!1&&qn(gt.afterSanitizeElements,e,null),t}if(C(e)===it.element&&!jn(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Ce(nt,e.innerHTML))return Mn(e),!0;if(Rt&&e.nodeType===it.text){let n=Hn(e.textContent);e.textContent!==n&&(ce(t.removed,{element:e.cloneNode()}),e.textContent=n)}return qn(gt.afterSanitizeElements,e,null),!1},er=function(e,t,r){if(Mt[t]||Rn(t,e)||Jt&&(t===`id`||t===`name`)&&(r in n||r in Cn))return!1;let i=Ot[t]||Nt.attributeCheck instanceof Function&&Nt.attributeCheck(t,e);return Ft&&Ce(bt,t)||Pt&&Ce(xt,t)?!0:i?an[t]||Ce(Tt,me(r,Ct,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&he(r,`data:`)===0&&nn[e]||It&&!Ce(St,me(r,Ct,``))?!0:!r:nr(e)&&Yn(At.tagNameCheck,e)&&Yn(At.attributeNameCheck,t,e)||t===`is`&&At.allowCustomizedBuiltInElements&&Yn(At.tagNameCheck,r)},tr=De({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),nr=function(e){return!tr[de(e)]&&Ce(wt,e)},rr=function(e,t,n,r){if(T&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return ye(r);case`TrustedScriptURL`:return be(r)}return r},ir=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),Wn(e)?Mn(e):se(t.removed)}catch{Fn(n,e)}},ar=function(e){qn(gt.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||Wn(e))return;Ot=Zn(gt.uponSanitizeAttribute,Ot,kt,Ut);let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:Ot,forceKeepAttr:void 0},r=t.length,i=xn(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=xn(o),u=c,d=o===`value`?u:ge(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,qn(gt.uponSanitizeAttribute,e,n),d=n.attrValue,Yt&&(l===`id`||l===`name`)&&he(d,Xt)!==0&&(Fn(o,e,a),d=Xt+d),zt&&Ce(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){Fn(o,e,a);continue}if(l===`attributename`&&pe(d,`href`)){Fn(o,e,a);continue}if(!n.forceKeepAttr){if(!n.keepAttr){Fn(o,e,a);continue}if(!Lt&&Ce(rt,d)){Fn(o,e,a);continue}if(Rt&&(d=Hn(d)),!er(i,l,d)){Fn(o,e,a);continue}d=rr(i,l,s,d),d!==u&&ir(e,o,s,d)}}qn(gt.afterSanitizeAttributes,e,null)},or=function(e){let t=null,n=Vn(e);for(qn(gt.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(qn(gt.uponSanitizeShadowNode,t,null),$n(t,e),ar(t),Gn(t.content)&&or(t.content),C(t)===it.element){let e=_(t);Gn(e)&&(sr(e),or(e))}qn(gt.afterSanitizeShadowDOM,e,null)},sr=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){or(e.shadow);continue}let n=e.node,r=C(n)===it.element,i=h(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=b?b(n):null;if(typeof e==`string`&&xn(e)===`template`){let e=n.content;Gn(e)&&t.push({node:e,shadow:null})}}if(r){let e=_(n);Gn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(dn=!e,dn&&(e=``),typeof e!=`string`&&!Kn(e)&&(e=Ae(e),typeof e!=`string`))throw we(`dirty is not a string, aborting`);if(!t.isSupported)return e;Vt?(Et=Ht,Ot=Ut):Tn(n),(gt.uponSanitizeElement.length>0||gt.uponSanitizeAttribute.length>0)&&(Et=ke(Et)),gt.uponSanitizeAttribute.length>0&&(Ot=ke(Ot)),t.removed=[];let c=Qt&&typeof e!=`string`&&Kn(e);if(c){zn(e);let t=w(e);if(typeof t==`string`){let n=xn(t);if(!Et[n]||jt[n])throw Pn(e),we(`root node is forbidden and cannot be sanitized in-place`)}if(Wn(e))throw Pn(e),we(`root node is clobbered and cannot be sanitized in-place`);try{sr(e)}catch(t){throw Pn(e),t}}else if(Kn(e))i=Bn(``),a=i.ownerDocument.importNode(e,!0),a.nodeType===it.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),sr(a);else{if(!Gt&&!Rt&&!Bt&&e.indexOf(`<`)===-1)return T&&qt?ye(e):e;if(i=Bn(e),!i)return Gt?null:qt?ne:``}i&&Wt&&Mn(i.firstChild);let l=c?e:i;try{let e=Vn(l);for(;o=e.nextNode();)$n(o,l),ar(o),Gn(o.content)&&or(o.content)}catch(n){throw c&&(Pn(e),ae(t.removed,e=>{e.element&&Ln(e.element)})),n}if(c)return ae(t.removed,e=>{e.element&&Ln(e.element)}),Rt&&Un(e),e;if(Gt){if(Rt&&Un(i),Kt)for(s=at.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(Ot.shadowroot||Ot.shadowrootmode)&&(s=ht.call(r,s,!0)),s}let u=Bt?i.outerHTML:i.innerHTML;return Bt&&Et[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Ce(Qe,i.ownerDocument.doctype.name)&&(u=` +`+u),Rt&&(u=Hn(u)),T&&qt?ye(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Tn(e),Vt=!0,Ht=Et,Ut=Ot},t.clearConfig=function(){Sn=null,Vt=!1,Ht=null,Ut=null,T=re,ne=``},t.isValidAttribute=function(e,t,n){Sn||Tn({});let r=xn(e),i=xn(t);return er(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&xe(gt,e)&&ce(gt[e],t)},t.removeHook=function(e,t){if(xe(gt,e)){if(t!==void 0){let n=oe(gt[e],t);return n===-1?void 0:le(gt[e],n,1)[0]}return se(gt[e])}},t.removeHooks=function(e){xe(gt,e)&&(gt[e]=[])},t.removeAllHooks=function(){gt=ut()},t}var mt=pt(),ht=mt,gt=mt.sanitize.bind(mt);mt.isSupported,mt.addHook.bind(mt),mt.removeHook.bind(mt),mt.removeHooks.bind(mt),mt.removeAllHooks.bind(mt),mt.setConfig.bind(mt),mt.clearConfig.bind(mt),mt.isValidAttribute.bind(mt),mt.version,mt.removed;function _t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var vt=_t();function yt(e){vt=e}var bt={exec:()=>null};function xt(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function St(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(wt.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var Ct=((e=``)=>{try{return!!RegExp(`(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:xt(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:xt(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:xt(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:xt(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:xt(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:xt(e=>RegExp(`^ {0,${e}}>`))},Tt=/^(?:[ \t]*(?:\n|$))+/,Et=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Dt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ot=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,kt=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,At=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,jt=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Mt=St(jt).replace(/bull/g,At).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Nt=St(jt).replace(/bull/g,At).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Pt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Ft=/^[^\n]+/,It=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Lt=St(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,It).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Rt=St(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,At).getRegex(),zt=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Bt=/|$))/,Vt=St(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|[^\\n]*\\n*|$)|[^\\n]*\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Bt).replace(`tag`,zt).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ht=e=>St(Pt).replace(`hr`,Ot).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,e).replace(`html`,`)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,zt).getRegex(),Ut=Ht(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Wt=Ht(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Gt={blockquote:St(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Wt).getRegex(),code:Et,def:Lt,fences:Dt,heading:kt,hr:Ot,html:Vt,lheading:Mt,list:Rt,newline:Tt,paragraph:Ut,table:bt,text:Ft},Kt=St(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Ot).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,zt).getRegex(),qt={...Gt,lheading:Nt,table:Kt,paragraph:St(Pt).replace(`hr`,Ot).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Kt).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,`)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,zt).getRegex()},Jt={...Gt,html:St(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Bt).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:bt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:St(Pt).replace(`hr`,Ot).replace(`heading`,` *#{1,6} *[^ +]`).replace(`lheading`,Mt).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Yt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Xt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Zt=/^( {2,}|\\)\n(?!\s*$)/,Qt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,Ct?"(?`+)[^`]+\k(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),ln=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,un=St(ln,`u`).replace(/punct/g,$t).getRegex(),dn=St(ln,`u`).replace(/punct/g,an).getRegex(),fn=St(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,`u`).replace(/openQuote/g,rn).replace(/punct/g,$t).getRegex(),pn=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,mn=St(pn,`gu`).replace(/notPunctSpace/g,tn).replace(/punctSpace/g,en).replace(/punct/g,$t).getRegex(),hn=St(pn,`gu`).replace(/notPunctSpace/g,sn).replace(/punctSpace/g,on).replace(/punct/g,an).getRegex(),gn=St(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,tn).replace(/punctSpace/g,en).replace(/punct/g,$t).getRegex(),_n=St(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,tn).replace(/punctSpace/g,en).replace(/punct/g,$t).getRegex(),vn=St(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,tn).replace(/punctSpace/g,en).replace(/punct/g,$t).getRegex(),yn=St(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,$t).getRegex(),bn=St(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,tn).replace(/punctSpace/g,en).replace(/punct/g,$t).getRegex(),xn=St(/\\(punct)/,`gu`).replace(/punct/g,$t).getRegex(),Sn=St(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Cn=St(Bt).replace(`(?:-->|$)`,`-->`).getRegex(),wn=St(`^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^`).replace(`comment`,Cn).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Tn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,En=St(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,Tn).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Dn=St(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Tn).replace(`ref`,It).getRegex(),On=St(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,It).getRegex(),kn=St(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Dn).replace(`nolink`,On).getRegex(),An=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,jn={_backpedal:bt,anyPunctuation:xn,autolink:Sn,blockSkip:cn,br:Zt,code:Xt,del:bt,delLDelim:bt,delRDelim:bt,emStrongLDelim:un,emStrongRDelimAst:mn,emStrongRDelimUnd:_n,escape:Yt,link:En,nolink:On,punctuation:nn,reflink:Dn,reflinkSearch:kn,tag:wn,text:Qt,url:bt},Mn={...jn,emStrongLDelim:fn,emStrongRDelimAst:gn,emStrongRDelimUnd:vn,link:St(/^!?\[(label)\]\((.*?)\)/).replace(`label`,Tn).getRegex(),reflink:St(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,Tn).getRegex()},Nn={...jn,emStrongRDelimAst:hn,emStrongLDelim:dn,delLDelim:yn,delRDelim:bn,url:St(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,An).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:St(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":`>`,'"':`"`,"'":`'`},Rn=e=>Ln[e];function zn(e,t){if(t){if(wt.escapeTest.test(e))return e.replace(wt.escapeReplace,Rn)}else if(wt.escapeTestNoEncode.test(e))return e.replace(wt.escapeReplaceNoEncode,Rn);return e}function Bn(e){try{e=encodeURI(e).replace(wt.percentDecode,`%`)}catch{return null}return e}function Vn(e,t){let n=e.replace(wt.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(wt.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length=0&&wt.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(` +`)}function Wn(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r0?-2:-1}function Gn(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function Kn(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`),c=e[0].charAt(0)===`!`;r.state.inLink=!0;let l=r.state.linkEmitted,u=r.state.inRawBlock;r.state.linkEmitted=!1;let d=r.inlineTokens(s),f=r.state.linkEmitted;if(r.state.linkEmitted=l,r.state.inLink=!1,!c){if(f){r.state.inRawBlock=u;return}r.state.linkEmitted=!0}return{type:c?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:d}}function qn(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(` +`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(` +`)}var Jn=class{options;rules;lexer;constructor(e){this.options=e||vt}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:Un(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=qn(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Hn(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:Hn(t[0],` +`),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:Hn(t[0],` +`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Hn(t[0],` +`).split(` +`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=Gn(t[2].split(` +`,1)[0],t[1].length),l=e.split(` +`,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+` +`,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(` +`,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=` +`+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=` +`+l}u=!l.trim(),r+=p+` +`,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items)if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}for(let e of i.items){let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=Un(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:Hn(t[0],` +`),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Vn(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(` +`):[],a={type:`table`,raw:Hn(t[0],` +`),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:Hn(t[0],` +`),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===` +`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=Hn(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=Wn(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),Kn(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return Kn(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,o,s=i,c=0,l=r[0][0],u=n===l,d=l===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(r=d.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(o=[...a].length,r[3]||r[4]){s+=o;continue}if(r[5]||r[6]){if(i%3&&!((i+o)%3)){c+=o;continue}if(u)break}if(s-=o,s>0)continue;o=Math.min(o,o+s+c);let t=[...r[0]][0].length,n=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=n.slice(1,-1);return{type:`em`,raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let l=n.slice(2,-2);return{type:`strong`,raw:n,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},Yn=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||vt,this.options.tokenizer=this.options.tokenizer||new Jn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let t={other:wt,block:Fn.normal,inline:In.normal};this.options.pedantic?(t.block=Fn.pedantic,t.inline=In.pedantic):this.options.gfm&&(t.block=Fn.gfm,t.inline=this.options.breaks?In.breaks:In.gfm),this.tokenizer.rules=t}static get rules(){return{block:Fn,inline:In}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(wt.carriageReturn,` +`),this.blockTokens(e,this.tokens);for(let e=0;e(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=` +`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(` +`)?``:` +`)+i.raw,n.text+=` +`+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(` +`)?``:` +`)+i.raw,n.text+=` +`+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(` +`)?``:` +`)+i.raw,r.text+=` +`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(` +`)?``:` +`)+i.raw,n.text+=` +`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes(`[`))return!1;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&e.charAt(n.index-1)!==`!`)return!0;for(let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let e=t[0],n=e.lastIndexOf(`[`);if(!(e.charAt(0)===`!`||!Object.hasOwn(this.tokens.links,e.slice(n+1,-1)))&&!(n>1&&this.linkInText(e.slice(1,n-1))))return!0}return!1}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e;if(this.tokens.links&&e.includes(`[`)){let e=this.tokenizer.rules.inline.reflinkSearch,t=n=>{let r=n.lastIndexOf(`[`);if(!Object.hasOwn(this.tokens.links,n.slice(r+1,-1)))return n;if(r>1&&n.charAt(0)!==`!`){let i=n.slice(1,r-1);if(this.linkInText(i))return`[`+i.replace(e,t)+`][`+`a`.repeat(n.length-r-2)+`]`}return`[`+`a`.repeat(n.length-2)+`]`};n=n.replace(e,t)}n=n.replace(this.tokenizer.rules.inline.anyPunctuation,e=>`+`.repeat(e.length)),n=n.replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+`[`+`a`.repeat(e.length-r-2)+`]`}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,i=``,a=1/0;for(;e;){if(e.length(o=n.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let n=t.at(-1);o.type===`text`&&n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(o=this.tokenizer.emStrong(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.del(e,n,i)){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),t.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(s)){e=e.substring(o.raw.length),o.raw.slice(-1)!==`_`&&(i=o.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},Xn=class{options;parser;constructor(e){this.options=e||vt}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(wt.notSpaceStart)?.[0],i=e.replace(wt.endingNewline,``)+` +`;return r?`
`+(n?i:zn(i,!0))+`
+`:`
`+(n?i:zn(i,!0))+`
+`}blockquote({tokens:e}){return`
+${this.parser.parse(e)}
+`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`${this.parser.parseInline(e)} +`}hr(e){return`
+`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t +`+r+` +`}listitem(e){return`
  • ${this.parser.parse(e.tokens)}
  • +`}checkbox({checked:e}){return` `}paragraph({tokens:e}){return`

    ${this.parser.parseInline(e)}

    +`}table(e){let t=``,n=``;for(let t=0;t${r}`,` + +`+t+` +`+r+`
    +`}tablerow({text:e}){return` +${e} +`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+` +`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${zn(e,!0)}`}br(e){return`
    `}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=Bn(e);if(i===null)return r;e=i;let a=`
    `+r+``,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Bn(e);if(i===null)return zn(n);e=i;let a=`${zn(n)}`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:zn(e.text)}},Zn=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},Qn=class e{options;renderer;textRenderer;constructor(e){this.options=e||vt,this.options.renderer=this.options.renderer||new Xn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Zn}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Xn(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Jn(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new $n;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=$n.passThroughHooks.has(n)?e=>{if(this.defaults.async&&$n.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Yn.lex(e,t??this.defaults)}parser(e,t){return Qn.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?Yn.lex:Yn.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?Qn.parse:Qn.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?Yn.lex:Yn.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?Qn.parse:Qn.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=` +Please report this to https://github.com/markedjs/marked.`,e){let e=`

    An error occurred:

    `+zn(n.message+``,!0)+`
    `;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function tr(e,t){return er.parse(e,t)}tr.options=tr.setOptions=function(e){return er.setOptions(e),tr.defaults=er.defaults,yt(tr.defaults),tr},tr.getDefaults=_t,tr.defaults=vt;function nr(...e){return er.use(...e),tr.defaults=er.defaults,yt(tr.defaults),tr}tr.use=nr,tr.walkTokens=function(e,t){return er.walkTokens(e,t)},tr.parseInline=er.parseInline,tr.Parser=Qn,tr.parser=Qn.parse,tr.Renderer=Xn,tr.TextRenderer=Zn,tr.Lexer=Yn,tr.lexer=Yn.lex,tr.Tokenizer=Jn,tr.Hooks=$n,tr.parse=tr,tr.options,tr.setOptions,tr.walkTokens;var rr=tr.parseInline,ir=tr;Qn.parse,Yn.lex;var ar=d(),or=e=>typeof e==`object`&&!!e&&!Array.isArray(e),sr=e=>JSON.parse(JSON.stringify(e)),cr=Array.isArray,lr=Array.prototype.indexOf,ur=Array.prototype.includes,dr=Array.from,fr=Object.defineProperty,pr=Object.getOwnPropertyDescriptor,mr=Object.getOwnPropertyDescriptors,hr=Object.prototype,gr=Array.prototype,_r=Object.getPrototypeOf,vr=Object.isExtensible;function yr(e){return typeof e==`function`}var br=()=>{};function xr(e){return typeof e?.then==`function`}function Sr(e){for(var t=0;t{e=n,t=r}),resolve:e,reject:t}}function wr(e,t,n=!1){return e===void 0?n?t():t:e}function Tr(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var Er=1<<24,Dr=1024,Or=2048,kr=4096,Ar=8192,jr=16384,Mr=32768,Nr=1<<25,Pr=65536,Fr=1<<18,Ir=1<<19,Lr=1<<20,Rr=1<<25,zr=65536,Br=1<<21,Vr=1<<22,Hr=1<<23,Ur=Symbol(`$state`),Wr=Symbol(`component`),Gr=Symbol(`legacy props`),Kr=Symbol(``),qr=Symbol(`attributes`),Jr=Symbol(`class`),Yr=Symbol(`style`),Xr=Symbol(`text`),Zr=Symbol(`form reset`),Qr=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},$r=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`),ei={},ti=Symbol(`uninitialized`),ni=`http://www.w3.org/1999/xhtml`,ri=`http://www.w3.org/2000/svg`,ii=`http://www.w3.org/1998/Math/MathML`;function ai(){console.warn(`https://svelte.dev/e/derived_inert`)}function oi(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function si(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function ci(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var li=!1;function ui(e){li=e}var di;function fi(e){if(e===null)throw oi(),ei;return di=e}function pi(){return fi(_o(di))}function D(e){if(li){if(_o(di)!==null)throw oi(),ei;di=e}}function mi(e=1){if(li){for(var t=e,n=di;t--;)n=_o(n);di=n}}function hi(e=!0){for(var t=0,n=di;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=_o(n);e&&n.remove(),n=i}}function gi(e){if(!e||e.nodeType!==8)throw oi(),ei;return e.data}function _i(e){return e===this.v}function vi(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function yi(e){return!vi(e,this.v)}function bi(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function xi(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Si(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ci(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function wi(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Ti(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ei(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Di(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Oi(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function ki(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ai(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function ji(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Mi=[];function Ni(e,t=!1,n=!1){return Pi(e,new Map,``,Mi,null,n)}function Pi(e,t,n,r,i=null,a=!1){if(typeof e==`object`&&e){var o=t.get(e);if(o!==void 0)return o;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(cr(e)){var s=Array(e.length);t.set(e,s),i!==null&&t.set(i,s);for(var c=0;c{t===Wi&&Gi()})}Wi.push(e)}function qi(){for(;Wi.length>0;)Gi()}var Ji=~(Or|kr|Dr);function Yi(e,t){e.f=e.f&Ji|t}function Xi(e){e.f&512||e.deps===null?Yi(e,Dr):Yi(e,kr)}function Zi(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=zr,Zi(t.deps))}function Qi(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Zi(e.deps),Yi(e,Dr)}function $i(e,t,n){if(e==null)return t(void 0),n&&n(void 0),br;let r=Ds(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var ea=[];function ta(e,t){return{subscribe:na(e,t).subscribe}}function na(e,t=br){let n=null,r=new Set;function i(t){if(vi(e,t)&&(e=t,n)){let t=!ea.length;for(let t of r)t[1](),ea.push(t,e);if(t){for(let e=0;e{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function ra(e,t,n){let r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw Error(`derived() expects stores as input, got a falsy value`);let a=t.length<2;return ta(n,(e,n)=>{let o=!1,s=[],c=0,l=br,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:br},d=i.map((e,t)=>$i(e,e=>{s[t]=e,c&=~(1<{c|=1<t=e)(),t}var ia=!1,aa=!1,oa=Symbol(`unmounted`);function j(e,t,n){let r=n[t]??={store:null,source:eo(void 0),unsubscribe:br};if(r.store!==e&&!(oa in n)){if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=br;else{var i=!0;r.unsubscribe=$i(e,e=>{i?r.source.v=e:F(r.source,e)}),i=!1}}return e&&oa in n?A(e):H(r.source)}function M(e,t){return ca(e,t),t}function sa(){let e={};function t(){Oo(()=>{for(var t in e)e[t].unsubscribe();fr(e,oa,{enumerable:!1,value:!0})})}return[e,t]}function ca(e,t){ia=!0;try{e.set(t)}finally{ia=!1}}function la(e,t,n){return ca(e,n),t}function ua(){aa=!0}function da(e){var t=aa;try{return aa=!1,[e(),aa]}finally{aa=t}}function fa(e,t){if(t){let t=document.body;e.autofocus=!0,Ki(()=>{document.activeElement===t&&e.focus()})}}function pa(e){li&&go(e)!==null&&vo(e)}var ma=!1;function ha(){ma||(ma=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Zr]?.()})},{capture:!0}))}function ga(e){var t=ts,n=is;rs(null),as(null);try{return e()}finally{rs(t),as(n)}}function _a(e,t,n,r=n){e.addEventListener(t,()=>ga(n));let i=e[Zr];e[Zr]=i?()=>{i(),r(!0)}:()=>r(!0),ha()}function va(e,t,n,r){let i=Ui()?Sa:Ta;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=is,c=ya(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){Co(e,s)}ba()}}var d=xa();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>wa(e))).then(u).catch(e=>Co(e,s)).finally(d)}l?l.then(()=>{c(),f(),ba()}):f()}function ya(){var e=is,t=ts,n=Li,r=Ma;return function(i=!0){as(e),rs(t),Ri(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function ba(e=!0){as(null),rs(null),Ri(null),e&&Ma?.deactivate()}function xa(){var e=is,t=e.b,n=Ma,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function Sa(e){var t=2|Or;return is!==null&&(is.f|=Ir),{ctx:Li,deps:null,effects:null,equals:_i,f:t,fn:e,reactions:null,rv:0,v:ti,wv:0,parent:is,ac:null}}var Ca=Symbol(`obsolete`);function wa(e,t,n){let r=is;r===null&&xi();var i=void 0,a=$a(ti),o=!ts,s=new Set;return Po(()=>{var t=is,n=Cr();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==Qr&&n.reject(e)}).finally(ba)}catch(e){n.reject(e),ba()}var c=Ma;if(o){if(t.f&32768)var l=xa();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(Ca);else for(let e of s.values())e.reject(Ca);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==Ca&&(c.activate(),t?(a.f|=Hr,to(a,t)):(a.f&8388608&&(a.f^=Hr),to(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),Oo(()=>{for(let e of s)e.reject(Ca)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function N(e){let t=Sa(e);return ss(t),t}function Ta(e){let t=Sa(e);return t.equals=yi,t}function Ea(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n{t.ac.abort(Qr),t.ac=null}),t.fn!==null&&(t.teardown=br),Ss(t,0),Vo(t))}function Aa(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&Cs(t)}var ja=null,Ma=null,Na=null,Pa=null,Fa=null,Ia=!1,La=!1,Ra=null,za=null,Ba=0,Va=1,Ha=class e{id=Va++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){ja===null?ja=this:(ja.#n=this,this.#t=ja),ja=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)Yi(r,Or),t(r);for(r of n.m)Yi(r,kr),t(r)}this.#p.add(e)}#g(){this.#e=!0,Ba++>1e3&&(this.#x(),Wa());for(let e of this.#u)this.#d.delete(e),Yi(e,Or),this.schedule(e);for(let e of this.#d)Yi(e,kr),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=Ra=[],r=[],i=za=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw Ya(e),this.#h()||this.discard(),t}if(Ma=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Ra=null,za=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)Ja(e,t);i.length>0&&Ma.#g();return}let o=this.#v();if(o){this.#b(r),this.#b(n),o.#y(this);return}this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),Na=this,Ka(r),Ka(n),Na=null,this.#s?.resolve();var s=Ma;if(this.#a===0&&(this.#c.length===0||s!==null)&&this.#x(),this.#c.length>0){if(s!==null){let e=s;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}else s=this}s!==null&&(Za.clear(),s.#g())}#_(e,t,n){e.f^=Dr;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=Dr:i&4?t.push(r):_s(r)&&(i&16&&this.#d.add(r),Cs(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#v(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#y(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),Yi(i,Or),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#x(),Ma=this,this.#g()}#b(e){for(var t=0;t{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=Cr()).promise}static ensure(){if(Ma===null){let t=Ma=new e;!La&&!Ia&&Ki(()=>{t.#e||t.flush()})}return Ma}apply(){Pa=null}schedule(e){if(Fa=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Ra!==null&&t===is&&(ts===null||!(ts.f&2))&&!ia)return;if(n&96){if(!(n&1024))return;t.f^=Dr}}this.#c.push(t)}#x(){if(this.linked){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?ja=e:t.#t=e,this.linked=!1}}};function Ua(e){var t=Ia;Ia=!0;try{var n;for(e&&(Ma!==null&&!Ma.is_fork&&Ma.flush(),n=e());;){if(qi(),Ma===null)return n;Ma.flush()}}finally{Ia=t}}function Wa(){try{Ei()}catch(e){Co(e,Fa)}}var Ga=null;function Ka(e){var t=e.length;if(t!==0){for(var n=0;n0)){Za.clear();for(let e of Ga){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Ga.has(n)&&(Ga.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Cs(n)}}Ga.clear()}}Ga=null}}function qa(e){Ma.schedule(e)}function Ja(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),Yi(e,Dr);for(var n=e.first;n!==null;)Ja(n,t),n=n.next}}function Ya(e){Yi(e,Dr);for(var t=e.first;t!==null;)Ya(t),t=t.next}var Xa=new Set,Za=new Map,Qa=!1;function $a(e,t){return{f:0,v:e,reactions:null,equals:_i,rv:0,wv:0}}function P(e,t){let n=$a(e,t);return ss(n),n}function eo(e,t=!1,n=!0){let r=$a(e);return t||(r.equals=yi),r}function F(e,t,n=!1){return ts!==null&&(!ns||ts.f&131072)&&Ui()&&ts.f&4325394&&(os===null||!os.has(e))&&Ai(),to(e,n?ao(t):t,za)}function to(e,t,n=null){if(!e.equals(t)){$o?Za.set(e,t):Za.has(e)||Za.set(e,e.v);var r=Ha.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&Da(t),Pa===null&&Xi(t)}e.wv=gs(),io(e,Or,n),Ui()&&is!==null&&is.f&1024&&!(is.f&96)&&(us===null?ds([e]):us.push(e)),!r.is_fork&&Xa.size>0&&!Qa&&no()}return t}function no(){Qa=!1;for(let e of Xa){e.f&1024&&Yi(e,kr);let t;try{t=_s(e)}catch{t=!0}t&&Cs(e)}Xa.clear()}function ro(e){F(e,e.v+1)}function io(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ui(),a=r.length,o=0;o{if(ms===o)return e();var t=ts,n=ms;rs(null),hs(o);var r=e();return rs(t),hs(n),r};return r&&n.set(`length`,P(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Oi();var i=n.get(t);return i===void 0?s(()=>{var e=P(r.value,a);return n.set(t,e),e}):F(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>P(ti,a));n.set(t,e),ro(i)}}else F(r,ti),ro(i);return!0},get(t,r,i){if(r===Ur)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||pr(t,r)?.writable)&&(o=s(()=>P(ao(c?t[r]:ti),a)),n.set(r,o)),o!==void 0){var l=H(o);return l===ti?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=H(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==ti)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===Ur)return!0;var r=n.get(t),i=r!==void 0&&r.v!==ti||Reflect.has(e,t);return(r!==void 0||is!==null&&(!i||pr(e,t)?.writable))&&(r===void 0&&(r=s(()=>P(i?ao(e[t]):ti,a)),n.set(t,r)),H(r)===ti)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;dP(ti,a)),n.set(d+``,f)):F(f,ti)}if(l===void 0)(!u||pr(e,t)?.writable)&&(l=s(()=>P(void 0,a)),F(l,ao(o)),n.set(t,l));else{u=l.v!==ti;var p=s(()=>ao(o));F(l,p)}var m=Reflect.getOwnPropertyDescriptor(e,t);if(m?.set&&m.set.call(c,o),!u){if(r&&typeof t==`string`){var h=n.get(`length`),g=Number(t);Number.isInteger(g)&&g>=h.v&&F(h,g+1)}ro(i)}return!0},ownKeys(e){H(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==ti});for(var[r,a]of n)a.v!==ti&&!(r in e)&&t.push(r);return t},setPrototypeOf(){ki()}})}function oo(e){try{if(typeof e==`object`&&e&&Ur in e)return e[Ur]}catch{}return e}function so(e,t){return Object.is(oo(e),oo(t))}var co,lo,uo,fo,po;function mo(){if(co===void 0){co=window,lo=document,uo=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;fo=pr(t,`firstChild`).get,po=pr(t,`nextSibling`).get,vr(e)&&(e[Jr]=void 0,e[qr]=null,e[Yr]=void 0,e.__e=void 0),vr(n)&&(n[Xr]=void 0)}}function ho(e=``){return document.createTextNode(e)}function go(e){return fo.call(e)}function _o(e){return po.call(e)}function I(e,t){if(!li)return go(e);var n=go(di);if(n===null)n=di.appendChild(ho());else if(t&&n.nodeType!==3){var r=ho();return n?.before(r),fi(r),r}return t&&xo(n),fi(n),n}function L(e,t=!1){if(!li){var n=go(e);return n instanceof Comment&&n.data===``?_o(n):n}if(t){if(di?.nodeType!==3){var r=ho();return di?.before(r),fi(r),r}xo(di)}return di}function R(e,t=!1){if(!li)return go(e);var n=I(e,t);return D(e),n}function z(e,t=1,n=!1){let r=li?di:e;for(var i;t--;)i=r,r=_o(r);if(!li)return r;if(n){if(r?.nodeType!==3){var a=ho();return r===null?i?.after(a):r.before(a),fi(a),a}xo(r)}return fi(r),r}function vo(e){e.textContent=``}function yo(){return!1}function bo(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function xo(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function So(e){var t=is;if(t===null)return ts.f|=Hr,e;if(!(t.f&32768)&&!(t.f&4))throw e;Co(e,t)}function Co(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128&&!(t.f&33570816)){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}function wo(e){is===null&&(ts===null&&Ti(e),wi()),$o&&Ci(e)}function To(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Eo(e,t){var n=is;n!==null&&n.f&8192&&(e|=Ar);var r={ctx:Li,deps:null,nodes:null,f:e|Or|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};Ma?.register_created_effect(r);var i=r;if(e&4)Ra===null?Ha.ensure().schedule(r):Ra.push(r);else if(t!==null){try{Cs(r)}catch(e){throw Uo(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=Pr))}if(i!==null&&(i.parent=n,n!==null&&To(i,n),ts!==null&&ts.f&2&&!(e&64))){var a=ts;(a.effects??=[]).push(i)}return r}function Do(){return ts!==null&&!ns}function Oo(e){let t=Eo(8,null);return Yi(t,Dr),t.teardown=e,t}function B(e){wo(`$effect`);var t=is.f;if(!ts&&t&32&&Li!==null&&!Li.i){var n=Li;(n.e??=[]).push(e)}else return ko(e)}function ko(e){return Eo(4|Lr,e)}function Ao(e){return wo(`$effect.pre`),Eo(8|Lr,e)}function jo(e){Ha.ensure();let t=Eo(64|Ir,e);return()=>{Uo(t)}}function Mo(e){Ha.ensure();let t=Eo(64|Ir,e);return(e={})=>new Promise(n=>{e.outro?Ko(t,()=>{Uo(t),n(void 0)}):(Uo(t),n(void 0))})}function No(e){return Eo(4,e)}function Po(e){return Eo(Vr|Ir,e)}function Fo(e,t=0){return Eo(8|t,e)}function V(e,t=[],n=[],r=[]){va(r,t,n,t=>{Eo(8,()=>{e(...t.map(H))})})}function Io(e,t=[],n=[],r=[]){va(r,t,n,t=>{Eo(4,()=>e(...t.map(H)))})}function Lo(e,t=0){return Eo(16|t,e)}function Ro(e,t=0){return Eo(Er|t,e)}function zo(e){return Eo(32|Ir,e)}function Bo(e){var t=e.teardown;if(t!==null){let n=$o,r=ts;es(!0),rs(null);try{t.call(null)}catch(t){Co(t,e.parent)}finally{es(n),rs(r)}}}function Vo(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&ga(()=>{e.abort(Qr)});var r=n.next;n.f&64?n.parent=null:Uo(n,t),n=r}}function Ho(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Uo(t),t=n}}function Uo(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Wo(e.nodes.start,e.nodes.end),n=!0),e.f|=Nr,Vo(e,t&&!n),Ss(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Bo(e),e.f^=Nr,e.f|=jr;var i=e.parent;i!==null&&i.first!==null&&Go(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Wo(e,t){for(;e!==null;){var n=e===t?null:_o(e);e.remove(),e=n}}function Go(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ko(e,t,n=!0){var r=[];e.f|=256,qo(e,r,!0);var i=()=>{n&&Uo(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function qo(e,t,n){if(!(e.f&8192)){e.f^=Ar;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);qo(i,t,o?n:!1)}i=a}}}function Jo(e){e.f&=-257,Yo(e,!0)}function Yo(e,t){if(!(e.f&256)&&e.f&8192){e.f^=Ar,e.f&1024||(Yi(e,Or),Ha.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);Yo(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Xo(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:_o(n);t.append(n),n=i}}var Zo=null,Qo=!1,$o=!1;function es(e){$o=e}var ts=null,ns=!1;function rs(e){ts=e}var is=null;function as(e){is=e}var os=null;function ss(e){ts!==null&&(os??=new Set).add(e)}var cs=null,ls=0,us=null;function ds(e){us=e}var fs=1,ps=0,ms=ps;function hs(e){ms=e}function gs(){return++fs}function _s(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~zr),t&4096){for(var n=e.deps,r=n.length,i=0;ie.wv)return!0}t&512&&Pa===null&&Yi(e,Dr)}return!1}function vs(e,t,n=!0){var r=e.reactions;if(r!==null&&!(os!==null&&os.has(e)))for(var i=0;i{e.ac.abort(Qr)}),e.ac=null);try{e.f|=Br;var u=e.fn,d=u();e.f|=Mr;var f=bs(e);if(Ui()&&us!==null&&!ns&&f!==null&&!(e.f&6146))for(var p=0;p0)for(t.length=ls+cs.length,r=0;r{a.ac.abort(Qr),a.ac=null,Yi(a,Or)}),ka(a),Ss(a,0)}}function Ss(e,t){var n=e.deps;if(n!==null)for(var r=t;r{e.isConnected&&e.dispatchEvent(t)}))}function Hs(e,t,n,r={}){function i(e){if(r.capture||Ys.call(t,e),!e.cancelBubble)return ga(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ki(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Us(e,t,n,r={}){var i=Hs(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function Ws(e,t,n,r,i){var a={capture:r,passive:i},o=Hs(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Oo(()=>{t.removeEventListener(e,o,a)})}function Gs(e,t,n){(t[Rs]??={})[e]=n}function Ks(e){for(var t=0;t{Js=!1,qs=null}));var o=0,s=qs===e&&e[Rs];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Rs]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){fr(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=ts,d=is;rs(null),as(null);try{for(var f,p=[];a!==null&&a!==t;){try{var m=a[Rs]?.[r];m!=null&&(!a.disabled||e.target===a)&&m.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble)break;o++,a=o{throw e});throw f}}finally{e[Rs]=t,delete e.currentTarget,rs(u),as(d)}}}var Xs=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Zs(e){return Xs?.createHTML(e)??e}function Qs(e){var t=bo(`template`);return t.innerHTML=Zs(e.replaceAll(``,``)),t.content}function $s(e,t){var n=is;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function U(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(``);return()=>{if(li)return $s(di,null),di;i===void 0&&(i=Qs(a?e:``+e),n||(i=go(i)));var t=r||uo?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=go(t),s=t.lastChild;$s(o,s)}else $s(t,t);return t}}function ec(e=``){if(!li){var t=ho(e+``);return $s(t,t),t}var n=di;return n.nodeType===3?xo(n):(n.before(n=ho()),fi(n)),$s(n,n),n}function W(){if(li)return $s(di,null),di;var e=document.createDocumentFragment(),t=document.createComment(``),n=ho();return e.append(t,n),$s(t,n),e}function G(e,t){if(li){var n=is;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=di),pi();return}e!==null&&e.before(t)}function tc(){if(li&&di&&di.nodeType===8&&di.textContent?.startsWith(`$`)){let e=di.textContent.substring(1);return pi(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function nc(e){let t=0,n=$a(0),r;return()=>{Do()&&(H(n),Fo(()=>(t===0&&(r=Ds(()=>e(()=>ro(n)))),t+=1,()=>{Ki(()=>{--t,t===0&&(r?.(),r=void 0,ro(n))})})))}}var rc=Pr|Ir;function ic(e,t,n,r){new ac(e,t,n,r)}var ac=class{parent;is_pending=!1;transform_error;#e;#t=li?di:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=nc(()=>(this.#m=$a(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=is;t.b=this,t.f|=128,n(e)},this.parent=is.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Lo(()=>{if(li){let e=this.#t;pi();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#y():this.#g()}else this.#b()},rc),li&&(this.#e=di)}#g(){try{this.#a=zo(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);Ki(r),t&&(this.#s=zo(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{if(t){ci();return}t=!0,n&&ji(),this.#s!==null&&Ko(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()})};return{reset:r,invoke_onerror:()=>{try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){Co(e,this.#i&&this.#i.parent)}}}}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=zo(()=>e(this.#e)),Ki(()=>{var e=this.#c=document.createDocumentFragment(),t=ho(),n=!1;if(e.append(t),this.#a=this.#S(()=>{try{return zo(()=>this.#r(t))}catch(e){try{this.error(e),n=!0}catch(e){Co(e,this.#i.parent)}return null}}),this.#a===null){this.#c=null,n&&this.#x(Ma);return}this.#u===0&&(this.#e.before(e),this.#c=null,Ko(this.#o,()=>{this.#o=null}),this.#x(Ma))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=zo(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Xo(this.#a,e);let t=this.#n.pending;this.#o=zo(()=>t(this.#e))}else this.#x(Ma)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Qi(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#S(e){var t=is,n=ts,r=Li;as(this.#i),rs(this.#i),Ri(this.#i.ctx);try{return Ha.ensure(),e()}finally{as(t),rs(n),Ri(r)}}#C(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#C(e,t);return}this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&Ko(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ki(()=>{this.#d=!1,this.#m&&to(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),H(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;Ma?.is_fork?(this.#a&&Ma.skip_effect(this.#a),this.#o&&Ma.skip_effect(this.#o),this.#s&&Ma.skip_effect(this.#s),Ma.oncommit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(Uo(this.#a),null),this.#o&&=(Uo(this.#o),null),this.#s&&=(Uo(this.#s),null),li&&(fi(this.#t),mi(),fi(hi()));let t=this.#n.failed,n=e=>{let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&(this.#s=this.#S(()=>{try{return zo(()=>{var r=is;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return Co(e,this.#i.parent),null}}))};Ki(()=>{var t;try{t=this.transform_error(e)}catch(e){Co(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>Co(e,this.#i&&this.#i.parent)):n(t)})}};function K(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[Xr]??=e.nodeValue)&&(e[Xr]=n,e.nodeValue=`${n}`)}function oc(e,t){return cc(e,t)}var sc=new Map;function cc(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){mo();var c=void 0,l=Mo(()=>{var o=n??t.appendChild(ho());ic(o,{pending:()=>{}},t=>{O({});var n=Li;if(a&&(n.c=a),i&&(r.$$events=i),li&&$s(t,null),c=e(t,r)||Hi(),li&&(is.nodes.end=di,di===null||di.nodeType!==8||di.data!==`]`))throw oi(),ei;k()},s);var l=new Set,u=e=>{for(var n=0;n{for(var e of l)for(let n of[t,document]){var r=sc.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Ys),r.delete(e),r.size===0&&sc.delete(n)):r.set(e,i)}Bs.delete(u),o!==n&&o.parentNode?.removeChild(o)}});return lc.set(c,l),c}var lc=new WeakMap;function uc(e,t){let n=lc.get(e);return n?(lc.delete(e),n(t)):Promise.resolve()}var dc=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Jo(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(Jo(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(Uo(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Xo(r,t),t.append(ho()),this.#n.set(e,{effect:r,fragment:t})}else Uo(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Ko(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(Uo(n.effect),this.#n.delete(e))};ensure(e,t){var n=Ma,r=yo();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=ho();i.append(a),this.#n.set(e,{effect:zo(()=>t(a)),fragment:i})}else this.#t.set(e,zo(()=>t(this.anchor)))}if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else li&&(this.anchor=di),this.#a(n)}},fc=0,pc=1,mc=2;function hc(e,t,n,r,i){li&&pi();var a=Ui(),o=ti,s=a?$a(o):eo(o,!1,!1),c=a?$a(o):eo(o,!1,!1),l=new dc(e);Lo(()=>{var a=Ma,o=t(),u=!1;let d=li&&xr(o)===(e.data===`[!`);if(d&&(fi(hi()),ui(!1)),xr(o)){var f=ya(),p=!1;let e=e=>{if(!u){p=!0,f(!1),Ma===a&&a.deactivate(),Ha.ensure();try{e()}finally{ba(!1),Ia||Ua()}}};o.then(t=>{e(()=>{to(s,t),l.ensure(pc,r&&(e=>r(e,s)))})},t=>{e(()=>{if(to(c,t),l.ensure(mc,i&&(e=>i(e,c))),!i)throw c.v})}),li?l.ensure(fc,n):Ki(()=>{p||e(()=>{l.ensure(fc,n)})})}else to(s,o),l.ensure(pc,r&&(e=>r(e,s)));return d&&ui(!0),()=>{u=!0}})}function q(e,t,n=!1){var r;li&&(r=di,pi());var i=new dc(e),a=n?Pr:0;function o(e,t){if(li){var n=gi(r);if(e!==parseInt(n.substring(1))){var a=hi();fi(a),i.anchor=a,ui(!1),i.ensure(e,t),ui(!0);return}}i.ensure(e,t)}Lo(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var gc=Symbol(`NaN`);function _c(e,t,n){li&&pi();var r=new dc(e),i=!Ui();Lo(()=>{var e=t();e!==e&&(e=gc),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function vc(e,t){li&&fi(go(e)),Fo(()=>{var n=t();for(var r in n){var i=n[r];i==null||i===``?e.style.removeProperty(r):e.style.setProperty(r,i)}})}function yc(e,t){return t}function bc(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;xc(e,dr(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else--o},!1)}if(o===0){var c=r.length===0&&n!==null&&e.pending.size===0;if(c){var l=n,u=l.parentNode;vo(u),u.append(l),e.items.clear()}xc(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function xc(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i{var e=n();return cr(e)?e:e==null?[]:dr(e)}),d,f=new Map,p=!0;function m(e){g.effect.f&16384||(g.pending.delete(e),g.fallback=l,Tc(g,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=Rr,Dc(l,null,o)):Jo(l):Ko(l,()=>{l=null})))}function h(e){g.pending.delete(e)}var g={effect:Lo(()=>{d=H(u);var e=d.length;let c=!1;li&&gi(o)===`[!`!=(e===0)&&(o=hi(),fi(o),ui(!1),c=!0);for(var g=new Set,_=Ma,v=yo(),y=0;ya(o)):(l=zo(()=>a(Sc??=ho())),l.f|=Rr)),e>g.size&&Si(``,``,``),li&&e>0&&fi(hi()),!p){if(f.set(_,g),v){for(let[e,t]of s)g.has(e)||_.skip_effect(t.e);_.oncommit(m),_.ondiscard(h)}else m(_)}c&&ui(!0),H(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};p=!1,li&&(o=di)}function wc(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Tc(e,t,n,r,i){var a=!!(r&8),o=t.length,s=e.items,c=wc(e.effect.first),l,u=null,d,f=[],p=[],m,h,g,_;if(a)for(_=0;_0){var T=r&4&&o===0?n:null;if(a){for(_=0;_{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function Ec(e,t,n,r,i,a,o,s){var c=o&1?o&16?$a(n):eo(n,!1,!1):null,l=o&2?$a(i):null;return{v:c,i:l,e:zo(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Dc(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=_o(r);if(a.before(r),r===i)return;r=o}}function Oc(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function kc(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;li&&(o=fi(go(c)))}V(()=>{var e=is;if(s===(s=t()??``)){li&&pi();return}if(n&&!li){e.nodes=null,c.innerHTML=s,s!==``&&$s(go(c),c.lastChild);return}if(e.nodes!==null&&(Wo(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(li){for(var a=di.data,l=pi(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=_o(l);if(l===null)throw oi(),ei;$s(di,u),o=fi(l);return}var d=bo(r?`svg`:i?`math`:`template`,r?ri:i?ii:void 0);d.innerHTML=s;var f=r||i?d:d.content;if($s(go(f),f.lastChild),r||i)for(;go(f);)o.before(go(f));else o.before(f)}})}function Ac(e,t,...n){var r=new dc(e);Lo(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},Pr)}function jc(e,t,n){var r;li&&(r=di,pi());var i=new dc(e);Lo(()=>{var e=t()??null;if(li&&gi(r)===`[`!=(e!==null)){var a=hi();fi(a),i.anchor=a,ui(!1),i.ensure(e,e&&(t=>n(t,e))),ui(!0);return}i.ensure(e,e&&(t=>n(t,e)))},Pr)}var Mc=()=>performance.now(),Nc={tick:e=>requestAnimationFrame(e),now:()=>Mc(),tasks:new Set};function Pc(){let e=Nc.now();Nc.tasks.forEach(t=>{t.c(e)||(Nc.tasks.delete(t),t.f())}),Nc.tasks.size!==0&&Nc.tick(Pc)}function Fc(e){let t;return Nc.tasks.size===0&&Nc.tick(Pc),{promise:new Promise(n=>{Nc.tasks.add(t={c:e,f:n})}),abort(){Nc.tasks.delete(t)}}}function Ic(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function Lc(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=Ic(n.trim());t[i]=r.trim()}return t}var Rc=e=>e,zc=null;function Bc(e){zc=e}function Vc(e,t,n){var r=(zc??is).nodes,i,a,o,s=null;r.a??={element:e,measure(){i=this.element.getBoundingClientRect()},apply(){if(o?.abort(),a=this.element.getBoundingClientRect(),i.left!==a.left||i.right!==a.right||i.top!==a.top||i.bottom!==a.bottom){let e=t()(this.element,{from:i,to:a},n?.());o=Hc(this.element,e,void 0,1,()=>{},()=>{o?.abort(),o=void 0})}},fix(){if(!e.getAnimations().length){var{position:t,width:n,height:r}=getComputedStyle(e);if(t!==`absolute`&&t!==`fixed`){var a=e.style;s={position:a.position,width:a.width,height:a.height,transform:a.transform},a.position=`absolute`,a.width=n,a.height=r;var o=e.getBoundingClientRect();if(i.left!==o.left||i.top!==o.top){var c=`translate(${i.left-o.left}px, ${i.top-o.top}px)`;a.transform=a.transform?`${a.transform} ${c}`:c}}}},unfix(){if(s){var t=e.style;t.position=s.position,t.width=s.width,t.height=s.height,t.transform=s.transform}}},r.a.element=e}function Hc(e,t,n,r,i,a){var o=r===1,s=!1;if(yr(t)){var c;return Ki(()=>{s||(c=Hc(e,t({direction:o?`in`:`out`}),n,r,i,a))}),{abort:()=>{s=!0,c?.abort()},deactivate:()=>c.deactivate(),reset:()=>c.reset(),t:()=>c.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return i(),a(),{abort:br,deactivate:br,reset:br,t:()=>r};let{delay:l=0,css:u,tick:d,easing:f=Rc}=t;var p,m=()=>1-r;return Ki(()=>{if(!s){var c=[];if(o&&n===void 0&&(d&&d(0,1),u)){var h=Lc(u(0,1));c.push(h,h)}p=e.animate(c,{duration:l,fill:`forwards`}),p.onfinish=()=>{p.cancel(),i();var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),l=[];if(c>0){var h=!1;if(u)for(var g=Math.ceil(c/(1e3/60)),_=0;_<=g;_+=1){var v=o+s*f(_/g),y=Lc(u(v,1-v));l.push(y),h||=y.overflow===`hidden`}h&&(e.style.overflow=`hidden`),m=()=>{var e=p.currentTime;return o+s*f(e/c)},d&&Fc(()=>{if(p.playState!==`running`)return!1;var e=m();return d(e,1-e),!0})}p=e.animate(l,{duration:c,fill:`forwards`}),p.onfinish=()=>{m=()=>r,d?.(r,1-r),a()}}}}),{abort:()=>{s=!0,p&&(p.cancel(),p.effect=null,p.onfinish=br)},deactivate:()=>{a=br},reset:()=>{r===0&&d?.(1,0)},t:()=>m()}}function Uc(e,t,n,r,i,a){let o=li;li&&pi();var s=null;li&&di.nodeType===1&&(s=di,pi());var c=li?di:e,l=is,u=new dc(c,!1);Lo(()=>{let e=t()||null;var a=i?i():n||e===`svg`?ri:void 0;if(e===null){u.ensure(null,null);return}return u.ensure(e,t=>{if(e){if(s=li?s:bo(e,a),$s(s,s),r){var n=null;li&&Ls(e)&&s.append(n=document.createComment(``));var i=li?go(s):s.appendChild(ho());li&&(i===null?ui(!1):fi(i)),Bc(l),r(s,i),n?.remove(),Bc(null)}is.nodes.end=s,t.before(s)}li&&fi(t)}),()=>{}},Pr),Oo(()=>{}),o&&(ui(!0),fi(c))}function Wc(e,t){let n=null,r=li;var i;if(li){n=di;for(var a=go(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=_o(a);if(a===null)ui(!1);else{var o=_o(a);a.remove(),fi(o)}}li||(i=document.head.appendChild(ho()));try{Lo(()=>{var e=zo(()=>t(i));e.f|=Fr,li||(e.nodes===null?e.nodes={start:i,end:i,a:null,t:null}:e.nodes.end=i)})}finally{r&&(ui(!0),fi(n))}}function J(e,t){No(()=>{e=is?.parent?.nodes?.start??e;var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=bo(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function Gc(e,t){var n=void 0,r;Ro(()=>{n!==(n=t())&&(r&&=(Uo(r),null),n&&(r=zo(()=>{No(()=>n(e))})))})}function Kc(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t=0;){var s=o+a;(o===0||Yc.includes(r[o-1]))&&(s===r.length||Yc.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Zc(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Qc(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function $c(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Qc)),i&&c.push(...Object.keys(i).map(Qc));var l=0,u=-1;let t=e.length;for(var d=0;d{t.every(ll)||(`__defaultValue`in e&&al(e,!1),`__value`in e&&ol(e,e.__value))});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Oo(()=>{t.disconnect()})}function cl(e){return`__value`in e?e.__value:e.value}function ll(e){if(e.target.closest(`selectedcontent`)!==null)return!0;if(e.type===`childList`){var t=[...e.addedNodes,...e.removedNodes];return t.length>0&&t.every(e=>e.nodeName===`SELECTEDCONTENT`)}return!1}var ul=Symbol(`class`),dl=Symbol(`style`),fl=Symbol(`is custom element`),pl=Symbol(`is html`),ml=$r?`link`:`LINK`,hl=$r?`input`:`INPUT`,gl=$r?`option`:`OPTION`,_l=$r?`select`:`SELECT`;function vl(e){if(li){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;Y(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;Y(e,`checked`,null),e.checked=r}}};e[Zr]=n,Ki(n),ha()}}function Y(e,t,n,r){var i=xl(e);li&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===ml)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[Kr]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Cl(e).has(t)?e[t]=n:e.setAttribute(t,n))}function yl(e,t,n,r,i=!1,a=!1){li&&i&&e.nodeName===hl&&(`defaultValue`in n||`defaultChecked`in n||vl(e));var o=xl(e),s=o[fl],c=!o[pl];let l=li&&s;l&&ui(!1);var u=t||{},d=e.nodeName===gl,f=e.nodeName===_l;for(var p in t)!(p in n)&&p[0]+p[1]!==`$$`&&(n[p]=null);n.class?n.class=Jc(n.class):(r||n[ul])&&(n.class=null),n[dl]&&(n.style??=null);var m=Cl(e);if(e.nodeName===hl&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==u.type||h===void 0&&e.hasAttribute(`type`))&&(u.type=h,Y(e,`type`,h,a))}for(let i in n){let l=n[i];if(d&&i===`value`&&l==null){e.value=e.__value=``,u[i]=l;continue}if(i===`class`){el(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,l,r,t?.[ul],n[ul]),u[i]=l,u[ul]=n[ul];continue}if(i===`style`){nl(e,l,t?.[dl],n[dl]),u[i]=l,u[dl]=n[dl];continue}var g=u[i];if(!(l===g&&!(l===void 0&&e.hasAttribute(i)))){u[i]=l;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=As(r);if(Os(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(l!=null)continue;e.removeEventListener(r,u[n],t),u[n]=null}if(v)Gs(r,e,l),Ks([r]);else if(l!=null){function y(e){u[i].call(this,e)}u[n]=Hs(r,e,y,t)}}else if(i===`style`)Y(e,i,l);else if(i===`autofocus`)fa(e,!!l);else if(!s&&(i===`__value`||i===`value`&&l!=null))e.value=e.__value=l;else if(i===`selected`&&d)rl(e,l);else{var b=i;c||(b=Ns(b));var x=b===`defaultValue`||b===`defaultChecked`;if(f&&b===`defaultValue`)continue;if(l==null&&!s&&!x){if(o[i]=null,b===`value`||b===`checked`){let n=e,r=t===void 0;if(b===`value`){let e=n.defaultValue;n.removeAttribute(b),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(b),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else x||(s||typeof l!=`string`)&&m.has(b)?(e[b]=l,b in o&&(o[b]=ti)):typeof l!=`function`&&Y(e,b,l,a)}}}}return l&&ui(!0),u}function bl(e,t,n=[],r=[],i=[],a,o=!1,s=!1){va(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===_l,l=!1;if(Ro(()=>{var u=t(...n.map(H)),d=yl(e,r,u,a,o,s);if(l&&c){var f=e;`defaultValue`in u&&il(f,u.defaultValue),`value`in u&&ol(f,u.value)}for(let e of Object.getOwnPropertySymbols(i))u[e]||Uo(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var p=u[t];t.description===`@attach`&&(!r||p!==r[t])&&(i[t]&&Uo(i[t]),i[t]=zo(()=>Gc(e,()=>p))),d[t]=p}r=d}),c){var u=e;No(()=>{var e=r;`defaultValue`in e&&il(u,e.defaultValue),ol(u,e.value,!0),sl(u)})}l=!0})}function xl(e){return e[qr]??={[fl]:e.nodeName.includes(`-`),[pl]:e.namespaceURI===ni}}var Sl=new Map;function Cl(e){var t=e.getAttribute(`is`)||e.nodeName,n=Sl.get(t);if(n)return n;Sl.set(t,n=new Set);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=mr(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.add(o);i=_r(i)}return n}function wl(e,t,n=t){var r=new WeakSet;_a(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Tl(e)?El(a):a,n(a),Ma!==null&&r.add(Ma),await ws(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(li&&e.defaultValue!==e.value||Ds(t)==null&&e.value)&&(n(Tl(e)?El(e.value):e.value),Ma!==null&&r.add(Ma)),Fo(()=>{var n=t();if(e===document.activeElement){var i=Ma;if(r.has(i))return}Tl(e)&&n===El(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Tl(e){var t=e.type;return t===`number`||t===`range`}function El(e){return e===``?null:+e}function Dl(e,t){return e===t||e?.[Ur]===t}function Ol(e=Hi(),t,n,r){var i=Li.r,a=is;return No(()=>{var o,s;return Fo(()=>{o=s,s=r?.()||[],Ds(()=>{Dl(n(...s),e)||(t(e,...s),o&&Dl(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Dl(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var kl={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}};function Al(e,t,n){return new Proxy({props:e,exclude:t},kl)}var jl={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(yr(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];yr(i)&&(i=i());let a=pr(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(yr(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=pr(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===Ur||t===Gr)return!1;for(let n of e.props)if(yr(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(yr(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function Ml(...e){return new Proxy({props:e},jl)}function X(e,t,n,r){var i=!0,a=!!(n&8),o=!!(n&16),s=r,c=!0,l=void 0,u=()=>o&&i?(l??=Sa(r),H(l)):(c&&(c=!1,s=o?Ds(r):r),s);let d;if(a){var f=Ur in e||Gr in e;d=pr(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=da(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&Di(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?Sa:Ta)(()=>(_=!1,h()));a&&H(v);var y=is;return(function(e,t){if(arguments.length>0){let n=t?H(v):i&&a?ao(e):e;return F(v,n),_=!0,s!==void 0&&(s=n),e}return $o&&_||y.f&16384?v.v:H(v)})}function Nl(e){Li===null&&bi(`onMount`),B(()=>{let t=Ds(e);if(typeof t==`function`)return t})}function Pl(e){Li===null&&bi(`onDestroy`),Nl(()=>()=>Ds(e))}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var Fl=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`name`]),Il=U(` `),Ll={hash:`svelte-185w1m9`,code:`.icon.small-arrow.svelte-185w1m9 {overflow:hidden;width:12px;text-indent:-6px;}`};function Rl(e,t){J(e,Ll);let n=Al(t,Fl);var r=Il();bl(r,()=>({...n,class:`sui icon material-symbols-outlined ${t.class??``}`,"aria-hidden":!(`aria-label`in n)}),void 0,void 0,void 0,`svelte-185w1m9`);var i=R(r,!0);V(()=>K(i,t.name)),G(e,r)}var zl=new Set([`$$slots`,`$$events`,`$$legacy`,`status`,`ariaLive`,`children`,`icon`]),Bl=U(`
    `),Vl={hash:`svelte-4a0yep`,code:`.alert.svelte-4a0yep {display:flex;align-items:center;gap:var(--gap, 8px);padding:var(--padding, 8px);border-width:var(--border-width, var(--sui-control-medium-border-width));border-style:var(--border-style, solid);border-radius:var(--border-radius, var(--sui-control-medium-border-radius));font-size:var(--font-size, var(--sui-font-size-default));}.alert.error.svelte-4a0yep {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-4a0yep {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-4a0yep {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-4a0yep {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}`};function Hl(e,t){J(e,Vl);let n=X(t,`ariaLive`,3,`assertive`),r=Al(t,zl);var i=Bl();bl(i,()=>({...r,role:`alert`,class:`sui alert ${t.status??``}`,"aria-live":n()}),void 0,void 0,void 0,`svelte-4a0yep`);var a=I(i),o=e=>{var n=W();Ac(L(n),()=>t.icon),G(e,n)},s=e=>{{let n=N(()=>t.status===`success`?`check_circle`:t.status);Rl(e,{get name(){return H(n)}})}};q(a,e=>{t.icon?e(o):e(s,-1)}),Ac(z(a,2),()=>t.children??br),D(i),G(e,i)}var Ul=/^[\u061c\u200e\u200f\u2066-\u2069]+/,Wl=/^[-.+0-9A-Z_a-z\u{a1}-\u{61b}\u{61d}-\u{167f}\u{1681}-\u{1fff}\u{200b}-\u{200d}\u{2010}-\u{2027}\u{2030}-\u{205e}\u{2060}-\u{2065}\u{206a}-\u{2fff}\u{3001}-\u{d7ff}\u{e000}-\u{fdcf}\u{fdf0}-\u{fffd}\u{10000}-\u{1fffd}\u{20000}-\u{2fffd}\u{30000}-\u{3fffd}\u{40000}-\u{4fffd}\u{50000}-\u{5fffd}\u{60000}-\u{6fffd}\u{70000}-\u{7fffd}\u{80000}-\u{8fffd}\u{90000}-\u{9fffd}\u{a0000}-\u{afffd}\u{b0000}-\u{bfffd}\u{c0000}-\u{cfffd}\u{d0000}-\u{dfffd}\u{e0000}-\u{efffd}\u{f0000}-\u{ffffd}\u{100000}-\u{10fffd}]+/u,Gl=/^[-.0-9]/;function Kl(e,t){let n=t,r=e.slice(n).match(Ul);r&&(n+=r[0].length);let i=e.slice(n).match(Wl);if(!i)return null;let a=i[0];if(Gl.test(a))return null;n+=a.length;let o=e.slice(n).match(Ul);return o&&(n+=o[0].length),{value:a.normalize(),end:n}}var ql=(e,t)=>e.slice(t).match(Wl)?.[0]??``,Jl=Symbol.for(`CST`),Yl=class extends Error{type;constructor(e,t){super(t),this.type=e}},Xl=class extends Yl{start;end;constructor(e,t,n,r){let i=r?`Missing ${r}`:e;t>=0&&(i+=` at ${t}`),super(e,i),this.start=t,this.end=n??t+1}},Zl=class extends Xl{constructor(e,t){let{start:n,end:r}=t[Jl]??{start:-1,end:-1};super(e,n,r)}},Ql=class extends Yl{source;cause;constructor(e,t,n,r){super(e,t),this.source=n,r!==void 0&&(this.cause=r)}},$l=class extends Yl{source;cause;constructor(e,t){super(e,t),this.source=`�`}},eu=new Set(`؜‎‏⁦⁧⁨⁩`),tu=new Set(` +\r  `),nu,ru,iu=(e,t)=>new Xl(`missing-syntax`,e,e+t.length,t),au=(...e)=>new Xl(...e);function ou(e,t){if(ru.startsWith(e,nu))t&&(nu+=e.length);else throw iu(nu,e)}function su(e){nu=0,ru=e;let t=du();if(ru.startsWith(`.match`,nu))return cu(t);let n=t.length>0||ru.startsWith(`{{`,nu);!n&&nu>0&&(nu=0);let r=uu(n);if(n&&(wu(),nu{if(e){let n=u?.(e,t);if(d)for(let n of Object.values(e))d(n,t,`option`);n?.()}},m=(e,t)=>{if(e){let n=a?.(e,t);if(d)for(let n of Object.values(e))n!==!0&&d(n,t,`attribute`);n?.()}},h=(e,t)=>{if(typeof e==`object`){let n;switch(e.type){case`expression`:if(n=s?.(e,t),e.arg&&d?.(e.arg,t,`arg`),e.functionRef){let n=i?.(e.functionRef,t,e.arg);p(e.functionRef.options,t),n?.()}m(e.attributes,t);break;case`markup`:n=l?.(e,t),p(e.options,t),m(e.attributes,t)}n?.()}},g=e=>{let t=r?.(e);for(let t of e)h(t,`placeholder`);t?.()};for(let t of e.declarations){let e=o?.(t);t.value&&h(t.value,`declaration`),e?.()}if(e.type===`message`)g(e.pattern);else{if(d)for(let t of e.selectors)d(t,`selector`,`arg`);for(let t of e.variants){let e=f?.(t);c&&t.keys.forEach(c),g(t.value),e?.()}}}function Eu(e,t=(e,t)=>{throw new Zl(e,t)}){let n=0,r=null,i=new Set,a=new Set,o=new Set,s=new Set,c=new Set,l=new Set,u=!0;Tu(e,{declaration(e){if(e.name)return(e.value.functionRef||e.type===`local`&&e.value.arg?.type===`variable`&&i.has(e.value.arg.name))&&i.add(e.name),e.type===`local`&&s.add(e.name),u=e.type===`local`,()=>{a.has(e.name)?t(`duplicate-declaration`,e):a.add(e.name)}},expression({functionRef:e}){e&&o.add(e.name)},value(e,o,s){if(e.type===`variable`)switch(c.add(e.name),o){case`declaration`:(s!==`arg`||u)&&a.add(e.name);break;case`selector`:n+=1,r=e,i.has(e.name)||t(`missing-selector-annotation`,e)}},variant(e){let{keys:i}=e;i.length!==n&&t(`key-mismatch`,e);let a=JSON.stringify(i.map(e=>e.type===`literal`?e.value:0));l.has(a)?t(`duplicate-variant`,e):l.add(a),r&&=i.every(e=>e.type===`*`)?null:e}}),r&&t(`missing-fallback`,r);for(let e of s)c.delete(e);return{functions:o,variables:c}}var Du=`Adlm,Arab,Hebr,Mand,Nkoo,Rohg,Syrc,Thaa`;function Ou(e){if(e)try{typeof e==`string`&&(e=new Intl.Locale(e));let t=e.getTextInfo?.()??e.textInfo;if(t?.direction)return t.direction;let n=e.maximize().script;if(n)return Du.includes(n)?`rtl`:`ltr`}catch{}return`auto`}function ku(e){if(e&&typeof e==`object`&&(e=e.valueOf()),typeof e==`boolean`)return e;if(e&&typeof e==`object`&&(e=String(e)),e===`true`)return!0;if(e===`false`)return!1;throw RangeError(`Not a boolean`)}function Au(e){if(e&&typeof e==`object`&&(e=e.valueOf()),e&&typeof e==`object`&&(e=String(e)),typeof e==`string`&&/^(0|[1-9][0-9]*)$/.test(e)&&(e=Number(e)),typeof e==`number`&&e>=0&&Number.isInteger(e))return e;throw RangeError(`Not a positive integer`)}function ju(e){if(e&&typeof e==`object`&&(e=e.valueOf()),typeof e==`string`)return e;if(e&&typeof e==`object`)return String(e);throw RangeError(`Not a string`)}function Mu(e){let t;if(typeof e==`object`){let n=e?.valueOf;typeof n==`function`&&(t=e.options,e=n.call(e))}if(typeof e==`string`)try{e=JSON.parse(e)}catch{}if(typeof e!=`bigint`&&typeof e!=`number`)throw new $l(`bad-operand`,`Input is not numeric`);return{value:e,options:t}}function Nu(e,t,n,r){let{dir:i,locales:a}=e;n.useGrouping===`never`&&(n.useGrouping=!1),r&&`select`in n&&!e.literalOptionKeys.has(`select`)&&(e.onError(`bad-option`,`The option select may only be set by a literal value`),r=!1);let o,s,c,l;return{type:`number`,get dir(){return i??=(o??=Intl.NumberFormat.supportedLocalesOf(a,n)[0],Ou(o)),i},get options(){return{...n}},selectKey:r?e=>{let r=t;n.style===`percent`&&(r*=typeof r==`bigint`?100n:100);let i=String(r);if(e.has(i))return i;if(n.select===`exact`)return null;let o=n.select?{...n,select:void 0,type:n.select}:n;return c??=new Intl.PluralRules(a,o).select(Number(r)),e.has(c)?c:null}:void 0,toParts(){s??=new Intl.NumberFormat(a,n);let e=s.formatToParts(t);return o??=s.resolvedOptions().locale,i??=Ou(o),i===`ltr`||i===`rtl`?[{type:`number`,dir:i,locale:o,parts:e}]:[{type:`number`,locale:o,parts:e}]},toString(){return s??=new Intl.NumberFormat(a,n),l??=s.format(t),l},valueOf:()=>t}}function Pu(e,t,n){let r=Mu(n),i=r.value,a=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`decimal`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`minimumIntegerDigits`:case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:a[n]=Au(r);break;case`roundingMode`:case`roundingPriority`:case`select`:case`signDisplay`:case`trailingZeroDisplay`:case`useGrouping`:a[n]=ju(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :number option ${n}`)}return Nu(e,i,a,!0)}function Fu(e,t,n){let r=Mu(n),i=Number.isFinite(r.value)?Math.round(r.value):r.value,a=Object.assign({},r.options,{maximumFractionDigits:0,minimumFractionDigits:void 0,minimumSignificantDigits:void 0,style:`decimal`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`minimumIntegerDigits`:case`maximumSignificantDigits`:a[n]=Au(r);break;case`select`:case`signDisplay`:case`useGrouping`:a[n]=ju(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :integer option ${n}`)}return Nu(e,i,a,!0)}function Iu(e,t,n){let r=Mu(n),i=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`currency`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`currency`:case`currencySign`:case`roundingMode`:case`roundingPriority`:case`trailingZeroDisplay`:case`useGrouping`:i[n]=ju(r);break;case`minimumIntegerDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:i[n]=Au(r);break;case`currencyDisplay`:{let t=ju(r);t===`never`?e.onError(`unsupported-operation`,`Currency display "never" is not yet supported`):i[n]=t;break}case`fractionDigits`:{let e=ju(r);if(e===`auto`)i.minimumFractionDigits=void 0,i.maximumFractionDigits=void 0;else{let t=Au(e);i.minimumFractionDigits=t,i.maximumFractionDigits=t}break}}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :currency option ${n}`)}if(!i.currency)throw new $l(`bad-operand`,`A currency code is required for :currency`);return Nu(e,r.value,i,!1)}var Lu=new Set([`weekday`,`day-weekday`,`month-day`,`month-day-weekday`,`year-month-day`,`year-month-day-weekday`]),Ru=new Set([`long`,`medium`,`short`]),zu=new Set([`hour`,`minute`,`second`]),Bu=new Set([`long`,`short`]),Vu=(e,t,n)=>Wu(`datetime`,e,t,n),Hu=(e,t,n)=>Wu(`date`,e,t,n),Uu=(e,t,n)=>Wu(`time`,e,t,n);function Wu(e,t,n,r){let i={localeMatcher:t.localeMatcher},a=r;if(typeof a==`object`&&a){let t=a.options;t&&(i.calendar=t.calendar,e!==`date`&&(i.hour12=t.hour12),i.timeZone=t.timeZone),typeof a.valueOf==`function`&&(a=a.valueOf())}switch(typeof a){case`number`:case`string`:a=new Date(a)}if(!(a instanceof Date)||isNaN(a.getTime()))throw new $l(`bad-operand`,`Input is not a valid date`);if(n.calendar!==void 0)try{i.calendar=ju(n.calendar)}catch{t.onError(`bad-option`,`Invalid :${e} calendar option value`)}if(n.hour12!==void 0&&e!==`date`)try{i.hour12=ku(n.hour12)}catch{t.onError(`bad-option`,`Invalid :${e} hour12 option value`)}if(n.timeZone!==void 0){let r;try{r=ju(n.timeZone)}catch{t.onError(`bad-option`,`Invalid :${e} timeZone option value`)}if(r===`input`)i.timeZone===void 0&&t.onError(`bad-operand`,`Missing input timeZone value for :${e}`);else if(r!==void 0){if(i.timeZone!==void 0&&r!==i.timeZone)throw new $l(`bad-option`,`Time zone conversion is not supported`);i.timeZone=r}}if(e!==`time`){let r=e===`date`?`fields`:`dateFields`,a=e===`date`?`length`:`dateLength`,o=Gu(t,n,r,Lu)??`year-month-day`,s=Gu(t,n,a,Ru),c=new Set(o.split(`-`));c.has(`year`)&&(i.year=`numeric`),c.has(`month`)&&(i.month=s===`long`?`long`:s===`short`?`numeric`:`short`),c.has(`day`)&&(i.day=`numeric`),c.has(`weekday`)&&(i.weekday=s===`long`?`long`:`short`)}if(e!==`date`){switch(Gu(t,n,e===`time`?`precision`:`timePrecision`,zu)){case`hour`:i.hour=`numeric`;break;case`second`:i.hour=`numeric`,i.minute=`numeric`,i.second=`numeric`;break;default:i.hour=`numeric`,i.minute=`numeric`}i.timeZoneName=Gu(t,n,`timeZoneStyle`,Bu)}let o=new Intl.DateTimeFormat(t.locales,i),s=t.dir,c,l;return{type:`datetime`,get dir(){return s??=(c??=o.resolvedOptions().locale,Ou(c)),s},get options(){return{...i}},toParts(){let e=o.formatToParts(a);return c??=o.resolvedOptions().locale,s??=Ou(c),s===`ltr`||s===`rtl`?[{type:`datetime`,dir:s,locale:c,parts:e}]:[{type:`datetime`,locale:c,parts:e}]},toString(){return l??=o.format(a),l},valueOf:()=>a}}function Gu(e,t,n,r){let i=t[n];if(i!==void 0)try{let e=ju(i);if(r&&!r.has(e))throw Error();return e}catch{e.onError(`bad-option`,`Invalid value for ${n} option`)}}function Ku(e,t,n){let{value:r,options:i}=Mu(n),a;try{a=`add`in t?Au(t.add):-1}catch{throw new $l(`bad-option`,`Value ${t.add} is not valid for :offset option add`)}let o;try{o=`subtract`in t?Au(t.subtract):-1}catch{throw new $l(`bad-option`,`Value ${t.subtract} is not valid for :offset option subtract`)}if(a<0==o<0)throw new $l(`bad-option`,`Exactly one of "add" or "subtract" is required as an :offset option`);let s=a<0?-o:a;return r+=typeof r==`number`?s:BigInt(s),Pu(e,{},{valueOf:()=>r,options:i})}function qu(e,t,n){let r=Mu(n),i=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`percent`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`roundingMode`:case`roundingPriority`:case`signDisplay`:case`trailingZeroDisplay`:case`useGrouping`:i[n]=ju(r);break;case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:i[n]=Au(r)}}catch{e.onError(`bad-option`,`Value ${r} is not valid for :percent option ${n}`)}return Nu(e,r.value,i,!0)}function Ju(e,t,n){let r=n===void 0?``:String(n),i=r.normalize();return{type:`string`,dir:e.dir??`auto`,selectKey:e=>e.has(i)?i:null,toParts(){let{dir:t}=e,n=e.locales[0];return t===`ltr`||t===`rtl`?[{type:`string`,dir:t,locale:n,value:r}]:[{type:`string`,locale:n,value:r}]},toString:()=>r,valueOf:()=>r}}function Yu(e,t,n){let r=Mu(n),i=Object.assign({},r.options,{localeMatcher:e.localeMatcher,style:`unit`});for(let[n,r]of Object.entries(t))if(r!==void 0)try{switch(n){case`signDisplay`:case`roundingMode`:case`roundingPriority`:case`trailingZeroDisplay`:case`unit`:case`unitDisplay`:case`useGrouping`:i[n]=ju(r);break;case`minimumIntegerDigits`:case`minimumFractionDigits`:case`maximumFractionDigits`:case`minimumSignificantDigits`:case`maximumSignificantDigits`:case`roundingIncrement`:i[n]=Au(r)}}catch(t){t instanceof Yl?e.onError(t):e.onError(`bad-option`,`Value ${r} is not valid for :currency option ${n}`)}if(!i.unit)throw new $l(`bad-operand`,`A unit identifier is required for :unit`);return Nu(e,r.value,i,!1)}var Xu={integer:Fu,number:Pu,offset:Ku,string:Ju};Xu=Object.freeze(Object.assign(Object.create(null),Xu));var Zu={currency:Iu,date:Hu,datetime:Vu,percent:qu,time:Uu,unit:Yu};Zu=Object.freeze(Object.assign(Object.create(null),Zu));var Qu=Symbol(`bidi-isolate`),$u=(e=`�`)=>({type:`fallback`,source:e,toParts:()=>[{type:`fallback`,source:e}],toString:()=>`{${e}}`}),ed=(e,t)=>({type:`unknown`,source:e,dir:`auto`,toParts:()=>[{type:`unknown`,value:t}],toString:()=>String(t),valueOf:()=>t}),td=class{#e;#t;#n;dir;id;constructor(e,t,n){this.#e=e,this.#n=t,this.dir=void 0;let r=n&&Object.hasOwn(n,`u:dir`)?n[`u:dir`]:void 0;if(r){let t=String(ud(e,r));if(t===`ltr`||t===`rtl`||t===`auto`)this.dir=t;else if(t!==`inherit`){let t=new $l(`bad-option`,`Unsupported value for u:dir option`);t.source=dd(r),e.onError(t)}}let i=n&&Object.hasOwn(n,`u:id`)?n[`u:id`]:void 0;if(this.id=i?String(ud(e,i)):void 0,n){this.#t=new Set;for(let[e,t]of Object.entries(n))t.type===`literal`&&this.#t.add(e)}}get literalOptionKeys(){return new Set(this.#t)}get localeMatcher(){return this.#e.localeMatcher}get locales(){return this.#e.locales.map(String)}onError(e,t){let n;e instanceof $l?n=e:typeof e==`string`&&typeof t==`string`?n=new $l(e,t):(n=new $l(`function-error`,String(e)),n.cause=e),n.source=this.#n,this.#e.onError(n)}};function nd(e,t,{name:n,options:r}){let i=`:${n}`,a=dd(t)??i;try{let o=t?[ud(e,t)]:[],s=e.functions[n];if(!s)throw new Ql(`unknown-function`,`Unknown function ${i}`,a);let c=new td(e,a,r),l=s(c,rd(e,r),...o);if(typeof l!=`object`||!l||typeof l.type!=`string`)throw new Ql(`bad-function-result`,`Function ${i} did not return a MessageValue`,a);let u={source:a};return c.dir&&(u.dir=c.dir,u[Qu]=!0),c.id&&typeof l.toParts==`function`&&(u.toParts=()=>{let e=l.toParts();for(let t of e)t.id=c.id;return e}),{...l,...u}}catch(t){return e.onError(t instanceof Yl?t:new Ql(`bad-function-result`,String(t),a,t)),$u(a)}}function rd(e,t){let n=Object.create(null);if(t)for(let[r,i]of Object.entries(t))r.startsWith(`u:`)||(n[r]=ud(e,i));return n}function id(e,{arg:t,functionRef:n}){if(n)return nd(e,t,n);switch(t?.type){case`literal`:{let n=`|${t.value}|`,r=Ju(new td(e,n),{},t.value);return r.source=n,r}case`variable`:return ld(e,t);default:throw Error(`Unsupported expression: ${t?.type}`)}}var ad=class{expression;scope;constructor(e,t){this.expression=e,this.scope=t}},od=e=>e!==null&&(typeof e==`object`||typeof e==`function`);function sd(e,t){if(od(e)){if(t in e)return e[t];let n=t.split(`.`);for(let t=n.length-1;t>0;--t){let r=n.slice(0,t).join(`.`);if(r in e){let i=n.slice(t).join(`.`);return sd(e[r],i)}}for(let[n,r]of Object.entries(e))if(n.normalize()===t)return r}}function cd(e,{name:t}){let n=sd(e.scope,t);if(n===void 0){let n=`$`+t,r=`Variable not available: ${n}`;e.onError(new Ql(`unresolved-variable`,r,n))}else if(n instanceof ad){let r=id(n.scope?{...e,scope:n.scope}:e,n.expression);return e.scope[t]=r,e.localVars.add(r),r}return n}function ld(e,t){let n=`$`+t.name,r=cd(e,t);if(r===void 0)return $u(n);let i=typeof r;if(i===`object`){let t=r;if(t.type===`fallback`)return $u(n);if(e.localVars.has(t))return t.source=n,t;r instanceof Number?i=`number`:r instanceof String&&(i=`string`)}let a;switch(i){case`bigint`:case`number`:a=e.functions.number;break;case`string`:a=e.functions.string;break;default:return ed(n,r)}let o=new td(e,n),s=a(o,{},r);return s.source=n,s}function ud(e,t){switch(t.type){case`literal`:return t.value;case`variable`:return cd(e,t);default:throw Error(`Unsupported value: ${t.type}`)}}function dd(e){switch(e?.type){case`literal`:return`|`+e.value.replaceAll(`\\`,`\\\\`).replaceAll(`|`,`\\|`)+`|`;case`variable`:return`$`+e.name;default:return}}function fd(e,{kind:t,name:n,options:r}){let i={type:`markup`,kind:t,name:n},a=r?Object.entries(r):null;if(a?.length){i.options={};for(let[t,n]of a)if(t===`u:dir`){let r=new $l(`bad-option`,`The option ${t} is not valid for markup`);r.source=dd(n),e.onError(r)}else{let r=ud(e,n);typeof r==`object`&&typeof r?.valueOf==`function`&&(r=r.valueOf()),t===`u:id`?i.id=String(r):i.options[t]=r}}return i}function pd(e,t){if(t.type===`message`)return t.pattern;let n=t.selectors.map(t=>{let n=ld(e,t),r;return typeof n.selectKey==`function`?r=n.selectKey.bind(n):(e.onError(new Ql(`bad-selector`,`Selector does not support selection`,n.source)),r=()=>null),{selectKey:r,source:n.source,best:null,keys:null}}),r=t.variants;loop:for(let i=0;inull,a.best=null}if(r=r.filter(e=>{let t=e.keys[i];return t.type===`*`?a.best==null:a.best===t.value}),r.length===0){if(i===0)break;let e=n[i-1];e.best==null?e.keys?.clear():e.keys?.delete(e.best);for(let e=i;enew Intl.Locale(e)):e?[new Intl.Locale(e)]:[],this.#t=n?.dir??Ou(this.#r[0]),this.#i=typeof t==`string`?su(t):t,Eu(this.#i),this.#a=n?.functions?Object.assign(Object.create(null),Xu,n.functions):Xu}format(e,t){let n=this.#o(e,t),r=``;for(let e of pd(n,this.#i))if(typeof e==`string`)r+=e;else if(e.type===`markup`)fd(n,e);else{let t;try{if(t=id(n,e),typeof t.toString==`function`){if(this.#e&&(this.#t!==`ltr`||t.dir!==`ltr`||t[Qu])){let e=t.dir===`ltr`?`⁦`:t.dir===`rtl`?`⁧`:`⁨`;r+=e+t.toString()+`⁩`}else r+=t.toString()}else{let e=new $l(`not-formattable`,`Message part is not formattable`);throw e.source=t.source,e}}catch(e){n.onError(e);let i=`{${t?.source??`�`}}`;r+=this.#e?`⁨`+i+`⁩`:i}}return r}formatToParts(e,t){let n=this.#o(e,t),r=[];for(let e of pd(n,this.#i))if(typeof e==`string`)r.push({type:`text`,value:e});else if(e.type===`markup`)r.push(fd(n,e));else{let t;try{if(t=id(n,e),typeof t.toParts==`function`){let e=t.toParts();if(this.#e&&(this.#t!==`ltr`||t.dir!==`ltr`||t[Qu])){let n=t.dir===`ltr`?`⁦`:t.dir===`rtl`?`⁧`:`⁨`;r.push({type:`bidiIsolation`,value:n},...e,{type:`bidiIsolation`,value:`⁩`})}else r.push(...e)}else{let e=new $l(`not-formattable`,`Message part is not formattable`);throw e.source=t.source,e}}catch(e){n.onError(e);let i={type:`fallback`,source:t?.source??`�`};this.#e?r.push({type:`bidiIsolation`,value:`⁨`},i,{type:`bidiIsolation`,value:`⁩`}):r.push(i)}}return r}#o(e,t=e=>{try{process.emitWarning(e)}catch{console.warn(e)}}){let n={...e};for(let t of this.#i.declarations)n[t.name]=new ad(t.value,t.type===`input`?e??{}:void 0);return{onError:t,localeMatcher:this.#n,locales:this.#r,localVars:new WeakSet,functions:this.#a,scope:n}}},hd=[`forEach`,`isDisjointFrom`,`isSubsetOf`,`isSupersetOf`],gd=[`difference`,`intersection`,`symmetricDifference`,`union`],_d=!1,vd=class e extends Set{#e=new Map;#t=P(0);#n=P(0);#r=ms||-1;constructor(e){if(super(),e){for(var t of e)super.add(t);this.#n.v=super.size}_d||this.#a()}#i(e){return ms===this.#r?P(e):$a(e)}#a(){_d=!0;var t=e.prototype,n=Set.prototype;for(let e of hd)t[e]=function(...t){return H(this.#t),n[e].apply(this,t)};for(let r of gd)t[r]=function(...t){H(this.#t);var i=n[r].apply(this,t);return new e(i)}}has(e){var t=super.has(e),n=this.#e,r=n.get(e);if(r===void 0){if(!t)return H(this.#t),!1;r=this.#i(!0),n.set(e,r)}return H(r),t}add(e){return super.has(e)||(super.add(e),F(this.#n,super.size),ro(this.#t)),this}delete(e){var t=super.delete(e),n=this.#e,r=n.get(e);return r!==void 0&&(n.delete(e),F(r,!1)),t&&(F(this.#n,super.size),ro(this.#t)),t}clear(){if(super.size!==0){super.clear();var e=this.#e;for(var t of e.values())F(t,!1);e.clear(),F(this.#n,0),ro(this.#t)}}keys(){return this.values()}values(){return H(this.#t),super.values()}entries(){return H(this.#t),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return H(this.#n)}},yd=class extends Map{#e=new Map;#t=P(0);#n=P(0);#r=ms||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return ms===this.#r?P(e):$a(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else return H(this.#t),!1}return H(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else{H(this.#t);return}}return H(n),super.get(e)}getOrInsert(e,t){return super.has(e)||this.set(e,t),this.get(e)}getOrInsertComputed(e,t){return super.has(e)||this.set(e,t(e)),this.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),F(this.#n,super.size),ro(o);else if(i!==t){ro(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&ro(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),F(n,-1)),r&&(F(this.#n,super.size),ro(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;F(this.#n,0);for(var t of e.values())F(t,-1);ro(this.#t),e.clear()}}#a(){H(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)H(n)}keys(){return H(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return H(this.#n),super.size}};Intl.MessageFormat??=md;var bd=P(``),xd=ao([]),Sd=ao({}),Cd=``,wd=``,Td,Ed={},Dd={},Od,kd=(e,t)=>{if(typeof t!=`string`||!t)throw TypeError(`${e} must be a non-empty string (got ${JSON.stringify(t)})`)},Ad=(e,t)=>{if(typeof t!=`string`)throw TypeError(`${e} must be a string (got ${typeof t})`)},jd=(e,t)=>{if(typeof t!=`function`)throw TypeError(`${e} must be a function (got ${typeof t})`)},Md=new Map,Nd=e=>{if(!Md.has(e))try{let t=new Intl.Locale(e),{language:n,script:r,region:i}=t;Md.set(e,{language:n,script:r??t.maximize().script,anyScript:!r&&!i})}catch{Md.set(e,void 0)}return Md.get(e)},Pd=(e,t)=>{if(!e||!t.length||t.includes(e))return e;let n=Nd(e);if(!n)return e;let{language:r,script:i,anyScript:a}=n;return t.find(e=>{let t=Nd(e);return!!t&&t.language===r&&(a||t.script===i)})??e},Fd=(e,t=``)=>Object.entries(e).reduce((e,[n,r])=>{let i=t?`${t}.${n}`:n;return typeof r==`object`&&r&&!Array.isArray(r)?Object.assign(e,Fd(r,i)):e[i]=r,e},Object.create(null)),Id=e=>{xd.includes(e)||(xd.push(e),wd=Pd(Cd,xd))},Ld=()=>{H(bd)&&!xd.includes(H(bd))&&Ud.set(H(bd))},Rd=(e,...t)=>{kd(`addMessages: localeCode`,e),t.forEach((e,t)=>{if(typeof e!=`object`||!e||Array.isArray(e))throw TypeError(`addMessages: maps[${t}] must be a plain object (got ${Array.isArray(e)?`array`:typeof e})`)}),Id(e),Sd[e]??={};let n=Sd[e],r={...$d,...Dd};t.forEach(t=>{Object.entries(Fd(t)).forEach(([t,i])=>{n[t]=new Intl.MessageFormat(e,String(i),{functions:r})})}),Ld()},zd=new yd,Bd=new yd,Vd=(e=H(bd))=>{if(Ad(`waitLocale: localeCode`,e),!e)return Promise.resolve();if(!Bd.has(e)){let t=zd.get(e);if(t){let n=Promise.resolve(t()).then(t=>{Rd(e,t)},()=>{Bd.delete(e),H(bd)===e&&!Sd[e]&&wd&&F(bd,wd,!0)});Bd.set(e,n)}else Bd.set(e,Promise.resolve())}return Bd.get(e)??Promise.resolve()},Hd=(e=H(bd))=>Ou(e)===`rtl`,Ud={get current(){return H(bd)},set(e){Ad(`locale.set: value`,e);let t=xd.length?Pd(e,xd):e;if(e&&xd.length&&!xd.includes(t)&&wd&&xd.includes(wd)&&(t=wd),F(bd,t,!0),typeof document<`u`&&t){document.documentElement.lang=t;let e=Ou(t);e!==`auto`&&(document.documentElement.dir=e)}return Vd(t)}},Wd=(e,t)=>{kd(`register: localeCode`,e),jd(`register: loader`,t),zd.set(e,t),Bd.delete(e),Id(e),Ld()},Gd=()=>{if(typeof navigator>`u`)return;let e=navigator.languages?.length?navigator.languages:[navigator.language];return e.map(e=>Pd(e,xd)).find(e=>xd.includes(e))??e[0]},Kd=e=>{if(!e||typeof e.fallbackLocale!=`string`)throw TypeError(`init: fallbackLocale must be a string (got ${JSON.stringify(e?.fallbackLocale)})`);e.initialLocale!==void 0&&Ad(`init: initialLocale`,e.initialLocale),e.handleMissingMessage!==void 0&&jd(`init: handleMissingMessage`,e.handleMissingMessage),Cd=e.fallbackLocale,wd=Pd(Cd,xd),Td=e.handleMissingMessage,Ed=e.formats??{},e.initialLocale&&Ud.set(e.initialLocale)},Z=(e,{values:t={},locale:n,default:r,formats:i}={})=>{if(e==null)throw TypeError(`format: key must be a string or message object (got ${JSON.stringify(e)})`);if(typeof e==`object`){let{id:t,values:n={},locale:r,default:i,formats:a}=e;return Z(t,{values:n,locale:r,default:i,formats:a})}let a=n??H(bd),o=wd;Od=i;let s;try{s=Sd[a]?.[e]?.format(t)??(a===o?void 0:Sd[o]?.[e]?.format(t))}finally{Od=void 0}if(s!==void 0)return s;if(Td){let t=Td(e,a,r);if(t!==void 0)return t}return r??e},qd=`_default`,Jd={date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}},number:{currency:{style:`currency`},percent:{style:`percent`},scientific:{notation:`scientific`},engineering:{notation:`engineering`},compactLong:{notation:`compact`,compactDisplay:`long`},compactShort:{notation:`compact`,compactDisplay:`short`}}},Yd=(e,t)=>Ed[e]?.[t]??Jd[e]?.[t],Xd=e=>{let t=Od?.[e];return(typeof t==`string`?Yd(e,t):t)??Ed[e]?.[qd]},Zd=(e,t,n)=>{let r=e.valueOf();return{...e,dir:n?Ou(n):e.dir,toString:()=>t.format(r)}},Qd=(e,t,n)=>(r,i,a)=>{let o=e(r,i,a),s=Xd(t);if(!s)return o;let{locale:c,...l}=s;return Zd(o,new n(c??r.locales,l),c)},$d={...Zu,date:Qd(Zu.date,`date`,Intl.DateTimeFormat),time:Qd(Zu.time,`time`,Intl.DateTimeFormat),datetime:Qd(Zu.datetime,`datetime`,Intl.DateTimeFormat),number:Qd(Xu.number,`number`,Intl.NumberFormat),integer:Qd(Xu.integer,`number`,Intl.NumberFormat)},ef,tf=()=>(ef??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),ef),nf=[`Ctrl`,`Meta`,`Alt`,`Shift`],rf=new Set([`Space`,`Enter`,`Escape`,`Tab`,`Backspace`,`Delete`,`Insert`,`Home`,`End`,`PageUp`,`PageDown`,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,...Array.from({length:24},(e,t)=>`F${t+1}`)]),af=(e,t)=>/^\d$/.test(e)?t.code===`Digit${e}`:rf.has(e)?t.code===e:e.toLowerCase()===t.key.toLowerCase(),of=e=>e.replace(/\bAccel\b/g,tf()?`Meta`:`Ctrl`),sf=new Map,cf=e=>{let t=sf.get(e);return t||(t=of(e).split(/\s+/).map(e=>{let t=e.split(`+`);return{ctrl:t.includes(`Ctrl`),meta:t.includes(`Meta`),alt:t.includes(`Alt`),shift:t.includes(`Shift`),tokens:t.filter(e=>!nf.includes(e))}}),sf.set(e,t)),t},lf=(e,t)=>{let{ctrlKey:n,metaKey:r,altKey:i,shiftKey:a,key:o,code:s}=e;return!o&&!s?!1:t.some(({ctrl:t,meta:o,alt:s,shift:c,tokens:l})=>t===n&&o===r&&s===i&&c===a&&l.every(t=>af(t,e)))},uf=(e,t)=>lf(e,cf(t)),df=new Map,ff=(e,t)=>{let{disabled:n}=e;if(!e.getClientRects().length)return;let{top:r,left:i}=e.getBoundingClientRect();n&&e.style.setProperty(`pointer-events`,`auto`);let a=document.elementsFromPoint(i+4,r+4).includes(e);n&&e.style.removeProperty(`pointer-events`),a&&(t.preventDefault(),n||(e.focus(),e.click()))},pf=e=>{df.forEach((t,n)=>{lf(e,t)&&ff(n,e)})},mf=(e=``)=>{let t=e?of(e):void 0;if(!t)return()=>()=>{};let n=cf(t);return e=>(df.size||globalThis.addEventListener(`keydown`,pf,{capture:!0}),df.set(e,n),e.setAttribute(`aria-keyshortcuts`,t),()=>{df.delete(e),e.removeAttribute(`aria-keyshortcuts`),df.size||globalThis.removeEventListener(`keydown`,pf,{capture:!0})})},hf=U(``),gf={hash:`svelte-1090dfu`,code:`.truncated-text.svelte-1090dfu {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`};function _f(e,t){J(e,gf);let n=X(t,`lines`,3,1),r=X(t,`children`,3,void 0);var i=hf();Ac(I(i),()=>r()??br),D(i),V(()=>nl(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),G(e,i)}var vf=(e=0)=>new Promise(t=>{globalThis.setTimeout(()=>{t(void 0)},e)});function yf(e){if(e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray)return new DataView(e.buffer,e.byteOffset,e.byteLength);if(e instanceof ArrayBuffer)return new DataView(e);throw TypeError("Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray")}var bf=`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`,xf=`0123456789ABCDEFGHIJKLMNOPQRSTUV`,Sf=`0123456789ABCDEFGHJKMNPQRSTVWXYZ`;function Cf(e,t,n){n||={};let r,i;switch(t){case`RFC3548`:case`RFC4648`:r=bf,i=!0;break;case`RFC4648-HEX`:r=xf,i=!0;break;case`Crockford`:r=Sf,i=!1;break;default:throw Error(`Unknown base32 variant: `+t)}let a=n.padding===void 0?i:n.padding,o=yf(e),s=0,c=0,l=``;for(let e=0;e=5;)l+=r[c>>>s-5&31],s-=5;if(s>0&&(l+=r[c<<5-s&31]),a)for(;l.length%8!=0;)l+=`=`;return l}var wf=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,Tf=e=>{let t=globalThis.crypto.randomUUID();return e===`short`?t.split(`-`).pop():e===`shorter`?t.split(`-`).shift():typeof e==`number`?t.split(`-`).join(``).slice(0,e):t},Ef=()=>{let e=Tf().replaceAll(`-`,``),{buffer:t}=new Uint8Array(e.match(/../g).map(e=>parseInt(e,16)));return Cf(t,`RFC4648`,{padding:!1}).toLowerCase()},Df=async(e,{algorithm:t=`SHA-1`,format:n=`hex`}={})=>{let r;if(typeof e==`string`){let t=new TextEncoder().encode(e);r=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}else if(e instanceof ArrayBuffer)r=e;else if(ArrayBuffer.isView(e)){let t=e;r=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}else if(e&&typeof e.arrayBuffer==`function`)r=await e.arrayBuffer();else throw Error(`Unsupported input type for getHash`);let i=await globalThis.crypto.subtle.digest(t,r);return n===`binary`?Array.from(new Uint8Array(i),e=>String.fromCharCode(e)).join(``):Array.from(new Uint8Array(i),e=>e.toString(16).padStart(2,`0`)).join(``)},Of,kf,Af=(e=`e`,t=7)=>[e,Tf(t)].join(`-`),jf=e=>{Of?.delete(e),kf?.unobserve(e)},Mf=()=>{if(`IntersectionObserver`in globalThis)return kf||(Of=new WeakMap,kf=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e,target:t})=>{if(!e||!(t instanceof HTMLElement))return;let n=Of?.get(t);n&&(n(),jf(t))})}),kf)},Nf=e=>{let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=globalThis;return r>0&&i>0&&t{if(`requestAnimationFrame`in globalThis){globalThis.requestAnimationFrame(e);return}globalThis.setTimeout(e,16)},Ff=e=>{let t=Mf();if(t)return Nf(e)?Promise.resolve(void 0):new Promise(n=>{Of?.set(e,n),Pf(()=>{t.observe(e)})})},If=class{#e=P(!1);get open(){return H(this.#e)}set open(e){F(this.#e,e,!0),e?this.checkPosition():this.anchorElement.getAttribute(`aria-expanded`)===`true`&&window.requestAnimationFrame(()=>{let{activeElement:e}=document;(!e||e===document.body||this.popupElement?.contains(e))&&this.anchorElement.focus()}),this.anchorElement.setAttribute(`aria-expanded`,String(e))}#t=P(ao({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 0}));get style(){return H(this.#t)}set style(e){F(this.#t,e,!0)}popupElement=void 0;contentElement=void 0;#n=void 0;constructor(e,t,n,r){this.anchorElement=e,this.position=n,this.positionBaseElement=r??e,this.id=Af(`popup`),this.anchorElement.setAttribute(`aria-expanded`,`false`),Us(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&(this.open=!this.open)}),Us(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r;!this.isDisabled&&!this.isReadOnly&&[`Enter`,` `].includes(t)&&!o&&(e.preventDefault(),e.stopPropagation(),this.open=!this.open)}),Us(e,`transitionstart`,()=>{this.anchorElement.closest(`.hiding, .hidden, [hidden]`)&&this.hideImmediately()}),this.intersectionObserver=new IntersectionObserver(([e])=>{!e.isIntersecting&&this.open&&this.hideImmediately()}),this.intersectionObserver.observe(this.anchorElement),this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(()=>this.checkPosition())}),this.resizeObserver.observe(this.positionBaseElement),this.viewportResizeObserver=new ResizeObserver(()=>{this.open&&this.checkPosition()}),t&&this.attachPopupElement(t)}attachPopupElement(e,t){if(this.popupElement===e&&this.contentElement===t)return;this.detachPopupElement(),this.popupElement=e,this.contentElement=t,this.viewportResizeObserver.observe(e);let n=t??e;n.id=this.id,this.anchorElement.setAttribute(`aria-controls`,this.id);let r=Us(e,`click`,e=>{e.stopPropagation();let t=e.target;this.open&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&(this.open=!1)}),i=Us(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;t===`Escape`&&!(i||a||n||r)&&(e.preventDefault(),e.stopPropagation(),this.open=!1)});this.#n=()=>{r(),i()}}detachPopupElement(){this.#n?.(),this.#n=void 0,this.popupElement&&this.viewportResizeObserver.unobserve(this.popupElement),this.anchorElement.getAttribute(`aria-controls`)===this.id&&this.anchorElement.removeAttribute(`aria-controls`),this.popupElement=void 0,this.contentElement=void 0}get isDisabled(){return this.anchorElement.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.anchorElement.matches(`[aria-readonly="true"]`)}checkPosition(){if(!this.popupElement)return;let e=this.contentElement??this.popupElement?.querySelector(`.content`)??null;if(!e)return;let t=this.positionBaseElement.getBoundingClientRect(),n={width:window.innerWidth,height:window.innerHeight},r={top:Math.max(t.top,0),left:Math.max(t.left,0),right:Math.min(t.right,n.width),bottom:Math.min(t.bottom,n.height),width:0,height:0};r.width=Math.max(0,r.right-r.left),r.height=Math.max(0,r.bottom-r.top);let{maxHeight:i,maxWidth:a}=e.style;e.style.maxHeight=``,e.style.maxWidth=``;let{scrollHeight:o,scrollWidth:s}=e;e.style.maxHeight=i,e.style.maxWidth=a;let c=r.top-8,l=n.height-r.bottom-8,{position:u}=this,d;Hd()&&(u.endsWith(`-left`)?u=u.replace(`-left`,`-right`):u.endsWith(`-right`)&&(u=u.replace(`-right`,`-left`)),u.startsWith(`left-`)?u=u.replace(`left-`,`right-`):u.startsWith(`right-`)&&(u=u.replace(`right-`,`left-`))),u.startsWith(`bottom-`)&&o>l&&(c>l?(u=u.replace(`bottom-`,`top-`),d=c):d=l),u.endsWith(`-left`)&&r.left+s>n.width-8&&(u=u.replace(`-left`,`-right`)),u.endsWith(`-right`)&&r.right-s<8&&(u=u.replace(`-right`,`-left`));let f={inset:[u.startsWith(`bottom-`)?`${Math.round(r.bottom)}px`:u.endsWith(`-top`)?`${Math.round(r.top)}px`:`auto`,u.startsWith(`left-`)?`${Math.round(n.width-r.left)}px`:u.endsWith(`-right`)?`${Math.round(n.width-r.right)}px`:`auto`,u.startsWith(`top-`)?`${Math.round(n.height-r.top)}px`:u.endsWith(`-bottom`)?`${Math.round(n.height-r.bottom)}px`:`auto`,u.startsWith(`right-`)?`${Math.round(r.right)}px`:u.endsWith(`-left`)?`${Math.round(r.left)}px`:`auto`].join(` `),zIndex:1e3,minWidth:`${Math.round(r.width)}px`,maxWidth:u.endsWith(`-left`)?`${Math.round(n.width-r.left-8)}px`:`${Math.round(r.right-8)}px`,height:d?`${Math.round(d)}px`:void 0};(f.inset!==this.style.inset||f.zIndex!==this.style.zIndex||f.minWidth!==this.style.minWidth||f.maxWidth!==this.style.maxWidth||f.height!==this.style.height)&&(this.style=f)}async hideImmediately(){this.popupElement&&(this.popupElement.hidden=!0),this.open=!1,await vf(50),this.popupElement&&(this.popupElement.hidden=!1)}destroy(){this.detachPopupElement(),this.intersectionObserver?.disconnect(),this.resizeObserver?.disconnect(),this.viewportResizeObserver?.disconnect(),this._rafId&&cancelAnimationFrame(this._rafId)}},Lf=(...e)=>new If(...e);function Rf(e,t){var n=W();Ac(L(n),()=>t.children??br),G(e,n)}var zf=Symbol(`sui-modal-retainer`),Bf=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`dialog`,`class`,`role`,`showBackdrop`,`lightDismiss`,`escapeDismiss`,`keepContent`,`restoreFocus`,`children`,`extraContent`,`onOpening`,`onOpen`,`onClosing`,`onOk`,`onCancel`,`onClose`]),Vf=U(` `),Hf={hash:`svelte-1yio8qw`,code:`dialog.svelte-1yio8qw {position:fixed;inset:0;z-index:9999999;display:flex;justify-content:center;align-items:center;overflow:hidden;outline:0;margin:0;border:0;padding:0;width:100dvw;max-width:100dvw;height:100dvh;max-height:100dvh;color:var(--sui-primary-foreground-color);background:transparent;-webkit-user-select:none;user-select:none;touch-action:none;pointer-events:all;cursor:default;}dialog.svelte-1yio8qw::backdrop {background:transparent;}dialog.backdrop.svelte-1yio8qw {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-1yio8qw {transition-duration:50ms;opacity:1;}dialog.svelte-1yio8qw:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-1yio8qw {transition-duration:1ms !important;}dialog.svelte-1yio8qw:not(.active) {pointer-events:none !important;}dialog.svelte-1yio8qw:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}`};function Uf(e,t){O(t,!0),J(e,Hf);let n=e=>{var n=W(),l=L(n),u=e=>{var n=Vf(),l=({target:e})=>{i()&&s()&&e?.matches(`dialog`)&&(i(i().returnValue=`cancel`,!0),r(!1))},u=e=>{e.preventDefault(),i()&&c()&&(i(i().returnValue=`cancel`,!0),r(!1))};bl(n,()=>({tabindex:`-1`,...d,inert:!H(m),role:a(),class:`sui modal ${t.class??``}`,onclick:l,oncancel:u,[ul]:{backdrop:o(),open:H(m),active:H(h)}}),void 0,void 0,void 0,`svelte-1yio8qw`);var f=I(n);Ac(f,()=>t.extraContent??br),Ac(z(f,2),()=>t.children??br),D(n),Ol(n,e=>i(e),()=>i()),G(e,n)};q(l,e=>{H(y)&&e(u)}),G(e,n)},r=X(t,`open`,15,!1),i=X(t,`dialog`,15),a=X(t,`role`,3,`dialog`),o=X(t,`showBackdrop`,3,!1),s=X(t,`lightDismiss`,3,!1),c=X(t,`escapeDismiss`,3,!0),l=X(t,`keepContent`,3,!1),u=X(t,`restoreFocus`,3,!0),d=Al(t,Bf),f=()=>{i()?.focus()},p=e=>{i()&&(i(i().returnValue=e,!0),r(!1))},m=P(!1),h=P(!1),g=P(!1),_=P(0),v=zi(zf);Bi(zf,{retain:()=>{Ds(()=>{F(_,H(_)+1)})},release:()=>{Ds(()=>{F(_,H(_)-1)})}});let y=N(()=>l()||H(g)||H(_)>0),b=!1,x=0,S,C,w=()=>{let e=S;S=void 0,!(!u()||!e)&&(C=window.setTimeout(()=>{let{activeElement:t}=document;e.isConnected&&(!t||t===document.body||i()?.contains(t))&&e.focus()}))},T=e=>Math.max(0,...e.split(`,`).map(e=>Number.parseFloat(e)||0))*1e3,E=async()=>{if(await ws(),!i())return;let{transitionDuration:e,transitionDelay:t}=getComputedStyle(i()),n=T(e)+T(t)+100,r=new AbortController,{signal:a}=r;i().addEventListener(`transitionend`,e=>{e.target===i()&&r.abort()},{signal:a});let o=window.setTimeout(()=>r.abort(),n);await new Promise(e=>{a.addEventListener(`abort`,()=>e(void 0))}),window.clearTimeout(o)},ee=async()=>{if(b)return;b=!0,x+=1;let e=x,{activeElement:n}=document;window.clearTimeout(C),S=n instanceof HTMLElement?n:void 0,t.onOpening?.(new CustomEvent(`Opening`)),F(g,!0),await ws(),!(e!==x||!i()||i().open)&&(i().showModal(),t.onOpen?.(new CustomEvent(`Open`)),i().getBoundingClientRect(),F(m,!0),await ws(),!(e!==x||!i())&&(i().contains(document.activeElement)||f(),await E(),e===x&&F(h,!0)))},te=async()=>{if(!b)return;b=!1,x+=1;let e=x,n=H(m),r=i()?.returnValue??``;t.onClosing?.(new CustomEvent(`Closing`)),i()?.open&&(document.body.inert=!0,i().close(),document.body.inert=!1),w(),F(h,!1),F(m,!1),n&&await E(),e===x&&(F(g,!1),r===`ok`&&t.onOk?.(new CustomEvent(`Ok`)),r===`cancel`&&t.onCancel?.(new CustomEvent(`Cancel`)),t.onClose?.(new CustomEvent(`Close`,{detail:{returnValue:r}})),i()&&i(i().returnValue=``,!0))},ne=Vi();return Nl(()=>{let e=oc(Rf,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n},context:ne});return()=>{window.clearTimeout(C),i()?.close(),uc(e)}}),B(()=>{r()?ee():te()}),B(()=>{if(H(g))return v?.retain(),()=>{v?.release()}}),k({focus:f,close:p})}var Wf=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`hovered`,`content`,`class`,`showBackdrop`,`anchor`,`position`,`positionBaseElement`,`parentDialogElement`,`touchOptimized`,`children`,`onOpen`]),Gf=U(`
    `),Kf={hash:`svelte-1niynd`,code:`.content.svelte-1niynd {position:absolute;overflow-y:auto;outline-width:0 !important;width:auto;color:var(--sui-primary-foreground-color);background-color:var(--sui-secondary-background-color-translucent);box-shadow:0 8px 16px var(--sui-popup-shadow-color);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transition-property:opacity, transform;}.content.menu.svelte-1niynd {border-width:var(--sui-menu-border-width, 1px);border-style:var(--sui-menu-border-style, solid);border-color:var(--sui-menu-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-menu-border-radius, 4px);padding:var(--sui-menu-padding, 4px);}.content.menu.svelte-1niynd .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-1niynd {border-width:var(--sui-listbox-border-width, 1px);border-style:var(--sui-listbox-border-style, solid);border-color:var(--sui-listbox-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-listbox-border-radius, 4px);padding:var(--sui-listbox-padding, 4px);}.content.listbox.svelte-1niynd .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.tree.svelte-1niynd {border-width:var(--sui-tree-border-width, 1px);border-style:var(--sui-tree-border-style, solid);border-color:var(--sui-tree-border-color, var(--sui-secondary-border-color));border-radius:var(--sui-tree-border-radius, 4px);padding:var(--sui-tree-padding, 4px);}.content.tree.svelte-1niynd .sui.tree {margin:0;border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.combobox.svelte-1niynd {display:flex;flex-direction:column;overflow:hidden;}.content.touch.svelte-1niynd {position:static;border-width:0 !important;border-radius:4px !important;padding:8px;min-width:320px !important;max-width:calc(100dvw - 32px) !important;max-height:calc(100dvh - 32px) !important;}dialog.open .content.touch.svelte-1niynd {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-1niynd {transform:scale(90%);}.content.touch.combobox.svelte-1niynd .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-1niynd {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-1niynd {transition-duration:300ms;opacity:0;transform:translateY(-8px);}`};function qf(e,t){O(t,!0),J(e,Kf);let n=e=>{var n=Gf();let o,s;Ac(I(n),()=>t.children??br),D(n),Ol(n,e=>a(e),()=>a()),V(()=>{Y(n,`hidden`,!r()),o=el(n,1,`content ${t.class??``} ${H(m)??``}`,`svelte-1niynd`,o,{touch:H(_)}),s=nl(n,``,s,{inset:H(h)?.style.inset,"z-index":H(h)?.style.zIndex,"min-width":H(h)?.style.minWidth,"max-width":H(h)?.style.maxWidth,"max-height":H(h)?.style.height,visibility:H(h)?.style.inset?void 0:`hidden`})}),Ws(`mouseenter`,n,()=>{i(!0),l()&&window.clearTimeout(g)}),Ws(`mouseleave`,n,()=>{i(!1),l()&&(g=window.setTimeout(()=>{r(!1)},200))}),G(e,n)},r=X(t,`open`,15,!1),i=X(t,`hovered`,15,!1),a=X(t,`content`,15,void 0),o=X(t,`showBackdrop`,3,void 0),s=X(t,`position`,3,`bottom-left`),c=X(t,`positionBaseElement`,3,void 0),l=X(t,`parentDialogElement`,3,void 0),u=X(t,`touchOptimized`,3,!1),d=Al(t,Wf),f=P(void 0),p=P(!1),m=P(void 0),h=P(void 0),g=0;B(()=>{H(h)&&r(H(h).open)}),B(()=>{l()&&!H(f)&&a()&&(F(f,l()),H(f).append(a()))}),B(()=>{t.anchor&&!H(h)&&(F(h,Lf(t.anchor,void 0,s(),c()),!0),F(m,t.anchor.getAttribute(`aria-haspopup`)??void 0,!0))}),B(()=>{if(H(h)&&H(f)&&a())return H(h).attachPopupElement(H(f),a()),()=>{H(h)?.detachPopupElement()}}),B(()=>{r()&&H(f)&&H(h)?.checkPosition()});let _=N(()=>u()&&H(p));Nl(()=>(F(p,globalThis.matchMedia(`(pointer: coarse)`).matches,!0),()=>{H(h)?.destroy?.(),globalThis.clearTimeout(g)}));var v=W(),y=L(v),b=e=>{n(e)},x=e=>{{let i=N(()=>o()??H(_));Uf(e,Ml(()=>d,{role:`none`,class:`popup`,get showBackdrop(){return H(i)},lightDismiss:!0,onOpen:async e=>{if(t.onOpen?.(e),await vf(100),!a())return;let n=a().querySelector(`[tabindex="0"]:not([aria-disabled="true"])`)??a().querySelector(`[tabindex]:not([aria-disabled="true"])`);n?n.focus():(a(a().tabIndex=-1,!0),a().focus())},get dialog(){return H(f)},set dialog(e){F(f,e,!0)},get open(){return r()},set open(e){r(e)},children:(e,t)=>{n(e)},$$slots:{default:!0}}))}};q(y,e=>{l()?e(b):e(x,-1)}),G(e,v),k()}var Jf=new Set(`$$slots.$$events.$$legacy.element.class.type.role.name.value.valueType.hidden.disabled.readonly.pressed.keyShortcuts.label.labelDir.lines.variant.size.iconic.pill.flex.popupPosition.showPopupBackdrop.children.startIcon.endIcon.popup`.split(`.`)),Yf=U(``),Xf=U(` `,1),Zf=U(` `,1),Qf={hash:`svelte-2k4xxn`,code:`button.svelte-2k4xxn {flex:none;display:inline-flex;align-items:center;gap:4px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color, inherit);background-color:transparent;box-shadow:none;font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);font-weight:var(--sui-font-weight-normal, normal);text-align:start;cursor:pointer;transition:all 200ms;}button[hidden].svelte-2k4xxn {display:none !important;}button.svelte-2k4xxn:not(:disabled):focus-visible {z-index:1;}button.svelte-2k4xxn:is(.primary:where(.svelte-2k4xxn), .secondary:where(.svelte-2k4xxn), .tertiary:where(.svelte-2k4xxn), .ghost:where(.svelte-2k4xxn)) {justify-content:center;border-width:1px;}button.svelte-2k4xxn:is(.primary:where(.svelte-2k4xxn), .secondary:where(.svelte-2k4xxn), .tertiary:where(.svelte-2k4xxn), .ghost:where(.svelte-2k4xxn)) .label:where(.svelte-2k4xxn):only-child {padding:0 4px;}button.primary.svelte-2k4xxn {border-width:var(--sui-button-primary-border-width, 1px);border-style:var(--sui-button-primary-border-style, solid);border-color:var(--sui-button-primary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted));background-color:var(--sui-button-primary-background-color, var(--sui-primary-accent-color));font-weight:var(--sui-button-primary-font-weight, var(--sui-font-weight-normal, normal));}button.primary.svelte-2k4xxn:is(:where(.svelte-2k4xxn):hover, :where(.svelte-2k4xxn):focus-visible, [aria-expanded=true]:where(.svelte-2k4xxn)) {color:var(--sui-button-primary-foreground-color-focus, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-focus, var(--sui-primary-accent-color-light));}button.primary.svelte-2k4xxn:active {color:var(--sui-button-primary-foreground-color-active, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-active, var(--sui-primary-accent-color-dark));}button.secondary.svelte-2k4xxn {border-width:var(--sui-button-secondary-border-width, 1px);border-style:var(--sui-button-secondary-border-style, solid);border-color:var(--sui-button-secondary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text));background-color:var(--sui-button-secondary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-secondary-font-weight, var(--sui-font-weight-normal, normal));}button.secondary.svelte-2k4xxn:is(:where(.svelte-2k4xxn):hover, :where(.svelte-2k4xxn):focus-visible, [aria-expanded=true]:where(.svelte-2k4xxn)) {color:var(--sui-button-secondary-foreground-color-focus, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-focus, var(--sui-hover-background-color));}button.secondary.svelte-2k4xxn:active {color:var(--sui-button-secondary-foreground-color-active, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-active, var(--sui-active-background-color));}button.secondary[aria-pressed=true].svelte-2k4xxn {color:var(--sui-button-secondary-foreground-color-pressed);background-color:var(--sui-button-secondary-background-color-pressed, var(--sui-primary-accent-color));}button.tertiary.svelte-2k4xxn {border-width:var(--sui-button-tertiary-border-width, 1px);border-style:var(--sui-button-tertiary-border-style, solid);border-color:var(--sui-button-tertiary-border-color, var(--sui-button-border-color));color:var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color));background-color:var(--sui-button-tertiary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-tertiary-font-weight, var(--sui-font-weight-normal, normal));}button.tertiary.svelte-2k4xxn:is(:where(.svelte-2k4xxn):hover, :where(.svelte-2k4xxn):focus-visible, [aria-expanded=true]:where(.svelte-2k4xxn)) {color:var(--sui-button-tertiary-foreground-color-focus, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-focus, var(--sui-hover-background-color));}button.tertiary.svelte-2k4xxn:active {color:var(--sui-button-tertiary-foreground-color-active, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-active, var(--sui-active-background-color));}button.tertiary[aria-pressed=true].svelte-2k4xxn {color:var(--sui-button-tertiary-foreground-color-pressed);background-color:var(--sui-button-tertiary-background-color-pressed, var(--sui-selected-background-color));}button.ghost.svelte-2k4xxn {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-2k4xxn:is(:where(.svelte-2k4xxn):hover, :where(.svelte-2k4xxn):focus-visible, [aria-expanded=true]:where(.svelte-2k4xxn)) {color:var(--sui-button-ghost-foreground-color-focus);background-color:var(--sui-button-ghost-background-color-focus, var(--sui-hover-background-color));}button.ghost.svelte-2k4xxn:active {color:var(--sui-button-ghost-foreground-color-active);background-color:var(--sui-button-ghost-background-color-active, var(--sui-active-background-color));}button.ghost[aria-pressed=true].svelte-2k4xxn {color:var(--sui-button-ghost-foreground-color-pressed);background-color:var(--sui-button-ghost-background-color-pressed, var(--sui-selected-background-color));}button.link.svelte-2k4xxn {margin:0;padding:0 !important;height:auto !important;color:var(--sui-button-link-foreground-color, var(--sui-primary-accent-color-text));}button.link.svelte-2k4xxn .label:where(.svelte-2k4xxn) {padding:0;line-height:var(--sui-line-height-compact);text-decoration:var(--sui-button-link-text-decoration, none);text-underline-offset:2px;white-space:normal;}:is(:root, :host)[data-underline-links='true'] button.link.svelte-2k4xxn .label:where(.svelte-2k4xxn) {text-decoration:underline;}button.small.svelte-2k4xxn {border-radius:var(--sui-button-small-border-radius);padding:var(--sui-button-small-padding);height:var(--sui-button-small-height);font-size:var(--sui-button-small-font-size, var(--sui-font-size-small));}button.small.svelte-2k4xxn .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-2k4xxn {border-radius:var(--sui-button-medium-border-radius);padding:var(--sui-button-medium-padding);height:var(--sui-button-medium-height);font-size:var(--sui-button-medium-font-size, var(--sui-font-size-default));}button.large.svelte-2k4xxn {border-radius:var(--sui-button-large-border-radius);padding:var(--sui-button-large-padding);height:var(--sui-button-large-height);font-size:var(--sui-button-large-font-size, var(--sui-font-size-large));}button.pill.svelte-2k4xxn {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-2k4xxn:not([hidden]) {display:inline-flex;flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-2k4xxn {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-2k4xxn {background-color:var(--sui-error-background-color);}button.svelte-2k4xxn .label:where(.svelte-2k4xxn) {padding:0 4px;}button.svelte-2k4xxn > * {pointer-events:none;}button.svelte-2k4xxn :has([slot=start-icon] + [slot=end-icon]) {gap:0;}`};function $f(e,t){O(t,!0),J(e,Qf);let n=X(t,`element`,15),r=X(t,`class`,3,``),i=X(t,`type`,3,`button`),a=X(t,`role`,3,`button`),o=X(t,`name`,3,void 0),s=X(t,`value`,3,void 0),c=X(t,`valueType`,19,()=>typeof s()),l=X(t,`hidden`,3,!1),u=X(t,`disabled`,3,!1),d=X(t,`readonly`,3,!1),f=X(t,`pressed`,3,void 0),p=X(t,`keyShortcuts`,3,void 0),m=X(t,`label`,3,``),h=X(t,`labelDir`,3,void 0),g=X(t,`lines`,3,1),_=X(t,`variant`,3,void 0),v=X(t,`size`,3,`medium`),y=X(t,`iconic`,3,!1),b=X(t,`pill`,3,!1),x=X(t,`flex`,3,!1),S=X(t,`popupPosition`,3,`bottom-left`),C=X(t,`showPopupBackdrop`,3,!1),w=Al(t,Jf);var T=Zf(),E=L(T);bl(E,()=>({...w,class:`sui button ${_()??``} ${v()??``} ${r()??``}`,type:i(),name:o(),value:s(),hidden:l(),disabled:u(),role:a(),"aria-hidden":l(),"aria-disabled":u(),"aria-readonly":d(),"aria-pressed":f(),"data-type":c(),"data-name":o(),"data-label":m(),"data-value":s(),[ul]:{iconic:y(),pill:b(),flex:x()}}),void 0,void 0,void 0,`svelte-2k4xxn`);var ee=I(E);Ac(ee,()=>t.startIcon??br);var te=z(ee,2),ne=e=>{var n=W(),r=L(n),i=e=>{var t=Yf();_f(I(t),{get lines(){return g()},children:(e,t)=>{mi();var n=ec();V(()=>K(n,m())),G(e,n)},$$slots:{default:!0}}),D(t),V(()=>{Y(t,`dir`,h()),t.dir=t.dir}),G(e,t)},a=e=>{var n=Yf();Ac(I(n),()=>t.children??br),D(n),G(e,n)};q(r,e=>{m()?e(i):e(a,-1)}),G(e,n)},re=e=>{var n=Xf(),r=L(n),i=e=>{var t=Yf();_f(I(t),{get lines(){return g()},children:(e,t)=>{mi();var n=ec();V(()=>K(n,m())),G(e,n)},$$slots:{default:!0}}),D(t),V(()=>{Y(t,`dir`,h()),t.dir=t.dir}),G(e,t)};q(r,e=>{m()&&e(i)}),Ac(z(r,2),()=>t.children??br),G(e,n)};q(te,e=>{_()===`link`?e(ne):e(re,-1)}),Ac(z(te,2),()=>t.endIcon??br),D(E),Ol(E,e=>n(e),()=>n()),Gc(E,()=>p()&&mf(p()));var ie=z(E,2),ae=e=>{qf(e,{get anchor(){return n()},get position(){return S()},get showBackdrop(){return C()},touchOptimized:!0,children:(e,n)=>{var r=W();Ac(L(r),()=>t.popup),G(e,r)},$$slots:{default:!0}})};q(ie,e=>{t.popup&&e(ae)}),G(e,T),k()}var ep=U(`
    `),tp=U(`
    `),np={hash:`svelte-1b8y4qi`,code:`.infobar.svelte-1b8y4qi {flex:none;display:flex;align-items:center;gap:var(--sui-infobar-gap, 8px);border-width:var(--sui-infobar-border-width, 0 0 1px);border-style:var(--sui-infobar-border-style, solid);padding:var(--sui-infobar-padding, 0);min-height:var(--sui-infobar-min-height, 32px);font-size:var(--sui-infobar-font-size, var(--sui-font-size-small));}.infobar.info.svelte-1b8y4qi {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-1b8y4qi {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-1b8y4qi {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-1b8y4qi {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-1b8y4qi {flex:auto;display:flex;align-items:center;justify-content:var(--sui-infobar-message-justify-content, start);gap:var(--sui-infobar-message-gap, 6px);padding:var(--sui-infobar-message-padding, 6px);}.message.svelte-1b8y4qi button {font-size:inherit !important;}.message.svelte-1b8y4qi .icon {font-size:16px; /* !hardcoded */}`};function rp(e,t){O(t,!0),J(e,np);let n=X(t,`show`,15,!0),r=X(t,`dismissible`,3,!0),i=X(t,`status`,3,`info`),a=X(t,`ariaLive`,3,`polite`),o=X(t,`children`,3,void 0),s=X(t,`icon`,3,void 0);var c=W(),l=L(c),u=e=>{var c=tp(),l=I(c),u=I(l),d=e=>{var t=W();Ac(L(t),s),G(e,t)},f=e=>{{let t=N(()=>i()===`success`?`check_circle`:i());Rl(e,{get name(){return H(t)}})}};q(u,e=>{s()?e(d):e(f,-1)}),Ac(z(u,2),()=>o()??br),D(l);var p=z(l,2),m=e=>{var r=ep(),i=I(r);{let e=N(()=>Z(`_sui.dismiss`));$f(i,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return H(e)},onclick:()=>{n(!1),t.onDismiss?.()},children:(e,t)=>{Rl(e,{name:`close`})},$$slots:{default:!0}})}D(r),G(e,r)};q(p,e=>{r()&&e(m)}),D(c),V(()=>{el(c,1,`infobar ${i()??``}`,`svelte-1b8y4qi`),Y(l,`aria-live`,a())}),G(e,c)};q(l,e=>{n()&&e(u)}),G(e,c),k()}var ip=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),ap=U(`
    `),op={hash:`svelte-1iykgjh`,code:`.bottom-navigation.svelte-1iykgjh {height:var(--sui-bottom-navigation-height, var(--sui-primary-toolbar-size));border-top-width:var(--sui-bottom-navigation-border-color, 1px);border-top-style:var(--sui-bottom-navigation-border-style, solid);border-top-color:var(--sui-bottom-navigation-border-color, var(--sui-secondary-border-color));}.bottom-navigation.svelte-1iykgjh:is([inert]:where(.svelte-1iykgjh), [hidden]:where(.svelte-1iykgjh)) {display:none;}.bottom-navigation.svelte-1iykgjh .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}`};function sp(e,t){J(e,op);let n=Al(t,ip);var r=ap();bl(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-1iykgjh`),Ac(I(r),()=>t.children??br),D(r),G(e,r)}var cp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`ariaLabel`,`children`]),lp=U(`
    `),up={hash:`svelte-12uu615`,code:`.button-group.svelte-12uu615 {flex:none;display:inline-flex;align-items:center;}`};function dp(e,t){J(e,up);let n=X(t,`ariaLabel`,3,void 0),r=Al(t,cp);var i=lp();bl(i,()=>({...r,role:`group`,class:`sui button-group ${t.class??``}`,"aria-label":n()}),void 0,void 0,void 0,`svelte-12uu615`),Ac(I(i),()=>t.children??br),D(i),G(e,i)}var fp=U(`
    `),pp={hash:`svelte-u065az`,code:`.floating-action-button-wrapper.svelte-u065az {display:contents;} +@media (width < 768px) {.floating-action-button-wrapper.svelte-u065az {display:block;position:fixed;inset-inline-end:16px;inset-block-end:72px;z-index:100;}.floating-action-button-wrapper.svelte-u065az button {border-radius:50%;height:56px;box-shadow:0 4px 8px rgba(0, 0, 0, 0.4);}.floating-action-button-wrapper.svelte-u065az button .icon {font-size:32px;} +}`};function mp(e,t){J(e,pp);let n=X(t,`children`,3,void 0);var r=fp();Ac(I(r),()=>n()??br),D(r),G(e,r)}var hp=Symbol(`sui-option-registry`),gp=class{#e=P(!1);get expanded(){return H(this.#e)}set expanded(e){F(this.#e,e,!0)}#t=P([]);get count(){return H(this.#t).length}get selectedEntry(){return H(this.#t).find(e=>e.selected)}register(e){return F(this.#t,[...H(this.#t),e]),()=>{F(this.#t,H(this.#t).filter(t=>t!==e))}}find(e){return H(this.#t).find(t=>t.value===e)}selectOnly(e){H(this.#t).forEach(t=>{let n=t.value===e;t.selected!==n&&(t.selected=n)})}},_p=()=>Bi(hp,new gp),vp=()=>zi(hp),yp=e=>{let{type:t=`string`,name:n,label:r}=e.dataset,{value:i}=e.dataset;return t===`number`?(i=Number(i),Number.isNaN(i)&&(i=null)):t===`boolean`?i=i===`true`:t===`string`&&(i=i?String(i):``),{target:e,type:t,name:n,label:r,value:i}},bp=/\p{Diacritic}/gu,xp=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(bp,``).toLocaleLowerCase():``),Sp={grid:{orientation:`vertical`,childRoles:[`row`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0,controlsPanel:!1,rovingTabStop:`selected`},listbox:{orientation:`vertical`,childRoles:[`option`],childSelectedAttr:`aria-selected`,focusChild:!1,selectFirst:!1,controlsPanel:!1,rovingTabStop:`selected`},menu:{orientation:`vertical`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`first`},menubar:{orientation:`horizontal`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`first`},radiogroup:{orientation:`horizontal`,childRoles:[`radio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1,controlsPanel:!1,rovingTabStop:`selected`},tablist:{orientation:`horizontal`,childRoles:[`tab`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0,controlsPanel:!0,rovingTabStop:`selected`}},Cp=`a[href], button, input, select, textarea, summary, [tabindex]`,wp=(e,t)=>{let n=[...document.querySelectorAll(Cp)].filter(t=>t===e||t.tabIndex>=0&&!t.matches(`:disabled, [aria-disabled="true"], [hidden], [inert], [inert] *`)),r=n.indexOf(e);if(r===-1)return;let i=t?-1:1;for(let e=r+i;e>=0&&e{let t=e;for(;t;){if(t.id){let e=document.querySelector(`[aria-haspopup="menu"][aria-controls="${CSS.escape(t.id)}"]`);if(e)return e}t=t.parentElement}return null},Ep=class{#e=void 0;#t=new WeakMap;#n=new WeakMap;#r(e){let t=e.dataset.searchValue??e.dataset.label??e.querySelector(`.label`)?.textContent??e.textContent,n=this.#t.get(e);if(n?.raw===t)return n.normalized;let r=xp(t);return this.#t.set(e,{raw:t,normalized:r}),r}constructor(e,{clickToSelect:t=!0}={}){e.dispatchEvent(new CustomEvent(`Initializing`)),this.parent=e,this.role=e.getAttribute(`role`),this.multi=this.parent.getAttribute(`aria-multiselectable`)===`true`,this.id=Af(this.role),this.parentGroupSelector=`[role="group"], [role="${this.role}"]`,this.clickToSelect=t,this._onClick=e=>{this.onClick(e)},this._onKeyDown=e=>{this.onKeyDown(e)};let{orientation:n,childRoles:r,childSelectedAttr:i,focusChild:a,selectFirst:o,controlsPanel:s,rovingTabStop:c}=Sp[this.role];this.orientation=this.grid?`horizontal`:this.parent.getAttribute(`aria-orientation`)??n,this.childRoles=r,this.childSelectedAttr=i,this.childSelectedProp=i.replace(`aria-`,``),this.focusChild=a,this.selectFirst=o,this.controlsPanel=s,this.rovingTabStop=c,this.parent.tabIndex=a?-1:0,this.observer=new globalThis.MutationObserver(()=>{this.#e=void 0}),this.observer.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`aria-disabled`,`aria-hidden`]}),(async()=>{await vf(100),this.activate()})()}activate(){let{parent:e,allMembers:t,selected:n}=this;t.forEach((e,t)=>{let r=e.getAttribute(this.childSelectedAttr)===`true`||(n?e===n:this.selectFirst&&t===0),i=this.controlsPanel?document.querySelector(`#${e.getAttribute(`aria-controls`)}`):null;e.id||=`${this.id}-item-${t+1}`,e.setAttribute(this.childSelectedAttr,String(r)),i&&(i.inert=!r,i.setAttribute(`aria-labelledby`,e.id),i.setAttribute(`aria-hidden`,String(!r)),r&&globalThis.setTimeout(()=>{try{i.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{i.scrollIntoView(!0)}},300))}),this.updateTabStop(),e.addEventListener(`click`,this._onClick),e.addEventListener(`keydown`,this._onKeyDown),e.dispatchEvent(new CustomEvent(`Initialized`))}updateTabStop(){let{allMembers:e,activeMembers:t}=this;if(!this.focusChild){e.forEach(e=>{e.tabIndex=-1});return}let n=this.rovingTabStop===`selected`?t.find(e=>e.getAttribute(this.childSelectedAttr)===`true`)??t[0]:t[0];e.forEach(e=>{e.tabIndex=e===n?0:-1})}get selector(){return this.childRoles.map(e=>`[role="${e}"]`).join(`,`)}get#i(){if(this.observer.takeRecords().length&&(this.#e=void 0),!this.#e){let e=[...this.parent.querySelectorAll(this.selector)];this.#e={all:e,active:e.filter(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`))}}return this.#e}get allMembers(){return this.#i.all}get activeMembers(){return this.#i.active}get opener(){return Tp(this.parent)}get parentMenuItem(){let{opener:e}=this;return e?.matches(`[role^="menuitem"]`)?e:null}closeMenuChain(){let{opener:e}=this,t=e,n=null;for(let e=0;e<10&&t;e+=1){n=t,t.getAttribute(`aria-expanded`)===`true`&&t.click();let e=t.closest(`[role="menu"], [role="menubar"]`);t=e?Tp(e):null}return n}async leaveMenu(e){let t=this.closeMenuChain();t&&(t.focus(),await vf(50),wp(t,e))}async enterSubmenu(e){let t=e.getAttribute(`aria-controls`);if(!t)return;e.getAttribute(`aria-expanded`)!==`true`&&e.click();let n=document.getElementById(t);for(let e=0;e<20;e+=1){let e=[...n?.querySelectorAll(this.selector)??[]].find(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`));if(e?.focus(),e&&document.activeElement===e)return;await vf(20)}}leaveSubmenu(e){e.getAttribute(`aria-expanded`)===`true`&&e.click(),e.focus()}get selected(){return this.activeMembers.find(e=>e.getAttribute(this.childSelectedAttr)===`true`)}get isDisabled(){return this.parent.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.parent.matches(`[aria-readonly="true"]`)}get grid(){return this.role===`grid`||this.role===`listbox`&&this.parent.matches(`.grid`)}selectTarget(e,t){if(this.isDisabled||this.isReadOnly){e.preventDefault();return}let n=t.getAttribute(`role`),r=t.closest(this.parentGroupSelector),i=e.type===`click`,a=e.type===`keydown`&&e.key===` `,o=[],s=!1;this.activeMembers.forEach(c=>{let l=c.getAttribute(`role`),u=l===`menuitemcheckbox`,d=l===`menuitemradio`;if((u||d)&&(l!==n||c.closest(this.parentGroupSelector)!==r))return;let f=u||this.multi,p=d||!f,m=c===t,h=c.getAttribute(this.childSelectedAttr)===`true`,g=this.controlsPanel?c.getAttribute(`aria-controls`):null,_=g?document.getElementById(g):null;o.push(c),s||=m,f&&m&&(i||a)&&(c.setAttribute(this.childSelectedAttr,String(!h)),c.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:!h}})),h||c.dispatchEvent(new CustomEvent(`Select`))),p&&h!==m&&(!d||a||i)&&(c.setAttribute(this.childSelectedAttr,String(m)),c.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:m}})),m&&(e.type===`keydown`&&l===`radio`&&c.click(),c.dispatchEvent(new CustomEvent(`Select`)))),this.focusChild||(c.classList.toggle(`focused`,m),m&&c.dispatchEvent(new CustomEvent(`Focus`))),_&&(_.inert=!m,_.setAttribute(`aria-hidden`,String(!m)),m&&globalThis.setTimeout(()=>{try{_.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{_.scrollIntoView(!0)}},300)),m&&(this.parent.setAttribute(`aria-activedescendant`,c.id),globalThis.setTimeout(()=>{try{c.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{c.scrollIntoView(!0)}},300))}),this.focusChild&&globalThis.requestAnimationFrame(()=>{o.forEach(e=>{e.tabIndex=e===t?0:-1}),s&&(t.focus(),t.dispatchEvent(new CustomEvent(`Focus`)))}),this.parent.dispatchEvent(new CustomEvent(`Change`,{detail:yp(t)}))}onClick(e){let t=e.target,n=t.matches(this.selector)?t:t.closest(this.selector);!n||e.button!==0||!this.clickToSelect||this.selectTarget(e,n)}onKeyDown(e){let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r,s=this.childRoles.includes(`menuitem`);if(t===`Tab`&&s&&!n&&!r&&!a){e.preventDefault(),this.leaveMenu(i);return}if(o)return;let c=e.target,{allMembers:l,activeMembers:u}=this,d=(()=>{if(!this.focusChild)return u.find(e=>e.matches(`.focused`));if(c.matches(this.selector))return c})();if([`Enter`,` `,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`].includes(t)&&e.preventDefault(),t===`Enter`){d?.click();return}if(t===` `){d&&this.selectTarget(e,d);return}if(t===`Escape`&&s){let{parentMenuItem:t}=this;if(t){e.preventDefault(),e.stopPropagation(),this.leaveSubmenu(t);return}}if(this.orientation===`vertical`&&s){let e=Hd()?`ArrowLeft`:`ArrowRight`,n=Hd()?`ArrowRight`:`ArrowLeft`;if(t===e&&d?.getAttribute(`aria-haspopup`)===`menu`){this.enterSubmenu(d);return}if(t===n){let{parentMenuItem:e}=this;if(e){this.leaveSubmenu(e);return}}}let f,p;if(this.grid){let e=Math.floor(this.parent.clientWidth/u[0].clientWidth),n=Hd();f=d?l.indexOf(d):-1,t===`ArrowUp`&&f>0&&(p=l[f-e]),t===`ArrowDown`&&f0&&(p=l[f+(n?1:-1)]),t===`ArrowRight`&&f0&&(p=u[f-1]),f<=0&&(p=u[u.length-1])),t===r&&(f{let t=this.#r(e),r=!n.every(e=>t.includes(e));return this.#n.get(e)!==r&&(this.#n.set(e,r),e.dispatchEvent(new CustomEvent(`Toggle`,{detail:{hidden:r}}))),r}).filter(e=>!e).length;i.dispatchEvent(new CustomEvent(`Filter`,{detail:{matched:a,total:r.length}}))}},Dp=e=>t=>{let n=typeof e==`function`,r=new Ep(t,n?e():e);return n&&B(()=>{r.onUpdate(e())}),()=>{r.destroy()}},Op=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`]),kp=U(`
    `),Ap={hash:`svelte-1g8yx0s`,code:`.select-button-group.svelte-1g8yx0s {flex:none;display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);}.select-button-group.svelte-1g8yx0s:focus-visible {outline-width:0 !important;}.select-button-group.svelte-1g8yx0s button {margin:0 !important;border-radius:0 !important;color:var(--sui-primary-foreground-color);}.select-button-group.svelte-1g8yx0s button:first-child {border-start-start-radius:4px !important;border-end-start-radius:4px !important;}.select-button-group.svelte-1g8yx0s button:not(:first-child) {border-inline-start-width:0;}.select-button-group.svelte-1g8yx0s button:last-child {border-start-end-radius:4px !important;border-end-end-radius:4px !important;}.select-button-group.svelte-1g8yx0s button[aria-checked=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.select-button-group.svelte-1g8yx0s [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.select-button-group.svelte-1g8yx0s [aria-disabled=false] button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.select-button-group.svelte-1g8yx0s [aria-disabled=false] button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.inner.svelte-1g8yx0s {display:contents;}`};function jp(e,t){O(t,!0),J(e,Ap);let n=X(t,`hidden`,3,!1),r=X(t,`disabled`,3,!1),i=X(t,`readonly`,3,!1),a=X(t,`required`,3,!1),o=X(t,`invalid`,3,!1),s=X(t,`ariaLabel`,3,void 0),c=Al(t,Op);var l=kp();bl(l,()=>({...c,role:`radiogroup`,class:`sui select-button-group ${t.class??``}`,hidden:n(),tabindex:`-1`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-label":s()}),void 0,void 0,void 0,`svelte-1g8yx0s`);var u=I(l);Ac(I(u),()=>t.children??br),D(u),D(l),Gc(l,Dp),V(()=>u.inert=r()),G(e,l),k()}var Mp=new Set([`$$slots`,`$$events`,`$$legacy`,`selected`,`class`,`onChange`]);function Np(e,t){O(t,!0);let n=X(t,`selected`,15,!1),r=Al(t,Mp);$f(e,Ml(()=>r,{role:`radio`,get class(){return`sui select-button ${t.class??``}`},get"aria-checked"(){return n()},onChange:e=>{n(e.detail.selected),t.onChange?.(e)}})),k()}var Pp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`popupPosition`,`popupPositionBaseElement`,`showPopupBackdrop`,`label`,`variant`,`size`,`iconic`,`children`,`startIcon`,`endIcon`,`popup`]),Fp=U(` `,1);function Ip(e,t){O(t,!0);let n=X(t,`hidden`,3,!1),r=X(t,`disabled`,3,!1),i=X(t,`popupPosition`,3,`bottom-left`),a=X(t,`popupPositionBaseElement`,3,void 0),o=X(t,`showPopupBackdrop`,3,!1),s=X(t,`label`,3,``),c=X(t,`variant`,3,void 0),l=X(t,`size`,3,`medium`),u=X(t,`iconic`,3,!1),d=Al(t,Pp),f=P(void 0);var p={focus:()=>{H(f)?.focus()}},m=Fp(),h=L(m);return $f(h,Ml(()=>d,{get class(){return`sui menu-button ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get label(){return s()},get variant(){return c()},get size(){return l()},get iconic(){return u()},"aria-haspopup":`menu`,get element(){return H(f)},set element(e){F(f,e,!0)},startIcon:e=>{var n=W();Ac(L(n),()=>t.startIcon??br),G(e,n)},children:e=>{var n=W();Ac(L(n),()=>t.children??br),G(e,n)},endIcon:e=>{var n=W(),r=L(n),i=e=>{var n=W();Ac(L(n),()=>t.endIcon),G(e,n)},a=e=>{Rl(e,{name:`more_vert`})},o=e=>{Rl(e,{name:`arrow_drop_down`,class:`small-arrow`})};q(r,e=>{t.endIcon?e(i):u()?e(a,1):e(o,-1)}),G(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),qf(z(h,2),{get anchor(){return H(f)},get position(){return i()},get positionBaseElement(){return a()},get showBackdrop(){return o()},children:(e,n)=>{var r=W();Ac(L(r),()=>t.popup??br),G(e,r)},$$slots:{default:!0}}),G(e,m),k(p)}var Lp=new Set([`$$slots`,`$$events`,`$$legacy`,`hidden`,`disabled`,`label`,`variant`,`size`,`popupPosition`,`showPopupBackdrop`,`chevronIcon`,`popup`]),Rp=U(`
    `),zp={hash:`svelte-1jwabg8`,code:`.split-button.svelte-1jwabg8 {flex:none;display:inline-flex;margin:var(--sui-focus-ring-width);}.split-button.svelte-1jwabg8 button {margin:0;}.split-button.svelte-1jwabg8 button.menu-button {border-inline-start-width:0;border-start-start-radius:0;border-end-start-radius:0;aspect-ratio:3/4;}.split-button.svelte-1jwabg8 button:not(.menu-button) {border-start-end-radius:0;border-end-end-radius:0;}`};function Bp(e,t){O(t,!0),J(e,zp);let n=X(t,`hidden`,3,!1),r=X(t,`disabled`,3,!1),i=X(t,`label`,3,``),a=X(t,`variant`,3,void 0),o=X(t,`size`,3,`medium`),s=X(t,`popupPosition`,3,`bottom-left`),c=X(t,`showPopupBackdrop`,3,!1),l=Al(t,Lp),u=P(void 0);var d=Rp(),f=I(d);$f(f,Ml(()=>l,{get hidden(){return n()},get disabled(){return r()},get label(){return i()},get variant(){return a()},get size(){return o()}}));var p=z(f,2);{let e=e=>{var n=W(),r=L(n),i=e=>{var n=W();Ac(L(n),()=>t.chevronIcon),G(e,n)},a=e=>{Rl(e,{name:`arrow_drop_down`,class:`small-arrow`})};q(r,e=>{t.chevronIcon?e(i):e(a,-1)}),G(e,n)},i=e=>{var n=W();Ac(L(n),()=>t.popup??br),G(e,n)},l=N(()=>Z(`_sui.split_button.more_options`));Ip(p,{iconic:!0,get hidden(){return n()},get disabled(){return r()},get variant(){return a()},get size(){return o()},get"aria-label"(){return H(l)},get popupPosition(){return s()},get popupPositionBaseElement(){return H(u)},get showPopupBackdrop(){return c()},endIcon:e,popup:i,$$slots:{endIcon:!0,popup:!0}})}D(d),Ol(d,e=>F(u,e),()=>H(u)),V(e=>{Y(d,`hidden`,n()),Y(d,`aria-hidden`,n()),Y(d,`aria-disabled`,r()),Y(d,`aria-label`,e)},[()=>Z(`_sui.split_button.x_options`,{values:{name:i()}})]),G(e,d),k()}var eee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`orientation`,`ariaLabel`]),Vp=U(`
    `),tee={hash:`svelte-atmyy1`,code:`.divider.svelte-atmyy1 {flex:none;background-color:var(--sui-secondary-border-color);}.divider[aria-orientation=horizontal].svelte-atmyy1 {margin:8px 0;width:100%;height:1px;}.divider[aria-orientation=vertical].svelte-atmyy1 {margin:0 8px;width:1px;height:100%;}`};function Hp(e,t){J(e,tee);let n=X(t,`hidden`,3,!1),r=X(t,`orientation`,3,`horizontal`),i=X(t,`ariaLabel`,3,void 0),a=Al(t,eee);var o=Vp();bl(o,()=>({...a,role:`separator`,class:`sui divider ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-orientation":r(),"aria-label":i()}),void 0,void 0,void 0,`svelte-atmyy1`),G(e,o)}var nee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`flex`]),ree=U(`
    `),Up={hash:`svelte-1n4x3kw`,code:`.spacer.flex.svelte-1n4x3kw:not([hidden]) {display:block;flex:auto;}.spacer.svelte-1n4x3kw:not(.flex) {width:8px;height:8px;}`};function Wp(e,t){J(e,Up);let n=X(t,`flex`,3,!1),r=Al(t,nee);var i=ree();bl(i,()=>({...r,role:`none`,class:`sui spacer ${t.class??``}`,[ul]:{flex:n()}}),void 0,void 0,void 0,`svelte-1n4x3kw`),G(e,i)}var Gp=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`ariaLabel`,`children`]),Kp=U(`
    `),qp={hash:`svelte-x2onpr`,code:`.checkbox-group.svelte-x2onpr {display:inline-flex;}.checkbox-group.horizontal.svelte-x2onpr {gap:8px;align-items:center;flex-wrap:wrap;}.checkbox-group.vertical.svelte-x2onpr {gap:4px;flex-direction:column;} +@media (pointer: coarse) {.checkbox-group.vertical.svelte-x2onpr {gap:8px;} +}.inner.svelte-x2onpr {display:contents;}`};function iee(e,t){J(e,qp);let n=X(t,`hidden`,3,!1),r=X(t,`disabled`,3,!1),i=X(t,`orientation`,3,`horizontal`),a=X(t,`ariaLabel`,3,void 0),o=Al(t,Gp);var s=Kp();bl(s,()=>({...o,role:`group`,class:`sui checkbox-group ${t.class??``} ${i()??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-roledescription":`checkbox group`,"aria-label":a()}),void 0,void 0,void 0,`svelte-x2onpr`);var c=I(s);Ac(I(c),()=>t.children??br),D(c),D(s),V(()=>c.inert=r()),G(e,s)}var aee=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`name`,`value`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`label`,`ariaLabel`,`group`,`onChange`,`children`,`checkIcon`]),oee=U(``),see=U(`
    `),cee={hash:`svelte-cwqhg1`,code:`.checkbox.svelte-cwqhg1 {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);color:var(--sui-control-foreground-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);cursor:pointer;-webkit-user-select:none;user-select:none;}.checkbox.svelte-cwqhg1:hover button {background-color:var(--sui-hover-background-color);}.checkbox.svelte-cwqhg1:hover button[aria-checked=true] {background-color:var(--sui-primary-accent-color-light);}.checkbox.svelte-cwqhg1:active button {background-color:var(--sui-active-background-color);}.checkbox.svelte-cwqhg1:active button[aria-checked=true] {background-color:var(--sui-primary-accent-color-dark);}.checkbox.svelte-cwqhg1 button {flex:none;align-items:center;justify-content:center;overflow:hidden;margin:0 !important;border-width:var(--sui-checkbox-border-width, 1.5px);border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-border-radius);padding:0;width:var(--sui-checkbox-height);height:var(--sui-checkbox-height);color:var(--sui-primary-accent-text-color);background-color:var(--sui-checkbox-background-color);transition:all 200ms;}.checkbox.svelte-cwqhg1 button[aria-checked=true] {border-color:var(--sui-checkbox-border-color-checked, var(--sui-primary-accent-color));color:var(--sui-checkbox-foreground-color-checked, var(--sui-primary-accent-color-inverted));background-color:var(--sui-checkbox-background-color-checked, var(--sui-primary-accent-color));}.checkbox.svelte-cwqhg1 button[aria-invalid=true] {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);}.checkbox.svelte-cwqhg1 button[aria-checked=true][aria-invalid=true] {background-color:var(--sui-checkbox-background-color);}.checkbox.svelte-cwqhg1 button .icon {font-size:calc(var(--sui-checkbox-height) - 2px);}.checkbox.svelte-cwqhg1 label:where(.svelte-cwqhg1) {cursor:inherit;}.inner.svelte-cwqhg1 {display:contents;}`};function Jp(e,t){let n=tc();O(t,!0),J(e,cee);let r=X(t,`checked`,15),i=X(t,`name`,3,void 0),a=X(t,`value`,3,void 0),o=X(t,`hidden`,3,!1),s=X(t,`disabled`,3,!1),c=X(t,`readonly`,3,!1),l=X(t,`required`,3,!1),u=X(t,`invalid`,3,!1),d=X(t,`label`,3,void 0),f=X(t,`ariaLabel`,3,void 0),p=X(t,`group`,15),m=Al(t,aee),h=P(void 0),g=N(()=>r()===`mixed`);B(()=>{Array.isArray(p())&&(p().includes(a())?r()!==!0&&r(!0):r()!==!1&&r(!1))});var _=see();let v;var y=I(_),b=I(y);{let e=e=>{var n=W(),i=L(n),a=e=>{var n=W();Ac(L(n),()=>t.checkIcon),G(e,n)},o=e=>{Rl(e,{name:`remove`})},s=e=>{Rl(e,{name:`check`})};q(i,e=>{t.checkIcon?e(a):H(g)?e(o,1):r()&&e(s,2)}),G(e,n)},d=N(()=>f()||void 0),_=N(()=>f()?void 0:`${n}-label`);$f(b,Ml(()=>m,{role:`checkbox`,get id(){return n},get name(){return i()},get value(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get"aria-invalid"(){return u()},get"aria-checked"(){return r()},get"aria-label"(){return H(d)},get"aria-labelledby"(){return H(_)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!(s()||c())&&(r(H(g)?!0:!r()),Array.isArray(p())&&(r()?p().includes(a())||p([...p(),a()]):p().includes(a())&&p(p().filter(e=>e!==a()))),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:r()}})))},get element(){return H(h)},set element(e){F(h,e,!0)},startIcon:e,$$slots:{startIcon:!0}}))}var x=z(b,2),S=e=>{var r=oee(),i=I(r),a=e=>{var n=W();Ac(L(n),()=>t.children),G(e,n)},o=e=>{var t=ec();V(()=>K(t,d())),G(e,t)};q(i,e=>{t.children?e(a):e(o,-1)}),D(r),V(()=>Y(r,`id`,`${n}-label`)),G(e,r)};q(x,e=>{(t.children||d())&&e(S)}),D(y),D(_),V(()=>{v=el(_,1,`sui checkbox ${t.class??``}`,`svelte-cwqhg1`,v,{checked:r(),indeterminate:H(g),disabled:s(),readonly:c()}),Y(_,`hidden`,o()),y.inert=s()}),Gs(`click`,_,e=>{e.preventDefault(),e.stopPropagation(),e.target.matches(`button`)||H(h)?.click()}),G(e,_),k()}Ks([`click`]);var lee=new Set(`$$slots.$$events.$$legacy.open.value.title.role.size.class.showClose.showOk.showCancel.okLabel.okShortcuts.okDisabled.cancelLabel.cancelShortcuts.cancelDisabled.focusInput.children.header.headerExtra.footer.footerExtra.closeIcon.input`.split(`.`)),uee=U(`
    `,1),dee=U(`
    `),fee=U(` `,1),pee=U(``),mee=U(`
    `),hee={hash:`svelte-142yikz`,code:`.content.svelte-142yikz {position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:var(--sui-dialog-content-border-radius, 4px);max-width:calc(100dvw - var(--sui-dialog-content-margin, 16px) * 2);background-color:var(--sui-dialog-content-background-color, var(--sui-secondary-background-color-translucent));box-shadow:var(--sui-dialog-content-box-shadow, 0 8px 16px var(--sui-popup-shadow-color));-webkit-backdrop-filter:var(--sui-dialog-content-backdrop-filter, blur(16px));backdrop-filter:var(--sui-dialog-content-backdrop-filter, blur(16px));transition-property:transform;}dialog.open .content.svelte-142yikz {transition-duration:150ms;transform:scale(100%);}dialog:not(.open) .content.svelte-142yikz {transition-duration:300ms;transform:scale(90%);}.content.small.svelte-142yikz {width:var(--sui-dialog-small-content-width, var(--sui-dialog-content-width, 400px));max-height:var(--sui-dialog-small-content-max-height, var(--sui-dialog-content-max-height, 400px));} +@media (max-height: 400px) {.content.small.svelte-142yikz {max-height:calc(100dvh - 32px);} +}.content.medium.svelte-142yikz {width:var(--sui-dialog-medium-content-width, var(--sui-dialog-content-width, 600px));max-height:var(--sui-dialog-medium-content-max-height, var(--sui-dialog-content-max-height, 600px));} +@media (max-height: 600px) {.content.medium.svelte-142yikz {max-height:calc(100dvh - 32px);} +}.content.large.svelte-142yikz {width:var(--sui-dialog-large-content-width, var(--sui-dialog-content-width, 800px));max-height:var(--sui-dialog-large-content-max-height, var(--sui-dialog-content-max-height, 800px));} +@media (max-height: 800px) {.content.large.svelte-142yikz {max-height:calc(100dvh - 32px);} +}.content.x-large.svelte-142yikz {width:var(--sui-dialog-x-large-content-width, var(--sui-dialog-content-width, 1000px));max-height:var(--sui-dialog-x-large-content-max-height, var(--sui-dialog-content-max-height, 1000px));} +@media (max-height: 1000px) {.content.x-large.svelte-142yikz {max-height:calc(100dvh - 32px);} +}:is(.header.svelte-142yikz, .footer.svelte-142yikz) {display:flex;align-items:center;gap:4px;}.header.svelte-142yikz {box-sizing:content-box;margin:var(--sui-dialog-header-margin, 0 16px);border-width:var(--sui-dialog-header-border-width, 0 0 1px);border-color:var(--sui-dialog-header-border-color, var(--sui-secondary-border-color));padding:var(--sui-dialog-header-padding, 16px 8px);height:var(--sui-dialog-header-height, 32px);}.header.svelte-142yikz .title:where(.svelte-142yikz) {font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-bold);}.footer.svelte-142yikz {margin:var(--sui-dialog-footer-margin, 0 24px 24px);} +@media (width < 768px) {.footer.svelte-142yikz {margin:var(--sui-dialog-footer-margin, 0 16px 16px);} +}.body.svelte-142yikz {overflow:auto;margin:var(--sui-dialog-body-margin, 24px 24px);white-space:normal;line-height:var(--sui-line-height-compact);} +@media (width < 768px) {.body.svelte-142yikz {margin:var(--sui-dialog-body-margin, 16px 16px);} +}`};function Yp(e,t){let n=tc();O(t,!0),J(e,hee);let r=X(t,`open`,15,!1);X(t,`value`,11,``);let i=X(t,`role`,3,`dialog`),a=X(t,`size`,3,`medium`),o=X(t,`showClose`,3,!1),s=X(t,`showOk`,3,!0),c=X(t,`showCancel`,3,!0),l=X(t,`okLabel`,3,``),u=X(t,`okShortcuts`,3,void 0),d=X(t,`okDisabled`,3,!1),f=X(t,`cancelLabel`,3,``),p=X(t,`cancelShortcuts`,3,void 0),m=X(t,`cancelDisabled`,3,!1),h=X(t,`focusInput`,3,!0),g=Al(t,lee),_=P(void 0),v=P(void 0);B(()=>{if(r()&&H(v)){let e=!1;return(async()=>{if(await vf(50),e)return;let t=h()?H(v)?.querySelector(`input, button.primary`):null;t?(t.focus(),t instanceof HTMLInputElement&&t.select()):(!h()||!H(v)?.contains(document.activeElement))&&H(_)?.focus()})(),()=>{e=!0}}});{let h=N(()=>t.header?void 0:t.title),y=N(()=>t.header?t.title:`${n}-title`);Ol(Uf(e,Ml(()=>g,{get role(){return i()},get id(){return n},class:`dialog`,get"aria-label"(){return H(h)},get"aria-labelledby"(){return H(y)},get"aria-describedby"(){return`${n}-body`},showBackdrop:!0,get open(){return r()},set open(e){r(e)},children:(e,r)=>{var i=mee(),h=I(i),g=e=>{var r=dee(),i=I(r),a=e=>{var n=W();Ac(L(n),()=>t.header),G(e,n)},s=e=>{var r=uee(),i=L(r),a=R(i,!0),s=z(i,2);Wp(s,{flex:!0});var c=z(s,2);Ac(c,()=>t.headerExtra??br);var l=z(c,2),u=e=>{{let r=e=>{var n=W(),r=L(n),i=e=>{var n=W();Ac(L(n),()=>t.closeIcon),G(e,n)},a=e=>{Rl(e,{name:`close`})};q(r,e=>{t.closeIcon?e(i):e(a,-1)}),G(e,n)},i=N(()=>Z(`_sui.close`));$f(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return H(i)},get"aria-controls"(){return n},onclick:()=>{H(_)?.close(`close`)},startIcon:r,$$slots:{startIcon:!0}})}};q(l,e=>{o()&&e(u)}),V(()=>{Y(i,`id`,`${n}-title`),K(a,t.title)}),G(e,r)};q(i,e=>{t.header?e(a):e(s,-1)}),D(r),G(e,r)};q(h,e=>{(t.title||o()||t.header||t.headerExtra)&&e(g)});var y=z(h,2);Ac(I(y),()=>t.children??br),D(y);var b=z(y,2),x=e=>{var n=pee(),r=I(n),i=e=>{var n=W();Ac(L(n),()=>t.footer??br),G(e,n)},a=e=>{var n=fee(),r=L(n);Ac(r,()=>t.footerExtra??br);var i=z(r,2);Wp(i,{flex:!0});var a=z(i,2),o=e=>{{let t=N(()=>l()||Z(`_sui.ok`));$f(e,{variant:`primary`,get label(){return H(t)},get keyShortcuts(){return u()},get disabled(){return d()},onclick:()=>{H(_)?.close(`ok`)}})}};q(a,e=>{s()&&e(o)});var h=z(a,2),g=e=>{{let t=N(()=>f()||Z(`_sui.cancel`));$f(e,{variant:`secondary`,get label(){return H(t)},get keyShortcuts(){return p()},get disabled(){return m()},onclick:()=>{H(_)?.close(`cancel`)}})}};q(h,e=>{c()&&e(g)}),G(e,n)};q(r,e=>{t.footer?e(i):e(a,-1)}),D(n),G(e,n)};q(b,e=>{(s()||c()||t.footer||t.footerExtra)&&e(x)}),D(i),Ol(i,e=>F(v,e),()=>H(v)),V(()=>{el(i,1,`content ${t.class??``} ${a()??``}`,`svelte-142yikz`),Y(y,`id`,`${n}-body`)}),G(e,i)},$$slots:{default:!0}})),e=>F(_,e,!0),()=>H(_))}k()}var gee=new Set([`$$slots`,`$$events`,`$$legacy`,`open`]);function Xp(e,t){O(t,!0);let n=X(t,`open`,15,!1),r=Al(t,gee);Yp(e,Ml(()=>r,{role:`alertdialog`,showCancel:!1,get open(){return n()},set open(e){n(e)}})),k()}var _ee=new Set([`$$slots`,`$$events`,`$$legacy`,`open`]);function Zp(e,t){O(t,!0);let n=X(t,`open`,15,!1),r=Al(t,_ee);Yp(e,Ml(()=>r,{role:`alertdialog`,get open(){return n()},set open(e){n(e)}})),k()}var vee=`boxSizing.width.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.paddingTop.paddingRight.paddingBottom.paddingLeft.fontFamily.fontSize.fontStretch.fontStyle.fontVariant.fontWeight.letterSpacing.lineHeight.tabSize.textAlign.textIndent.textTransform.wordBreak.wordSpacing.overflowWrap.direction`.split(`.`),yee=(e,t,n)=>{let r=e.getBoundingClientRect();if(!r.width&&!r.height)return;let i=globalThis.getComputedStyle(e),a=e.tagName===`INPUT`,o=document.createElement(`div`),s=document.createElement(`span`);vee.forEach(e=>{o.style[e]=i[e]}),Object.assign(o.style,{position:`absolute`,top:`0`,left:`0`,height:`auto`,minHeight:`0`,maxHeight:`none`,overflow:`hidden`,visibility:`hidden`,pointerEvents:`none`,whiteSpace:a?`pre`:`pre-wrap`}),o.setAttribute(`aria-hidden`,`true`),o.textContent=e.value.slice(0,t),s.textContent=e.value.slice(t,n)||`​`,o.append(s),document.body.append(o);let c=o.getBoundingClientRect(),l=s.getClientRects(),u=l[l.length-1]??s.getBoundingClientRect(),d=u.top-c.top,f=u.left-c.left,p=u.right-c.left,m=u.height||Number.parseFloat(i.lineHeight)||0;o.remove();let h=r.top+d-e.scrollTop,g=r.left+f-e.scrollLeft,_=r.left+p-e.scrollLeft;return{top:h,bottom:h+m,left:g,right:_}},bee=`😀 grinning face +😃 smiley smiling face open mouth +😄 smile smiling face open mouth eyes +😁 grin grinning face smiling eyes +😆 laughing satisfied smiling face open mouth tightly-closed eyes +😅 sweat_smile smiling face open mouth cold +🤣 rolling_on_the_floor_laughing +😂 joy face tears +🙂 slightly_smiling_face +🙃 upside_down_face upside-down +🫠 melting_face +😉 wink winking face +😊 blush smiling face eyes +😇 innocent smiling face halo +🥰 smiling_face_with_3_hearts eyes three +😍 heart_eyes smiling face heart-shaped +🤩 star-struck grinning_face_with_star_eyes +😘 kissing_heart face throwing kiss +😗 kissing face +☺️ relaxed white smiling face +😚 kissing_closed_eyes face +😙 kissing_smiling_eyes face +🥲 smiling_face_with_tear +😋 yum face savouring delicious food +😛 stuck_out_tongue face stuck-out +😜 stuck_out_tongue_winking_eye face stuck-out +🤪 zany_face grinning_face_with_one_large_and_one_small_eye +😝 stuck_out_tongue_closed_eyes face stuck-out tightly-closed +🤑 money_mouth_face money-mouth +🤗 hugging_face +🤭 face_with_hand_over_mouth smiling_face_with_smiling_eyes_and_hand_covering_mouth +🫢 face_with_open_eyes_and_hand_over_mouth +🫣 face_with_peeking_eye +🤫 shushing_face face_with_finger_covering_closed_lips +🤔 thinking_face +🫡 saluting_face +🤐 zipper_mouth_face zipper-mouth +🤨 face_with_raised_eyebrow face_with_one_eyebrow_raised +😐 neutral_face +😑 expressionless face +😶 no_mouth face without +🫥 dotted_line_face +😶‍🌫️ face_in_clouds +😏 smirk smirking face +😒 unamused face +🙄 face_with_rolling_eyes +😬 grimacing face +😮‍💨 face_exhaling +🤥 lying_face +🫨 shaking_face +🙂‍↔️ head_shaking_horizontally +🙂‍↕️ head_shaking_vertically +😌 relieved face +😔 pensive face +😪 sleepy face +🤤 drooling_face +😴 sleeping face +🫩 face_with_bags_under_eyes +😷 mask face medical +🤒 face_with_thermometer +🤕 face_with_head_bandage head-bandage +🤢 nauseated_face +🤮 face_vomiting face_with_open_mouth_vomiting +🤧 sneezing_face +🥵 hot_face overheated +🥶 cold_face freezing +🥴 woozy_face uneven eyes wavy mouth +😵 dizzy_face +😵‍💫 face_with_spiral_eyes +🤯 exploding_head shocked_face_with_exploding_head +🤠 face_with_cowboy_hat +🥳 partying_face party horn hat +🥸 disguised_face +😎 sunglasses smiling face +🤓 nerd_face +🧐 face_with_monocle +😕 confused face +🫤 face_with_diagonal_mouth +😟 worried face +🙁 slightly_frowning_face +☹️ white_frowning_face +😮 open_mouth face +😯 hushed face +😲 astonished face +😳 flushed face +🥺 pleading_face eyes +🥹 face_holding_back_tears +😦 frowning face open mouth +😧 anguished face +😨 fearful face +😰 cold_sweat face open mouth +😥 disappointed_relieved but face +😢 cry crying face +😭 sob loudly crying face +😱 scream face screaming fear +😖 confounded face +😣 persevere persevering face +😞 disappointed face +😓 sweat face cold +😩 weary face +😫 tired_face +🥱 yawning_face +😤 triumph face look +😡 rage pouting face +😠 angry face +🤬 face_with_symbols_on_mouth serious_face_with_symbols_covering_mouth +😈 smiling_imp face horns +👿 imp +💀 skull +☠️ skull_and_crossbones +💩 hankey poop shit pile poo +🤡 clown_face +👹 japanese_ogre +👺 japanese_goblin +👻 ghost +👽 alien extraterrestrial +👾 space_invader alien monster +🤖 robot_face +😺 smiley_cat smiling face open mouth +😸 smile_cat grinning face smiling eyes +😹 joy_cat face tears +😻 heart_eyes_cat smiling face heart-shaped +😼 smirk_cat face wry smile +😽 kissing_cat face closed eyes +🙀 scream_cat weary face +😿 crying_cat_face +😾 pouting_cat face +🙈 see_no_evil see-no-evil monkey +🙉 hear_no_evil hear-no-evil monkey +🙊 speak_no_evil speak-no-evil monkey +💌 love_letter +💘 cupid heart arrow +💝 gift_heart ribbon +💖 sparkling_heart +💗 heartpulse growing heart +💓 heartbeat beating heart +💞 revolving_hearts +💕 two_hearts +💟 heart_decoration +❣️ heavy_heart_exclamation_mark_ornament +💔 broken_heart +❤️‍🔥 heart_on_fire +❤️‍🩹 mending_heart +❤️ heart heavy black +🩷 pink_heart +🧡 orange_heart +💛 yellow_heart +💚 green_heart +💙 blue_heart +🩵 light_blue_heart +💜 purple_heart +🤎 brown_heart +🖤 black_heart +🩶 grey_heart +🤍 white_heart +💋 kiss mark +💯 100 hundred points symbol +💢 anger symbol +💥 boom collision symbol +💫 dizzy symbol +💦 sweat_drops splashing symbol +💨 dash symbol +🕳️ hole +💬 speech_balloon +👁️‍🗨️ eye-in-speech-bubble +🗨️ left_speech_bubble +🗯️ right_anger_bubble +💭 thought_balloon +💤 zzz sleeping symbol +👋 wave waving hand sign +🤚 raised_back_of_hand +🖐️ raised_hand_with_fingers_splayed +✋ hand raised_hand +🖖 spock-hand raised part between middle ring fingers +🫱 rightwards_hand +🫲 leftwards_hand +🫳 palm_down_hand +🫴 palm_up_hand +🫷 leftwards_pushing_hand +🫸 rightwards_pushing_hand +👌 ok_hand sign +🤌 pinched_fingers +🤏 pinching_hand +✌️ v victory hand +🤞 crossed_fingers hand_with_index_and_middle_fingers_crossed +🫰 hand_with_index_finger_and_thumb_crossed +🤟 i_love_you_hand_sign +🤘 the_horns sign_of_the_horns +🤙 call_me_hand +👈 point_left white pointing backhand index +👉 point_right white pointing backhand index +👆 point_up_2 white pointing backhand index +🖕 middle_finger reversed_hand_with_middle_finger_extended +👇 point_down white pointing backhand index +☝️ point_up white pointing index +🫵 index_pointing_at_the_viewer +👍 +1 thumbsup thumbs up sign +👎 -1 thumbsdown thumbs down sign +✊ fist raised +👊 facepunch punch fisted hand sign +🤛 left-facing_fist left-facing +🤜 right-facing_fist right-facing +👏 clap clapping hands sign +🙌 raised_hands person raising both celebration +🫶 heart_hands +👐 open_hands sign +🤲 palms_up_together +🤝 handshake +🙏 pray person folded hands +✍️ writing_hand +💅 nail_care polish +🤳 selfie +💪 muscle flexed biceps +🦾 mechanical_arm +🦿 mechanical_leg +🦵 leg +🦶 foot +👂 ear +🦻 ear_with_hearing_aid +👃 nose +🧠 brain +🫀 anatomical_heart +🫁 lungs +🦷 tooth +🦴 bone +👀 eyes +👁️ eye +👅 tongue +👄 lips mouth +🫦 biting_lip +👶 baby +🧒 child +👦 boy +👧 girl +🧑 adult +👱 person_with_blond_hair +👨 man +🧔 bearded_person +🧔‍♂️ man_with_beard +🧔‍♀️ woman_with_beard +👨‍🦰 red_haired_man hair +👨‍🦱 curly_haired_man hair +👨‍🦳 white_haired_man hair +👨‍🦲 bald_man +👩 woman +👩‍🦰 red_haired_woman hair +🧑‍🦰 red_haired_person hair +👩‍🦱 curly_haired_woman hair +🧑‍🦱 curly_haired_person hair +👩‍🦳 white_haired_woman hair +🧑‍🦳 white_haired_person hair +👩‍🦲 bald_woman +🧑‍🦲 bald_person +👱‍♀️ blond-haired-woman hair +👱‍♂️ blond-haired-man hair +🧓 older_adult +👴 older_man +👵 older_woman +🙍 person_frowning +🙍‍♂️ man-frowning +🙍‍♀️ woman-frowning +🙎 person_with_pouting_face +🙎‍♂️ man-pouting +🙎‍♀️ woman-pouting +🙅 no_good face gesture +🙅‍♂️ man-gesturing-no +🙅‍♀️ woman-gesturing-no +🙆 ok_woman face gesture +🙆‍♂️ man-gesturing-ok +🙆‍♀️ woman-gesturing-ok +💁 information_desk_person +💁‍♂️ man-tipping-hand +💁‍♀️ woman-tipping-hand +🙋 raising_hand happy person one +🙋‍♂️ man-raising-hand +🙋‍♀️ woman-raising-hand +🧏 deaf_person +🧏‍♂️ deaf_man +🧏‍♀️ deaf_woman +🙇 bow person bowing deeply +🙇‍♂️ man-bowing +🙇‍♀️ woman-bowing +🤦 face_palm +🤦‍♂️ man-facepalming +🤦‍♀️ woman-facepalming +🤷 shrug +🤷‍♂️ man-shrugging +🤷‍♀️ woman-shrugging +🧑‍⚕️ health_worker +👨‍⚕️ male-doctor man health worker +👩‍⚕️ female-doctor woman health worker +🧑‍🎓 student +👨‍🎓 male-student man +👩‍🎓 female-student woman +🧑‍🏫 teacher +👨‍🏫 male-teacher man +👩‍🏫 female-teacher woman +🧑‍⚖️ judge +👨‍⚖️ male-judge man +👩‍⚖️ female-judge woman +🧑‍🌾 farmer +👨‍🌾 male-farmer man +👩‍🌾 female-farmer woman +🧑‍🍳 cook +👨‍🍳 male-cook man +👩‍🍳 female-cook woman +🧑‍🔧 mechanic +👨‍🔧 male-mechanic man +👩‍🔧 female-mechanic woman +🧑‍🏭 factory_worker +👨‍🏭 male-factory-worker man +👩‍🏭 female-factory-worker woman +🧑‍💼 office_worker +👨‍💼 male-office-worker man +👩‍💼 female-office-worker woman +🧑‍🔬 scientist +👨‍🔬 male-scientist man +👩‍🔬 female-scientist woman +🧑‍💻 technologist +👨‍💻 male-technologist man +👩‍💻 female-technologist woman +🧑‍🎤 singer +👨‍🎤 male-singer man +👩‍🎤 female-singer woman +🧑‍🎨 artist +👨‍🎨 male-artist man +👩‍🎨 female-artist woman +🧑‍✈️ pilot +👨‍✈️ male-pilot man +👩‍✈️ female-pilot woman +🧑‍🚀 astronaut +👨‍🚀 male-astronaut man +👩‍🚀 female-astronaut woman +🧑‍🚒 firefighter +👨‍🚒 male-firefighter man +👩‍🚒 female-firefighter woman +👮 cop police officer +👮‍♂️ male-police-officer man +👮‍♀️ female-police-officer woman +🕵️ sleuth_or_spy detective +🕵️‍♂️ male-detective man +🕵️‍♀️ female-detective woman +💂 guardsman +💂‍♂️ male-guard man +💂‍♀️ female-guard woman +🥷 ninja +👷 construction_worker +👷‍♂️ male-construction-worker man +👷‍♀️ female-construction-worker woman +🫅 person_with_crown +🤴 prince +👸 princess +👳 man_with_turban +👳‍♂️ man-wearing-turban +👳‍♀️ woman-wearing-turban +👲 man_with_gua_pi_mao +🧕 person_with_headscarf +🤵 person_in_tuxedo man +🤵‍♂️ man_in_tuxedo +🤵‍♀️ woman_in_tuxedo +👰 bride_with_veil +👰‍♂️ man_with_veil +👰‍♀️ woman_with_veil +🤰 pregnant_woman +🫃 pregnant_man +🫄 pregnant_person +🤱 breast-feeding +👩‍🍼 woman_feeding_baby +👨‍🍼 man_feeding_baby +🧑‍🍼 person_feeding_baby +👼 angel baby +🎅 santa father christmas +🤶 mrs_claus mother_christmas +🧑‍🎄 mx_claus +🦸 superhero +🦸‍♂️ male_superhero man +🦸‍♀️ female_superhero woman +🦹 supervillain +🦹‍♂️ male_supervillain man +🦹‍♀️ female_supervillain woman +🧙 mage +🧙‍♂️ male_mage man +🧙‍♀️ female_mage woman +🧚 fairy +🧚‍♂️ male_fairy man +🧚‍♀️ female_fairy woman +🧛 vampire +🧛‍♂️ male_vampire man +🧛‍♀️ female_vampire woman +🧜 merperson +🧜‍♂️ merman +🧜‍♀️ mermaid +🧝 elf +🧝‍♂️ male_elf man +🧝‍♀️ female_elf woman +🧞 genie +🧞‍♂️ male_genie man +🧞‍♀️ female_genie woman +🧟 zombie +🧟‍♂️ male_zombie man +🧟‍♀️ female_zombie woman +🧌 troll +💆 massage face +💆‍♂️ man-getting-massage +💆‍♀️ woman-getting-massage +💇 haircut +💇‍♂️ man-getting-haircut +💇‍♀️ woman-getting-haircut +🚶 walking pedestrian +🚶‍♂️ man-walking +🚶‍♀️ woman-walking +🚶‍➡️ person_walking_facing_right +🚶‍♀️‍➡️ woman_walking_facing_right +🚶‍♂️‍➡️ man_walking_facing_right +🧍 standing_person +🧍‍♂️ man_standing +🧍‍♀️ woman_standing +🧎 kneeling_person +🧎‍♂️ man_kneeling +🧎‍♀️ woman_kneeling +🧎‍➡️ person_kneeling_facing_right +🧎‍♀️‍➡️ woman_kneeling_facing_right +🧎‍♂️‍➡️ man_kneeling_facing_right +🧑‍🦯 person_with_probing_cane white +🧑‍🦯‍➡️ person_with_white_cane_facing_right +👨‍🦯 man_with_probing_cane white +👨‍🦯‍➡️ man_with_white_cane_facing_right +👩‍🦯 woman_with_probing_cane white +👩‍🦯‍➡️ woman_with_white_cane_facing_right +🧑‍🦼 person_in_motorized_wheelchair +🧑‍🦼‍➡️ person_in_motorized_wheelchair_facing_right +👨‍🦼 man_in_motorized_wheelchair +👨‍🦼‍➡️ man_in_motorized_wheelchair_facing_right +👩‍🦼 woman_in_motorized_wheelchair +👩‍🦼‍➡️ woman_in_motorized_wheelchair_facing_right +🧑‍🦽 person_in_manual_wheelchair +🧑‍🦽‍➡️ person_in_manual_wheelchair_facing_right +👨‍🦽 man_in_manual_wheelchair +👨‍🦽‍➡️ man_in_manual_wheelchair_facing_right +👩‍🦽 woman_in_manual_wheelchair +👩‍🦽‍➡️ woman_in_manual_wheelchair_facing_right +🏃 runner running +🏃‍♂️ man-running +🏃‍♀️ woman-running +🏃‍➡️ person_running_facing_right +🏃‍♀️‍➡️ woman_running_facing_right +🏃‍♂️‍➡️ man_running_facing_right +💃 dancer +🕺 man_dancing +🕴️ man_in_business_suit_levitating person +👯 dancers woman bunny ears +👯‍♂️ men-with-bunny-ears-partying man-with-bunny-ears-partying +👯‍♀️ women-with-bunny-ears-partying woman-with-bunny-ears-partying +🧖 person_in_steamy_room +🧖‍♂️ man_in_steamy_room +🧖‍♀️ woman_in_steamy_room +🧗 person_climbing +🧗‍♂️ man_climbing +🧗‍♀️ woman_climbing +🤺 fencer +🏇 horse_racing +⛷️ skier +🏂 snowboarder +🏌️ golfer person golfing +🏌️‍♂️ man-golfing +🏌️‍♀️ woman-golfing +🏄 surfer +🏄‍♂️ man-surfing +🏄‍♀️ woman-surfing +🚣 rowboat +🚣‍♂️ man-rowing-boat +🚣‍♀️ woman-rowing-boat +🏊 swimmer +🏊‍♂️ man-swimming +🏊‍♀️ woman-swimming +⛹️ person_with_ball bouncing +⛹️‍♂️ man-bouncing-ball +⛹️‍♀️ woman-bouncing-ball +🏋️ weight_lifter person lifting weights +🏋️‍♂️ man-lifting-weights +🏋️‍♀️ woman-lifting-weights +🚴 bicyclist +🚴‍♂️ man-biking +🚴‍♀️ woman-biking +🚵 mountain_bicyclist +🚵‍♂️ man-mountain-biking +🚵‍♀️ woman-mountain-biking +🤸 person_doing_cartwheel +🤸‍♂️ man-cartwheeling +🤸‍♀️ woman-cartwheeling +🤼 wrestlers +🤼‍♂️ man-wrestling men +🤼‍♀️ woman-wrestling women +🤽 water_polo +🤽‍♂️ man-playing-water-polo +🤽‍♀️ woman-playing-water-polo +🤾 handball +🤾‍♂️ man-playing-handball +🤾‍♀️ woman-playing-handball +🤹 juggling +🤹‍♂️ man-juggling +🤹‍♀️ woman-juggling +🧘 person_in_lotus_position +🧘‍♂️ man_in_lotus_position +🧘‍♀️ woman_in_lotus_position +🛀 bath +🛌 sleeping_accommodation +🧑‍🤝‍🧑 people_holding_hands +👭 two_women_holding_hands women_holding_hands +👫 man_and_woman_holding_hands woman_and_man_holding_hands couple +👬 two_men_holding_hands men_holding_hands +💏 couplekiss kiss +👩‍❤️‍💋‍👨 woman-kiss-man +👨‍❤️‍💋‍👨 man-kiss-man +👩‍❤️‍💋‍👩 woman-kiss-woman +💑 couple_with_heart +👩‍❤️‍👨 woman-heart-man couple +👨‍❤️‍👨 man-heart-man couple +👩‍❤️‍👩 woman-heart-woman couple +👨‍👩‍👦 man-woman-boy family +👨‍👩‍👧 man-woman-girl family +👨‍👩‍👧‍👦 man-woman-girl-boy family +👨‍👩‍👦‍👦 man-woman-boy-boy family +👨‍👩‍👧‍👧 man-woman-girl-girl family +👨‍👨‍👦 man-man-boy family +👨‍👨‍👧 man-man-girl family +👨‍👨‍👧‍👦 man-man-girl-boy family +👨‍👨‍👦‍👦 man-man-boy-boy family +👨‍👨‍👧‍👧 man-man-girl-girl family +👩‍👩‍👦 woman-woman-boy family +👩‍👩‍👧 woman-woman-girl family +👩‍👩‍👧‍👦 woman-woman-girl-boy family +👩‍👩‍👦‍👦 woman-woman-boy-boy family +👩‍👩‍👧‍👧 woman-woman-girl-girl family +👨‍👦 man-boy family +👨‍👦‍👦 man-boy-boy family +👨‍👧 man-girl family +👨‍👧‍👦 man-girl-boy family +👨‍👧‍👧 man-girl-girl family +👩‍👦 woman-boy family +👩‍👦‍👦 woman-boy-boy family +👩‍👧 woman-girl family +👩‍👧‍👦 woman-girl-boy family +👩‍👧‍👧 woman-girl-girl family +🗣️ speaking_head_in_silhouette +👤 bust_in_silhouette +👥 busts_in_silhouette +🫂 people_hugging +👪 family +🧑‍🧑‍🧒 family_adult_adult_child +🧑‍🧑‍🧒‍🧒 family_adult_adult_child_child +🧑‍🧒 family_adult_child +🧑‍🧒‍🧒 family_adult_child_child +👣 footprints +🫆 fingerprint +🐵 monkey_face +🐒 monkey +🦍 gorilla +🦧 orangutan +🐶 dog face +🐕 dog2 dog +🦮 guide_dog +🐕‍🦺 service_dog +🐩 poodle +🐺 wolf face +🦊 fox_face +🦝 raccoon +🐱 cat face +🐈 cat2 cat +🐈‍⬛ black_cat +🦁 lion_face +🐯 tiger face +🐅 tiger2 tiger +🐆 leopard +🐴 horse face +🫎 moose +🫏 donkey +🐎 racehorse horse +🦄 unicorn_face +🦓 zebra_face +🦌 deer +🦬 bison +🐮 cow face +🐂 ox +🐃 water_buffalo +🐄 cow2 cow +🐷 pig face +🐖 pig2 pig +🐗 boar +🐽 pig_nose +🐏 ram +🐑 sheep +🐐 goat +🐪 dromedary_camel +🐫 camel bactrian +🦙 llama +🦒 giraffe_face +🐘 elephant +🦣 mammoth +🦏 rhinoceros +🦛 hippopotamus +🐭 mouse face +🐁 mouse2 mouse +🐀 rat +🐹 hamster face +🐰 rabbit face +🐇 rabbit2 rabbit +🐿️ chipmunk +🦫 beaver +🦔 hedgehog +🦇 bat +🐻 bear face +🐻‍❄️ polar_bear +🐨 koala +🐼 panda_face +🦥 sloth +🦦 otter +🦨 skunk +🦘 kangaroo +🦡 badger +🐾 feet paw_prints +🦃 turkey +🐔 chicken +🐓 rooster +🐣 hatching_chick +🐤 baby_chick +🐥 hatched_chick front-facing baby +🐦 bird +🐧 penguin +🕊️ dove_of_peace +🦅 eagle +🦆 duck +🦢 swan +🦉 owl +🦤 dodo +🪶 feather +🦩 flamingo +🦚 peacock +🦜 parrot +🪽 wing +🐦‍⬛ black_bird +🪿 goose +🐦‍🔥 phoenix +🐸 frog face +🐊 crocodile +🐢 turtle +🦎 lizard +🐍 snake +🐲 dragon_face +🐉 dragon +🦕 sauropod +🦖 t-rex +🐳 whale spouting +🐋 whale2 whale +🐬 dolphin flipper +🦭 seal +🐟 fish +🐠 tropical_fish +🐡 blowfish +🦈 shark +🐙 octopus +🐚 shell spiral +🪸 coral +🪼 jellyfish +🦀 crab +🦞 lobster +🦐 shrimp +🦑 squid +🦪 oyster +🐌 snail +🦋 butterfly +🐛 bug +🐜 ant +🐝 bee honeybee +🪲 beetle +🐞 ladybug lady_beetle +🦗 cricket +🪳 cockroach +🕷️ spider +🕸️ spider_web +🦂 scorpion +🦟 mosquito +🪰 fly +🪱 worm +🦠 microbe +💐 bouquet +🌸 cherry_blossom +💮 white_flower +🪷 lotus +🏵️ rosette +🌹 rose +🥀 wilted_flower +🌺 hibiscus +🌻 sunflower +🌼 blossom +🌷 tulip +🪻 hyacinth +🌱 seedling +🪴 potted_plant +🌲 evergreen_tree +🌳 deciduous_tree +🌴 palm_tree +🌵 cactus +🌾 ear_of_rice +🌿 herb +☘️ shamrock +🍀 four_leaf_clover +🍁 maple_leaf +🍂 fallen_leaf +🍃 leaves leaf fluttering wind +🪹 empty_nest +🪺 nest_with_eggs +🍄 mushroom +🪾 leafless_tree +🍇 grapes +🍈 melon +🍉 watermelon +🍊 tangerine +🍋 lemon +🍋‍🟩 lime +🍌 banana +🍍 pineapple +🥭 mango +🍎 apple red +🍏 green_apple +🍐 pear +🍑 peach +🍒 cherries +🍓 strawberry +🫐 blueberries +🥝 kiwifruit +🍅 tomato +🫒 olive +🥥 coconut +🥑 avocado +🍆 eggplant aubergine +🥔 potato +🥕 carrot +🌽 corn ear maize +🌶️ hot_pepper +🫑 bell_pepper +🥒 cucumber +🥬 leafy_green +🥦 broccoli +🧄 garlic +🧅 onion +🥜 peanuts +🫘 beans +🌰 chestnut +🫚 ginger_root +🫛 pea_pod +🍄‍🟫 brown_mushroom +🫜 root_vegetable +🍞 bread +🥐 croissant +🥖 baguette_bread +🫓 flatbread +🥨 pretzel +🥯 bagel +🥞 pancakes +🧇 waffle +🧀 cheese_wedge +🍖 meat_on_bone +🍗 poultry_leg +🥩 cut_of_meat +🥓 bacon +🍔 hamburger +🍟 fries french +🍕 pizza slice +🌭 hotdog hot dog +🥪 sandwich +🌮 taco +🌯 burrito +🫔 tamale +🥙 stuffed_flatbread +🧆 falafel +🥚 egg +🍳 fried_egg cooking +🥘 shallow_pan_of_food +🍲 stew pot food +🫕 fondue +🥣 bowl_with_spoon +🥗 green_salad +🍿 popcorn +🧈 butter +🧂 salt shaker +🥫 canned_food +🍱 bento box +🍘 rice_cracker +🍙 rice_ball +🍚 rice cooked +🍛 curry rice +🍜 ramen steaming bowl +🍝 spaghetti +🍠 sweet_potato roasted +🍢 oden +🍣 sushi +🍤 fried_shrimp +🍥 fish_cake swirl design +🥮 moon_cake +🍡 dango +🥟 dumpling +🥠 fortune_cookie +🥡 takeout_box +🍦 icecream soft ice cream +🍧 shaved_ice +🍨 ice_cream +🍩 doughnut +🍪 cookie +🎂 birthday cake +🍰 cake shortcake +🧁 cupcake +🥧 pie +🍫 chocolate_bar +🍬 candy +🍭 lollipop +🍮 custard +🍯 honey_pot +🍼 baby_bottle +🥛 glass_of_milk +☕ coffee hot beverage +🫖 teapot +🍵 tea teacup without handle +🍶 sake bottle cup +🍾 champagne bottle popping cork +🍷 wine_glass +🍸 cocktail glass +🍹 tropical_drink +🍺 beer mug +🍻 beers clinking beer mugs +🥂 clinking_glasses +🥃 tumbler_glass +🫗 pouring_liquid +🥤 cup_with_straw +🧋 bubble_tea +🧃 beverage_box +🧉 mate_drink +🧊 ice_cube +🥢 chopsticks +🍽️ knife_fork_plate +🍴 fork_and_knife +🥄 spoon +🔪 hocho knife +🫙 jar +🏺 amphora +🌍 earth_africa globe europe-africa +🌎 earth_americas globe +🌏 earth_asia globe asia-australia +🌐 globe_with_meridians +🗺️ world_map +🗾 japan silhouette +🧭 compass +🏔️ snow_capped_mountain snow-capped +⛰️ mountain +🌋 volcano +🗻 mount_fuji +🏕️ camping +🏖️ beach_with_umbrella +🏜️ desert +🏝️ desert_island +🏞️ national_park +🏟️ stadium +🏛️ classical_building +🏗️ building_construction +🧱 bricks brick +🪨 rock +🪵 wood +🛖 hut +🏘️ house_buildings houses +🏚️ derelict_house_building +🏠 house building +🏡 house_with_garden +🏢 office building +🏣 post_office japanese +🏤 european_post_office +🏥 hospital +🏦 bank +🏨 hotel +🏩 love_hotel +🏪 convenience_store +🏫 school +🏬 department_store +🏭 factory +🏯 japanese_castle +🏰 european_castle +💒 wedding +🗼 tokyo_tower +🗽 statue_of_liberty +⛪ church +🕌 mosque +🛕 hindu_temple +🕍 synagogue +⛩️ shinto_shrine +🕋 kaaba +⛲ fountain +⛺ tent +🌁 foggy +🌃 night_with_stars +🏙️ cityscape +🌄 sunrise_over_mountains +🌅 sunrise +🌆 city_sunset cityscape at dusk +🌇 city_sunrise sunset over buildings +🌉 bridge_at_night +♨️ hotsprings hot springs +🎠 carousel_horse +🛝 playground_slide +🎡 ferris_wheel +🎢 roller_coaster +💈 barber pole +🎪 circus_tent +🚂 steam_locomotive +🚃 railway_car +🚄 bullettrain_side high-speed train +🚅 bullettrain_front high-speed train bullet nose +🚆 train2 train +🚇 metro +🚈 light_rail +🚉 station +🚊 tram +🚝 monorail +🚞 mountain_railway +🚋 train tram car +🚌 bus +🚍 oncoming_bus +🚎 trolleybus +🚐 minibus +🚑 ambulance +🚒 fire_engine +🚓 police_car +🚔 oncoming_police_car +🚕 taxi +🚖 oncoming_taxi +🚗 car red_car automobile +🚘 oncoming_automobile +🚙 blue_car recreational vehicle +🛻 pickup_truck +🚚 truck delivery +🚛 articulated_lorry +🚜 tractor +🏎️ racing_car +🏍️ racing_motorcycle +🛵 motor_scooter +🦽 manual_wheelchair +🦼 motorized_wheelchair +🛺 auto_rickshaw +🚲 bike bicycle +🛴 scooter +🛹 skateboard +🛼 roller_skate +🚏 busstop bus stop +🛣️ motorway +🛤️ railway_track +🛢️ oil_drum +⛽ fuelpump fuel pump +🛞 wheel +🚨 rotating_light police cars revolving +🚥 traffic_light horizontal +🚦 vertical_traffic_light +🛑 octagonal_sign +🚧 construction sign +⚓ anchor +🛟 ring_buoy +⛵ boat sailboat +🛶 canoe +🚤 speedboat +🛳️ passenger_ship +⛴️ ferry +🛥️ motor_boat +🚢 ship +✈️ airplane +🛩️ small_airplane +🛫 airplane_departure +🛬 airplane_arriving +🪂 parachute +💺 seat +🚁 helicopter +🚟 suspension_railway +🚠 mountain_cableway +🚡 aerial_tramway +🛰️ satellite +🚀 rocket +🛸 flying_saucer +🛎️ bellhop_bell +🧳 luggage +⌛ hourglass +⏳ hourglass_flowing_sand +⌚ watch +⏰ alarm_clock +⏱️ stopwatch +⏲️ timer_clock +🕰️ mantelpiece_clock +🕛 clock12 clock face twelve oclock +🕧 clock1230 clock face twelve-thirty +🕐 clock1 clock face one oclock +🕜 clock130 clock face one-thirty +🕑 clock2 clock face two oclock +🕝 clock230 clock face two-thirty +🕒 clock3 clock face three oclock +🕞 clock330 clock face three-thirty +🕓 clock4 clock face four oclock +🕟 clock430 clock face four-thirty +🕔 clock5 clock face five oclock +🕠 clock530 clock face five-thirty +🕕 clock6 clock face six oclock +🕡 clock630 clock face six-thirty +🕖 clock7 clock face seven oclock +🕢 clock730 clock face seven-thirty +🕗 clock8 clock face eight oclock +🕣 clock830 clock face eight-thirty +🕘 clock9 clock face nine oclock +🕤 clock930 clock face nine-thirty +🕙 clock10 clock face ten oclock +🕥 clock1030 clock face ten-thirty +🕚 clock11 clock face eleven oclock +🕦 clock1130 clock face eleven-thirty +🌑 new_moon symbol +🌒 waxing_crescent_moon symbol +🌓 first_quarter_moon symbol +🌔 moon waxing_gibbous_moon symbol +🌕 full_moon symbol +🌖 waning_gibbous_moon symbol +🌗 last_quarter_moon symbol +🌘 waning_crescent_moon symbol +🌙 crescent_moon +🌚 new_moon_with_face +🌛 first_quarter_moon_with_face +🌜 last_quarter_moon_with_face +🌡️ thermometer +☀️ sunny black sun rays +🌝 full_moon_with_face +🌞 sun_with_face +🪐 ringed_planet +⭐ star white medium +🌟 star2 glowing star +🌠 stars shooting star +🌌 milky_way +☁️ cloud +⛅ partly_sunny sun behind cloud +⛈️ thunder_cloud_and_rain lightning +🌤️ mostly_sunny sun_small_cloud behind +🌥️ barely_sunny sun_behind_cloud large +🌦️ partly_sunny_rain sun_behind_rain_cloud +🌧️ rain_cloud +🌨️ snow_cloud +🌩️ lightning lightning_cloud +🌪️ tornado tornado_cloud +🌫️ fog +🌬️ wind_blowing_face +🌀 cyclone +🌈 rainbow +🌂 closed_umbrella +☂️ umbrella +☔ umbrella_with_rain_drops +⛱️ umbrella_on_ground +⚡ zap high voltage sign +❄️ snowflake +☃️ snowman +⛄ snowman_without_snow +☄️ comet +🔥 fire +💧 droplet +🌊 ocean water wave +🎃 jack_o_lantern jack-o-lantern +🎄 christmas_tree +🎆 fireworks +🎇 sparkler firework +🧨 firecracker +✨ sparkles +🎈 balloon +🎉 tada party popper +🎊 confetti_ball +🎋 tanabata_tree +🎍 bamboo pine decoration +🎎 dolls japanese +🎏 flags carp streamer +🎐 wind_chime +🎑 rice_scene moon viewing ceremony +🧧 red_envelope gift +🎀 ribbon +🎁 gift wrapped present +🎗️ reminder_ribbon +🎟️ admission_tickets +🎫 ticket +🎖️ medal military +🏆 trophy +🏅 sports_medal +🥇 first_place_medal +🥈 second_place_medal +🥉 third_place_medal +⚽ soccer ball +⚾ baseball +🥎 softball +🏀 basketball hoop +🏐 volleyball +🏈 football american +🏉 rugby_football +🎾 tennis racquet ball +🥏 flying_disc +🎳 bowling +🏏 cricket_bat_and_ball +🏑 field_hockey_stick_and_ball +🏒 ice_hockey_stick_and_puck +🥍 lacrosse stick ball +🏓 table_tennis_paddle_and_ball +🏸 badminton_racquet_and_shuttlecock +🥊 boxing_glove +🥋 martial_arts_uniform +🥅 goal_net +⛳ golf flag hole +⛸️ ice_skate +🎣 fishing_pole_and_fish +🤿 diving_mask +🎽 running_shirt_with_sash +🎿 ski boot +🛷 sled +🥌 curling_stone +🎯 dart direct hit +🪀 yo-yo +🪁 kite +🔫 gun pistol +🎱 8ball billiards +🔮 crystal_ball +🪄 magic_wand +🎮 video_game +🕹️ joystick +🎰 slot_machine +🎲 game_die +🧩 jigsaw puzzle piece +🧸 teddy_bear +🪅 pinata +🪩 mirror_ball +🪆 nesting_dolls +♠️ spades black spade suit +♥️ hearts black heart suit +♦️ diamonds black diamond suit +♣️ clubs black club suit +♟️ chess_pawn +🃏 black_joker playing card +🀄 mahjong tile red dragon +🎴 flower_playing_cards +🎭 performing_arts +🖼️ frame_with_picture framed +🎨 art artist palette +🧵 thread spool +🪡 sewing_needle +🧶 yarn ball +🪢 knot +👓 eyeglasses +🕶️ dark_sunglasses +🥽 goggles +🥼 lab_coat +🦺 safety_vest +👔 necktie +👕 shirt tshirt t-shirt +👖 jeans +🧣 scarf +🧤 gloves +🧥 coat +🧦 socks +👗 dress +👘 kimono +🥻 sari +🩱 one-piece_swimsuit one-piece +🩲 briefs +🩳 shorts +👙 bikini +👚 womans_clothes +🪭 folding_hand_fan +👛 purse +👜 handbag +👝 pouch +🛍️ shopping_bags +🎒 school_satchel +🩴 thong_sandal +👞 mans_shoe shoe +👟 athletic_shoe +🥾 hiking_boot +🥿 womans_flat_shoe +👠 high_heel high-heeled shoe +👡 sandal womans +🩰 ballet_shoes +👢 boot womans boots +🪮 hair_pick +👑 crown +👒 womans_hat +🎩 tophat top hat +🎓 mortar_board graduation cap +🧢 billed_cap +🪖 military_helmet +⛑️ helmet_with_white_cross rescue worker s +📿 prayer_beads +💄 lipstick +💍 ring +💎 gem stone +🔇 mute speaker cancellation stroke +🔈 speaker +🔉 sound speaker one wave +🔊 loud_sound speaker three waves +📢 loudspeaker public address +📣 mega cheering megaphone +📯 postal_horn +🔔 bell +🔕 no_bell cancellation stroke +🎼 musical_score +🎵 musical_note +🎶 notes multiple musical +🎙️ studio_microphone +🎚️ level_slider +🎛️ control_knobs +🎤 microphone +🎧 headphones headphone +📻 radio +🎷 saxophone +🪗 accordion +🎸 guitar +🎹 musical_keyboard +🎺 trumpet +🎻 violin +🪕 banjo +🥁 drum_with_drumsticks +🪘 long_drum +🪇 maracas +🪈 flute +🪉 harp +📱 iphone mobile phone +📲 calling mobile phone rightwards arrow at left +☎️ phone telephone black +📞 telephone_receiver +📟 pager +📠 fax machine +🔋 battery +🪫 low_battery +🔌 electric_plug +💻 computer personal +🖥️ desktop_computer +🖨️ printer +⌨️ keyboard +🖱️ three_button_mouse computer +🖲️ trackball +💽 minidisc +💾 floppy_disk +💿 cd optical disc +📀 dvd +🧮 abacus +🎥 movie_camera +🎞️ film_frames +📽️ film_projector +🎬 clapper board +📺 tv television +📷 camera +📸 camera_with_flash +📹 video_camera +📼 vhs videocassette +🔍 mag left-pointing magnifying glass +🔎 mag_right right-pointing magnifying glass +🕯️ candle +💡 bulb electric light +🔦 flashlight electric torch +🏮 izakaya_lantern lantern +🪔 diya_lamp +📔 notebook_with_decorative_cover +📕 closed_book +📖 book open_book +📗 green_book +📘 blue_book +📙 orange_book +📚 books +📓 notebook +📒 ledger +📃 page_with_curl +📜 scroll +📄 page_facing_up +📰 newspaper +🗞️ rolled_up_newspaper rolled-up +📑 bookmark_tabs +🔖 bookmark +🏷️ label +💰 moneybag money bag +🪙 coin +💴 yen banknote sign +💵 dollar banknote sign +💶 euro banknote sign +💷 pound banknote sign +💸 money_with_wings +💳 credit_card +🧾 receipt +💹 chart upwards trend yen sign +✉️ email envelope +📧 e-mail symbol +📨 incoming_envelope +📩 envelope_with_arrow downwards above +📤 outbox_tray +📥 inbox_tray +📦 package +📫 mailbox closed raised flag +📪 mailbox_closed lowered flag +📬 mailbox_with_mail open raised flag +📭 mailbox_with_no_mail open lowered flag +📮 postbox +🗳️ ballot_box_with_ballot +✏️ pencil2 pencil +✒️ black_nib +🖋️ lower_left_fountain_pen +🖊️ lower_left_ballpoint_pen +🖌️ lower_left_paintbrush +🖍️ lower_left_crayon +📝 memo pencil +💼 briefcase +📁 file_folder +📂 open_file_folder +🗂️ card_index_dividers +📅 date calendar +📆 calendar tear-off +🗒️ spiral_note_pad notepad +🗓️ spiral_calendar_pad +📇 card_index +📈 chart_with_upwards_trend +📉 chart_with_downwards_trend +📊 bar_chart +📋 clipboard +📌 pushpin +📍 round_pushpin +📎 paperclip +🖇️ linked_paperclips +📏 straight_ruler +📐 triangular_ruler +✂️ scissors black +🗃️ card_file_box +🗄️ file_cabinet +🗑️ wastebasket +🔒 lock +🔓 unlock open lock +🔏 lock_with_ink_pen +🔐 closed_lock_with_key +🔑 key +🗝️ old_key +🔨 hammer +🪓 axe +⛏️ pick +⚒️ hammer_and_pick +🛠️ hammer_and_wrench +🗡️ dagger_knife +⚔️ crossed_swords +💣 bomb +🪃 boomerang +🏹 bow_and_arrow +🛡️ shield +🪚 carpentry_saw +🔧 wrench +🪛 screwdriver +🔩 nut_and_bolt +⚙️ gear +🗜️ compression clamp +⚖️ scales balance scale +🦯 probing_cane +🔗 link symbol +⛓️‍💥 broken_chain +⛓️ chains +🪝 hook +🧰 toolbox +🧲 magnet +🪜 ladder +🪏 shovel +⚗️ alembic +🧪 test_tube +🧫 petri_dish +🧬 dna double helix +🔬 microscope +🔭 telescope +📡 satellite_antenna +💉 syringe +🩸 drop_of_blood +💊 pill +🩹 adhesive_bandage +🩼 crutch +🩺 stethoscope +🩻 x-ray +🚪 door +🛗 elevator +🪞 mirror +🪟 window +🛏️ bed +🛋️ couch_and_lamp +🪑 chair +🚽 toilet +🪠 plunger +🚿 shower +🛁 bathtub +🪤 mouse_trap +🪒 razor +🧴 lotion_bottle +🧷 safety_pin +🧹 broom +🧺 basket +🧻 roll_of_paper +🪣 bucket +🧼 soap bar +🫧 bubbles +🪥 toothbrush +🧽 sponge +🧯 fire_extinguisher +🛒 shopping_trolley +🚬 smoking symbol +⚰️ coffin +🪦 headstone +⚱️ funeral_urn +🧿 nazar_amulet +🪬 hamsa +🗿 moyai +🪧 placard +🪪 identification_card +🏧 atm automated teller machine +🚮 put_litter_in_its_place symbol +🚰 potable_water symbol +♿ wheelchair symbol +🚹 mens symbol +🚺 womens symbol +🚻 restroom +🚼 baby_symbol +🚾 wc water closet +🛂 passport_control +🛃 customs +🛄 baggage_claim +🛅 left_luggage +⚠️ warning sign +🚸 children_crossing +⛔ no_entry +🚫 no_entry_sign +🚳 no_bicycles +🚭 no_smoking symbol +🚯 do_not_litter symbol +🚱 non-potable_water non-potable symbol +🚷 no_pedestrians +📵 no_mobile_phones +🔞 underage no one under eighteen symbol +☢️ radioactive_sign +☣️ biohazard_sign +⬆️ arrow_up upwards black +↗️ arrow_upper_right north east +➡️ arrow_right black rightwards +↘️ arrow_lower_right south east +⬇️ arrow_down downwards black +↙️ arrow_lower_left south west +⬅️ arrow_left leftwards black +↖️ arrow_upper_left north west +↕️ arrow_up_down +↔️ left_right_arrow +↩️ leftwards_arrow_with_hook +↪️ arrow_right_hook rightwards +⤴️ arrow_heading_up pointing rightwards then curving upwards +⤵️ arrow_heading_down pointing rightwards then curving downwards +🔃 arrows_clockwise downwards upwards open circle +🔄 arrows_counterclockwise anticlockwise downwards upwards open circle +🔙 back leftwards arrow above +🔚 end leftwards arrow above +🔛 on exclamation mark left right arrow above +🔜 soon rightwards arrow above +🔝 top upwards arrow above +🛐 place_of_worship +⚛️ atom_symbol +🕉️ om_symbol +✡️ star_of_david +☸️ wheel_of_dharma +☯️ yin_yang +✝️ latin_cross +☦️ orthodox_cross +☪️ star_and_crescent +☮️ peace_symbol +🕎 menorah_with_nine_branches +🔯 six_pointed_star middle dot +🪯 khanda +♈ aries +♉ taurus +♊ gemini +♋ cancer +♌ leo +♍ virgo +♎ libra +♏ scorpius +♐ sagittarius +♑ capricorn +♒ aquarius +♓ pisces +⛎ ophiuchus +🔀 twisted_rightwards_arrows +🔁 repeat clockwise rightwards leftwards open circle arrows +🔂 repeat_one clockwise rightwards leftwards open circle arrows circled overlay +▶️ arrow_forward black right-pointing triangle +⏩ fast_forward black right-pointing double triangle +⏭️ black_right_pointing_double_triangle_with_vertical_bar next track button +⏯️ black_right_pointing_triangle_with_double_vertical_bar play pause button +◀️ arrow_backward black left-pointing triangle +⏪ rewind black left-pointing double triangle +⏮️ black_left_pointing_double_triangle_with_vertical_bar last track button +🔼 arrow_up_small up-pointing red triangle +⏫ arrow_double_up black up-pointing triangle +🔽 arrow_down_small down-pointing red triangle +⏬ arrow_double_down black down-pointing triangle +⏸️ double_vertical_bar pause button +⏹️ black_square_for_stop button +⏺️ black_circle_for_record button +⏏️ eject button +🎦 cinema +🔅 low_brightness symbol +🔆 high_brightness symbol +📶 signal_strength antenna bars +🛜 wireless +📳 vibration_mode +📴 mobile_phone_off +♀️ female_sign +♂️ male_sign +⚧️ transgender_symbol +✖️ heavy_multiplication_x +➕ heavy_plus_sign +➖ heavy_minus_sign +➗ heavy_division_sign +🟰 heavy_equals_sign +♾️ infinity +‼️ bangbang double exclamation mark +⁉️ interrobang exclamation question mark +❓ question black mark ornament +❔ grey_question white mark ornament +❕ grey_exclamation white mark ornament +❗ exclamation heavy_exclamation_mark symbol +〰️ wavy_dash +💱 currency_exchange +💲 heavy_dollar_sign +⚕️ medical_symbol staff_of_aesculapius +♻️ recycle black universal recycling symbol +⚜️ fleur_de_lis fleur-de-lis +🔱 trident emblem +📛 name_badge +🔰 beginner japanese symbol +⭕ o heavy large circle +✅ white_check_mark heavy +☑️ ballot_box_with_check +✔️ heavy_check_mark +❌ x cross mark +❎ negative_squared_cross_mark +➰ curly_loop +➿ loop double curly +〽️ part_alternation_mark +✳️ eight_spoked_asterisk +✴️ eight_pointed_black_star +❇️ sparkle +©️ copyright sign +®️ registered sign +™️ tm trade mark sign +🫟 splatter +#️⃣ hash key +*️⃣ keycap_star +0️⃣ zero keycap 0 +1️⃣ one keycap 1 +2️⃣ two keycap 2 +3️⃣ three keycap 3 +4️⃣ four keycap 4 +5️⃣ five keycap 5 +6️⃣ six keycap 6 +7️⃣ seven keycap 7 +8️⃣ eight keycap 8 +9️⃣ nine keycap 9 +🔟 keycap_ten +🔠 capital_abcd input symbol latin letters +🔡 abcd input symbol latin small letters +🔢 1234 input symbol numbers +🔣 symbols input symbol +🔤 abc input symbol latin letters +🅰️ a negative squared latin capital letter +🆎 ab negative squared +🅱️ b negative squared latin capital letter +🆑 cl squared +🆒 cool squared +🆓 free squared +ℹ️ information_source +🆔 id squared +Ⓜ️ m circled latin capital letter +🆕 new squared +🆖 ng squared +🅾️ o2 negative squared latin capital letter o +🆗 ok squared +🅿️ parking negative squared latin capital letter p +🆘 sos squared +🆙 up squared exclamation mark +🆚 vs squared +🈁 koko squared katakana +🈂️ sa squared katakana +🈷️ u6708 squared cjk unified ideograph-6708 +🈶 u6709 squared cjk unified ideograph-6709 +🈯 u6307 squared cjk unified ideograph-6307 +🉐 ideograph_advantage circled +🈹 u5272 squared cjk unified ideograph-5272 +🈚 u7121 squared cjk unified ideograph-7121 +🈲 u7981 squared cjk unified ideograph-7981 +🉑 accept circled ideograph +🈸 u7533 squared cjk unified ideograph-7533 +🈴 u5408 squared cjk unified ideograph-5408 +🈳 u7a7a squared cjk unified ideograph-7a7a +㊗️ congratulations circled ideograph congratulation +㊙️ secret circled ideograph +🈺 u55b6 squared cjk unified ideograph-55b6 +🈵 u6e80 squared cjk unified ideograph-6e80 +🔴 red_circle large +🟠 large_orange_circle +🟡 large_yellow_circle +🟢 large_green_circle +🔵 large_blue_circle +🟣 large_purple_circle +🟤 large_brown_circle +⚫ black_circle medium +⚪ white_circle medium +🟥 large_red_square +🟧 large_orange_square +🟨 large_yellow_square +🟩 large_green_square +🟦 large_blue_square +🟪 large_purple_square +🟫 large_brown_square +⬛ black_large_square +⬜ white_large_square +◼️ black_medium_square +◻️ white_medium_square +◾ black_medium_small_square +◽ white_medium_small_square +▪️ black_small_square +▫️ white_small_square +🔶 large_orange_diamond +🔷 large_blue_diamond +🔸 small_orange_diamond +🔹 small_blue_diamond +🔺 small_red_triangle up-pointing +🔻 small_red_triangle_down down-pointing +💠 diamond_shape_with_a_dot_inside +🔘 radio_button +🔳 white_square_button +🔲 black_square_button +🏁 checkered_flag chequered +🚩 triangular_flag_on_post +🎌 crossed_flags +🏴 waving_black_flag +🏳️ waving_white_flag +🏳️‍🌈 rainbow-flag +🏳️‍⚧️ transgender_flag +🏴‍☠️ pirate_flag +🇦🇨 flag-ac ascension island +🇦🇩 flag-ad andorra +🇦🇪 flag-ae united arab emirates +🇦🇫 flag-af afghanistan +🇦🇬 flag-ag antigua barbuda +🇦🇮 flag-ai anguilla +🇦🇱 flag-al albania +🇦🇲 flag-am armenia +🇦🇴 flag-ao angola +🇦🇶 flag-aq antarctica +🇦🇷 flag-ar argentina +🇦🇸 flag-as american samoa +🇦🇹 flag-at austria +🇦🇺 flag-au australia +🇦🇼 flag-aw aruba +🇦🇽 flag-ax land islands +🇦🇿 flag-az azerbaijan +🇧🇦 flag-ba bosnia herzegovina +🇧🇧 flag-bb barbados +🇧🇩 flag-bd bangladesh +🇧🇪 flag-be belgium +🇧🇫 flag-bf burkina faso +🇧🇬 flag-bg bulgaria +🇧🇭 flag-bh bahrain +🇧🇮 flag-bi burundi +🇧🇯 flag-bj benin +🇧🇱 flag-bl st barth lemy +🇧🇲 flag-bm bermuda +🇧🇳 flag-bn brunei +🇧🇴 flag-bo bolivia +🇧🇶 flag-bq caribbean netherlands +🇧🇷 flag-br brazil +🇧🇸 flag-bs bahamas +🇧🇹 flag-bt bhutan +🇧🇻 flag-bv bouvet island +🇧🇼 flag-bw botswana +🇧🇾 flag-by belarus +🇧🇿 flag-bz belize +🇨🇦 flag-ca canada +🇨🇨 flag-cc cocos keeling islands +🇨🇩 flag-cd congo - kinshasa +🇨🇫 flag-cf central african republic +🇨🇬 flag-cg congo - brazzaville +🇨🇭 flag-ch switzerland +🇨🇮 flag-ci c te d ivoire +🇨🇰 flag-ck cook islands +🇨🇱 flag-cl chile +🇨🇲 flag-cm cameroon +🇨🇳 cn flag-cn china +🇨🇴 flag-co colombia +🇨🇵 flag-cp clipperton island +🇨🇶 flag-sark +🇨🇷 flag-cr costa rica +🇨🇺 flag-cu cuba +🇨🇻 flag-cv cape verde +🇨🇼 flag-cw cura ao +🇨🇽 flag-cx christmas island +🇨🇾 flag-cy cyprus +🇨🇿 flag-cz czechia +🇩🇪 de flag-de germany +🇩🇬 flag-dg diego garcia +🇩🇯 flag-dj djibouti +🇩🇰 flag-dk denmark +🇩🇲 flag-dm dominica +🇩🇴 flag-do dominican republic +🇩🇿 flag-dz algeria +🇪🇦 flag-ea ceuta melilla +🇪🇨 flag-ec ecuador +🇪🇪 flag-ee estonia +🇪🇬 flag-eg egypt +🇪🇭 flag-eh western sahara +🇪🇷 flag-er eritrea +🇪🇸 es flag-es spain +🇪🇹 flag-et ethiopia +🇪🇺 flag-eu european union +🇫🇮 flag-fi finland +🇫🇯 flag-fj fiji +🇫🇰 flag-fk falkland islands +🇫🇲 flag-fm micronesia +🇫🇴 flag-fo faroe islands +🇫🇷 fr flag-fr france +🇬🇦 flag-ga gabon +🇬🇧 gb uk flag-gb united kingdom +🇬🇩 flag-gd grenada +🇬🇪 flag-ge georgia +🇬🇫 flag-gf french guiana +🇬🇬 flag-gg guernsey +🇬🇭 flag-gh ghana +🇬🇮 flag-gi gibraltar +🇬🇱 flag-gl greenland +🇬🇲 flag-gm gambia +🇬🇳 flag-gn guinea +🇬🇵 flag-gp guadeloupe +🇬🇶 flag-gq equatorial guinea +🇬🇷 flag-gr greece +🇬🇸 flag-gs south georgia sandwich islands +🇬🇹 flag-gt guatemala +🇬🇺 flag-gu guam +🇬🇼 flag-gw guinea-bissau +🇬🇾 flag-gy guyana +🇭🇰 flag-hk hong kong sar china +🇭🇲 flag-hm heard mcdonald islands +🇭🇳 flag-hn honduras +🇭🇷 flag-hr croatia +🇭🇹 flag-ht haiti +🇭🇺 flag-hu hungary +🇮🇨 flag-ic canary islands +🇮🇩 flag-id indonesia +🇮🇪 flag-ie ireland +🇮🇱 flag-il israel +🇮🇲 flag-im isle man +🇮🇳 flag-in india +🇮🇴 flag-io british indian ocean territory +🇮🇶 flag-iq iraq +🇮🇷 flag-ir iran +🇮🇸 flag-is iceland +🇮🇹 it flag-it italy +🇯🇪 flag-je jersey +🇯🇲 flag-jm jamaica +🇯🇴 flag-jo jordan +🇯🇵 jp flag-jp japan +🇰🇪 flag-ke kenya +🇰🇬 flag-kg kyrgyzstan +🇰🇭 flag-kh cambodia +🇰🇮 flag-ki kiribati +🇰🇲 flag-km comoros +🇰🇳 flag-kn st kitts nevis +🇰🇵 flag-kp north korea +🇰🇷 kr flag-kr south korea +🇰🇼 flag-kw kuwait +🇰🇾 flag-ky cayman islands +🇰🇿 flag-kz kazakhstan +🇱🇦 flag-la laos +🇱🇧 flag-lb lebanon +🇱🇨 flag-lc st lucia +🇱🇮 flag-li liechtenstein +🇱🇰 flag-lk sri lanka +🇱🇷 flag-lr liberia +🇱🇸 flag-ls lesotho +🇱🇹 flag-lt lithuania +🇱🇺 flag-lu luxembourg +🇱🇻 flag-lv latvia +🇱🇾 flag-ly libya +🇲🇦 flag-ma morocco +🇲🇨 flag-mc monaco +🇲🇩 flag-md moldova +🇲🇪 flag-me montenegro +🇲🇫 flag-mf st martin +🇲🇬 flag-mg madagascar +🇲🇭 flag-mh marshall islands +🇲🇰 flag-mk north macedonia +🇲🇱 flag-ml mali +🇲🇲 flag-mm myanmar burma +🇲🇳 flag-mn mongolia +🇲🇴 flag-mo macao sar china +🇲🇵 flag-mp northern mariana islands +🇲🇶 flag-mq martinique +🇲🇷 flag-mr mauritania +🇲🇸 flag-ms montserrat +🇲🇹 flag-mt malta +🇲🇺 flag-mu mauritius +🇲🇻 flag-mv maldives +🇲🇼 flag-mw malawi +🇲🇽 flag-mx mexico +🇲🇾 flag-my malaysia +🇲🇿 flag-mz mozambique +🇳🇦 flag-na namibia +🇳🇨 flag-nc new caledonia +🇳🇪 flag-ne niger +🇳🇫 flag-nf norfolk island +🇳🇬 flag-ng nigeria +🇳🇮 flag-ni nicaragua +🇳🇱 flag-nl netherlands +🇳🇴 flag-no norway +🇳🇵 flag-np nepal +🇳🇷 flag-nr nauru +🇳🇺 flag-nu niue +🇳🇿 flag-nz new zealand +🇴🇲 flag-om oman +🇵🇦 flag-pa panama +🇵🇪 flag-pe peru +🇵🇫 flag-pf french polynesia +🇵🇬 flag-pg papua new guinea +🇵🇭 flag-ph philippines +🇵🇰 flag-pk pakistan +🇵🇱 flag-pl poland +🇵🇲 flag-pm st pierre miquelon +🇵🇳 flag-pn pitcairn islands +🇵🇷 flag-pr puerto rico +🇵🇸 flag-ps palestinian territories +🇵🇹 flag-pt portugal +🇵🇼 flag-pw palau +🇵🇾 flag-py paraguay +🇶🇦 flag-qa qatar +🇷🇪 flag-re r union +🇷🇴 flag-ro romania +🇷🇸 flag-rs serbia +🇷🇺 ru flag-ru russia +🇷🇼 flag-rw rwanda +🇸🇦 flag-sa saudi arabia +🇸🇧 flag-sb solomon islands +🇸🇨 flag-sc seychelles +🇸🇩 flag-sd sudan +🇸🇪 flag-se sweden +🇸🇬 flag-sg singapore +🇸🇭 flag-sh st helena +🇸🇮 flag-si slovenia +🇸🇯 flag-sj svalbard jan mayen +🇸🇰 flag-sk slovakia +🇸🇱 flag-sl sierra leone +🇸🇲 flag-sm san marino +🇸🇳 flag-sn senegal +🇸🇴 flag-so somalia +🇸🇷 flag-sr suriname +🇸🇸 flag-ss south sudan +🇸🇹 flag-st s o tom pr ncipe +🇸🇻 flag-sv el salvador +🇸🇽 flag-sx sint maarten +🇸🇾 flag-sy syria +🇸🇿 flag-sz eswatini +🇹🇦 flag-ta tristan da cunha +🇹🇨 flag-tc turks caicos islands +🇹🇩 flag-td chad +🇹🇫 flag-tf french southern territories +🇹🇬 flag-tg togo +🇹🇭 flag-th thailand +🇹🇯 flag-tj tajikistan +🇹🇰 flag-tk tokelau +🇹🇱 flag-tl timor-leste +🇹🇲 flag-tm turkmenistan +🇹🇳 flag-tn tunisia +🇹🇴 flag-to tonga +🇹🇷 flag-tr t rkiye +🇹🇹 flag-tt trinidad tobago +🇹🇻 flag-tv tuvalu +🇹🇼 flag-tw taiwan +🇹🇿 flag-tz tanzania +🇺🇦 flag-ua ukraine +🇺🇬 flag-ug uganda +🇺🇲 flag-um u s outlying islands +🇺🇳 flag-un united nations +🇺🇸 us flag-us united states +🇺🇾 flag-uy uruguay +🇺🇿 flag-uz uzbekistan +🇻🇦 flag-va vatican city +🇻🇨 flag-vc st vincent grenadines +🇻🇪 flag-ve venezuela +🇻🇬 flag-vg british virgin islands +🇻🇮 flag-vi u s virgin islands +🇻🇳 flag-vn vietnam +🇻🇺 flag-vu vanuatu +🇼🇫 flag-wf wallis futuna +🇼🇸 flag-ws samoa +🇽🇰 flag-xk kosovo +🇾🇪 flag-ye yemen +🇾🇹 flag-yt mayotte +🇿🇦 flag-za south africa +🇿🇲 flag-zm zambia +🇿🇼 flag-zw zimbabwe +🏴󠁧󠁢󠁥󠁮󠁧󠁿 flag-england +🏴󠁧󠁢󠁳󠁣󠁴󠁿 flag-scotland +🏴󠁧󠁢󠁷󠁬󠁳󠁿 flag-wales`,Qp=/(?<=^|[\s([{"'«])(?::)(?[a-zA-Z0-9_+-]{1,64})$/,$p=/[-_]/,em,tm=e=>e.split(` +`).map(e=>{let[t,n,r=``]=e.split(` `),[i,...a]=n.split(` `);return{emoji:t,name:i,aliases:[...a,...r?r.split(` `):[]]}}),nm=(e,t)=>{let n=e.split($p);return e===t?0:e.startsWith(t)&&$p.test(e.charAt(t.length))?1:n.includes(t)?2:e.startsWith(t)||n.some(e=>e.startsWith(t))?4:9},rm=(e,t)=>e.includes(t)?3:e.some(e=>e.startsWith(t))?5:9,im=({name:e,aliases:t},n)=>{let r=nm(e,n),i=rm(t,n);return{rank:Math.min(r,i),nameRank:r}},am=({name:e,aliases:t},n)=>{if(nm(e,n)<9)return e.split($p).length;let r=t.findIndex(e=>e===n||e.startsWith(n));return(r>-1?r:t.length)*100+t.length},om=e=>{let t=e.toLowerCase();return t?(em??=tm(bee),em.map(e=>{let{rank:n,nameRank:r}=im(e,t);return{entry:e,rank:n,nameRank:r,centrality:am(e,t)}}).filter(({rank:e})=>e<9).sort((e,t)=>e.rank-t.rank||e.nameRank-t.nameRank||e.centrality-t.centrality).slice(0,50).map(({entry:e})=>e)):[]},sm=(e,t)=>/^\s/.test(t)?e:`${e} `,cm=e=>e.match(Qp)?.groups?.query,lm=U(`
    `),xee=U(`
    `),See={hash:`svelte-1ra4ohl`,code:`.emoji-suggestions.svelte-1ra4ohl {position:fixed;inset:auto;z-index:1000;display:flex;flex-direction:column;overflow-y:auto;margin:0;border-width:var(--sui-listbox-border-width, 1px);border-style:var(--sui-listbox-border-style, solid);border-color:var(--sui-listbox-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-listbox-border-radius, 4px);padding:var(--sui-listbox-padding, 4px);width:280px;color:var(--sui-primary-foreground-color);background-color:var(--sui-secondary-background-color-translucent);box-shadow:0 8px 16px var(--sui-popup-shadow-color);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);-webkit-user-select:none;user-select:none;}.option.svelte-1ra4ohl {flex:none;display:flex;align-items:center;gap:8px;border-radius:var(--sui-option-border-radius);padding:var(--sui-option-padding);min-height:var(--sui-option-height);cursor:default;}.option[aria-selected=true].svelte-1ra4ohl {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.option.svelte-1ra4ohl .emoji:where(.svelte-1ra4ohl) {flex:none;width:1.5em;font-size:var(--sui-font-size-large);text-align:center;}.option.svelte-1ra4ohl .name:where(.svelte-1ra4ohl) {flex:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}`};function um(e,t){let n=tc();O(t,!0),J(e,See);let r=X(t,`ariaOwner`,3,void 0),i=P(void 0),a=P(ao([])),o=P(0),s=P(void 0),c=P(void 0),l=P(void 0),u=N(()=>!!H(i)&&!!H(a).length),d=P(0),f=P(0),p=N(()=>H(d)?H(d)*5+H(f):180),m=N(()=>{if(!H(s))return;let{innerWidth:e,innerHeight:t}=window,n=t-H(s).bottom,r=H(s).top,i=nn,a=Hd()?H(s).right-280:H(s).left;return{top:i?void 0:`${Math.round(H(s).bottom+4)}px`,bottom:i?`${Math.round(t-H(s).top+4)}px`:void 0,left:`${Math.round(Math.max(8,Math.min(a,e-280-8)))}px`,maxHeight:`${Math.round(Math.min(H(p),(i?r:n)-4-8))}px`}}),h=()=>H(u),g=(e=!1)=>{Ds(()=>{F(l,e&&H(i)?H(i).id:void 0,!0),F(i,void 0),F(a,[],!0),F(o,0),F(s,void 0)})},_=e=>{if(!e){(H(i)||H(l))&&g();return}if(H(l)===e.id)return;let{id:n,query:r}=e;if(F(l,void 0),F(s,t.getAnchorRect(e),!0),H(i)?.id===n&&H(i).query===r){F(i,e,!0);return}F(i,e,!0),F(a,om(r),!0),F(o,0)},v=e=>{let{length:t}=H(a);t&&F(o,(H(o)+e+t)%t)},y=()=>{let e=H(a)[H(o)];e&&H(i)&&t.onSelect(e,H(i)),g()},b=e=>{let{key:t,altKey:n,ctrlKey:r,metaKey:i,shiftKey:a}=e;if(!H(u)||n||r||i)return!1;if(t===`ArrowDown`||t===`ArrowUp`)v(t===`ArrowDown`?1:-1);else if((t===`Enter`||t===`Tab`)&&!a)y();else if(t===`Escape`)g(!0);else return!1;return e.preventDefault(),!0};B(()=>{if(H(a),!H(c))return;H(c).matches(`:popover-open`)||H(c).showPopover?.();let e=H(c).querySelector(`.option`);if(e){let{paddingTop:t,paddingBottom:n,borderTopWidth:r,borderBottomWidth:i}=getComputedStyle(H(c));F(d,e.getBoundingClientRect().height,!0),F(f,Number.parseFloat(t)+Number.parseFloat(n)+Number.parseFloat(r)+Number.parseFloat(i))}}),B(()=>{if(!r())return;let e=r();return e.setAttribute(`aria-autocomplete`,`list`),e.setAttribute(`aria-haspopup`,`listbox`),()=>{e.removeAttribute(`aria-autocomplete`),e.removeAttribute(`aria-haspopup`)}}),B(()=>{if(!r())return;let e=r();return H(u)?(e.setAttribute(`aria-controls`,n),e.setAttribute(`aria-activedescendant`,`${n}-option-${H(o)}`)):(e.removeAttribute(`aria-controls`),e.removeAttribute(`aria-activedescendant`)),()=>{e.removeAttribute(`aria-controls`),e.removeAttribute(`aria-activedescendant`)}}),B(()=>{H(o),H(c)?.querySelector(`[aria-selected="true"]`)?.scrollIntoView({block:`nearest`,behavior:`instant`})}),Nl(()=>{let e=()=>{H(i)&&F(s,t.getAnchorRect(H(i)),!0)},n=({target:e})=>{let t=e;!H(u)||H(c)?.contains(t)||r()?.contains(t)||g()};return window.addEventListener(`scroll`,e,{capture:!0,passive:!0}),window.addEventListener(`resize`,e,{passive:!0}),document.addEventListener(`pointerdown`,n,{capture:!0}),()=>{window.removeEventListener(`scroll`,e,{capture:!0}),window.removeEventListener(`resize`,e),document.removeEventListener(`pointerdown`,n,{capture:!0})}});var x={isOpen:h,close:g,update:_,moveSelection:v,selectHighlighted:y,handleKeyDown:b},S=W(),C=L(S),w=e=>{var t=xee();let r;Cc(t,23,()=>H(a),e=>e.emoji,(e,t,r)=>{var i=lm(),a=I(i),s=R(a,!0),c=R(z(a,2));D(i),V(()=>{Y(i,`id`,`${n}-option-${H(r)??``}`),Y(i,`aria-selected`,H(r)===H(o)),K(s,H(t).emoji),K(c,`:${H(t).name??``}:`)}),Ws(`mouseenter`,i,()=>{F(o,H(r),!0)}),Gs(`mousedown`,i,e=>{e.preventDefault(),F(o,H(r),!0),y()}),G(e,i)}),D(t),Ol(t,e=>F(c,e),()=>H(c)),V(e=>{Y(t,`id`,n),Y(t,`aria-label`,e),r=nl(t,``,r,{top:H(m).top,bottom:H(m).bottom,left:H(m).left,"max-height":H(m).maxHeight})},[()=>Z(`_sui.emoji_suggestions`)]),G(e,t)};return q(C,e=>{H(u)&&H(m)&&e(w)}),G(e,S),k(x)}Ks([`mousedown`]);function dm(e,t){O(t,!0);let n=X(t,`element`,3,void 0),r=P(void 0),i=()=>{if(!n()||n().disabled||n().readOnly)return;let{value:e,selectionStart:t,selectionEnd:r}=n();if(t===null||t!==r)return;let i=cm(e.slice(0,t));if(i===void 0)return;let a=t-i.length-1;return{id:String(a),query:i,start:a,end:t}};B(()=>{if(!n()||!H(r))return;let e=n(),t=()=>{H(r)?.update(i())},a=e=>{H(r)?.handleKeyDown(e)},o=()=>{H(r)?.close()};return e.addEventListener(`keydown`,a),e.addEventListener(`keyup`,t),e.addEventListener(`input`,t),e.addEventListener(`mouseup`,t),e.addEventListener(`blur`,o),()=>{e.removeEventListener(`keydown`,a),e.removeEventListener(`keyup`,t),e.removeEventListener(`input`,t),e.removeEventListener(`mouseup`,t),e.removeEventListener(`blur`,o),H(r)?.close()}}),Ol(um(e,{getAnchorRect:e=>{let{start:t,end:r}=e;return n()?yee(n(),t,r):void 0},onSelect:(e,t)=>{let{query:r,start:i,end:a}=t;if(!n()||n().value.slice(i,a)!==`:${r}`)return;let o=sm(e.emoji,n().value.slice(a));n().focus(),n().setSelectionRange(i,a);let s=!1;try{s=document.execCommand(`insertText`,!1,o)}catch{s=!1}s||(n().setRangeText(o,i,a,`end`),n().dispatchEvent(new Event(`input`,{bubbles:!0})))},get ariaOwner(){return n()}}),e=>F(r,e,!0),()=>H(r)),k()}var Cee=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`element`,`role`,`keyShortcuts`,`dir`,`name`,`showInlineLabel`,`inputmode`,`flex`,`monospace`,`debounce`,`useEmojiAutocomplete`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`,`oninput`]),wee=U(``),Tee=U(`
    `),Eee={hash:`svelte-nm78dz`,code:`.text-input.svelte-nm78dz {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.text-input.flex.svelte-nm78dz:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.text-input.monospace.svelte-nm78dz {--sui-textbox-font-family: var(--sui-font-family-monospace, monospace);}input.svelte-nm78dz:is(:where(.svelte-nm78dz):-webkit-autofill, :where(.svelte-nm78dz):-webkit-autofill:focus) {transition:background-color 0s 600000s, color 0s 600000s;}input.svelte-nm78dz {display:inline-block;flex:auto;border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);padding:var(--sui-textbox-singleline-padding);min-width:0;height:var(--sui-textbox-height);color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-singleline-line-height);font-weight:var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal));text-align:var(--sui-textbox-text-align, start);text-indent:var(--sui-textbox-text-indent, 0);text-transform:var(--sui-textbox-text-transform, none);letter-spacing:var(--sui-textbox-letter-spacing, normal);word-spacing:var(--sui-word-spacing-normal, normal);transition:all 200ms;}input.svelte-nm78dz:focus {color:var(--sui-textbox-foreground-color-focus, var(--sui-textbox-foreground-color));background-color:var(--sui-textbox-background-color-focus, var(--sui-textbox-background-color));}input.svelte-nm78dz:read-only {color:var(--sui-tertiary-foreground-color);border-color:var(--sui-textbox-border-color) !important;}input.svelte-nm78dz:is(:where(.svelte-nm78dz):disabled, :where(.svelte-nm78dz):read-only) {background-color:var(--sui-disabled-background-color);}input[aria-invalid=true].svelte-nm78dz {border-color:var(--sui-error-border-color);}input.svelte-nm78dz ~ button {flex:none;margin-inline-start:-1px;border-width:1px;border-color:var(--sui-textbox-border-color);height:var(--sui-textbox-height);aspect-ratio:1/1;}input.svelte-nm78dz ~ button:last-child {border-start-start-radius:0;border-start-end-radius:4px;border-end-end-radius:4px;border-end-start-radius:0;}input.svelte-nm78dz ~ button .icon {font-size:var(--sui-font-size-xx-large);}.label.svelte-nm78dz {position:absolute;inset:var(--sui-textbox-singleline-padding);z-index:2;display:flex;align-items:center;justify-content:var(--sui-textbox-placeholder-text-align, var(--sui-textbox-text-align, start));pointer-events:none;}.label.hidden.svelte-nm78dz {opacity:0;}input.svelte-nm78dz:focus + .label:where(.svelte-nm78dz) {opacity:0;}input.svelte-nm78dz::placeholder, +.label.svelte-nm78dz {color:var(--sui-textbox-placeholder-foreground-color, var(--sui-textbox-foreground-color));opacity:var(--sui-textbox-placeholder-opacity, 0.5);font-family:var(--sui-textbox-placeholder-font-family, var(--sui-textbox-font-family));font-size:var(--sui-textbox-placeholder-font-size, var(--sui-textbox-font-size));line-height:var(--sui-textbox-placeholder-singleline-line-height, var(--sui-textbox-singleline-line-height));font-weight:var(--sui-textbox-placeholder-font-weight, var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal)));text-align:var(--sui-textbox-placeholder-text-align, var(--sui-textbox-text-align, start));text-indent:var(--sui-textbox-placeholder-text-indent, var(--sui-textbox-text-indent, 0));letter-spacing:var(--sui-textbox-placeholder-letter-spacing, var(--sui-textbox-letter-spacing, normal));}`};function fm(e,t){let n=tc();O(t,!0),J(e,Eee);let r=X(t,`value`,15),i=X(t,`element`,15),a=X(t,`role`,3,`textbox`),o=X(t,`keyShortcuts`,3,void 0),s=X(t,`dir`,3,void 0),c=X(t,`name`,3,void 0),l=X(t,`showInlineLabel`,3,!1),u=X(t,`inputmode`,3,`text`),d=X(t,`flex`,3,!1),f=X(t,`monospace`,3,!1),p=X(t,`debounce`,3,!1),m=X(t,`useEmojiAutocomplete`,3,!1),h=X(t,`hidden`,3,!1),g=X(t,`disabled`,3,!1),_=X(t,`readonly`,3,!1),v=X(t,`required`,3,!1),y=X(t,`invalid`,3,!1),b=X(t,`ariaLabel`,3,void 0),x=Al(t,Cee),S=N(()=>typeof p()==`number`?p():300),C=0;B(()=>()=>{clearTimeout(C)});let w=e=>{r(i()?.value),t.oninput?.(e)},T=e=>{let t=e;p()?(clearTimeout(C),C=setTimeout(()=>{w(t)},H(S))):w(t)};var E=Tee();let ee;var te=I(E);bl(te,()=>({...x,value:r(),type:`text`,role:a(),dir:s(),name:c(),tabindex:g()?-1:0,disabled:g()||void 0,readonly:_()||void 0,inputmode:u(),"aria-label":b(),"aria-hidden":h(),"aria-disabled":g(),"aria-readonly":_(),"aria-required":v(),"aria-invalid":y(),oninputcapture:T}),void 0,void 0,void 0,`svelte-nm78dz`,!0),Ol(te,e=>i(e),()=>i()),Gc(te,()=>mf(o()));var ne=z(te,2),re=e=>{dm(e,{get element(){return i()}})};q(ne,e=>{m()&&!g()&&!_()&&e(re)});var ie=z(ne,2),ae=e=>{var t=wee();let i;_f(I(t),{children:(e,t)=>{mi();var n=ec();V(()=>K(n,b())),G(e,n)},$$slots:{default:!0}}),D(t),V(()=>{Y(t,`id`,`${n}-label`),i=el(t,1,`label svelte-nm78dz`,null,i,{hidden:!!r()})}),G(e,t)};q(ie,e=>{b()&&l()&&e(ae)}),D(E),V(()=>{ee=el(E,1,`sui text-input ${t.class??``}`,`svelte-nm78dz`,ee,{flex:d(),monospace:f(),disabled:g(),readonly:_()}),Y(E,`hidden`,h()),te.dir=te.dir}),G(e,E),k()}var Dee=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`value`,`textboxAttrs`,`children`,`input`,`onkeydown`,`onkeyup`,`onkeypress`,`oninput`]),Oee=U(`
    `,1),kee={hash:`svelte-vrh0iw`,code:`.input-outer.svelte-vrh0iw {margin:12px 0 0;}`};function pm(e,t){O(t,!0),J(e,kee);let n=X(t,`open`,15,!1),r=X(t,`value`,15,``),i=X(t,`textboxAttrs`,19,()=>({})),a=Al(t,Dee);Yp(e,Ml(()=>a,{role:`alertdialog`,get open(){return n()},set open(e){n(e)},children:(e,n)=>{var a=Oee(),o=L(a);Ac(o,()=>t.children??br);var s=z(o,2),c=I(s),l=e=>{var n=W();Ac(L(n),()=>t.input),G(e,n)},u=e=>{fm(e,Ml({dir:`auto`,flex:!0,autofocus:!0},i,{get onkeydown(){return t.onkeydown},get onkeyup(){return t.onkeyup},get onkeypress(){return t.onkeypress},get oninput(){return t.oninput},get value(){return r()},set value(e){r(e)}}))};q(c,e=>{t.input?e(l):e(u,-1)}),D(s),G(e,a)},$$slots:{default:!0}})),k()}var Aee=U(``);function mm(e,t){O(t,!0);let n=X(t,`accept`,3,void 0),r=X(t,`multiple`,3,!1),i=X(t,`onSelect`,3,void 0),a=X(t,`onCancel`,3,void 0),o=P(void 0);var s={open:()=>{H(o)?.click()}},c=Aee();return Ol(c,e=>F(o,e),()=>H(o)),V(()=>{Y(c,`accept`,n()),c.multiple=r()}),Gs(`change`,c,({target:e})=>{let t=[...e.files];i()?.({files:t,file:t[0]})}),Ws(`cancel`,c,e=>{e.stopPropagation(),a()?.()}),G(e,c),k(s)}Ks([`change`]);var jee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`label`,`children`]),Mee=U(`
    `),Nee=U(`
    `),Pee={hash:`svelte-jdf39m`,code:`[role=rowgroup].svelte-jdf39m {display:table-row-group;}[role=row].svelte-jdf39m {display:table-row;}[role=columnheader].svelte-jdf39m {display:table-cell;padding:8px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-secondary-background-color);font-size:var(--sui-font-size-default);text-align:start;}`};function hm(e,t){let n=tc();J(e,Pee);let r=X(t,`label`,3,``),i=Al(t,jee);var a=Nee();bl(a,()=>({...i,role:`rowgroup`,class:`sui grid-body row-group ${t.class??``}`,"aria-labelledby":r()?`${n}-label`:void 0,"aria-roledescription":`grid body`}),void 0,void 0,void 0,`svelte-jdf39m`);var o=I(a),s=e=>{var t=Mee();Uc(I(t),()=>`th`,!1,(e,t)=>{bl(e,()=>({role:`columnheader`,id:`${n}-label`,colspan:`9999`,class:``}),void 0,void 0,void 0,`svelte-jdf39m`);var i=ec();V(()=>K(i,r())),G(t,i)}),D(t),G(e,t)};q(o,e=>{r()&&e(s)}),Ac(z(o,2),()=>t.children??br),D(a),G(e,a)}var Fee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),Iee=U(`
    `),Lee={hash:`svelte-1a9ntmu`,code:`.grid-cell.svelte-1a9ntmu {display:table-cell;}`};function gm(e,t){J(e,Lee);let n=Al(t,Fee);var r=Iee();bl(r,()=>({...n,role:`gridcell`,class:`sui grid-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-1a9ntmu`),Ac(I(r),()=>t.children??br),D(r),G(e,r)}var Ree=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`selected`,`children`]),zee=U(`
    `),Bee={hash:`svelte-1y33zqm`,code:`.grid-row.svelte-1y33zqm {display:table-row;height:var(--sui-primary-row-height);}`};function _m(e,t){J(e,Bee);let n=X(t,`selected`,3,!1),r=Al(t,Ree);var i=zee();bl(i,()=>({...r,role:`row`,class:`sui grid-row ${t.class??``}`,tabindex:`0`,"aria-selected":n()}),void 0,void 0,void 0,`svelte-1y33zqm`),Ac(I(i),()=>t.children??br),D(i),G(e,i)}var Vee=new Set([`$$slots`,`$$events`,`$$legacy`,`element`,`class`,`multiple`,`clickToSelect`,`ariaLabel`,`children`,`onChange`]),Hee=U(`
    `),Uee={hash:`svelte-1rjzrmj`,code:`.grid.svelte-1rjzrmj {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.grid.data.svelte-1rjzrmj {border-collapse:collapse;}.grid.data.svelte-1rjzrmj :is(.grid-col-header, .grid-row-header, .grid-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`};function Wee(e,t){O(t,!0),J(e,Uee);let n=X(t,`element`,15),r=X(t,`multiple`,3,!1),i=X(t,`clickToSelect`,3,!0),a=X(t,`ariaLabel`,3,void 0),o=Al(t,Vee);var s=Hee(),c=e=>{t.onChange?.(e)};bl(s,()=>({...o,role:`grid`,class:`sui grid ${t.class??``}`,"aria-multiselectable":r(),"aria-label":a(),onChange:c}),void 0,void 0,void 0,`svelte-1rjzrmj`),Ac(I(s),()=>t.children??br),D(s),Ol(s,e=>n(e),()=>n()),Gc(s,()=>Dp({clickToSelect:i()})),G(e,s),k()}var Gee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`multiple`,`searchTerms`,`ariaLabel`,`children`,`onFilter`]),Kee=U(`
    `),qee={hash:`svelte-5lby7x`,code:`[role=listbox].svelte-5lby7x {display:flex;flex-direction:column;margin:var(--sui-focus-ring-width);border-width:var(--sui-listbox-border-width, 1px);border-style:var(--sui-listbox-border-style, solid);border-color:var(--sui-listbox-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-listbox-border-radius, 4px);padding:var(--sui-listbox-padding, 4px);min-width:var(--sui-listbox-min-width, calc(var(--sui-option-height) * 5));color:var(--sui-listbox-foreground-color);background-color:var(--sui-listbox-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);} +@media (pointer: coarse) {[role=listbox].svelte-5lby7x {gap:8px 0;} +}[role=listbox].svelte-5lby7x [role=separator] {margin:4px 0;background-color:var(--sui-control-border-color);}[role=listbox][aria-invalid=true].svelte-5lby7x {border-color:var(--sui-error-border-color);}[role=listbox].tabs.svelte-5lby7x {padding:0;border-block-start-width:0;border-block-end-width:0;border-inline-end-width:1px;border-inline-start-width:0;border-color:var(--sui-control-border-color);}[role=listbox].tabs.svelte-5lby7x .option button {justify-content:flex-start;border-width:0;border-inline-end-width:2px;border-color:transparent;padding:0 12px;border-start-end-radius:0;border-end-end-radius:0;height:var(--sui-tab-medium-height);}[role=listbox].tabs.svelte-5lby7x .option button[aria-selected=true] {border-color:var(--sui-primary-accent-color-light);}[role=listbox].tabs.svelte-5lby7x .option button .icon {display:none;}[role=listbox].in-combobox.svelte-5lby7x:focus-visible {outline-color:transparent;}[role=listbox].filtered.svelte-5lby7x [role=separator] {display:none;}.inner.svelte-5lby7x {display:contents;}`};function vm(e,t){O(t,!0),J(e,qee);let n=X(t,`hidden`,3,!1),r=X(t,`disabled`,3,!1),i=X(t,`readonly`,3,!1),a=X(t,`required`,3,!1),o=X(t,`invalid`,3,!1),s=X(t,`multiple`,3,!1),c=X(t,`searchTerms`,3,``),l=X(t,`ariaLabel`,3,void 0),u=Al(t,Gee),d=P(!1);var f=Kee(),p=e=>{let{detail:{matched:n,total:r}}=e;F(d,n!==r),t.onFilter?.(e)};bl(f,()=>({...u,role:`listbox`,class:`sui listbox ${t.class??``}`,tabindex:r()?-1:0,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-multiselectable":s(),"aria-label":l(),onFilter:p,[ul]:{filtered:H(d)}}),void 0,void 0,void 0,`svelte-5lby7x`);var m=I(f);Ac(I(m),()=>t.children??br),D(m),D(f),Gc(f,()=>Dp(()=>({searchTerms:c()}))),V(()=>m.inert=r()),G(e,f),k()}var Jee=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`label`,`children`]),Yee=U(`
    `),Xee={hash:`svelte-abkykl`,code:`.option-group.svelte-abkykl:not(:first-child) {margin:12px 0 0;}.label.svelte-abkykl {margin:8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}.inner.svelte-abkykl {display:contents;}`};function ym(e,t){let n=tc();J(e,Xee);let r=X(t,`hidden`,3,!1),i=X(t,`disabled`,3,!1),a=X(t,`label`,3,``),o=Al(t,Jee);var s=Yee();bl(s,()=>({...o,role:`group`,id:n,class:`sui option-group ${t.class??``}`,hidden:r(),"aria-hidden":r(),"aria-disabled":i(),"aria-labelledby":`${n}-label`,"aria-roledescription":`option group`}),void 0,void 0,void 0,`svelte-abkykl`);var c=I(s);_f(I(c),{children:(e,t)=>{mi();var n=ec();V(()=>K(n,a())),G(e,n)},$$slots:{default:!0}}),D(c);var l=z(c,2);Ac(I(l),()=>t.children??br),D(l),D(s),V(()=>{Y(c,`id`,`${n}-label`),l.inert=i()}),G(e,s)}var Zee=new Set([`$$slots`,`$$events`,`$$legacy`,`selected`,`hidden`,`class`,`disabled`,`label`,`value`,`searchValue`,`wrap`,`children`,`checkIcon`,`startIcon`,`onChange`,`onToggle`]),Qee=U(` `,1),$ee=U(`
    `),ete={hash:`svelte-yamxib`,code:`.option.svelte-yamxib {display:contents;}.option.svelte-yamxib:focus-visible {outline-width:0 !important;}.option.svelte-yamxib .wrap button {white-space:normal;}.option.svelte-yamxib button {flex:none;display:flex;gap:4px;margin:0 !important;border-radius:var(--sui-option-border-radius);padding:var(--sui-option-padding);width:100%;height:auto;min-height:var(--sui-option-height);}.option.svelte-yamxib button:active {background-color:var(--sui-active-background-color);}.option.svelte-yamxib button[aria-selected=true] .icon.check {color:var(--sui-primary-accent-color-text);}.option.svelte-yamxib button * {flex:none;}.option.svelte-yamxib button .label {flex:auto;}.option.svelte-yamxib :is(.focused, button:hover) {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.option.svelte-yamxib .icon.check {margin:-2px;}`};function bm(e,t){let n=tc();O(t,!0),J(e,ete);let r=X(t,`selected`,15,!1),i=X(t,`hidden`,15,!1),a=X(t,`disabled`,3,!1),o=X(t,`value`,19,()=>t.label),s=X(t,`searchValue`,19,()=>t.label),c=X(t,`wrap`,3,!1),l=Al(t,Zee),u=vp();u&&Pl(u.register({get value(){return o()},get label(){return t.label},get name(){return t.name},get type(){return t.valueType??typeof o()},get selected(){return r()},set selected(e){r(e)},get disabled(){return a()}}));let d=N(()=>!u||u.expanded);var f=W(),p=L(f),m=e=>{var u=$ee();let d;var f=I(u);{let e=e=>{var n=W();Ac(L(n),()=>t.startIcon??br),G(e,n)},c=N(()=>t.id??n);$f(f,Ml(()=>l,{role:`option`,get id(){return H(c)},tabindex:`-1`,get"aria-selected"(){return r()},get label(){return t.label},get value(){return o()},get hidden(){return i()},get disabled(){return a()},get"data-search-value"(){return s()},onChange:e=>{r(e.detail.selected),t.onChange?.(e)},onToggle:e=>{i(e.detail.hidden),i()&&r(!1),t.onToggle?.(e)},startIcon:e,children:(e,n)=>{var i=Qee(),a=L(i),o=e=>{var n=W(),r=L(n),i=e=>{var n=W();Ac(L(n),()=>t.checkIcon),G(e,n)},a=e=>{Rl(e,{class:`check`,name:`check`})};q(r,e=>{t.checkIcon?e(i):e(a,-1)}),G(e,n)};q(a,e=>{r()&&e(o)}),Ac(z(a,2),()=>t.children??br),G(e,i)},$$slots:{startIcon:!0,default:!0}}))}D(u),V(()=>{d=el(u,1,`sui option ${t.class??``}`,`svelte-yamxib`,d,{wrap:c()}),Y(u,`hidden`,i())}),G(e,u)};q(p,e=>{H(d)&&e(m)}),G(e,f),k()}var tte=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`ariaLabel`,`children`,`onChange`]),nte=U(`
    `),rte={hash:`svelte-1k0a4nt`,code:`.menu.svelte-1k0a4nt {display:flex;flex-direction:column;margin:0;border-width:var(--sui-menu-border-width, 1px);border-style:var(--sui-menu-border-style, solid);border-color:var(--sui-menu-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-menu-border-radius, 4px);padding:var(--sui-menu-padding, 4px);} +@media (pointer: coarse) {.menu.svelte-1k0a4nt {gap:8px 0;} +}.menu.svelte-1k0a4nt [role=separator] {margin:var(--sui-menu-divider-margin, 4px);background-color:var(--sui-menu-divider-color, var(--sui-control-border-color));}`};function xm(e,t){O(t,!0),J(e,rte);let n=X(t,`hidden`,3,!1),r=X(t,`disabled`,3,!1),i=X(t,`ariaLabel`,3,void 0),a=Al(t,tte);var o=nte(),s=e=>{t.onChange?.(e)};bl(o,()=>({...a,role:`menu`,class:`sui menu ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-label":i(),onChange:s}),void 0,void 0,void 0,`svelte-1k0a4nt`),Ac(I(o),()=>t.children??br),D(o),Gc(o,Dp),G(e,o),k()}var ite=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`role`,`hidden`,`disabled`,`label`,`labelDir`,`popupPosition`,`children`,`startIcon`,`endIcon`,`chevronIcon`,`items`,`onmouseenter`,`onmouseleave`,`onclick`,`onChange`,`onSelect`]),ate=U(``),ote=U(`
    `,1),ste=U(`
    `),cte={hash:`svelte-1y34ukh`,code:`.menuitem.svelte-1y34ukh {position:relative;}.menuitem.svelte-1y34ukh button {display:flex;gap:var(--sui-menuitem-gap, 4px);align-items:var(--sui-menuitem-align-items, center);border-radius:var(--sui-menuitem-border-radius, var(--sui-option-border-radius, 4px));margin:0 !important;padding:var(--sui-menuitem-padding, 0 16px);width:100%;min-width:var(--sui-menuitem-min-width, 160px);height:var(--sui-menuitem-height, var(--sui-option-height));color:var(--sui-menuitem-foreground-color, var(--sui-control-foreground-color, inherit));background-color:var(--sui-menuitem-background-color, transparent);font-size:var(--sui-menuitem-font-size, var(--sui-option-font-size));font-weight:var(--sui-menuitem-font-weight, var(--sui-option-font-weight, var(--sui-font-weight-normal, normal)));}.menuitem.svelte-1y34ukh button[aria-checked=true] .icon {color:var(--sui-primary-accent-color-text);}.menuitem.svelte-1y34ukh button:hover {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.menuitem.svelte-1y34ukh button:active {background-color:var(--sui-active-background-color);}.menuitem.svelte-1y34ukh :hover > [role=menu] {opacity:1;}.menuitem.svelte-1y34ukh > [role=menu] {position:absolute;inset-block-start:2px;inset-block-end:auto;inset-inline-start:calc(100% + 4px);inset-inline-end:auto;}.menuitem.svelte-1y34ukh > [role=menu]:hover {opacity:1;}.content.svelte-1y34ukh {flex:auto;}.icon-outer.svelte-1y34ukh {flex:none;width:24px;height:24px;}`};function Sm(e,t){O(t,!0),J(e,cte);let n=X(t,`role`,3,`menuitem`),r=X(t,`hidden`,3,!1),i=X(t,`disabled`,3,!1),a=X(t,`label`,3,``),o=X(t,`labelDir`,3,void 0),s=X(t,`popupPosition`,3,`right-top`),c=Al(t,ite),l=P(!1),u=P(!1),d=P(void 0),f=P(void 0),p=N(()=>n()===`menuitem`&&!!t.items);Nl(()=>{F(f,H(d)?.closest(`dialog`)??void 0,!0)});var m=ste(),h=I(m);{let e=e=>{var n=W();Ac(L(n),()=>t.startIcon??br),G(e,n)},s=e=>{var n=ote(),r=L(n);let i;var s=I(r),c=e=>{var t=ec();V(()=>K(t,a())),G(e,t)},l=e=>{var n=W();Ac(L(n),()=>t.children??br),G(e,n)};q(s,e=>{a()?e(c):e(l,-1)}),D(r);var u=z(r,2),d=e=>{var n=ate(),r=I(n),i=e=>{var n=W();Ac(L(n),()=>t.chevronIcon),G(e,n)},a=e=>{{let t=N(()=>Hd()?`chevron_left`:`chevron_right`);Rl(e,{get name(){return H(t)}})}};q(r,e=>{t.chevronIcon?e(i):e(a,-1)}),D(n),G(e,n)};q(u,e=>{H(p)&&e(d)}),V(()=>{i=el(r,1,`content svelte-1y34ukh`,null,i,{label:!!a()}),Y(r,`dir`,a()?o():void 0),r.dir=r.dir}),G(e,n)},f=e=>{var n=W();Ac(L(n),()=>t.endIcon??br),G(e,n)},m=N(()=>H(p)?`menu`:void 0),g=N(()=>H(p)?H(l):void 0);$f(h,Ml(()=>c,{get role(){return n()},get hidden(){return r()},get disabled(){return i()},get"aria-haspopup"(){return H(m)},get"aria-expanded"(){return H(g)},onmouseenter:e=>{H(p)&&window.setTimeout(()=>{F(l,!0)},200),t.onmouseenter?.(e)},onmouseleave:e=>{H(p)&&window.setTimeout(()=>{H(u)||F(l,!1)},200),t.onmouseleave?.(e)},onclick:e=>{H(p)&&(e.preventDefault(),e.stopPropagation(),F(l,!H(l))),t.onclick?.(e)},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return H(d)},set element(e){F(d,e,!0)},startIcon:e,children:s,endIcon:f,$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var g=z(h,2),_=e=>{qf(e,{get anchor(){return H(d)},get parentDialogElement(){return H(f)},get position(){return s()},get open(){return H(l)},set open(e){F(l,e,!0)},get hovered(){return H(u)},set hovered(e){F(u,e,!0)},children:(e,n)=>{xm(e,{children:(e,n)=>{var r=W();Ac(L(r),()=>t.items??br),G(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})};q(g,e=>{H(p)&&H(d)&&H(f)&&e(_)}),D(m),V(()=>{el(m,1,`sui menuitem ${t.class??``}`,`svelte-1y34ukh`),Y(m,`hidden`,r())}),G(e,m),k()}var lte=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`label`,`children`,`startIcon`,`onChange`]);function Cm(e,t){O(t,!0);let n=X(t,`checked`,15),r=X(t,`hidden`,3,!1),i=X(t,`disabled`,3,!1),a=X(t,`label`,3,``),o=Al(t,lte);Sm(e,Ml(()=>o,{role:`menuitemcheckbox`,get class(){return`sui menu-item-checkbox ${t.class??``}`},get label(){return a()},get hidden(){return r()},get disabled(){return i()},get"aria-checked"(){return n()},onChange:e=>{t.onChange?.(e),n(e.detail.checked)},startIcon:e=>{var n=W();Ac(L(n),()=>t.startIcon??br),G(e,n)},children:e=>{var n=W();Ac(L(n),()=>t.children??br),G(e,n)},endIcon:e=>{var t=W(),r=L(t),i=e=>{Rl(e,{name:`check`})};q(r,e=>{n()&&e(i)}),G(e,t)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),k()}var ute=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`label`,`children`,`startIcon`,`onChange`]);function wm(e,t){O(t,!0);let n=X(t,`checked`,15),r=X(t,`hidden`,3,!1),i=X(t,`disabled`,3,!1),a=X(t,`label`,3,``),o=Al(t,ute);Sm(e,Ml(()=>o,{role:`menuitemradio`,get class(){return`sui menu-item-radio ${t.class??``}`},get label(){return a()},get hidden(){return r()},get disabled(){return i()},get"aria-checked"(){return n()},onChange:e=>{t.onChange?.(e),n(e.detail.checked)},startIcon:e=>{var n=W();Ac(L(n),()=>t.startIcon??br),G(e,n)},children:e=>{var n=W();Ac(L(n),()=>t.children??br),G(e,n)},endIcon:e=>{var t=W(),r=L(t),i=e=>{Rl(e,{name:`check`})};q(r,e=>{n()&&e(i)}),G(e,t)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),k()}var dte=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`now`,`min`,`max`,`text`,`ariaLabel`]),fte=U(`
    `),pte={hash:`svelte-38wdod`,code:`.progressbar.svelte-38wdod {overflow:hidden;border-width:var(--sui-progressbar-border-width, 1px);border-style:var(--sui-progressbar-border-style, solid);border-color:var(--sui-progressbar-border-color, var(--sui-control-border-color));border-radius:var(--sui-progressbar-border-radius, 16px);width:var(--sui-progressbar-width, 240px);height:var(--sui-progressbar-height, 10px);background-color:var(--sui-progressbar-background-color, var(--sui-secondary-background-color));}.progressbar.svelte-38wdod div:where(.svelte-38wdod) {height:100%;background-color:var(--sui-progressbar-foreground-color, var(--sui-primary-accent-color-light));transition:width 250ms;}`};function mte(e,t){J(e,pte);let n=X(t,`now`,3,0),r=X(t,`min`,3,0),i=X(t,`max`,3,100),a=X(t,`ariaLabel`,3,void 0),o=Al(t,dte);var s=fte();bl(s,()=>({...o,role:`progressbar`,class:`sui progressbar ${t.class??``}`,"aria-valuenow":n(),"aria-valuemin":r(),"aria-valuemax":i(),"aria-valuetext":t.text,"aria-label":a()}),void 0,void 0,void 0,`svelte-38wdod`);var c=I(s);let l;D(s),V(()=>l=nl(c,``,l,{width:`${n()??``}%`})),G(e,s)}var hte=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`orientation`,`ariaLabel`,`children`,`onChange`]),gte=U(`
    `),_te={hash:`svelte-8hy3lz`,code:`.radio-group.svelte-8hy3lz {display:inline-flex;}.radio-group.svelte-8hy3lz:focus-visible {outline-width:0 !important;}.radio-group.horizontal.svelte-8hy3lz {gap:8px;align-items:center;flex-wrap:wrap;}.radio-group.vertical.svelte-8hy3lz {gap:4px;flex-direction:column;} +@media (pointer: coarse) {.radio-group.vertical.svelte-8hy3lz {gap:8px;} +}.radio-group.svelte-8hy3lz [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.radio-group.svelte-8hy3lz [aria-invalid=true] button[aria-checked=true] {border-color:var(--sui-error-border-color);}.radio-group.svelte-8hy3lz [aria-invalid=true] button[aria-checked=true]::before {background-color:var(--sui-error-border-color);}.inner.svelte-8hy3lz {display:contents;}`};function Tm(e,t){O(t,!0),J(e,_te);let n=X(t,`hidden`,3,!1),r=X(t,`disabled`,3,!1),i=X(t,`readonly`,3,!1),a=X(t,`required`,3,!1),o=X(t,`invalid`,3,!1),s=X(t,`orientation`,3,`horizontal`),c=X(t,`ariaLabel`,3,void 0),l=Al(t,hte);var u=gte(),d=e=>{t.onChange?.(e)};bl(u,()=>({...l,role:`radiogroup`,class:`sui radio-group ${t.class??``} ${s()??``}`,tabindex:`-1`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-orientation":s(),"aria-label":c(),onChange:d}),void 0,void 0,void 0,`svelte-8hy3lz`);var f=I(u);Ac(I(f),()=>t.children??br),D(f),D(u),Gc(u,Dp),V(()=>f.inert=r()),G(e,u),k()}var vte=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`name`,`value`,`valueType`,`label`,`group`,`children`,`onChange`,`onSelect`]),yte=U(``),bte=U(` `),xte={hash:`svelte-btjepd`,code:`.radio.svelte-btjepd {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);color:var(--sui-control-foreground-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);cursor:pointer;-webkit-user-select:none;user-select:none;}.radio.svelte-btjepd :hover button {background-color:var(--sui-hover-background-color);}.radio.svelte-btjepd :hover button[aria-checked=true] {border-color:var(--sui-primary-accent-color-light);color:var(--sui-primary-accent-color-text);}.radio.svelte-btjepd :hover button[aria-checked=true]::before {background-color:var(--sui-primary-accent-color-light);}.radio.svelte-btjepd :active button {background-color:var(--sui-active-background-color);}.radio.svelte-btjepd :active button[aria-checked=true] {border-color:var(--sui-primary-accent-color-dark);color:var(--sui-primary-accent-color-dark);}.radio.svelte-btjepd button {flex:none;justify-content:center;overflow:hidden;margin:0 !important;border-width:1.5px;border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-height);padding:0;width:var(--sui-checkbox-height);height:var(--sui-checkbox-height);background-color:var(--sui-checkbox-background-color);transition:all 200ms;}.radio.svelte-btjepd button::before {content:"";border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 7px);height:calc(var(--sui-checkbox-height) - 7px);background-color:var(--sui-primary-accent-color);opacity:0;transition:all 200ms;will-change:opacity;}.radio.svelte-btjepd button[aria-checked=true] {border-color:var(--sui-primary-accent-color);}.radio.svelte-btjepd button[aria-checked=true]::before {opacity:1;}.radio.svelte-btjepd label:where(.svelte-btjepd) {cursor:inherit;}`};function Em(e,t){let n=tc();O(t,!0),J(e,xte);let r=X(t,`checked`,7,!1),i=X(t,`hidden`,3,!1),a=X(t,`disabled`,3,!1),o=X(t,`name`,3,void 0),s=X(t,`value`,3,void 0),c=X(t,`valueType`,3,void 0),l=X(t,`label`,3,void 0),u=X(t,`group`,15),d=Al(t,vte),f=P(void 0);B(()=>{typeof u()==`string`&&(u()===s()?r()||r(!0):r()&&r(!1))});var p=bte(),m=e=>{e.target.matches(`button`)||H(f)?.click()};bl(p,()=>({...d,role:`none`,class:`sui radio ${t.class??``}`,hidden:i(),onclick:m,[ul]:{disabled:a()}}),void 0,void 0,void 0,`svelte-btjepd`);var h=I(p);$f(h,{role:`radio`,get id(){return n},get hidden(){return i()},get disabled(){return a()},get name(){return o()},get value(){return s()},get valueType(){return c()},get"aria-checked"(){return r()},get"aria-labelledby"(){return`${n}-label`},onclick:e=>{e.preventDefault(),!(a()||r())&&(r(!0),typeof u()==`string`&&u(s()))},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return H(f)},set element(e){F(f,e,!0)}});var g=z(h,2),_=e=>{var r=yte(),i=I(r),a=e=>{var n=W();Ac(L(n),()=>t.children??br),G(e,n)},o=e=>{var t=ec();V(()=>K(t,l())),G(e,t)};q(i,e=>{t.children?e(a):e(o,-1)}),D(r),V(()=>Y(r,`id`,`${n}-label`)),G(e,r)};q(g,e=>{(t.children||l())&&e(_)}),D(p),G(e,p),k()}var Ste=new Set([`$$slots`,`$$events`,`$$legacy`,`disabled`,`showHandleBar`,`class`,`ariaLabel`,`children`,`onResizeStart`,`onResizeEnd`]),Cte=U(`
    `),wte=U(`
    `),Tte={hash:`svelte-ao4tur`,code:`.resizable-handle.svelte-ao4tur {position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;touch-action:none;outline-offset:0;background-color:transparent;transition:background-color 200ms;}.resizable-handle.svelte-ao4tur:focus-visible, .resizable-handle.svelte-ao4tur:hover, .resizable-handle.dragging.svelte-ao4tur {outline:none;z-index:1;background-color:var(--sui-primary-accent-color-translucent-light);}.resizable-handle.svelte-ao4tur:focus-visible .handle-bar:where(.svelte-ao4tur), .resizable-handle.svelte-ao4tur:hover .handle-bar:where(.svelte-ao4tur), .resizable-handle.dragging.svelte-ao4tur .handle-bar:where(.svelte-ao4tur) {background-color:var(--sui-primary-accent-color);}.resizable-handle.disabled.svelte-ao4tur {pointer-events:none;opacity:0.4;}.resizable-handle.horizontal.svelte-ao4tur {width:var(--sui-resizable-handle-size, 4px);height:100%;cursor:col-resize;}.resizable-handle.horizontal.svelte-ao4tur .handle-bar:where(.svelte-ao4tur) {width:2px;height:40%;min-height:20px;}.resizable-handle.vertical.svelte-ao4tur {width:100%;height:var(--sui-resizable-handle-size, 4px);cursor:row-resize;}.resizable-handle.vertical.svelte-ao4tur .handle-bar:where(.svelte-ao4tur) {height:2px;width:40%;min-width:20px;}.resizable-handle.svelte-ao4tur .handle-bar:where(.svelte-ao4tur) {border-radius:1px;background-color:hsl(var(--sui-border-color-1-hsl));transition:background-color 200ms;}`};function Dm(e,t){O(t,!0),J(e,Tte);let n=X(t,`disabled`,3,!1),r=X(t,`showHandleBar`,3,!1),i=X(t,`ariaLabel`,3,void 0),a=Al(t,Ste),o=zi(`paneGroup`);if(!o)throw Error(` must be used inside a `);let s=o.registerHandle(),c=N(()=>o.direction===`horizontal`),l=N(()=>o.sizes),u=N(()=>H(l)[s]??0),d=N(()=>o.getPaneConstraints(s)),f=N(()=>Math.max(H(d).minSize,100-o.paneDefs.reduce((e,t,n)=>e+(n===s?0:o.getPaneConstraints(n).maxSize),0))),p=N(()=>Math.min(H(d).maxSize,100-o.paneDefs.reduce((e,t,n)=>e+(n===s?0:o.getPaneConstraints(n).minSize),0))),m=P(void 0),h=P(!1),g=P(0),_=P(0),v=P(!1),y=0,b=()=>{let e=H(m)?.closest(`.resizable-pane-group`);return e?H(c)?e.clientWidth:e.clientHeight:0},x=e=>{let{screenX:t,screenY:r,pointerId:i}=e;if(n()||!H(h)||i!==H(_))return;e.preventDefault(),e.stopPropagation();let a=H(c)?t:r,l=a-H(g);if(!y)return;let u=l/y*100;H(c)&&Hd()&&(u=-u),F(g,a,!0),o.resize(s,u)},S=e=>{let{pointerId:n}=e;!H(h)||n!==H(_)||(H(m)?.releasePointerCapture(n),F(h,!1),F(g,0),F(_,0),t.onResizeEnd?.(),document.removeEventListener(`pointermove`,x),document.removeEventListener(`pointerup`,S),document.removeEventListener(`pointercancel`,S))},C=e=>{if(n())return;e.preventDefault(),e.stopPropagation();let{screenX:r,screenY:i,pointerId:a}=e;F(h,!0),F(g,H(c)?r:i,!0),F(_,a,!0),y=b(),H(m)?.setPointerCapture(a),t.onResizeStart?.(),document.addEventListener(`pointermove`,x),document.addEventListener(`pointerup`,S),document.addEventListener(`pointercancel`,S)},w=e=>{if(n())return;let{key:r,shiftKey:i}=e,a=i?10:1,l=0;if(r===`Enter`){e.preventDefault(),e.stopPropagation(),o.toggleCollapse(s);return}if(r===`Home`){e.preventDefault(),e.stopPropagation(),o.resize(s,-100);return}if(r===`End`){e.preventDefault(),e.stopPropagation(),o.resize(s,100);return}if(H(c)){let e=Hd();if(r===`ArrowLeft`)l=e?a:-a;else if(r===`ArrowRight`)l=e?-a:a;else return}else if(r===`ArrowUp`)l=-a;else if(r===`ArrowDown`)l=a;else return;e.preventDefault(),e.stopPropagation(),H(v)||(F(v,!0),t.onResizeStart?.()),o.resize(s,l)},T=()=>{H(v)&&(F(v,!1),t.onResizeEnd?.())};var E=wte();bl(E,e=>({...a,role:`separator`,tabindex:n()?-1:0,"aria-orientation":H(c)?`vertical`:`horizontal`,"aria-valuenow":e,"aria-valuemin":H(f),"aria-valuemax":H(p),"aria-controls":o.paneDefs[s]?.id,"aria-disabled":n()||void 0,"aria-label":i(),class:`sui resizable-handle ${t.class??``??``}`,onpointerdown:C,onkeydown:w,onblur:T,[ul]:{horizontal:H(c),vertical:!H(c),disabled:n(),dragging:H(h)}}),[()=>Math.round(H(u))],void 0,void 0,`svelte-ao4tur`);var ee=I(E),te=e=>{var n=W();Ac(L(n),()=>t.children),G(e,n)},ne=e=>{G(e,Cte())};q(ee,e=>{t.children?e(te):r()&&e(ne,1)}),D(E),Ol(E,e=>F(m,e),()=>H(m)),G(e,E),k()}var Ete=new Set([`$$slots`,`$$events`,`$$legacy`,`direction`,`class`,`children`,`onResize`]),Dte=U(`
    `),Ote={hash:`svelte-98z4bd`,code:`.resizable-pane-group.svelte-98z4bd {display:flex;overflow:hidden;}.resizable-pane-group.horizontal.svelte-98z4bd {flex-direction:row;width:100%;height:100%;}.resizable-pane-group.vertical.svelte-98z4bd {flex-direction:column;width:100%;height:100%;}`};function Om(e,t){O(t,!0),J(e,Ote);let n=X(t,`direction`,3,`horizontal`),r=Al(t,Ete),i=ao([]),a=P(void 0),o=ao([]),s=ao([]),c=0,l=()=>H(a)?n()===`horizontal`?H(a).clientWidth:H(a).clientHeight:0,u=(e,t)=>{if(typeof e==`number`)return e;if(!e||typeof e!=`string`)return t;let n=e.trim(),r=n.match(/^(-?\d+(?:\.\d+)?)%$/);if(r)return Number(r[1]);let i=l();if(!i)return t;let a=n.match(/^(-?\d+(?:\.\d+)?)px$/i);if(a)return Number(a[1])/i*100;let o=n.match(/^(-?\d+(?:\.\d+)?)(dvw|vw|dvh|vh)$/i);if(o){let e=Number(o[1]),t=o[2].toLowerCase().endsWith(`w`)?window.innerWidth:window.innerHeight;return e/100*t/i*100}return t},d=e=>{let t=i[e];if(!t)return{minSize:0,maxSize:100};let n=Math.max(0,u(t.minSize,0)),r=Math.min(100,u(t.maxSize,100));return{minSize:n,maxSize:Math.max(n,r)}},f=()=>{if(!i.length)return;let e=i.map(e=>e.defaultSize===void 0?NaN:u(e.defaultSize,NaN)),t=e.filter(e=>!Number.isNaN(e)).reduce((e,t)=>e+t,0),n=e.filter(e=>Number.isNaN(e)).length,r=Math.max(0,100-t),a=n>0?r/n:0,s=e.map(e=>Number.isNaN(e)?a:e);o.splice(0,o.length,...s)},p=(e,n)=>{let r=e,i=e+1;if(r<0||i>=o.length)return;let{minSize:a,maxSize:s}=d(r),{minSize:c,maxSize:l}=d(i),u=o[r],f=o[i],p=Math.min(s-u,f-c),m=Math.min(u-a,l-f),h=n>0?Math.min(n,p):-Math.min(-n,m);o[r]=u+h,o[i]=f-h,t.onResize?.({sizes:o.map(e=>Number(e.toFixed(1)))})};Bi(`paneGroup`,{get direction(){return n()},sizes:o,registerPane:({id:e,defaultSize:t,minSize:n,maxSize:r})=>{let a=i.length;return i.push({id:e,defaultSize:t,minSize:n,maxSize:r}),{index:a}},registerHandle:()=>{let e=c;return c+=1,e},resize:p,toggleCollapse:e=>{let{minSize:t}=d(e);if(s[e]!==void 0){let t=s[e]-o[e];s[e]=void 0,p(e,t)}else s[e]=o[e],p(e,-(o[e]-t))},getPaneConstraints:d,paneDefs:i}),B(()=>{i.length&&!o.length&&f()});var m=Dte();bl(m,()=>({...r,role:`none`,class:`sui resizable-pane-group ${n()??``} ${t.class??``??``}`,"data-direction":n()}),void 0,void 0,void 0,`svelte-98z4bd`),Ac(I(m),()=>t.children??br),D(m),Ol(m,e=>F(a,e),()=>H(a)),G(e,m),k()}var kte=new Set([`$$slots`,`$$events`,`$$legacy`,`defaultSize`,`minSize`,`maxSize`,`class`,`children`,`onResize`]),Ate=U(`
    `);function km(e,t){let n=tc();O(t,!0);let r=X(t,`defaultSize`,3,void 0),i=X(t,`minSize`,3,0),a=X(t,`maxSize`,3,100),o=Al(t,kte),s=zi(`paneGroup`);if(!s)throw Error(` must be used inside a `);let{index:c}=s.registerPane({id:n,defaultSize:r(),minSize:i(),maxSize:a()}),l=N(()=>s.direction),u=N(()=>s.sizes[c]),d=N(()=>H(u)===void 0?typeof r()==`number`?`${r()}%`:r()??`0%`:`${H(u)}%`);B(()=>{H(u)!==void 0&&Ds(()=>t.onResize?.({size:Number(H(u).toFixed(1))}))});var f=Ate();bl(f,()=>({...o,id:n,role:`none`,class:`sui resizable-pane ${t.class??``??``}`,[dl]:{"flex-basis":H(d),"flex-grow":`0`,"flex-shrink":`0`,"overflow-x":H(l)===`horizontal`?`auto`:void 0,"overflow-y":H(l)===`vertical`?`auto`:void 0}})),Ac(I(f),()=>t.children??br),D(f),G(e,f),k()}var jte=U(`
    `),Mte=U(` `,1),Nte={hash:`svelte-mujl6m`,code:`.spinner.svelte-mujl6m {height:1px;}`};function Am(e,t){O(t,!0),J(e,Nte);let n=X(t,`itemChunkSize`,3,25),r=P(ao(n())),i=P(void 0),a=N(()=>t.items.length>H(r)),o=new IntersectionObserver(([{isIntersecting:e}])=>{e&&(H(a)?F(r,H(r)+n()):o.disconnect())});B(()=>{H(i)&&o.observe(H(i))});var s=Mte(),c=L(s);Cc(c,19,()=>t.items.slice(0,H(r)),(e,n)=>e[t.itemKey]??n,(e,n,r)=>{var i=W();Ac(L(i),()=>t.renderItem,()=>H(n),()=>H(r)),G(e,i)});var l=z(c,2),u=e=>{var t=jte();Ol(t,e=>F(i,e),()=>H(i)),G(e,t)};q(l,e=>{H(a)&&e(u)}),G(e,s),k()}var jm=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`searchIcon`,`closeIcon`,`onClear`]),Mm=U(`
    `),Nm={hash:`svelte-1qqyq61`,code:`.search-bar.svelte-1qqyq61 {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.search-bar.flex.svelte-1qqyq61:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.search-bar.svelte-1qqyq61 > span:where(.svelte-1qqyq61) {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;z-index:2;display:flex;align-items:center;justify-content:center;width:var(--sui-button-medium-height);height:var(--sui-button-medium-height);}.search-bar.svelte-1qqyq61 .icon {font-size:calc(var(--sui-textbox-height) * 0.6);opacity:0.5;}.search-bar.svelte-1qqyq61 > button {position:absolute;inset-block:0;inset-inline-start:auto;inset-inline-end:0;z-index:2;margin:0 !important;height:var(--sui-button-medium-height);}.search-bar.svelte-1qqyq61 .label {--sui-textbox-singleline-padding: 0 36px;}.search-bar.svelte-1qqyq61 .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.search-bar.svelte-1qqyq61 input {z-index:1;padding:0 var(--sui-button-medium-height) !important;width:100%;}`};function Pm(e,t){let n=tc();O(t,!0),J(e,Nm);let r=X(t,`value`,15),i=X(t,`flex`,3,!1),a=X(t,`hidden`,3,!1),o=X(t,`disabled`,3,!1),s=X(t,`readonly`,3,!1),c=X(t,`required`,3,!1),l=X(t,`invalid`,3,!1),u=Al(t,jm),d=P(void 0);var f={focus:()=>{H(d)?.focus()}},p=Mm();let m;var h=I(p),g=I(h),_=e=>{var n=W();Ac(L(n),()=>t.searchIcon),G(e,n)},v=e=>{Rl(e,{name:`search`})};q(g,e=>{t.searchIcon?e(_):e(v,-1)}),D(h);var y=z(h,2);fm(y,Ml({dir:`auto`},()=>u,{role:`searchbox`,get id(){return n},get flex(){return i()},get hidden(){return a()},get disabled(){return o()},get readonly(){return s()},get required(){return c()},get invalid(){return l()},inputmode:`search`,get element(){return H(d)},set element(e){F(d,e,!0)},get value(){return r()},set value(e){r(e)}}));var b=z(y,2),x=e=>{{let i=e=>{var n=W(),r=L(n),i=e=>{var n=W();Ac(L(n),()=>t.closeIcon),G(e,n)},a=e=>{Rl(e,{name:`close`})};q(r,e=>{t.closeIcon?e(i):e(a,-1)}),G(e,n)},a=N(()=>Z(`_sui.clear`));$f(e,{iconic:!0,get"aria-label"(){return H(a)},get"aria-controls"(){return n},onclick:()=>{r(``),H(d)?.focus(),t.onClear?.()},startIcon:i,$$slots:{startIcon:!0}})}};return q(b,e=>{r()&&e(x)}),D(p),V(()=>{Y(p,`role`,a()?void 0:`none`),m=el(p,1,`sui search-bar ${t.class??``}`,`svelte-1qqyq61`,m,{flex:i(),disabled:o(),readonly:s()}),Y(p,`hidden`,a()),Y(p,`aria-hidden`,a())}),G(e,p),k(f)}var Fm=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`editable`,`position`,`filterThreshold`,`ariaLabel`,`children`,`chevronIcon`,`onChange`]),Im=U(`
    `),Lm=U(``),Rm=U(`
    `),zm=U(`
    `,1),Bm={hash:`svelte-1ykby1k`,code:`:is(.option-host.svelte-1ykby1k, .listbox-slot.svelte-1ykby1k) {display:contents;}.combobox.svelte-1ykby1k {margin:var(--sui-focus-ring-width);display:flex;align-items:center;position:relative;min-width:var(--sui-combobox-min-width, calc(var(--sui-option-height) * 5));}.combobox.svelte-1ykby1k div[role=combobox]:where(.svelte-1ykby1k) {display:flex;align-items:center;border-width:1px;border-color:var(--sui-control-border-color);border-radius:var(--sui-textbox-border-radius);padding-block:0;padding-inline-start:calc(var(--sui-textbox-height) / 4);padding-inline-end:var(--sui-textbox-height);width:100%;height:var(--sui-textbox-height);color:var(--sui-control-foreground-color);background-color:var(--sui-disabled-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);-webkit-user-select:none;user-select:none;cursor:pointer;transition:all 200ms;}.combobox.svelte-1ykby1k div[role=combobox]:where(.svelte-1ykby1k):not(.selected) {font-style:italic;}.combobox.svelte-1ykby1k div[role=combobox]:where(.svelte-1ykby1k):is(:where(.svelte-1ykby1k):hover, :where(.svelte-1ykby1k):focus) {background-color:var(--sui-hover-background-color);}.combobox.svelte-1ykby1k div[role=combobox][aria-invalid=true]:where(.svelte-1ykby1k) {border-color:var(--sui-error-border-color);}.combobox.svelte-1ykby1k div[role=combobox]:where(.svelte-1ykby1k) .label:where(.svelte-1ykby1k) {width:100%;}.combobox.svelte-1ykby1k .icon {font-size:var(--sui-font-size-xx-large);opacity:0.5;}.combobox.svelte-1ykby1k > .icon {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}.combobox.svelte-1ykby1k > button {position:absolute;inset-block-start:0;inset-inline-end:0;z-index:1;margin:0 !important;border-start-start-radius:0;border-end-start-radius:0;background-color:transparent !important;}.combobox.svelte-1ykby1k > button[tabindex="-1"] {pointer-events:none;}.combobox.svelte-1ykby1k :not(.editable) > button {background-color:transparent !important;}.combobox.svelte-1ykby1k .text-input {margin:0 !important;width:100% !important;}.combobox.svelte-1ykby1k input {padding-block:0;padding-inline:8px 32px;width:0;}.combobox.svelte-1ykby1k + [role=listbox] {position:fixed;z-index:100;border-radius:var(--sui-control-medium-border-radius);box-shadow:0 8px 16px var(--sui-popup-shadow-color);overflow:auto;background-color:var(--sui-secondary-background-color);-webkit-backdrop-filter:blur(32px);backdrop-filter:blur(32px); + /* Add .1s delay before the position can be determined */transition:opacity 100ms 100ms;}.combobox.svelte-1ykby1k + [role=listbox]:not(.open) {opacity:0;pointer-events:none;}.combobox-inner.svelte-1ykby1k {flex:auto;display:flex;flex-direction:column;overflow:hidden;}.combobox-inner.svelte-1ykby1k .sui.search-bar {flex:none;margin-bottom:calc(8px - var(--sui-focus-ring-width));}.combobox-inner.svelte-1ykby1k .sui.listbox {flex:auto;overflow-y:auto;}.combobox-inner.svelte-1ykby1k .no-options:where(.svelte-1ykby1k) {flex:none;display:flex;align-items:center;padding:var(--sui-option-padding);height:var(--sui-option-height);color:var(--sui-tertiary-foreground-color);}`};function Vm(e,t){let n=tc();O(t,!0),J(e,Bm);let r=X(t,`value`,15),i=X(t,`hidden`,3,!1),a=X(t,`disabled`,3,!1),o=X(t,`readonly`,3,!1),s=X(t,`required`,3,!1),c=X(t,`invalid`,3,!1),l=X(t,`editable`,3,!0),u=X(t,`position`,3,`bottom-left`),d=X(t,`filterThreshold`,3,5),f=X(t,`ariaLabel`,3,void 0),p=Al(t,Fm),m=P(!1),h=P(void 0),g=P(void 0),_=P(void 0),v=P(void 0),y=P(void 0),b=P(void 0),x=P(``),S=P(!1),C=P(``),w=P(0),T=N(()=>!H(C)||H(w)>0),E=N(()=>H(h)??H(g)),ee=_p(),te=()=>{let e=ee.find(r());e&&(F(x,e.label,!0),ee.selectOnly(r()))},ne=e=>{let n=yp(e);r(n.value),te(),t.onChange?.(new CustomEvent(`Change`,{detail:n}))},re=()=>H(y)?.querySelector(`[role="listbox"]`),ie=()=>{let e=re(),t=e?.querySelector(`[role="option"][aria-selected="true"]`);!e||!t||(t.classList.add(`focused`),e.setAttribute(`aria-activedescendant`,t.id),t.scrollIntoView(!0))};B(()=>{ee.expanded=H(m)}),B(()=>{if(!H(m))return;let e=globalThis.setTimeout(ie,150);return()=>{globalThis.clearTimeout(e),re()?.removeAttribute(`aria-activedescendant`)}}),B(()=>{if(!H(y))return;let e=H(m)?H(b):H(v);e&&H(y).parentElement!==e&&e.append(H(y))}),Nl(()=>{let e=ee.selectedEntry;e&&(r(e.value),F(x,e.label,!0),t.onChange?.(new CustomEvent(`Change`,{detail:{target:void 0,type:e.type,name:e.name,label:e.label,value:e.value}})))}),B(()=>{r(),te()});var ae=zm(),oe=L(ae);bl(oe,()=>({...p,role:`none`,class:`sui combobox ${t.class??``}`,hidden:i(),[ul]:{editable:l()}}),void 0,void 0,void 0,`svelte-1ykby1k`);var se=I(oe),ce=e=>{var t=Im();bl(t,()=>({...p,role:`combobox`,id:n,tabindex:a()?-1:0,"aria-expanded":H(m),"aria-hidden":i(),"aria-disabled":a(),"aria-readonly":o(),"aria-required":s(),"aria-invalid":c(),"aria-haspopup":`listbox`,"aria-label":f(),[ul]:{selected:r()!==void 0}}),void 0,void 0,void 0,`svelte-1ykby1k`);var l=I(t);_f(I(l),{children:(e,t)=>{mi();var n=ec();V(e=>K(n,e),[()=>r()===void 0?Z(`_sui.combobox.select_an_option`):H(x)]),G(e,n)},$$slots:{default:!0}}),D(l),D(t),Ol(t,e=>F(h,e),()=>H(h)),G(e,t)},le=e=>{{let t=N(()=>r()===void 0?``:String(r()));fm(e,Ml(()=>p,{dir:`auto`,role:`combobox`,get id(){return n},get value(){return H(t)},get hidden(){return i()},get disabled(){return a()},get readonly(){return o()},get required(){return s()},get invalid(){return c()},get"aria-expanded"(){return H(m)},"aria-haspopup":`listbox`,get"aria-label"(){return f()},get element(){return H(g)},set element(e){F(g,e,!0)}}))}};q(se,e=>{l()?e(le,-1):e(ce)});var ue=z(se,2);{let e=e=>{var n=W(),r=L(n),i=e=>{var n=W();Ac(L(n),()=>t.chevronIcon),G(e,n)},a=e=>{Rl(e,{name:`expand_more`})};q(r,e=>{t.chevronIcon?e(i):e(a,-1)}),G(e,n)},r=N(()=>!l()||o()||a()?-1:0),s=N(()=>H(m)?Z(`_sui.collapse`):Z(`_sui.expand`)),c=N(()=>H(m)?`${n}-popup`:void 0);$f(ue,{variant:`ghost`,iconic:!0,get hidden(){return i()},get disabled(){return a()},get tabindex(){return H(r)},get"aria-label"(){return H(s)},get"aria-controls"(){return H(c)},get"aria-expanded"(){return H(m)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!a()&&!o()&&F(m,!H(m))},startIcon:e,$$slots:{startIcon:!0}})}D(oe);var de=z(oe,2),fe=I(de);vm(I(fe),{get id(){return`${n}-listbox`},class:`in-combobox`,get searchTerms(){return H(C)},onclick:e=>{e.target.matches(`[role="option"]`)&&ne(e.target)},onFilter:e=>{F(w,e.detail.matched,!0)},children:(e,n)=>{var r=W();Ac(L(r),()=>t.children??br),G(e,r)},$$slots:{default:!0}}),D(fe),Ol(fe,e=>F(y,e),()=>H(y)),D(de),Ol(de,e=>F(v,e),()=>H(v)),qf(z(de,2),{get id(){return`${n}-popup`},class:`combobox`,get anchor(){return H(E)},get position(){return u()},touchOptimized:!0,onOpen:()=>{F(S,d()!==-1&&ee.count>d(),!0),F(C,``)},get content(){return H(_)},set content(e){F(_,e,!0)},get open(){return H(m)},set open(e){F(m,e,!0)},children:(e,t)=>{var r=Rm(),i=I(r),a=e=>{{let t=N(()=>Z(`_sui.combobox.filter_options`));Pm(e,{flex:!0,get"aria-label"(){return H(t)},get"aria-controls"(){return`${n}-listbox`},onkeydown:e=>{[`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),H(_)?.querySelector(`.sui.listbox`)?.dispatchEvent(new KeyboardEvent(`keydown`,e)))},get value(){return H(C)},set value(e){F(C,e,!0)}})}};q(i,e=>{H(S)&&e(a)});var o=z(i,2);Ol(o,e=>F(b,e),()=>H(b));var s=z(o,2),c=e=>{var t=Lm(),n=R(t,!0);V(e=>K(n,e),[()=>Z(`_sui.combobox.no_matching_options`)]),G(e,t)};q(s,e=>{H(T)||e(c)}),D(r),G(e,r)},$$slots:{default:!0}}),G(e,ae),k()}function Hm(e){let t=e-1;return t*t*t+1}function Um(e,{from:t,to:n},r={}){var{delay:i=0,duration:a=e=>Math.sqrt(e)*120,easing:o=Hm}=r,s=getComputedStyle(e),c=s.transform===`none`?``:s.transform,[l,u]=s.transformOrigin.split(` `).map(parseFloat);l/=e.clientWidth,u/=e.clientHeight;var d=Wm(e),f=e.clientWidth/n.width/d,p=e.clientHeight/n.height/d,m=t.left+t.width*l,h=t.top+t.height*u,g=n.left+n.width*l,_=n.top+n.height*u,v=(m-g)*f,y=(h-_)*p,b=t.width/n.width,x=t.height/n.height;return{delay:i,duration:typeof a==`function`?a(Math.sqrt(v*v+y*y)):a,easing:o,css:(e,t)=>`transform: ${c} translate(${t*v}px, ${t*y}px) scale(${e+t*b}, ${e+t*x});`}}function Wm(e){if(`currentCSSZoom`in e)return e.currentCSSZoom;for(var t=e,n=1;t!==null;)n*=+getComputedStyle(t).zoom,t=t.parentElement;return n}var Gm=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onChange`]);function Km(e,t){O(t,!0);let n=X(t,`value`,15),r=X(t,`hidden`,3,!1),i=X(t,`disabled`,3,!1),a=X(t,`readonly`,3,!1),o=X(t,`required`,3,!1),s=X(t,`invalid`,3,!1),c=Al(t,Gm);Vm(e,Ml(()=>c,{get class(){return`sui select ${t.class??``}`},get hidden(){return r()},get disabled(){return i()},get readonly(){return a()},get required(){return o()},get invalid(){return s()},get onChange(){return t.onChange},editable:!1,get value(){return n()},set value(e){n(e)},children:(e,n)=>{var r=W();Ac(L(r),()=>t.children??br),G(e,r)},$$slots:{default:!0}})),k()}var qm=new Set([`$$slots`,`$$events`,`$$legacy`,`values`,`options`,`max`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onAddValue`,`onRemoveValue`,`onReorder`]),Jm=U(` `),Ym=U(`
    `),Xm={hash:`svelte-1pseghx`,code:`.select-tags.svelte-1pseghx {display:flex;flex-wrap:wrap;align-items:center;}.select-tags.disabled.svelte-1pseghx {pointer-events:none;}.select-tags.disabled.svelte-1pseghx > :where(.svelte-1pseghx) {opacity:0.5;}.select-tags.svelte-1pseghx span[role=listbox]:where(.svelte-1pseghx) {display:contents;}.select-tags.svelte-1pseghx span[draggable]:where(.svelte-1pseghx) {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);padding:0;padding-inline-start:8px;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-secondary-background-color);cursor:grab;outline:none;}.select-tags.svelte-1pseghx span[draggable]:where(.svelte-1pseghx):focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.select-tags.svelte-1pseghx span[draggable].drag-source:where(.svelte-1pseghx) {opacity:0.4;cursor:grabbing;}.select-tags.svelte-1pseghx span[draggable].drop-before:where(.svelte-1pseghx)::before, .select-tags.svelte-1pseghx span[draggable].drop-after:where(.svelte-1pseghx)::after {content:"";position:absolute;top:0;bottom:0;margin-inline-start:-1px;border-radius:1px;width:4px;background-color:var(--sui-primary-accent-color);pointer-events:none;}.select-tags.svelte-1pseghx span[draggable].drop-before:where(.svelte-1pseghx)::before {inset-inline-start:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-1pseghx span[draggable].drop-after:where(.svelte-1pseghx)::after {inset-inline-end:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-1pseghx span[draggable]:where(.svelte-1pseghx) .label:where(.svelte-1pseghx) {outline:none;}.select-tags.svelte-1pseghx span[draggable]:where(.svelte-1pseghx) button {outline-offset:-2px;}.select-tags.svelte-1pseghx span[draggable]:where(.svelte-1pseghx) .icon {font-size:var(--sui-font-size-large);}`};function Zm(e,t){O(t,!0),J(e,Xm);let n=X(t,`values`,31,()=>ao([])),r=X(t,`max`,3,void 0),i=X(t,`hidden`,3,!1),a=X(t,`disabled`,3,!1),o=X(t,`readonly`,3,!1),s=X(t,`required`,3,!1),c=X(t,`invalid`,3,!1),l=Al(t,qm),u=N(()=>new Map(t.options.map(e=>[e.value,e]))),d=N(()=>new Set(n())),f=N(()=>Hd()?`ArrowRight`:`ArrowLeft`),p=N(()=>Hd()?`ArrowLeft`:`ArrowRight`),m=P(void 0),h=P(void 0),g=P(void 0),_=P(void 0),v=(e,r)=>{if(e===r)return;let i=[...n()],[a]=i.splice(e,1);i.splice(r,0,a),n(i),t.onReorder?.(new CustomEvent(`Reorder`,{detail:{values:i}}))},y=async(e,t)=>{v(e,t),await ws(),(H(m)?.querySelectorAll(`.label[tabindex]`)?.[t])?.focus()};var b=Ym();let x;var S=I(b);Cc(S,30,n,e=>e,(e,r,i)=>{let s=N(()=>H(u).get(r)),c=N(()=>H(s)?.label||H(s)?.value||r);var l=Jm();let d;var m=I(l),h=R(m,!0),v=z(m,2),b=e=>{{let i=e=>{Rl(e,{name:`close`})},s=N(()=>a()||o()),l=N(()=>Z(`_sui.select_tags.remove_x`,{values:{name:H(c)}}));$f(e,{iconic:!0,size:`small`,get disabled(){return H(s)},get"aria-label"(){return H(l)},onclick:()=>{n(n().filter(e=>e!==r)),t.onRemoveValue?.(new CustomEvent(`RemoveValue`,{detail:{value:r}}))},startIcon:i,$$slots:{startIcon:!0}})}};q(v,e=>{H(s)&&e(b)}),D(l),V(()=>{Y(l,`draggable`,!a()&&!o()),d=el(l,1,`svelte-1pseghx`,null,d,{"drag-source":H(g)===H(i),"drop-before":H(_)===H(i)&&H(g)!==H(i)&&H(g)!==H(i)-1,"drop-after":H(_)===n().length&&H(i)===n().length-1&&H(g)!==n().length-1}),Y(m,`tabindex`,a()||o()?void 0:0),K(h,H(c))}),Ws(`dragstart`,l,e=>{F(g,H(i),!0),e.dataTransfer&&(e.dataTransfer.setData(`text/plain`,H(c)),e.dataTransfer.effectAllowed=`move`)}),Ws(`dragover`,l,e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let t=e.currentTarget.getBoundingClientRect(),n=e.clientX{e.preventDefault();let t=H(g),n=H(_);F(g,void 0),F(_,void 0),t!==void 0&&n!==void 0&&n!==t&&n!==t+1&&await y(t,n>t?n-1:n)}),Ws(`dragend`,l,()=>{F(g,void 0),F(_,void 0)}),Gs(`keydown`,m,async e=>{let{key:t}=e,r=t===H(f)&&H(i)>0?H(i)-1:t===H(p)&&H(i)0?0:t===`End`&&H(i)Um,()=>({duration:200})),G(e,l)}),D(S);var C=z(S,2),w=e=>{{let r=N(()=>a()||o());Km(e,Ml(()=>l,{get disabled(){return H(r)},get readonly(){return o()},get required(){return s()},get invalid(){return c()},onChange:()=>{H(h)&&(n([...n(),H(h)]),t.onAddValue?.(new CustomEvent(`AddValue`,{detail:{value:H(h)}})),F(h,void 0))},get value(){return H(h)},set value(e){F(h,e,!0)},children:(e,n)=>{var r=W();Cc(L(r),17,()=>t.options,({label:e,value:t,searchValue:n})=>t,(e,t)=>{let n=()=>H(t).label,r=()=>H(t).value,i=()=>H(t).searchValue;var a=W(),o=L(a),s=e=>{bm(e,{get label(){return n()},get value(){return r()},get searchValue(){return i()}})},c=N(()=>!H(d).has(r()));q(o,e=>{H(c)&&e(s)}),G(e,a)}),G(e,r)},$$slots:{default:!0}}))}};q(C,e=>{(typeof r()!=`number`||n().lengthF(m,e),()=>H(m)),V(e=>{x=el(b,1,`sui select-tags ${t.class??``}`,`svelte-1pseghx`,x,{disabled:a()||o()}),Y(b,`hidden`,i()),Y(S,`aria-label`,e)},[()=>Z(`_sui.select_tags.selected_options`)]),G(e,b),k()}Ks([`keydown`]);var Qm=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`min`,`max`,`sliderLabel`,`values`,`sliderLabels`,`step`,`optionLabels`,`class`,`hidden`,`disabled`,`readonly`,`invalid`,`children`,`onChange`]),$m=U(`
    `),eh=U(` `),th=U(`
    `),nh={hash:`svelte-feoi75`,code:`.slider.svelte-feoi75 {position:relative;display:inline-block;margin:var(--sui-focus-ring-width);padding:4px 6px;touch-action:none;}.slider.svelte-feoi75:hover .base-bar:where(.svelte-feoi75) {background-color:var(--sui-hover-background-color);}.slider.svelte-feoi75:active .base-bar:where(.svelte-feoi75) {background-color:var(--sui-active-background-color);}.base.svelte-feoi75 {position:relative;width:var(--sui-slider-base-width, 240px);height:calc(var(--sui-checkbox-height) / 2);cursor:pointer;}.base-bar.svelte-feoi75 {border-width:1px;border-style:solid;border-color:var(--sui-control-border-color);border-radius:var(--sui-checkbox-height);background-color:var(--sui-slider-background-color, var(--sui-secondary-background-color));transition:all 200ms;width:100%;height:100%;}.slider-bar.svelte-feoi75 {position:absolute;top:0;height:calc(var(--sui-checkbox-height) / 2);border-radius:var(--sui-checkbox-height);background-color:var(--sui-primary-accent-color-light);}.invalid.svelte-feoi75 .slider-bar:where(.svelte-feoi75) {background-color:var(--sui-error-border-color);}[role=slider].svelte-feoi75 {position:absolute;top:0;border:3px solid var(--sui-primary-accent-color-light);border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 2px);height:calc(var(--sui-checkbox-height) - 2px);background-color:var(--sui-primary-accent-color-inverted);cursor:pointer;}[role=slider].svelte-feoi75:dir(ltr) {transform:translate(calc((var(--sui-checkbox-height) / 2 - 1px) * -1), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}[role=slider].svelte-feoi75:dir(rtl) {transform:translate(calc(var(--sui-checkbox-height) / 2 - 1px), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}.invalid.svelte-feoi75 [role=slider]:where(.svelte-feoi75) {border-color:var(--sui-error-border-color);}.label.svelte-feoi75 {position:absolute;top:calc(var(--sui-checkbox-height) / 2 + 8px);font-size:var(--sui-font-size-x-small);}.label.svelte-feoi75:dir(ltr) {transform:translateX(-50%);}.label.svelte-feoi75:dir(rtl) {transform:translateX(50%);}`};function rh(e,t){O(t,!0),J(e,nh);let n=X(t,`value`,15,0),r=X(t,`min`,3,0),i=X(t,`max`,3,100),a=X(t,`sliderLabel`,3,``),o=X(t,`values`,15,void 0),s=X(t,`sliderLabels`,3,void 0),c=X(t,`step`,3,1),l=X(t,`optionLabels`,19,()=>[]),u=X(t,`hidden`,3,!1),d=X(t,`disabled`,3,!1),f=X(t,`readonly`,3,!1),p=X(t,`invalid`,3,!1),m=Al(t,Qm),h=N(()=>Array.isArray(o())),g=P(void 0),_=P(0),v=P(ao([])),y=P(ao([])),b=P(0),x=P(0),S=ao([0,0]),C=P(!1),w=P(0),T=P(0),E=e=>{let t=Math.min(H(_),Math.max(0,Hd()?H(_)-e:e)),r=H(v).findLastIndex(e=>e<=t),i=H(v).findIndex(e=>t<=e),a;a=r===-1?i:i===-1||Math.abs(H(v)[r]-t)=H(v)[a]))&&(H(h)?(o(o()[H(T)]=H(y)[a],!0),o([...o()])):n(H(y)[a]))},ee=(e,t=0)=>{let{key:a,ctrlKey:s,metaKey:c,shiftKey:l,altKey:u}=e,p=l||u||s||c;if(d()||f()||p)return;let m=H(h)?o()[t]:n(),g=-1,_=Hd(),b=_?[`ArrowDown`,`ArrowRight`]:[`ArrowDown`,`ArrowLeft`],x=_?[`ArrowUp`,`ArrowLeft`]:[`ArrowUp`,`ArrowRight`];if(b.includes(a)&&(m>r()&&(g=H(y).indexOf(m)-1),e.preventDefault(),e.stopPropagation()),x.includes(a)&&(m-1){if(H(h)&&(t===0&&S[1]<=H(v)[g]||t===1&&S[0]>=H(v)[g]))return;H(h)?(o(o()[t]=H(y)[g],!0),o([...o()])):n(H(y)[g])}},te=e=>{let{screenX:t,pointerId:n}=e;if(d()||f()||!H(C)||n!==H(w))return;e.preventDefault(),e.stopPropagation();let r=t-H(x),i=H(b)+r;E(i)},ne=e=>{let{pointerId:t,target:n}=e;if(d()||f()||!H(C)||t!==H(w))return;e.stopPropagation();let r=n;if(r.matches(`.base-bar, .slider-bar`)){let t=H(g).getBoundingClientRect(),n=e.clientX-t.left;E(n)}r.releasePointerCapture(t),F(C,!1),F(b,0),F(x,0),F(w,0),F(T,0),document.removeEventListener(`pointermove`,te),document.removeEventListener(`pointerup`,ne),document.removeEventListener(`pointercancel`,ne)},re=(e,t=0)=>{if(d()||f())return;e.preventDefault(),e.stopPropagation(),F(C,!0);let{clientX:n,screenX:r,pointerId:i,target:a}=e,o=a,s=H(g).getBoundingClientRect();F(b,n-s.left),F(x,r,!0),F(w,i,!0),F(T,t,!0),o.setPointerCapture(i),document.addEventListener(`pointermove`,te),document.addEventListener(`pointerup`,ne),document.addEventListener(`pointercancel`,ne)},ie=()=>{if(H(h)){let[e,n]=o();S[0]=H(v)[H(y).indexOf(e)],S[1]=H(v)[H(y).indexOf(n)],t.onChange?.({values:o()})}else S[0]=H(v)[H(y).indexOf(n())],t.onChange?.({value:n()})},ae=()=>{if(!H(g))return;F(_,H(g).clientWidth,!0);let e=(i()-r())/c()+1,t=H(_)/(e-1),n=Array.from({length:e});F(y,n.map((e,t)=>t*c()+r(),10),!0),F(v,n.map((e,n)=>n*t),!0),ie()};Nl(()=>{let e=new ResizeObserver(()=>ae()),t=globalThis.matchMedia(`(pointer: coarse)`);return e.observe(H(g)),t.addEventListener(`change`,ae),ae(),()=>{e.disconnect(),t.removeEventListener(`change`,ae)}}),B(()=>{n(),o(),ie()});var oe=th();Ws(`click`,lo.body,()=>{F(C,!1)}),bl(oe,()=>({...m,role:`none`,class:`sui slider ${t.class??``}`,hidden:u(),[ul]:{disabled:d(),readonly:f(),invalid:p()}}),void 0,void 0,void 0,`svelte-feoi75`);var se=I(oe),ce=z(I(se),2);let le;var ue=z(ce,2);let de;var fe=z(ue,2),pe=e=>{var t=$m();let n;V(()=>{Y(t,`tabindex`,d()?-1:0),Y(t,`aria-label`,s()?.[1]),Y(t,`aria-hidden`,u()),Y(t,`aria-disabled`,d()),Y(t,`aria-readonly`,f()),Y(t,`aria-invalid`,p()),Y(t,`aria-valuemin`,r()),Y(t,`aria-valuemax`,i()),Y(t,`aria-valuenow`,o()?.[1]),n=nl(t,``,n,{"inset-inline-start":`${S[1]??``}px`})}),Gs(`pointerdown`,t,e=>re(e,1)),Gs(`keydown`,t,e=>ee(e,1)),G(e,t)};q(fe,e=>{H(h)&&e(pe)});var me=z(fe,2),he=e=>{var t=W();Cc(L(t),19,l,(e,t)=>`${t}-${e}`,(e,t,n)=>{var r=eh();let i;var a=R(r,!0);V(()=>{i=nl(r,``,i,{"inset-inline-start":`${H(_)/(l().length-1)*H(n)}px`}),K(a,H(t))}),G(e,r)}),G(e,t)};q(me,e=>{l().length&&e(he)}),D(se),Ol(se,e=>F(g,e),()=>H(g)),D(oe),V(()=>{le=nl(ce,``,le,{"inset-inline-start":`${(H(h)?S[0]:0)??``}px`,width:`${(H(h)?S[1]-S[0]:S[0])??``}px`}),Y(ue,`tabindex`,d()?-1:0),Y(ue,`aria-label`,H(h)?s()?.[0]:a()),Y(ue,`aria-hidden`,u()),Y(ue,`aria-disabled`,d()),Y(ue,`aria-readonly`,f()),Y(ue,`aria-invalid`,p()),Y(ue,`aria-valuemin`,r()),Y(ue,`aria-valuemax`,i()),Y(ue,`aria-valuenow`,H(h)?o()?.[0]:n()),de=nl(ue,``,de,{"inset-inline-start":`${S[0]??``}px`})}),Gs(`pointerdown`,se,e=>re(e)),Gs(`pointerdown`,ue,e=>re(e,0)),Gs(`keydown`,ue,e=>ee(e,0)),G(e,oe),k()}Ks([`pointerdown`,`keydown`]);var ih=new Set([`$$slots`,`$$events`,`$$legacy`,`checked`,`label`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`ariaLabel`,`children`,`onChange`]),ah=U(``),oh={hash:`svelte-7ayydv`,code:`button.svelte-7ayydv {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color);background-color:transparent;box-shadow:none;font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);font-weight:var(--sui-font-weight-normal, normal);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;}button[aria-invalid=true].svelte-7ayydv span:where(.svelte-7ayydv) {background-color:var(--sui-error-border-color) !important;}button:hover[aria-checked=false].svelte-7ayydv span:where(.svelte-7ayydv) {background-color:var(--sui-hover-background-color);}button:hover[aria-checked=true].svelte-7ayydv span:where(.svelte-7ayydv) {background-color:var(--sui-primary-accent-color-light);}button:active[aria-checked=false].svelte-7ayydv span:where(.svelte-7ayydv) {background-color:var(--sui-active-background-color);}button:active[aria-checked=true].svelte-7ayydv span:where(.svelte-7ayydv) {background-color:var(--sui-primary-accent-color-dark);}button.svelte-7ayydv:focus-visible {outline:0;}button.svelte-7ayydv:focus-visible span:where(.svelte-7ayydv) {outline-color:var(--sui-focus-ring-color);}button[aria-checked=true].svelte-7ayydv span:where(.svelte-7ayydv) {background-color:var(--sui-primary-accent-color);border-color:transparent;}button[aria-checked=true].svelte-7ayydv span:where(.svelte-7ayydv)::before {--translateX: var(--sui-checkbox-height) * 2 - var(--sui-checkbox-height);border-color:var(--sui-primary-accent-color);background-color:var(--sui-primary-accent-color-inverted);}button[aria-checked=true].svelte-7ayydv span:where(.svelte-7ayydv):dir(ltr)::before {transform:translateX(calc(var(--translateX)));}button[aria-checked=true].svelte-7ayydv span:where(.svelte-7ayydv):dir(rtl)::before {transform:translateX(calc((var(--translateX)) * -1));}span.svelte-7ayydv {position:relative;width:calc(var(--sui-checkbox-height) * 2);height:var(--sui-checkbox-height);padding:0 2px;display:inline-flex;align-items:center;border-width:1.5px;border-style:solid;border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-height);background-color:var(--sui-control-background-color);transition:all 200ms;}span.svelte-7ayydv::before {display:inline-block;width:calc(var(--sui-checkbox-height) - 6px);height:calc(var(--sui-checkbox-height) - 6px);border-radius:var(--sui-checkbox-height);background-color:var(--sui-checkbox-border-color);transition:all 200ms;content:"";}`};function sh(e,t){O(t,!0),J(e,oh);let n=X(t,`checked`,15),r=X(t,`label`,3,void 0),i=X(t,`hidden`,3,!1),a=X(t,`disabled`,3,!1),o=X(t,`readonly`,3,!1),s=X(t,`required`,3,!1),c=X(t,`invalid`,3,!1),l=X(t,`ariaLabel`,3,void 0),u=Al(t,ih);var d=ah(),f=()=>{!a()&&!o()&&(n(!n()),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:n()}})))};bl(d,()=>({...u,role:`switch`,class:`sui switch ${t.class??``}`,type:`button`,hidden:i(),disabled:a()||void 0,"aria-checked":n(),"aria-hidden":i(),"aria-disabled":a(),"aria-readonly":o(),"aria-required":s(),"aria-invalid":c(),"aria-label":l(),onclick:f}),void 0,void 0,void 0,`svelte-7ayydv`);var p=z(I(d),2),m=e=>{var t=ec();V(()=>K(t,r())),G(e,t)},h=e=>{var n=W();Ac(L(n),()=>t.children??br),G(e,n)};q(p,e=>{r()?e(m):e(h,-1)}),D(d),G(e,d),k()}var ch=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),lh=U(`
    `),uh={hash:`svelte-yic6ww`,code:`.table-cell.svelte-yic6ww {display:table-cell;}`};function dh(e,t){J(e,uh);let n=Al(t,ch);var r=lh();bl(r,()=>({...n,role:`cell`,class:`sui table-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-yic6ww`),Ac(I(r),()=>t.children??br),D(r),G(e,r)}var fh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),ph=U(`
    `),mh={hash:`svelte-loo4eg`,code:`.table-row.svelte-loo4eg {display:table-row;height:var(--sui-primary-row-height);}`};function hh(e,t){J(e,mh);let n=Al(t,fh);var r=ph();bl(r,()=>({...n,role:`row`,class:`sui table-row ${t.class??``}`}),void 0,void 0,void 0,`svelte-loo4eg`),Ac(I(r),()=>t.children??br),D(r),G(e,r)}var gh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`ariaLabel`,`children`]),_h=U(`
    `),vh={hash:`svelte-1g2ahsl`,code:`.table.svelte-1g2ahsl {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.table.data.svelte-1g2ahsl {border-collapse:collapse;}.table.data.svelte-1g2ahsl :is(.table-col-header, .table-row-header, .table-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`};function yh(e,t){J(e,vh);let n=X(t,`ariaLabel`,3,void 0),r=Al(t,gh);var i=_h();bl(i,()=>({...r,role:`table`,class:`sui table ${t.class??``}`,"aria-label":n()}),void 0,void 0,void 0,`svelte-1g2ahsl`),Ac(I(i),()=>t.children??br),D(i),G(e,i)}var bh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`name`,`ariaLabel`,`children`,`onChange`]),xh=U(`
    `),Sh={hash:`svelte-u1xql5`,code:`.tab-list.svelte-u1xql5 {flex:none;position:relative;display:flex;align-items:center;margin:var(--sui-tab-list-margin, var(--sui-focus-ring-width));border-color:var(--sui-tab-list-border-color, var(--sui-control-border-color));border-radius:var(--sui-tab-list-border-radius, 0);background-color:var(--sui-tab-list-background-color, transparent);}.tab-list[aria-orientation=horizontal].svelte-u1xql5 {gap:var(--sui-horizontal-tab-list-gap, var(--sui-tab-list-gap, 8px));margin-block:var(--sui-horizontal-tab-list-margin-block, 0 32px);margin-inline:var(--sui-horizontal-tab-list-margin-inline, 0);border-block-width:var(--sui-horizontal-tab-list-border-block-width, 0 1px);border-inline-width:var(--sui-horizontal-tab-list-border-inline-width, 0 0);padding:var(--sui-horizontal-tab-list-padding, var(--sui-tab-list-padding, 0 16px));}.tab-list[aria-orientation=horizontal].svelte-u1xql5 button {width:var(--sui-horizontal-tab-width, var(--sui-tab-width, auto));height:var(--sui-horizontal-tab-height, var(--sui-tab-height, 100%));justify-content:var(--sui-horizontal-tab-justify-content, center);}.tab-list[aria-orientation=horizontal].svelte-u1xql5 .indicator:where(.svelte-u1xql5) {border-block-width:var(--sui-horizontal-tab-list-indicator-border-block-width, 0 2px);border-inline-width:var(--sui-horizontal-tab-list-indicator-border-inline-width, 0 0);}.tab-list[aria-orientation=vertical].svelte-u1xql5 {gap:var(--sui-vertical-tab-list-gap, var(--sui-tab-list-gap, 8px));flex-direction:column;margin-block:var(--sui-vertical-tab-list-margin-block, 0);margin-inline:var(--sui-vertical-tab-list-margin-inline, 0 32px);border-block-width:var(--sui-vertical-tab-list-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-border-inline-width, 0 1px);padding:var(--sui-vertical-tab-list-padding, var(--sui-tab-list-padding, 8px 0));width:var(--sui-vertical-tab-list-width, auto);}.tab-list[aria-orientation=vertical].svelte-u1xql5 button {justify-content:var(--sui-vertical-tab-justify-content, flex-start);padding-inline-end:32px;width:var(--sui-vertical-tab-width, var(--sui-tab-width, 100%));height:var(--sui-vertical-tab-height, var(--sui-tab-height, auto));}.tab-list[aria-orientation=vertical].svelte-u1xql5 .indicator:where(.svelte-u1xql5) {border-block-width:var(--sui-vertical-tab-list-indicator-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-indicator-border-inline-width, 0 2px);}.tab-list.svelte-u1xql5 button {position:relative;z-index:1;border-color:transparent;margin:0 !important;border-radius:var(--sui-tab-border-radius, 0);font-family:var(--sui-tab-font-family, var(--sui-control-font-family, inherit));font-size:var(--sui-tab-font-size, var(--sui-control-font-size, inherit));font-weight:var(--sui-tab-font-weight, var(--sui-control-font-weight, var(--sui-font-weight-normal, normal)));}.inner.svelte-u1xql5 {display:contents;}.indicator.svelte-u1xql5 {position:absolute;z-index:0;inset:auto;border-radius:var(--sui-tab-list-indicator-border-radius, 0);border-color:var(--sui-tab-list-indicator-border-color, var(--sui-primary-accent-color-light));background-color:var(--sui-tab-list-indicator-background-color, transparent);box-shadow:var(--sui-tab-list-indicator-box-shadow, none);pointer-events:none;transition:var(--sui-tab-list-indicator-transition, all 200ms);}`};function Ch(e,t){O(t,!0),J(e,Sh);let n=X(t,`hidden`,3,!1),r=X(t,`disabled`,3,!1),i=X(t,`orientation`,3,`horizontal`),a=X(t,`name`,3,void 0),o=X(t,`ariaLabel`,3,void 0),s=Al(t,bh),c=P(void 0),l=P(void 0),u=()=>{globalThis.requestAnimationFrame(()=>{let e=H(c)?.querySelector(`[role="tab"][aria-selected="true"]`);if(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;F(l,Object.entries({top:t,left:n,width:r,height:i}).map(([e,t])=>`${e}: ${t}px`).join(`; `),!0)}else F(l,void 0)})};Nl(()=>{let e=new ResizeObserver(()=>{u()});return e.observe(H(c)),()=>{e.disconnect()}});var d=xh(),f=()=>{u()},p=e=>{u(),t.onChange?.(e)};bl(d,()=>({...s,role:`tablist`,class:`sui tab-list ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i(),"aria-label":o(),"data-name":a()||void 0,onInitialized:f,onChange:p}),void 0,void 0,void 0,`svelte-u1xql5`);var m=I(d);Ac(I(m),()=>t.children??br),D(m);var h=z(m,2);D(d),Ol(d,e=>F(c,e),()=>H(c)),Gc(d,Dp),V(()=>{m.inert=r(),nl(h,H(l))}),G(e,d),k()}var wh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),Th=U(`
    `),Eh={hash:`svelte-1o79dsj`,code:`.tab-panel.svelte-1o79dsj {flex:auto;transition:all 200ms;}.tab-panel[aria-hidden=true].svelte-1o79dsj, .tab-panel.svelte-1o79dsj:not([aria-hidden]) {display:none;}`};function Dh(e,t){J(e,Eh);let n=Al(t,wh);var r=Th();bl(r,()=>({...n,role:`tabpanel`,class:`sui tab-panel ${t.class??``}`}),void 0,void 0,void 0,`svelte-1o79dsj`),Ac(I(r),()=>t.children??br),D(r),G(e,r)}var Oh=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`selected`,`children`,`startIcon`,`endIcon`]);function kh(e,t){let n=X(t,`hidden`,3,!1),r=X(t,`disabled`,3,!1),i=X(t,`selected`,3,!1),a=Al(t,Oh);$f(e,Ml(()=>a,{role:`tab`,get class(){return`sui tab ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get"aria-selected"(){return i()},startIcon:e=>{var n=W();Ac(L(n),()=>t.startIcon??br),G(e,n)},children:e=>{var n=W();Ac(L(n),()=>t.children??br),G(e,n)},endIcon:e=>{var n=W();Ac(L(n),()=>t.endIcon??br),G(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var Ah=new Set([`$$slots`,`$$events`,`$$legacy`,`show`,`id`,`duration`,`position`,`children`]),jh=U(`
    `,1),Mh={hash:`svelte-5aswi1`,code:`.toast-base.svelte-5aswi1 {position:fixed;inset:16px;z-index:99999;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:8px;margin:0;border:0;padding:0;width:auto;height:auto;background-color:transparent;font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);text-align:center;pointer-events:none;-webkit-user-select:none;user-select:none;}body:has(.sui.bottom-navigation:not([inert]:not([hidden]))) .toast-base {bottom:calc(var(--sui-bottom-navigation-height) + 16px);}.toast.svelte-5aswi1 {position:absolute;width:max-content;max-width:80dvw;box-shadow:0 8px 16px var(--sui-popup-shadow-color);opacity:1;transition-duration:250ms;will-change:opacity;}.toast[aria-hidden=true].svelte-5aswi1 {display:block;opacity:0;}.toast.top-left.svelte-5aswi1 {inset-block-start:0;inset-block-end:auto;inset-inline-start:0;inset-inline-end:auto;}.toast.top-center.svelte-5aswi1 {inset-block-start:0;inset-block-end:auto;inset-inline-start:50%;inset-inline-end:auto;}.toast.top-center.svelte-5aswi1:dir(ltr) {transform:translateX(-50%);}.toast.top-center.svelte-5aswi1:dir(rtl) {transform:translateX(50%);}.toast.top-right.svelte-5aswi1 {inset-block-start:0;inset-block-end:auto;inset-inline-start:auto;inset-inline-end:0;}.toast.bottom-left.svelte-5aswi1 {inset-block-start:auto;inset-block-end:0;inset-inline-start:0;inset-inline-end:auto;}.toast.bottom-center.svelte-5aswi1 {inset-block-start:auto;inset-block-end:0;inset-inline-start:50%;inset-inline-end:auto;}.toast.bottom-center.svelte-5aswi1:dir(ltr) {transform:translateX(-50%);}.toast.bottom-center.svelte-5aswi1:dir(rtl) {transform:translateX(50%);}.toast.bottom-right.svelte-5aswi1 {inset-block-start:auto;inset-block-end:0;inset-inline-start:auto;inset-inline-end:0;}`};function Nh(e,t){O(t,!0),J(e,Mh);let n=X(t,`show`,15,!1),r=X(t,`id`,3,void 0),i=X(t,`duration`,3,5e3),a=X(t,`position`,7,`auto`),o=Al(t,Ah),s=P(void 0),c=P(void 0),l=P(void 0),u=P(0);Nl(()=>(F(c,document.querySelector(`.sui.toast-base.enabled`)??void 0,!0),H(c)?H(s)?.remove():(F(c,H(s),!0),H(c)&&(H(c).classList.add(`enabled`),(document.querySelector(`.sui.app-shell`)??document.body).appendChild(H(c)),H(c).showPopover&&(H(c).popover=`manual`,H(c).showPopover()))),()=>{H(l)?.remove()})),Nl(()=>{if(a()!==`auto`)return;let e=globalThis.matchMedia(`(width < 1024px)`),t=()=>{a(e.matches?`bottom-center`:`bottom-right`)};return t(),e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}}),B(()=>{H(c)&&H(l)&&H(c).appendChild(H(l))}),B(()=>{r(),n(),i(),Ds(()=>{globalThis.clearTimeout(H(u))}),n()&&i()&&F(u,globalThis.setTimeout(()=>{n(!1)},i()),!0)});var d=jh(),f=L(d);Ol(f,e=>F(s,e),()=>H(s));var p=z(f,2);bl(p,()=>({...o,class:`sui toast ${a()??``}`,"aria-hidden":!n()}),void 0,void 0,void 0,`svelte-5aswi1`),Ac(I(p),()=>t.children??br),D(p),Ol(p,e=>F(l,e),()=>H(l)),G(e,d),k()}function Ph(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Fh(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}var Ih=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Lh=Ih&&`documentMode`in document?document.documentMode:null,Rh=Ih&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),zh=Ih&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Bh=!(!Ih||!(`InputEvent`in window)||Lh)&&`getTargetRanges`in new window.InputEvent(`input`),Vh=Ih&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Hh=Ih&&/Android/.test(navigator.userAgent),Uh=Ih&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!Hh,Wh=Ih&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Gh=Ih&&Hh&&Wh,Kh=Ih&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Rh&&!Wh,Pte=0,Fte=1,Ite=2,Lte=1,Rte=2,zte=3,Bte=4,Vte=5,Hte=6,qh=Uh||Vh||Kh?`\xA0`:`​`,Jh=` + +`,Yh=zh?`\xA0`:qh,Xh=`֑-߿יִ-﷽ﹰ-ﻼ`,Zh=`A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿`,Ute=RegExp(`^[^`+Zh+`]*[`+Xh+`]`),Wte=RegExp(`^[^`+Xh+`]*[`+Zh+`]`),Qh={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},Gte={directionless:1,unmergeable:2},$h={center:2,end:6,justify:4,left:1,right:3,start:5},Kte={[Rte]:`center`,[Hte]:`end`,[Bte]:`justify`,[Lte]:`left`,[zte]:`right`,[Vte]:`start`},qte={normal:0,segmented:2,token:1},Jte={[Pte]:`normal`,[Ite]:`segmented`,[Fte]:`token`},eg=`$config`;function tg(){return uC()._blockCursorElement}function Yte(e){return e!==null&&e.nodeType===1&&e.hasAttribute(`data-lexical-slot`)}var ng=class e{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(t){return new e(this.element,t,this.after)}withAfter(t){return new e(this.element,this.before,t)}withElement(t){return this.element===t?this:new e(t,this.before,this.after)}insertChild(e){let t=this.getInsertionAnchor();return t!==null&&t.parentElement!==this.element&&Ph(357),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&Ph(358),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&Ph(359),this.element.replaceChild(e,t),this}getFirstChild(){let e=this.getFirstChildAnchor(),t=e?e.nextSibling:this.element.firstChild;return t===this.getInsertionAnchor()?null:t}getFirstChildAnchor(){return this.after}resolveLeafPosition(e,t,n){if(this.element===e)return t===e&&n===0?`before`:`after`;let r=rg(e,this.element);if(r===null)return`after`;let i=Array.prototype.indexOf.call(e.childNodes,r);if(i<0)return`after`;if(t===e)return n<=i?`before`:`after`;let a=rg(e,t);if(a===null)return`after`;let o=Array.prototype.indexOf.call(e.childNodes,a);return o>=0&&o<=i?`before`:`after`}getInsertionAnchor(){return this.before}};function rg(e,t){let n=t;for(;n!==null&&n.parentNode!==e;)n=n.parentNode;return n}var ig=class e extends ng{withBefore(t){return new e(this.element,t,this.after)}withAfter(t){return new e(this.element,this.before,t)}withElement(t){return this.element===t?this:new e(t,this.before,this.after)}getInsertionAnchor(){return super.getInsertionAnchor()||this.getManagedLineBreak()}getFirstChildAnchor(){let e=super.getFirstChildAnchor(),t=e?e.nextSibling:this.element.firstChild;for(;Yte(t);)e=t,t=t.nextSibling;let n=e?e.nextSibling:this.element.firstChild;return n!==null&&n===tg()?n:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(this.element.__lexicalLastChildKind=e,e===null)this.removeManagedLineBreak();else{let t=e===`decorator`&&(Kh||Vh||Uh);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){let e=this.getManagedLineBreak();if(e){let t=this.element,n=e.nodeName===`IMG`?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){let t=this.getManagedLineBreak();if(t){if(e===(t.nodeName===`IMG`))return;this.removeManagedLineBreak()}let n=this.element,r=this.before,i=ZS().createElement(`br`);if(i.setAttribute(`data-lexical-managed-linebreak`,`true`),n.insertBefore(i,r),e){let e=ZS().createElement(`img`);e.setAttribute(`data-lexical-managed-linebreak`,`true`),e.style.setProperty(`display`,`inline`,`important`),e.style.setProperty(`border`,`0px`,`important`),e.style.setProperty(`margin`,`0px`,`important`),e.alt=``,n.insertBefore(e,i),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=i}getFirstChildOffset(){let e=this.getFirstChild(),t=this.getInsertionAnchor(),n=0;for(let r=this.element.firstChild;r!==null&&r!==e&&r!==t;r=r.nextSibling)n++;return n}resolveChildIndex(e,t,n,r){if(n===this.element){let t=this.getFirstChildOffset(),n=tg(),i=this.element.childNodes,a=Math.min(r,i.length),o=0;for(let e=t;en){o+=1;break}}return[e.getParentOrThrow(),o]}};function ag(e,t){let n=[],r=t;for(;r!==e&&r!==null;r=r.parentNode){let e=0;for(let t=r.previousSibling;t!==null;t=t.previousSibling)e++;n.push(e)}return r!==e&&Ph(225),n.reverse()}var og;try{og=`0.49.0+prod.esm`}catch{}var sg=og??`"+source"`,cg=class{_front=new Set;_back=new Set;_cache;get size(){return this._front.size+this._back.size}addBack(e){return delete this._cache,this._front.has(e)||this._back.add(e),this}addFront(e){return delete this._cache,this._back.has(e)||this._front.add(e),this}delete(e){return delete this._cache,this._front.delete(e)||this._back.delete(e)}toArray(){let e=Array.from(this._front).reverse();for(let t of this._back)e.push(t);return e}toReadonlyArray(){return this._cache=this._cache||this.toArray(),this._cache}[Symbol.iterator](){return this.toReadonlyArray()[Symbol.iterator]()}},lg=null;function ug(e,t=1e3){return e instanceof dg?e.clone():e.sizethis._size}getNursery(){return this._mutable&&this._nursery||(this.compact(),this._nursery=new Map(this._nursery),this._mutable=!0),this._nursery}compact(e=!1){if(this._nursery&&this._nursery.size>0&&(e||this.shouldCompact())){let e=new Map(this._old);for(let[t,n]of this._nursery)n===lg?e.delete(t):e.set(t,n);this._old=e,this._nursery=void 0}return this._mutable=!1,this}set(e,t){let n=this.getWithTombstone(e);if(n===t)return this;let r=this.getNursery();return n!==lg&&n!==void 0||(this._size++,n===lg&&r.delete(e)),r.set(e,t),this}delete(e){let t=this.has(e);return t&&(this.getNursery().set(e,lg),this._size--),t}getOrInsert(e,t){let n=this.get(e);return n===void 0?(this.set(e,t),t):n}getOrInsertComputed(e,t){let n=this.get(e);if(n!==void 0)return n;let r=t(e);return this.set(e,r),r}clear(){this._mutable=!1,this._old=void 0,this._nursery=void 0,this._size=0}*keys(){for(let e of this.entries())yield e[0]}*values(){for(let e of this.entries())yield e[1]}*entries(){let e=this._nursery,t=this._old;if(t)for(let n of t){let t=n[0],r=e?e.get(t):void 0;r!==lg&&(r!==void 0&&(n[1]=r),yield n)}if(e)for(let n of e)n[1]===lg||t&&t.has(n[0])||(yield n)}forEach(e,t){t!==void 0&&(e=e.bind(t));for(let[t,n]of this.entries())e(n,t,this)}get[Symbol.toStringTag](){return`GenMap`}[Symbol.iterator](){return this.entries()}};function fg(e,t,n,r,i,a){if($(e)){let o=e.getFirstChild();for(;o!==null;){let e=o.__key;o.__parent===t&&(($(o)||NC(o)&&o.__slots!==null)&&fg(o,e,n,r,i,a),n.has(e)||a.delete(e),i.push(e)),o=o.getNextSibling()}}for(let o of NC(e)&&e.__slots!==null?e.__slots.values():[]){let e=r.get(o);e!==void 0&&PC(e)&&e.__slotHost===t&&(($(e)||NC(e)&&e.__slots!==null)&&fg(e,o,n,r,i,a),n.has(o)||a.delete(o),i.push(o))}}var pg=!1,mg=0;function Xte(e){mg=e.timeStamp}function hg(e,t,n){let r=e.nodeName===`BR`,i=t.__lexicalLineBreak;return i&&(e===i||r&&e.previousSibling===i)||r&&Qx(e,n)!==void 0}function Zte(e,t,n){let r=WS(NS(n)),i=r&&$S(r,n._rootElement),a=null,o=null;i!==null&&i.anchorNode===e&&(a=i.anchorOffset,o=i.focusOffset);let s=e.nodeValue;s!==null&&dS(t,s,a,o,!1)}function Qte(e,t,n){if(Q(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return zx(t)&&n.isAttached()}function $te(e,t,n){for(let r=e;r&&!xC(r);r=DS(r)){let e=Qx(r,t);if(e!==void 0){let t=Yx(e,n);if(t)return Xb(t)||!iC(r)?void 0:[r,t]}}}function gg(e,t,n){pg=!0;let r=performance.now()-mg>100;try{Kb(e,()=>{let i=ib()||function(e){return e.read(`latest`,()=>{let e=ib();return e===null?null:e.clone()})}(e),a=new Map,o=e._editorState,s=e._blockCursorElement,c=!1,l=``;for(let n=0;n0){let t=0;for(let i=0;i0)for(let[t,n]of a)n.reconcileObservedMutation(t,e);let u=n.takeRecords();if(u.length>0){for(let t=0;t{gg(e,t,n)})}var ene=`latest`,tne=class{key;parse;unparse;isEqual;defaultValue;resetOnCopyNode;constructor(e,t){this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||ine).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0),this.resetOnCopyNode=t.resetOnCopyNode||!1}};function yg(e,t){return new tne(e,t)}function bg(e,t,n=ene){let r=(n===`latest`?e.getLatest():e).__state;return r?r.getValue(t):t.defaultValue}function xg(e,t,n){let r;if(kb(),typeof n==`function`){let i=e.getLatest(),a=bg(i,t);if(r=n(a),t.isEqual(a,r))return i}else r=n;let i=e.getWritable();return Cg(i).updateFromKnown(t,r),i}function nne(e){let t=new Map,n=new Set;for(let{ownNodeConfig:r}of DC(typeof e==`function`?e:e.replace))if(r&&r.stateConfigs)for(let e of r.stateConfigs){let r;`stateConfig`in e?(r=e.stateConfig,e.flat&&n.add(r.key)):r=e,t.set(r.key,r)}return{flatKeys:n,sharedConfigMap:t}}var Sg=new Set([`__proto__`,`constructor`,`prototype`]),rne=class e{node;knownState;unknownState;sharedNodeState;size;constructor(e,t,n=void 0,r=new Map,i=void 0){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;let{sharedConfigMap:a}=this.sharedNodeState,o=i===void 0?function(e,t,n){let r=n.size;if(t)for(let i in t){let t=e.get(i);t&&n.has(t)||r++}return r}(a,n,r):i;this.size=o}getValue(e){let t=this.knownState.get(e);if(t!==void 0)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){let t=this.unknownState[e.key];t!==void 0&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){let e={...this.unknownState},t={};for(let[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(let n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return Tg(e)&&(t.$=e),t}getWritable(t){if(this.node===t)return this;let{sharedNodeState:n,unknownState:r}=this,i=new Map(this.knownState);return new e(t,n,function(e,t,n){let r;if(n)for(let[i,a]of Object.entries(n)){if(Sg.has(i))continue;let n=e.get(i);n?t.has(n)||t.set(n,n.parse(a)):(r||={},r[i]=a)}return r}(n.sharedConfigMap,i,r),i,this.size)}resetOnCopyNode(){for(let e of this.knownState.keys())e.resetOnCopyNode&&this.knownState.set(e,e.defaultValue);return this}updateFromKnown(e,t){let n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);let{knownState:r,unknownState:i}=this;r.has(e)||i&&n in i||(i&&(delete i[n],this.unknownState=Tg(i)),this.size++),r.set(e,t)}updateFromUnknown(e,t){if(Sg.has(e))return;let n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){let{knownState:t}=this;for(let e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(let[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}};function Cg(e){let t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new rne(t,wg(t));return t.__state=n,n}function wg(e){return e.__state?e.__state.sharedNodeState:Ox(uC(),e.getType()).sharedNodeState}function Tg(e){if(e)for(let t in e)return e}function ine(e){return e}function Eg(e,t,n){for(let[r,i]of t.knownState){if(e.has(r.key))continue;e.add(r.key);let t=n?n.getValue(r):r.defaultValue;if(t!==i&&!r.isEqual(t,i))return!0}return!1}function Dg(e,t,n){let{unknownState:r}=t,i=n?n.unknownState:void 0;if(r){for(let[t,n]of Object.entries(r))if(!e.has(t)&&(e.add(t),n!==(i?i[t]:void 0)))return!0}return!1}function Og(e,t){let n=e.__state;return n&&n.node===e?n.getWritable(t):n}function kg(e,t){let n=e.__mode,r=e.__format,i=e.__style,a=t.__mode,o=t.__format,s=t.__style,c=e.__state,l=t.__state;return(n===null||n===a)&&(r===null||r===o)&&(i===null||i===s)&&(e.__state===null||c===l||function(e,t){if(e===t)return!0;let n=new Set;return!(e&&Eg(n,e,t)||t&&Eg(n,t,e)||e&&Dg(n,e,t)||t&&Dg(n,t,e))}(c,l))}function Ag(e,t){let n=e.mergeWithSibling(t),r=Mb()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function jg(e){let t,n,r=e;if(r.__text!==``||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&Cy(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==``){if(kg(t,r)){r=Ag(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&Cy(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==``){if(kg(r,n)){r=Ag(r,n);break}break}n.remove()}}else r.remove()}function Mg(e){return Ng(e.anchor),Ng(e.focus),e}function Ng(e){for(;e.type===`element`;){let t=e.getNode(),n=e.offset,r,i;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),i=!0):(r=t.getChildAtIndex(n),i=!1),Cy(r)){e.set(r.__key,i?r.getTextContentSize():0,`text`,!0);break}if(!$(r))break;e.set(r.__key,i?r.getChildrenSize():0,`element`,!0)}}var Pg=Symbol.for(`@lexical/CachedTextSize`);function Fg(e,t){return Zg.read(()=>{let n=0,r=e;for(let e=0;e0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}e.style.setProperty(`padding-inline-start`,t===0?``:`calc(${t} * var(--lexical-indent-base-value, ${one}))`)}function l_(e,t){let n=e.style;t===0?s_(n,``):t===1?s_(n,`left`):t===2?s_(n,`center`):t===3?s_(n,`right`):t===4?s_(n,`justify`):t===5?s_(n,`start`):t===6&&s_(n,`end`)}function u_(e,t){let n=function(e){let t=e.__dir;if(t!==null)return t;if(Qb(e))return null;let n=e.getParent();return n===null||LS(n)&&n.__dir===null?`auto`:null}(t);n===null?e.removeAttribute(`dir`):e.dir=n}function d_(e){let t=ZS().createElement(`div`);return t.setAttribute(`data-lexical-slot`,e),t.style.display=`none`,t}function f_(e,t,n){t||e.contentEditable===`false`?Lne(n,Rg):n.removeAttribute(`contenteditable`)}function p_(e,t,n){let r=Bg,i=Wg();Bg=``;let a=``,o=Xb(e);for(let[r,i]of n){let n=d_(r);f_(t,o,n),t.appendChild(n),Bg=``;let s=Wg();v_(i,fC(e,n,Rg)),Gg(s),h_(e,r,t,n),a+=Bg}return Gg(i),Bg=r,a}function m_(e){return NC(e)&&e.__slots!==null?e.__slots:MC}function h_(e,t,n,r){let i=n_.$getSlotTargetElement(e,t,n,Rg);i!==null&&(r.parentElement!==i&&i.appendChild(r),r.style.display=``)}function g_(e){let t=$g.get(e);return t===void 0?null:t.parentElement}function __(e,t,n){let r=m_(e),i=m_(t);for(let[e,t]of r)if(!i.has(e)){let e=g_(t);a_(t,null),e!==null&&e.remove()}let a=Bg,o=Wg(),s=``,c=null,l=Xb(t);for(let[e,a]of i){let i=r.get(e),o=i===void 0?null:g_(i);Bg=``;let u=Wg();if(o===null){o=d_(e);let r=null;for(let e of n.children)if(!e.hasAttribute(`data-lexical-slot`)){r=e;break}n.insertBefore(o,r),v_(a,fC(t,o,Rg))}else i===a?S_(a,o):(i!==void 0&&a_(i,o),v_(a,fC(t,o,Rg)));if(Gg(u),f_(n,l,o),h_(t,e,n,o),s+=Bg,o.parentElement===n){let e=c===null?n.firstChild:c.nextSibling;e!==o&&n.insertBefore(o,e),c=o}}return Gg(o),Bg=a,s}function v_(e,t){let n=Qg.get(e);if(n===void 0&&Ph(60),t!==null){let r=Xg.get(e);if(r!==void 0){let i=$g.get(e);if(i!==void 0){let a=PC(r)?r.__slotHost:null,o=PC(n)?n.__slotHost:null,s=r.__parent!==n.__parent||a!==o,c=o!==null&&i.parentElement!==t.element;if(s||c)return t.insertChild(i),S_(e,t.element)}}}let r=n_.$createDOM(n,Rg);if(function(e,t,n){let r=n._keyToDOMMap;Zx(t,n,e),r.set(e,t)}(e,r,Rg),Cy(n)?r.setAttribute(`data-lexical-text`,`true`):Xb(n)&&(r.setAttribute(`data-lexical-decorator`,`true`),bC(r,{captureSelection:!0})),$(n)){let e=n.__indent,t=n.__size;u_(r,n),e!==0&&c_(r,e);let i=m_(n),a=i.size>0?p_(n,r,i):``;if(t===0)r.__lexicalTextContent=a,r.__lexicalFirstTextKey=null,Bg+=a,i.size>0&&(r.__lexicalSlotTextLength=a.length);else{let e=Bg,o=t-1;if(y_(AC(n,Qg),n,0,o,fC(n,r,Rg)),a!==``){let t=r.__lexicalTextContent||``;r.__lexicalTextContent=a+t,Bg=e+a+t}i.size>0&&(r.__lexicalSlotTextLength=a.length)}let o=n.__format;o!==0&&l_(r,o),n.isInline()||b_(null,n,r)}else{let t=n.getTextContent();if(Xb(n)){let t=n.decorate(Rg,Lg);t!==null&&C_(e,t),r.contentEditable=`false`;let i=m_(n);i.size>0&&p_(n,r,i)}Bg+=t}return t!==null&&t.insertChild(r),n_.$decorateDOM(n,null,r,Rg),Ig(n),xS(t_,zg,qg,n,`created`),r}function y_(e,t,n,r,i){let a=Bg,o=Wg();Bg=``,Vg=null,Hg=null,Ug=null;let s=n;for(;s<=r;++s){let t=Wg();v_(e[s],i);let n=Qg.get(e[s]);n!==null&&Cy(n)?Vg===null&&(Vg=n.getFormat(),Hg=n.getStyle(),Ug=n.__key):$(n)&&s0?null:`empty`}return null}(t,Qg);i!==a&&r.setManagedLineBreak(a)}function sne(e,t,n){var r;Vg=null,Hg=null,Ug=null,function(e,t,n){let r=Bg,i=e.__size,a=t.__size;Bg=``;let o=n.element,s=Rg._keyToDOMMap.get(t.__key);s===void 0&&Ph(351,t.__key);let c=a-i;if(!r_&&Math.abs(c)<=1&&i>=ane&&e.__first===t.__first&&(c!==0||!Rg._cloneNotNeeded.has(e.__key))){let i=s.__lexicalTextContent,l=e_.get(e.__key);if(!r_&&typeof i==`string`&&l!==void 0){let a=function(e,t){let n=t.size;if(n===0||n>=e.__size)return null;let r=e.__last,i=null,a=0;for(;r!==null&&a0?i.slice(f):i,m=p.slice(0,p.length-e)+d;s.__lexicalTextContent=m,Bg=r+m,x_(t,s,l);return}if(function(e,t,n,r,i,a,o,s){if(s!==1&&s!==-1||o!==(s===1?2:1))return!1;let c=o-s,l=e.__last;for(let e=0;e0?i.slice(S):i;return r.__lexicalTextContent=C.slice(0,C.length-b)+x,!0}(e,0,n,s,i,a,u,c)){let e=s.__lexicalTextContent;typeof e!=`string`&&Ph(353),Bg=r+e,x_(t,s,l);return}}}if(c===0){let t=e.__first,n=0;for(;t!==null;){let e=Qg.get(t);if(e===void 0)break;let r=r_||Yg.has(t)||Jg.has(t),i=Wg();if(r)S_(t,o);else{let n,r;if($(e)){r=$g.get(t);let i=r&&r.__lexicalTextContent;typeof i!=`string`&&Ph(354,e.getType()),n=i}else n=e.getTextContent();Bg+=n,r!==void 0&&Kg(r)}Cy(e)?Vg===null&&(Vg=e.getFormat(),Hg=e.getStyle(),Ug=e.__key):$(e)&&no,m=f>s;if(p&&!m){let t=n[s+1],r=t===void 0?null:Rg.getElementByKey(t);y_(n,e,f,s,a.withBefore(r??a.before))}else m&&!p&&o_(t,d,o,a.element)})(t,r,s,i,a,n)}s.__lexicalTextContent=Bg,s.__lexicalFirstTextKey=Ug,Bg=r+Bg}(e,t,fC(t,n,Rg)),LS(t)||(r=t,Vg==null||Vg===r.__textFormat||i_||r.setTextFormat(Vg),function(e){Hg==null||Hg===e.__textStyle||i_||e.setTextStyle(Hg)}(t))}function x_(e,t,n){let r=t.__lexicalFirstTextKey;if(r!=null){let t=e.__key,i=r;for(;i!==null;){let e=Qg.get(i);if(e===void 0){i=null;break}if(e.__parent===t)break;i=e.__parent}if(i!==null&&!n.has(i)){let e=Qg.get(r);if(Cy(e))return Vg=e.getFormat(),void(Hg=e.getStyle())}}t.__lexicalFirstTextKey=Ug}function S_(e,t){let n=Xg.get(e),r=Qg.get(e);n!==void 0&&r!==void 0||Ph(61);let i=r_||Yg.has(e)||Jg.has(e),a=ES(Rg,e);if(n===r&&!i){let e;if($(n)){let t=a.__lexicalTextContent;typeof t!=`string`&&Ph(355,n.getType()),e=t,Kg(a)}else e=n.getTextContent();return Bg+=e,a}if(n!==r&&i&&xS(t_,zg,qg,r,`updated`),n_.$updateDOM(r,n,a,Rg)){let n=v_(e,null);return t===null&&Ph(62),t.replaceChild(n,a),a_(e,null),n}if($(n)){$(r)||Ph(334,e);let t=r.__indent;(r_||t!==n.__indent)&&c_(a,t);let o=r.__format;(r_||o!==n.__format)&&l_(a,o);let s=i&&(m_(r).size>0||m_(n).size>0)?__(n,r,a):``;if(i){let e=Bg;if(sne(n,r,a),Qb(r)||r.isInline()||b_(0,r,a),s!==``){let t=a.__lexicalTextContent||``;a.__lexicalTextContent=s+t,Bg=e+s+t,a.__lexicalSlotTextLength=s.length}else(m_(r).size>0||m_(n).size>0)&&(a.__lexicalSlotTextLength=0)}else{let e=a.__lexicalTextContent;typeof e!=`string`&&Ph(356,n.getType()),Bg+=e,Kg(a)}if((r_||r.__dir!==n.__dir||r.__parent!==n.__parent)&&(u_(a,r),Qb(r)&&!r_))for(let e of r.getChildren())$(e)&&u_(ES(Rg,e.getKey()),e)}else{let t=r.getTextContent();if(Xb(r)){let t=r.decorate(Rg,Lg);t!==null&&C_(e,t),i&&(m_(r).size>0||m_(n).size>0)&&__(n,r,a)}Bg+=t}if(!i_&&Qb(r)){let e=r.getLatest();if(e.__cachedText!==Bg){let t=e.getWritable();t.__cachedText=Bg,r=t}}return n_.$decorateDOM(r,n,a,Rg),Ig(r),a}function C_(e,t){let n=Rg._pendingDecorators,r=Rg._decorators;if(n===null){if(r[e]===t)return;n=eS(Rg)}n[e]=t}function w_(e){let t=e.nextSibling;return t!==null&&t===Rg._blockCursorElement&&(t=t.nextSibling),t}function T_(e,t){let n=new Set;for(let r=t;r{for(let n of t){let t=Qg.get(n);if(t===void 0)continue;let r=t.__parent;if(r===null)continue;let i=e.get(r);i===void 0&&(i=new Set,e.set(r,i)),i.add(n)}};return t(Jg.keys()),t(Yg),e}();let o=new Map;return t_=o,S_(`root`,null),Rg=void 0,zg=void 0,Jg=void 0,Yg=void 0,Xg=void 0,Zg=void 0,Qg=void 0,Lg=void 0,$g=void 0,e_=void 0,t_=void 0,n_=yx,o}function D_(e){let t=$g.get(e);return t===void 0&&Ph(75,e),t}function O_(e){return{type:e}}var k_=O_(`SELECTION_CHANGE_COMMAND`),A_=O_(`SELECTION_INSERT_CLIPBOARD_NODES_COMMAND`),j_=O_(`CLICK_COMMAND`),M_=O_(`BEFORE_INPUT_COMMAND`),N_=O_(`INPUT_COMMAND`),P_=O_(`COMPOSITION_START_COMMAND`),F_=O_(`COMPOSITION_END_COMMAND`),I_=O_(`DELETE_CHARACTER_COMMAND`),L_=O_(`INSERT_LINE_BREAK_COMMAND`),R_=O_(`INSERT_PARAGRAPH_COMMAND`),z_=O_(`CONTROLLED_TEXT_INSERTION_COMMAND`),B_=O_(`PASTE_COMMAND`),V_=O_(`REMOVE_TEXT_COMMAND`),H_=O_(`DELETE_WORD_COMMAND`),U_=O_(`DELETE_LINE_COMMAND`),W_=O_(`FORMAT_TEXT_COMMAND`),G_=O_(`SET_TEXT_FORMAT_COMMAND`),K_=O_(`UNDO_COMMAND`),q_=O_(`REDO_COMMAND`),J_=O_(`KEYDOWN_COMMAND`),Y_=O_(`KEY_ARROW_RIGHT_COMMAND`),X_=O_(`MOVE_TO_END`),Z_=O_(`KEY_ARROW_LEFT_COMMAND`),Q_=O_(`MOVE_TO_START`),$_=O_(`KEY_ARROW_UP_COMMAND`),ev=O_(`KEY_ARROW_DOWN_COMMAND`),tv=O_(`KEY_ENTER_COMMAND`),nv=O_(`KEY_SPACE_COMMAND`),rv=O_(`KEY_BACKSPACE_COMMAND`),iv=O_(`KEY_ESCAPE_COMMAND`),av=O_(`KEY_DELETE_COMMAND`),ov=O_(`KEY_TAB_COMMAND`),sv=O_(`INSERT_TAB_COMMAND`),cv=O_(`INDENT_CONTENT_COMMAND`),lv=O_(`OUTDENT_CONTENT_COMMAND`),uv=O_(`DROP_COMMAND`),dv=O_(`FORMAT_ELEMENT_COMMAND`),fv=O_(`DRAGSTART_COMMAND`),pv=O_(`DRAGOVER_COMMAND`),mv=O_(`DRAGEND_COMMAND`),hv=O_(`COPY_COMMAND`),gv=O_(`CUT_COMMAND`),_v=O_(`SELECT_ALL_COMMAND`),vv=O_(`CLEAR_EDITOR_COMMAND`),yv=O_(`CLEAR_HISTORY_COMMAND`),bv=O_(`CAN_REDO_COMMAND`),xv=O_(`CAN_UNDO_COMMAND`),Sv=O_(`FOCUS_COMMAND`),Cv=O_(`BLUR_COMMAND`),wv=O_(`KEY_MODIFIER_COMMAND`);function Tv(e){let t=new Map;return{dispose(){for(let e of t.values())e.dispose();t.clear()},register(n,r){let i=t.get(n);i===void 0&&(i={dispose:e(n,r),holders:new Set},t.set(n,i));let a=()=>{let e=t.get(n);e&&e.holders.delete(a)&&e.holders.size===0&&(t.delete(n),e.dispose())};return i.holders.add(a),a}}}function Ev(e,t,n,r){return e.addEventListener(t,n,r),e.removeEventListener.bind(e,t,n,r)}var Dv=Object.freeze({}),Ov=[[`keydown`,function(e,t){let n=t._inputState;n.lastKeyDownTimeStamp=e.timeStamp,n.lastKeyCode=e.key,e.key!==`Backspace`&&zv(n),!t.isComposing()&&TS(t,J_,e)}],[`pointerdown`,function(e,t){let n=nC(e),r=e.pointerType;aC(n)&&r!==`touch`&&r!==`pen`&&e.button===0&&Kb(t,()=>{SC(n,t)||(t._inputState.isSelectionChangeFromMouseDown=!0)})}],[`compositionstart`,function(e,t){TS(t,P_,e)}],[`compositionend`,function(e,t){let n=t._inputState;zh?n.compositionPhase=`ending-firefox`:Vh||!Uh&&!Kh?TS(t,F_,e):(n.compositionPhase=`ending-safari`,n.compositionEndData=e.data)}],[`input`,function(e,t){e.stopPropagation();let n=t._inputState;zv(n),Kb(t,()=>{Vv(e,t)||t.dispatchCommand(N_,e)},{event:e}),n.unprocessedBeforeInputData=null}],[`click`,function(e,t){Kb(t,()=>{let n=ib(),r=WS(NS(t)),i=ab();if(r){if(Q(n)){let e=n.anchor,t=e.getNode();e.type===`element`&&e.offset===0&&n.isCollapsed()&&!Qb(t)&&nS().getChildrenSize()===1&&t.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i)&&(r.removeAllRanges(),n.dirty=!0)}else if(e.pointerType===`touch`||e.pointerType===`pen`){let n=$S(r,t._rootElement).anchorNode;(iC(n)||zx(n))&&rS(rb(i,r,t,e))}}if(zh&&r!==null&&r.rangeCount===0){let n=t._rootElement;if(n!==null&&e.target===n){let a=e.clientY,o=n.childNodes.length;for(let e=0;efunction(e,t){let n=e.inputType;n===`deleteCompositionText`||zh&&wS(t)||n!==`insertCompositionText`&&Kb(t,()=>{Vv(e,t)||TS(t,M_,e)},{event:e})}(e,t)]);var kv=new WeakMap,Av=new WeakMap,jv=Tv(e=>(e.addEventListener(`selectionchange`,Zv),()=>e.removeEventListener(`selectionchange`,Zv)));function Mv(e,t,n,r,i,a){let o=e.anchor,s=e.focus,c=o.getNode(),l=Mb(),u;if(a!==void 0)u=a;else{let e=WS(NS(l));u=e===null?null:$S(e,l._rootElement)}let d=u===null?null:u.anchorNode,f=o.key,p=l.getElementByKey(f),m=n.length;return f!==s.key||!Cy(c)||(!i&&(!Bh||l._inputState.lastBeforeInputInsertTextTimeStamp1||(i||!Bh)&&p!==null&&!c.isComposing()&&d!==pC(c,p,l)||u!==null&&t!==null&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||!c.isComposing()&&(c.getFormat()!==e.format||c.getStyle()!==e.style)||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let n=e.anchor.offset,r=t.getParentOrThrow(),i=Lx(t);return n===0?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||i||function(e){let t=e.getPreviousSibling();return(Cy(t)||$(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||i)}(e,c)}function Nv(e,t){return zx(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function Pv(e,t,n){let{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:o}=$S(e,t._rootElement),s=t._inputState;s.isSelectionChangeFromDOMUpdate&&(s.isSelectionChangeFromDOMUpdate=!1,Nv(r,i)&&Nv(a,o)&&!s.postDeleteSelectionToRestore)||Kb(t,()=>{if(!n)return void rS(null);if(!Mx(t,r,a))return;let c=ib();if(s.postDeleteSelectionToRestore&&Q(c)&&c.isCollapsed()){let e=c.anchor,t=s.postDeleteSelectionToRestore.anchor;(e.key===t.key&&e.offset===t.offset+1||e.offset===1&&t.getNode().is(e.getNode().getPreviousSibling()))&&(c=s.postDeleteSelectionToRestore.clone(),rS(c))}if(s.postDeleteSelectionToRestore=null,Q(c)){let n=c.anchor,l=n.getNode();if(c.isCollapsed()){e.type===`Range`&&r===a&&(c.dirty=!0);let i=NS(t).event,o=i?i.timeStamp:performance.now(),{format:u,style:d,offset:f,key:p,timeStamp:m}=s.collapsedSelectionFormat,h=nS(),g=!1===t.isComposing()&&h.getTextContent()===``;if(ozv(e),0)}function Vv(e,t){let n=nC(e);if(iC(n)&&SC(n,t))return!0;let r=t.getRootElement();if(r===null)return!1;let i=tC(r.ownerDocument);return i!==null&&r.contains(i)&&SC(i,t)}function Hv(e){let t=e.inputType,n=Lv(e),r=Mb(),i=r._inputState,a=ib();if(t===`insertText`&&e.data&&i.isInsertTextAfterHandledSelectionCommand){if(zv(i),e.preventDefault(),Q(a)&&!a.isCollapsed()){let e=a.isBackward()?a.anchor:a.focus;a.anchor.set(e.key,e.offset,e.type),a.focus.set(e.key,e.offset,e.type)}return!0}if(t===`deleteContentBackward`){if(a===null){let e=ab();if(!Q(e))return!0;rS(e.clone())}if(Q(a)){let t=a.anchor.key===a.focus.key;if(function(e,t){return e.lastKeyCode===`MediaLast`&&t{Kb(r,()=>{qx(null)})},30),Q(a)){let e=a.anchor.getNode();e.markDirty(),Cy(e)||Ph(142),Iv(a,e)}}else{if(qx(null),Vh&&n!==null&&!n.collapsed&&(a.applyDOMRange(n),!a.isCollapsed()))return e.preventDefault(),a.removeText(),!0;e.preventDefault();let o=a.anchor.getNode(),s=o.getTextContent(),c=o.canInsertTextAfter(),l=a.anchor.offset===0&&a.focus.offset===s.length,u=Gh&&t&&!l&&c;if(u&&a.isCollapsed()&&(u=!Xb(CS(a.anchor,!0))),!u){TS(r,I_,!0);let e=ib();Gh&&Q(e)&&e.isCollapsed()&&(i.postDeleteSelectionToRestore=e,setTimeout(()=>i.postDeleteSelectionToRestore=null))}}return!0}}if(!Q(a))return!0;let o=e.data;i.unprocessedBeforeInputData!==null&&uS(!1,r,i.unprocessedBeforeInputData),a.dirty&&i.unprocessedBeforeInputData===null||!a.isCollapsed()||Qb(a.anchor.getNode())||n===null||a.applyDOMRange(n),i.unprocessedBeforeInputData=null;let s=a.anchor,c=a.focus,l=s.getNode(),u=c.getNode();if(t===`insertText`||t===`insertTranspose`){if(o===` +`)e.preventDefault(),TS(r,L_,!1);else if(o===Jh)e.preventDefault(),TS(r,R_);else if(o==null&&e.dataTransfer){let t=e.dataTransfer.getData(`text/plain`);e.preventDefault(),a.insertRawText(t)}else o!=null&&Mv(a,n,o,e.timeStamp,!0)?(e.preventDefault(),TS(r,z_,o),Rv(o)):i.unprocessedBeforeInputData=o;return i.lastBeforeInputInsertTextTimeStamp=e.timeStamp,!0}switch(e.preventDefault(),t){case`insertFromYank`:case`insertFromDrop`:case`insertReplacementText`:TS(r,z_,e),Rv((e.dataTransfer?e.dataTransfer.getData(`text/plain`):null)??e.data);break;case`insertFromComposition`:{let t=i.hadOrphanedCompositionEvents;i.hadOrphanedCompositionEvents=!1;let n=r._compositionKey;qx(null),t||TS(r,z_,e),Kv(n);break}case`insertLineBreak`:qx(null),TS(r,L_,!1);break;case`insertParagraph`:qx(null),i.isInsertLineBreak&&!Vh?(i.isInsertLineBreak=!1,TS(r,L_,!1)):TS(r,R_);break;case`insertFromPaste`:case`insertFromPasteAsQuotation`:TS(r,B_,e);break;case`deleteByComposition`:(function(e,t){return e!==t||$(e)||$(t)||!Lx(e)||!Lx(t)})(l,u)&&TS(r,V_,e);break;case`deleteByDrag`:kS(une),TS(r,V_,e);break;case`deleteByCut`:TS(r,V_,e);break;case`deleteContent`:TS(r,I_,!1);break;case`deleteWordBackward`:TS(r,H_,!0);break;case`deleteWordForward`:TS(r,H_,!1);break;case`deleteHardLineBackward`:case`deleteSoftLineBackward`:TS(r,U_,!0);break;case`deleteContentForward`:case`deleteHardLineForward`:case`deleteSoftLineForward`:TS(r,U_,!1);break;case`formatStrikeThrough`:TS(r,W_,`strikethrough`);break;case`formatBold`:TS(r,W_,`bold`);break;case`formatItalic`:TS(r,W_,`italic`);break;case`formatUnderline`:TS(r,W_,`underline`);break;case`historyUndo`:TS(r,K_);break;case`historyRedo`:TS(r,q_)}return!0}function Uv(e){let t=Mb(),n=t._inputState,r=ib(),i=e.data,a=Lv(e),o=!1;if(i!=null&&Q(r)){let s=WS(NS(t)),c=s===null?null:$S(s,t._rootElement),l=e.inputType===`insertCompositionText`&&n.compositionPhase!==`ending-firefox`&&!t.isComposing();l&&(n.hadOrphanedCompositionEvents=!0);let u=r.anchor.getNode(),d=e.inputType===`insertCompositionText`&&n.compositionPhase!==`ending-firefox`&&t.isComposing()&&Cy(u)&&Rx(u);if(!l&&!d&&Mv(r,a,i,e.timeStamp,!1,c)){if(o=!0,n.compositionPhase===`ending-firefox`){let e=qv(t,i);if(n.compositionPhase=`idle`,e)return kS(cy),iS(),!0}let a=r.anchor.getNode();if(s===null||c===null)return!0;let l=r.isBackward(),u=l?r.anchor.offset:r.focus.offset,d=l?r.focus.offset:r.anchor.offset;Bh&&!r.isCollapsed()&&Cy(a)&&c.anchorNode!==null&&a.getTextContent().slice(0,u)+i+a.getTextContent().slice(u+d)===lS(c.anchorNode)||TS(t,z_,i);let f=i.length;zh&&f>1&&e.inputType===`insertCompositionText`&&!t.isComposing()&&(r.anchor.offset-=f,r._cachedNodes=null,r._cachedIsBackward=null),Gh&&t.isComposing()&&(n.lastKeyDownTimeStamp=0,qx(null))}}return o||(uS(!1,t,i===null?void 0:i),n.compositionPhase===`ending-firefox`&&(qv(t,i||void 0),kS(`composition-end`),n.compositionPhase=`idle`)),iS(),!0}function Wv(e){let t=Mb(),n=t._inputState,r=ib();if(Q(r)&&!t.isComposing()){n.compositionPhase=`composing`,n.hadOrphanedCompositionEvents=!1;let i=r.anchor,a=r.anchor.getNode();if(qx(i.key),kS(`composition-start`),e.timeStamp{qv(t,n.compositionEndData)}),n.compositionPhase=`idle`,n.compositionEndData=``,r)return!0}if(function(e){return hS(e,`ArrowRight`,{shiftKey:`any`})}(e))TS(t,Y_,e);else if(function(e){return hS(e,`ArrowRight`,{...gS,shiftKey:`any`})}(e))TS(t,X_,e);else if(function(e){return hS(e,`ArrowLeft`,{shiftKey:`any`})}(e))TS(t,Z_,e);else if(function(e){return hS(e,`ArrowLeft`,{...gS,shiftKey:`any`})}(e))TS(t,Q_,e);else if(function(e){return hS(e,`ArrowUp`,{altKey:`any`,shiftKey:`any`})}(e))TS(t,$_,e);else if(function(e){return hS(e,`ArrowDown`,{altKey:`any`,shiftKey:`any`})}(e))TS(t,ev,e);else if(function(e){return hS(e,`Enter`,{altKey:`any`,ctrlKey:`any`,metaKey:`any`,shiftKey:!0})}(e))n.isInsertLineBreak=!0,TS(t,tv,e);else if(function(e){return e.key===` `}(e))TS(t,nv,e);else if(function(e){return Rh&&hS(e,`o`,{ctrlKey:!0})}(e))e.preventDefault(),n.isInsertLineBreak=!0,TS(t,L_,!0);else if(function(e){return hS(e,`Enter`,{altKey:`any`,ctrlKey:`any`,metaKey:`any`})}(e))n.isInsertLineBreak=!1,TS(t,tv,e);else if(function(e){return hS(e,`Backspace`,{shiftKey:`any`})||Rh&&hS(e,`h`,{ctrlKey:!0})}(e))vS(e)?TS(t,rv,e)&&Bv(n):(e.preventDefault(),TS(t,I_,!0));else if(function(e){return e.key===`Escape`}(e))TS(t,iv,e);else if(function(e){return hS(e,`Delete`,{})||Rh&&hS(e,`d`,{ctrlKey:!0})}(e))(function(e){return e.key===`Delete`})(e)?TS(t,av,e):(e.preventDefault(),TS(t,I_,!1));else if(function(e){return hS(e,`Backspace`,_S)}(e))e.preventDefault(),TS(t,H_,!0);else if(function(e){return hS(e,`Delete`,_S)}(e))e.preventDefault(),TS(t,H_,!1);else if(function(e){return Rh&&hS(e,`Backspace`,{metaKey:!0})}(e))e.preventDefault(),TS(t,U_,!0);else if(function(e){return Rh&&(hS(e,`Delete`,{metaKey:!0})||hS(e,`k`,{ctrlKey:!0}))}(e))e.preventDefault(),TS(t,U_,!1);else if(function(e){return hS(e,`b`,gS)}(e))e.preventDefault(),TS(t,W_,`bold`);else if(function(e){return hS(e,`u`,gS)}(e))e.preventDefault(),TS(t,W_,`underline`);else if(function(e){return hS(e,`i`,gS)}(e))e.preventDefault(),TS(t,W_,`italic`);else if(function(e){return hS(e,`Tab`,{shiftKey:`any`})}(e))TS(t,ov,e);else if(function(e){return hS(e,`z`,gS)}(e))e.preventDefault(),TS(t,K_);else if(function(e){return Rh?hS(e,`z`,{metaKey:!0,shiftKey:!0}):hS(e,`y`,{ctrlKey:!0})||hS(e,`z`,{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),TS(t,q_);else{let r=t._editorState._selection;(function(e){return hS(e,`a`,gS)})(e)?(e.preventDefault(),TS(t,_v,e)&&Bv(n)):r===null||Q(r)||(function(e){return hS(e,`c`,gS)}(e)?(e.preventDefault(),TS(t,hv,e)):function(e){return hS(e,`x`,gS)}(e)&&(e.preventDefault(),TS(t,gv,e)))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(wv,e),!0}function Yv(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}var Xv=new Map;function Zv(e){let t=GS(e.target);if(t===null)return;let n=OS(e.target),r=null,i=null,a=n===null?void 0:Av.get(n);if(n!==null){if(a!==void 0){let e=a.editors,n=a.hasShadowEditor;if(n===void 0){n=!1;for(let t of e)if(t._rootElement!==null&&KS(t._rootElement.getRootNode())){n=!0;break}a.hasShadowEditor=n}if(n){let n=null,a=null;for(let o of e){let e=o._rootElement;if(e===null)continue;let s=$S(t,e).anchorNode;if(s!==null&&Px(s)===o){if(KS(e.getRootNode())){r=o,i=s;break}n===null&&(n=o,a=s)}}r===null&&n!==null&&(r=n,i=a)}else{let e=t.anchorNode;e===null||iC(e)&&e.shadowRoot!==null||(r=Px(e),r!==null&&(i=e))}}if(r===null){let e=tC(n);r=e===null?null:Px(e)}}if(r===null)return;if(r._inputState.isSelectionChangeFromMouseDown){if(a!==void 0)for(let e of a.editors)e._inputState.isSelectionChangeFromMouseDown=!1;Kb(r,()=>{let n=ab(),a=i??$S(t,r._rootElement).anchorNode;(iC(a)||zx(a))&&rS(rb(n,t,r,e))})}let o=sS(r),s=o[o.length-1],c=s._key,l=Xv.get(c),u=l||s;u!==r&&Pv(t,u,!1),Pv(t,r,!0),r===s?l&&Xv.delete(c):Xv.set(c,r)}function Qv(e){e._lexicalHandled=!0}function $v(e){return!0===e._lexicalHandled}function cne(e){let t=kv.get(e);if(t===void 0)return;let n=Av.get(t);if(n===void 0)return;kv.delete(e);let r=Fx(e);Nx(r)?(function(e){if(e._parentEditor!==null){let t=sS(e),n=t[t.length-1]._key;Xv.get(n)===e&&Xv.delete(n)}else Xv.delete(e._key)}(r),n.editors.delete(r),n.hasShadowEditor=void 0,e.__lexicalEditor=null):r&&Ph(198);let i=Yv(e);for(let e=0;ee.__key===this.__key);if(Cy(this))return n;if(Q(t)&&t.anchor.type===`element`&&t.focus.type===`element`){if(t.isCollapsed())return!1;let e=this.getParent();if(Xb(this)&&this.isInline()&&e){let n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();if(e===null)return-1;let t=e.getFirstChild(),n=0;for(;t!==null;){if(this.is(t))return n;n++,t=t.getNextSibling()}return-1}getParent(){let e=this.getLatest().__parent;return e===null?null:Yx(e)}getParentOrThrow(){let e=this.getParent();return e===null&&Ph(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){let t=e.getParent();if(LS(t)||FC(e)!==null)return $(e)||e===this&&Xb(e)||Ph(194),e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return e===null&&Ph(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;t!==null;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;t!==null;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return e===null?null:Yx(e)}getPreviousSiblings(){let e=[],t=this.getParent();if(t===null)return e;let n=t.getFirstChild();for(;n!==null&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return e===null?null:Yx(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=$(this)?this:this.getParent(),n=$(e)?e:e.getParent(),r=t&&n?_w(t,n):null;return r?r.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){let t=_w(this,e);return t!==null&&(t.type===`descendant`||(t.type===`branch`?mw(t)===-1:(t.type!==`same`&&t.type!==`ancestor`&&Ph(279),!1)))}isParentOf(e){return jS(e,this)}getNodesBetween(e){let t=this.isBefore(e),n=[],r=new Set,i=this;for(;i!==null;){let a=i.__key;if(r.has(a)||(r.add(a),n.push(i)),i===e)break;let o=$(i)?t?i.getFirstChild():i.getLastChild():null;if(o!==null){i=o;continue}let s=t?i.getNextSibling():i.getPreviousSibling();if(s!==null){i=s;continue}let c=i.getParentOrThrow();if(r.has(c.__key)||n.push(c),c===e)break;let l=null,u=c;do{if(u===null&&Ph(68),l=t?u.getNextSibling():u.getPreviousSibling(),u=u.getParent(),u===null)break;l!==null||r.has(u.__key)||n.push(u)}while(l===null);i=l}return t||n.reverse(),n}isDirty(){let e=Mb()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(ry(this))return this;let e=Yx(this.__key);return e===null&&Ph(113),e}getWritable(){if(ry(this))return this;kb();let e=jb(),t=Mb(),n=e._nodeMap,r=this.__key,i=this.getLatest(),a=t._cloneNotNeeded,o=ib();if(o!==null&&o.setCachedNodes(null),a.has(r))return Kx(i),i;let s=gC(i);return a.add(r),Kx(s),n.set(r,s),s}getTextContent(){return WC(this)}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){Ph(70)}updateDOM(e,t,n){Ph(71)}getDOMSlot(e){return new ng(e)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){let e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){Ph(18,this.name)}updateFromJSON(e){return function(e,t){let n=e.getWritable(),r=t.$,i=r;for(let e of wg(n).flatKeys)e in t&&(i!==void 0&&i!==r||(i={...r}),i[e]=t[e]);return(n.__state||i)&&Cg(e).updateFromJSON(i),n}(this,e)}static transform(){return null}remove(e){ey(this,!0,e)}replace(e,t){kb();let n=ib();n!==null&&(n=n.clone()),BS(this,e);let r=this.getLatest(),i=this.__key,a=e.__key,o=e.getWritable(),s=this.getParentOrThrow().getWritable(),c=s.__size,l=o.getParent(),u=l===null?-1:o.getIndexWithinParent();Gx(o),l!==null&&Q(n)&&ob(n,l,u,-1);let d=r.getPreviousSibling(),f=r.getNextSibling(),p=r.__prev,m=r.__next,h=r.__parent;ey(r,!1,!0),d===null?s.__first=a:d.getWritable().__next=a,o.__prev=p,f===null?s.__last=a:f.getWritable().__prev=a,o.__next=m,o.__parent=h,s.__size=c;let g=0;t&&($(this)&&$(o)||Ph(139),g=o.getChildrenSize(),o.splice(g,0,this.getChildren()));let _=zC(this);if(_.length>0){NC(this)&&NC(o)||Ph(368,this.__key,o.__key);for(let e of _){let t=BC(this,e);t!==null&&(Une(this,e),KC(o,e,t))}}if(Q(n)){rS(n);let e=n.anchor,r=n.focus;e.key===i&&(t&&e.type===`element`?e.set(o.__key,g+e.offset,`element`):Ay(e,o)),r.key===i&&(t&&r.type===`element`?r.set(o.__key,g+r.offset,`element`):Ay(r,o))}return Jx()===i&&qx(a),o}insertAfter(e,t=!0){kb(),BS(this,e);let n=this.getWritable(),r=e.getWritable();this.getParentOrThrow();let i=r.getParent(),a=ib(),o=!1,s=!1;if(i!==null){let n=e.getIndexWithinParent();if(Q(a)){let e=i.__key,t=a.anchor,r=a.focus;o=t.type===`element`&&t.key===e&&t.offset===n+1,s=r.type===`element`&&r.key===e&&r.offset===n+1}Gx(r),t&&Q(a)&&ob(a,i,n,-1)}else Gx(r);let c=this.getNextSibling(),l=this.getParentOrThrow().getWritable(),u=r.__key,d=n.__next;if(c===null?l.__last=u:c.getWritable().__prev=u,l.__size++,n.__next=u,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&Q(a)){let e=this.getIndexWithinParent();ob(a,l,e+1);let t=l.__key;o&&a.anchor.set(t,e+2,`element`),s&&a.focus.set(t,e+2,`element`)}return e}insertBefore(e,t=!0){kb(),BS(this,e);let n=this.getWritable(),r=e.getWritable();this.getParentOrThrow();let i=r.__key,a=ib(),o=r.getParent(),s=o===null?-1:r.getIndexWithinParent();Gx(r),o!==null&&t&&Q(a)&&ob(a,o,s,-1);let c=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),u=n.__prev,d=this.getIndexWithinParent();return c===null?l.__first=i:c.getWritable().__next=i,l.__size++,n.__prev=i,r.__prev=u,r.__next=n.__key,r.__parent=n.__parent,t&&Q(a)&&ob(a,this.getParentOrThrow(),d),e}isParentRequired(){return!1}createParentElementNode(){return mx()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){kb();let n=IC(this);if(n!==null)return n.selectPrevious(e,t);let r=this.getPreviousSibling(),i=this.getParentOrThrow();if(r===null)return i.select(0,0);if($(r))return r.select();if(!Cy(r)){let e=r.getIndexWithinParent()+1;return i.select(e,e)}return r.select(e,t)}selectNext(e,t){kb();let n=IC(this);if(n!==null)return n.selectNext(e,t);let r=this.getNextSibling(),i=this.getParentOrThrow();if(r===null)return i.select();if($(r))return r.select(0,0);if(!Cy(r)){let e=r.getIndexWithinParent();return i.select(e,e)}return r.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}};function oy(e){return e instanceof ay}var lne=`history-push`,sy=`history-merge`,une=`skip-selection-focus`,cy=`composition-end`,dne=`!important`;function ly(e){let t={};if(!e)return t;let n=``,r=``,i=null,a=!1,o=!1,s=!1,c=0,l=e.length,u=-1;for(let d=0;d=0&&r.slice(i).toLowerCase()===dne?e.setProperty(t,r.slice(0,i).trim(),`important`):e.setProperty(t,n,``)}function uy(e,t,n=``){if(t===n)return;let r=ly(n),i=ly(t);for(let t in i)delete r[t],fne(e,t,i[t]);for(let t in r)e.removeProperty(t)}function dy(e,t){return 16&t?`code`:t&128?`mark`:32&t?`sub`:64&t?`sup`:null}function fy(e,t){return 1&t?`strong`:2&t?`em`:`span`}function py(e,t,n,r,i){let a=r.classList,o=bS(i,`base`);o!==void 0&&a.add(...o),o=bS(i,`underlineStrikethrough`);let s=!1,c=8&t&&4&t;o!==void 0&&(8&n&&4&n?(s=!0,c||a.add(...o)):c&&a.remove(...o));for(let e in Qh){let r=Qh[e];if(o=bS(i,e),o!==void 0){if(n&r){if(s&&(e===`underline`||e===`strikethrough`)){t&r&&a.remove(...o);continue}((t&r)===0||c&&e===`underline`||e===`strikethrough`)&&a.add(...o)}else t&r&&a.remove(...o)}}}function my(e,t,n){let r=n.isComposing(),i=e+(r?qh:``),a=uC(),o=dC(a).$getDOMSlot(n,t,a),s=o.getFirstChild();if(s===null||s.nodeType!==Node.TEXT_NODE)return void o.insertChild(ZS().createTextNode(i));let c=s,l=c.nodeValue;if(l!==i){if(r||zh){let[e,t,n]=function(e,t){let n=e.length,r=t.length,i=0,a=0;for(;i({conversion:gne,priority:0}),b:()=>({conversion:mne,priority:0}),code:()=>({conversion:xy,priority:0}),em:()=>({conversion:xy,priority:0}),i:()=>({conversion:xy,priority:0}),mark:()=>({conversion:xy,priority:0}),s:()=>({conversion:xy,priority:0}),span:()=>({conversion:pne,priority:0}),strong:()=>({conversion:xy,priority:0}),sub:()=>({conversion:xy,priority:0}),sup:()=>({conversion:xy,priority:0}),u:()=>({conversion:xy,priority:0})}})}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e=``,t){super(t),this.__text=e,this.__format=0,this.__style=``,this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){return Jte[this.getLatest().__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===Jx()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){let t=Qh[e];return(this.getFormat()&t)!==0}isSimpleText(){return this.__type===`text`&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return Hx(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){let n=this.__format,r=dy(0,n),i=fy(0,n),a=r===null?i:r,o=ZS().createElement(a),s=o;this.hasFormat(`code`)&&o.setAttribute(`spellcheck`,`false`),r!==null&&(s=ZS().createElement(i),o.appendChild(s)),hy(s,this,0,n,this.__text,e);let c=this.__style;return c!==``&&uy(o.style,c),o}updateDOM(e,t,n){let r=this.__text,i=e.__format,a=this.__format,o=dy(0,i),s=dy(0,a),c=fy(0,i),l=fy(0,a);if((o===null?c:o)!==(s===null?l:s))return!0;if(o===s&&c!==l){let e=t.firstChild;e??Ph(48);let i=ZS().createElement(l);return hy(i,this,0,a,r,n),t.replaceChild(i,e),!1}let u=t;s!==null&&o!==null&&(u=t.firstChild,u??Ph(49)),my(r,u,this);let d=n.theme.text;d!==void 0&&i!==a&&py(0,i,a,u,d);let f=e.__style,p=this.__style;return f!==p&&uy(t.style,p,f),!1}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:t}=super.exportDOM(e);return iC(t)||Ph(132),t.style.whiteSpace=`pre-wrap`,this.hasFormat(`lowercase`)?t.style.textTransform=`lowercase`:this.hasFormat(`uppercase`)?t.style.textTransform=`uppercase`:this.hasFormat(`capitalize`)&&(t.style.textTransform=`capitalize`),this.hasFormat(`bold`)&&(t=gy(t,`b`)),this.hasFormat(`italic`)&&(t=gy(t,`i`)),this.hasFormat(`strikethrough`)&&(t=gy(t,`s`)),this.hasFormat(`underline`)&&(t=gy(t,`u`)),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){let t=this.getWritable();return t.__format=typeof e==`string`?Qh[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail=typeof e==`string`?Gte[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=Hx(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){let t=qte[e];if(this.__mode===t)return this;let n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){kb();let n=e,r=t,i=ib(),a=this.getTextContent(),o=this.__key;if(typeof a==`string`){let e=a.length;n===void 0&&(n=e),r===void 0&&(r=e)}else n=0,r=0;if(!Q(i))return eb(o,n,o,r,`text`,`text`);{let e=Jx();e!==i.anchor.key&&e!==i.focus.key||qx(o),i.setTextNodeRange(this,n,this,r)}return i}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){let i=this.getWritable(),a=i.__text,o=n.length,s=e;s<0&&(s=o+s,s<0&&(s=0));let c=ib();if(r&&Q(c)){let t=e+o;c.setTextNodeRange(i,t,i,t)}return i.__text=a.slice(0,s)+n+a.slice(s+t),i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){kb();let t=this.getLatest(),n=t.getTextContent();if(n===``)return[];let r=t.__key,i=Jx(),a=n.length;e.sort((e,t)=>e-t),e.push(a);let o=[],s=e.length;for(let t=0,r=0;tt&&(o.push(n.slice(t,i)),t=i)}let c=o.length;if(c===1)return[t];let l=o[0],u=t.getParent(),d,f=t.getFormat(),p=t.getStyle(),m=t.__detail,h=!1,g=null,_=null,v=ib();if(Q(v)){let[e,t]=v.isBackward()?[v.focus,v.anchor]:[v.anchor,v.focus];e.type===`text`&&e.key===r&&(g=e),t.type===`text`&&t.key===r&&(_=t)}t.isSegmented()?(d=Sy(l),d.__format=f,d.__style=p,d.__detail=m,d.__state=Og(t,d),h=!0):d=t.setTextContent(l);let y=[d];for(let e=1;e=S&&(g.set(e.getKey(),b-S,`text`),b=S){_.set(e.getKey(),x-S,`text`);break}S=t}if(u!==null){(function(e){let t=e.getPreviousSibling(),n=e.getNextSibling();t!==null&&Kx(t),n!==null&&Kx(n)})(this);let e=u.getWritable(),t=this.getIndexWithinParent();h?(e.splice(t,0,y),this.remove()):e.splice(t,1,y),Q(v)&&ob(v,u,t,c-1)}return y}mergeWithSibling(e){let t=e===this.getPreviousSibling();t||e===this.getNextSibling()||Ph(50);let n=this.__key,r=e.__key,i=this.__text,a=i.length;Jx()===r&&qx(n);let o=ib();if(Q(o)){let i=o.anchor,s=o.focus;i!==null&&i.key===r&&lb(i,t,n,e,a),s!==null&&s.key===r&&lb(s,t,n,e,a)}let s=e.__text,c=t?s+i:i+s;this.setTextContent(c);let l=this.getWritable();return e.remove(),l}isTextEntity(){return!1}};function pne(e){return{forChild:wy(e.style),node:null}}function mne(e){let t=e,n=t.style.fontWeight===`normal`;return{forChild:wy(t.style,n?void 0:`bold`),node:null}}var yy=new WeakMap;function hne(e){if(!iC(e))return!1;if(e.nodeName===`PRE`)return!0;let t=e.style.whiteSpace;return typeof t==`string`&&t.startsWith(`pre`)}function gne(e){let t=e;e.parentElement===null&&Ph(129);let n=t.textContent||``;if(function(e){let t,n=e.parentNode,r=[e];for(;n!==null&&(t=yy.get(n))===void 0&&!hne(n);)r.push(n),n=n.parentNode;let i=t===void 0?n:t;for(let e=0;e0){/[ \t\n]$/.test(t)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(n[n.length-1]===` `){let e=t,r=!0;for(;e!==null&&(e=by(e,!0))!==null;)if((e.textContent||``).replace(/^( |\t|\r?\n)+/,``).length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return n===``?{node:null}:{node:Sy(n)}}function by(e,t){let n=e;for(;;){let e;for(;(e=t?n.nextSibling:n.previousSibling)===null;){let e=n.parentElement;if(e===null)return null;n=e}if(n=e,iC(n)){let e=n.style.display;if(e===``&&!sC(n)||e!==``&&!e.startsWith(`inline`))return null}let r=n;for(;(r=t?n.firstChild:n.lastChild)!==null;)n=r;if(zx(n))return n;if(n.nodeName===`BR`)return null}}var _ne={code:`code`,em:`italic`,i:`italic`,mark:`highlight`,s:`strikethrough`,strong:`bold`,sub:`subscript`,sup:`superscript`,u:`underline`};function xy(e){let t=_ne[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:wy(e.style,t),node:null}}function Sy(e=``){return zS(new vy(e))}function Cy(e){return e instanceof vy}function wy(e,t){let n=e.fontWeight,r=e.textDecoration.split(` `),i=n===`700`||n===`bold`,a=r.includes(`line-through`),o=e.fontStyle===`italic`,s=r.includes(`underline`),c=e.verticalAlign;return e=>Cy(e)||_y(e)?(i&&!e.hasFormat(`bold`)&&e.toggleFormat(`bold`),a&&!e.hasFormat(`strikethrough`)&&e.toggleFormat(`strikethrough`),o&&!e.hasFormat(`italic`)&&e.toggleFormat(`italic`),s&&!e.hasFormat(`underline`)&&e.toggleFormat(`underline`),c!==`sub`||e.hasFormat(`subscript`)||e.toggleFormat(`subscript`),c!==`super`||e.hasFormat(`superscript`)||e.toggleFormat(`superscript`),t&&!e.hasFormat(t)&&e.toggleFormat(t),e):e}var Ty=class extends vy{$config(){return this.config(`tab`,{extends:vy})}constructor(e=void 0){super(` `,e),this.__detail=2}createDOM(e){let t=super.createDOM(e),n=bS(e.theme,`tab`);return n!==void 0&&t.classList.add(...n),t}setTextContent(e){return super.setTextContent(` `)}spliceText(e,t,n,r){return n===``&&t===0||n===` `&&t===1||Ph(286),this}setDetail(e){return e!==2&&Ph(127),this}setMode(e){return e!==`normal`&&Ph(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}};function Ey(){return zS(new Ty)}function Dy(e){return e instanceof Ty}var vne=class{key;offset;type;_selection;constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offsete&&(r=e)}else if(!$(t)){let e=t.getNextSibling();if(Cy(e))n=e.__key,r=0,i=`text`;else{let e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,i)}function Ay(e,t){if($(t)){let n=t.getLastDescendant();$(n)||Cy(n)?ky(e,n):ky(e,t)}else ky(e,t)}function jy(e,t,n,r){let i=e.getNode(),a=i.getChildAtIndex(e.offset),o=Sy();if(o.setFormat(n),o.setStyle(r),hx(a))a.splice(0,0,[o]);else if(a!==null){let e=LS(i)?mx().append(o):o;a.insertBefore(e)}else if(LS(i)){let e=i.getLastChild();$(e)&&!e.isInline()&&e.isEmpty()?e.append(o):i.append(mx().append(o))}else i.append(o);e.is(t)&&t.set(o.__key,0,`text`),e.set(o.__key,0,`text`)}function My(e,t,n,r){let i=e.anchor.getNode();Cy(i)||Ph(398);let a=e.anchor.offset,o=Sy(t);o.setFormat(n),o.setStyle(r);let s=i.getParentOrThrow();if(a===0)s.isInline()&&!i.__prev?s.insertBefore(o):i.insertBefore(o,!1);else if(a===i.getTextContentSize())s.isInline()&&!i.__next?s.insertAfter(o):i.insertAfter(o,!1);else{let[e]=i.splitText(a);e.insertAfter(o,!1)}i.getTextContent()===``&&i.isAttached()&&i.remove(),o.selectEnd(),o.isComposing()&&e.anchor.type===`text`&&e.anchor.set(e.anchor.key,e.anchor.offset-t.length,e.anchor.type)}var Ny=class e{_nodes;_cachedNodes;dirty;constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Iy(e))return!1;let t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every(e=>n.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new e(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){let t=this.getNodes().filter(e=>FC(e)===null),n=t.length;if(n===0)return;let r=t[n-1],i;if(Cy(r))i=r.select();else{let e=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(e,e)}i.insertNodes(e);for(let e=0;eFC(e)===null);if((ib()||ab())===this&&e[0]){let t=rw(e[0],`next`);bw(dw(t,t))}for(let t of e)t.remove();Py()}};function Py(){let e=nS();if(e.isEmpty()){let t=mx();e.append(t),t.select()}}function Q(e){return e instanceof Fy}var Fy=class e{format;style;anchor;focus;_cachedNodes;_cachedIsBackward;dirty;constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this._cachedIsBackward=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!Q(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){let e=this._cachedNodes;if(e!==null)return e;let t=function(e){let t=[],[n,r]=e.getTextSlices();n&&t.push(n.caret.origin);let i=new Set,a=new Set;for(let n of e)if(nw(n)){let{origin:e}=n;t.length===0?i.add(e):(a.add(e),t.push(e))}else{let{origin:e}=n;$(e)&&a.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),tw(e.focus)&&$(e.focus.origin)&&e.focus.getNodeAtCaret()===null)for(let n=sw(e.focus.origin,`previous`);nw(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=cw(n))i.delete(n.origin),t.pop();for(;t.length>1;){let e=t[t.length-1];if(!$(e)||a.has(e)||e.isEmpty()||i.has(e))break;t.pop()}if(t.length===0&&e.isCollapsed()){let n=Ew(e.anchor),r=Ew(e.anchor.getFlipped()),i=e=>ew(e)?e.origin:e.getNodeAtCaret(),a=i(n)||i(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(a)}return t}(kw(Sw(this),`next`));return Ob()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){return this.anchor.set(e.__key,t,`text`),this.focus.set(n.__key,r,`text`),this}getTextContent(){let e=this.getNodes();if(e.length===0)return``;let t=e[0],n=e[e.length-1],r=this.anchor,i=this.focus,a=r.isBefore(i),[o,s]=By(this),c=``,l=!0;for(let u=0;u($(e)||Xb(e))&&!e.isInline())){$(r)||Ph(211,n.constructor.name,n.getType());let t=gb(this);r.splice(t,0,e),i.selectEnd();return}if($(r)&&FC(r)!==null){let t=gb(this),n=hb(e);r.splice(t,0,n);let i=n[n.length-1];i===void 0?r.select(t,t):i.selectEnd();return}if(r===null){let t=vb(e),n=t.getLastDescendant(),r=vw(this.anchor,`next`);for(let e of t.getChildren())r=Mw(e,r);n!==null&&n.selectEnd();return}if($(r)&&!r.isParentRequired()&&!LS(r.getParentOrThrow())){let t=gb(this),n=hb(e);r.splice(t,0,n);let i=n[n.length-1];i===void 0?r.select(t,t):i.selectEnd();return}let a=vb(e),o=a.getLastDescendant(),s=a.getChildren(),c=!$(r)||!r.isEmpty()?this.insertParagraph():null;c&&!r.isAttached()&&(n=this.anchor.getNode(),r=kC(n,lC));let l=s[s.length-1],u=s[0];var d;$(d=u)&&lC(d)&&!d.isEmpty()&&$(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&($(r)||Ph(211,n.constructor.name,n.getType()),r.append(...u.getChildren()),u=s[1]),u&&(r===null&&Ph(212,n.constructor.name,n.getType()),function(e,t){let n=t.getParentOrThrow().getLastChild(),r=t,i=[t];for(;r!==n;)r.getNextSibling()||Ph(140),r=r.getNextSibling(),i.push(r);let a=e;for(let e of i)a=a.insertAfter(e)}(r,u));let f=kC(o,lC);c&&$(f)&&(c.canMergeWhenEmpty()||lC(l))&&(f.append(...c.getChildren()),c.remove()),$(r)&&r.isEmpty()&&r.remove(),o.selectEnd();let p=$(r)?r.getLastChild():null;cx(p)&&f!==r&&p.remove()}insertParagraph(){let e=this.anchor.getNode();if(this.anchor.type===`element`&&LS(e)){let t=mx();return e.splice(this.anchor.offset,0,[t]),t.select(),t}let t=gb(this),n=kC(this.anchor.getNode(),lC);if(n!==null&&FC(n)!==null)return null;$(n)||Ph(213);let r=n.getChildAtIndex(t),i=r?[r,...r.getNextSiblings()]:[],a=n.insertNewAfter(this,!1);return a?(a.append(...i),a.selectStart(),a):null}insertLineBreak(e){let t=sx();if(this.insertNodes([t]),e){let e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){let e=[...this.getNodes()],t=e.length,n=e[0],r=e[t-1],[i,a]=By(this),o=this.isBackward(),[s,c]=o?[this.focus,this.anchor]:[this.anchor,this.focus],[l,u]=o?[a,i]:[i,a];if(t===0)return[];if(t===1){if(Cy(n)&&!this.isCollapsed()){let e=n.splitText(l,u),t=l===0?e[0]:e[1];return t?(s.set(t.getKey(),0,`text`),c.set(t.getKey(),t.getTextContentSize(),`text`),[t]):[]}return[n]}if(Cy(n)&&(l===n.getTextContentSize()?e.shift():l!==0&&([,n]=n.splitText(l),e[0]=n,s.set(n.getKey(),0,`text`))),Cy(r)){let t=r.getTextContent().length;u===0?e.pop():u!==t&&([r]=r.splitText(u),e[e.length-1]=r,c.set(r.getKey(),r.getTextContentSize(),`text`))}return e}modify(e,t,n){if(yb(this,e,t,n))return;let r=e===`move`,i=Mb(),a=WS(NS(i));if(!a)return;let o=i._blockCursorElement,s=i._rootElement,c=this.focus.getNode();s===null||o===null||!$(c)||c.isInline()||c.canBeEmpty()||US(o,i,s);let l=ES(i,this.focus.key),u=l;if(this.focus.type===`text`&&(u=Cy(c)?pC(c,l,i):null),this.dirty){let e=ES(i,this.anchor.key),t=e;if(this.anchor.type===`text`){let n=this.anchor.getNode();t=Cy(n)?pC(n,e,i):null}t&&u&&ub(a,t,this.anchor.offset,u,this.focus.offset)}if(n===`character`&&Cy(c)&&c.isUnmergeable()&&(t?this.focus.offset===0:this.focus.offset===c.getTextContentSize())){let e=rw(c,t?`previous`:`next`).getNodeAtCaret();if(Cy(e)){if(!r){let n=e.getTextContentSize();t?this.focus.set(e.__key,n-1,`text`):this.focus.set(e.__key,1,`text`),this.dirty=!0;return}{let n=i.getElementByKey(e.getKey()),r=n?pC(e,n,i):null;if(r){let e=t?r.length:0;ub(a,r,e,r,e)}}}}if(Uy(a,e,t?`backward`:`forward`,n),a.rangeCount>0){let e=QS(a,i._rootElement),n=e||a.getRangeAt(0),o=this.anchor.getNode(),s=Qb(o)?o:FS(o);this.applyDOMRange(n),this.dirty=!0,!r&&(Wy(this,t,s),(e?a.direction!==`backward`:a.anchorNode===n.startContainer&&a.anchorOffset===n.startOffset)||Hy(this))}n===`lineboundary`&&yb(this,e,t,n,`decorators`)}forwardDeletion(e,t,n){if(!n&&(e.type===`element`&&$(t)&&e.offset===t.getChildrenSize()||e.type===`text`&&e.offset===t.getTextContentSize())){let e=t.getParent(),n=t.getNextSibling()||(e===null?null:e.getNextSibling());if($(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){let t=this.isCollapsed();if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;let r=lw(vw(t,e?`previous`:`next`));if(r.getTextSlices().every(e=>e===null||e.distance===0)){let e={type:`initial`};for(let t of r.iterNodeCarets(`shadowRoot`))if(nw(t)){if(!t.origin.isInline()){if(t.origin.isShadowRoot()){if(e.type===`merge-block`)break;if($(r.anchor.origin)&&r.anchor.origin.isEmpty()){let e=Ew(t);xw(this,dw(e,e)),r.anchor.origin.remove()}return}e.type!==`merge-next-block`&&e.type!==`merge-block`||(e={block:e.block,caret:t,type:`merge-block`})}}else{if(e.type===`merge-block`)break;if(tw(t)){if($(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:`merge-next-block`};continue}if(Xb(t.origin)){if(!t.origin.isIsolated()){if(zC(t.origin).length>0){if($(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();let e=nb();e.add(t.origin.getKey()),rS(e)}}else if(e.type===`merge-next-block`&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&$(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();let e=nb();e.add(t.origin.getKey()),rS(e)}else t.origin.remove()}return}break}}if(e.type===`merge-block`){let{caret:t,block:n}=e;return zC(n).length>0?void 0:t.origin.isEmpty()&&!n.isEmpty()&&t.origin.getParent()===n.getParent()?void t.origin.remove(!0):(xw(this,dw(!t.origin.isEmpty()&&n.isEmpty()?Cw(rw(n,t.direction)):r.anchor,t)),this.removeText())}for(let e=t.getNode();e!==null;){if(FC(e)!==null)return;if($(e)&&e.isShadowRoot())break;e=e.getParent()}}let i=this.focus;if(Gy(this,e,`character`),this.isCollapsed()){if(e&&t.offset===0&&Vy(this,t.getNode()))return}else{let r=i.type===`text`?i.getNode():null;if(n=t.type===`text`?t.getNode():null,r!==null&&r.isSegmented()){let t=i.offset,a=r.getTextContentSize();if(r.is(n)||e&&t!==a||!e&&t!==0)return void Ky(r,e,t)}else if(n!==null&&n.isSegmented()){let i=t.offset,a=n.getTextContentSize();if(n.is(r)||e&&i!==0||!e&&i!==a)return void Ky(n,e,i)}(function(e,t){let n=e.anchor,r=e.focus,i=n.getNode();if(i===r.getNode()&&n.type===`text`&&r.type===`text`){let e=n.offset,a=r.offset,o=e0&&(m===p.getTextContentSize()||Rx(p)||([p]=p.splitText(m)),p.setFormat(g));for(let e=l+1;e{for(let[t,r]of n)e=Hx(e,t,r?Qh[t]:0);return e})}function Ry(e,t,n=null){let r=n===null&&Q(e)?Hx(e.format,t,null):n;Ly(e,e=>Hx(e,t,r))}function zy(e){let t=e.offset;if(e.type===`text`)return t;let n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function By(e){let t=e.getStartEndPoints();if(t===null)return[0,0];let[n,r]=t;return n.type===`element`&&r.type===`element`&&n.key===r.key&&n.offset===r.offset?[0,0]:[zy(n),zy(r)]}function Vy(e,t){for(let n=t;n;n=n.getParent()){if($(n)){if(n.collapseAtStart(e))return!0;if(LS(n))break}if(n.getPreviousSibling())break}return!1}function Hy(e){let t=e.focus,n=e.anchor,r=n.key,i=n.offset,a=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,i,a,!0)}function Uy(e,t,n,r){e.modify(t,n,r)}function Wy(e,t,n){let r=e.getNodes(),i=r.filter(e=>jS(e,n));if(i.length===0||i.length===r.length)return!1;let a=t?i[0]:i[i.length-1],o=$(a)?a:a.getParentOrThrow();return t?o.selectStart():o.selectEnd(),!0}function Gy(e,t,n){if(yb(e,`extend`,t,n))return;let r=Mb(),i=WS(NS(r));if(!i||typeof i.modify!=`function`)return;let a=r._blockCursorElement,o=r._rootElement,s=e.anchor,c=e.focus.getNode();o===null||a===null||!$(c)||c.isInline()||c.canBeEmpty()||US(a,r,o);let l=e=>{let t=e.getNode(),n=r.getElementByKey(e.key);return n!==null&&e.type===`text`&&Cy(t)?pC(t,n,r):n},u=s.getNode(),d=l(s);if(d===null)return;let f=s.offset,p=e.isCollapsed(),m=e.focus,h=p?d:l(m);if(h===null)return;let g=m.offset;if(ub(i,h,g,h,g),Uy(i,`move`,t?`backward`:`forward`,n),i.rangeCount===0)return;let _=QS(i,o)||i.getRangeAt(0),v=_.startContainer,y=_.startOffset;if(p&&n===`character`&&s.type===`text`&&Cy(u)&&u.isUnmergeable()&&f===(t?0:u.getTextContentSize())){let n=rw(u,t?`previous`:`next`).getNodeAtCaret();if(Cy(n)){let r=t?n.getTextContentSize()-1:1;e.focus.set(n.__key,r,`text`),e.dirty=!0;return}}if(p&&n===`character`&&s.type===`text`){let n=t?0:u.getTextContentSize(),r=v===d?y:f===n?-1:n;if(r>=0)return void(r!==f&&(e.focus.set(s.key,r,`text`),e.dirty=!0))}let[b,x,S,C]=t?[v,y,d,f]:[d,f,v,y],w=Qb(u)?u:FS(u);e.applyDOMRange({collapsed:!1,endContainer:S,endOffset:C,startContainer:b,startOffset:x}),e.dirty=!0,!Wy(e,t,w)&&t&&Hy(e),n===`lineboundary`&&yb(e,`extend`,t,n,`decorators`)}var bne=(()=>{try{let e=RegExp(`\\p{Emoji}`,`u`),t=e.test.bind(e);if(t(`❤️`)&&t(`#️⃣`)&&t(`👍`))return t}catch{}return()=>!1})();function Ky(e,t,n){let r=e,i=r.getTextContent().split(/(?=\s)/g),a=i.length,o=0,s=0;for(let e=0;en||r){i.splice(e,1),r&&(s=void 0);break}}let c=i.join(``).trim();c===``?r.remove():(r.setTextContent(c),r.select(s,s))}function qy(e,t,n,r){let i,a=t,o=!1;if(iC(e)){let s=!1,c=e.childNodes,l=c.length,u=r._blockCursorElement;a===l&&l>0&&(s=!0,a=l-1),Qx(e,r)!==void 0||SC(e,r)||(o=!0);let d=c[a],f=!1;if(d===u)d=c[a+1],f=!0;else if(u!==null){let n=u.parentNode;e===n&&t>Array.prototype.indexOf.call(n.children,u)&&a--}if(i=aS(d),Cy(i))a=aw(i,s?`next`:`previous`);else{let c=aS(e);if(c===null)return null;if($(c)){let o=r.getElementByKey(c.getKey());o===null&&Ph(214);let l=fC(c,o,r);[c,a]=l.resolveChildIndex(c,o,e,t),$(c)||Ph(215),s&&a>=c.getChildrenSize()&&(a=Math.max(0,c.getChildrenSize()-1));let u=c.getChildAtIndex(a);if($(u)&&function(e,t,n){let r=e.getParent();return n===null||r===null||!r.canBeEmpty()||r!==n.getNode()}(u,0,n)){let e=s?u.getLastDescendant():u.getFirstDescendant();e===null?c=u:(u=e,c=$(u)?u:u.getParentOrThrow()),a=0}Cy(u)?(i=u,c=null,a=aw(u,s?`next`:`previous`)):u!==c&&s&&!f&&($(c)||Ph(216),a=Math.min(c.getChildrenSize(),a+1))}else{let n=IC(c),i=n===null?c:n,o=i.getIndexWithinParent(),s=r.getElementByKey(c.getKey()),l=`after`;if(s!==null&&aS(e)===c){let n=fC(c,s,r);n.element===s?t===0&&Xb(c)&&(l=`before`):l=n.resolveLeafPosition(s,e,t)}a=l===`before`?o:o+1,c=i.getParentOrThrow()}if($(c))return[Oy(c.__key,a,`element`),o]}}else i=aS(e);return Cy(i)?[Oy(i.__key,aw(i,a,`clamp`),`text`),o]:null}function Jy(e,t,n){let r=e.offset,i=e.getNode();if(r===0){let r=i.getPreviousSibling(),a=i.getParent();if(t){if((n||!t)&&r===null&&$(a)&&a.isInline()){let t=a.getPreviousSibling();Cy(t)&&e.set(t.__key,t.getTextContent().length,`text`)}}else $(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),`element`):Cy(r)&&!i.isUnmergeable()&&e.set(r.__key,r.getTextContent().length,`text`)}else if(r===i.getTextContent().length){let r=i.getNextSibling(),a=i.getParent();if(t&&$(r)&&r.isInline())e.set(r.__key,0,`element`);else if((n||t)&&r===null&&$(a)&&a.isInline()&&!a.canInsertTextAfter()&&a.getTextContentSize()>1){let t=a.getNextSibling();Cy(t)&&e.set(t.__key,0,`text`)}}}function Yy(e){let t=Yx(e.key);return t===null?null:LC(t)}function Xy(e,t,n){let r=Yy(e),i=Yy(t);if(r===i||r!==null&&i!==null&&r.is(i))return!1;let a=n(r,i);if(r!==null)return $(r)?t.set(r.getKey(),a?r.getChildrenSize():0,`element`):t.set(r.getKey(),a?r.getTextContentSize():0,`text`),!0;let o=IC(i);if(o===null)return!1;let s=o.getParent();if(s===null)return!1;let c=o.getIndexWithinParent();return t.set(s.getKey(),a?c+1:c,`element`),!0}function Zy(e){let t=Xy(e.anchor,e.focus,(t,n)=>function(e,t,n,r){if(n!==null&&r!==null){let e=IC(n),t=IC(r);if(e!==null&&e.is(t)){for(let t of RC(e).values()){if(t===n.getKey())return!0;if(t===r.getKey())return!1}return!0}return e===null||t===null||e.isBefore(t)}if(n!==null){let e=IC(n),r=Yx(t.key);return e===null||r===null||!(!e.is(r)&&!e.isParentOf(r))||e.isBefore(r)}let i=IC(r),a=Yx(e.key);return i!==null&&a!==null&&!i.is(a)&&!i.isParentOf(a)&&a.isBefore(i)}(e.anchor,e.focus,t,n));return t&&(e.dirty=!0),t}function Qy(e,t,n,r,i,a){if(e===null||n===null||!Mx(i,e,n))return null;let o=qy(e,t,Q(a)?a.anchor:null,i);if(o===null)return null;let s=qy(n,r,Q(a)?a.focus:null,i);if(s===null)return null;let[c,l]=o,[u,d]=s;if(c.type===`element`&&u.type===`element`){let t=aS(e),r=aS(n);if(Xb(t)&&Xb(r))return null}let f=i._slotsUsed&&Xy(c,u,()=>(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)!==0);return function(e,t){if(e.type===`text`&&t.type===`text`){let n=e.isBefore(t),r=e.is(t);Jy(e,n,r),Jy(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}(c,u),[c,u,l||d||f]}function $y(e){return $(e)&&!e.isInline()}function eb(e,t,n,r,i,a){let o=jb(),s=new Fy(Oy(e,t,i),Oy(n,r,a),0,``);return s.dirty=!0,o._selection=s,s}function tb(){return new Fy(Oy(`root`,0,`element`),Oy(`root`,0,`element`),0,``)}function nb(){return new Ny(new Set)}function rb(e,t,n,r){let i=n._window;if(i===null)return null;let a=r||i.event,o=a?a.type:void 0,s=o===`selectionchange`,c=!pg&&(s||o===`beforeinput`||o===`compositionstart`||o===`compositionend`||o===`click`&&a&&a.detail===3||o===`drop`||o===void 0),l,u,d,f;if(Q(e)&&!c)return e.clone();{if(t===null)return null;let r=$S(t,n._rootElement);if(l=r.anchorNode,u=r.focusNode,d=r.anchorOffset,f=r.focusOffset,(s||o===void 0)&&Q(e)&&!Mx(n,l,u))return e.clone()}let p=Qy(l,d,u,f,n,e);if(p===null)return null;let[m,h,g]=p,_=0,v=``;if(Q(e)){let t=e.anchor;if(m.key===t.key)_=e.format,v=e.style;else{let e=m.getNode();Cy(e)?(_=e.getFormat(),v=e.getStyle()):$(e)&&(_=e.getTextFormat(),v=e.getTextStyle())}}let y=new Fy(m,h,_,v);return g&&(y.dirty=!0),y}function ib(){return jb()._selection}function ab(){return Mb()._editorState._selection}function ob(e,t,n,r=1){let i=e.anchor,a=e.focus,o=i.getNode(),s=a.getNode();if(!t.is(o)&&!t.is(s))return;let c=t.__key;if(e.isCollapsed()){let t=i.offset;if(n<=t&&r>0||n0||n0||n=e,o=i?a.getChildAtIndex(e-1):a.getChildAtIndex(n);if(Cy(o)){let e=0;i&&(e=o.getTextContentSize()),t.set(o.__key,e,`text`),r.set(o.__key,e,`text`)}return}if($(a)){let e=a.getChildrenSize(),r=n>=e,i=r?a.getChildAtIndex(e-1):a.getChildAtIndex(n);if(Cy(i)){let e=0;r&&(e=i.getTextContentSize()),t.set(i.__key,e,`text`)}}if($(o)){let e=o.getChildrenSize(),t=i>=e,n=t?o.getChildAtIndex(e-1):o.getChildAtIndex(i);if(Cy(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,`text`)}}}function cb(e,t,n,r,i){let a=null,o=0,s=null;r===null?i!==null&&(a=i.__key,Cy(i)?s=`text`:$(i)&&(s=`element`)):(a=r.__key,Cy(r)?(o=r.getTextContentSize(),s=`text`):$(r)&&(o=r.getChildrenSize(),s=`element`)),a!==null&&s!==null?e.set(a,o,s):(o=t.getIndexWithinParent(),o===-1&&(o=n.getChildrenSize()),e.set(n.__key,o,`element`))}function lb(e,t,n,r,i){e.type===`text`?e.set(n,e.offset+(t?0:i),`text`):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,`element`)}function ub(e,t,n,r,i){try{e.setBaseAndExtent(t,n,r,i)}catch{}}function db(e,t,n){let r=ES(e,t.getKey());if($(t)){let i=fC(t,r,e);return[i.element,n+i.getFirstChildOffset()]}return[r,n]}function xne(e,t,n,r,i,a){let o=a.getRootNode(),s=Bx(o)||KS(o)?tC(o):null;if(i.has(`collaboration`)&&s!==a||s!==null&&jx(s,s))return;let c=$S(r,a),l;if(!Q(t))return void(e!==null&&Mx(n,c.anchorNode,c.focusNode)&&r.removeAllRanges());let u=t.anchor,d=t.focus,f=u.getNode(),p=d.getNode(),[m,h]=db(n,f,u.offset),[g,_]=db(n,p,d.offset),v=t.format,y=t.style,b=t.isCollapsed(),x=m,S=g,C=!1;if(u.type===`text`?(x=Cy(f)?pC(f,m,n):null,C=f.getFormat()!==v||f.getStyle()!==y):Q(e)&&e.anchor.type===`text`&&(C=!0),d.type===`text`&&(S=Cy(p)?pC(p,g,n):null),x!==null&&S!==null){if(b&&(e===null||C||Q(e)&&(e.format!==v||e.style!==y))&&function(e,t,n,r,i,a){e._inputState.collapsedSelectionFormat={format:t,key:i,offset:r,style:n,timeStamp:a}}(n,v,y,h,u.key,performance.now()),(r.type!==`Range`||!b)&&c.anchorOffset===h&&c.focusOffset===_&&c.anchorNode===x&&c.focusNode===S){if(s===null||!a.contains(s)){let e=s===null?null:Px(s);e!==null&&e!==n||i.has(`skip-selection-focus`)||a.focus({preventScroll:!0})}if(u.type!==`element`)return}if(ub(r,x,h,S,_),zh&&t.isCollapsed()&&a!==null&&!i.has(`skip-selection-focus`)){let e=eC(a);if(e===null||!a.contains(e)){let e=tC(a.ownerDocument),t=e===null?null:Px(e);t!==null&&t!==n||a.focus({preventScroll:!0})}}if(!i.has(`skip-scroll-into-view`)&&t.isCollapsed()&&a!==null&&a===eC(a)){let e=Q(t)&&t.anchor.type===`element`?x.childNodes[h]||null:(l===void 0&&(l=One(r,a)),l);if(e!==null){let t;if(zx(e)){let n=e.ownerDocument.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();(function(e,t,n){let r=OS(n),i=MS(r);if(r===null||i===null)return;let a=n.getBoundingClientRect();if(t.bottoml&&(d=s-l),d!==0){if(t)i.scrollBy(0,d);else{let e=u.scrollTop;u.scrollTop+=d;let t=u.scrollTop-e;o-=t,s-=t}}if(t)break;u=DS(u)}})(n,t,a)}}(function(e){e._inputState.isSelectionChangeFromDOMUpdate=!0})(n)}}function fb(e){let t=ib()||ab();t===null&&(t=nS().selectEnd()),t.insertNodes(e)}function pb(e,t){for(let n of e.split(/(\r?\n|\t)/))n===` +`||n===`\r +`?t.linebreak():n===` `?t.tab():n!==``&&t.text(n)}function mb(e){let t=[];return pb(e,{linebreak:()=>t.push(sx()),tab:()=>t.push(Ey()),text:e=>t.push(Sy(e))}),t}function Sne(){let e=ib();return e===null?``:e.getTextContent()}function hb(e){let t=[];for(let n of e)cx(n)||(!$(n)&&!Xb(n)||n.isInline()?t.push(n):$(n)&&t.push(...hb(n.getChildren())));return t}function gb(e){let t=e;e.isCollapsed()||t.removeText();let n=ib();Q(n)&&(t=n),Q(t)||Ph(161);let r=t.anchor,i=r.getNode(),a=r.offset;for(;!lC(i)&&FC(i)===null;){let e=i;if([i,a]=Cne(i,a),e.is(i))break}return a}function Cne(e,t){let n=e.getParent();if(!n){let e=mx();return nS().append(e),e.select(),[nS(),0]}if(Cy(e)){let r=e.splitText(t);if(r.length===0)return[n,e.getIndexWithinParent()];let i=t===0?0:1;return[n,r[0].getIndexWithinParent()+i]}if(!$(e)||t===0)return[n,e.getIndexWithinParent()];let r=e.getChildAtIndex(t);if(r){let n=new Fy(Oy(e.__key,t,`element`),Oy(e.__key,t,`element`),0,``),i=e.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function _b(e){return cx(e)||PS(e)||Cy(e)||e.isParentRequired()}function vb(e){let t=mx(),n=null;for(let r=0;r99&&Ph(14)}function jb(){return bb===null&&Ph(195,Nb()),bb}function wne(e){jb()!==null&&xb===null&&(xb=e),xb!==e&&Fh(378)}function Mb(){return xb===null&&Ph(337,Nb()),xb}function Tne(){Mb()._dirtyType=2}function Nb(){let e=0,t=new Set,n=Cx.version;if(typeof window<`u`)for(let r of YS(document)){let i=Fx(r);if(Nx(i))e++;else if(i){let e=String(i.constructor.version||`<0.17.1`);e===n&&(e+=` (separately built, likely a bundler configuration issue)`),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(`, `)}`),r}function Pb(){return xb}function Fb(e,t,n){let r=t.__type,i=Ox(e,r),a=n.get(r);a===void 0&&(a=Array.from(i.transforms),n.set(r,a));let o=a.length;for(let e=0;e0&&Ub(e,e._deferred));let a=e._editorState,o=a._selection,s=n._selection,c=e._dirtyType!==0,l=bb,u=Sb,d=xb,f=e._updating,p=e._observer,m=null;if(e._pendingEditorState=null,e._editorState=n,!i&&c&&p!==null){xb=e,bb=n,Sb=!1,e._updating=!0;try{let t=e._dirtyType,r=e._dirtyElements,i=e._dirtyLeaves;p.disconnect(),m=E_(a,n,e,t,r,i)}catch(t){if(t instanceof Error&&e._onError(t),Cb)throw t;_x(e,null,r,n),vg(e),e._dirtyType=2,Cb=!0,Bb(e,a),Cb=!1;return}finally{p.observe(r,Db),e._updating=f,bb=l,Sb=u,xb=d}}n._readOnly||=!0;let h=e._dirtyLeaves,g=e._dirtyElements,_=e._normalizedNodes,v=e._updateTags;c&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set),e._updateTags=new Set,function(e,t){let n=e._decorators,r=e._pendingDecorators||n,i=t._nodeMap,a;for(a in r)i.has(a)||(r===n&&(r=eS(e)),delete r[a])}(e,n);let y=i?null:WS(NS(e));if(e._editable&&y!==null&&(c||s===null||s.dirty||!s.is(o))&&r!==null&&!v.has(`skip-dom-selection`)){xb=e,bb=n;try{if(p!==null&&p.disconnect(),c||s===null||s.dirty){let t=e._blockCursorElement;t!==null&&US(t,e,r),xne(o,s,e,y,v,r)}(function(e,t,n){let r=e._blockCursorElement;if(Q(n)&&n.isCollapsed()&&n.anchor.type===`element`&&t.contains(eC(t))){let i=n.anchor,a=i.getNode(),o=i.offset,s=!1,c=null;if(o===a.getChildrenSize())HS(a.getChildAtIndex(o-1))&&(s=!0);else{let t=a.getChildAtIndex(o);if(t!==null&&HS(t)){let n=t.getPreviousSibling();(n===null||HS(n))&&(s=!0,c=e.getElementByKey(t.__key))}}if(s){let n=fC(a,e.getElementByKey(a.__key),e).element;r===null&&(e._blockCursorElement=r=function(e){let t=e.theme,n=ZS().createElement(`div`);n.contentEditable=`false`,n.setAttribute(`data-lexical-cursor`,`true`);let r=t.blockCursor;return r!==void 0&&(typeof r==`string`&&(r=t.blockCursor=Iw(r)),r!==void 0&&n.classList.add(...r)),n}(e._config)),t.style.caretColor=`transparent`,c===null?n.appendChild(r):n.insertBefore(r,c);return}}r!==null&&US(r,e,t)})(e,r,s)}finally{p!==null&&p.observe(r,Db),xb=d,bb=l}}m!==null&&function(e,t,n,r,i){let a=Array.from(e._listeners.mutation),o=a.length;for(let e=0;e{Tb.delete(e),e._cascadeCount=0},0))}(e),e._cascadeCount++>99)return e._updates=[],e._cascadeCount=0,void e._onWarn(Error(`One or more update listeners are endlessly enqueueing more updates. May have encountered infinite recursion caused by update listeners that trigger additional updates without a stop condition. Editor namespace: ${e._config.namespace}`));let n=t.shift();if(n){let[t,r]=n;Gb(e,t,r)}})(e)})(e,t)}finally{wb=n}}function Vb(e,t,n,...r){let i=t._updating;t._updating=n;try{let n=t._listeners[e],i=Array.from(n);for(let[e,t]of i){t&&t();let i=e(...r);n.has(e)?n.set(e,i):i&&i()}}finally{t._updating=i}}function Hb(e,t,n,r){let i=sS(e),a;if(!wb)for(let e=0;e=0;e--)for(let o=0;o0&&s._updating){a=s;break}let c=s._commands.get(t);if(c!==void 0){let t=c[e];if(t.size>0){let e=!1;if(Kb(s,()=>{for(let i of t)if(i(n,r))return void(e=!0)}),e)return e}}}return a&&a.update(()=>{Hb(a,t,n,r)}),!1}function Ub(e,t){if(e._deferred=[],t.length!==0){let n=e._updating;e._updating=!0;try{for(let e=0;e0||u>0;){if(c>0){t._dirtyLeaves=new Set;for(let e of s){let r=i.get(e);Cy(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&jg(r),r!==void 0&&Ib(r,a)&&Fb(t,r,o),n.add(e)}if(s=t._dirtyLeaves,c=s.size,c>0){Eb++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map,l.delete(`root`)&&l.set(`root`,!0);for(let e of l){let n=e[0],s=e[1];if(r.set(n,s),!s)continue;let c=i.get(n);c!==void 0&&Ib(c,a)&&Fb(t,c,o)}s=t._dirtyLeaves,c=s.size,l=t._dirtyElements,u=l.size,Eb++}t._dirtyLeaves=n,t._dirtyElements=r}(c,e),Wb(e),function(e,t,n,r){let i=e._nodeMap,a=t._nodeMap,o=[];for(let[e]of r){let t=a.get(e);t!==void 0&&(t.isAttached()||($(t)&&fg(t,e,i,a,o,r),i.has(e)||r.delete(e),o.push(e)))}for(let e of n){let t=a.get(e);t===void 0||t.isAttached()||(NC(t)&&t.__slots!==null&&fg(t,e,i,a,o,n),i.has(e)||n.delete(e),o.push(e))}for(let e of o)a.delete(e);let s=Mb(),c=s._compositionKey;c===null||a.has(c)||(s._compositionKey=null)}(s,c,e._dirtyLeaves,e._dirtyElements)),r!==e._compositionKey&&(c._flushSync=!0);let i=c._selection;if(Q(i)){e._slotsUsed&&Zy(i);let t=c._nodeMap,n=i.anchor.key,r=i.focus.key;t.get(n)!==void 0&&t.get(r)!==void 0||Ph(19)}else Iy(i)&&i._nodes.size===0&&(c._selection=null)}catch(t){t instanceof Error&&e._onError(t),e._pendingEditorState=s,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),Bb(e);return}finally{bb=u,Sb=d,xb=f,e._updating=p,Eb=0}e._dirtyType!==0||e._deferred.length>0||function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(r!==null){if(r.dirty||!r.is(n))return!0}else if(n!==null)return!0;return!1}(c,e)?c._flushSync?(c._flushSync=!1,Bb(e)):l&&Ax(()=>{Bb(e)}):(c._flushSync=!1,l&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Kb(e,t,n){xb===e&&n===void 0?Ob()?Gb(e,t,n):t():Gb(e,t,n)}function Dne(e){if(LS(e)){let t=null;for(let n of e.getChildren())t=n.isInline()?(t||n.replace(n.createParentElementNode())).append(n):null}}var qb=class extends ay{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;__slotHost;__slots;$config(){return this.config(Symbol.for(`ElementNode`),{$transform:Dne,extends:ay})}constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style=``,this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=``,this.__slotHost=null,this.__slots=null}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size,this.__slotHost=e.__slotHost,this.__slotHost!==null&&this.__parent!==null&&Ph(384,this.__key,String(this.__slotHost),String(this.__parent)),this.__slots=e.__slots),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){return Kte[this.getFormat()]||``}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;t!==null;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0&&zC(this).length===0}isDirty(){let e=Mb()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return t!==null&&t.is(e)}getAllTextNodes(){let e=[];for(let t of zC(this)){let n=BC(this,t);$(n)&&e.push(...n.getAllTextNodes())}let t=this.getFirstChild();for(;t!==null;){if(Cy(t)&&e.push(t),$(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;$(e);){let t=e.getFirstChild();if(t===null)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;$(e);){let t=e.getLastChild();if(t===null)break;e=t}return e}getDescendantByIndex(e){let t=this.getChildren(),n=t.length;if(e>=n){let e=t[n-1];return $(e)&&e.getLastDescendant()||e||null}let r=t[e];return $(r)&&r.getFirstDescendant()||r||null}getFirstChild(){let e=this.getLatest().__first;return e===null?null:Yx(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return e===null&&Ph(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return e===null?null:Yx(e)}getLastChildOrThrow(){let e=this.getLastChild();return e===null&&Ph(96,this.__key),e}getChildAtIndex(e){let t=this.getChildrenSize(),n,r;if(e=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e=WC(this),t=this.getChildren(),n=t.length;for(let r=0;re.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=e!==``&&$h[e]||0,this}setStyle(e){return this.getWritable().__style=e||``,this}setTextFormat(e){let t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){let t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){ry(this)&&Ph(324,this.__key,this.__type);let r=this.getChildrenSize(),i=this.getWritable();e+t<=r||Ph(226,String(e),String(t),String(r));for(let e of n);let a=i.__key,o=[],s=[],c=this.getChildAtIndex(e+t),l=null,u=r-t+n.length;if(e!==0){if(e===r)l=this.getLastChild();else{let t=this.getChildAtIndex(e);t!==null&&(l=t.getPreviousSibling())}}if(t>0){let e=l===null?this.getFirstChild():l.getNextSibling();for(let n=0;n0&&(t.style.paddingInlineStart=40*e+`px`,t.setAttribute(`data-lexical-indent`,String(e)));let n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){let e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return t===0&&n===``||LS(this)||this.getChildren().some(Cy)||(t!==0&&(e.textFormat=t),n!==``&&(e.textStyle=n)),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||``)}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){let n=fC(this,e,t),r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){let i=t.getElementByKey(e.getKey());i!==null&&(r==null?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling)}}};function $(e){return e instanceof qb}function Jb(e,t,n){let r=e.getNode();for(;r;){let e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}var Yb=class extends ay{__slotHost;__slots;constructor(e){super(e),this.__slotHost=null,this.__slots=null}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__slotHost=e.__slotHost,this.__slotHost!==null&&this.__parent!==null&&Ph(383,this.__key,String(this.__slotHost),String(this.__parent)),this.__slots=e.__slots)}decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}};function Xb(e){return e instanceof Yb}var Zb=class extends qb{__cachedText;$config(){return this.config(`root`,{extends:qb})}constructor(){super(`root`),this.__cachedText=null}getTopLevelElementOrThrow(){Ph(51)}getTextContent(){let e=this.__cachedText;return e===null||!Ob()&&Mb()._dirtyType!==0?super.getTextContent():e}remove(){Ph(52)}replace(e){Ph(53)}insertBefore(e){Ph(54)}insertAfter(e){Ph(55)}updateDOM(e,t){return!1}splice(e,t,n){for(let e of n)$(e)||Xb(e)||Ph(282);return super.splice(e,t,n)}static importJSON(e){return nS().updateFromJSON(e)}collapseAtStart(){return!0}};function Qb(e){return e instanceof Zb}function $b(e){return new rx(ug(e._nodeMap),null,e._slotsUsed)}function ex(){return new rx(new Map([[`root`,new Zb]]),null,!1)}function tx(e){let t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&Ph(130,n.name),$(e)){let r=t.children;Array.isArray(r)||Ph(59,n.name);let i=e.getChildren();for(let e=0;e0){let i={};for(let t of r){let r=BC(e,t);r===null&&Ph(366,n.name,t),i[t]=tx(r)}t.$slots=i}return t}function nx(e){return e instanceof rx}var rx=class e{_nodeMap;_selection;_flushSync;_readOnly;_parsed;_slotsUsed;constructor(e,t=null,n=!1){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1,this._parsed=!1,this._slotsUsed=n}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,t){return zb(t&&t.editor||null,this,e)}clone(t){let n=new e(this._nodeMap,t===void 0?this._selection:t,this._slotsUsed);return n._readOnly=!0,n}toJSON(){return zb(null,this,()=>({root:tx(nS())}))}},ix=class extends qb{$config(){return this.config(`artificial`,{extends:qb})}createDOM(e){return ZS().createElement(`div`)}},ax=class extends ay{$config(){return this.config(`linebreak`,{importDOM:{br:e=>lx(e)||ux(e)?null:{conversion:ox,priority:0}}})}getTextContent(){return` +`}createDOM(){return ZS().createElement(`br`)}updateDOM(){return!1}isInline(){return!0}};function ox(e){return{node:sx()}}function sx(){return zS(new ax)}function cx(e){return e instanceof ax}function lx(e){let t=e.parentElement;if(t!==null&&cC(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&dx(n)){let n=t.lastChild;if(n===e||n.previousSibling===e&&dx(n))return!0}}return!1}function ux(e){let t=e.parentElement;if(t!==null&&cC(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&dx(n))return!1;let r=t.lastChild;if(r===e||r.previousSibling===e&&dx(r))return!0}return!1}function dx(e){return zx(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||``)}var fx=class extends qb{$config(){return this.config(`paragraph`,{extends:qb,importDOM:{p:()=>({conversion:px,priority:0})}})}createDOM(e){let t=ZS().createElement(`p`),n=bS(e.theme,`paragraph`);return n!==void 0&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}exportDOM(e){let{element:t}=super.exportDOM(e);if(iC(t)){this.isEmpty()&&t.append(ZS().createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}exportJSON(){let e=super.exportJSON();if(e.textFormat===void 0||e.textStyle===void 0){let t=this.getChildren().find(Cy);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){let n=mx();n.setTextFormat(e.format),n.setTextStyle(e.style);let r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){let e=this.getChildren();if(e.length===0||Cy(e[0])&&e[0].getTextContent().trim()===``){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}};function px(e){let t=mx();if(yC(t,e),_C(e,t),t.getFormatType()===``){let n=e.getAttribute(`align`);n&&n&&n in $h&&t.setFormat(n)}return vC(t,e),{node:t}}function mx(){return zS(new fx)}function hx(e){return e instanceof fx}function gx(e){console.warn(e)}function _x(e,t,n,r,i){let a=e._keyToDOMMap;a.clear(),e._editorState=ex(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,i&&i.preserveUpdateQueue||(e._updateTags=new Set,e._updates=[],e._cascadeCount=0),e._blockCursorElement=null,e._inputState.handledSelectionCommandTimeoutId!==null&&clearTimeout(e._inputState.handledSelectionCommandTimeoutId),e._inputState={collapsedSelectionFormat:{format:0,key:`root`,offset:0,style:``,timeStamp:0},compositionEndData:``,compositionPhase:`idle`,hadOrphanedCompositionEvents:!1,handledSelectionCommandTimeoutId:null,isInsertLineBreak:!1,isInsertTextAfterHandledSelectionCommand:!1,isSelectionChangeFromDOMUpdate:!1,isSelectionChangeFromMouseDown:!1,lastBeforeInputInsertTextTimeStamp:0,lastKeyCode:null,lastKeyDownTimeStamp:0,postDeleteSelectionToRestore:null,unprocessedBeforeInputData:null};let o=e._observer;o!==null&&(o.disconnect(),e._observer=null),t!==null&&(t.textContent=``,function(e,t){let n=`__lexicalKey_${t._key}`;delete e[n]}(t,e)),n!==null&&(n.textContent=``,a.set(`root`,n),Zx(n,e,`root`))}function vx(e){let t=new Set,n=new Set;for(let{klass:r,ownNodeConfig:i}of DC(e)){let e=r.transform;if(!n.has(e)){n.add(e);let i=r.transform();i&&t.add(i)}if(i){let e=i.$transform;e&&t.add(e)}}return t}var yx={$createDOM:(e,t)=>e.createDOM(t._config,t),$decorateDOM:(e,t,n,r)=>{},$exportDOM:(e,t)=>{let n=kx(t,e.getType());return n&&n.exportDOM!==void 0?n.exportDOM(t,e):e.exportDOM(t)},$extractWithChild:(e,t,n,r,i)=>$(e)&&e.extractWithChild(t,n,r),$getDOMSlot:(e,t,n)=>e.getDOMSlot(t),$getSlotTargetElement:(e,t,n,r)=>null,$shouldExclude:(e,t,n)=>$(e)&&e.excludeFromCopy(`html`),$shouldInclude:(e,t,n)=>!t||e.isSelected(t),$updateDOM:(e,t,n,r)=>e.updateDOM(t,n,r._config)};function bx(e){let t=e||{},n=Pb(),r=t.theme||{},i=e===void 0?n:t.parentEditor||null,a=t.disableEvents||!1,o=ex(),s=t.namespace||(i===null?cS():i._config.namespace),c=t.editorState,l=[Zb,vy,ax,Ty,fx,ix,...t.nodes||[]],{onError:u,onWarn:d,html:f}=t,p=t.editable===void 0||t.editable,m;if(e===void 0&&n!==null)m=n._nodes;else{m=new Map;for(let e=0;e`;try{r=JSON.parse(sg)}catch{}Ph(365,String(e-l.length+(t.nodes?t.nodes.length:0)),typeof n==`function`?`${n.name}${typeof n.getType==`function`?` (type ${String(n.getType())})`:``}`:String(n),String(r))}EC(n);let a=n.getType(),o=vx(n);m.set(a,{exportDOM:f&&f.export?f.export.get(n):void 0,klass:n,replace:r,replaceWithKlass:i,sharedNodeState:nne(l[e]),transforms:o})}}let h=new Cx(o,i,m,{disableEvents:a,dom:{...yx,...e&&e.dom},namespace:s,theme:r},u||console.error,d||gx,function(e,t){let n=new Map,r=new Set,i=e=>{Object.keys(e).forEach(t=>{let r=n.get(t);r===void 0&&(r=[],n.set(t,r)),r.push(e[t])})};return e.forEach(e=>{let t=e.klass.importDOM;if(t==null||r.has(t))return;r.add(t);let n=t.call(e.klass);n!==null&&i(n)}),t&&i(t),n}(m,f?f.import:void 0),p,e);return c!==void 0&&(h._pendingEditorState=c,h._dirtyType=2),function(e){e.registerCommand(M_,Hv,0),e.registerCommand(N_,Uv,0),e.registerCommand(P_,Wv,0),e.registerCommand(F_,Gv,0),e.registerCommand(J_,Jv,0)}(h),h}function xx(e,t){let n=e.get(t);e.delete(t),n&&n()}function Sx(e,t,n){return e.set(t,n),xx.bind(null,e,t)}var Cx=class{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_cascadeCount;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_onWarn;_htmlConversions;_window;_editable;_blockCursorElement;_slotsUsed;_inputState;_createEditorArgs;constructor(e,t,n,r,i,a,o,s,c){this._createEditorArgs=c,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new dg,this._updates=[],this._updating=!1,this._cascadeCount=0,this._listeners={decorator:new Map,editable:new Map,mutation:new Map,root:new Map,textcontent:new Map,update:new Map},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=cS(),this._onError=i,this._onWarn=a,this._htmlConversions=o,this._editable=s,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null,this._slotsUsed=!1,this._inputState={collapsedSelectionFormat:{format:0,key:`root`,offset:0,style:``,timeStamp:0},compositionEndData:``,compositionPhase:`idle`,hadOrphanedCompositionEvents:!1,handledSelectionCommandTimeoutId:null,isInsertLineBreak:!1,isInsertTextAfterHandledSelectionCommand:!1,isSelectionChangeFromDOMUpdate:!1,isSelectionChangeFromMouseDown:!1,lastBeforeInputInsertTextTimeStamp:0,lastKeyCode:null,lastKeyDownTimeStamp:0,postDeleteSelectionToRestore:null,unprocessedBeforeInputData:null}}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){return Sx(this._listeners.update,e)}registerEditableListener(e){return Sx(this._listeners.editable,e)}registerDecoratorListener(e){return Sx(this._listeners.decorator,e)}registerTextContentListener(e){return Sx(this._listeners.textcontent,e)}registerRootListener(e){let t=this._listeners.root;return zw(Sx(t,e,e(this._rootElement,null)||void 0),()=>function(e,t,n){let r=e.get(t);r&&r(),e.set(t,t(...n)||void 0)}(t,e,[null,this._rootElement]))}registerCommand(e,t,n){n===void 0&&Ph(35);let r=this._commands;r.has(e)||r.set(e,[new cg,new cg,new cg,new cg,new cg]);let i=r.get(e);i===void 0&&Ph(36,String(e));let a=function(e){return 7&e}(n),o=i[a];return a===n?o.addBack(t):o.addFront(t),()=>{o.delete(t),i.every(e=>e.size===0)&&r.delete(e)}}registerMutationListener(e,t,n){let r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation,a=i.get(t);a===void 0&&(a=new Set,i.set(t,a)),a.add(r);let o=n&&n.skipInitialization;return o!==void 0&&o||this.initializeMutationListener(t,r),()=>{a.delete(r),a.size===0&&i.delete(t)}}getRegisteredNode(e){let t=this._nodes.get(e.getType());return t===void 0&&Ph(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){let n=this._editorState,r=hC(n).get(t.getType());if(!r)return;let i=new Map;for(let e of r.keys())i.set(e,`created`);i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set([`registerMutationListener`])})}registerNodeTransformToKlass(e,t){let n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){let n=this.registerNodeTransformToKlass(e,t),r=[n],i=n.replaceWithKlass;if(i!=null){let e=this.registerNodeTransformToKlass(i,t);r.push(e)}return function(e,t){let n=hC(e.getEditorState()),r=[];for(let e of t){let t=n.get(e);t&&r.push(t)}r.length!==0&&e.update(()=>{for(let e of r)for(let t of e.keys()){let e=Yx(t);e&&e.markDirty()}},e._pendingEditorState===null?{tag:sy}:void 0)}(this,r.map(e=>e.klass.getType())),()=>{r.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,...t){return TS(this,e,...t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let n=bS(this._config.theme,`root`),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,_x(this,t,e,r,{preserveUpdateQueue:!0}),t!==null&&(this._config.disableEvents||cne(t),n!=null&&t.classList.remove(...n)),e!==null){let t=MS(e),r=e.style;r.userSelect=`text`,r.whiteSpace=`pre-wrap`,r.wordBreak=`break-word`,e.setAttribute(`data-lexical-editor`,`true`),this._window=t,this._dirtyType=2,vg(this),this._updateTags.add(sy),Bb(this),this._config.disableEvents||function(e,t){let n=e.ownerDocument;kv.set(e,n);let r=Av.get(n);r===void 0&&(r={editors:new Set,hasShadowEditor:void 0},Av.set(n,r)),r.editors.add(t),r.hasShadowEditor=void 0,e.__lexicalEditor=t;let i=Yv(e);i.push(jv.register(n));for(let n=0;n{$v(e)||(Qv(e),(t.isEditable()||r===`click`)&&a(e,t))}:e=>{if($v(e))return;Qv(e);let n=t.isEditable();switch(r){case`cut`:return n&&TS(t,gv,e);case`copy`:return TS(t,hv,e);case`paste`:return n&&TS(t,B_,e);case`dragstart`:return n&&TS(t,fv,e);case`dragover`:return n&&TS(t,pv,e);case`dragend`:return n&&TS(t,mv,e);case`focus`:return n&&TS(t,Sv,e);case`blur`:return n&&TS(t,Cv,e);case`drop`:return n&&TS(t,uv,e)}};i.push(Ev(e,r,o))}}(e,this),n!=null&&e.classList.add(...n)}else this._window=null,this._updateTags.add(sy),Bb(this);Vb(`root`,this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&Ph(38);let n=e;n._readOnly&&(n=$b(e),n._selection=e._selection?e._selection.clone():null),_g(this);let r=this._pendingEditorState,i=t===void 0?null:t.tag;r===null||r.isEmpty()||(i!=null&&this._updateTags.add(i),Bb(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set(`root`,!1),this._compositionKey=null,this._slotsUsed=this._slotsUsed||e._slotsUsed,Kb(this,()=>{if(i&&this._updateTags.add(i),e._parsed)for(let[e,t]of n._nodeMap.entries())$(t)?this._dirtyElements.set(e,!0):this._dirtyLeaves.add(e)},{discrete:!this._updating||void 0})}parseEditorState(e,t){return function(e,t,n){let r=ex(),i=bb,a=Sb,o=xb,s=t._dirtyElements,c=t._dirtyLeaves,l=t._cloneNotNeeded,u=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,bb=r,Sb=!1,xb=t,Tx(null);try{let i=t._nodes;Rb(e.root,i),n&&n(),r._readOnly=!0,r._parsed=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=c,t._cloneNotNeeded=l,t._dirtyType=u,bb=i,Sb=a,xb=o}return r}(typeof e==`string`?JSON.parse(e):e,this,t)}read(...e){let[t,n]=e.length===1?[`force-commit`,e[0]]:e;return t===`force-commit`&&Bb(this),(t===`pending`?this._pendingEditorState||this._editorState:this.getEditorState()).read(n,{editor:this})}update(e,t){(function(e,t,n){e._updating?e._updates.push([t,n]):Gb(e,t,n)})(this,e,t)}focus(e,t={}){let n=this._rootElement;n!==null&&(n.setAttribute(`autocapitalize`,`off`),Kb(this,()=>{let r=ib(),i=nS();r===null?i.getChildrenSize()!==0&&(t.defaultSelection===`rootStart`?i.selectStart():i.selectEnd()):r.dirty||rS(r.clone()),kS(`focus`),AS(()=>{n.removeAttribute(`autocapitalize`),e&&e()})}),this._pendingEditorState===null&&n.removeAttribute(`autocapitalize`))}blur(){let e=this._rootElement;e!==null&&e.blur();let t=WS(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Vb(`editable`,this,!0,e),this._slotsUsed&&this.update(()=>Tne()))}toJSON(){return{editorState:this._editorState.toJSON()}}};Cx.version=sg;var wx=null;function Tx(e){wx=e}var Ex=Symbol(`INTERNAL_SKIP_AFTER_CLONE_FROM`),Dx=1;function Ox(e,t){let n=kx(e,t);return n===void 0&&Ph(30,t),n}function kx(e,t){return e._nodes.get(t)}var Ax=typeof queueMicrotask==`function`?queueMicrotask:e=>{Promise.resolve().then(e)};function jx(e,t){let n=t===void 0?(()=>{let t=e.getRootNode();return Bx(t)||KS(t)?tC(t):null})():t;if(!iC(n)||n.hasAttribute(`data-lexical-slot`))return!1;let r=$x(n),i=n.nodeName;return oy(r)&&(i===`INPUT`||i===`TEXTAREA`||n.contentEditable===`true`&&Fx(n)==null)}function Mx(e,t,n){let r=e.getRootElement();if(!r)return!1;try{if(!t||!r.contains(t)||!r.contains(n))return!1}catch{return!1}return Px(t)===e&&e.read(`latest`,()=>!jx(t))}function Nx(e){return e instanceof Cx}function Px(e){let t=e;for(;t!=null;){let e=Fx(t);if(Nx(e))return e;t=DS(t)}return null}function Fx(e){return e?e.__lexicalEditor:null}function Ix(e){return Ute.test(e)?`rtl`:Wte.test(e)?`ltr`:null}function Lx(e){return Dy(e)||e.isToken()}function Rx(e){return Lx(e)||e.isSegmented()}function zx(e){return aC(e)&&e.nodeType===3}function Bx(e){return aC(e)&&e.nodeType===9}function Vx(e){let t=e;for(;t!=null;){if(zx(t))return t;t=t.firstChild}return null}function Hx(e,t,n){let r=Qh[t];if(n!==null&&(e&r)===(n&r))return e;let i=e^r;return t===`subscript`?i&=~Qh.superscript:t===`superscript`?i&=~Qh.subscript:t===`lowercase`?(i&=~Qh.uppercase,i&=~Qh.capitalize):t===`uppercase`?(i&=~Qh.lowercase,i&=~Qh.capitalize):t===`capitalize`&&(i&=~Qh.lowercase,i&=~Qh.uppercase),i}function Ux(e){return Cy(e)||cx(e)||Xb(e)}function Wx(e,t){let n=function(){let e=wx;return wx=null,e}();if((t||=n&&n.__key)!=null)return void(e.__key=t);kb(),Ab();let r=Mb(),i=jb(),a=``+Dx++;i._nodeMap.set(a,e),$(e)?r._dirtyElements.set(a,!0):r._dirtyLeaves.add(a),r._cloneNotNeeded.add(a),r._dirtyType===0&&(r._dirtyType=1),e.__key=a}function Gx(e){FC(e)!==null&&Ph(380,e.__key,String(FC(e)));let t=e.getParent();if(t!==null){let n=e.getWritable(),r=t.getWritable(),i=e.getPreviousSibling(),a=e.getNextSibling(),o=a===null?null:a.__key,s=i===null?null:i.__key,c=i===null?null:i.getWritable(),l=a===null?null:a.getWritable();i===null&&(r.__first=o),a===null&&(r.__last=s),c!==null&&(c.__next=o),l!==null&&(l.__prev=s),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function Kx(e){Ab(),ry(e)&&Ph(323,e.__key,e.__type);let t=e.getLatest(),n=t.__parent===null?PC(t)?t.__slotHost:null:t.__parent,r=jb(),i=Mb(),a=r._nodeMap,o=i._dirtyElements;n!==null&&function(e,t,n){let r=e;for(;r!==null;){if(n.has(r))return;let e=t.get(r);if(e===void 0)break;n.set(r,!1),r=e.__parent===null?PC(e)?e.__slotHost:null:e.__parent}}(n,a,o);let s=t.__key;i._dirtyType===0&&(i._dirtyType=1),$(e)?o.set(s,!0):i._dirtyLeaves.add(s)}function qx(e){kb();let t=Mb(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,n!==null){let e=Yx(n);e!==null&&e.getWritable()}if(e!==null){let t=Yx(e);t!==null&&t.getWritable()}}}function Jx(){return Ob()?null:Mb()._compositionKey}function Yx(e,t){let n=(t||jb())._nodeMap.get(e);return n===void 0?null:n}function Xx(e,t){let n=Qx(e,Mb());return n===void 0?null:Yx(n,t)}function Zx(e,t,n){e[`__lexicalKey_${t._key}`]=n}function Qx(e,t){return e[`__lexicalKey_${t._key}`]}function $x(e,t){let n=e;for(;n!=null;){let e=Xx(n,t);if(e!==null)return e;n=DS(n)}return null}function eS(e){let t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function tS(e){return e.read(()=>nS().getTextContent())}function nS(){return jb()._nodeMap.get(`root`)}function rS(e){kb();let t=jb();e!==null&&(e.dirty=!0,e.setCachedNodes(null),Q(e)&&Mb()._slotsUsed&&Zy(e)),t._selection=e}function iS(){kb(),_g(Mb())}function aS(e){let t=function(e,t){let n=e;for(;n!=null;){let e=Qx(n,t);if(e!==void 0)return e;n=DS(n)}return null}(e,Mb());return t===null?null:Yx(t)}function oS(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function sS(e){let t=[];for(let n=e;n!==null;n=n._parentEditor)t.push(n);return t}function cS(){return Math.random().toString(36).replace(/[^a-z]+/g,``).substring(0,5)}function lS(e){return zx(e)?e.nodeValue:null}function uS(e,t,n){let r=WS(NS(t));if(r===null)return;let i=$S(r,t._rootElement),a=i.anchorNode,{anchorOffset:o,focusOffset:s}=i;if(a!==null){let t=lS(a),r=$x(a);if(t!==null&&Cy(r)){if((t===qh||t===Yh)&&n){let e=n.length;t=n,o=e,s=e}t!==null&&dS(r,t,o,s,e)}}}function dS(e,t,n,r,i){let a=e;if(a.isAttached()&&(i||!a.isDirty())){let o=a.isComposing();if(a.isToken()&&o)return;let s=t;if((o||i)&&(t.endsWith(qh)&&(s=t.slice(0,-qh.length)),i)){let e=Yh,t;for(;(t=s.indexOf(e))!==-1;)s=s.slice(0,t)+s.slice(t+e.length),n!==null&&n>t&&(n=Math.max(t,n-e.length)),r!==null&&r>t&&(r=Math.max(t,r-e.length))}let c=a.getTextContent();if(i||s!==c){let t=ib();if(s===``){if(qx(null),Uh||Vh||Kh)a.remove();else{let e=Mb();fS(a,``,t),setTimeout(()=>{e.update(()=>{a.isAttached()&&a.getTextContent()===``&&a.remove()})},20)}return}let i=a.getParent(),c=ab(),l=a.getTextContentSize(),u=Jx(),d=a.getKey();if(a.isToken()&&!o||u!==null&&d===u&&!o||Q(c)&&(i!==null&&!i.canInsertTextBefore()&&c.anchor.offset===0||c.anchor.key===e.__key&&c.anchor.offset===0&&!a.canInsertTextBefore()&&!o||c.focus.key===e.__key&&c.focus.offset===l&&!a.canInsertTextAfter()&&!o))return void a.markDirty();if(!Q(t)||n===null||r===null)return void fS(a,s,t);if(t.setTextNodeRange(a,n,a,r),a.isSegmented()){let e=Sy(a.getTextContent());a.replace(e),a=e}fS(a,s,t)}}}function fS(e,t,n){if(e.setTextContent(t),Q(n)){let t=e.getKey(),r=!1;for(let i of[`anchor`,`focus`]){let a=n[i];a.type===`text`&&a.key===t&&(a.offset=aw(e,a.offset,`clamp`),r=!0)}r&&(n._cachedNodes=null,n._cachedIsBackward=null)}}function pS(e,t,n){let r=t[n]||!1;return r===`any`||r===e[n]}function mS(e,t){return pS(e,t,`altKey`)&&pS(e,t,`ctrlKey`)&&pS(e,t,`shiftKey`)&&pS(e,t,`metaKey`)}function hS(e,t,n){if(!mS(e,n))return!1;if(e.key.toLowerCase()===t.toLowerCase())return!0;if(t.length>1||e.key.length===1&&e.key.charCodeAt(0)<=127)return!1;if(e.code.startsWith(`Digit`)&&/^\d$/.test(t))return e.code===`Digit${t}`;let r=`Key`+t.toUpperCase();return e.code===r}var gS={ctrlKey:!Rh,metaKey:Rh},_S={altKey:Rh,ctrlKey:!Rh};function vS(e){return e.key===`Backspace`}function yS(e){let t=nS();if(Q(e)){let t=e.anchor,n=e.focus,r=t.getNode();if(Qb(r))return t.set(r.getKey(),0,`element`),n.set(r.getKey(),r.getChildrenSize(),`element`),Mg(e),e;let i=r.getTopLevelElementOrThrow(),a=i.getParent();if(a===null)return $(i)&&(t.set(i.getKey(),0,`element`),n.set(i.getKey(),i.getChildrenSize(),`element`),Mg(e)),e;let o=a;return t.set(o.getKey(),0,`element`),n.set(o.getKey(),o.getChildrenSize(),`element`),Mg(e),e}{let e=t.select(0,t.getChildrenSize());return rS(Mg(e)),e}}function bS(e,t){e.__lexicalClassNameCache===void 0&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];if(r!==void 0)return r;let i=e[t];if(typeof i==`string`){let e=Iw(i);return n[t]=e,e}return i}function xS(e,t,n,r,i){if(n.size===0)return;let a=r.__type,o=r.__key,s=t.get(a);s===void 0&&Ph(33,a);let c=s.klass,l=e.get(c);l===void 0&&(l=new Map,e.set(c,l));let u=l.get(o),d=u===`destroyed`&&i===`created`;(u===void 0||d)&&l.set(o,d?`updated`:i)}function SS(e,t,n){let r=e.getParent(),i=n,a=e;return r!==null&&(t&&n===0?(i=a.getIndexWithinParent(),a=r):t||n!==a.getChildrenSize()||(i=a.getIndexWithinParent()+1,a=r)),a.getChildAtIndex(t?i-1:i)}function CS(e,t){let n=e.offset;if(e.type===`element`)return SS(e.getNode(),t,n);{let r=e.getNode();if(t&&n===0||!t&&n===r.getTextContentSize()){let e=t?r.getPreviousSibling():r.getNextSibling();return e===null?SS(r.getParentOrThrow(),t,r.getIndexWithinParent()+ +!t):e}}return null}function wS(e){let t=NS(e).event,n=t&&t.inputType;return n===`insertFromPaste`||n===`insertFromPasteAsQuotation`}function TS(e,t,...n){return Hb(e,t,n[0],e)}function ES(e,t){let n=e._keyToDOMMap.get(t);return n===void 0&&Ph(75,t),n}function DS(e){let t=e.assignedSlot||e.parentElement;if(t!==null)return t;let n=e.parentNode;return KS(n)?n.host:null}function OS(e){return Bx(e)?e:iC(e)?e.ownerDocument:null}function kS(e){kb(),Mb()._updateTags.add(e)}function AS(e){kb(),Mb()._deferred.push(e)}function jS(e,t){let n=e.getParent();for(;n!==null;){if(n.is(t))return!0;n=n.getParent()}return!1}function MS(e){let t=OS(e);return t?t.defaultView:null}function NS(e){let t=e._window;return t===null&&Ph(78),t}function PS(e){return $(e)&&e.isInline()||Xb(e)&&e.isInline()}function FS(e){let t=e.getLatest();for(;t!==null;){if(FC(t)!==null&&$(t))return t;let e=t.getParentOrThrow();if(LS(e))return e;t=e}return t}function IS(e){return $(e)&&e.isShadowRoot()}function LS(e){return Qb(e)||IS(e)}function RS(e,t=!1){let n=e.constructor.clone(e,Ex);return Wx(n,null),n.afterCloneFrom(e),t||n.resetOnCopyNodeFrom(e),n}function zS(e){let t=Mb(),n=e.getType(),r=kx(t,n);r===void 0&&Ph(200,e.constructor.name,n);let{replace:i,replaceWithKlass:a}=r;if(i!==null){let t=i(e),r=t.constructor;return a===null?t instanceof e.constructor&&r!==e.constructor||Ph(202,r.name,r.getType(),e.constructor.name,n):t instanceof a||Ph(201,a.name,a.getType(),r.name,r.getType(),e.constructor.name,n),t.__key===e.__key&&Ph(203,e.constructor.name,n,r.name,r.getType()),t}return e}function BS(e,t){!Qb(e.getParent())||$(t)||Xb(t)||Ph(99)}function VS(e){let t=Yx(e);return t===null&&Ph(63,e),t}function HS(e){if(!e||e.isInline())return!1;if(Xb(e))return!0;if($(e)){if(e.isShadowRoot()){let t=e.getParent();return!($(t)&&t.isShadowRoot())}return!e.canBeEmpty()}return!1}function US(e,t,n){n.style.removeProperty(`caret-color`),t._blockCursorElement=null;let r=e.parentElement;r!==null&&r.removeChild(e)}function WS(e){return Ih?(e||window).getSelection():null}function GS(e){let t=MS(e);return t?t.getSelection():null}function KS(e){return oC(e)&&`host`in e}var qS=[];function JS(e){let t=e.getRootNode();if(t===e||!KS(t))return qS;let n=[t],r=t.host;for(;;){let e=r.getRootNode();if(e===r||!KS(e))break;n.push(e),r=e.host}return n}function*YS(e){let t=[e],n;for(;n=t.pop();){yield*n.querySelectorAll(`[data-lexical-editor="true"]`);let e=(Bx(n)?n:n.ownerDocument).createTreeWalker(n,NodeFilter.SHOW_ELEMENT),r;for(;r=e.nextNode();)r.shadowRoot&&t.push(r.shadowRoot)}}function XS(e){return e===null?document:e.ownerDocument}function ZS(){let e=Pb();return XS(e===null?null:e._rootElement)}function QS(e,t){if(t===null||typeof e.getComposedRanges!=`function`)return null;let n=JS(t);if(n.length===0)return null;let r=e.getComposedRanges;try{let t=r.call(e,{shadowRoots:n})[0];if(t!==void 0)return t}catch{}try{let t=r.apply(e,n)[0];if(t!==void 0)return t}catch{}return null}function One(e,t){let n=QS(e,t);if(n!==null){let e=kne(n);if(e!==null)return e}return e.rangeCount>0?e.getRangeAt(0):null}function $S(e,t){let n=QS(e,t);return n===null?e:Ane(n,jne(e))}function kne(e){let t=e.startContainer.ownerDocument;if(t===null)return null;let n=t.createRange();try{return n.setStart(e.startContainer,e.startOffset),n.setEnd(e.endContainer,e.endOffset),n}catch{return null}}function Ane(e,t){let{startContainer:n,startOffset:r,endContainer:i,endOffset:a}=e;return t===`backward`?{anchorNode:i,anchorOffset:a,direction:t,focusNode:n,focusOffset:r}:{anchorNode:n,anchorOffset:r,direction:t,focusNode:i,focusOffset:a}}function jne(e){return e.direction}function eC(e){let t=e.getRootNode();return Bx(t)||KS(t)?t.activeElement:null}function tC(e){let t=e.activeElement;for(;t!==null&&t.shadowRoot!==null;){let e=t.shadowRoot.activeElement;if(e===null)break;t=e}return t}function nC(e){let t=e.target;if(t!==null&&iC(t)&&t.shadowRoot!==null&&typeof e.composedPath==`function`){let t=e.composedPath();if(t.length>0)return t[0]}return t}function rC(e){return iC(e)&&e.tagName===`A`}function iC(e){return aC(e)&&e.nodeType===1}function aC(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function oC(e){return aC(e)&&e.nodeType===11}var Mne=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/i;function sC(e){return!(!iC(e)||!e.style.display.startsWith(`inline`))||Mne.test(e.nodeName)}var Nne=/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/i;function cC(e){return(!iC(e)||!e.style.display.startsWith(`inline`))&&Nne.test(e.nodeName)}function lC(e){if(Xb(e)&&!e.isInline())return!0;if(!$(e)||LS(e))return!1;let t=e.getFirstChild(),n=t===null||cx(t)||Cy(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function uC(){return Mb()}function dC(e=uC()){return e._config.dom||yx}function fC(e,t,n=uC()){let r=dC(n).$getDOMSlot(e,t,n);return $(e)&&(Pne(r)||Ph(344,e.getKey(),e.getType())),r}function Pne(e){return e instanceof ig}function pC(e,t,n=uC()){return Vx(fC(e,t,n).element)}var mC=new WeakMap,Fne=new Map;function hC(e){if(!e._readOnly&&e.isEmpty())return Fne;e._readOnly||Ph(192);let t=mC.get(e);return t||(t=function(e){let t=new Map;for(let[n,r]of e._nodeMap){let e=r.__type,i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,r)}return t}(e),mC.set(e,t)),t}function gC(e){let t=e.constructor.clone(e,Ex);return t.afterCloneFrom(e),t}function Ine(e){return(t=gC(e))[ny]=!0,t;var t}function _C(e,t){let n=e.getAttribute(`data-lexical-indent`);if(n!==null){let e=parseInt(n,10);if(Number.isFinite(e)&&e>=0)return void t.setIndent(e)}let r=parseInt(e.style.paddingInlineStart,10)||0,i=Math.round(r/40);t.setIndent(i)}function vC(e,t){let n=t.getAttribute(`dir`);return n===`ltr`||n===`rtl`?e.setDirection(n):e}function yC(e,t){let n=t.style.textAlign;return n&&n in $h?e.setFormat(n):e}function bC(e,t){e.__lexicalUnmanaged=!0,t&&t.captureSelection!==void 0&&(e.__lexicalCapturedSelection=t.captureSelection)}function xC(e){return!0===e.__lexicalUnmanaged}function Lne(e,t=uC()){let n=t.isEditable();e.contentEditable=n?`true`:`false`,n?e.__lexicalEditor=t:delete e.__lexicalEditor}function SC(e,t){let n=e;for(;n!=null;){if(!0===n.__lexicalCapturedSelection)return!0;if(iC(n)&&n.hasAttribute(`data-lexical-slot`)||Qx(n,t)!==void 0)return!1;n=DS(n)}return!1}function CC(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)&&e[t]!==ay[t]}var wC=new WeakMap,TC=Symbol(`lexical.synthesizedGetType`);function EC(e){let t=wC.get(e);if(t)return t;let n=e.prototype!=null&&eg in e.prototype?e.prototype[eg]():void 0,r=function(e){if(!(e===ay||e.prototype instanceof ay)){let t=``,n=``;try{t=e.getType()}catch{}try{Cx.version&&(n=JSON.parse(Cx.version))}catch{}Ph(290,e.name,t,n)}return e===Yb||e===qb||e===ay}(e),i=!r&&CC(e,`getType`)?e.getType:void 0,a=i&&!(TC in i)?i.call(e):void 0,o,s=a;if(n){if(a)o=n[a];else{for(let[e,t]of Object.entries(n))s=e,o=t;if(!o)for(let e of Object.getOwnPropertySymbols(n)){let t=n[e];if(t){o=t;break}}}}if(!r&&s){if(!CC(e,`getType`)){let t=e,n=function(){return this===t?s:ay.getType.call(this)};n[TC]=!0,e.getType=n}if(CC(e,`clone`)||(e.clone=(t,n)=>{Tx(t);let r=new e;return n!==Ex&&r.afterCloneFrom(t),r}),CC(e,`importJSON`)||(e.importJSON=o&&o.$importJSON||(t=>new e().updateFromJSON(t))),!CC(e,`importDOM`)&&o){let{importDOM:t}=o;t&&(e.importDOM=()=>t)}}let c={klass:e,ownNodeConfig:o,ownNodeType:s};return wC.set(e,c),c}function*DC(e){for(let t=e;t&&(t===ay||oy(t.prototype));){let e=EC(t);yield e,t=e.ownNodeConfig&&e.ownNodeConfig.extends||jC(t)}}function OC(e){let t=uC();return kb(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e))).klass}var kC=(e,t)=>{let n=e;for(;n!=null&&!Qb(n);){if(t(n))return n;n=n.getParent()}return null};function AC(e,t){let n=[],r=e.__first;for(;r!==null;){let e=t===null?Yx(r):t.get(r);e??Ph(174),n.push(r),r=e.__next}return n}function jC(e){let t=Object.getPrototypeOf(e);if(typeof t==`function`&&t!==Function.prototype)return t;let n=e.prototype&&Object.getPrototypeOf(e.prototype);return n?n.constructor:null}var MC=new Map;function NC(e){return $(e)||Xb(e)}function PC(e){return $(e)||Xb(e)}function FC(e){let t=e.getLatest();return PC(t)?t.__slotHost:null}function IC(e){let t=FC(e);if(t===null)return null;let n=Yx(t);return $(n)||Xb(n)||Ph(370),n}function Rne(e){let t=IC(e);if(t===null)return null;let n=e.getLatest().__key;for(let[e,r]of RC(t))if(r===n)return e;return null}function LC(e){let t=e.getLatest();for(;t!==null;){if(FC(t)!==null)return t;t=t.getParent()}return null}function RC(e){let t=e.getLatest();return NC(t)&&t.__slots!==null?t.__slots:MC}function zC(e){return Array.from(RC(e).keys())}function BC(e,t){let n=RC(e).get(t);return n===void 0?null:Yx(n)}var zne=[`__proto__`,`constructor`,`prototype`],VC=Symbol(`slotMapOwner`);function HC(e){let t=e.__slots;return t!==null&&t[VC]===e||(t=new Map(t),t[VC]=e,e.__slots=t),t}var UC=new WeakMap,Bne=[];function Vne(e){for(let{ownNodeConfig:t}of DC(e)){let e=t&&t.slots;if(e)return e}return Bne}function WC(e){let t=``;for(let n of zC(e)){let r=BC(e,n);r!==null&&(t+=r.getTextContent())}return t}function GC(e,t,n){let r=n.get(e),i=n.get(t);return r===void 0?i===void 0?et):1:i===void 0?-1:r-i}function Hne(e){let t=e.__slots;if(t===null||t.size<2)return;let n=function(e){let t=UC.get(e);if(t===void 0){let n=Vne(e),r=new Map;for(let t of n)zne.includes(t)&&Ph(371,e.name,t),r.has(t)&&Ph(372,e.name,t),r.set(t,r.size);t=r,UC.set(e,t)}return t}(e.constructor),r=null,i=!0;for(let e of t.keys()){if(r!==null&&GC(r,e,n)>0){i=!1;break}r=e}if(i)return;let a=Array.from(t).sort(([e],[t])=>GC(e,t,n));t.clear();for(let[e,n]of a)t.set(e,n)}function KC(e,t,n){t!==`__proto__`&&t!==`constructor`&&t!==`prototype`||Ph(373,t);let r=e.getLatest();if(r.__slots!==null&&r.__slots.get(t)===n.getLatest().__key)return r;(!$(n)&&!Xb(n)||n.isInline())&&Ph(374,n.__key);let i=e.getWritable(),a=HC(i),o=a.get(t);o!==void 0&&qC(o);let s=n.getWritable(),c=IC(s);if(c!==null){let e=Rne(s);e!==null&&HC(c.getWritable()).delete(e),s.__slotHost=null}return Gx(s),s.__slotHost=i.__key,a.set(t,s.__key),Hne(i),function(){let e=uC();e._slotsUsed=!0,e._pendingEditorState&&(e._pendingEditorState._slotsUsed=!0)}(),i}function Une(e,t){let n=e.getWritable();if(n.__slots===null)return n;let r=n.__slots.get(t);return r!==void 0&&(qC(r),HC(n).delete(t)),n}function qC(e){let t=Yx(e);if(t===null)return;let n=t.getWritable();PC(n)||Ph(377,e),n.__slotHost=null,n.remove()}var Wne={next:`previous`,previous:`next`},JC=class{origin;constructor(e){this.origin=e}[Symbol.iterator](){return fw({hasNext:tw,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return rw(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return rw(this.origin,this.direction)}remove(){let e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){let n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(n===null?this.insert(e):n.replace(e,t)),this}splice(e,t,n=`next`){let r=n===this.direction?t:Array.from(t).reverse(),i=this,a=this.getParentAtCaret(),o=new Map;for(let t=i.getAdjacentCaret();t!==null&&o.size0){let t=i.getNodeAtCaret();if(t){if(o.delete(t.getKey()),o.delete(e.getKey()),!(t.is(e)||i.origin.is(e))){let n=e.getParent();n&&n.is(a)&&e.remove(),t.replace(e)}}else t===null&&Ph(263,Array.from(o).join(` `))}else i.insert(e);i=rw(e,this.direction)}for(let e of o.values())e.remove();return this}},YC=class e extends JC{type=`child`;getLatest(){let e=this.origin.getLatest();return e===this.origin?this:sw(e,this.direction)}getParentCaret(e=`root`){return rw(ZC(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=XC(this.direction);return rw(this.getNodeAtCaret(),e)||sw(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}},Gne={root:Qb,shadowRoot:LS};function XC(e){return Wne[e]}function ZC(e,t=`root`){return e===null||Gne[t](e)?null:FC(e)===null?e:null}var QC=class e extends JC{type=`sibling`;getLatest(){let e=this.origin.getLatest();return e===this.origin?this:rw(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return $(this.origin)?sw(this.origin,this.direction):null}getParentCaret(e=`root`){return rw(ZC(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=XC(this.direction);return rw(this.getNodeAtCaret(),e)||sw(this.origin.getParentOrThrow(),e)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof e||t instanceof $C)&&this.direction===t.direction&&this.origin.is(t.origin)}},$C=class e extends JC{type=`text`;offset;constructor(e,t){super(e),this.offset=t}getLatest(){let e=this.origin.getLatest();return e===this.origin?this:iw(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e=`root`){return rw(ZC(this.getParentAtCaret(),e),this.direction)}getFlipped(){return iw(this.origin,XC(this.direction),this.offset)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof QC||t instanceof e)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return rw(this.origin,this.direction)}};function ew(e){return e instanceof $C}function tw(e){return e instanceof QC}function nw(e){return e instanceof YC}var Kne={next:class extends $C{direction=`next`;getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends $C{direction=`previous`;getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},qne={next:class extends QC{direction=`next`;getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends QC{direction=`previous`;getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Jne={next:class extends YC{direction=`next`;getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends YC{direction=`previous`;getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function rw(e,t){return e?new qne[t](e):null}function iw(e,t,n){return e?new Kne[t](e,aw(e,n)):null}function aw(e,t,n=`error`){let r=e.getTextContentSize(),i=t===`next`?r:t===`previous`?0:t;return(i<0||i>r)&&(n!==`clamp`&&Fh(284,String(t),String(r),e.getKey()),i=i<0?0:r),i}function ow(e,t){return new Zne(e,t)}function sw(e,t){return $(e)?new Jne[t](e):null}function Yne(e){return e&&e.getChildCaret()||e}function cw(e){return e&&Yne(e.getAdjacentCaret())}var Xne=class e{type=`node-caret-range`;direction;anchor;focus;constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){let t=this.anchor.getLatest(),n=this.focus.getLatest();return t===this.anchor&&n===this.focus?this:new e(t,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){let e=e=>{let t=this[e].getLatest();return ew(t)?function(e,t){let{direction:n,origin:r}=e;return ow(e,aw(r,t===`focus`?XC(n):n)-e.offset)}(t,e):null},t=e(`anchor`),n=e(`focus`);if(t&&n){let{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[ow(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e=`root`){let t=ew(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=ew(n),i=t=>t.isSameNodeCaret(n)?null:cw(t)||t.getParentCaret(e);return fw({hasNext:e=>e!==null&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:i(t),map:e=>e,step:i})}[Symbol.iterator](){return this.iterNodeCarets(`root`)}},Zne=class{type=`slice`;caret;distance;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){let{distance:e,caret:{offset:t}}=this,n=t+e;return n{let n;for(let r=c;rn.has(e.getKey())&&lC(e));return d&&zC(d).length>0?null:u&&d?[u,d]:null}(d,f,c);if(p){let[e,t]=p;sw(e,`previous`).splice(0,t.getChildren());let n=t.getParent();for(t.remove(!0);n&&n.isEmpty();){let e=n;n=n.getParent(),e.remove(!0)}}else if(f){let e=function(e){if(nw(e)){let t=e.origin;if(lC(t))return t}else{let t=e.getParentAtCaret();if(t&&lC(t))return t}return null}(f),t=e&&e.getParent(),n=e&&e.getParents().findLast(IS);if(e&&t&&!Qb(t)&&e.isEmpty()&&c.has(e.getKey())&&zC(e).length===0&&(!n||c.has(n.getKey()))){e.remove(!0);let n=t;for(;n&&!Qb(n)&&n.isEmpty();){let e=n.getParent();if(e&&Qb(e)&&e.getChildrenSize()<=1)break;let t=n;n=e,t.remove(!0)}}}let m=[d,f,...o,...s].find(Tw);if(m)return uw(Ow(Ew(m),e.direction));Ph(269,JSON.stringify(o.map(e=>e.origin.__key)))}function Ew(e){let t=function(e){let t=e;for(;nw(t);){let e=cw(t);if(!nw(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(Cy(t.origin))return ew(t)?t:iw(t.origin,n,n);let r=t.getAdjacentCaret();return tw(r)&&Cy(r.origin)?iw(r.origin,n,XC(n)):t}function Dw(e){return ew(e)&&e.offset!==aw(e.origin,e.direction)}function Ow(e,t){return e.direction===t?e:e.getFlipped()}function kw(e,t){return e.direction===t?e:dw(Ow(e.focus,t),Ow(e.anchor,t))}function Aw(e,t,n){let r=sw(e,`next`);for(let e=0;e0||!a&&n.canBeEmpty()&&i(n,`last`))&&o.insert(t(n).splice(0,0,r))}return o}function Mw(e,t,n){let r=Ow(t,`next`);ew(r)&&(r.offset===0?r=rw(r.origin,`previous`).getFlipped():r.offset===r.origin.getTextContentSize()&&(r=rw(r.origin,`next`))),r.origin.is(e)&&(tw(r)||Ph(342,e.getKey(),e.getType()),r=Cw(r)),(e.is(r.getNodeAtCaret())||e.is(r.getFlipped().getNodeAtCaret()))&&e.remove(!0);for(let e=r;e;e=jw(e,n))r=e;return ew(r)&&Ph(283),r.insert(e.isInline()?mx().append(e):e),Ow(rw(e.getLatest(),`next`),t.direction)}function Nw(e){return e}function Pw(e){return e}function Fw(e,t){if(!t||e===t)return e;for(let n in t)if(e[n]!==t[n])return{...e,...t};return e}function Iw(...e){let t=[];for(let n of e)if(n&&typeof n==`string`)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}function Lw(e,...t){let n=Iw(...t);n.length>0&&e.classList.add(...n)}function Rw(e,...t){let n=Iw(...t);n.length>0&&e.classList.remove(...n)}function zw(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function Bw(e){let t=uC().getElementByKey(e.getKey());if(t===null)return null;let n=t.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(t)}function Vw(e){return Bw(Qb(e)?e:e.getParentOrThrow())}function Hw(e){let t=Vw(e);return t!==null&&t.direction===`rtl`}function Uw(e,t,n=`self`){let r=e.getStartEndPoints();if(t.isSelected(e)&&!Rx(t)&&r!==null){let[i,a]=r,o=e.isBackward(),s=i.getNode(),c=a.getNode(),l=t.is(s),u=t.is(c);if(l||u){let[r,i]=By(e),a=s.is(c),l=t.is(o?c:s),u=t.is(o?s:c),d,f=0;a?(f=r>i?i:r,d=r>i?r:i):l?(f=o?i:r,d=void 0):u&&(f=0,d=o?r:i);let p=t.__text.slice(f,d);p!==t.__text&&(n===`clone`&&(t=Ine(t)),t.__text=p)}}return t}function tre(e,t){let n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function Ww(e,t,n){let r=vw(e,n);if(Dw(r))return!1;for(;r;r=r.getParentCaret()){let e=r.getParentAtCaret();if(!e||r.getNodeAtCaret())return!1;if(t.is(e))return!0}return!1}function Gw(e,t,n=tre){if(!e)return;let r=e.getStartEndPoints(),i=!1,a=null,o=new Map;if(r){let[t,n]=r,s=kC(t.getNode(),lC);a=kC(n.getNode(),lC);let c=e.isBackward()?`previous`:`next`;i=$(a)&&!a.is(s)&&function(e,t,n){let r=e.getNode();return(!$(r)||!r.isEmpty())&&Ww(e,t,n)}(n,a,XC(c)),$(s)&&o.set(s.getKey(),s),$(a)&&!i&&o.set(a.getKey(),a)}for(let t of e.getNodes())if($(t)&&lC(t)){if(i&&t.is(a))continue;o.set(t.getKey(),t)}else if(!r){let e=kC(t,lC);$(e)&&o.set(e.getKey(),e)}for(let e of o.values()){let r=t();n(e,r),e.replace(r,!0)}}function Kw(e){let t=qw(e);return t!==null&&t.writingMode===`vertical-rl`}function qw(e){let t=e.anchor.getNode();return $(t)?Bw(t):Vw(t)}function Jw(e,t){let n=Kw(e)?!t:t;Yw(e)&&(n=!n);let r=vw(e.focus,n?`previous`:`next`);if(Dw(r))return!1;if(ew(r)&&!Dy(r.origin)&&r.origin.isUnmergeable()){let e=r.getNodeAtCaret();if(Cy(e)&&!Dy(e))return!0}for(let e of lw(r)){if(nw(e))return!e.origin.isInline();if(!$(e.origin)){if(Xb(e.origin))return!0;break}}return!1}function nre(e,t,n,r){e.modify(t?`extend`:`move`,n,r)}function Yw(e){let t=qw(e);return t!==null&&t.direction===`rtl`}function Xw(e,t,n){let r=Yw(e),i;i=Kw(e)||r?!n:n,nre(e,t,i,`character`)}function rre(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Zw(e,t){let n=e;for(;n!=null;){if(n instanceof t)return n;n=n.getParent()}return null}function ire(e){let t=kC(e,e=>$(e)&&!e.isInline());return $(t)||rre(4,e.__key),t}function Qw(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}function $w(e){let t=null;if(Qw(e,DragEvent)?t=e.dataTransfer:Qw(e,ClipboardEvent)&&(t=e.clipboardData),t===null)return[!1,[],!1];let n=t.types,r=n.includes(`Files`),i=n.includes(`text/html`)||n.includes(`text/plain`);return[r,Array.from(t.files),i]}function eT(e){let t=ib();if(!Q(t))return!1;let n=new Set,r=t.getNodes();for(let t=0;t$(e)&&!e.isInline());if(o===null)continue;let s=o.getKey();o.canIndent()&&!n.has(s)&&(n.add(s),e(o))}return n.size>0}function tT(e,t){let n=[],r=Array.from(e).reverse();for(let e=r.pop();e!==void 0;e=r.pop())if(t(e))n.push(e);else if($(e))for(let t of are(e))r.push(t);return n}function are(e){return ore(sw(e,`previous`))}function ore(e){return fw({hasNext:tw,initial:e.getAdjacentCaret(),map:e=>e.origin.getLatest(),step:e=>e.getAdjacentCaret()})}function nT(e,t){let n=ib();if(Q(n)&&n.isCollapsed()){let r=kC(n.anchor.getNode(),e);if(r){let e=r.getParent();if(e!==null&&e.getFirstChild()===r&&sre(n.anchor,r))return r.insertBefore(mx()).selectEnd(),t&&t.preventDefault(),!0}}return!1}function rT(e,t){let n=ib();if(Q(n)&&n.isCollapsed()){let r=kC(n.anchor.getNode(),e);if(r){let e=r.getParent();if(e!==null&&e.getLastChild()===r&&cre(n.anchor,r))return r.insertAfter(mx()).selectEnd(),t&&t.preventDefault(),!0}}return!1}function sre(e,t){return Ww(e,t,`previous`)}function cre(e,t){return Ww(e,t,`next`)}var lre=Symbol.for(`preact-signals`);function iT(){if(lT>1)return void lT--;let e,t=!1;for(function(){let e=cT;for(cT=void 0;e!==void 0;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();oT!==void 0;){let n=oT;for(oT=void 0,uT++;n!==void 0;){let r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&gT(n))try{n.c()}catch(n){t||=(e=n,!0)}n=r}}if(uT=0,lT--,t)throw e}var aT,oT;function sT(e){let t=aT;aT=void 0;try{return e()}finally{aT=t}}var cT,lT=0,uT=0,dT=0,fT=0;function pT(e){if(aT===void 0)return;let t=e.n;return t===void 0||t.t!==aT?(t={i:0,S:e,p:aT.s,n:void 0,t:aT,e:void 0,x:void 0,r:t},aT.s!==void 0&&(aT.s.n=t),aT.s=t,e.n=t,32&aT.f&&e.S(t),t):t.i===-1?(t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=aT.s,t.n=void 0,aT.s.n=t,aT.s=t),t):void 0}function mT(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function hT(e,t){return new mT(e,t)}function gT(e){for(let t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function _T(e){for(let t=e.s;t!==void 0;t=t.n){let n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function vT(e){let t,n=e.s;for(;n!==void 0;){let e=n.p;n.i===-1?(n.S.U(n),e!==void 0&&(e.n=n.n),n.n!==void 0&&(n.n.p=e)):t=n,n.S.n=n.r,n.r!==void 0&&(n.r=void 0),n=e}e.s=t}function yT(e,t){mT.call(this,void 0),this.x=e,this.s=void 0,this.g=fT-1,this.f=4,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}function bT(e){let t=e.m;if(e.m=void 0,typeof t==`function`){lT++;let n=aT;aT=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,xT(e),t}finally{aT=n,iT()}}}function xT(e){for(let t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,bT(e)}function ure(e){if(aT!==this)throw Error(`Out-of-order effect`);vT(this),aT=e,this.f&=-2,8&this.f&&xT(this),iT()}function ST(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t?.name}function CT(e,t){let n=new ST(e,t);try{n.c()}catch(e){throw n.d(),e}let r=n.d.bind(n);return r[Symbol.dispose]=r,r}mT.prototype.brand=lre,mT.prototype.h=function(){return!0},mT.prototype.S=function(e){let t=this.t;t!==e&&e.e===void 0&&(e.x=t,this.t=e,t===void 0?sT(()=>{var e;(e=this.W)==null||e.call(this)}):t.e=e)},mT.prototype.U=function(e){if(this.t!==void 0){let t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&sT(()=>{var e;(e=this.Z)==null||e.call(this)}))}},mT.prototype.subscribe=function(e){return CT(()=>{let t=this.value,n=aT;aT=void 0;try{e(t)}finally{aT=n}},{name:`sub`})},mT.prototype.valueOf=function(){return this.value},mT.prototype.toString=function(){return this.value+``},mT.prototype.toJSON=function(){return this.value},mT.prototype.peek=function(){let e=aT;aT=void 0;try{return this.value}finally{aT=e}},Object.defineProperty(mT.prototype,"value",{get(){let e=pT(this);return e!==void 0&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(uT>100)throw Error(`Cycle detected`);(function(e){lT!==0&&uT===0&&e.l!==dT&&(e.l=dT,cT={S:e,v:e.v,i:e.i,o:cT})})(this),this.v=e,this.i++,fT++,lT++;try{for(let e=this.t;e!==void 0;e=e.x)e.t.N()}finally{iT()}}}}),yT.prototype=new mT,yT.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===fT))return!0;if(this.g=fT,this.f|=1,this.i>0&&!gT(this))return this.f&=-2,!0;let e=aT;try{_T(this),aT=this;let e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return aT=e,vT(this),this.f&=-2,!0},yT.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(let e=this.s;e!==void 0;e=e.n)e.S.S(e)}mT.prototype.S.call(this,e)},yT.prototype.U=function(e){if(this.t!==void 0&&(mT.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(let e=this.s;e!==void 0;e=e.n)e.S.U(e)}},yT.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(yT.prototype,"value",{get(){if(1&this.f)throw Error(`Cycle detected`);let e=pT(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),ST.prototype.c=function(){let e=this.S();try{if(8&this.f||this.x===void 0)return;let e=this.x();typeof e==`function`&&(this.m=e)}finally{e()}},ST.prototype.S=function(){if(1&this.f)throw Error(`Cycle detected`);this.f|=1,this.f&=-9,bT(this),_T(this),lT++;let e=aT;return aT=this,ure.bind(this,e)},ST.prototype.N=function(){2&this.f||(this.f|=2,this.u=oT,oT=this)},ST.prototype.d=function(){this.f|=8,1&this.f||xT(this)},ST.prototype.dispose=function(){this.d()};function wT(e){return(typeof e.nodes==`function`?e.nodes():e.nodes)||[]}function TT(e,t){let n;return hT(e(),{unwatched(){n&&=(n(),void 0)},watched(){this.value=e(),n=t(this)}})}function ET(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}var DT;try{DT=`0.49.0+prod.esm`}catch{}var OT=DT??`"+source"`,kT=new Set([`__proto__`,`constructor`,`prototype`]);function AT(e,t){if(e&&t&&!Array.isArray(t)&&typeof e==`object`&&typeof t==`object`){let n=e,r=t;for(let e in r)!kT.has(e)&&Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=AT(n[e],r[e]));return e}return t}var jT=0,MT=1,NT=2,PT=3,FT=4,IT=5,LT=6,RT=7;function zT(e){return e.id===jT}function BT(e){return e.id===NT}function VT(e){return function(e){return e.id===MT}(e)||ET(305,String(e.id),String(MT)),Object.assign(e,{id:NT})}var HT=new Set,UT=class{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:jT}}mergeConfigs(){let e=this.extension.config||{},t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):Fw;for(let n of this.configs)e=t(e,n);return e}init(e){let t=this.state;BT(t)||ET(306,String(t.id));let n={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},r={...n,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},i=function(e,t,n){return Object.assign(e,{config:t,id:PT,registerState:n})}(t,this.mergeConfigs(),n),a;this.state=i,this.extension.init&&(a=this.extension.init(e,i.config,n)),this.state=function(e,t,n){return Object.assign(e,{id:FT,initResult:t,registerState:n})}(i,a,r)}build(e){let t=this.state,n;t.id!==FT&&ET(307,String(t.id),String(IT)),this.extension.build&&(n=this.extension.build(e,t.config,t.registerState));let r={...t.registerState,getOutput:()=>n,getSignal:this.getSignal.bind(this)};this.state=function(e,t,n){return Object.assign(e,{id:IT,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;let n=this.state;n.id!==IT&&ET(308,String(n.id),String(IT));let r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:LT})}(n),()=>{let e=this.state;e.id!==RT&&ET(309,String(n.id),String(RT)),this.state=function(e){return Object.assign(e,{id:IT})}(e),r&&r()}}afterRegistration(e){let t=this.state,n;return t.id!==LT&&ET(310,String(t.id),String(LT)),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:RT})}(t),n}getSignal(){return this._signal===void 0&&ET(311),this._signal}getInitResult(){this.extension.init===void 0&&ET(312,this.extension.name);let e=this.state;return function(e){return e.id>=FT}(e)||ET(313,String(e.id),String(FT)),e.initResult}getInitPeer(e){let t=this.builder.extensionNameMap.get(e);return t?t.getExtensionInitDependency():void 0}getExtensionInitDependency(){let e=this.state;return function(e){return e.id>=PT}(e)||ET(314,String(e.id),String(PT)),{config:e.config}}getPeer(e){let t=this.builder.extensionNameMap.get(e);return t?t.getExtensionDependency():void 0}getInitDependency(e){let t=this.builder.getExtensionRep(e);return t===void 0&&ET(315,this.extension.name,e.name),t.getExtensionInitDependency()}getDependency(e){let t=this.builder.getExtensionRep(e);return t===void 0&&ET(315,this.extension.name,e.name),t.getExtensionDependency()}getState(){let e=this.state;return function(e){return e.id>=RT}(e)||ET(316,String(e.id),String(RT)),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||HT}getPeerNameSet(){let e=this._peerNameSet;return e||(e=new Set((this.extension.peerDependencies||[]).map(([e])=>e)),this._peerNameSet=e),e}getExtensionDependency(){if(!this._dependency){let e=this.state;(function(e){return e.id>=IT})(e)||ET(317,this.extension.name),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}},WT={tag:sy};function GT(){let e=nS();e.isEmpty()&&e.append(mx())}var KT=Nw({config:Pw({setOptions:WT,updateOptions:WT}),init:({$initialEditorState:e=GT})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){let i=r.getInitResult();if(!i.initialized){i.initialized=!0;let{$initialEditorState:r}=i;if(nx(r))e.setEditorState(r,n);else if(typeof r==`function`)e.update(()=>{r(e)},t);else if(r&&(typeof r==`string`||typeof r==`object`)){let t=e.parseEditorState(r);e.setEditorState(t,n)}}return()=>{}},name:`@lexical/extension/InitialState`,nodes:[Zb,vy,ax,Ty,fx]}),qT=Symbol.for(`@lexical/extension/LexicalBuilder`);function JT(){}function YT(e){throw e}function XT(e){return Array.isArray(e)?e:[e]}var ZT=OT,QT=class e{roots;extensionNameMap;outgoingConfigEdges;incomingEdges;conflicts;_sortedExtensionReps;PACKAGE_VERSION;constructor(e){this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=ZT,this.roots=e;for(let t of e)this.addExtension(t)}static fromExtensions(t){let n=[XT(KT)];for(let e of t)n.push(XT(e));return new e(n)}static maybeFromEditor(t){let n=t[qT];return n&&(n.PACKAGE_VERSION!==ZT&&ET(292,n.PACKAGE_VERSION,ZT),n instanceof e||ET(293)),n}static fromEditor(t){let n=e.maybeFromEditor(t);return n===void 0&&ET(294),n}constructEditor(){let{$initialEditorState:e,onError:t,onWarn:n,...r}=this.buildCreateEditorArgs(),i=Object.assign(bx({...r,...t?{onError:e=>{t(e,i)}}:{},...n?{onWarn:e=>{n(e,i)}}:{}}),{[qT]:this});for(let e of this.sortedExtensionReps())e.build(i);return i}buildEditor(){let e=JT;function t(){try{e()}finally{e=JT}}let n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=zw(this.registerEditor(n),()=>n.setRootElement(null)),n}hasExtensionByName(e){return this.extensionNameMap.has(e)}getExtensionRep(e){let t=this.extensionNameMap.get(e.name);if(t)return t.extension!==e&&ET(295,e.name),t}addEdge(e,t,n){let r=this.outgoingConfigEdges.get(e);r?r.set(t,n):this.outgoingConfigEdges.set(e,new Map([[t,n]]));let i=this.incomingEdges.get(t);i?i.add(e):this.incomingEdges.set(t,new Set([e]))}addExtension(e){this._sortedExtensionReps!==void 0&&ET(296);let[t]=XT(e);typeof t.name!=`string`&&ET(297,typeof t.name);let n=this.extensionNameMap.get(t.name);if(n!==void 0&&n.extension!==t&&ET(298,t.name),!n){n=new UT(this,t),this.extensionNameMap.set(t.name,n);let e=this.conflicts.get(t.name);typeof e==`string`&&ET(299,t.name,e);for(let e of t.conflictsWith||[])this.extensionNameMap.has(e)&&ET(299,t.name,e),this.conflicts.set(e,t.name);for(let e of t.dependencies||[]){let n=XT(e);this.addEdge(t.name,n[0].name,n.slice(1)),this.addExtension(n)}for(let[e,n]of t.peerDependencies||[])this.addEdge(t.name,e,n?[n]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;let e=[],t=(n,r)=>{let i=n.state;if(BT(i))return;let a=n.extension.name;var o;zT(i)||ET(300,a,r||`[unknown]`),zT(o=i)||ET(304,String(o.id),String(jT)),i=Object.assign(o,{id:MT}),n.state=i;let s=this.outgoingConfigEdges.get(a);if(s)for(let e of s.keys()){let n=this.extensionNameMap.get(e);n&&t(n,a)}i=VT(i),n.state=i,e.push(n)};for(let e of this.extensionNameMap.values())zT(e.state)&&t(e);for(let t of e)for(let[e,n]of this.outgoingConfigEdges.get(t.extension.name)||[])if(n.length>0){let t=this.extensionNameMap.get(e);if(t)for(let e of n)t.configs.add(e)}for(let[e,...t]of this.roots)if(t.length>0){let n=this.extensionNameMap.get(e.name);n===void 0&&ET(301,e.name);for(let e of t)n.configs.add(e)}return this._sortedExtensionReps=e,this._sortedExtensionReps}registerEditor(e){let t=this.sortedExtensionReps(),n=new AbortController,r=[()=>n.abort()],i=n.signal;for(let n of t){let t=n.register(e,i);t&&r.push(t)}for(let n of t){let t=n.afterRegistration(e);t&&r.push(t)}return zw(...r)}buildCreateEditorArgs(){let e={},t=new Set,n=new Map,r=new Map,i={},a={},o=this.sortedExtensionReps();for(let s of o){let{extension:o}=s;if(o.onError!==void 0&&(e.onError=o.onError),o.onWarn!==void 0&&(e.onWarn=o.onWarn),o.disableEvents!==void 0&&(e.disableEvents=o.disableEvents),o.parentEditor!==void 0&&(e.parentEditor=o.parentEditor),o.editable!==void 0&&(e.editable=o.editable),o.namespace!==void 0&&(e.namespace=o.namespace),o.$initialEditorState!==void 0&&(e.$initialEditorState=o.$initialEditorState),o.nodes)for(let e of wT(o)){if(typeof e!=`function`){let t=n.get(e.replace);t&&ET(302,o.name,e.replace.name,t.extension.name),n.set(e.replace,s)}t.add(e)}if(o.html){if(o.html.export)for(let[e,t]of o.html.export.entries())r.set(e,t);o.html.import&&Object.assign(i,o.html.import)}o.theme&&AT(a,o.theme)}Object.keys(a).length>0&&(e.theme=a),t.size&&(e.nodes=[...t]);let s=Object.keys(i).length>0,c=r.size>0;(s||c)&&(e.html={},s&&(e.html.import=i),c&&(e.html.export=r));for(let t of o)t.init(e);return e.onError||=YT,e}};function $T(e,t){let n=QT.maybeFromEditor(e);if(!n)return;let r=n.extensionNameMap.get(t);return r?r.getExtensionDependency():void 0}function eE(e){return $T(uC(),e)}var tE=class extends Yb{$config(){return this.config(`horizontalrule`,{importDOM:{hr:()=>({conversion:nE,priority:0})}})}exportDOM(){return{element:ZS().createElement(`hr`)}}createDOM(e){let t=ZS().createElement(`hr`);return Lw(t,e.theme.hr),t}getTextContent(){return` +`}isInline(){return!1}updateDOM(){return!1}};function nE(){return{node:rE()}}function rE(){return OC(tE)}function iE(e){return e instanceof tE}Date.now;function aE(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}var oE;function sE(e,t){let{key:n}=t;return e&&n in e?e[n]:t.defaultValue}function cE(e){return oE&&oE.editor===e?oE:void 0}function lE(e,t){if(`cfg`in t){let{cfg:n,updater:r}=t;return[n,r(sE(e,n))]}return t}function uE(e,t){let n=t;for(let r of e){let[e,i]=lE(n,r),a=e.key;if(n===t&&sE(n,e)===i)continue;let o=n===t||n===void 0?dE(t):n;o[a]=i,n=o}return n}function dE(e){return Object.create(e||null)}function fE(e,t){return[e,t]}function pE(e,t,n,r=uC()){let i=oE,a=cE(r);try{return oE={...a,editor:r,[e]:t},n()}finally{oE=i}}function mE(e,t=()=>{}){return(n,r=uC())=>i=>{let a=cE(r),o=a&&a[e],s=uE(n,o||t(r));return s&&s!==o?pE(e,s,i,r):i()}}function hE(e,t,n,r){return Object.assign(yg(Symbol(t),{isEqual:r,parse:n}),{[e]:!0})}function gE(e){if(!Bx(e))return;let t=e;if(t.querySelector(`style`)===null)return;let n=new Map;function r(e){let t=n.get(e);if(t===void 0){t=new Set;for(let n=0;n{for(let n of r)if(!n(e,t))return!1;return!0}),tags:e};var r;let i=n=>EE(e,[...t,n]);return{[TE]:n,attr:(e,t,n)=>i(kE(e,t,n)),classAll:(...e)=>i(OE(e)),classAny:(...e)=>i(function(e){let t=DE(e);return t.length===0?()=>!1:e=>{if(!iC(e))return!1;let n=e.classList;for(let e of t)if(n.contains(e))return!0;return!1}}(e)),styleAny:(e,t,n)=>i(function(e,t,n){if(typeof t==`string`)return n=>iC(n)&&n.style.getPropertyValue(e)===t;if(t instanceof RegExp){let r=n&&n.capture,i=t;return(t,n)=>{if(!iC(t))return!1;let a=t.style.getPropertyValue(e);if(!a)return!1;let o=a.match(i);return o!==null&&(r!==void 0&&(n[r]=o),!0)}}aE(362,JSON.stringify(e))}(e,t,n))}}function DE(e){let t=[];for(let n of e)n&&t.push(n);return t}function OE(e){let t=DE(e);return t.length===0?()=>!0:e=>{if(!iC(e))return!1;let n=e.classList;for(let e of t)if(!n.contains(e))return!1;return!0}}function kE(e,t,n){if(!0===t)return t=>iC(t)&&t.hasAttribute(e);if(typeof t==`string`)return n=>iC(n)&&n.getAttribute(e)===t;if(t instanceof RegExp){let r=n&&n.capture,i=t;return(t,n)=>{if(!iC(t))return!1;let a=t.getAttribute(e);if(a==null)return!1;let o=a.match(i);return o!==null&&(r!==void 0&&(n[r]=o),!0)}}aE(361,JSON.stringify(e))}var AE={kind:`text`,predicate:zx,tags:new Set},jE={[TE]:AE},ME={kind:`comment`,predicate:e=>e.nodeType===8,tags:new Set},NE={[TE]:ME},PE={any:()=>EE(new Set,[]),comment:()=>NE,tag(...e){e.length>0||aE(363);let t=new Set;for(let n of e)t.add(n.toUpperCase());return EE(t,[])},text:()=>jE},FE=/[A-Za-z0-9_-]/,IE=class{constructor(e,t){this.source=e,this.pos=t}peek(e=0){return this.source[this.pos+e]||``}consume(){return this.source[this.pos++]||``}eof(){return this.pos>=this.source.length}skipWhitespace(){for(;!this.eof()&&/\s/.test(this.peek());)this.pos++}readIdent(){let e=this.pos;for(;!this.eof()&&FE.test(this.peek());)this.pos++;return this.source.slice(e,this.pos)}readQuoted(){let e=this.consume();this.assert(e===`"`||e===`'`,`expected quote`);let t=this.pos;for(;!this.eof()&&this.peek()!==e;)this.peek()===`\\`?this.pos+=2:this.pos++;this.assert(!this.eof(),`unterminated string`);let n=this.source.slice(t,this.pos);return this.pos++,n.replace(/\\(.)/g,`$1`)}assert(e,t){e||aE(364,String(this.pos+1),t,this.source)}};function LE(e){let t=new Set,n=[],r=[];if(e.skipWhitespace(),e.peek()===`*`)e.consume();else if(FE.test(e.peek())){let n=e.readIdent();n&&t.add(n.toUpperCase())}for(;!e.eof();){let t=e.peek();if(t===`.`){e.consume();let t=e.readIdent();e.assert(t!==``,`expected class name after "."`),r.push(t)}else if(t===`#`){e.consume();let t=e.readIdent();e.assert(t!==``,`expected id after "#"`),n.push(kE(`id`,t))}else{if(t!==`[`)break;{e.consume(),e.skipWhitespace();let t=e.readIdent();e.assert(t!==``,`expected attribute name after "["`),e.skipWhitespace();let r=!0;if(e.peek()===`=`){e.consume(),e.skipWhitespace();let t=e.peek();t===`"`||t===`'`?r=e.readQuoted():(r=e.readIdent(),e.assert(r!==``,`expected attribute value`)),e.skipWhitespace()}e.assert(e.peek()===`]`,`expected "]"`),e.consume(),n.push(kE(t,r))}}}return r.length>0&&n.push(OE(r)),{predicates:n,tags:t}}function RE(e){let t=new IE(e,0),n=[];for(;;){let e=LE(t);if(n.push(e),t.skipWhitespace(),t.eof())break;t.assert(t.peek()===`,`,`expected "," (selector lists are the only supported combinator)`),t.consume(),t.skipWhitespace()}if(n.length===1)return EE(n[0].tags,n[0].predicates);let r=new Set;if(n.every(e=>e.tags.size>0))for(let e of n)for(let t of e.tags)r.add(t);return EE(r,[(e,t)=>{for(let r of n){let n=e.nodeName;if(r.tags.size>0&&!r.tags.has(n))continue;let i=!0;for(let n of r.predicates)if(!n(e,t)){i=!1;break}if(i)return!0}return!1}])}var zE=PE;zE.tag(`b`,`strong`,`em`,`i`,`code`,`mark`,`s`,`sub`,`sup`,`u`,`span`),zE.text(),zE.tag(`script`,`style`),zE.tag(`br`),zE.tag(`p`),zE.tag(`hr`),zE.any(),Object.freeze([]),Object.freeze({}),PE.any();var BE={any:PE.any,comment:PE.comment,css:RE,tag:PE.tag,text:PE.text},VE=new Set([`STYLE`,`SCRIPT`]);function HE(e,t){gE(t);let n=Bx(t)?t.body.childNodes:t.childNodes,r=[],i=[];for(let t of n)if(!VE.has(t.nodeName)){let n=KE(t,e,i,!1);if(n!==null)for(let e of n)r.push(e)}return function(e){for(let t of e)t.getParent()&&t.getNextSibling()instanceof ix&&t.insertAfter(sx());for(let t of e){let e=t.getParent();e&&e.splice(t.getIndexWithinParent(),1,t.getChildren())}}(i),r}function UE(e,t=null,n=uC()){return wE([fE(bE,!0)],n)(()=>{let r=nS(),i=CE(n),a=Q(t)?LC(t.anchor.getNode()):null,o=e.append.bind(e);for(let e of($(a)?a:r).getChildren())GE(n,e,o,t,i);return e})}function WE(e,t=null){return(typeof document>`u`||typeof window>`u`&&global.window===void 0)&&aE(338),wne(e),UE(ZS().createElement(`div`),t,e).innerHTML}function GE(e,t,n,r=null,i=dC(e)){let a=i.$shouldInclude(t,r,e),o=i.$shouldExclude(t,r,e),s=t;r!==null&&Cy(t)&&(s=Uw(r,t,`clone`));let{element:c,after:l,append:u,$getChildNodes:d}=i.$exportDOM(s,e);if(!c)return!1;let f=ZS().createDocumentFragment(),p=d?d():$(s)?s.getChildren():[],m=a&&Iy(r)&&$(t)?null:r,h=f.append.bind(f);for(let n of p){let o=GE(e,n,h,m,i);!a&&o&&i.$extractWithChild(t,n,r,`html`,e)&&(a=!0)}if(a&&!o){if((iC(c)||oC(c))&&(u?u(f):c.append(f)),n(c),l){let e=l.call(s,c);e&&(oC(c)?c.replaceChildren(e):c.replaceWith(e))}}else n(f);return a}function KE(e,t,n,r,i=new Map,a){let o=[];if(VE.has(e.nodeName))return o;let s=null,c=function(e,t){let{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase()),i=null;if(r!==void 0)for(let t of r){let n=t(e);n!==null&&(i===null||(i.priority||0)<=(n.priority||0))&&(i=n)}return i===null?null:i.conversion}(e,t),l=c?c(e):null,u=null;if(l!==null){u=l.after;let t=l.node;if(s=Array.isArray(t)?t[t.length-1]:t,s!==null){for(let[,e]of i)if(s=e(s,a),!s)break;s&&o.push(...Array.isArray(t)?t:[s])}l.forChild!=null&&i.set(e.nodeName,l.forChild)}let d=e.childNodes,f=[],p=(s==null||!LS(s))&&(s!=null&&$y(s)||r);for(let e=0;e{let e=new ix;return n.push(e),e}:mx)),s==null){if(f.length>0)for(let e of f)o.push(e);else cC(e)&&function(e){return e.nextSibling==null||e.previousSibling==null?!1:sC(e.nextSibling)&&sC(e.previousSibling)}(e)&&o.push(sx())}else $(s)&&s.append(...f);return o}function qE(e,t,n){let r=e.style.textAlign,i=[],a=[];for(let e=0;et.push(sx()),tab:()=>t.push(Ey()),text:e=>t.push(bD(e))}),t}function nD(e,t,n){if(!Number.isInteger(t)||t<=0)return!1;let r=e.getTextContent(),i=/^ +/.exec(r);if(!i)return!1;let a=Math.min(t,i[0].length),o=e.getKey(),s=n.anchor.key===o&&n.anchor.type===`text`?n.anchor.offset:null,c=n.focus.key===o&&n.focus.type===`text`?n.focus.offset:null;return e.spliceText(0,a,``),s!==null&&n.anchor.set(o,Math.max(0,s-a),`text`),c!==null&&n.focus.set(o,Math.max(0,c-a),`text`),!0}var rD=`javascript`;function iD(e,t){for(let n of e.childNodes)if(iC(n)&&n.tagName===t||iD(n,t))return!0;return!1}var aD=`data-language`,oD=`data-highlight-language`,sD=`data-theme`,cD=class extends qb{__language;__theme;__isSyntaxHighlightSupported;$config(){return this.config(`code`,{extends:qb,importDOM:{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||iD(e,`BR`))?{conversion:dD,priority:1}:null,div:()=>({conversion:fD,priority:1}),pre:()=>({conversion:dD,priority:0}),table:e=>gD(e)?{conversion:pD,priority:3}:null,td:e=>{let t=e,n=t.closest(`table`);return t.classList.contains(`js-file-line`)||n&&gD(n)?{conversion:mD,priority:3}:null},tr:e=>{let t=e.closest(`table`);return t&&gD(t)?{conversion:mD,priority:3}:null}}})}constructor(e=void 0,t){super(t),this.__language=e||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}afterCloneFrom(e){super.afterCloneFrom(e),this.__language=e.__language,this.__theme=e.__theme,this.__isSyntaxHighlightSupported=e.__isSyntaxHighlightSupported}createDOM(e){let t=ZS().createElement(`code`);Lw(t,e.theme.code),t.setAttribute(`spellcheck`,`false`);let n=this.getLanguage();n&&(t.setAttribute(aD,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(oD,n));let r=this.getTheme();r&&t.setAttribute(sD,r);let i=this.getStyle();return i&&uy(t.style,i),t}updateDOM(e,t,n){let r=this.__language,i=e.__language;r?r!==i&&t.setAttribute(aD,r):i&&t.removeAttribute(aD);let a=this.__isSyntaxHighlightSupported;e.__isSyntaxHighlightSupported&&i?a&&r?r!==i&&t.setAttribute(oD,r):t.removeAttribute(oD):a&&r&&t.setAttribute(oD,r);let o=this.__theme,s=e.__theme;o?o!==s&&t.setAttribute(sD,o):s&&t.removeAttribute(sD);let c=this.__style,l=e.__style;return c!==l&&uy(t.style,c,l),!1}exportDOM(e){let t=ZS().createElement(`pre`);Lw(t,e._config.theme.code),t.setAttribute(`spellcheck`,`false`);let n=this.getLanguage();n&&(t.setAttribute(aD,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(oD,n));let r=this.getTheme();r&&t.setAttribute(sD,r);let i=this.getStyle();return i&&uy(t.style,i),{element:t}}updateFromJSON(e){return super.updateFromJSON(e).setLanguage(e.language).setTheme(e.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(e,t=!0){if(!$T(uC(),`@lexical/code`)){let t=_D(e);if(t)return t}let{anchor:n,focus:r}=e,i=(n.isBefore(r)?n:r).getNode();if(Cy(i)){let e=XE(i),t=[];for(;;)if(Dy(e))t.push(Ey()),e=e.getNextSibling();else{if(!xD(e))break;{let n=0,r=e.getTextContent(),i=e.getTextContentSize();for(;ne.append(t)),this.replace(e),!0}setLanguage(e){let t=this.getWritable();return t.__language=e||void 0,t}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(e){let t=this.getWritable();return t.__isSyntaxHighlightSupported=e,t}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(e){let t=this.getWritable();return t.__theme=e||void 0,t}getTheme(){return this.getLatest().__theme}};function lD(e,t){return OC(cD).setLanguage(e).setTheme(t)}function uD(e){return e instanceof cD}function dD(e){return{node:lD(e.getAttribute(aD))}}function fD(e){let t=e,n=hD(t);return n||function(e){let t=e.parentElement;for(;t!==null;){if(hD(t))return!0;t=t.parentElement}return!1}(t)?{node:n?lD():null}:{node:null}}function pD(){return{node:lD()}}function mD(){return{node:null}}function hD(e){return e.style.fontFamily.match(`monospace`)!==null}function gD(e){return e.classList.contains(`js-file-line-container`)}function _D(e){let{anchor:t}=e;if(e.isCollapsed()&&t.type===`element`){let e=t.getNode();if(uD(e)){let n=e.getChildrenSize();if(n>=2&&t.offset===n){let t=e.getLastChild();if(cx(t)&&cx(t.getPreviousSibling())){let t=mx();return e.splice(n-2,2,[]).insertAfter(t,!1),t.select(),t}}}}return null}var vD=class extends vy{__highlightType;constructor(e=``,t,n){super(e,n),this.__highlightType=t}$config(){return this.config(`code-highlight`,{extends:vy})}afterCloneFrom(e){super.afterCloneFrom(e),this.__highlightType=e.__highlightType}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(e){let t=this.getWritable();return t.__highlightType=e||void 0,t}canHaveFormat(){return!1}createDOM(e){let t=super.createDOM(e);return Lw(t,yD(e.theme,this.__highlightType)),t}updateDOM(e,t,n){let r=super.updateDOM(e,t,n),i=yD(n.theme,e.__highlightType),a=yD(n.theme,this.__highlightType);return i!==a&&(i&&Rw(t,i),a&&Lw(t,a)),r}updateFromJSON(e){return super.updateFromJSON(e).setHighlightType(e.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return lD()}};function yD(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function bD(e=``,t){return zS(new vD(e,t))}function xD(e){return e instanceof vD}BE.tag(`tr`,`td`),BE.tag(`pre`),BE.tag(`code`),BE.tag(`div`),BE.tag(`div`,`br`),BE.tag(`div`),BE.tag(`table`).classAll(`js-file-line-container`),BE.tag(`td`).classAll(`js-file-line`);function SD(e){if(!Q(e))return!1;let t=e.anchor.getNode(),n=uD(t)?t:t.getParent(),r=e.focus.getNode(),i=uD(r)?r:r.getParent();return uD(n)&&n.is(i)}function CD(e){let t=e.getNodes(),n=[];if(t.length===1&&uD(t[0]))return n;let r=[];for(let e=0;e0&&(n.push(r),r=[]):r.push(i)}if(r.length>0){let t=e.isBackward()?e.anchor:e.focus,i=Oy(r[0].getKey(),0,`text`);t.is(i)||n.push(r)}return n}function wD(e,t){let n=ib();if(!Q(n)||!SD(n))return!1;let r=CD(n),i=r.length;if(i===0&&n.isCollapsed())return e===cv&&n.insertNodes([Ey()]),!0;if(i===0&&e===cv&&n.getTextContent()===` +`){let e=Ey(),t=sx(),r=n.isBackward()?`previous`:`next`;return n.insertNodes([e,t]),bw(kw(dw(iw(e,`next`,0),Ew(rw(t,`next`))),r)),!0}for(let a=0;a0){let r=i[0];if(a===0&&(r=XE(r)),e===cv){let e=Ey();if(r.insertBefore(e),a===0){let t=n.isBackward()?`focus`:`anchor`,i=Oy(r.getKey(),0,`text`);n[t].is(i)&&n[t].set(e.getKey(),0,`text`)}}else Dy(r)?r.remove():t!==void 0&&xD(r)&&nD(r,t,n)}}return!0}function TD(e,t){let n=ib();if(!Q(n))return!1;let{anchor:r,focus:i}=n,a=r.offset,o=i.offset,s=r.getNode(),c=i.getNode(),l=e===$_;if(!SD(n)||!xD(s)&&!Dy(s)||!xD(c)&&!Dy(c))return!1;if(!t.altKey){if(n.isCollapsed()){let e=s.getParentOrThrow();if(l&&a===0&&s.getPreviousSibling()===null){if(e.getPreviousSibling()===null)return e.selectPrevious(),t.preventDefault(),!1}else if(!l&&a===s.getTextContentSize()&&s.getNextSibling()===null&&e.getNextSibling()===null)return e.selectNext(),t.preventDefault(),!1}return!1}let u,d;if(s.isBefore(c)?(u=XE(s),d=ZE(c)):(u=XE(c),d=ZE(s)),u==null||d==null)return!1;let f=u.getNodesBetween(d);for(let e=0;ee.remove()),e===$_?(f.forEach(e=>h.insertBefore(e)),h.insertBefore(p)):(h.insertAfter(p),h=p,f.forEach(e=>{h.insertAfter(e),h=e})),n.setTextNodeRange(s,a,c,o),!0}function ED(e,t){let n=ib();if(!Q(n))return!1;let{anchor:r,focus:i}=n,a=r.getNode(),o=i.getNode(),s=e===Q_;if(!SD(n)||!xD(a)&&!Dy(a)||!xD(o)&&!Dy(o))return!1;let c=o,l=QE(c)===`rtl`?!s:s,u=r.key,d=r.offset,f=r.type;if(l){let e=$E(c,i.offset);if(e!==null){let{node:t,offset:r}=e;cx(t)?t.selectNext(0,0):n.setTextNodeRange(t,r,t,r)}else c.getParentOrThrow().selectStart()}else eD(c).select();return t.shiftKey&&n.anchor.set(u,d,f),t.preventDefault(),t.stopPropagation(),!0}function DD(e,t,n){return zw(...n?[e.registerCommand(ev,e=>!e.altKey&&rT(uD,e),1),e.registerCommand(Y_,e=>rT(uD,e),1),e.registerCommand($_,e=>!e.altKey&&nT(uD,e),1),e.registerCommand(Z_,e=>nT(uD,e),1)]:[],e.registerCommand(ov,t=>{let n=function(e){let t=ib();if(!Q(t)||!SD(t))return null;let n=e?lv:cv,r=e?lv:sv,i=t.anchor,a=t.focus;if(i.is(a))return r;let o=CD(t);if(o.length!==1)return n;let s=o[0],c,l;s.length===0&&JE(285),t.isBackward()?(c=a,l=i):(c=i,l=a);let u=XE(s[0]),d=ZE(s[0]),f=Oy(u.getKey(),0,`text`),p=Oy(d.getKey(),d.getTextContentSize(),`text`);return c.isBefore(f)||p.isBefore(l)?n:f.isBefore(c)||l.isBefore(p)?r:n}(t.shiftKey);return n!==null&&(t.preventDefault(),e.dispatchCommand(n),!0)},1),e.registerCommand(sv,()=>!!SD(ib())&&(fb([Ey()]),!0),1),e.registerCommand(cv,()=>wD(cv),1),e.registerCommand(lv,()=>wD(lv,t),1),e.registerCommand($_,e=>{let t=ib();if(!Q(t))return!1;let{anchor:n}=t,r=n.getNode();if(!SD(t))return!1;let i=r.getParent();return t.isCollapsed()&&n.offset===0&&r.getPreviousSibling()===null&&uD(i)&&i.getPreviousSibling()===null?(e.preventDefault(),!0):TD($_,e)},1),e.registerCommand(ev,e=>{let t=ib();if(!Q(t))return!1;let{anchor:n}=t,r=n.getNode();return!!SD(t)&&(t.isCollapsed()&&n.offset===r.getTextContentSize()&&r.getNextSibling()===null&&uD(r.getParentOrThrow())&&r.getParentOrThrow().getNextSibling()===null?(e.preventDefault(),!0):TD(ev,e))},1),e.registerCommand(Q_,e=>ED(Q_,e),1),e.registerCommand(X_,e=>ED(X_,e),1))}var OD={bold:`bold`,italic:`italic`,strikeThrough:`strikethrough`,subscript:`subscript`,superscript:`superscript`,underline:`underline`},kD=Symbol.for(`@lexical/dragon/WindowState`);function AD(e,t,n){let r=function(e){let t=e[kD];return t===void 0&&(t={dispose:()=>{},editors:new Map,installs:new Set},e[kD]=t),t}(e);if(r.installs.size===0){let t=PD.bind(e);e.addEventListener(`message`,t,!0),r.dispose=()=>{e.removeEventListener(`message`,t,!0)}}if(r.installs.add(t),n){let e=r.editors.get(n)||new Set;e.add(t),r.editors.set(n,e)}return jD.bind(null,e,r,t,n)}function jD(e,t,n,r){if(r){let e=t.editors.get(r);e&&e.delete(n)&&e.size===0&&t.editors.delete(r)}t.installs.delete(n)&&t.installs.size===0&&(t.dispose(),delete e[kD])}function MD(e){return e&&e.ownerDocument.defaultView}function ND(e){let t=TT(()=>MD(e.getRootElement()),t=>e.registerRootListener(e=>{t.value=MD(e)}));return CT(()=>{let n=t.value;if(n)return AD(n,Symbol(`@lexical/dragon/editorInstall`),e)})}function PD(e){if(e.origin!==this.location.origin)return;let t=function(e){let t=e[kD];if(t===void 0)return null;let n=Fx(tC(e.document));return Nx(n)&&t.editors.has(n)?n:null}(this);if(t===null)return;let n=e.data;if(typeof n==`string`){let r;try{r=JSON.parse(n)}catch{return}if(r&&r.protocol===`nuanria_messaging`&&r.type===`request`){let n=r.payload;if(n&&n.functionId===`makeChanges`){let r=n.args;if(Array.isArray(r)){let[n,i,a,o,s,c]=r;if(![n,i,o,s].every(Number.isFinite)||typeof a!=`string`&&a!==-1)return;t.update(()=>{let t=ib();if(Q(t)){let r=t.anchor,l=r.getNode(),u=0,d=0;if(Cy(l)&&n>=0&&i>=0&&(u=n,d=n+i,t.setTextNodeRange(l,u,l,d)),typeof a!=`string`||u===d&&a===``||(t.insertRawText(a),l=r.getNode()),Cy(l)){let e=l.getTextContentSize();u=Math.min(Math.max(o,0),e),d=o<0||s<0?u:Math.min(o+s,e),t.setTextNodeRange(l,u,l,d)}if(typeof c==`string`&&s>0&&!t.isCollapsed()){let e=OD[c];e!==void 0&&t.formatText(e)}e.stopImmediatePropagation()}})}}}}}function FD(e,t,n,r,i){if(e===null||n.size===0&&r.size===0&&!i)return 0;let a=t._selection,o=e._selection;if(i)return 1;if(!(Q(a)&&Q(o)&&o.isCollapsed()&&a.isCollapsed()))return 0;let s=function(e,t,n){let r=e._nodeMap,i=[];for(let e of t){let t=r.get(e);t!==void 0&&i.push(t)}for(let[e,t]of n){if(!t)continue;let n=r.get(e);n===void 0||Qb(n)||i.push(n)}return i}(t,n,r);if(s.length===0)return 0;if(s.length>1){let n=t._nodeMap,r=n.get(a.anchor.key),i=n.get(o.anchor.key);return r&&i&&!e._nodeMap.has(r.__key)&&Cy(r)&&r.__text.length===1&&a.anchor.offset===1?2:0}let c=s[0],l=e._nodeMap.get(c.__key);if(!Cy(l)||!Cy(c)||l.__mode!==c.__mode)return 0;let u=l.__text,d=c.__text;if(u===d)return 0;let f=a.anchor,p=o.anchor;if(f.key!==p.key||f.type!==`text`)return 0;let m=f.offset,h=p.offset,g=d.length-u.length;return g===1&&h===m-1?2:g===-1&&h===m+1?3:g===-1&&h===m?4:0}function ID(e,t,n){let r=n(),i=0,a=r,o=0,s=null;return(c,l,u,d,f,p)=>{let m=n();if(p.has(`composition-start`)&&(a=r,o=i,s=c),p.has(`historic`))return i=0,r=m,2;p.has(`composition-end`)&&s&&(r=a,i=o,c=s);let h=p.has(`paste`)||p.has(`cut`)?0:FD(c,l,d,f,e.isComposing()),g=(()=>{let n=u===null||u.editor===e,a=p.has(lne);if(!a&&n&&p.has(`history-merge`))return 0;if(h===1)return 2;if(c===null)return 1;let o=l._selection;if(!(d.size>0||f.size>0))return o===null?2:0;let s=typeof t==`number`?t:t.peek();return!1===a&&h!==0&&h===i&&mr.exportJSON()))===JSON.stringify(n.read(()=>i.exportJSON()))}(Array.from(d)[0],c,l)?0:1})();return r=m,i=h,g}}function LD(e,t){e.undoStack=[],e.redoStack=[],e.current=null,t&&t(e)}function RD(e,t,n,r=Date.now,i,a=null){let o=ID(e,n,r),s=()=>{i&&i(t)};return s(),zw(e.registerCommand(K_,()=>(function(e,t,n){let r=t.redoStack,i=t.undoStack;if(i.length!==0){let a=t.current,o=i.pop();a!==null&&(r.push(a),e.dispatchCommand(bv,!0)),i.length===0&&e.dispatchCommand(xv,!1),t.current=o||null,n&&n(t),o&&o.editor.setEditorState(o.editorState,{tag:`historic`})}}(e,t,i),!0),0),e.registerCommand(q_,()=>(function(e,t,n){let r=t.redoStack,i=t.undoStack;if(r.length!==0){let a=t.current;a!==null&&(i.push(a),e.dispatchCommand(xv,!0));let o=r.pop();r.length===0&&e.dispatchCommand(bv,!1),t.current=o||null,n&&n(t),o&&o.editor.setEditorState(o.editorState,{tag:`historic`})}}(e,t,i),!0),0),e.registerCommand(vv,()=>(LD(t,i),!1),0),e.registerCommand(yv,()=>(LD(t,i),e.dispatchCommand(bv,!1),e.dispatchCommand(xv,!1),!0),0),e.registerUpdateListener(({editorState:n,prevEditorState:r,dirtyLeaves:i,dirtyElements:c,tags:l})=>{let u=t.current,d=t.redoStack,f=t.undoStack,p=u===null?null:u.editorState;if(u!==null&&n===p)return;let m=o(r,n,u,i,c,l);if(m===1){if(d.length!==0&&(t.redoStack=[],e.dispatchCommand(bv,!1)),u!==null){f.push({...u});let t=typeof a==`number`||a===null?a:a.peek();t!==null&&f.length>t&&f.splice(0,f.length-t),e.dispatchCommand(xv,!0)}}else if(m===2)return;t.current={editor:e,editorState:n},s()}))}function zD(){return{current:null,redoStack:[],undoStack:[]}}Date.now;var BD=new Set([`http:`,`https:`,`mailto:`,`sms:`,`tel:`]),VD=class extends qb{__url;__target;__rel;__title;$config(){return this.config(`link`,{extends:qb,importDOM:{a:()=>({conversion:HD,priority:1})}})}constructor(e=``,t={},n){super(n);let{target:r=null,rel:i=null,title:a=null}=t;this.__url=e,this.__target=r,this.__rel=i,this.__title=a}afterCloneFrom(e){super.afterCloneFrom(e),this.__url=e.__url,this.__rel=e.__rel,this.__target=e.__target,this.__title=e.__title}createDOM(e){let t=ZS().createElement(`a`);return this.updateLinkDOM(null,t,e),Lw(t,e.theme.link),t}updateLinkDOM(e,t,n){if(rC(t)){e&&e.__url===this.__url||(t.href=this.sanitizeUrl(this.__url));for(let n of[`target`,`rel`,`title`]){let r=`__${n}`,i=this[r];e&&e[r]===i||(i?t[n]=i:t.removeAttribute(n))}}}updateDOM(e,t,n){return this.updateLinkDOM(e,t,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){let t=e;e=QD(e);try{let t=new URL(QD(e));if(!BD.has(t.protocol))return`about:blank`}catch{let e=t.replace(/[\u0000-\u001F\u007F\s]/g,``).match(/^([a-z][a-z0-9+.-]*):/i);if(e!=null&&!BD.has(`${e[1].toLowerCase()}:`))return`about:blank`}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){let t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){let t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){let t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){let t=this.getWritable();return t.__title=e,t}insertNewAfter(e,t=!0){let n=RS(this);return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!Q(t))return!1;let r=t.anchor.getNode(),i=t.focus.getNode();return(this.is(r)||this.isParentOf(r))&&(this.is(i)||this.isParentOf(i))&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith(`mailto:`)}isWebSiteURI(){return this.__url.startsWith(`https://`)||this.__url.startsWith(`http://`)}shouldMergeAdjacentLink(e){return this.getType()===e.getType()&&this.__url===e.__url&&this.__target===e.__target&&this.__rel===e.__rel&&this.__title===e.__title}};function HD(e){let t=null;if(rC(e)){let n=e.textContent;(n!==null&&n!==``||e.children.length>0)&&(t=UD(e.getAttribute(`href`)||``,{rel:e.getAttribute(`rel`),target:e.getAttribute(`target`),title:e.getAttribute(`title`)}))}return{node:t}}function UD(e=``,t){return zS(new VD(e,t))}function WD(e){return e instanceof VD}var GD=class extends VD{__isUnlinked;constructor(e=``,t={},n){super(e,t,n),this.__isUnlinked=t.isUnlinked!==void 0&&t.isUnlinked!==null&&t.isUnlinked}afterCloneFrom(e){super.afterCloneFrom(e),this.__isUnlinked=e.__isUnlinked}$config(){return this.config(`autolink`,{extends:VD})}shouldMergeAdjacentLink(e){return!1}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){let t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?ZS().createElement(`span`):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){let n=KD(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}};function KD(e=``,t){return zS(new GD(e,t))}function qD(e){return e instanceof GD}var JD=O_(`TOGGLE_LINK_COMMAND`);function YD(e,t){if(e.type===`element`){let n=e.getNode();return $(n)||function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(252),n.getChildren()[e.offset+t]||null}return null}function XD(e,t={}){let n;if(e&&typeof e==`object`){let{url:r,...i}=e;n=r,t={...i,...t}}else n=e;let{target:r,title:i}=t,a=t.rel===void 0?`noreferrer`:t.rel,o=ib();if(o===null||!Q(o)&&!Iy(o))return;if(Iy(o)){let e=o.getNodes();if(e.length===0)return;e.forEach(e=>{if(n===null){let t=kC(e,e=>!qD(e)&&WD(e));t&&(t.insertBefore(e),t.getChildren().length===0&&t.remove())}else{let t=kC(e,e=>!qD(e)&&WD(e));if(t)t.setURL(n),r!==void 0&&t.setTarget(r),a!==void 0&&t.setRel(a);else{let t=UD(n,{rel:a,target:r});e.insertBefore(t),t.append(e)}}});return}if(o.isCollapsed()&&n===null)for(let e of o.getNodes()){let t=kC(e,e=>!qD(e)&&WD(e));t!==null&&(t.getParentOrThrow().splice(t.getIndexWithinParent(),0,t.getChildren()),t.remove());return}let s=o.extract();if(n===null){let e=new Set;s.forEach(t=>{let n=kC(t,e=>!qD(e)&&WD(e));if(n!==null){let t=n.getKey();if(e.has(t))return;(function(e,t){let n=new Set(t.filter(t=>e.isParentOf(t)).map(e=>e.getKey())),r=e.getChildren(),i=r=>n.has(r.getKey())||$(r)&&t.some(t=>e.isParentOf(t)&&r.isParentOf(t)),a=r.filter(i);if(a.length===r.length)return r.forEach(t=>e.insertBefore(t)),void e.remove();let o=r.findIndex(i),s=r.findLastIndex(i),c=o===0,l=s===r.length-1;if(c)a.forEach(t=>e.insertBefore(t));else if(l)for(let t=a.length-1;t>=0;t--)e.insertAfter(a[t]);else{for(let t=a.length-1;t>=0;t--)e.insertAfter(a[t]);let t=r.slice(s+1);if(t.length>0){let n=RS(e);a[a.length-1].insertAfter(n),t.forEach(e=>n.append(e))}}})(n,s),e.add(t)}});return}let c=new Set,l=e=>{c.has(e.getKey())||(c.add(e.getKey()),e.setURL(n),r!==void 0&&e.setTarget(r),a!==void 0&&e.setRel(a),i!==void 0&&e.setTitle(i))};if(s.length===1){let e=s[0],t=kC(e,WD);if(t!==null)return l(t)}(function(e){let t=ib();if(!Q(t))return e();let n=Mg(t),r=n.isBackward(),i=YD(n.anchor,r?-1:0),a=YD(n.focus,r?0:-1);if(e(),i||a){let e=ib();if(Q(e)){let t=e.clone();if(i){let e=i.getParent();e&&t.anchor.set(e.getKey(),i.getIndexWithinParent()+ +!!r,`element`)}if(a){let e=a.getParent();e&&t.focus.set(e.getKey(),a.getIndexWithinParent()+ +!r,`element`)}rS(Mg(t))}}})(()=>{let e=null;for(let t of s){if(!t.isAttached())continue;let o=kC(t,WD);if(o){l(o);continue}if($(t)){if(!t.isInline())continue;if(WD(t)){if(!(qD(t)||e!==null&&e.getParentOrThrow().isParentOf(t))){l(t),e=t;continue}for(let e of t.getChildren())t.insertBefore(e);t.remove();continue}}let s=t.getPreviousSibling();WD(s)&&s.is(e)?s.append(t):(e=UD(n,{rel:a,target:r,title:i}),t.insertAfter(e),e.append(t))}})}var ZD=/^\+?[0-9\s()-]{5,}$/;function QD(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes(`@`)?`mailto:${e}`:ZD.test(e)?`tel:${e}`:`https://${e}`}BE.tag(`a`);function $D(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function eO(e){let t=1,n=e.getParent();for(;n!=null;){if(_O(n)){let e=n.getParent();if(CO(e)){t++,n=e.getParent();continue}$D(40)}return t}return t}function tO(e){let t=e.getParent();CO(t)||$D(40);let n=t,r=t;for(;r!==null;)r=r.getParent(),CO(r)&&(n=r);return n}function nO(e){return _O(e)&&CO(e.getFirstChild())}function rO(e,t){return _O(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function iO(e){let t=ib();if(t!==null){let n=t.getNodes();if(Q(t)){let[r]=t.getStartEndPoints(),i=r.getNode(),a=i.getParent();if(LS(i)){let e=i.getFirstChild();if(e)n=e.selectStart().getNodes();else{let e=mx();i.append(e),n=e.select().getNodes()}}else if(rO(i,n)){let t=SO(e);if(LS(a)){i.replace(t);let e=gO();$(i)&&(e.setFormat(i.getFormatType()),e.setIndent(i.getIndent())),t.append(e)}else if(_O(i)){let e=i.getParentOrThrow();aO(t,e.getChildren()),e.replace(t)}return}}let r=new Set;for(let t=0;t0&&e.append(...i),t.remove()}function cO(e){let t=e.getListType()!==`check`,n=e.getStart();for(let r of e.getChildren())_O(r)&&(r.getValue()!==n&&r.setValue(n),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),CO(r.getFirstChild())||n++)}function lO(e){let t=new Set;if(nO(e)||t.has(e.getKey()))return;let n=e.getParent(),r=e.getNextSibling(),i=e.getPreviousSibling();if(nO(r)&&nO(i)){let n=i.getFirstChild();if(CO(n)){n.append(e);let i=r.getFirstChild();CO(i)&&(aO(n,i.getChildren()),r.remove(),t.add(r.getKey()))}}else if(nO(r)){let t=r.getFirstChild();if(CO(t)){let n=t.getFirstChild();n!==null&&n.insertBefore(e)}}else if(nO(i)){let t=i.getFirstChild();CO(t)&&t.append(e)}else if(CO(n)){let t=RS(e),a=RS(n);t.append(a),a.append(e),i?i.insertAfter(t):r?r.insertBefore(t):n.append(t)}}function uO(e){if(nO(e))return;let t=e.getParent(),n=t?t.getParent():void 0;if(CO(n?n.getParent():void 0)&&_O(n)&&CO(t)){let r=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(i))n.insertAfter(e),t.isEmpty()&&n.remove();else{let r=RS(e),i=RS(t);r.append(i),e.getPreviousSiblings().forEach(e=>i.append(e));let a=RS(e),o=RS(t);a.append(o),aO(o,e.getNextSiblings()),n.insertBefore(r),n.insertAfter(a),n.replace(e)}}}function dO(e=!1){let t=ib();if(!Q(t)||!t.isCollapsed())return!1;let n=t.anchor.getNode(),r=null;if(_O(n)&&n.getChildrenSize()===0)r=n;else if(Cy(n)){let e=n.getParent();_O(e)&&e.getChildren().every(e=>Cy(e)&&e.getTextContent().trim()===``)&&(r=e)}if(r===null)return!1;let i=tO(r),a=r.getParent();CO(a)||$D(40);let o=a.getParent(),s;if(LS(o))s=mx(),i.insertAfter(s);else{if(!_O(o))return!1;s=RS(o),o.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();let c=r.getNextSiblings();if(c.length>0){let t=e?function(e,t){return e.getStart()+t.getIndexWithinParent()}(a,r):1,n=RS(a).setStart(t);if(_O(s)){let e=RS(s);e.append(n),s.insertAfter(e)}else s.insertAfter(n);n.append(...c)}return function(e){let t=e;for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){let e=t.getParent();if(e==null||!_O(e)&&!CO(e))break;t=e}t.remove()}(r),!0}var fO=class extends qb{__value;__checked;$config(){return this.config(`listitem`,{$transform:e=>{let t=e.getParent();if(CO(t))t.getListType()!==`check`&&e.getChecked()!=null&&e.setChecked(void 0);else if(t){let n=e.createParentElementNode();CO(n)||$D(340);let r=[e];for(let t of[`previous`,`next`]){r.reverse();for(let{origin:n}of rw(e,t)){if(!_O(n))break;r.push(n)}}e.insertBefore(n),n.splice(0,0,r),LS(t)||(Mw(n,Cw(rw(n,`next`)),{$shouldSplit:()=>!1,removeEmptyDestination:!0}),t.isEmpty()&&t.isAttached()&&t.remove())}},extends:qb,importDOM:ty({li:()=>({conversion:pO,priority:0})})})}constructor(e=1,t=void 0,n){super(n),this.__value=e===void 0?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){let t=ZS().createElement(`li`);return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,n){(function(e,t){let n=t.getParent();!CO(n)||n.getListType()!==`check`||CO(t.getFirstChild())?(e.removeAttribute(`role`),e.removeAttribute(`tabIndex`),e.removeAttribute(`aria-checked`)):(e.setAttribute(`role`,`checkbox`),e.setAttribute(`tabIndex`,`-1`),e.setAttribute(`aria-checked`,t.getChecked()?`true`:`false`))})(t,this),t.value=this.__value,function(e,t,n){let r=t.list;if(!r)return;let i=r.listitem,a=r.nested&&r.nested.listitem,o=n.getParent(),s=CO(o)&&o.getListType()===`check`,c=n.getChecked(),l=n.getChildren().some(e=>CO(e)),u=[];r.listitemChecked!==void 0&&u.push(r.listitemChecked),r.listitemUnchecked!==void 0&&u.push(r.listitemUnchecked),a!==void 0&&u.push(...Iw(a)),u.length>0&&Rw(e,...u);let d=[];if(i!==void 0&&d.push(...Iw(i)),s){let e=c?r.listitemChecked:r.listitemUnchecked;e!==void 0&&d.push(e)}a!==void 0&&l&&d.push(...Iw(a)),d.length>0&&Lw(e,...d)}(t,n.theme,this);let r=e?e.__style:``,i=this.__style;r!==i&&uy(t.style,i,r),function(e,t,n){let r=t.__textStyle,i=n?n.__textStyle:``;if(n!==null&&i===r)return;let a=ly(r);for(let t in a)e.style.setProperty(`--listitem-marker-${t}`,a[t]);if(i!==``)for(let t in ly(i))t in a||e.style.removeProperty(`--listitem-marker-${t}`)}(t,this,e)}updateDOM(e,t,n){let r=t;return this.updateListItemDOM(e,r,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){let t=this.createDOM(e._config),n=this.getFormatType();n&&(t.style.textAlign=n);let r=this.getDirection();return r&&(t.dir=r),nO(this)?{after(e){if(iC(e)){let t=e.previousElementSibling;if(iC(t)&&t.nodeName===`LI`){for(;e.firstChild;)t.append(e.firstChild);e.remove()}}return e},element:t}:{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;ti.append(e)),e.insertAfter(i,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&nO(t)&&nO(n)&&(sO(t.getFirstChild(),n.getFirstChild()),n.remove())}resetOnCopyNodeFrom(e){super.resetOnCopyNodeFrom(e),e.getChecked()&&this.setChecked(!1)}insertNewAfter(e,t=!0){let n=RS(this);return this.insertAfter(n,t),n}collapseAtStart(e){if(nO(this))return!1;let t=this.getParentOrThrow();if(_O(t.getParentOrThrow()))return uO(this),!0;let n=mx().append(...this.getChildren()),r=this.getNextSiblings();if(r.length>0){let e=RS(t);e.append(...r),t.insertAfter(e)}return t.insertAfter(n),this.remove(),t.getChildrenSize()===0&&t.remove(),n.selectStart(),!0}getValue(){return this.getLatest().__value}setValue(e){let t=this.getWritable();return t.__value=e,t}getChecked(){let e=this.getLatest(),t,n=this.getParent();return CO(n)&&(t=n.getListType()),t===`check`?!!e.__checked:void 0}setChecked(e){let t=this.getWritable();return t.__checked=e,t}toggleChecked(){let e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){let e=this.getParent();if(e===null||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;_O(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){typeof e!=`number`&&$D(117),(e=Math.floor(e))>=0||$D(199);let t=this.getIndent();for(;t!==e;)t0&&t.children[0].tagName===`INPUT`)return mO(t.children[0])}let t=e.getAttribute(`aria-checked`),n=gO(t===`true`||t!==`false`&&void 0);return yC(n,e),{after:hO.bind(null,n),node:vC(n,e)}}function mO(e){if(e.getAttribute(`type`)!==`checkbox`)return{node:null};let t=gO(e.hasAttribute(`checked`));return{after:hO.bind(null,t),node:t}}function hO(e,t){let n=t[0];return t.length===1&&hx(n)&&!e.getFormatType()&&n.getFormatType()?(e.setFormat(n.getFormatType()),n.getChildren()):t}function gO(e){return zS(new fO(void 0,e))}function _O(e){return e instanceof fO}var vO=class extends qb{__tag;__start;__listType;$config(){return this.config(`list`,{$transform:e=>{(function(e){let t=e.getNextSibling();CO(t)&&e.getListType()===t.getListType()&&sO(e,t)})(e),cO(e)},extends:qb,importDOM:ty({ol:()=>({conversion:bO,priority:0}),ul:()=>({conversion:bO,priority:0})})})}constructor(e=`number`,t=1,n){super(n);let r=xO[e]||e;this.__listType=r,this.__tag=r===`number`?`ol`:`ul`,this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){let t=this.getWritable();return t.__listType=e,t.__tag=e===`number`?`ol`:`ul`,t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){let t=this.getWritable();return t.__start=e,t}createDOM(e,t){let n=this.__tag,r=ZS().createElement(n);return this.__start!==1&&r.setAttribute(`start`,String(this.__start)),r.__lexicalListType=this.__listType,yO(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(yO(t,n.theme,this),e.__start!==this.__start&&t.setAttribute(`start`,String(this.__start)),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){let t=this.createDOM(e._config,e);return iC(t)&&(this.__start!==1&&t.setAttribute(`start`,String(this.__start)),this.__listType===`check`&&t.setAttribute(`__lexicalListType`,`check`)),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,n){let r=n;for(let e=0;e1?r.push(...e):i.push(...e)}}i.length>0&&Rw(e,...i),r.length>0&&Lw(e,...r)}function bO(e){let t;if(function(e){return iC(e)&&e.nodeName.toLowerCase()===`ol`}(e)){let n=e.start;t=SO(`number`,n)}else t=function(e){if(e.getAttribute(`__lexicallisttype`)===`check`||e.classList.contains(`contains-task-list`)||e.getAttribute(`data-is-checklist`)===`1`)return!0;for(let t of e.childNodes)if(iC(t)&&t.hasAttribute(`aria-checked`))return!0;return!1}(e)?SO(`check`):SO(`bullet`);return vC(t,e),{after:e=>function(e,t){let n=t.createListItemNode.bind(t),r=[];for(let t=0;t1&&e.forEach(e=>{CO(e)&&r.push(n().append(e))})}else r.push(n().append(i))}return r}(e,t),node:t}}var xO={ol:`number`,ul:`bullet`};function SO(e=`number`,t=1){return zS(new vO(e,t))}function CO(e){return e instanceof vO}BE.tag(`ol`,`ul`),BE.tag(`li`),BE.tag(`li`).classAll(`task-list-item`),BE.tag(`li`).classAll(`joplin-checkbox`);var wO=O_(`INSERT_UNORDERED_LIST_COMMAND`),TO=O_(`INSERT_ORDERED_LIST_COMMAND`);function EO(e,t,n=null){let r=XS(n),i=n?JS(n):[],a=n!==null&&i.length>0;if(a&&typeof r.caretPositionFromPoint==`function`){let a=r.caretPositionFromPoint(e,t,{shadowRoots:i});if(a!==null&&function(e,t){for(let n=e;n!==null;){if(n===t)return!0;n=DS(n)}return!1}(a.offsetNode,n))return{node:a.offsetNode,offset:a.offset}}if(a){let i=n.getRootNode();if(KS(i)){let a=i.elementFromPoint(e,t);if(a!==null&&n.contains(a)){let n=function(e,t,n,r){let i=r.createRange(),a=e=>te.bottom?t-e.bottom:0,o=t=>et.right?e-t.right:0,s=r.createTreeWalker(n,NodeFilter.SHOW_TEXT),c=null,l=1/0,u=1/0;for(let e=s.nextNode();e;e=s.nextNode()){i.selectNodeContents(e);for(let t of i.getClientRects()){let n=a(t),r=o(t);(ne}).createHTML(e):e}var AO=(e,t)=>{if(!Q(t))return t.insertRawText(e),!0;let n=e=>{let t=ib();Q(t)&&e(t)};return pb(e,{linebreak:()=>n(e=>e.insertParagraph()),tab:()=>n(e=>e.insertNodes([Ey()])),text:e=>n(t=>t.insertText(e))}),!0},jO={"application/x-lexical-editor":[(e,t,n)=>{try{let n=uC(),r=JSON.parse(e);if(r&&r.namespace===n._config.namespace&&Array.isArray(r.nodes))return RO(n,_re(r.nodes),t),!0}catch(e){console.error(e)}return n()}],"text/html":[(e,t,n)=>{try{let n=uC();return RO(n,HE(n,new DOMParser().parseFromString(kO(e),`text/html`)),t),!0}catch(e){return console.error(e),n()}}],"text/plain":[AO],"text/uri-list":[AO]};function MO(e,t,n,r){if(!e)return!1;let i=a=>!!e[a]&&e[a](t,n,i.bind(null,a-1),r);return i(e.length-1)}function NO(e,t,n){let r=t.getData(`text/plain`);for(let i of function(e){return Object.keys(e.$importMimeType).filter(t=>e.$importMimeType[t]!==void 0).sort((t,n)=>{let r=e.priority[t],i=e.priority[n];return r===void 0&&i===void 0?tn):r===void 0?1:i===void 0?-1:r-i})}(e)){let a=t.getData(i);if(a&&(i!==`text/html`||a!==r)&&MO(e.$importMimeType[i],a,n,t))return!0}return!1}var dre={$importMimeType:jO,$insertDataTransfer:(e,t)=>NO({$importMimeType:jO,priority:OO},e,t),priority:OO},fre=Nw({build:(e,t)=>({$importMimeType:t.$importMimeType,$insertDataTransfer:(e,n)=>NO(t,e,n),priority:t.priority}),config:Pw({$importMimeType:jO,priority:OO}),mergeConfig(e,t){let n=Fw(e,t);if(t.$importMimeType){let r={...e.$importMimeType};for(let[e,n]of Object.entries(t.$importMimeType))if(n){let t=r[e];r[e]=t?[...t,...n]:n}n.$importMimeType=r}return t.priority&&(n.priority={...e.priority,...t.priority}),n},name:`@lexical/clipboard/Import`});function PO(e,t=ib()){return t??DO(166),Q(t)&&t.isCollapsed()||t.getNodes().length===0?``:WE(e,t)}function FO(e,t=ib()){return t??DO(166),Q(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(gre(e,t))}function IO(e,t,n){(function(){let e=eE(fre.name);return e?e.output:dre})().$insertDataTransfer(e,t)}var LO=`application/x-lexical-drag`;function pre(e,t){let n={editorKey:t.getKey()};e.setData(LO,JSON.stringify(n))}function mre(e,t,n){let r=e.dataTransfer;if(r===null)return!1;let i=function(e){let t=e.getData(LO);if(!t)return null;let n;try{n=JSON.parse(t)}catch{return null}return(r=n)!==null&&typeof r==`object`&&`editorKey`in r&&typeof r.editorKey==`string`?n:null;var r}(r);if(i===null)return!1;let a=function(e,t){let n=EO(e.clientX,e.clientY,t.getRootElement());if(n===null)return null;let r=$x(n.node);if(r===null)return null;if(Cy(r))return iw(r,`next`,n.offset);if($(r))return Aw(r,n.offset,`next`);let i=r.getParent();return i===null?null:Aw(i,r.getIndexWithinParent()+1,`next`)}(e,t);if(a===null)return!1;let o=jw(a);if(o===null)return!1;let s=i.editorKey===t.getKey(),c=ib();if(s){if(!Q(c)||c.isCollapsed())return!1;if(function(e,t){let{anchor:n,focus:r}=kw(Sw(t),`next`);return pw(n,e)<0&&pw(e,r)<0}(a,c))return e.preventDefault(),!0;c.removeText()}if(!o.origin.isAttached())return e.preventDefault(),!0;if(n(r,bw(uw(o)),t),!s){let e=t.getRootElement(),n=e?e.ownerDocument:null,r=n?function(e,t){for(let n of YS(t)){let t=Fx(n);if(Nx(t)&&t.getKey()===e&&iC(n))return n}return null}(i.editorKey,n):null;r!==null&&r.dispatchEvent(new InputEvent(`beforeinput`,{bubbles:!0,cancelable:!0,inputType:`deleteByDrag`}))}return e.preventDefault(),!0}function hre(e,t){return mre(e,t,IO)}function RO(e,t,n){e.dispatchCommand(A_,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(Q(e)&&e.isCollapsed()){let t=e.anchor,n=null,r=vw(t,`previous`);if(r){if(ew(r))n=r.origin;else{let e=dw(r,sw(nS(),`next`).getFlipped());for(let t of e){if(Cy(t.origin)){n=t.origin;break}if($(t.origin)&&!t.origin.isInline())break}}}if(n&&Cy(n)){let t=n.getFormat(),r=n.getStyle();e.format===t&&e.style===r||(e.format=t,e.style=r,e.dirty=!0)}}}(n))}function zO(e,t,n,r=[]){let i=t===null||n.isSelected(t),a=$(n)&&n.excludeFromCopy(`html`),o=n;t!==null&&Cy(o)&&(o=Uw(t,o,`clone`));let s=$(o)?o.getChildren():[],c=function(e){let t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&DO(58,n.name),$(e)){let e=t.children;Array.isArray(e)||DO(59,n.name)}return t}(o);Cy(o)&&o.getTextContentSize()===0&&(i=!1);let l=i&&Iy(t)&&$(n)?null:t;for(let r=0;r0){let n={};for(let r of t){let t=BC(o,r);t===null&&DO(366,o.constructor.name,r);let i=[];zO(e,null,t,i),i.length===1&&i[0].type===t.getType()||DO(385,r,o.constructor.name,String(i.length),String(i.length>0?i[0].type:`none`)),n[r]=i[0]}c.$slots=n}}if(i&&!a)r.push(c);else if(Array.isArray(c.children))for(let e=0;e{e.update(()=>{r(HO(e,t,n))})});let r=e.getRootElement(),i=e._window||window,a=i.document,o=WS(i);if(r===null||o===null)return!1;let s=a.createElement(`span`);s.style.position=`fixed`,s.style.top=`-1000px`,s.append(a.createTextNode(`#`)),r.append(s);let c=a.createRange();return c.setStart(s,0),c.setEnd(s,1),o.removeAllRanges(),o.addRange(c),new Promise((t,r)=>{let o=e.registerCommand(hv,r=>(Qw(r,ClipboardEvent)&&(o(),BO!==null&&(i.clearTimeout(BO),BO=null),t(HO(e,r,n))),!0),4);BO=i.setTimeout(()=>{o(),BO=null,t(!1)},50),a.execCommand(`copy`),s.remove()})}function HO(e,t,n){if(n===void 0){let t=WS(e._window),r=ib();if(!r||r.isCollapsed()||!t)return!1;let i=$S(t,e.getRootElement()),a=i.anchorNode,o=i.focusNode;if(a!==null&&o!==null&&!Mx(e,a,o))return!1;n=UO(r)}t.preventDefault();let r=t.clipboardData;return r!==null&&(WO(r,n),!0)}var vre=[[`text/html`,PO],[`application/x-lexical-editor`,FO]];function UO(e=ib()){return function(e,t){let n={"text/plain":``};for(let[r,i]of Object.entries(e))if(i){let e=bre(i,t);e!==null&&(n[r]=e)}return n}(yre(),e)}function WO(e,t){for(let[n]of vre)t[n]===void 0&&e.setData(n,``);for(let n in t){let r=t[n];r!==void 0&&e.setData(n,r)}}function yre(e=uC()){let t=$T(e,xre.name);return t?t.output:GO}var GO={"application/x-lexical-editor":[(e,t)=>e?FO(uC(),e):t()],"text/html":[(e,t)=>e?PO(uC(),e):t()],"text/plain":[(e,t)=>e?e.getTextContent():t()]};function bre(e,t){let n=r=>e[r]?e[r](t,n.bind(null,r-1)):null;return n(e.length-1)}var xre=Nw({build:(e,t,n)=>t.$exportMimeType,config:Pw({$exportMimeType:GO}),mergeConfig(e,t){let n=Fw(e,t);if(t.$exportMimeType){let r={...e.$exportMimeType};for(let[e,n]of Object.entries(t.$exportMimeType))if(n){let t=r[e];r[e]=t?[...t,...n]:n}n.$exportMimeType=r}return n},name:`@lexical/clipboard/GetClipboardData`});BE.tag(`h1`,`h2`,`h3`,`h4`,`h5`,`h6`),BE.tag(`blockquote`),BE.tag(`blockquote`),BE.tag(`p`),BE.tag(`span`);var KO=O_(`DRAG_DROP_PASTE_FILE`),qO=yg(`shadowRoot`,{parse:Boolean}),JO=class extends qb{$config(){return this.config(`quote`,{extends:qb,importDOM:{blockquote:()=>({conversion:Sre,priority:0})},stateConfigs:[{flat:!0,stateConfig:qO}]})}isShadowRoot(){return bg(this,qO)}setIsShadowRoot(e){return xg(this,qO,e)}createDOM(e){let t=ZS().createElement(`blockquote`);return Lw(t,e.theme.quote),t}updateDOM(e,t,n){return!1}exportDOM(e){let{element:t}=super.exportDOM(e);if(iC(t)){this.isEmpty()&&t.append(ZS().createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){return super.exportJSON()}static importJSON(e){return YO().updateFromJSON(e)}insertNewAfter(e,t){let n=mx(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){if(this.isShadowRoot()){for(let e of this.getChildren())this.insertBefore(e);return this.remove(),!0}let e=mx();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function YO(e){let t=zS(new JO);return e&&e.shadowRoot?t.setIsShadowRoot(!0):t}function XO(e){return e instanceof JO}var ZO=class extends qb{__tag;$config(){return this.config(`heading`,{extends:qb,importDOM:{h1:()=>({conversion:$O,priority:0}),h2:()=>({conversion:$O,priority:0}),h3:()=>({conversion:$O,priority:0}),h4:()=>({conversion:$O,priority:0}),h5:()=>({conversion:$O,priority:0}),h6:()=>({conversion:$O,priority:0}),p:e=>{let t=e.firstChild;return t!==null&&QO(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>QO(e)?{conversion:()=>({node:ek(`h1`)}),priority:3}:null}})}afterCloneFrom(e){super.afterCloneFrom(e),this.__tag=e.__tag}constructor(e=`h1`,t){super(t),this.__tag=e}getTag(){return this.getLatest().__tag}setTag(e){let t=this.getWritable();return t.__tag=e,t}createDOM(e){let t=this.__tag,n=ZS().createElement(t),r=e.theme.heading;if(r!==void 0){let e=r[t];Lw(n,e)}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}exportDOM(e){let{element:t}=super.exportDOM(e);if(iC(t)){this.isEmpty()&&t.append(ZS().createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){let n=e?e.anchor.offset:0,r=this.getLastDescendant(),i=!r||e&&e.anchor.key===r.getKey()&&n===r.getTextContentSize()||!e?mx():ek(this.getTag()),a=this.getDirection();if(i.setDirection(a),this.insertAfter(i,t),n===0&&!this.isEmpty()&&e){let e=mx();e.select(),this.replace(e,!0)}return i}collapseAtStart(){if(this.isEmpty()){let e=mx();this.getChildren().forEach(t=>e.append(t)),this.replace(e)}return!0}extractWithChild(){return!0}};function QO(e){return e.nodeName.toLowerCase()===`span`&&e.style.fontSize===`26pt`}function $O(e){let t=e.nodeName.toLowerCase(),n=null;return t!==`h1`&&t!==`h2`&&t!==`h3`&&t!==`h4`&&t!==`h5`&&t!==`h6`||(n=ek(t),_C(e,n),yC(n,e),vC(n,e)),{node:n}}function Sre(e){let t=YO();return yC(t,e),_C(e,t),vC(t,e),{node:t}}function ek(e=`h1`){return zS(new ZO(e))}function tk(e){return e instanceof ZO}function nk(e){return Xb($x(e))}function rk(e,t,n,r){let i=!1,a=null;if(e.isCollapsed()&&e.anchor.type===`text`){let t=e.anchor.getNode();if(Cy(t)){a=t;let r=e.anchor.offset,o=r===t.getTextContentSize()&&t.getNextSibling()===null,s=r===0&&t.getPreviousSibling()===null;i=n===`end`&&o||n===`start`&&s||n===`both`&&(o||s)}}let o=!1;for(let[n,s]of Object.entries(r)){if(s==null||!s[t])continue;let r=n;if(s.onlyAtBoundary){if(!(i&&a&&Cy(a)&&a.hasFormat(r)))continue;o=!0}e.hasFormat(r)&&e.toggleFormat(r)}o&&e.setStyle(``)}var Cre={capitalize:{enter:!0,space:!0,tab:!0},lowercase:{enter:!0,space:!0,tab:!0},uppercase:{enter:!0,space:!0,tab:!0}};function ik(e,t){return function(e,t){if(!e.isCollapsed())return!1;let n=vw(e.focus,t),r=kC(n.origin,IS);if(!r)return!1;let i=e.focus.getNode();if(!r.is(i)&&!jS(i,r))return!1;let a=dw(n,rw(r,t));if(a.getTextSlices().some(e=>e&&e.getTextContentSize()>0))return!1;let o=dw(a.anchor.getSiblingCaret(),a.focus),s=o.anchor.origin;for(let e of o){if(!tw(e)||!e.origin.is(s.getParent()))return!1;s=e.origin}let c=r;for(let e of lw(rw(r,t))){if(!e.origin.is(c.getParent())){if(HS(e.origin)){let e=rw(c,t);return bw(dw(e,e)),!0}break}if(!IS(e.origin))break;c=e.origin}return!1}(e,t)||function(e,t){if(!e.isCollapsed()||e.anchor.type!==`element`)return!1;let n=vw(e.anchor,t).getNodeAtCaret();return!(!IS(n)||n.isInline()||(bw(uw(Ew(sw(n,t)))),0))}(e,t)}function ak(e){return Xb(e)&&!e.isInline()&&!e.isIsolated()&&e.isKeyboardSelectable()}function ok(e){let t=nb();t.add(e),rS(t)}function sk(e,t){if(!e.isCollapsed())return!1;let n=e.focus,r=n.getNode(),i=t?`previous`:`next`,a=vw(n,i);if(n.type===`element`&&$(r)&&LS(r)){let e=a.getNodeAtCaret();return!(e===null||!ak(e))&&(ok(e.__key),!0)}let o=kC($(r)?r:r.getParentOrThrow(),e=>$(e)&&!e.isInline()&&LS(e.getParent()));if(o===null)return!1;let s=rw(o,i).getNodeAtCaret();if(s===null||!ak(s))return!1;if(o.getTextContentSize()===0)return ok(s.__key),!0;let c=uC().getRootElement();if(c===null)return!1;let l=WS(c.ownerDocument.defaultView);if(l===null||l.rangeCount===0)return!1;let u=l.anchorNode,d=l.anchorOffset,f=l.focusNode,p=l.focusOffset;l.modify(`move`,t?`backward`:`forward`,`line`);let m=l.anchorNode,h=l.anchorOffset;if(m===null)return ck(l,u,d,f,p),!1;let g=$x(m);return ck(l,u,d,f,p),g!==null&&(m===u&&h===d||!g.is(o)&&!jS(g,o))&&(ok(s.__key),!0)}function ck(e,t,n,r,i){t!==null&&r!==null&&e.setBaseAndExtent(t,n,r,i)}function lk(e,t){if(!e.isCollapsed())return!1;let n=e.focus.getNode(),r=kC($(n)?n:n.getParentOrThrow(),e=>$(e)&&!e.isInline());if(r===null)return!1;let i=uC(),a=i.getRootElement();if(a===null)return!1;let o=a.ownerDocument.defaultView;if(o===null)return!1;let s=!1;for(let e of r.getChildren())if($(e)&&e.isInline()){let t=i.getElementByKey(e.getKey());if(t!==null){let e=o.getComputedStyle(t).display;if(e===`inline-grid`||e===`inline-flex`){s=!0;break}}}if(!s)return!1;let c=rw(r,t?`previous`:`next`).getNodeAtCaret();if(c===null||!$(c)){if(t){let e=r.getFirstDescendant();Cy(e)?e.select(0,0):r.select(0,0)}else{let e=r.getLastDescendant();if(Cy(e)){let t=e.getTextContentSize();e.select(t,t)}else{let e=r.getChildrenSize();r.select(e,e)}}return!0}let l=i.getElementByKey(c.getKey());if(l===null)return!1;let u=WS(o);if(u===null||u.rangeCount===0)return!1;let d=u.getRangeAt(0).cloneRange();d.collapse(!0);let f=d.getBoundingClientRect(),p=l.getBoundingClientRect(),m=p.top+p.height/2;if(f.height>0){let t=EO(f.left,m,a);if(t!==null&&l.contains(t.node)){let n=a.ownerDocument.createRange();return n.setStart(t.node,t.offset),n.collapse(!0),e.applyDOMRange(n),e.dirty=!0,!0}}let h=t?c.getLastDescendant():c.getFirstDescendant();if(Cy(h)){let e=t?h.getTextContentSize():0;h.select(e,e)}else{let e=c.getChildrenSize();c.select(t?e:0,t?e:0)}return!0}function uk(e,t){let n=rw(e,t),r=n.getAdjacentCaret();r!==null&&$(r.origin)&&!r.origin.isInline()&&r.origin.isShadowRoot()?bw(uw(n)):t===`next`?e.selectNext(0,0):e.selectPrevious()}function dk(e,t,n){n.preventDefault(),n.stopPropagation();let r=e.getNodes();if(r.length===0)return!0;let i=r.map(e=>rw(e,`next`)).sort(pw),a=(t?i[0]:i[i.length-1]).origin,o=kC(a,e=>e!==a&&$(e)&&!e.isInline())??nS(),s=t?0:o.getChildrenSize();return o.select(s,s),!0}function wre(e,t=hT(Cre)){return zw(e.registerCommand(j_,()=>{let e=ib();return Iy(e)?(e.clear(),!0):(Q(e)&&rk(e,`click`,`both`,t.peek()),!1)},0),e.registerCommand(I_,e=>{let t=ib();return Q(t)?(t.deleteCharacter(e),!0):!!Iy(t)&&(t.deleteNodes(),!0)},0),e.registerCommand(H_,e=>{let t=ib();return!!Q(t)&&(t.deleteWord(e),!0)},0),e.registerCommand(U_,e=>{let t=ib();return!!Q(t)&&(t.deleteLine(e),!0)},0),e.registerCommand(z_,t=>{let n=ib();if(typeof t==`string`)n!==null&&n.insertText(t);else{if(n===null)return!1;let r=t.dataTransfer;if(r!=null)IO(r,n,e);else if(Q(n)){let e=t.data;return e&&n.insertText(e),!0}}return!0},0),e.registerCommand(V_,()=>{let e=ib();return!!Q(e)&&(e.removeText(),!0)},0),e.registerCommand(W_,e=>{let t=ib();return!(!Q(t)&&!Iy(t))&&(Ry(t,e),!0)},0),e.registerCommand(G_,e=>{let t=ib();return!(!Q(t)&&!Iy(t))&&(yne(t,e),!0)},0),e.registerCommand(dv,e=>{let t=ib();if(!Q(t)&&!Iy(t))return!1;let n=t.getNodes();for(let t of n){let n=kC(t,e=>$(e)&&!e.isInline());n!==null&&n.setFormat(e)}return!0},0),e.registerCommand(L_,e=>{let t=ib();return!!Q(t)&&(t.insertLineBreak(e),!0)},0),e.registerCommand(R_,()=>{let e=ib();return!!Q(e)&&(e.insertParagraph(),!0)},0),e.registerCommand(sv,()=>{let e=Ey(),t=ib();return Q(t)&&(e.setFormat(t.format),e.setStyle(t.style)),fb([e]),!0},0),e.registerCommand(cv,()=>eT(e=>{let t=e.getIndent();e.setIndent(t+1)}),0),e.registerCommand(lv,()=>eT(e=>{let t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),0),e.registerCommand($_,e=>{let t=ib();if(Iy(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),uk(n[0],`previous`),!0}else if(Q(t)&&(function(e){let t=e.focus;return t.key===`root`&&t.offset===0}(t)||!e.shiftKey&&ik(t,`previous`)||!e.shiftKey&&sk(t,!0)||!e.shiftKey&&lk(t,!0)))return e.preventDefault(),!0;return!1},0),e.registerCommand(ev,e=>{let t=ib();if(Iy(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),uk(n[0],`next`),!0}else if(Q(t)&&(function(e){let t=e.focus;return t.key===`root`&&t.offset===nS().getChildrenSize()}(t)||!e.shiftKey&&ik(t,`next`)||!e.shiftKey&&sk(t,!1)||!e.shiftKey&&lk(t,!1)))return e.preventDefault(),!0;return!1},0),e.registerCommand(Z_,e=>{let n=ib();if(Iy(n)){let t=n.getNodes();if(t.length>0)return e.preventDefault(),uk(t[0],Hw(t[0])?`next`:`previous`),!0}if(!Q(n))return!1;if(!e.shiftKey&&ik(n,Hw(n.anchor.getNode())?`next`:`previous`))return e.preventDefault(),!0;if(e.shiftKey||rk(n,`arrow`,`start`,t.peek()),Jw(n,!0)){let t=e.shiftKey;return e.preventDefault(),Xw(n,t,!0),!0}return!1},0),e.registerCommand(Y_,e=>{let n=ib();if(Iy(n)){let t=n.getNodes();if(t.length>0)return e.preventDefault(),uk(t[0],Hw(t[0])?`previous`:`next`),!0}if(!Q(n))return!1;if(!e.shiftKey&&ik(n,Hw(n.anchor.getNode())?`previous`:`next`))return e.preventDefault(),!0;if(e.shiftKey||rk(n,`arrow`,`end`,t.peek()),Jw(n,!1)){let t=e.shiftKey;return e.preventDefault(),Xw(n,t,!1),!0}return!1},0),e.registerCommand(rv,t=>{let n=ib();if(!Iy(n)&&nk(t.target))return!1;if(Q(n)){if(function(e){if(!e.isCollapsed())return!1;let{anchor:t}=e;if(t.offset!==0)return!1;let n=t.getNode();if(Qb(n))return!1;let r=ire(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(lv);if(Vh&&Bh)return!1}else if(!Iy(n))return!1;return t.preventDefault(),e.dispatchCommand(I_,!0)},0),e.registerCommand(av,t=>{let n=ib();return!(!Iy(n)&&nk(t.target))&&!(!Q(n)&&!Iy(n))&&(t.preventDefault(),e.dispatchCommand(I_,!1))},0),e.registerCommand(tv,n=>{let r=ib();if(Iy(r)){let e=r.getNodes();e.length===1&&Xb(e[0])&&!e[0].isInline()&&(r=e[0].selectNext())}if(!Q(r))return!1;if(rk(r,`enter`,`both`,t.peek()),n!==null){if((Vh||Uh||Kh)&&Bh)return!1;if(n.preventDefault(),n.shiftKey)return e.dispatchCommand(L_,!1)}return e.dispatchCommand(R_)},0),e.registerCommand(iv,()=>!!Q(ib())&&(e.blur(),!0),0),e.registerCommand(uv,t=>{let[,n]=$w(t);if(n.length>0){let r=t.clientX,i=t.clientY,a=EO(r,i,e.getRootElement());if(a!==null){let{offset:t,node:r}=a,i=$x(r);if(i!==null){let e=tb();if(Cy(i))e.anchor.set(i.getKey(),t,`text`),e.focus.set(i.getKey(),t,`text`);else{let t=i.getParentOrThrow().getKey(),n=i.getIndexWithinParent()+1;e.anchor.set(t,n,`element`),e.focus.set(t,n,`element`)}rS(Mg(e))}e.dispatchCommand(KO,n)}return t.preventDefault(),!0}return hre(t,e)},0),e.registerCommand(fv,t=>{let[n]=$w(t),r=ib();return!(n&&!Q(r))&&(Q(r)&&!r.isCollapsed()&&t.dataTransfer!==null&&(WO(t.dataTransfer,UO(r)),pre(t.dataTransfer,e)),!0)},0),e.registerCommand(pv,t=>{let[n]=$w(t),r=ib();if(n&&!Q(r))return!1;let i=t.clientX,a=t.clientY,o=EO(i,a,e.getRootElement());return o!==null&&Xb($x(o.node))&&t.preventDefault(),!0},0),e.registerCommand(_v,()=>{let e=ib();return yS(Q(e)&&LC(e.anchor.getNode())!==null?e:null),!0},0),e.registerCommand(hv,t=>(VO(e,Qw(t,ClipboardEvent)?t:null),!0),0),e.registerCommand(gv,t=>(async function(e,t){await VO(t,Qw(e,ClipboardEvent)?e:null),t.update(()=>{let e=ib();Q(e)?e.removeText():Iy(e)&&e.getNodes().forEach(e=>e.remove())},{tag:`cut`})}(t,e),!0),0),e.registerCommand(B_,t=>{let[,n,r]=$w(t);return n.length>0&&!r?(e.dispatchCommand(KO,n),!0):aC(t.target)&&jx(t.target)?!1:ib()!==null&&(function(e,t){e.preventDefault(),t.update(()=>{let n=ib(),r=Qw(e,InputEvent)||Qw(e,KeyboardEvent)?null:e.clipboardData;r!=null&&n!==null&&IO(r,n,t)},{tag:`paste`})}(t,e),!0)},0),e.registerCommand(nv,()=>{let e=ib();return Q(e)&&rk(e,`space`,`both`,t.peek()),!1},0),e.registerCommand(ov,()=>{let e=ib();return Q(e)&&rk(e,`tab`,`both`,t.peek()),!1},0),e.registerCommand(X_,e=>{let t=ib();if(Iy(t))return dk(t,!1,e);if(!Q(t))return!1;let{anchor:n}=t;if(n.type!==`element`||n.offset!==0)return!1;let r=n.getNode();if(!$(r))return!1;let i=r.getFirstChild();if(!Xb(i)||!i.isInline())return!1;let a=r.getKey(),o=r.selectEnd();return e.shiftKey&&o.anchor.set(a,0,`element`),e.preventDefault(),e.stopPropagation(),!0},0),e.registerCommand(Q_,e=>{let t=ib();if(Iy(t))return dk(t,!0,e);if(!Q(t))return!1;let{anchor:n,focus:r}=t,i=kC(r.getNode(),e=>$(e)&&!e.isInline());if(i===null)return!1;let a=i.getFirstChild();if(!Xb(a)||!a.isInline()||kC(n.getNode(),e=>$(e)&&!e.isInline())!==i)return!1;let o=i.getKey();return(r.type!==`element`||r.key!==o||r.offset!==0)&&(t.focus.set(o,0,`element`),e.shiftKey||t.anchor.set(o,0,`element`),e.preventDefault(),e.stopPropagation(),!0)},0))}function fk(e,t){let n={};for(let r of e){let e=t(r);e&&(n[e]?n[e].push(r):n[e]=[r])}return n}function pk(e){let t=fk(e,e=>e.type);return{element:t.element||[],multilineElement:t[`multiline-element`]||[],textFormat:t[`text-format`]||[],textMatch:t[`text-match`]||[]}}var mk=/[!-/:-@[-`{-~\s]/,hk=/\s/,gk=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/,Tre=/^\s{0,3}$/;function _k(e){if(!hx(e))return!1;let t=e.getFirstChild();return t==null||e.getChildrenSize()===1&&Cy(t)&&Tre.test(t.getTextContent())}function vk(e){return e.replace(/\\([!-/:-@[-`{-~])/g,`$1`).replace(/&#(\d+);/g,(e,t)=>String.fromCodePoint(Number(t)))}var yk=/^(\s*)(\d{1,})\.\s/,bk=/^(\s*)[-*+]\s/,Ere=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,xk=/^(#{1,6})\s/,Sk=/^>\s/,Ck=/^([ \t]*`{3,})([\w-]+)?[ \t]?/,wk=/^[ \t]*`{3,}$/,Dre=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,Ore=/^(?:\|)(.+)(?:\|)\s?$/;function kre(e){if(e[0]!==`|`)return!1;let{length:t}=e,n=1,r=0;for(;n0&&(n===t||n===t-1&&/\s/.test(e[n]))}var Tk=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,Ek=/^<\/[a-z_][\w-]*\s*>/i,Dk=e=>RegExp(`(?:${e.source})$`,e.flags),Ok=yg(`mdListMarker`,{parse:e=>typeof e==`string`&&/^[-*+]$/.test(e)?e:`-`,resetOnCopyNode:!0}),kk=yg(`mdCodeFence`,{parse:e=>typeof e==`string`&&/^`{3,}$/.test(e)?e:"```",resetOnCopyNode:!0}),Ak=yg(`mdHardLineBreak`,{parse:e=>typeof e==`string`&&/^(\\| {2,})$/.test(e)?e:``,resetOnCopyNode:!0});function jk(e){if(e.endsWith(`\\`))return[e.slice(0,-1),`\\`];let t=e.match(/^(.*?\S)( {2,})$/);return t?[t[1],t[2]]:null}function Are(e){let t=e.getChildren(),n=t.length-1,r=t[n];if(!Cy(r))return null;let i=r.getTextContent(),a=jk(i);if(a!==null){let[e,t]=a;return r.setTextContent(e),t}return/^ {2,}$/.test(i)&&function(e,t){for(let n=t-1;n>=0;n--){if(cx(e[n]))return!1;if(/\S/.test(e[n].getTextContent()))return!0}return!1}(t,n)?(r.setTextContent(``),i):null}function Mk(e){let t=sx(),n=Are(e);return n!==null&&xg(t,Ak,n),t}var Nk=e=>(t,n,r,i)=>{let a=e(r);a.append(...n),t.replace(a),i||a.select(0,0)},Pk=e=>(t,n,r,i)=>{if(tk(t))return!1;let a=t.getPreviousSibling(),o=t.getNextSibling(),s=gO(e===`check`?r[3]===`x`:void 0),c=r[0].trim()[0],l=e!==`bullet`&&e!==`check`||c!==Ok.parse(c)?void 0:c;if(CO(o)&&o.getListType()===e){l&&xg(o,Ok,l);let n=o.getFirstChild();n===null?o.append(s):n.insertBefore(s),e===`number`&&o.setStart(Number(r[2])),t.remove()}else if(CO(a)&&a.getListType()===e)l&&xg(a,Ok,l),a.append(s),t.remove();else{let n=SO(e,e===`number`?Number(r[2]):void 0);l&&xg(n,Ok,l),n.append(s),t.replace(n)}s.append(...n),i||s.select(0,0);let u=function(e){let t=e.match(/\t/g),n=e.match(/ /g),r=0;return t&&(r+=t.length),n&&(r+=Math.floor(n.length/4)),r}(r[1]);u&&s.setIndent(u)},Fk=(e,t,n,r)=>{let i=[],a=e.getChildren(),o=0;for(let s of a)if(_O(s)){if(s.getChildrenSize()===1){let e=s.getFirstChild();if(CO(e)){let a=Fk(e,t,n+1,r);a&&i.push(a);continue}}if(r&&!s.getChildren().some(e=>e.isSelected(r)))continue;let a=` `.repeat(4*n),c=e.getListType(),l=bg(e,Ok),u=c===`number`?`${e.getStart()+o}. `:c===`check`?`${l} [${s.getChecked()?`x`:` `}] `:l+` `,d=t(s);c!==`number`&&(d=d.replace(/^(\s{0,3}\d+)(\.\s)/,`$1\\$2`)),i.push(a+u+d),o++}return i.join(` +`)},Ik={dependencies:[ZO],export:(e,t)=>{if(!tk(e))return null;let n=Number(e.getTag().slice(1));return`#`.repeat(n)+` `+t(e)},regExp:xk,replace:Nk(e=>ek(`h`+e[1].length)),triggerOnEnter:!0,type:`element`},Lk={dependencies:[JO],export:(e,t)=>{if(!XO(e))return null;let n=t(e).split(` +`),r=[];for(let e of n)r.push(`> `+e);return r.join(` +`)},regExp:Sk,replace:(e,t,n,r)=>{if(r){let n=e.getPreviousSibling();if(XO(n))return n.splice(n.getChildrenSize(),0,[Mk(n),...t]),void e.remove()}let i=YO();i.append(...t),e.replace(i),r||i.select(0,0)},triggerOnEnter:!0,type:`element`},Rk={dependencies:[cD],export:e=>{if(!uD(e))return null;let t=e.getTextContent(),n=bg(e,kk);if(t.indexOf(n)>-1){let e=t.match(/`{3,}/g);if(e){let t=Math.max(...e.map(e=>e.length));n="`".repeat(t+1)}}return n+(e.getLanguage()||``)+(t?` +`+t:``)+` +`+n},handleImportAfterStartMatch:({lines:e,rootNode:t,startLineIndex:n,startMatch:r})=>{let i=r[1],a=i.trim().length,o=e[n],s=r.index+i.length,c=o.slice(s),l=RegExp(`\`{${a},}$`);if(l.test(c)){let e=c.match(l),i=c.slice(0,c.lastIndexOf(e[0])),a=[...r];return a[2]=``,Rk.replace(t,null,a,e,[i],!0),[!0,n]}let u=RegExp(`^[ \\t]*\`{${a},}$`);for(let i=n+1;i0&&c.unshift(l),Rk.replace(t,null,r,s,c,!0),[!0,i]}}let d=e.slice(n+1),f=o.slice(r[0].length);return f.length>0&&d.unshift(f),Rk.replace(t,null,r,null,d,!0),[!0,e.length-1]},regExpEnd:{optional:!0,regExp:wk},regExpStart:Ck,replace:(e,t,n,r,i,a)=>{let o,s,c=n[1]?n[1].trim():"```",l=n[2]||void 0;if(!t&&i){if(i.length===1)r?(o=lD(l),s=i[0]):(o=lD(l),s=i[0].startsWith(` `)?i[0].slice(1):i[0]);else{for(o=lD(l),i.length>0&&(i[0].trim().length===0?i.shift():i[0].startsWith(` `)&&(i[0]=i[0].slice(1)));i.length>0&&!i[i.length-1].length;)i.pop();s=i.join(` +`)}xg(o,kk,c);let t=Sy(s);o.append(t),e.append(o)}else t&&Nk(e=>lD(e?e[2]:void 0))(e,t,n,a)},type:`multiline-element`},zk={dependencies:[vO,fO],export:(e,t,n)=>CO(e)?Fk(e,t,0,n):null,regExp:bk,replace:Pk(`bullet`),triggerOnEnter:!0,type:`element`},Bk={dependencies:[vO,fO],export:(e,t,n)=>CO(e)?Fk(e,t,0,n):null,regExp:yk,replace:Pk(`number`),triggerOnEnter:!0,type:`element`},Vk={format:[`code`],tag:"`",type:`text-format`},jre={format:[`highlight`],tag:`==`,type:`text-format`},Hk={format:[`bold`,`italic`],tag:`***`,type:`text-format`},Uk={format:[`bold`,`italic`],intraword:!1,tag:`___`,type:`text-format`},Wk={format:[`bold`],tag:`**`,type:`text-format`},Gk={format:[`bold`],intraword:!1,tag:`__`,type:`text-format`},Kk={format:[`strikethrough`],tag:`~~`,type:`text-format`},qk={format:[`italic`],tag:`*`,type:`text-format`},Jk={format:[`italic`],intraword:!1,tag:`_`,type:`text-format`},Yk={dependencies:[VD],export:(e,t,n)=>{if(!WD(e)||qD(e))return null;let r=t(e),i=e.getTitle();return i!=null&&(i=i.replace(/([\\"])/g,`\\$1`)),i?`[${r}](${e.getURL()} "${i}")`:`[${r}](${e.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[([^[\]]*(?:\[[^[\]]*\][^[\]]*)*)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(e,t)=>{if(kC(e,WD))return;let[,n,r,i]=t,a=UD(r==null?void 0:vk(r),{title:i==null?void 0:vk(i)}),o=n.split(`[`).length-1,s=n.split(`]`).length-1,c=n,l=``;if(os){let e=n.split(`[`);l=`[`+e[0],c=e.slice(1).join(`[`)}let u=Sy(c);return u.setFormat(e.getFormat()),a.append(u),e.replace(a),l&&a.insertBefore(Sy(l)),u},trigger:`)`,type:`text-match`},Mre=[Ik,Lk,zk,Bk],Nre=[Rk],Pre=[Vk,Hk,Uk,Wk,Gk,jre,qk,Jk,Kk],Fre=[Yk],Xk=[...Mre,...Nre,...Pre,...Fre];function Ire(e,t=!1){let n=e.split(` +`),r=0,i=[];for(let e=0;e=r){r=0,i.push(o);continue}i.push(a)}}return i.join(` +`)}function Lre(e,t,n,r,i){for(let a of t){if(!a.export)continue;let t=a.export(e,e=>Zk(e,n,r,void 0,void 0,i));if(t!=null)return t}return $(e)?Zk(e,n,r,void 0,void 0,i):Xb(e)?e.getTextContent():null}function Zk(e,t,n,r,i,a=!1){let o=[],s=e.getChildren();r||=[],i||=[];t:for(let e of s){for(let s of n){if(!s.export)continue;let c=s.export(e,e=>Zk(e,t,n,r,[...i,...r],a),(e,n)=>Qk(e,n,t,r,i,a));if(c!=null){o.push(c);continue t}}cx(e)?o.push(Rre(e)):Cy(e)?o.push(Qk(e,e.getTextContent(),t,r,i,a)):$(e)?o.push(Zk(e,t,n,r,i,a)):Xb(e)&&o.push(e.getTextContent())}return o.join(``)}function Rre(e){return bg(e,Ak)+` +`}function Qk(e,t,n,r,i,a=!1){let o=e.hasFormat(`code`),s,c,l,u,d=t;if(o||(d=a?d.replace(/([*_`~])/g,`\\$1`):d.replace(/([*_`~\\])/g,`\\$1`)),o){let{fence:e,padded:n}=function(e){let t=e.match(/`+/g),n=t?Math.max(...t.map(e=>e.length)):0;return{fence:"`".repeat(n+1),padded:e.length===0||e.includes("`")||/^\s/.test(e)&&/\s$/.test(e)?` ${e} `:e}}(t);s=``,l=``,c=e+n+e,u=!1}else{let e=d.match(/^(\s*)(.*?)(\s*)$/s)||[``,``,d,``];s=e[1],c=e[2],l=e[3],u=c===``}let f=``,p=``,m=``,h=$k(e,!0),g=$k(e,!1),_=new Set;for(let t of n){let n=t.format[0],i=t.tag;n!==`code`&&tA(e,n)&&!_.has(n)&&(_.add(n),tA(h,n)&&r.find(e=>e.tag===i)||(r.push({format:n,tag:i}),f+=i))}for(let t=0;tt;){let e=o.pop();i&&e&&i.find(t=>t.tag===e.tag)||(e&&typeof e.tag==`string`&&(n?a||(m+=e.tag):p+=e.tag),r.pop())}break}return u&&!e.hasFormat(`code`)?p+d:p+s+f+c+m+l}function $k(e,t){let n=t?e.getPreviousSibling():e.getNextSibling();return Cy(n)?n:null}function eA(e,t){return Cy(e)&&e.hasFormat(t)}function tA(e,t){return!!eA(e,t)&&(t===`code`||!e||!/^\s*$/.test(e.getTextContent()))}function zre(e,t){let n=e.getTextContent(),r=t.transformersByTag["`"],i=[],a=null;if(r){let e=function(e){let t=t=>{let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;r--)n++;return n%2==1},n=[],r=0;for(;r=2&&c.startsWith(` `)&&c.endsWith(` `)&&/[^ ]/.test(c)&&(c=c.slice(1,-1)),i.push({content:c,endIndex:s.index+s.length,startIndex:r.index}),a=o+1}return i}(n);for(let t of e)a||={content:t.content,endIndex:t.endIndex,startIndex:t.startIndex,tag:"`"},i.push({end:t.endIndex,start:t.startIndex})}let o=function(e,t,n=[]){let r=[],i=new Set(Object.keys(t.transformersByTag).filter(e=>e[0]!=="`").map(e=>e[0])),a=t=>{let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;r--)n++;return n%2==1},o=e=>n.some(t=>e>=t.start&&e0?function(e,t,n){let r={},i=0,a=null;for(;ic;r--){let s=t[r];if(!s.active||!s.canOpen||s.length===0||s.char!==o.char||(s.canClose||o.canOpen)&&(s.length+o.length)%3==0&&s.length%3!=0&&o.length%3!=0)continue;let c=Math.min(s.length,o.length),u=Object.keys(n.transformersByTag).filter(e=>e[0]===s.char&&e.length<=c).sort((e,t)=>t.length-e.length)[0];if(!u)continue;l=!0;let d=u.length,f={content:e.slice(s.index+s.length,o.index),endIndex:o.index+d,startIndex:s.index+(s.length-d),tag:u};(!a||f.startIndexa.endIndex)&&(a=f);for(let e=r+1;e0,o.length>0?o.index+=d:(o.active=!1,i++);break}l||(r[s]=i-1,o.canOpen||(o.active=!1),i++)}return a}(n,o,t):null,c=null,l=null;if(a&&s?s.startIndex<=a.startIndex&&s.endIndex>=a.endIndex?(c=s,l=t.transformersByTag[s.tag]):(c=a,l=r):a?(c=a,l=r):s&&(c=s,l=t.transformersByTag[s.tag]),!c||!l)return null;let u=[n.slice(c.startIndex,c.endIndex),c.tag,c.content];return u.index=c.startIndex,u.input=n,{endIndex:c.endIndex,isCodeSpan:l===r,match:u,startIndex:c.startIndex,transformer:l}}function nA(e,t,n,r,i){if(!rA(t,n,r,i))return!1;if(e===`*`)return!0;if(e===`_`){if(!rA(t,n,r,!i))return!0;let e=i?t[n-1]:t[n+r];return e!==void 0&&gk.test(e)}return!0}function rA(e,t,n,r){let i=e[t-1],a=e[t+n],[o,s]=r?[a,i]:[i,a];return o!==void 0&&!hk.test(o)&&(!gk.test(o)||s===void 0||hk.test(s)||gk.test(s))}function iA(e){return Cy(e)&&!e.hasFormat(`code`)}function aA(e,t,n){let r=zre(e,t),i=function(e,t){let n=e,r,i,a,o;for(let e of t){if(!e.replace||!e.importRegExp)continue;let t=n.getTextContent().match(e.importRegExp);if(!t)continue;let s=t.index||0,c=e.getEndIndex?e.getEndIndex(n,t):s+t[0].length;!1!==c&&(r===void 0||i===void 0||si||c<=r))&&(r=s,i=c,a=e,o=t)}return r===void 0||i===void 0||a===void 0||o===void 0?null:{endIndex:i,match:o,startIndex:r,transformer:a}}(e,n);if(r&&i&&(r.isCodeSpan?i.startIndex<=r.startIndex&&i.endIndex>=r.endIndex?r=null:i=null:r.startIndex<=i.startIndex&&r.endIndex>=i.endIndex||i.startIndex>r.endIndex?i=null:r=null),r){let i=function(e,t,n,r,i){let a=e.getTextContent(),o,s,c;if(i[0]===a?o=e:t===0?[o,s]=e.splitText(n):[c,o,s]=e.splitText(t,n),o.setTextContent(i[2]),r)for(let e of r.format)o.hasFormat(e)||o.toggleFormat(e);return{nodeAfter:s,nodeBefore:c,transformedNode:o}}(e,r.startIndex,r.endIndex,r.transformer,r.match);iA(i.nodeAfter)&&aA(i.nodeAfter,t,n),iA(i.nodeBefore)&&aA(i.nodeBefore,t,n),iA(i.transformedNode)&&aA(i.transformedNode,t,n)}else if(i){let r=function(e,t,n,r,i){let a,o,s;return t===0?[a,o]=e.splitText(n):[s,a,o]=e.splitText(t,n),r.replace?{nodeAfter:o,nodeBefore:s,transformedNode:r.replace(a,i)||void 0}:null}(e,i.startIndex,i.endIndex,i.transformer,i.match);if(!r)return;iA(r.nodeAfter)&&aA(r.nodeAfter,t,n),iA(r.nodeBefore)&&aA(r.nodeBefore,t,n),iA(r.transformedNode)&&aA(r.transformedNode,t,n)}let a=vk(e.getTextContent());e.setTextContent(a)}function Bre(e,t,n,r=!1){let i=pk(n),a=function(e){let t={},n={},r=[];for(let i of e){let{tag:e}=i;t[e]=i;let a=e.replace(/(\*|\^|\+)/g,`\\$1`);r.push(a),n[e]=e.length===1?RegExp(e==="`"?"(^|[^\\\\`])(`)((?:\\\\`|[^`])+?)(`)(?!`)":`(^|[^\\\\${a}])(${a})((\\\\${a})?.*?[^${a}\\s](\\\\${a})?)(${a})(?![\\\\${a}])`):RegExp(`(^|[^\\\\])(${a})((\\\\${a})?.*?[^\\s](\\\\${a})?)(${a})(?!\\\\)`)}return{fullMatchRegExpByTag:n,openTagsRegExp:RegExp(`(${r.join(`|`)})`,`g`),transformersByTag:t}}(i.textFormat),o=e.split(` +`),s=o.length;for(let e=0;e1)e.remove();else if($(e))for(let t of e.getAllTextNodes())Ure(t)}function Vre(e,t,n,r){for(let i of n){let{handleImportAfterStartMatch:n,regExpEnd:a,regExpStart:o,replace:s}=i,c=e[t].match(o);if(!c)continue;if(n){let a=n({lines:e,rootNode:r,startLineIndex:t,startMatch:c,transformer:i});if(a===null)continue;if(a)return a}let l=typeof a==`object`&&`regExp`in a?a.regExp:a,u=a&&typeof a==`object`&&`optional`in a?a.optional:!a,d=t,f=e.length;for(;d0){let e=s.getPreviousSibling();if(!a&&(hx(e)||XO(e)||CO(e))){let t=e;if(CO(e)){let n=e.getLastDescendant();t=n==null?null:kC(n,_O)}t!=null&&t.getTextContentSize()>0&&(t.splice(t.getChildrenSize(),0,[Mk(t),...s.getChildren()]),s.remove())}}}function Ure(e){let t=new Set,n=e.getTextContent(),r=n.indexOf(` `);for(;r!==-1;)t.add(r),t.add(r+1),r=n.indexOf(` `,r+1);e.splitText(...t).forEach(e=>{e.getTextContent()===` `&&e.replace(Ey())})}function Wre(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function oA(e,t,n,r,i){if(!LS(e.getParent())||e.getFirstChild()!==t)return!1;let a=t.getTextContent();if(!i&&a[n-1]!==` `)return!1;for(let{regExp:o,replace:s}of r){let r=a.match(o),c=i||r&&r[0].endsWith(` `)?n:n-1;if(r&&r[0].length===c){let i=t.getNextSiblings(),[a,o]=t.splitText(n);if(!1!==s(e,o?[o,...i]:i,r,!1))return a.remove(),!0}}return!1}function sA(e,t,n,r,i){if(!LS(e.getParent())||e.getFirstChild()!==t)return!1;let a=t.getTextContent();if(!i&&a[n-1]!==` `)return!1;for(let{regExpStart:o,replace:s,regExpEnd:c}of r){if(c&&!(`optional`in c)||c&&`optional`in c&&!c.optional)continue;let r=a.match(o);if(r){let a=i||r[0].endsWith(` `)?n:n-1;if(r[0].length!==a)continue;let o=t.getNextSiblings(),[c,l]=t.splitText(n);if(!1!==s(e,l?[l,...o]:o,r,null,null,!1))return c.remove(),!0}}return!1}function Gre(e,t){let n=0,r=e.getTextContent();for(let e=0;e=r;i--){let t=i-r;if(lA(e,t,n,0,r)&&e[t+r]!==` `)return t}return-1}function lA(e,t,n,r,i){for(let a=0;ae.triggerOnEnter),i=fk(n.textFormat,({tag:e})=>e[e.length-1]),a=fk(n.textMatch,({trigger:e})=>e),o=new Set([` `]);for(let e of n.textFormat)o.add(e.tag.slice(-1));for(let e of n.textMatch)e.trigger!==void 0&&o.add(e.trigger);for(let n of t){let t=n.type;if(t===`element`||t===`text-match`||t===`multiline-element`){let t=n.dependencies;for(let n of t)e.hasNode(n)||Wre(173,n.getType())}}let s=(e,t,r)=>!!oA(e,t,r,n.element)||!!sA(e,t,r,n.multilineElement)||!!function(e,t,n){let r=e.getTextContent(),i=n[r[t-1]];if(i==null)return!1;t1&&!lA(r,s,n,0,o)||r[s-1]===` `)continue;let c=r[i+1];if(!1===t.intraword&&c&&!mk.test(c))continue;let l=e,u=l,d=cA(r,s,n),f=u;for(;d<0&&(f=f.getPreviousSibling())&&!cx(f);)if(Cy(f)){if(f.hasFormat(`code`))continue;let e=f.getTextContent();u=f,d=cA(e,e.length,n)}if(d<0||u===l&&d+o===s)continue;let p=u.getTextContent();if(d>0&&p[d-1]===a)continue;let m=p[d-1];if(!1===t.intraword&&m&&!mk.test(m)||!t.format.includes(`code`)&&Gre(u,d))continue;let h=l.getTextContent(),g=h.slice(0,s)+h.slice(i+1);l.setTextContent(g);let _=u===l?g:p;u.setTextContent(_.slice(0,d)+_.slice(d+o));let v=ib(),y=tb();rS(y);let b=i-o*(u===l?2:1)+1;y.anchor.set(u.__key,d,`text`),y.focus.set(l.__key,b,`text`);for(let e of t.format)y.formatText(e,Qh[e]);y.anchor.set(y.focus.key,y.focus.offset,y.focus.type);for(let e of t.format)y.hasFormat(e)&&y.toggleFormat(e);return Q(v)&&(y.format=v.format),!0}return!1}(t,r,i);return zw(e.registerUpdateListener(({tags:t,dirtyLeaves:n,editorState:r,prevEditorState:i})=>{if(t.has(`collaboration`)||t.has(`historic`)||e.isComposing())return;let a=t.has(cy),c=r.read(ib),l=i.read(ib);if(!Q(l)||!Q(c)||!c.isCollapsed()||c.is(l)&&!a)return;let u=c.anchor.key,d=c.anchor.offset,f=r._nodeMap.get(u);if(Cy(f)&&n.has(u)&&(a||d===1||!(d>l.anchor.offset+1))){if(a){let e=r.read(()=>f.getTextContent())[d-1];if(!o.has(e))return}e.update(()=>{if(!iA(f))return;let e=f.getParent();e===null||uD(e)||s(e,f,c.anchor.offset)&&kS(`history-push`)})}}),e.registerCommand(tv,e=>{if(e!==null&&e.shiftKey)return!1;let t=ib();if(!Q(t)||!t.isCollapsed())return!1;let i=t.anchor.offset,a=t.anchor.getNode();if(!Cy(a)||!iA(a))return!1;let o=a.getParent();return o===null||uD(o)?!1:i===a.getTextContent().length&&!(!sA(o,a,i,n.multilineElement,!0)&&!oA(o,a,i,r,!0))&&(e!==null&&e.preventDefault(),!0)},1))}function uA(e,t=Xk,n,r=!1,i=!1){let a=r?e:Ire(e,i),o=n||nS();o.clear(),Bre(a,o,t,r),ib()!==null&&o.selectStart()}function dA(e=Xk,t,n=!1){return function(e,t=!1){let n=pk(e),r=[...n.multilineElement,...n.element],i=!t,a=n.textFormat.filter(e=>e.format.length===1).sort((e,t)=>Number(e.format.includes(`code`))-Number(t.format.includes(`code`)));return e=>{let o=[],s=(e||nS()).getChildren();for(let e=0;e0&&!_k(c)&&!_k(s[e-1])?` +${l}`:l)}return o.join(` +`)}}(e,n)(t)}var fA=/^(\d+(?:\.\d+)?)px$/,pA={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1},mA=class extends qb{__colSpan;__rowSpan;__headerState;__width;__backgroundColor;__verticalAlign;$config(){return this.config(`tablecell`,{extends:qb,importDOM:{td:()=>({conversion:gA,priority:0}),th:()=>({conversion:gA,priority:0})}})}afterCloneFrom(e){super.afterCloneFrom(e),this.__rowSpan=e.__rowSpan,this.__backgroundColor=e.__backgroundColor,this.__verticalAlign=e.__verticalAlign,this.__colSpan=e.__colSpan,this.__headerState=e.__headerState,this.__width=e.__width}updateFromJSON(e){return super.updateFromJSON(e).setHeaderStyles(e.headerState).setColSpan(e.colSpan||1).setRowSpan(e.rowSpan||1).setWidth(e.width||void 0).setBackgroundColor(e.backgroundColor||null).setVerticalAlign(e.verticalAlign||void 0)}constructor(e=pA.NO_STATUS,t=1,n,r){super(r),this.__colSpan=t,this.__rowSpan=1,this.__headerState=e,this.__width=n,this.__backgroundColor=null,this.__verticalAlign=void 0}createDOM(e){let t=ZS().createElement(this.getTag());return this.__width&&(t.style.width=`${this.__width}px`),this.__colSpan>1&&(t.colSpan=this.__colSpan),this.__rowSpan>1&&(t.rowSpan=this.__rowSpan),this.__backgroundColor!==null&&(t.style.backgroundColor=this.__backgroundColor),hA(this.__verticalAlign)&&(t.style.verticalAlign=this.__verticalAlign),Lw(t,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),t}exportDOM(e){let t=super.exportDOM(e);if(iC(t.element)){let e=t.element;e.setAttribute(`data-temporary-table-cell-lexical-key`,this.getKey()),e.style.border=`1px solid black`,this.__colSpan>1&&(e.colSpan=this.__colSpan),this.__rowSpan>1&&(e.rowSpan=this.__rowSpan),e.style.width=`${this.getWidth()||75}px`,e.style.verticalAlign=this.getVerticalAlign()||`top`,e.style.textAlign=`start`,this.__backgroundColor===null&&this.hasHeader()&&(e.style.backgroundColor=`#f2f3f5`)}return t}exportJSON(){return{...super.exportJSON(),...hA(this.__verticalAlign)&&{verticalAlign:this.__verticalAlign},backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(e){let t=this.getWritable();return t.__colSpan=e,t}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(e){let t=this.getWritable();return t.__rowSpan=e,t}getTag(){return this.hasHeader()?`th`:`td`}setHeaderStyles(e,t=pA.BOTH){let n=this.getWritable();return n.__headerState=e&t|n.__headerState&~t,n}getHeaderStyles(){return this.getLatest().__headerState}setWidth(e){let t=this.getWritable();return t.__width=e,t}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(e){let t=this.getWritable();return t.__backgroundColor=e,t}getVerticalAlign(){return this.getLatest().__verticalAlign}setVerticalAlign(e){let t=this.getWritable();return t.__verticalAlign=e||void 0,t}toggleHeaderStyle(e){let t=this.getWritable();return(t.__headerState&e)===e?t.__headerState-=e:t.__headerState+=e,t}hasHeaderState(e){return(this.getHeaderStyles()&e)===e}hasHeader(){return this.getLatest().__headerState!==pA.NO_STATUS}updateDOM(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor||e.__verticalAlign!==this.__verticalAlign}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}};function hA(e){return e===`middle`||e===`bottom`}function gA(e){let t=e,n=e.nodeName.toLowerCase(),r;fA.test(t.style.width)&&(r=parseFloat(t.style.width));let i=pA.NO_STATUS;if(n===`th`){let e=t.getAttribute(`scope`);if(e===`col`)i=pA.COLUMN;else if(e===`row`)i=pA.ROW;else{let e=t.parentElement,n=iC(e)&&e.nodeName.toLowerCase()===`tr`&&iC(e.parentElement)&&(e.parentElement.nodeName.toLowerCase()===`thead`||e.rowIndex===0),r=t.cellIndex===0;n&&(i|=pA.ROW),r&&(i|=pA.COLUMN),i===pA.NO_STATUS&&(i=pA.ROW)}}let a=_A(i,t.colSpan,r);a.__rowSpan=t.rowSpan;let o=t.style.backgroundColor;o!==``&&(a.__backgroundColor=o);let s=t.style.verticalAlign;hA(s)&&(a.__verticalAlign=s);let c=t.style,l=(c&&c.textDecoration||``).split(` `),u=c.fontWeight===`700`||c.fontWeight===`bold`,d=l.includes(`line-through`),f=c.fontStyle===`italic`,p=l.includes(`underline`),m=c.color;return{after:e=>{let t=[],n=null,r=()=>{if(n){let e=n.getFirstChild();cx(e)&&n.getChildrenSize()===1&&e.remove()}};for(let i of e)if(PS(i)||Cy(i)||cx(i)){if(Cy(i)&&(u&&i.toggleFormat(`bold`),d&&i.toggleFormat(`strikethrough`),f&&i.toggleFormat(`italic`),p&&i.toggleFormat(`underline`),m)){let e=i.getStyle();e.includes(`color:`)||i.setStyle(e+`color: ${m};`)}n?n.append(i):(n=mx().append(i),t.push(n))}else t.push(i),r(),n=null;return r(),t.length===0&&t.push(mx()),t},node:a}}function _A(e=pA.NO_STATUS,t=1,n){return zS(new mA(e,t,n))}function vA(e){return e instanceof mA}function yA(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}var bA=class extends qb{__height;$config(){return this.config(`tablerow`,{extends:qb,importDOM:{tr:()=>({conversion:qre,priority:0})}})}afterCloneFrom(e){super.afterCloneFrom(e),this.__height=e.__height}updateFromJSON(e){return super.updateFromJSON(e).setHeight(e.height)}constructor(e=void 0,t){super(t),this.__height=e}exportJSON(){let e=this.getHeight();return{...super.exportJSON(),...e===void 0?void 0:{height:e}}}createDOM(e){let t=ZS().createElement(`tr`);return this.__height&&(t.style.height=`${this.__height}px`),Lw(t,e.theme.tableRow),t}extractWithChild(e,t,n){return n===`html`}isShadowRoot(){return!0}setHeight(e){let t=this.getWritable();return t.__height=e,t}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}};function qre(e){let t=e,n;return fA.test(t.style.height)&&(n=parseFloat(t.style.height)),{after:e=>tT(e,vA),node:xA(n)}}function xA(e){return zS(new bA(e))}function SA(e){return e instanceof bA}function Jre(e,t,n){let r=[],i=null,a=null;function o(e){let t=r[e];return t===void 0&&(r[e]=t=[]),t}let s=e.getChildren();for(let e=0;e=s.length);t++){let n=o(e+t);for(let e=0;e colgroup`);if(!n)return void(r&&r.remove());r||(r=ZS().createElement(`colgroup`),bC(r),e.insertBefore(r,e.firstChild));let i=[];for(let e=0;e({conversion:Qre,priority:1})}})}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){let t=this.getWritable();return t.__colWidths=e,t}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping,this.__frozenColumnCount=e.__frozenColumnCount,this.__frozenRowCount=e.__frozenRowCount}updateFromJSON(e){return super.updateFromJSON(e).setRowStriping(e.rowStriping||!1).setFrozenColumns(e.frozenColumnCount||0).setFrozenRows(e.frozenRowCount||0).setColWidths(e.colWidths)}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),frozenColumnCount:this.__frozenColumnCount?this.__frozenColumnCount:void 0,frozenRowCount:this.__frozenRowCount?this.__frozenRowCount:void 0,rowStriping:this.__rowStriping?this.__rowStriping:void 0}}extractWithChild(e,t,n){return n===`html`}getDOMSlot(e){let t=CA(e)?e:e.querySelector(`table`);return CA(t)||yA(229),super.getDOMSlot(e).withElement(t).withAfter(t.querySelector(`:scope > colgroup`))}createDOM(e,t){let n=ZS().createElement(`table`);if(this.__style&&uy(n.style,this.__style),this.getColWidths()){let e=ZS().createElement(`colgroup`);n.appendChild(e),bC(e)}if(Lw(n,e.theme.table),this.updateTableElement(null,n,e),OA(t)){let r=kA(t),i=function(e,t,n){let r=ZS().createElement(`div`),i=t.theme.tableScrollableWrapper;return i?Lw(r,i):r.style.overflowX=`auto`,n&&(r.style.scrollbarWidth=`none`),r.appendChild(e),r}(n,e,r);if(this.updateTableWrapper(null,i,n,e),r){let t=function(e){let t=ZS(),n=t.createElement(`div`),r=e.theme.tableStickyScrollbar;r?Lw(n,r):(n.style.position=`sticky`,n.style.bottom=`0`,n.style.overflowX=`scroll`,n.style.overflowY=`hidden`),n.style.display=`none`,n.setAttribute(`aria-hidden`,`true`),n.tabIndex=-1;let i=t.createElement(`div`);return i.style.height=`1px`,i.style.width=`0px`,n.appendChild(i),n}(e),n=ZS().createElement(`div`);return n.setAttribute(`data-lexical-sticky-scrollbar`,`true`),n.appendChild(i),n.appendChild(t),bC(t),n}return i}return n}updateTableWrapper(e,t,n,r){this.__frozenColumnCount!==(e?e.__frozenColumnCount:0)&&function(e,t,n,r){r>0?(Lw(e,n.theme.tableFrozenColumn),t.setAttribute(`data-lexical-frozen-column`,`true`)):(Rw(e,n.theme.tableFrozenColumn),t.removeAttribute(`data-lexical-frozen-column`))}(t,n,r,this.__frozenColumnCount),this.__frozenRowCount!==(e?e.__frozenRowCount:0)&&function(e,t,n,r){r>0?(Lw(e,n.theme.tableFrozenRow),t.setAttribute(`data-lexical-frozen-row`,`true`)):(Rw(e,n.theme.tableFrozenRow),t.removeAttribute(`data-lexical-frozen-row`))}(t,n,r,this.__frozenRowCount)}updateTableElement(e,t,n){this.__style!==(e?e.__style:``)&&uy(t.style,this.__style,e?e.__style:``),this.__rowStriping!==(!!e&&e.__rowStriping)&&function(e,t,n){n?(Lw(e,t.theme.tableRowStriping),e.setAttribute(`data-lexical-row-striping`,`true`)):(Rw(e,t.theme.tableRowStriping),e.removeAttribute(`data-lexical-row-striping`))}(t,n,this.__rowStriping);let r=e?e.getColumnCount():0,i=e?e.__colWidths:void 0;this.getColumnCount()===r&&this.getColWidths()===i||EA(t,this.getColumnCount(),this.getColWidths()),DA(t,n,this.getFormatType())}updateDOM(e,t,n){let r=wA(this,t);if(t===r===OA())return!0;if(TA(t)){if(t.hasAttribute(`data-lexical-sticky-scrollbar`)!==kA())return!0;let i=r.parentElement;TA(i)&&this.updateTableWrapper(e,i,r,n)}return this.updateTableElement(e,r,n),!1}scaleDOMColWidths(e,t){let n=this.getColWidths();n&&EA(wA(this,e),this.getColumnCount(),n.map(e=>e*t))}exportDOM(e){let t=super.exportDOM(e),{element:n}=t;return{after:n=>{if(t.after&&(n=t.after(n)),!CA(n)&&iC(n)&&(n=n.querySelector(`table`)),!CA(n))return null;DA(n,e._config,this.getFormatType());let[r]=Jre(this,null,null),i=new Map;for(let e of r)for(let t of e){let e=t.cell.getKey();i.has(e)||i.set(e,{colSpan:t.cell.getColSpan(),startColumn:t.startColumn})}let a=new Set;for(let e of n.querySelectorAll(`:scope > tr > [data-temporary-table-cell-lexical-key]`)){let t=e.getAttribute(`data-temporary-table-cell-lexical-key`);if(t){let n=i.get(t);if(e.removeAttribute(`data-temporary-table-cell-lexical-key`),n){i.delete(t);for(let e=0;e colgroup`);if(o){let e=Array.from(n.querySelectorAll(`:scope > colgroup > col`)).filter((e,t)=>a.has(t));o.replaceChildren(...e)}let s=n.querySelectorAll(`:scope > tr`);if(s.length>0){let e=ZS().createElement(`tbody`);for(let t of s)e.appendChild(t);n.append(e)}return n},element:!CA(n)&&iC(n)?n.querySelector(`table`):n}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,t){let{rows:n,domRows:r}=t;for(let t=0;t{vA(e)&&(t+=e.getColSpan())}),t}};function Qre(e){let t=jA();e.hasAttribute(`data-lexical-row-striping`)&&t.setRowStriping(!0),e.hasAttribute(`data-lexical-frozen-column`)&&t.setFrozenColumns(1),e.hasAttribute(`data-lexical-frozen-row`)&&t.setFrozenRows(1);let n=e.querySelector(`:scope > colgroup`);if(n){let e=[];for(let t of n.querySelectorAll(`:scope > col`)){let n=t.style.width||``;if(!fA.test(n)&&(n=t.getAttribute(`width`)||``,!/^\d+$/.test(n))){e=void 0;break}e.push(parseFloat(n))}e&&t.setColWidths(e)}return{after:e=>tT(e,SA),node:t}}function jA(){return zS(new AA)}function MA(e){return e instanceof AA}BE.tag(`table`),BE.tag(`tr`),BE.tag(`td`,`th`);var NA=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),PA=(e,t,{ellipsis:n=`…`}={})=>{if(e.length<=t)return e.trim();let r=[...e.slice(0,t*2)];return`${r.slice(0,t).join(``).trim()}${r.length>t||e.length>t*2?n:``}`},FA=e=>e.replace(/^\/+/,``).replace(/\/+$/,``),IA,$re=e=>(IA??=new DOMParser,IA.parseFromString(e,`text/html`).body.textContent),LA=e=>{if(/\s/.test(e))return!1;if(typeof URL.canParse==`function`)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}},RA=new Intl.Collator(void 0,{numeric:!0,sensitivity:`base`}).compare,eie={text:{italic:`italic`,strikethrough:`strikethrough`},list:{nested:{listitem:`nested`}},code:`code-block`},zA={bold:{labelKey:`bold`,icon:`format_bold`,inline:!0},italic:{labelKey:`italic`,icon:`format_italic`,inline:!0},strikethrough:{labelKey:`strikethrough`,icon:`strikethrough_s`,inline:!0},code:{labelKey:`code`,icon:`code`,inline:!0},link:{labelKey:`link`,icon:`link`,inline:!0},paragraph:{labelKey:`paragraph`,icon:`format_paragraph`,inline:!1},"heading-1":{labelKey:`heading_1`,icon:`format_h1`,inline:!1},"heading-2":{labelKey:`heading_2`,icon:`format_h2`,inline:!1},"heading-3":{labelKey:`heading_3`,icon:`format_h3`,inline:!1},"heading-4":{labelKey:`heading_4`,icon:`format_h4`,inline:!1},"heading-5":{labelKey:`heading_5`,icon:`format_h5`,inline:!1},"heading-6":{labelKey:`heading_6`,icon:`format_h6`,inline:!1},"bulleted-list":{labelKey:`bulleted_list`,icon:`format_list_bulleted`,inline:!1},"numbered-list":{labelKey:`numbered_list`,icon:`format_list_numbered`,inline:!1},blockquote:{labelKey:`blockquote`,icon:`format_quote`,inline:!1},"code-block":{labelKey:`code_block`,icon:`code_blocks`,inline:!1}},BA=[`bold`,`italic`,`strikethrough`,`code`],VA=[...BA,`link`],HA=[`paragraph`,`heading-1`,`heading-2`,`heading-3`,`heading-4`,`heading-5`,`heading-6`,`bulleted-list`,`numbered-list`,`blockquote`,`code-block`],tie={"heading-1":[ZO],"heading-2":[ZO],"heading-3":[ZO],"heading-4":[ZO],"heading-5":[ZO],"heading-6":[ZO],"bulleted-list":[vO,fO],"numbered-list":[vO,fO],blockquote:[JO],"code-block":[cD,vD],link:[VD]},nie={"heading-1":[Ik],"heading-2":[Ik],"heading-3":[Ik],"heading-4":[Ik],"heading-5":[Ik],"heading-6":[Ik],"bulleted-list":[zk],"numbered-list":[Bk],blockquote:[Lk],"code-block":[Rk],code:[Vk],bold:[Wk,Gk,Hk,Uk],italic:[Jk,qk,Hk,Uk],strikethrough:[Kk],link:[Yk]},rie=[`*`,`__`,`***`,`___`],iie=e=>e.replace(/(\s+)_([^_\n]+?)\n([^_\n]+?)_(\s+)/gm,`$1_$2_ +_$3_$4`).replace(/(\s+)\*\*([^*\n]+?)\n([^*\n]+?)\*\*(\s+)/gm,`$1**$2** +**$3**$4`).replace(/(\s+)~~([^~\n]+?)\n([^~\n]+?)~~(\s+)/gm,`$1~~$2~~ +~~$3~~$4`).replace(/(\s+)`([^`\n]+?)\n([^`\n]+?)`(\s+)/gm,"$1`$2`\n`$3`$4"),aie=e=>{if(!e.match(/^\s{2}(?:-|\+|\*|\d+\.)\s/m))return e;let t=!1;return e.split(` +`).map(e=>/^(`{3,}|~{3,})/.test(e)?(t=!t,e):t?e:e.replace(/^(\s+)(-|\+|\*|\d+\.)/,(e,t,n)=>`${` `.repeat(t.length*2)}${n}`)).join(` +`)},UA=class{#e;#t;#n=``;#r=``;#i={};#a=[];constructor(e,t,{keyPath:n,autoIncrement:r,indexes:i=[]}={}){this.#e=void 0,this.#n=e,this.#r=t,this.#i={keyPath:n,autoIncrement:r},this.#a=i}async#o(e){return new Promise((t,n)=>{let r=globalThis.indexedDB.open(this.#n,e);r.onupgradeneeded=()=>{let e=r.result,t=this.#r,n=e.objectStoreNames.contains(t)?r.transaction.objectStore(t):e.createObjectStore(t,this.#i);this.#a.forEach(({name:e,keyPath:t,options:r})=>{n.indexNames.contains(e)||n.createIndex(e,t,r)})},r.onsuccess=()=>{t(r.result)},r.onerror=()=>{n(r.error)}})}async#s(){let e=!1,t=await this.#o(),{version:n,objectStoreNames:r}=t,i=this.#r;if(r.contains(i)){let n=t.transaction(i).objectStore(i);e=this.#a.some(({name:e})=>!n.indexNames.contains(e))}else e=!0;return e&&(t.close(),t=await this.#o(n+1)),t.onversionchange=()=>{t.close(),this.#e=void 0},t}async#c(e,{mode:t=`readonly`}={}){if(!this.#e){this.#t??=this.#s();try{this.#e=await this.#t}finally{this.#t=void 0}}let n=this.#e,r=this.#r,i=n.transaction(r,t),a=e(i.objectStore(r));return new Promise((e,n)=>{if(i.onerror=()=>{n(i.error)},i.onabort=()=>{n(i.error)},t===`readwrite`){let t;a&&(a.onsuccess=()=>{t=a.result}),i.oncomplete=()=>{e(t)}}else a?a.onsuccess=()=>{e(a.result)}:i.oncomplete=()=>{e(void 0)}})}async set(e,t){return this.#c(n=>n.put(t,e),{mode:`readwrite`})}async put(e){return this.#c(t=>t.put(e),{mode:`readwrite`})}async saveEntries(e){return this.#c(t=>{e.forEach(([e,n])=>{t.put(n,e)})},{mode:`readwrite`})}async get(e){return this.#c(t=>t.get(e))}async keys(){return this.#c(e=>e.getAllKeys())}async values(){return this.#c(e=>e.getAll())}async entries(){return new Promise((e,t)=>{this.#c(t=>{let n=t.openCursor(),r=[];n.onsuccess=()=>{let t=n.result;t?(r.push([t.key,t.value]),t.continue()):e(r)}}).catch(t)})}async#l({callback:e=void 0,index:t=void 0,query:n=void 0,direction:r=`next`,multiple:i=!1}){return new Promise((a,o)=>{this.#c(o=>{let s=(t?o.index(t):o).openCursor(n,r),c=[];s.onsuccess=()=>{let t=s.result;if(t){let{value:n}=t;typeof e!=`function`||e(n)?i?(c.push(n),t.continue()):a(n):t.continue()}else a(i?c:void 0)}}).catch(o)})}async find(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n})}async findLast(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n,direction:`prev`})}async filter(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n,multiple:!0})}async delete(e){await this.#c(t=>t.delete(e),{mode:`readwrite`})}async deleteEntries(e){await this.#c(t=>{e.forEach(e=>{t.delete(e)})},{mode:`readwrite`})}async clear(){await this.#c(e=>e.clear(),{mode:`readwrite`})}},WA=e=>{try{return JSON.parse(e)}catch{return null}},GA=class{static async set(e,t){if(t===void 0){globalThis.localStorage.removeItem(e);return}globalThis.localStorage.setItem(e,JSON.stringify(t))}static async get(e){let t=globalThis.localStorage.getItem(e);return t?WA(t):null}static async delete(e){globalThis.localStorage.removeItem(e)}static async clear(){globalThis.localStorage.clear()}static async keys(){return Object.keys(globalThis.localStorage)}static async values(){return Object.values(globalThis.localStorage).map(WA)}static async entries(){return Object.entries(globalThis.localStorage).map(([e,t])=>[e,WA(t)])}},KA=`4.4.3`,qA=[{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`]},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`]},{id:`abap`,name:`ABAP`},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`]},{id:`ada`,name:`Ada`},{id:`angular-html`,name:`Angular HTML`},{id:`angular-ts`,name:`Angular TypeScript`},{id:`apache`,name:`Apache Conf`},{id:`apex`,name:`Apex`},{id:`apl`,name:`APL`},{id:`applescript`,name:`AppleScript`},{id:`ara`,name:`Ara`},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`]},{id:`razor`,name:`ASP.NET Razor`},{id:`asm`,name:`Assembly`},{id:`astro`,name:`Astro`},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`]},{id:`ahk2`,name:`AutoHotkey2`},{id:`awk`,name:`AWK`},{id:`ballerina`,name:`Ballerina`},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`]},{id:`beancount`,name:`Beancount`},{id:`berry`,name:`Berry`,aliases:[`be`]},{id:`bibtex`,name:`BibTeX`},{id:`bicep`,name:`Bicep`},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`]},{id:`blade`,name:`Blade`},{id:`c`,name:`C`},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`]},{id:`cpp`,name:`C++`,aliases:[`c++`]},{id:`c3`,name:`C3`},{id:`cadence`,name:`Cadence`,aliases:[`cdc`]},{id:`cairo`,name:`Cairo`},{id:`chapel`,name:`Chapel`,aliases:[`chpl`]},{id:`clarity`,name:`Clarity`},{id:`clojure`,name:`Clojure`,aliases:[`clj`]},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`]},{id:`cmake`,name:`CMake`},{id:`cobol`,name:`COBOL`},{id:`codeowners`,name:`CODEOWNERS`},{id:`codeql`,name:`CodeQL`,aliases:[`ql`]},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`]},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`]},{id:`crystal`,name:`Crystal`},{id:`css`,name:`CSS`},{id:`csv`,name:`CSV`},{id:`cue`,name:`CUE`},{id:`cypher`,name:`Cypher`,aliases:[`cql`]},{id:`d`,name:`D`},{id:`dart`,name:`Dart`},{id:`dax`,name:`DAX`},{id:`desktop`,name:`Desktop`},{id:`diff`,name:`Diff`},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`]},{id:`dotenv`,name:`dotEnv`},{id:`dream-maker`,name:`Dream Maker`},{id:`edge`,name:`Edge`},{id:`elixir`,name:`Elixir`},{id:`elm`,name:`Elm`},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`]},{id:`erb`,name:`ERB`},{id:`erlang`,name:`Erlang`,aliases:[`erl`]},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`]},{id:`fennel`,name:`Fennel`},{id:`fish`,name:`Fish`},{id:`fluent`,name:`Fluent`,aliases:[`ftl`]},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`]},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`]},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`]},{id:`gdscript`,name:`GDScript`,aliases:[`gd`]},{id:`gdshader`,name:`GDShader`},{id:`genie`,name:`Genie`},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`]},{id:`gherkin`,name:`Gherkin`},{id:`git-commit`,name:`Git Commit Message`},{id:`git-rebase`,name:`Git Rebase Message`},{id:`gleam`,name:`Gleam`},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`]},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`]},{id:`glsl`,name:`GLSL`},{id:`gn`,name:`GN`},{id:`smalltalk`,name:`GNU Smalltalk`},{id:`gnuplot`,name:`Gnuplot`},{id:`go`,name:`Go`},{id:`graphql`,name:`GraphQL`,aliases:[`gql`]},{id:`groovy`,name:`Groovy`},{id:`hack`,name:`Hack`},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`]},{id:`hcl`,name:`HashiCorp HCL`},{id:`haskell`,name:`Haskell`,aliases:[`hs`]},{id:`haxe`,name:`Haxe`},{id:`hjson`,name:`Hjson`},{id:`hlsl`,name:`HLSL`},{id:`html`,name:`HTML`},{id:`html-derivative`,name:`HTML (Derivative)`},{id:`http`,name:`HTTP`},{id:`hurl`,name:`Hurl`},{id:`hxml`,name:`HXML`},{id:`hy`,name:`Hy`},{id:`imba`,name:`Imba`},{id:`ini`,name:`INI`,aliases:[`properties`]},{id:`java`,name:`Java`},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`]},{id:`jinja`,name:`Jinja`},{id:`jison`,name:`Jison`},{id:`json`,name:`JSON`},{id:`jsonl`,name:`JSON Lines`},{id:`jsonc`,name:`JSON with Comments`},{id:`json5`,name:`JSON5`},{id:`jsonnet`,name:`Jsonnet`},{id:`jssm`,name:`JSSM`,aliases:[`fsl`]},{id:`jsx`,name:`JSX`},{id:`julia`,name:`Julia`,aliases:[`jl`]},{id:`just`,name:`Just`,aliases:[`justfile`]},{id:`kdl`,name:`KDL`},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`]},{id:`kusto`,name:`Kusto`,aliases:[`kql`]},{id:`latex`,name:`LaTeX`},{id:`lean`,name:`Lean 4`,aliases:[`lean4`]},{id:`less`,name:`Less`},{id:`liquid`,name:`Liquid`},{id:`llvm`,name:`LLVM IR`},{id:`log`,name:`Log file`},{id:`logo`,name:`Logo`},{id:`lua`,name:`Lua`},{id:`luau`,name:`Luau`},{id:`make`,name:`Makefile`,aliases:[`makefile`]},{id:`markdown`,name:`Markdown`,aliases:[`md`]},{id:`marko`,name:`Marko`},{id:`matlab`,name:`MATLAB`},{id:`mdc`,name:`MDC`},{id:`mdx`,name:`MDX`},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`]},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`]},{id:`mojo`,name:`Mojo`},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`]},{id:`move`,name:`Move`},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`]},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`]},{id:`nextflow-groovy`,name:`Nextflow Groovy`},{id:`nginx`,name:`Nginx`},{id:`nim`,name:`Nim`},{id:`nix`,name:`Nix`},{id:`nsis`,name:`NSIS`},{id:`nushell`,name:`nushell`,aliases:[`nu`]},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`]},{id:`objective-cpp`,name:`Objective-C++`},{id:`ocaml`,name:`OCaml`},{id:`odin`,name:`Odin`},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`]},{id:`org`,name:`Org Markup`},{id:`pascal`,name:`Pascal`},{id:`perl`,name:`Perl`},{id:`php`,name:`PHP`},{id:`pkl`,name:`Pkl`},{id:`plsql`,name:`PL/SQL`},{id:`polar`,name:`Polar`},{id:`postcss`,name:`PostCSS`},{id:`powerquery`,name:`PowerQuery`},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`]},{id:`prisma`,name:`Prisma`},{id:`prolog`,name:`Prolog`},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`]},{id:`pug`,name:`Pug`,aliases:[`jade`]},{id:`puppet`,name:`Puppet`},{id:`purescript`,name:`PureScript`},{id:`python`,name:`Python`,aliases:[`py`]},{id:`qml`,name:`QML`},{id:`qmldir`,name:`QML Directory`},{id:`qss`,name:`Qt Style Sheets`},{id:`r`,name:`R`},{id:`racket`,name:`Racket`},{id:`raku`,name:`Raku`,aliases:[`perl6`]},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`]},{id:`regexp`,name:`RegExp`,aliases:[`regex`]},{id:`rel`,name:`Rel`},{id:`rst`,name:`reStructuredText`},{id:`riscv`,name:`RISC-V`},{id:`coq`,name:`Rocq`},{id:`ron`,name:`RON`},{id:`rosmsg`,name:`ROS Interface`},{id:`ruby`,name:`Ruby`,aliases:[`rb`]},{id:`haml`,name:`Ruby Haml`},{id:`rust`,name:`Rust`,aliases:[`rs`]},{id:`sas`,name:`SAS`},{id:`sass`,name:`Sass`},{id:`scala`,name:`Scala`},{id:`scheme`,name:`Scheme`},{id:`scss`,name:`SCSS`},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`]},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`]},{id:`shellsession`,name:`Shell Session`,aliases:[`console`]},{id:`smithy`,name:`Smithy`},{id:`solidity`,name:`Solidity`},{id:`sparql`,name:`SPARQL`},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`]},{id:`sql`,name:`SQL`},{id:`ssh-config`,name:`SSH Config`},{id:`stata`,name:`Stata`},{id:`stylus`,name:`Stylus`,aliases:[`styl`]},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`]},{id:`svelte`,name:`Svelte`},{id:`swift`,name:`Swift`},{id:`systemd`,name:`Systemd Units`},{id:`system-verilog`,name:`SystemVerilog`},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`]},{id:`tasl`,name:`Tasl`},{id:`tcl`,name:`Tcl`},{id:`templ`,name:`Templ`},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`]},{id:`tex`,name:`TeX`},{id:`toml`,name:`TOML`},{id:`tsv`,name:`TSV`},{id:`tsx`,name:`TSX`},{id:`turtle`,name:`Turtle`},{id:`twig`,name:`Twig`},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`]},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`]},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`]},{id:`typst`,name:`Typst`,aliases:[`typ`]},{id:`v`,name:`V`},{id:`vala`,name:`Vala`},{id:`verilog`,name:`Verilog`},{id:`vhdl`,name:`VHDL`},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`]},{id:`vb`,name:`Visual Basic`},{id:`vue`,name:`Vue`},{id:`vue-html`,name:`Vue HTML`},{id:`vue-vine`,name:`Vue Vine`},{id:`vyper`,name:`Vyper`,aliases:[`vy`]},{id:`wasm`,name:`WebAssembly`},{id:`wit`,name:`WebAssembly Interface Types`},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`]},{id:`wgsl`,name:`WGSL`},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`]},{id:`reg`,name:`Windows Registry Script`},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`]},{id:`xml`,name:`XML`},{id:`xsl`,name:`XSL`},{id:`yaml`,name:`YAML`,aliases:[`yml`]},{id:`zenscript`,name:`ZenScript`},{id:`zig`,name:`Zig`}],oie=[{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`},{id:`github-light`,displayName:`GitHub Light`,type:`light`},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`},{id:`horizon`,displayName:`Horizon`,type:`dark`},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`},{id:`houston`,displayName:`Houston`,type:`dark`},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`},{id:`laserwave`,displayName:`LaserWave`,type:`dark`},{id:`light-plus`,displayName:`Light Plus`,type:`light`},{id:`material-theme`,displayName:`Material Theme`,type:`dark`},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`},{id:`min-dark`,displayName:`Min Dark`,type:`dark`},{id:`min-light`,displayName:`Min Light`,type:`light`},{id:`monokai`,displayName:`Monokai`,type:`dark`},{id:`night-owl`,displayName:`Night Owl`,type:`dark`},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`},{id:`nord`,displayName:`Nord`,type:`dark`},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`},{id:`one-light`,displayName:`One Light`,type:`light`},{id:`plastic`,displayName:`Plastic`,type:`dark`},{id:`poimandres`,displayName:`Poimandres`,type:`dark`},{id:`red`,displayName:`Red`,type:`dark`},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`},{id:`vesper`,displayName:`Vesper`,type:`dark`},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`}],sie=`sveltia-ui`,cie=`shiki`,JA,YA,XA=!0,ZA=(e,t)=>`${KA}/${e}/${t}`,QA=()=>(JA===void 0&&(JA=typeof indexedDB>`u`?null:new UA(sie,cie)),JA),lie=async e=>(YA??=(async()=>{let t=(await e.keys()).filter(e=>typeof e==`string`&&!e.startsWith(`4.4.3/`));t.length&&await e.deleteEntries(t)})(),YA),uie=async(e,t)=>{let n=XA?QA():null;if(n)try{return await lie(n),await n.get(ZA(e,t))}catch{return}},die=async(e,t,n)=>{let r=XA?QA():null;if(r)try{await r.set(ZA(e,t),n)}catch{}},fie=`0.69.1`,$A=function(e,t,n){let r=Promise.resolve();function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ej=`https://unpkg.com/@shikijs`,pie=`https://unpkg.com/@sveltia/ui`,mie=()=>`${pie}@${fie}/dist/shiki-engine.js`,hie=e=>`${ej}/langs@${KA}/dist/${e}.mjs`,gie=e=>`${ej}/themes@${KA}/dist/${e}.mjs`,_ie={loadEngine:async()=>$A(()=>import(mie()),void 0),loadLanguage:async e=>$A(()=>import(hie(e)),void 0),loadTheme:async e=>$A(()=>import(gie(e)),void 0)},tj=()=>_ie,nj=`github-light`,rj=`github-dark`,ij=()=>{if(typeof document>`u`)return nj;let{theme:e}=document.documentElement.dataset;return e?e===`dark`?rj:nj:window.matchMedia(`(prefers-color-scheme: dark)`).matches?rj:nj},vie=e=>{if(typeof document>`u`)return()=>void 0;let t=()=>{let t=ij();e.update(()=>{nS().getChildren().forEach(e=>{uD(e)&&e.getTheme()!==t&&(e.setTheme(t),e.markDirty())})},{tag:sy})},n=new MutationObserver(t);n.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`]});let r=window.matchMedia(`(prefers-color-scheme: dark)`);return r.addEventListener(`change`,t),()=>{n.disconnect(),r.removeEventListener(`change`,t)}},yie=[``,`plain`,`plaintext`,`text`,`txt`],bie=/^diff-([\w-]+)/i,aj=null,oj=null,sj=!1,cj=e=>bie.exec(e)?.[1]??null,lj=e=>yie.includes(e??``),uj=()=>!!oj,xie=()=>sj,dj=e=>{if(!oj)return!1;let t=cj(e)??e;return aj.isSpecialLang(t)?!0:oj.getLoadedLanguages().includes(t)},Sie=(e,t)=>{e.update(()=>{let e=Yx(t);if(!uD(e))return;let n=e.getLanguage();n&&dj(n)&&!e.getIsSyntaxHighlightSupported()&&e.setIsSyntaxHighlightSupported(!0),e.markDirty()},{tag:sy})},fj=new Map,pj=(e,t,n,r)=>{let i=fj.get(e);if(!i){let n=new Map;i={promise:(async()=>{try{await t()}catch{}fj.delete(e),n.forEach((e,t)=>Sie(e,t))})(),targets:n},fj.set(e,i)}return n&&r&&i.targets.set(r,n),i.promise},mj=(e,t)=>{if(!(oj||sj))return pj(`engine`,async()=>{try{aj=await tj().loadEngine(),oj=aj.createHighlighterCoreSync({engine:aj.createJavaScriptRegexEngine(),langs:[],themes:[]})}catch{sj=!0}},e,t)},hj=async(e,t,n)=>{let r=await uie(e,t);if(r)return r;let i=await n();if(!i)return;let a=i.default??i;return await die(e,t,a),a},gj=e=>qA.find(({id:t,aliases:n})=>t===e||n?.includes(e))?.id??e,_j=(e,t,n)=>{let r=cj(e)??e;if(!oj||dj(r))return;let i=qA.find(({id:e,aliases:t})=>e===r||t?.includes(r));if(i)return pj(`lang/${i.id}`,async()=>{let e=await hj(`lang`,i.id,()=>tj().loadLanguage(i.id));e&&await oj.loadLanguage(e)},t,n)},vj=e=>oj?aj.isSpecialTheme(e)||oj.getLoadedThemes().includes(e):!1,yj=(e,t,n)=>{if(!(!oj||vj(e))&&oie.some(({id:t})=>t===e))return pj(`theme/${e}`,async()=>{let t=await hj(`theme`,e,()=>tj().loadTheme(e));t&&await oj.loadTheme(t)},t,n)},Cie=(e,t)=>{let n=[];return e.forEach((e,r)=>{r&&n.push(sx()),e.forEach((e,r)=>{let{content:i}=e;if(t&&r===0&&i.length>0){let e=[`+`,`-`,`>`,`<`,` `],t=[`inserted`,`deleted`,`inserted`,`deleted`,`unchanged`],r=e.indexOf(i[0]);r!==-1&&(n.push(bD(e[r],t[r])),i=i.slice(1))}let a=aj.stringifyTokenStyle(e.htmlStyle||aj.getTokenStyleObject(e));pb(i,{linebreak:()=>n.push(sx()),tab:()=>n.push(Ey()),text:e=>{let t=bD(e);t.setStyle(a),n.push(t)}})})}),n},wie=(e,t)=>{let n=cj(t),{tokens:r}=oj.codeToTokens(e.getTextContent(),{lang:n??t,theme:e.getTheme()});return Cie(r,!!n)},Tie=(e,t,{theme:n}={})=>{let r=gj(cj(t)??t);if(!oj||lj(r)||!dj(r))return;let i=n??ij();if(vj(i))return oj.codeToHtml(e,{lang:r,theme:i})},bj={defaultLanguage:rD,defaultTheme:`github-light`,tokenize(e,t){let n=t||this.defaultLanguage;return n===null||lj(n)||!uj()?tD(e.getTextContent()):wie(e,n)}},Eie=(e,t)=>{let n=t.getElementByKey(e.getKey());if(n===null)return;let r=e.getChildren(),i=r.length;if(i===n.__cachedChildrenLength)return;n.__cachedChildrenLength=i;let a=`1`,o=1;for(let e=0;exD(e)&&xD(t)&&e.__text===t.__text&&e.__highlightType===t.__highlightType&&e.__style===t.__style||Dy(e)&&Dy(t)||cx(e)&&cx(t),Die=(e,t)=>{let n=0;for(;n{let n=Yx(e);if(!uD(n)||!n.isAttached())return;let r=ib();if(!Q(r)){t();return}let{anchor:i}=r,a=i.offset,o=i.type===`element`&&cx(n.getChildAtIndex(i.offset-1)),s=0;if(o||(s=a+i.getNode().getPreviousSiblings().reduce((e,t)=>e+t.getTextContentSize(),0)),t()){if(o){i.getNode().select(a,a);return}n.getChildren().some(e=>{let t=Cy(e);if(t||cx(e)){let n=e.getTextContentSize();if(t&&n>=s)return e.select(s,s),!0;s-=n}return!1})}},Sj=(e,t,n,r)=>{let i=r.getKey(),{nodesCurrentlyHighlighting:a}=n,o=r.getLanguage();!o&&t.defaultLanguage!==null&&(o=t.defaultLanguage,r.setLanguage(o));let s=r.getTheme();s||(s=t.defaultTheme,r.setTheme(s));let c=!o||lj(o),l=!1;if(c||!o||xie()?r.getIsSyntaxHighlightSupported()&&r.setIsSyntaxHighlightSupported(!1):uj()?(vj(s)||(yj(s,e,i),l=!0),dj(o)?r.getIsSyntaxHighlightSupported()||r.setIsSyntaxHighlightSupported(!0):(!_j(o,e,i)&&r.getIsSyntaxHighlightSupported()&&r.setIsSyntaxHighlightSupported(!1),l=!0)):(mj(e,i),l=!0),!l){if(a.has(i)){n.pendingRefresh.has(i)||(n.pendingRefresh.add(i),AS(()=>{n.pendingRefresh.delete(i),e.update(()=>{let e=Yx(i);uD(e)&&e.markDirty()},{tag:sy})}));return}a.add(i),n.didTransform||(n.didTransform=!0,AS(()=>{n.didTransform=!1,a.clear()})),Oie(i,()=>{let e=Yx(i);if(!uD(e)||!e.isAttached())return!1;let n=e.getLanguage()||t.defaultLanguage,a=t.tokenize(e,n??void 0),{from:o,to:s,nodesForReplacement:c}=Die(e.getChildren(),a);return o!==s||c.length?(r.splice(o,s-o,c),!0):!1})}},Cj=(e,t,n,r)=>{let i=r.getParent();uD(i)?Sj(e,t,n,i):xD(r)&&r.replace(Sy(r.__text))},kie=(e,t=bj)=>{if(!e.hasNodes([cD,vD]))throw Error(`CodeNode or CodeHighlightNode not registered on editor`);let n=[];e._headless!==!0&&n.push(e.registerMutationListener(cD,t=>{e.read(`latest`,()=>{t.forEach((t,n)=>{if(t!==`destroyed`){let t=Yx(n);t!==null&&Eie(t,e)}})})},{skipInitialization:!1}));let r={didTransform:!1,nodesCurrentlyHighlighting:new Set,pendingRefresh:new Set};return n.push(e.registerNodeTransform(cD,Sj.bind(null,e,t,r)),e.registerNodeTransform(vy,Cj.bind(null,e,t,r)),e.registerNodeTransform(vD,Cj.bind(null,e,t,r)),DD(e)),zw(...n)},Aie={dependencies:[tE],export:e=>iE(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=rE();r||e.getNextSibling()!==null?e.replace(i):e.insertBefore(i),i.selectNext()},type:`element`},wj=/^(?:\|)(.+)(?:\|)\s?$/,jie=/^(\| ?:?-*:? ?)+\|\s?$/,Mie=e=>{let t=e.getFirstChild();return SA(t)?t.getChildrenSize():0},Tj=e=>{e=e.replace(/\\n/g,` +`);let t=_A(pA.NO_STATUS);return uA(e,Xk,t),t},Ej=e=>{let[,t]=e.match(wj)??[];return t?t.split(`|`).map(e=>Tj(e)):null},Nie={dependencies:[AA,bA,mA],export:e=>{if(!MA(e))return null;let t=[];return e.getChildren().forEach(e=>{let n=[];if(!SA(e))return;let r=!1;e.getChildren().forEach(e=>{vA(e)&&(n.push(dA(Xk,e).replace(/\n/g,`\\n`).trim()),e.__headerState===pA.ROW&&(r=!0))}),t.push(`| ${n.join(` | `)} |`),r&&t.push(`| ${n.map(()=>`---`).join(` | `)} |`)}),t.join(` +`)},regExp:wj,replace:(e,t,[n])=>{if(jie.test(n)){let t=e.getPreviousSibling();if(!t||!MA(t))return;let n=t.getChildren(),r=n[n.length-1];if(!r||!SA(r))return;r.getChildren().forEach(e=>{vA(e)&&e.setHeaderStyles(pA.ROW,pA.ROW)}),e.remove();return}let r=Ej(n);if(!r)return;let i=[r],a=e.getPreviousSibling(),o=r.length;for(;a&&!(!hx(a)||a.getChildrenSize()!==1);){let e=a.getFirstChild();if(!Cy(e))break;let t=Ej(e.getTextContent());if(!t)break;o=Math.max(o,t.length),i.unshift(t);let n=a.getPreviousSibling();a.remove(),a=n}let s=jA();i.forEach(e=>{let t=xA();s.append(t);for(let n=0;n{let e=ib();if(!Q(e))return{blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]};let t=e.anchor.getNode(),n=null,r=BA.filter(t=>e.hasFormat(t));t.getType()!==`root`&&(n=t instanceof qb?t:Zw(t,qb),WD(n)&&(r.push(`link`),n=Zw(n,qb)),_O(n)&&(n=Zw(n,vO)));let i=(()=>{if(!n)return`paragraph`;if(tk(n))return`heading-${n.getTag().match(/\d/)?.[0]}`;if(CO(n))return n.getListType()===`bullet`?`bulleted-list`:`numbered-list`;if(XO(n))return`blockquote`;if(uD(n)||xD(n))return`code-block`;let e=n.getType();return HA.includes(e)?e:`paragraph`})();return{blockNodeKey:n?.getKey()??null,blockType:i,inlineTypes:r}},Fie=(e,t)=>{let n=t.filter(({tag:e})=>!rie.includes(e));e.getRootElement()?.dispatchEvent(new CustomEvent(`Update`,{detail:{value:dA(n).replace(/\\([_\\])/g,`$1`).replace(/ /g,` `),selection:Pie()}}))},Iie=({enabledButtons:e=[],components:t=[],useMarkdownShortcuts:n,isCodeEditor:r=!1,defaultLanguage:i=`plain`})=>{let a={namespace:`editor`,nodes:[...t.map(({node:e})=>e),...new Set(Object.entries(tie).filter(([t])=>e.includes(t)).flatMap(([,e])=>e)),...r?[cD,vD]:[tE,AA,mA,bA]],theme:eie},o=[...t.map(({transformer:e})=>e),...new Set(Object.entries(nie).filter(([t])=>e.includes(t)).flatMap(([,e])=>e)),...r?[Rk]:[Aie,Nie]],s=bx(a),c=[],l=e=>{typeof e==`function`&&c.push(e)};return l(wre(s)),l(ND(s)),l(RD(s,zD(),1e3)),n&&l(Kre(s,o)),(e.includes(`code-block`)||r)&&(l(kie(s,{...bj,defaultLanguage:i,defaultTheme:ij()})),l(vie(s))),e.includes(`link`)&&(l(s.registerCommand(JD,e=>(XD(typeof e==`string`?e:null),!0),2)),l(s.registerCommand(B_,e=>{let t=ib();if(!Q(t)||!Qw(e,ClipboardEvent)||!e.clipboardData||e.target.matches(`input, textarea`))return!1;let n=e.clipboardData.getData(`text`).trim();return LA(n)?(t.isCollapsed()&&fb([Sy(n)]),!t.getNodes().some(e=>$(e)||Cy(e)&&!e.isSimpleText())&&(s.dispatchCommand(JD,n),e.preventDefault(),!0)):!1},1))),e.includes(`bulleted-list`)&&l(s.registerCommand(wO,()=>(iO(`bullet`),!0),2)),e.includes(`numbered-list`)&&l(s.registerCommand(TO,()=>(iO(`number`),!0),2)),(e.includes(`bulleted-list`)||e.includes(`numbered-list`))&&l(s.registerCommand(R_,()=>dO(),2)),l(s.registerUpdateListener(()=>{s?.isComposing()||(async()=>{await vf(100),s.update(()=>{if(r){let e=nS(),t=e.getChildren();if(t.length===1&&!uD(t[0])&&t[0].remove(),t.length===0){let t=lD();t.setLanguage(i),e.append(t)}}Fie(s,o)})})()})),l(s.registerRootListener(e=>{if(!e)return;let t=e=>{s.update(()=>{if(e.key===`Tab`){let t=ib();if(!Q(t))return;let n=t.anchor.getNode(),r=n instanceof qb?n:Zw(n,qb);_O(r)&&r.canIndent()&&(e.shiftKey?r.getIndent()>0&&(e.preventDefault(),s.dispatchCommand(lv,void 0)):(e.preventDefault(),s.dispatchCommand(cv,void 0)))}})};return e.addEventListener(`keydown`,t),()=>{e.removeEventListener(`keydown`,t)}})),{editor:s,enabledTransformers:o,dispose:()=>{c.forEach(e=>e())}}},Dj=async e=>{lj(e)||(await mj(),await Promise.all([_j(gj(e)),yj(ij())]))},Lie=async(e,t,n)=>(await Promise.all([...t.matchAll(/^```(?.+?)\n/gm)].map(async({groups:{lang:e=`plain`}={}})=>Dj(e))),t=iie(t),t=aie(t),new Promise((r,i)=>{e.update(()=>{try{uA(t,n),r(void 0)}catch(e){i(Error(`Failed to convert Markdown`,{cause:e}))}})})),Oj=async e=>new Promise(t=>{e.focus(()=>{t(void 0)})}),Rie=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),zie=U(`
    `),Bie={hash:`svelte-2icfj7`,code:`.lexical-root.svelte-2icfj7 {overflow:hidden;border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius) !important;padding:var(--sui-textbox-multiline-padding);min-height:120px;color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-multiline-line-height);}.lexical-root.svelte-2icfj7:not(:first-child) {border-start-start-radius:0 !important;border-start-end-radius:0 !important;}.lexical-root.code.svelte-2icfj7 {padding:0;}.lexical-root.code.svelte-2icfj7 .code-block {border-radius:0 !important;min-height:120px;}.lexical-root.svelte-2icfj7:focus-visible {outline:0;}.lexical-root[aria-invalid=true].svelte-2icfj7 {border-color:var(--sui-error-border-color);}.lexical-root.svelte-2icfj7 [dir]:first-child {margin-top:0;}.lexical-root.svelte-2icfj7 [dir]:last-child {margin-bottom:0;}.lexical-root.svelte-2icfj7 strong.italic {font-style:italic;}.lexical-root.svelte-2icfj7 .strikethrough {text-decoration:line-through;}.lexical-root.svelte-2icfj7 li.nested {list-style-type:none;}.lexical-root.svelte-2icfj7 .code-block {position:relative;display:block;padding-block:8px;padding-inline-start:56px;padding-inline-end:8px;background-color:var(--sui-code-background-color);overflow-x:auto;white-space:pre;}.lexical-root.svelte-2icfj7 .code-block:not(:first-child) {margin-top:1em;}.lexical-root.svelte-2icfj7 .code-block:not(:last-child) {margin-bottom:1em;}.lexical-root.svelte-2icfj7 .code-block::before {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;content:attr(data-gutter);padding:8px;min-width:40px;color:var(--sui-tertiary-foreground-color);background-color:var(--sui-tertiary-background-color);text-align:end;}.lexical-root.svelte-2icfj7 [data-lexical-text=true] {cursor:text;}.lexical-root.svelte-2icfj7 :is(th, td) > p {margin:0;white-space:normal;word-break:normal;}.lexical-root.svelte-2icfj7 hr {margin:var(--sui-paragraph-margin) 0;border:none;padding:0;}.lexical-root.svelte-2icfj7 hr::after {display:block;height:2px;background-color:var(--sui-control-border-color);line-height:2px;content:"";}`};function kj(e,t){O(t,!0),J(e,Bie);let n=X(t,`hidden`,3,!1),r=X(t,`disabled`,3,!1),i=X(t,`readonly`,3,!1),a=X(t,`required`,3,!1),o=X(t,`invalid`,3,!1),s=Al(t,Rie),c=zi(`editorStore`),l=P(void 0),u=N(()=>!(r()||i()));B(()=>{c.editor?.setEditable(H(u))});let d=e=>{let{hasConverterError:t,useRichText:n,inputValue:r}=c;if(t||!n)return;let{value:i,selection:a}=e.detail;r!==i&&(c.useRichText=!1,c.inputValue=i,c.useRichText=!0),c.selection=a},f=e=>{e.target?.matches(`a`)&&e.preventDefault()};Nl(()=>{let{editor:e,enabledTransformers:t,dispose:n}=Iie(c.config);return c.editor=e,c.enabledTransformers=t,H(l)?.addEventListener(`Update`,d),H(l)?.addEventListener(`click`,f),()=>{H(l)?.removeEventListener(`Update`,d),H(l)?.removeEventListener(`click`,f),n(),e.setRootElement(null),c.initialized=!1,c.editor=void 0}}),B(()=>{c.editor&&H(l)&&(c.editor.setRootElement(H(l)),c.initialized=!0)});var p=zie();bl(p,()=>({...s,role:`textbox`,"aria-multiline":`true`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),class:`lexical-root`,id:`${c.editorId??``}-lexical-root`,contenteditable:H(u),hidden:n(),[ul]:{code:c.config.isCodeEditor}}),void 0,void 0,void 0,`svelte-2icfj7`),Ol(p,e=>F(l,e),()=>H(l)),G(e,p),k()}var Aj=()=>{let e=Af(`editor`),t=P(!1),n=P(void 0),r=P(ao([])),i=P(ao({modes:[],enabledButtons:[],components:[],useMarkdownShortcuts:!0,isCodeEditor:!1,useEmojiAutocomplete:!1})),a=P(``),o=P(ao({blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]})),s=P(!0),c=P(!1),l=P(!1),u=async()=>{if(!H(n)||!H(t))return;let e=H(a);try{await Lie(H(n),H(a)||``,H(r))}catch(t){F(c,!0),F(a,e,!0),console.error(t)}};return{get editor(){return H(n)},set editor(e){F(n,e,!0)},set enabledTransformers(e){F(r,e,!0)},get enabledTransformers(){return H(r)},get initialized(){return H(t)},set initialized(e){F(t,e,!0)},get config(){return H(i)},set config(e){F(i,e,!0),F(s,e.modes[0]===`rich-text`||e.isCodeEditor,!0)},get inputValue(){return H(a)},set inputValue(e){let t=H(a)!==e;t&&F(a,e,!0),H(s)&&(t||H(n)?.getEditorState().isEmpty())&&u()},get selection(){return H(o)},set selection(e){F(o,e,!0)},get useRichText(){return H(s)},set useRichText(e){F(s,e,!0)},get hasConverterError(){return H(c)},set hasConverterError(e){F(c,e,!0),H(c)&&(F(s,!1),F(l,!0))},get showConverterError(){return H(l)},set showConverterError(e){F(l,e,!0)},editorId:e,convertMarkdown:u}},Vie=U(` `,1);function jj(e,t){O(t,!0);let n=X(t,`disabled`,3,!1),r=qA.map(({id:e,name:t,aliases:n=[]})=>({key:e,label:t,aliases:n})),i=zi(`editorStore`),a=P(`plain`);B(()=>{i.selection.blockNodeKey,i.editor?.read(()=>{let e=i.config.isCodeEditor?nS().getChildren()[0]:Yx(i.selection.blockNodeKey);uD(e)&&F(a,e.getLanguage()??i.config.defaultLanguage??`plain`,!0)})});{let t=N(()=>Z(`_sui.text_editor.language`));Km(e,{get disabled(){return n()},get"aria-label"(){return H(t)},get value(){return H(a)},onChange:async({detail:{value:e}})=>{!i.editor||H(a)===e||(await Oj(i.editor),await Dj(e),i.editor.update(()=>{let{blockNodeKey:t}=i.selection,n=i.config.isCodeEditor?nS().getChildren()[0]:t?Yx(t):null;uD(n)&&(n.setLanguage(e),F(a,e,!0))}))},children:(e,t)=>{var n=Vie(),i=L(n);{let e=N(()=>Z(`_sui.text_editor.plain_text`));bm(i,{get label(){return H(e)},value:`plain`,dir:`ltr`})}Cc(z(i,2),17,()=>r,({key:e,label:t,aliases:n})=>e,(e,t)=>{let n=()=>H(t).key,r=()=>H(t).label,i=()=>H(t).aliases;{let t=N(()=>n()===H(a)||i().includes(H(a)));bm(e,{get label(){return r()},get value(){return n()},get selected(){return H(t)},dir:`ltr`})}}),G(e,n)},$$slots:{default:!0}})}k()}var Hie=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`variant`,`ariaLabel`,`children`]),Uie=U(`
    `),Wie={hash:`svelte-17i0igh`,code:`[role=toolbar].svelte-17i0igh {--toolbar-size: var(--sui-secondary-toolbar-size);flex:none !important;display:flex;align-items:center;padding-inline:8px;background-color:var(--toolbar-background-color, transparent);}[role=toolbar].primary.svelte-17i0igh {--toolbar-size: var(--sui-primary-toolbar-size);} +@media (width < 768px) {[role=toolbar].secondary.svelte-17i0igh {padding-inline:0;} +}[role=toolbar][aria-orientation=horizontal].svelte-17i0igh {height:var(--toolbar-size);}[role=toolbar][aria-orientation=vertical].svelte-17i0igh {flex-direction:column;width:var(--toolbar-size);}[role=toolbar].svelte-17i0igh button[role=button]:is([aria-pressed=true], [aria-checked=true]) {background-color:var(--sui-selected-background-color);}[role=toolbar].svelte-17i0igh h2 {flex:auto;display:flex;align-items:center;gap:8px;margin:0;padding-inline-end:12px;min-width:0;font-size:var(--sui-font-size-x-large);}[role=toolbar].svelte-17i0igh h2:first-child {padding-inline-start:12px;}[role=toolbar].svelte-17i0igh h2 span:not(.sui.truncated-text) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal, normal);opacity:0.8;}[role=toolbar].svelte-17i0igh .divider[aria-orientation=horizontal] {margin:0 4px;width:calc(100% - 8px);}[role=toolbar].svelte-17i0igh .divider[aria-orientation=vertical] {margin:4px 0;height:calc(100% - 8px);}.inner.svelte-17i0igh {display:contents;}`};function Mj(e,t){J(e,Wie);let n=X(t,`hidden`,3,!1),r=X(t,`disabled`,3,!1),i=X(t,`orientation`,3,`horizontal`),a=X(t,`variant`,3,void 0),o=X(t,`ariaLabel`,3,void 0),s=Al(t,Hie);var c=Uie();bl(c,()=>({...s,role:`toolbar`,class:`sui toolbar ${i()??``} ${a()??``} ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i(),"aria-label":o()}),void 0,void 0,void 0,`svelte-17i0igh`);var l=I(c);Ac(I(l),()=>t.children??br),D(l),D(c),V(()=>l.inert=r()),G(e,c)}var Gie=new Set([`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`disabled`,`children`]),Kie=U(`
    `),qie={hash:`svelte-vfc36b`,code:`.wrapper.svelte-vfc36b {display:contents;}.wrapper.svelte-vfc36b [role=toolbar] {position:sticky;top:0;z-index:100;display:flex;flex-wrap:wrap;gap:4px;border-width:1px 1px 0;border-style:solid;border-color:var(--sui-textbox-border-color);border-start-start-radius:var(--sui-textbox-border-radius);border-start-end-radius:var(--sui-textbox-border-radius);border-end-start-radius:0;border-end-end-radius:0;padding:0 4px;height:auto;min-height:40px;background-color:var(--sui-tertiary-background-color);} +@media (width < 768px) {.wrapper.svelte-vfc36b [role=toolbar] {flex-wrap:wrap;height:auto;} +}.wrapper.svelte-vfc36b .sui.menu-button {padding:0 4px;}.wrapper.svelte-vfc36b .sui.button {flex:none;margin:0 !important;}.wrapper.svelte-vfc36b .sui.button-group {gap:4px;}`};function Nj(e,t){O(t,!0),J(e,qie),X(t,`code`,11,``),X(t,`lang`,11,`plain`);let n=X(t,`disabled`,3,!1),r=Al(t,Gie);var i=Kie();Mj(I(i),Ml(()=>r,{get disabled(){return n()},children:(e,n)=>{var r=W();Ac(L(r),()=>t.children??br),G(e,r)},$$slots:{default:!0}})),D(i),G(e,i),k()}function Jie(e,t){O(t,!0);let n=X(t,`disabled`,3,!1),r=X(t,`readonly`,3,!1);{let t=N(()=>n()||r()),i=N(()=>Z(`_sui.text_editor.code_editor`));Nj(e,{get disabled(){return H(t)},get"aria-label"(){return H(i)},children:(e,t)=>{{let t=N(()=>n()||r());jj(e,{get disabled(){return H(t)}})}},$$slots:{default:!0}})}k()}var Yie=new Set([`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`showLanguageSwitcher`,`flex`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),Xie=U(`
    `,1),Zie={hash:`svelte-8svssr`,code:`.code-editor.svelte-8svssr {margin:var(--sui-focus-ring-width);border-radius:var(--sui-textbox-border-radius);width:calc(100% - var(--sui-focus-ring-width) * 2);transition:all 200ms;}.code-editor.svelte-8svssr:focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.code-editor.flex.svelte-8svssr:not([hidden]) {display:block;}`};function Qie(e,t){O(t,!0),J(e,Zie);let n=X(t,`code`,15,``),r=X(t,`lang`,15,`plain`),i=X(t,`showLanguageSwitcher`,3,!1),a=X(t,`flex`,3,!1),o=X(t,`hidden`,3,!1),s=X(t,`disabled`,3,!1),c=X(t,`readonly`,3,!1),l=X(t,`required`,3,!1),u=X(t,`invalid`,3,!1),d=Al(t,Yie),f=Aj();f.config={...f.config,useMarkdownShortcuts:!1,isCodeEditor:!0,defaultLanguage:r()},Bi(`editorStore`,f),B(()=>{f.initialized&&(n(),r(),Ds(()=>{let e=n()?`\`\`\`${r()}\n${n()}\n\`\`\``:`\`\`\`${r()}\n\`\`\``;f.inputValue=e}))}),B(()=>{f.initialized&&(f.inputValue,Ds(()=>{let{lang:e=`plain`,code:t=``}=f.inputValue.match(/^```(?\w+?)?\n(?:(?.*)\n)?```/s)?.groups??{};r()!==e&&r(e),n()!==t&&n(t)}))});var p=Xie(),m=L(p);bl(m,()=>({...d,role:`none`,class:`sui code-editor`,hidden:o(),[ul]:{flex:a()}}),void 0,void 0,void 0,`svelte-8svssr`);var h=I(m),g=e=>{Jie(e,{get disabled(){return s()},get readonly(){return c()}})};q(h,e=>{i()&&e(g)}),kj(z(h,2),{get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()}}),D(m);var _=z(m,2),v=e=>{Nh(e,{get show(){return f.showConverterError},set show(e){f.showConverterError=e},children:(e,t)=>{Hl(e,{status:`error`,children:(e,t)=>{mi();var n=ec();V(e=>K(n,e),[()=>Z(`_sui.text_editor.converter_error`)]),G(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};q(_,e=>{f.showConverterError&&e(v)}),G(e,p),k()}var $ie=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`element`,`flex`,`dir`,`name`,`autoResize`,`useEmojiAutocomplete`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),eae=U(``),tae=U(`
    `),nae={hash:`svelte-hlefmw`,code:`.text-area.svelte-hlefmw {display:inline-grid;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-multiline-min-width);}.text-area[hidden].svelte-hlefmw {display:none;}.text-area.flex.svelte-hlefmw:not([hidden]) {display:inline-grid;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}:is(textarea.svelte-hlefmw, .clone.svelte-hlefmw) {grid-area:1/1/2/2;display:block;margin:0;border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);padding:var(--sui-textbox-multiline-padding);width:100%;min-height:8em;color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-multiline-line-height);font-weight:var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal));text-align:var(--sui-textbox-text-align, start);text-indent:var(--sui-textbox-text-indent, 0);text-transform:var(--sui-textbox-text-transform, none);letter-spacing:var(--sui-textbox-letter-spacing, normal);word-spacing:var(--sui-word-spacing-normal, normal);transition:all 200ms;}:is(textarea:where(.svelte-hlefmw), .clone:where(.svelte-hlefmw)).resizing.svelte-hlefmw {transition-duration:0ms;}.svelte-hlefmw:is(textarea:where(.svelte-hlefmw), .clone:where(.svelte-hlefmw)):focus {color:var(--sui-textbox-foreground-color-focus, var(--sui-textbox-foreground-color));background-color:var(--sui-textbox-background-color-focus, var(--sui-textbox-background-color));}.svelte-hlefmw:is(textarea:where(.svelte-hlefmw), .clone:where(.svelte-hlefmw)):is(:where(.svelte-hlefmw):disabled, :where(.svelte-hlefmw):read-only) {background-color:var(--sui-disabled-background-color);}textarea.svelte-hlefmw {resize:vertical;}textarea.auto-resize.svelte-hlefmw {overflow:hidden;resize:none;}textarea[aria-invalid=true].svelte-hlefmw {border-color:var(--sui-error-border-color);}.clone.svelte-hlefmw {overflow:hidden;visibility:hidden;}textarea.svelte-hlefmw, +.clone.svelte-hlefmw {white-space:pre-wrap;word-break:normal;overflow-wrap:anywhere;}`};function Pj(e,t){O(t,!0),J(e,nae);let n=X(t,`value`,15,``),r=X(t,`element`,15),i=X(t,`flex`,3,!1),a=X(t,`dir`,3,void 0),o=X(t,`name`,3,void 0),s=X(t,`autoResize`,3,!1),c=X(t,`useEmojiAutocomplete`,3,!1),l=X(t,`hidden`,3,!1),u=X(t,`disabled`,3,!1),d=X(t,`readonly`,3,!1),f=X(t,`required`,3,!1),p=X(t,`invalid`,3,!1),m=Al(t,$ie),h=N(()=>`${n()}\n`);var g=tae();let _;var v=I(g);pa(v),bl(v,()=>({...m,dir:a(),name:o(),disabled:u()||void 0,readonly:d()||void 0,"aria-hidden":l(),"aria-disabled":u(),"aria-readonly":d(),"aria-required":f(),"aria-invalid":p(),[ul]:{"auto-resize":s()}}),void 0,void 0,void 0,`svelte-hlefmw`),Ol(v,e=>r(e),()=>r());var y=z(v,2),b=e=>{var t=eae(),n=R(t,!0);V(()=>{Y(t,`dir`,a()),K(n,H(h)),t.dir=t.dir}),G(e,t)};q(y,e=>{s()&&e(b)});var x=z(y,2),S=e=>{dm(e,{get element(){return r()}})};q(x,e=>{c()&&!u()&&!d()&&e(S)}),D(g),V(()=>{_=el(g,1,`sui text-area ${t.class??``}`,`svelte-hlefmw`,_,{flex:i(),disabled:u(),readonly:d()}),Y(g,`hidden`,l()),v.dir=v.dir}),wl(v,n),G(e,g),k()}function rae(e,t){O(t,!0);let n=zi(`editorStore`),r=P(void 0),i=()=>{let e=ib();if(!Q(e)||!e.isCollapsed()||e.hasFormat(`code`))return;let t=e.anchor.getNode();if(!Cy(t)||!t.isSimpleText()||uD(t.getParent()))return;let{offset:n}=e.anchor,r=cm(t.getTextContent().slice(0,n));if(r===void 0)return;let i=t.getKey();return{id:`${i}:${n-r.length-1}`,query:r,nodeKey:i,offset:n}},a=({query:e})=>{let t=window.getSelection();if(!t?.rangeCount)return;let n=t.getRangeAt(0).cloneRange();try{n.setStart(n.startContainer,Math.max(0,n.startOffset-e.length-1))}catch{}let{top:r,bottom:i,left:a,right:o,width:s,height:c}=n.getBoundingClientRect();return r||i||a||s||c?{top:r,bottom:i,left:a,right:o}:void 0},o=(e,t)=>{let{editor:r}=n,{query:i,nodeKey:a,offset:o}=t,s=o-i.length-1;r?.update(()=>{let t=Yx(a);if(!Cy(t)||t.getTextContent().slice(s,o)!==`:${i}`)return;let n=sm(e.emoji,t.getTextContent().slice(o));t.spliceText(s,i.length+1,n,!0)})},s=()=>{let{editor:e}=n;if(!e)return[];let t=e=>t=>H(r)?.isOpen()?(t?.preventDefault(),e(),!0):!1;return[e.registerCommand(ev,t(()=>H(r)?.moveSelection(1)),4),e.registerCommand($_,t(()=>H(r)?.moveSelection(-1)),4),e.registerCommand(tv,t(()=>H(r)?.selectHighlighted()),4),e.registerCommand(ov,t(()=>H(r)?.selectHighlighted()),4),e.registerCommand(iv,t(()=>H(r)?.close(!0)),4),e.registerUpdateListener(({editorState:e})=>{let t;e.read(()=>{t=i()}),H(r)?.update(t)})]};B(()=>{if(!n.editor||!H(r))return;let e=s();return()=>{e.forEach(e=>e()),H(r)?.close()}}),B(()=>{n.useRichText||H(r)?.close()});{let t=N(()=>n.editor?.getRootElement()??void 0);Ol(um(e,{getAnchorRect:a,onSelect:o,get ariaOwner(){return H(t)}}),e=>F(r,e,!0),()=>H(r))}k()}var Fj=e=>Array.isArray(e)&&e.every(e=>or(e)),Ij=e=>[...new Set(e)];function iae(e,t){O(t,!0);let n=zi(`editorStore`),r=N(()=>n.selection.inlineTypes.includes(t.type));{let i=e=>{Rl(e,{get name(){return zA[t.type].icon}})},a=N(()=>Z(`_sui.text_editor.${zA[t.type].labelKey}`)),o=N(()=>!n.useRichText);$f(e,{iconic:!0,get"aria-label"(){return H(a)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return H(o)},get pressed(){return H(r)},onclick:async()=>{n.editor&&(await Oj(n.editor),n.editor.dispatchCommand(W_,t.type))},startIcon:i,$$slots:{startIcon:!0}})}k()}function aae(e,t){O(t,!0);let n=zi(`editorStore`),r=N(()=>t.component.label),i=N(()=>t.component.icon),a=N(()=>t.component.createNode);{let t=e=>{var t=W(),n=L(t),r=e=>{Rl(e,{get name(){return H(i)}})};q(n,e=>{H(i)&&e(r)}),G(e,t)},o=N(()=>!!H(i)),s=N(()=>H(i)?void 0:H(r)),c=N(()=>!n.useRichText);$f(e,{get iconic(){return H(o)},get label(){return H(s)},get title(){return H(r)},get"aria-label"(){return H(r)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return H(c)},onclick:()=>{n.editor?.update(()=>{fb([H(a)(),mx()])})},startIcon:t,$$slots:{startIcon:!0}})}k()}var oae=U(`
    `),sae=U(`
    `,1),cae=U(` `,1);function lae(e,t){let n=tc();O(t,!0);let r=`link`,i=zi(`editorStore`),a=N(()=>i.selection.inlineTypes.includes(r)),o=P(!1),s=P(`create`),c=P(!1),l=P(``),u=P(``),d=()=>{i.editor?.getEditorState().read(()=>{let e=Sne().trim();F(l,e,!0),F(c,!!e),F(s,`create`),F(o,!0)})},f=()=>{i.editor?.dispatchCommand(JD,null)},p=()=>{i.editor?.getEditorState().read(()=>{let e=ib();if(Q(e)){let t=e.anchor.getNode(),n=(t instanceof VD?t:Zw(t,VD))?.getURL();if(n){F(c,!0),F(l,n,!0),F(s,`update`),F(o,!0);return}}f()})},m=()=>{H(a)?p():d()},h=e=>{uf(e,`Enter`)&&H(l)&&F(o,!1)},g=async e=>{if(e.detail.returnValue!==`cancel`&&H(s)!==`remove`){if(!i.editor)return;await new Promise(e=>{i.editor?.update(async()=>{let t=ib()??ab()?.clone();Q(t)||(t=tb()),H(c)||(F(u,H(u).trim(),!0),F(u,H(u)||H(l),!0),fb([Sy(H(u))])),rS(t),e(void 0)})}),await Oj(i.editor),i.editor.dispatchCommand(JD,H(l))}else i.editor&&await Oj(i.editor);F(l,``),F(u,``)},_=()=>{i.editor?.registerCommand(J_,e=>(uf(e,tf()?`Meta+K`:`Ctrl+K`)&&(e.preventDefault(),m()),!1),2)};B(()=>{i.editor&&_()});var v=cae(),y=L(v);{let e=e=>{Rl(e,{get name(){return zA[r].icon}})},t=N(()=>Z(`_sui.text_editor.${zA[r].labelKey}`)),n=N(()=>!i.useRichText);$f(y,{iconic:!0,get"aria-label"(){return H(t)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},get disabled(){return H(n)},get pressed(){return H(a)},onclick:()=>{m()},startIcon:e,$$slots:{startIcon:!0}})}var b=z(y,2);{let e=e=>{var t=W(),n=L(t),r=e=>{{let t=N(()=>Z(`_sui.remove`));$f(e,{variant:`secondary`,get label(){return H(t)},onclick:()=>{f(),F(s,`remove`),F(o,!1)}})}};q(n,e=>{H(s)!==`create`&&e(r)}),G(e,t)},t=N(()=>H(s)===`create`?Z(`_sui.text_editor.insert_link`):Z(`_sui.text_editor.update_link`)),r=N(()=>!H(l)),i=N(()=>H(s)===`create`?Z(`_sui.insert`):Z(`_sui.update`));Yp(b,{get title(){return H(t)},get okDisabled(){return H(r)},get okLabel(){return H(i)},restoreFocus:!1,onClose:e=>{g(e)},get open(){return H(o)},set open(e){F(o,e,!0)},get value(){return H(l)},set value(e){F(l,e,!0)},footerExtra:e,children:(e,t)=>{var r=sae(),i=L(r),a=I(i),o=R(a,!0),s=z(a,2);{let e=N(()=>Z(`_sui.text_editor.url`));fm(s,{dir:`ltr`,get id(){return`${n}-url`},flex:!0,get"aria-label"(){return H(e)},onkeydown:e=>{h(e)},get value(){return H(l)},set value(e){F(l,e,!0)}})}D(i);var d=z(i,2),f=e=>{var t=oae(),r=I(t),i=R(r,!0),a=z(r,2);{let e=N(()=>Z(`_sui.text_editor.text`));fm(a,{dir:`auto`,get id(){return`${n}-text`},flex:!0,get"aria-label"(){return H(e)},onkeydown:e=>{h(e)},get value(){return H(u)},set value(e){F(u,e,!0)}})}D(t),V(e=>{Y(r,`for`,`${n}-text`),K(i,e)},[()=>Z(`_sui.text_editor.text`)]),G(e,t)};q(d,e=>{H(c)||e(f)}),V(e=>{Y(a,`for`,`${n}-url`),K(o,e)},[()=>Z(`_sui.text_editor.url`)]),G(e,r)},$$slots:{footerExtra:!0,default:!0}})}G(e,v),k()}function uae(e,t){O(t,!0);let n=zi(`editorStore`);{let r=e=>{Rl(e,{name:`arrow_drop_down`,class:`small-arrow`})},i=e=>{xm(e,{children:(e,r)=>{var i=W();Cc(L(i),17,()=>t.components,({id:e,label:t,icon:n,createNode:r})=>e,(e,t)=>{let r=()=>H(t).label,i=()=>H(t).icon,a=()=>H(t).createNode;Sm(e,{get label(){return r()},onclick:()=>{n.editor?.update(()=>{fb([a()(),mx()])})},startIcon:e=>{var t=W(),n=L(t),r=e=>{Rl(e,{get name(){return i()}})};q(n,e=>{i()&&e(r)}),G(e,t)},$$slots:{startIcon:!0}})}),G(e,i)},$$slots:{default:!0}})},a=N(()=>!n.useRichText),o=N(()=>Z(`_sui.insert`));Ip(e,{get disabled(){return H(a)},get label(){return H(o)},endIcon:r,popup:i,$$slots:{endIcon:!0,popup:!0}})}k()}function dae(e,t){O(t,!0);let n=zi(`editorStore`),r=N(()=>n.selection.blockType===t.type),i=async()=>{if(!n.editor)return;await Oj(n.editor);let[,e]=t.type.match(/^heading-(\d)$/)??[];e&&n.editor.update(()=>{Gw(ib(),()=>ek(`h${e}`))}),t.type===`paragraph`&&n.editor.update(()=>{Gw(ib(),()=>mx())}),t.type===`bulleted-list`&&n.editor.dispatchCommand(wO,void 0),t.type===`numbered-list`&&n.editor.dispatchCommand(TO,void 0),t.type===`blockquote`&&n.editor.update(()=>{Gw(ib(),()=>YO())}),t.type===`code-block`&&n.editor.update(()=>{Gw(ib(),()=>lD())})};var a=W();_c(L(a),()=>H(r),e=>{{let n=e=>{Rl(e,{get name(){return zA[t.type].icon}})},a=N(()=>Z(`_sui.text_editor.${zA[t.type].labelKey}`));Cm(e,{get label(){return H(a)},get checked(){return H(r)},onclick:()=>{H(r)||i()},startIcon:n,$$slots:{startIcon:!0}})}}),G(e,a),k()}var Lj=U(` `,1),fae=U(` `,1),pae=U(` `,1);function mae(e,t){O(t,!0);let n=X(t,`disabled`,3,!1),r=X(t,`readonly`,3,!1),i=zi(`editorStore`),a=N(()=>i.config.components.filter(({trigger:e=`menuitem`})=>e===`button`)),o=N(()=>i.config.components.filter(({trigger:e=`menuitem`})=>e===`menuitem`)),s=N(()=>Ij([`paragraph`,...i.config.enabledButtons.filter(e=>HA.includes(e))])),c=N(()=>Ij(i.config.enabledButtons.filter(e=>VA.includes(e))));{let t=N(()=>n()||r()),l=N(()=>Z(`_sui.text_editor.text_editor`));Nj(e,{get disabled(){return H(t)},get"aria-label"(){return H(l)},children:(e,t)=>{var n=pae(),r=L(n),l=e=>{{let t=e=>{{let t=N(()=>zA[i.selection.blockType??``]?.icon??`format_paragraph`);Rl(e,{get name(){return H(t)}})}},n=e=>{{let t=N(()=>Z(`_sui.text_editor.text_style_options`));xm(e,{get"aria-label"(){return H(t)},children:(e,t)=>{var n=W();Cc(L(n),16,()=>H(s),e=>e,(e,t)=>{dae(e,{get type(){return t}})}),G(e,n)},$$slots:{default:!0}})}},r=N(()=>!i.useRichText),a=N(()=>Z(`_sui.text_editor.show_text_style_options`));Ip(e,{get disabled(){return H(r)},get"aria-label"(){return H(a)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},startIcon:t,popup:n,$$slots:{startIcon:!0,popup:!0}})}};q(r,e=>{H(s).length>1&&e(l)});var u=z(r,2),d=e=>{var t=Lj(),n=L(t);Hp(n,{orientation:`vertical`});var r=z(n,2);{let e=N(()=>!i.useRichText);jj(r,{get disabled(){return H(e)}})}G(e,t)},f=e=>{var t=Lj(),n=L(t),r=e=>{var t=Lj(),n=L(t);Hp(n,{orientation:`vertical`}),dp(z(n,2),{children:(e,t)=>{var n=W();Cc(L(n),16,()=>H(c),e=>e,(e,t)=>{var n=W(),r=L(n),i=e=>{lae(e,{})},a=e=>{iae(e,{get type(){return t}})};q(r,e=>{t===`link`?e(i):e(a,-1)}),G(e,n)}),G(e,n)},$$slots:{default:!0}}),G(e,t)};q(n,e=>{H(c).length&&e(r)});var s=z(n,2),l=e=>{var t=fae(),n=L(t);Hp(n,{orientation:`vertical`});var r=z(n,2);Cc(r,17,()=>H(a),e=>e.id,(e,t)=>{aae(e,{get component(){return H(t)}})});var i=z(r,2),s=e=>{uae(e,{get components(){return H(o)}})};q(i,e=>{H(o).length&&e(s)}),G(e,t)};q(s,e=>{i.config.components.length&&e(l)}),G(e,t)};q(u,e=>{i.selection.blockType===`code-block`?e(d):e(f,-1)});var p=z(u,2);Wp(p,{flex:!0});var m=z(p,2),h=e=>{{let t=e=>{Rl(e,{name:`markdown`})},n=N(()=>!i.useRichText),r=N(()=>Z(`_sui.text_editor.edit_in_markdown`));$f(e,{iconic:!0,get disabled(){return i.hasConverterError},get pressed(){return H(n)},get"aria-label"(){return H(r)},onclick:()=>{i.useRichText=!i.useRichText,i.useRichText&&i.convertMarkdown()},startIcon:t,$$slots:{startIcon:!0}})}};q(m,e=>{i.config.modes.length>1&&e(h)}),G(e,n)},$$slots:{default:!0}})}k()}var hae=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`modes`,`buttons`,`components`,`useMarkdownShortcuts`,`useEmojiAutocomplete`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),gae=U(`
    `,1),_ae={hash:`svelte-1teqfht`,code:`.text-editor.svelte-1teqfht {margin:var(--sui-focus-ring-width);border-radius:var(--sui-textbox-border-radius);width:calc(100% - var(--sui-focus-ring-width) * 2);transition:all 200ms;}.text-editor.svelte-1teqfht:focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);}.text-editor.flex.svelte-1teqfht:not([hidden]) {display:block;}.text-editor.svelte-1teqfht .sui.text-area {margin:0 !important;width:100% !important;min-width:auto;}.text-editor.svelte-1teqfht .sui.text-area textarea {border-start-start-radius:0 !important;border-start-end-radius:0 !important;border-end-start-radius:var(--sui-textbox-border-radius) !important;border-end-end-radius:var(--sui-textbox-border-radius) !important;}`};function vae(e,t){O(t,!0),J(e,_ae);let n=X(t,`value`,15,``),r=X(t,`flex`,3,!1),i=X(t,`dir`,3,void 0),a=X(t,`modes`,19,()=>[`rich-text`,`plain-text`]),o=X(t,`buttons`,19,()=>[...VA,...HA]),s=X(t,`components`,19,()=>[]),c=X(t,`useMarkdownShortcuts`,3,!0),l=X(t,`useEmojiAutocomplete`,3,!0),u=X(t,`hidden`,3,!1),d=X(t,`disabled`,3,!1),f=X(t,`readonly`,3,!1),p=X(t,`required`,3,!1),m=X(t,`invalid`,3,!1),h=Al(t,hae),g=Aj();g.config={...g.config,modes:a(),enabledButtons:o(),components:s(),useMarkdownShortcuts:c(),useEmojiAutocomplete:l()},Bi(`editorStore`,g),B(()=>{if(!g.initialized)return;let e=n();Ds(()=>{g.inputValue=e})}),B(()=>{if(!g.initialized)return;let e=g.inputValue;Ds(()=>{n()!==e&&n(e)})});var _=gae(),v=L(_);bl(v,()=>({...h,role:`none`,class:`sui text-editor`,hidden:u(),[ul]:{flex:r()}}),void 0,void 0,void 0,`svelte-1teqfht`);var y=I(v);mae(y,{get disabled(){return d()},get readonly(){return f()}});var b=z(y,2);{let e=N(()=>!g.useRichText||u());kj(b,{get hidden(){return H(e)},get disabled(){return d()},get readonly(){return f()},get required(){return p()},get invalid(){return m()}})}var x=z(b,2);{let e=N(()=>g.useRichText||u());Pj(x,{autoResize:!0,get useEmojiAutocomplete(){return l()},get flex(){return r()},get dir(){return i()},get hidden(){return H(e)},get disabled(){return d()},get readonly(){return f()},get required(){return p()},get invalid(){return m()},get value(){return g.inputValue},set value(e){g.inputValue=e}})}var S=z(x,2),C=e=>{rae(e,{})};q(S,e=>{g.config.useEmojiAutocomplete&&!d()&&!f()&&e(C)}),D(v);var w=z(v,2),T=e=>{Nh(e,{get show(){return g.showConverterError},set show(e){g.showConverterError=e},children:(e,t)=>{Hl(e,{status:`error`,children:(e,t)=>{mi();var n=ec();V(e=>K(n,e),[()=>Z(`_sui.text_editor.converter_error`)]),G(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};q(w,e=>{g.showConverterError&&e(T)}),G(e,_),k()}var yae=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`invalid`,`flex`,`min`,`max`,`step`,`class`,`hidden`,`disabled`,`readonly`,`required`,`children`,`increaseIcon`,`decreaseIcon`,`onChange`]),bae=U(`
    `),xae={hash:`svelte-1g9lhq9`,code:`.number-input.svelte-1g9lhq9 {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.number-input.flex.svelte-1g9lhq9:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.number-input.svelte-1g9lhq9 :not(:first-child) input {border-start-start-radius:0;border-end-start-radius:0;}.number-input.svelte-1g9lhq9 :not(:last-child) input {border-start-end-radius:0;border-end-end-radius:0;}.number-input.svelte-1g9lhq9 :not(.disabled) button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.number-input.svelte-1g9lhq9 :not(.disabled) button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.number-input.svelte-1g9lhq9 .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.buttons.svelte-1g9lhq9 {display:flex;flex-direction:column;width:24px;height:var(--sui-textbox-height);}.buttons.svelte-1g9lhq9 button {flex:none;margin:0 !important;border-width:1px;border-color:var(--sui-textbox-border-color);width:100%;height:50%;}.buttons.svelte-1g9lhq9 button:first-of-type {border-block-start-width:1px;border-block-end-width:0;border-inline-end-width:0;border-inline-start-width:1px;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;}.buttons.svelte-1g9lhq9 button:last-of-type {border-block-start-width:0;border-block-end-width:1px;border-inline-end-width:0;border-inline-start-width:1px;border-start-start-radius:0;border-start-end-radius:0;border-end-end-radius:0;}.buttons.svelte-1g9lhq9 button .icon {font-size:20px;}`};function Sae(e,t){let n=tc();O(t,!0),J(e,xae);let r=X(t,`value`,15),i=X(t,`invalid`,15,!1),a=X(t,`flex`,3,!1),o=X(t,`min`,3,void 0),s=X(t,`max`,3,void 0),c=X(t,`step`,3,1),l=X(t,`hidden`,3,!1),u=X(t,`disabled`,3,!1),d=X(t,`readonly`,3,!1),f=X(t,`required`,3,!1),p=Al(t,yae),m=P(!1),h=P(``),g=N(()=>String(c()).split(`.`)[1]?.length||0),_=N(()=>typeof o()==`number`&&Number(H(h)||0)<=o()),v=N(()=>typeof s()==`number`&&Number(H(h)||0)>=s());B(()=>{let e=String(r()??``);Ds(()=>{H(h)!==e&&F(h,e,!0)})}),B(()=>{let e=H(h).trim()?Number(H(h)):NaN;r(Number.isNaN(e)?void 0:e)}),B(()=>{H(m)&&i(f()&&(r()===void 0||H(h)===``)||H(h)!==void 0&&H(h)!==``&&(Number.isNaN(Number(H(h)))||typeof o()==`number`&&Number(H(h)||0)s()))});let y=()=>{H(_)||Number.isNaN(Number(H(h)))||F(h,Number(Number(H(h)||0)-c()).toFixed(H(g)),!0)},b=()=>{H(v)||Number.isNaN(Number(H(h)))||F(h,Number(Number(H(h)||0)+c()).toFixed(H(g)),!0)};var x=bae();let S;var C=I(x),w=I(C);{let e=e=>{var n=W(),r=L(n),i=e=>{var n=W();Ac(L(n),()=>t.increaseIcon),G(e,n)},a=e=>{Rl(e,{name:`expand_less`})};q(r,e=>{t.increaseIcon?e(i):e(a,-1)}),G(e,n)},i=N(()=>u()||d()||Number.isNaN(Number(r()))||H(v)),a=N(()=>Z(`_sui.number_input.increase`));$f(w,{iconic:!0,get disabled(){return H(i)},get"aria-label"(){return H(a)},get"aria-controls"(){return n},onclick:()=>{b()},startIcon:e,$$slots:{startIcon:!0}})}var T=z(w,2);{let e=e=>{var n=W(),r=L(n),i=e=>{var n=W();Ac(L(n),()=>t.decreaseIcon),G(e,n)},a=e=>{Rl(e,{name:`expand_more`})};q(r,e=>{t.decreaseIcon?e(i):e(a,-1)}),G(e,n)},i=N(()=>u()||d()||Number.isNaN(Number(r()))||H(_)),a=N(()=>Z(`_sui.number_input.decrease`));$f(T,{iconic:!0,get disabled(){return H(i)},get"aria-label"(){return H(a)},get"aria-controls"(){return n},onclick:()=>{y()},startIcon:e,$$slots:{startIcon:!0}})}D(C);var E=z(C,2);{let e=N(()=>Number(r()||0)),c=N(()=>H(g)>0?`decimal`:`numeric`);fm(E,Ml({dir:`ltr`},()=>p,{role:`spinbutton`,get id(){return n},spellcheck:`false`,get flex(){return a()},get hidden(){return l()},get disabled(){return u()},get readonly(){return d()},get required(){return f()},get invalid(){return i()},get"aria-valuenow"(){return H(e)},get"aria-valuemin"(){return o()},get"aria-valuemax"(){return s()},get inputmode(){return H(c)},onkeydown:e=>{let{key:t,ctrlKey:n,metaKey:r,altKey:i,shiftKey:a}=e,o=a||i||n||r;t===`ArrowDown`&&!o&&(e.preventDefault(),y()),t===`ArrowUp`&&!o&&(e.preventDefault(),b()),H(m)||F(m,!0)},oninput:()=>{H(m)||F(m,!0)},get onChange(){return t.onChange},get value(){return H(h)},set value(e){F(h,e,!0)}}))}D(x),V(()=>{S=el(x,1,`sui number-input ${t.class??``}`,`svelte-1g9lhq9`,S,{flex:a(),disabled:u(),readonly:d()}),Y(x,`hidden`,l())}),G(e,x),k()}var Cae=new Set([`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`monospace`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`visibilityIcon`]),wae=U(`
    `),Tae={hash:`svelte-pcy1l8`,code:`.secret-input.svelte-pcy1l8 {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.secret-input.flex.svelte-pcy1l8:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.secret-input.show.svelte-pcy1l8 input {-webkit-text-security:none;}.secret-input.svelte-pcy1l8 .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.secret-input.svelte-pcy1l8 input {border-start-end-radius:0;border-end-end-radius:0;-webkit-text-security:disc;}.secret-input.svelte-pcy1l8 button {flex:none;margin-block:0;margin-inline-start:-1px;margin-inline-end:0;border-width:1px;border-color:var(--sui-textbox-border-color);width:var(--sui-textbox-height);aspect-ratio:1/1;}.secret-input.svelte-pcy1l8 button:last-child {border-start-start-radius:0;border-start-end-radius:4px;border-end-end-radius:4px;border-end-start-radius:0;}.secret-input.svelte-pcy1l8 button .icon {font-size:var(--sui-font-size-xx-large);}`};function Rj(e,t){let n=tc();O(t,!0),J(e,Tae);let r=X(t,`value`,15),i=X(t,`flex`,3,!1),a=X(t,`monospace`,3,!0),o=X(t,`hidden`,3,!1),s=X(t,`disabled`,3,!1),c=X(t,`readonly`,3,!1),l=X(t,`required`,3,!1),u=X(t,`invalid`,3,!1),d=Al(t,Cae),f=P(void 0),p=P(!1);var m=wae();let h;var g=I(m);fm(g,Ml({dir:`ltr`},()=>d,{get id(){return n},spellcheck:`false`,get flex(){return i()},get monospace(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()},get element(){return H(f)},set element(e){F(f,e,!0)},get value(){return r()},set value(e){r(e)}}));var _=z(g,2);{let e=e=>{var n=W(),r=L(n),i=e=>{var n=W();Ac(L(n),()=>t.visibilityIcon),G(e,n)},a=e=>{{let t=N(()=>H(p)?`visibility_off`:`visibility`);Rl(e,{get name(){return H(t)}})}};q(r,e=>{t.visibilityIcon?e(i):e(a,-1)}),G(e,n)},r=N(()=>s()||c()),i=N(()=>Z(H(p)?`_sui.secret_input.hide_secret`:`_sui.secret_input.show_secret`));$f(_,{iconic:!0,get disabled(){return H(r)},get pressed(){return H(p)},get"aria-label"(){return H(i)},get"aria-controls"(){return n},onclick:()=>{F(p,!H(p))},startIcon:e,$$slots:{startIcon:!0}})}D(m),V(()=>{h=el(m,1,`sui secret-input ${t.class??``}`,`svelte-pcy1l8`,h,{flex:i(),disabled:s(),readonly:c(),show:H(p)}),Y(m,`hidden`,o())}),G(e,m),k()}var Eae=U(``),Dae={hash:`svelte-1b32xse`,code:` + /* https://fontsource.org/fonts/source-sans-3/cdn */ + @font-face {font-family:'Source Sans 3';font-style:normal;font-display:swap;font-weight:200 900;src:url(https://cdn.jsdelivr.net/fontsource/fonts/source-sans-3:vf@5.3.0/latin-wght-normal.woff2) + format('woff2-variations');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, + U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;size-adjust:110%; + } + + /* https://fontsource.org/fonts/noto-mono/cdn */ + @font-face {font-family:'Noto Mono';font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/noto-mono@5.3.0/latin-400-normal.woff2) + format('woff2'); + } + + /* https://fontsource.org/fonts/material-symbols-outlined/cdn */ + @font-face {font-family:'Material Symbols Outlined';font-style:normal;font-display:block;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/material-symbols-outlined:vf@5.3.1/latin-wght-normal.woff2) + format('woff2-variations');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, + U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + }.material-symbols-outlined { + /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */font-family:'Material Symbols Outlined';font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;overflow-wrap:normal;direction:ltr;-moz-font-feature-settings:'liga';font-feature-settings:'liga';}`};function Oae(e){J(e,Dae),G(e,Eae())}var kae=new Set([`$$slots`,`$$events`,`$$legacy`,`orientation`,`children`]),Aae=U(` `,1),jae=U(``),Mae=U(`
    `,1),Nae={hash:`svelte-1dxpwyj`,code:`:root, +:host {--sui-base-hue: 210;--sui-highlight-foreground-color: hsl(var(--sui-foreground-color-1-hsl));--sui-primary-foreground-color: hsl(var(--sui-foreground-color-2-hsl));--sui-secondary-foreground-color: hsl(var(--sui-foreground-color-3-hsl));--sui-tertiary-foreground-color: hsl(var(--sui-foreground-color-4-hsl));--sui-disabled-foreground-color: hsl(var(--sui-foreground-color-5-hsl));--sui-error-foreground-color: hsl( + var(--sui-error-color-hue) var(--sui-alert-foreground-color-saturation) + var(--sui-alert-foreground-color-lightness) + );--sui-warning-foreground-color: hsl( + var(--sui-warning-color-hue) var(--sui-alert-foreground-color-saturation) + var(--sui-alert-foreground-color-lightness) + );--sui-info-foreground-color: hsl( + var(--sui-info-color-hue) var(--sui-alert-foreground-color-saturation) + var(--sui-alert-foreground-color-lightness) + );--sui-success-foreground-color: hsl( + var(--sui-success-color-hue) var(--sui-alert-foreground-color-saturation) + var(--sui-alert-foreground-color-lightness) + );--sui-hover-background-color: hsl(var(--sui-background-color-5-hsl) / 35%);--sui-selected-background-color: hsl(var(--sui-background-color-5-hsl) / 75%);--sui-active-background-color: hsl(var(--sui-background-color-5-hsl) / 100%);--sui-content-background-color: hsl(var(--sui-background-color-1-hsl));--sui-code-background-color: hsl(var(--sui-background-color-3-hsl));--sui-primary-background-color: hsl(var(--sui-background-color-2-hsl));--sui-primary-background-color-translucent: hsl(var(--sui-background-color-2-hsl) / 80%);--sui-secondary-background-color: hsl(var(--sui-background-color-3-hsl));--sui-secondary-background-color-translucent: hsl(var(--sui-background-color-3-hsl) / 80%);--sui-tertiary-background-color: hsl(var(--sui-background-color-4-hsl));--sui-tertiary-background-color-translucent: hsl(var(--sui-background-color-4-hsl) / 80%);--sui-disabled-background-color: hsl(var(--sui-background-color-4-hsl));--sui-error-background-color: hsl( + var(--sui-error-color-hue) var(--sui-alert-background-color-saturation) + var(--sui-alert-background-color-lightness) + );--sui-warning-background-color: hsl( + var(--sui-warning-color-hue) var(--sui-alert-background-color-saturation) + var(--sui-alert-background-color-lightness) + );--sui-info-background-color: hsl( + var(--sui-info-color-hue) var(--sui-alert-background-color-saturation) + var(--sui-alert-background-color-lightness) + );--sui-success-background-color: hsl( + var(--sui-success-color-hue) var(--sui-alert-background-color-saturation) + var(--sui-alert-background-color-lightness) + );--sui-focus-ring-width: 2px;--sui-focus-ring-color: var(--sui-primary-accent-color-translucent);--sui-primary-border-color: hsl(var(--sui-border-color-2-hsl));--sui-secondary-border-color: hsl(var(--sui-border-color-3-hsl));--sui-error-border-color: hsl( + var(--sui-error-color-hue) var(--sui-alert-border-color-saturation) + var(--sui-alert-border-color-lightness) + );--sui-warning-border-color: hsl( + var(--sui-warning-color-hue) var(--sui-alert-border-color-saturation) + var(--sui-alert-border-color-lightness) + );--sui-info-border-color: hsl( + var(--sui-info-color-hue) var(--sui-alert-border-color-saturation) + var(--sui-alert-border-color-lightness) + );--sui-success-border-color: hsl( + var(--sui-success-color-hue) var(--sui-alert-border-color-saturation) + var(--sui-alert-border-color-lightness) + );--sui-popup-shadow-color: hsl(var(--sui-shadow-color) / 40%);--sui-popup-backdrop-color: hsl(var(--sui-shadow-color) / 40%);--sui-font-family-default: "Source Sans 3", system-ui, sans-serif;--sui-font-size-xxx-large: 25px;--sui-font-size-xx-large: 21px;--sui-font-size-x-large: 19px;--sui-font-size-large: 17px;--sui-font-size-default: 15px;--sui-font-size-small: 13px;--sui-font-size-x-small: 11px;--sui-font-weight-normal: 400;--sui-font-weight-bold: 700;--sui-font-family-monospace: "Noto Sans Mono", ui-monospace, monospace;--sui-font-size-monospace: 0.9em;--sui-line-height-default: 1.2;--sui-line-height-compact: 1.4;--sui-line-height-comfortable: 1.6;--sui-word-spacing-normal: 1px;--sui-heading-margin: 0;--sui-heading-font-family: var(--sui-font-family-default);--sui-heading-font-weight: var(--sui-font-weight-bold);--sui-heading-line-height: var(--sui-line-height-default);--sui-paragraph-margin: 1.75em;--sui-control-small-border-width: 1px;--sui-control-small-border-radius: calc(var(--sui-control-small-height) / 8);--sui-control-small-padding: 0 calc((var(--sui-control-small-height) / 5));--sui-control-small-height: 24px;--sui-control-medium-border-width: 1px;--sui-control-medium-border-radius: calc(var(--sui-control-medium-height) / 8);--sui-control-medium-padding: 0 calc((var(--sui-control-medium-height) / 4));--sui-control-medium-height: 32px;--sui-control-large-border-width: 1px;--sui-control-large-border-radius: calc(var(--sui-control-large-height) / 8);--sui-control-large-padding: 0 calc((var(--sui-control-large-height) / 3));--sui-control-large-height: 40px;--sui-control-border-color: hsl(var(--sui-border-color-2-hsl));--sui-control-foreground-color: var(--sui-primary-foreground-color);--sui-control-background-color: hsl(var(--sui-background-color-4-hsl));--sui-control-font-family: var(--sui-font-family-default);--sui-control-font-size: var(--sui-font-size-default);--sui-control-line-height: var(--sui-line-height-compact);--sui-button-small-border-radius: var(--sui-control-small-border-radius);--sui-button-small-padding: var(--sui-control-small-padding);--sui-button-small-height: var(--sui-control-small-height);--sui-button-medium-border-radius: var(--sui-control-medium-border-radius);--sui-button-medium-padding: var(--sui-control-medium-padding);--sui-button-medium-height: var(--sui-control-medium-height);--sui-button-large-border-radius: var(--sui-control-large-border-radius);--sui-button-large-padding: var(--sui-control-large-padding);--sui-button-large-height: var(--sui-control-large-height);--sui-button-border-color: var(--sui-control-border-color);--sui-button-background-color: var(--sui-control-background-color);--sui-checkbox-border-radius: var(--sui-control-medium-border-radius);--sui-checkbox-height: 20px;--sui-checkbox-border-color: hsl(var(--sui-border-color-1-hsl));--sui-checkbox-background-color: var(--sui-control-background-color);--sui-option-border-radius: var(--sui-control-medium-border-radius);--sui-option-padding: calc((var(--sui-control-medium-height) / 6)) + calc((var(--sui-control-medium-height) / 5));--sui-option-height: var(--sui-control-medium-height);--sui-listbox-border-radius: var(--sui-control-medium-border-radius);--sui-listbox-border-color: var(--sui-control-border-color);--sui-listbox-foreground-color: var(--sui-control-foreground-color);--sui-listbox-background-color: hsl(var(--sui-background-color-1-hsl));--sui-tree-border-radius: var(--sui-control-medium-border-radius);--sui-tree-border-color: var(--sui-control-border-color);--sui-tree-foreground-color: var(--sui-control-foreground-color);--sui-tree-background-color: hsl(var(--sui-background-color-1-hsl));--sui-tree-item-border-radius: var(--sui-control-medium-border-radius);--sui-tree-item-height: var(--sui-control-medium-height);--sui-tree-item-indent: 16px;--sui-textbox-border-radius: var(--sui-control-medium-border-radius);--sui-textbox-height: var(--sui-control-medium-height);--sui-textbox-border-color: var(--sui-control-border-color);--sui-textbox-foreground-color: var(--sui-control-foreground-color);--sui-textbox-background-color: hsl(var(--sui-background-color-1-hsl));--sui-textbox-font-family: var(--sui-font-family-default);--sui-textbox-font-size: var(--sui-font-size-default);--sui-textbox-singleline-padding: 0 8px;--sui-textbox-singleline-min-width: 240px;--sui-textbox-singleline-line-height: var(--sui-line-height-compact);--sui-textbox-multiline-padding: 16px;--sui-textbox-multiline-min-width: 480px;--sui-textbox-multiline-line-height: var(--sui-line-height-comfortable);--sui-tab-height: var(--sui-control-medium-height);--sui-tab-small-height: var(--sui-control-small-height);--sui-tab-medium-height: var(--sui-control-medium-height);--sui-tab-large-height: var(--sui-control-large-height);--sui-primary-toolbar-size: 56px;--sui-secondary-toolbar-size: 48px;--sui-bottom-navigation-height: var(--sui-primary-toolbar-size);--sui-primary-row-height: 56px;--sui-secondary-row-height: 40px;} +@media (pointer: coarse) {:root, + :host {--sui-control-small-height: 32px;--sui-control-medium-height: 40px;--sui-control-large-height: 48px;--sui-checkbox-height: 24px;--sui-secondary-row-height: 48px;} +} +@media (prefers-reduced-transparency) {:root, + :host {--sui-primary-background-color-translucent: hsl(var(--sui-background-color-2-hsl));--sui-secondary-background-color-translucent: hsl(var(--sui-background-color-3-hsl));--sui-tertiary-background-color-translucent: hsl(var(--sui-background-color-4-hsl));} +}:root[data-theme=light], +:host[data-theme=light] {color-scheme:light;--sui-foreground-color-1-hsl: var(--sui-base-hue) 5% 5%;--sui-foreground-color-2-hsl: var(--sui-base-hue) 5% 25%;--sui-foreground-color-3-hsl: var(--sui-base-hue) 5% 35%;--sui-foreground-color-4-hsl: var(--sui-base-hue) 5% 45%;--sui-foreground-color-5-hsl: var(--sui-base-hue) 5% 65%;--sui-background-color-1-hsl: var(--sui-base-hue) 5% 100%;--sui-background-color-2-hsl: var(--sui-base-hue) 5% 98%;--sui-background-color-3-hsl: var(--sui-base-hue) 5% 95%;--sui-background-color-4-hsl: var(--sui-base-hue) 5% 92%;--sui-background-color-5-hsl: var(--sui-base-hue) 5% 84%;--sui-border-color-1-hsl: var(--sui-base-hue) 5% 60%;--sui-border-color-2-hsl: var(--sui-base-hue) 5% 86%;--sui-border-color-3-hsl: var(--sui-base-hue) 5% 90%;--sui-shadow-color: var(--sui-base-hue) 10% 0%;--sui-primary-accent-color-text: hsl(var(--sui-base-hue) 80% 40%);--sui-primary-accent-color-light: hsl(var(--sui-base-hue) 80% 45%);--sui-primary-accent-color: hsl(var(--sui-base-hue) 80% 40%);--sui-primary-accent-color-dark: hsl(var(--sui-base-hue) 80% 35%);--sui-primary-accent-color-inverted: hsl(var(--sui-base-hue) 10% 100%);--sui-primary-accent-color-translucent: hsl(var(--sui-base-hue) 80% 50% / 60%);--sui-primary-accent-color-translucent-light: hsl(var(--sui-base-hue) 80% 50% / 40%);--sui-error-color-hue: 0;--sui-warning-color-hue: 40;--sui-info-color-hue: 210;--sui-success-color-hue: 100;--sui-alert-foreground-color-saturation: 85%;--sui-alert-foreground-color-lightness: 25%;--sui-alert-background-color-saturation: 65%;--sui-alert-background-color-lightness: 90%;--sui-alert-border-color-saturation: 48%;--sui-alert-border-color-lightness: 68%;}:root[data-theme=dark], +:host[data-theme=dark] {color-scheme:dark;--sui-foreground-color-1-hsl: var(--sui-base-hue) 10% 95%;--sui-foreground-color-2-hsl: var(--sui-base-hue) 10% 75%;--sui-foreground-color-3-hsl: var(--sui-base-hue) 10% 65%;--sui-foreground-color-4-hsl: var(--sui-base-hue) 10% 55%;--sui-foreground-color-5-hsl: var(--sui-base-hue) 10% 35%;--sui-background-color-1-hsl: var(--sui-base-hue) 10% 8%;--sui-background-color-2-hsl: var(--sui-base-hue) 10% 10%;--sui-background-color-3-hsl: var(--sui-base-hue) 10% 13%;--sui-background-color-4-hsl: var(--sui-base-hue) 10% 16%;--sui-background-color-5-hsl: var(--sui-base-hue) 10% 26%;--sui-border-color-1-hsl: var(--sui-base-hue) 10% 40%;--sui-border-color-2-hsl: var(--sui-base-hue) 10% 24%;--sui-border-color-3-hsl: var(--sui-base-hue) 10% 20%;--sui-shadow-color: var(--sui-base-hue) 10% 0%;--sui-primary-accent-color-text: hsl(var(--sui-base-hue) 100% 60%);--sui-primary-accent-color-light: hsl(var(--sui-base-hue) 100% 45%);--sui-primary-accent-color: hsl(var(--sui-base-hue) 100% 40%);--sui-primary-accent-color-dark: hsl(var(--sui-base-hue) 100% 35%);--sui-primary-accent-color-inverted: hsl(var(--sui-base-hue) 10% 100%);--sui-primary-accent-color-translucent: hsl(var(--sui-base-hue) 80% 50% / 60%);--sui-primary-accent-color-translucent-light: hsl(var(--sui-base-hue) 80% 50% / 40%);--sui-error-color-hue: 0;--sui-warning-color-hue: 40;--sui-info-color-hue: 210;--sui-success-color-hue: 100;--sui-alert-foreground-color-saturation: 85%;--sui-alert-foreground-color-lightness: 75%;--sui-alert-background-color-saturation: 40%;--sui-alert-background-color-lightness: 10%;--sui-alert-border-color-saturation: 48%;--sui-alert-border-color-lightness: 38%;} +@media (prefers-color-scheme: light) {:root:not([data-theme]), + :host:not([data-theme]) {color-scheme:light;--sui-foreground-color-1-hsl: var(--sui-base-hue) 5% 5%;--sui-foreground-color-2-hsl: var(--sui-base-hue) 5% 25%;--sui-foreground-color-3-hsl: var(--sui-base-hue) 5% 35%;--sui-foreground-color-4-hsl: var(--sui-base-hue) 5% 45%;--sui-foreground-color-5-hsl: var(--sui-base-hue) 5% 65%;--sui-background-color-1-hsl: var(--sui-base-hue) 5% 100%;--sui-background-color-2-hsl: var(--sui-base-hue) 5% 98%;--sui-background-color-3-hsl: var(--sui-base-hue) 5% 95%;--sui-background-color-4-hsl: var(--sui-base-hue) 5% 92%;--sui-background-color-5-hsl: var(--sui-base-hue) 5% 84%;--sui-border-color-1-hsl: var(--sui-base-hue) 5% 60%;--sui-border-color-2-hsl: var(--sui-base-hue) 5% 86%;--sui-border-color-3-hsl: var(--sui-base-hue) 5% 90%;--sui-shadow-color: var(--sui-base-hue) 10% 0%;--sui-primary-accent-color-text: hsl(var(--sui-base-hue) 80% 40%);--sui-primary-accent-color-light: hsl(var(--sui-base-hue) 80% 45%);--sui-primary-accent-color: hsl(var(--sui-base-hue) 80% 40%);--sui-primary-accent-color-dark: hsl(var(--sui-base-hue) 80% 35%);--sui-primary-accent-color-inverted: hsl(var(--sui-base-hue) 10% 100%);--sui-primary-accent-color-translucent: hsl(var(--sui-base-hue) 80% 50% / 60%);--sui-primary-accent-color-translucent-light: hsl(var(--sui-base-hue) 80% 50% / 40%);--sui-error-color-hue: 0;--sui-warning-color-hue: 40;--sui-info-color-hue: 210;--sui-success-color-hue: 100;--sui-alert-foreground-color-saturation: 85%;--sui-alert-foreground-color-lightness: 25%;--sui-alert-background-color-saturation: 65%;--sui-alert-background-color-lightness: 90%;--sui-alert-border-color-saturation: 48%;--sui-alert-border-color-lightness: 68%;} +} +@media (prefers-color-scheme: dark) {:root:not([data-theme]), + :host:not([data-theme]) {color-scheme:dark;--sui-foreground-color-1-hsl: var(--sui-base-hue) 10% 95%;--sui-foreground-color-2-hsl: var(--sui-base-hue) 10% 75%;--sui-foreground-color-3-hsl: var(--sui-base-hue) 10% 65%;--sui-foreground-color-4-hsl: var(--sui-base-hue) 10% 55%;--sui-foreground-color-5-hsl: var(--sui-base-hue) 10% 35%;--sui-background-color-1-hsl: var(--sui-base-hue) 10% 8%;--sui-background-color-2-hsl: var(--sui-base-hue) 10% 10%;--sui-background-color-3-hsl: var(--sui-base-hue) 10% 13%;--sui-background-color-4-hsl: var(--sui-base-hue) 10% 16%;--sui-background-color-5-hsl: var(--sui-base-hue) 10% 26%;--sui-border-color-1-hsl: var(--sui-base-hue) 10% 40%;--sui-border-color-2-hsl: var(--sui-base-hue) 10% 24%;--sui-border-color-3-hsl: var(--sui-base-hue) 10% 20%;--sui-shadow-color: var(--sui-base-hue) 10% 0%;--sui-primary-accent-color-text: hsl(var(--sui-base-hue) 100% 60%);--sui-primary-accent-color-light: hsl(var(--sui-base-hue) 100% 45%);--sui-primary-accent-color: hsl(var(--sui-base-hue) 100% 40%);--sui-primary-accent-color-dark: hsl(var(--sui-base-hue) 100% 35%);--sui-primary-accent-color-inverted: hsl(var(--sui-base-hue) 10% 100%);--sui-primary-accent-color-translucent: hsl(var(--sui-base-hue) 80% 50% / 60%);--sui-primary-accent-color-translucent-light: hsl(var(--sui-base-hue) 80% 50% / 40%);--sui-error-color-hue: 0;--sui-warning-color-hue: 40;--sui-info-color-hue: 210;--sui-success-color-hue: 100;--sui-alert-foreground-color-saturation: 85%;--sui-alert-foreground-color-lightness: 75%;--sui-alert-background-color-saturation: 40%;--sui-alert-background-color-lightness: 10%;--sui-alert-border-color-saturation: 48%;--sui-alert-border-color-lightness: 38%;} +}.material-symbols-outlined {font-variation-settings:"FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;}*, +::before, +::after {overflow-anchor:none;scroll-behavior:smooth;box-sizing:border-box;outline-offset:0px;outline-width:var(--sui-focus-ring-width) !important;outline-style:solid;outline-color:transparent;border-width:0;border-style:solid;vertical-align:top;font-size-adjust:inherit;} +@media (prefers-reduced-motion) {*, + ::before, + ::after {scroll-behavior:auto;transition-duration:1ms !important;} +}::selection {background-color:var(--sui-primary-accent-color-translucent-light);}* {-webkit-tap-highlight-color:transparent;}:focus {z-index:1;outline-width:0;}:focus-visible {outline-color:var(--sui-focus-ring-color);z-index:2;}h1 {margin:var(--sui-h1-margin, var(--sui-heading-margin));font-size:var(--sui-h1-font-size, 34px);font-family:var(--sui-h1-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h1-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h1-line-height, var(--sui-heading-line-height));}h2 {margin:var(--sui-h2-margin, var(--sui-heading-margin));font-size:var(--sui-h2-font-size, 30px);font-family:var(--sui-h2-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h2-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h2-line-height, var(--sui-heading-line-height));}h3 {margin:var(--sui-h3-margin, var(--sui-heading-margin));font-size:var(--sui-h3-font-size, 26px);font-family:var(--sui-h3-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h3-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h3-line-height, var(--sui-heading-line-height));}h4 {margin:var(--sui-h4-margin, var(--sui-heading-margin));font-size:var(--sui-h4-font-size, 22px);font-family:var(--sui-h4-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h4-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h4-line-height, var(--sui-heading-line-height));}h5 {margin:var(--sui-h5-margin, var(--sui-heading-margin));font-size:var(--sui-h5-font-size, 18px);font-family:var(--sui-h5-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h5-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h5-line-height, var(--sui-heading-line-height));}h6 {margin:var(--sui-h6-margin, var(--sui-heading-margin));font-size:var(--sui-h6-font-size, 14px);font-family:var(--sui-h6-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h6-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h6-line-height, var(--sui-heading-line-height));}strong {font-weight:var(--sui-font-weight-bold, bold);}a {color:var(--sui-primary-accent-color-text);text-decoration:none;text-underline-offset:2px;}a:is(:hover, :focus, :active) {text-decoration:underline;}:is(:root, :host)[data-underline-links=true].svelte-1dxpwyj a {text-decoration:underline;}:is(p, ul, ol, dl) {margin:var(--sui-paragraph-margin) 0;line-height:var(--sui-line-height-comfortable);}:is(ul, ol) {padding-inline:2em;}:is(code, pre) {border-radius:4px;background-color:var(--sui-code-background-color);font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);vertical-align:-0.05em;}pre {padding:8px;line-height:var(--sui-line-height-compact);-webkit-user-select:text;user-select:text;}code {padding:2px 4px;}table {border-collapse:collapse;}:is(th, td) {border:1px solid var(--sui-textbox-border-color);padding:8px;}blockquote {margin-inline:16px 0;border-inline-start:4px solid var(--sui-textbox-border-color);padding-inline-start:12px;}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;filter:grayscale(1) opacity(0.35);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) * {filter:grayscale(0) opacity(1);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]) * {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;}.font-loader.svelte-1dxpwyj {position:absolute;inset-inline-start:-99999px;font-family:var(--sui-font-family-default);}.app-shell.svelte-1dxpwyj {position:fixed;inset:0;overflow:hidden;width:100%;height:100%;color:var(--sui-primary-foreground-color);background-color:var(--sui-primary-background-color);font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);word-spacing:var(--sui-word-spacing-normal);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-user-select:none;user-select:none;touch-action:none;cursor:default;}.app-shell.horizontal.svelte-1dxpwyj {display:flex;flex-direction:row;overflow:hidden;}.app-shell.vertical.svelte-1dxpwyj {display:flex;flex-direction:column;overflow:hidden;}`};function Pae(e,t){O(t,!0),J(e,Nae);let n=X(t,`orientation`,3,`horizontal`),r=Al(t,kae),i=P(!1);Nl(()=>{let e=globalThis.matchMedia(`(prefers-color-scheme: dark)`),{dataset:t}=document.documentElement,n=()=>{t.autoTheming!==`false`&&(t.theme=e.matches?`dark`:`light`)};n(),e.addEventListener(`change`,n);let r=globalThis.setTimeout(()=>{F(i,!0)},1e3);return()=>{e.removeEventListener(`change`,n),globalThis.clearTimeout(r)}});var a=Mae();Wc(`1dxpwyj`,e=>{var t=Aae(),n=L(t);Oae(z(n,4),{}),V(e=>Y(n,`content`,e),[()=>[`width=device-width`,`initial-scale=1`,`maximum-scale=1`,`interactive-widget=resizes-content`].join(`, `)]),G(e,t)});var o=L(a),s=e=>{var t=jae();nl(t,``,{},{opacity:`0`}),G(e,t)};q(o,e=>{H(i)||e(s)});var c=z(o,2),l=e=>e.preventDefault(),u=e=>e.preventDefault(),d=e=>{if(document.documentElement.matches(`[data-env="dev"]`))return;let t=e.target;document.documentElement.matches(`[data-env="dev"]`)||t?.matches(`input, textarea`)&&`maxLength`in t||t?.closest(`[role="textbox"]`)?.contentEditable===`true`||e.preventDefault()};bl(c,()=>({...r,role:`none`,class:`sui app-shell ${n()??``}`,ondragover:l,ondrop:u,oncontextmenu:d}),void 0,void 0,void 0,`svelte-1dxpwyj`),Ac(I(c),()=>t.children??br),D(c),G(e,a),k()}var Fae=U(`
    `),Iae={hash:`svelte-gaolqk`,code:`.empty-state.svelte-gaolqk {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px;width:100%;height:100%;text-align:center;}`};function zj(e,t){J(e,Iae);let n=X(t,`children`,3,void 0);var r=Fae();Ac(I(r),()=>n()??br),D(r),G(e,r)}var Lae=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`ariaLabel`,`children`]),Rae=U(`
    `),zae={hash:`svelte-21zml2`,code:`.inner.svelte-21zml2 {display:contents;}`};function Bj(e,t){J(e,zae);let n=X(t,`hidden`,3,!1),r=X(t,`disabled`,3,!1),i=X(t,`ariaLabel`,3,void 0),a=Al(t,Lae);var o=Rae();bl(o,()=>({...a,role:`group`,class:`sui group ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-label":i()}),void 0,void 0,void 0,`svelte-21zml2`);var s=I(o);Ac(I(s),()=>t.children??br),D(s),D(o),V(()=>s.inert=r()),G(e,o)}var Bae=U(`
    `),Vae={hash:`svelte-mtvt5w`,code:`.placeholder.svelte-mtvt5w {height:64px;}`};function Vj(e,t){O(t,!0),J(e,Vae);let n=P(null),r=P(!1);B(()=>(H(n)&&(async()=>{await Ff(H(n)),F(r,!0)})(),()=>{H(n)&&jf(H(n))}));var i=W(),a=L(i),o=e=>{var n=W();Ac(L(n),()=>t.children),G(e,n)},s=e=>{var t=Bae();Ol(t,e=>F(n,e),()=>H(n)),G(e,t)};q(a,e=>{H(r)?e(o):e(s,-1)}),G(e,i),k()}var Hae={ok:`OK`,cancel:`Cancel`,close:`Close`,clear:`Clear`,insert:`Insert`,update:`Update`,remove:`Remove`,collapse:`Collapse`,expand:`Expand`,dismiss:`Dismiss`,emoji_suggestions:`Emoji Suggestions`,calendar:{year:`Year`,previous_decade:`Previous Decade`,next_decade:`Next Decade`,month:`Month`,previous_month:`Previous Month`,next_month:`Next Month`,today:`Today`},split_button:{x_options:`{$name} Options`,more_options:`More Options`},combobox:{select_an_option:`Select an option…`,filter_options:`Filter Options`,no_matching_options:`No matching options found`},number_input:{increase:`Increase`,decrease:`Decrease`},password_input:{show_password:`Show Password`,hide_password:`Hide Password`},secret_input:{show_secret:`Show Secret`,hide_secret:`Hide Secret`},select_tags:{selected_options:`Selected Options`,remove_x:`Remove {$name}`},text_editor:{text_editor:`Text Editor`,code_editor:`Code Editor`,text_style_options:`Text Style Options`,show_text_style_options:`Show Text Style Options`,paragraph:`Paragraph`,heading_1:`Heading 1`,heading_2:`Heading 2`,heading_3:`Heading 3`,heading_4:`Heading 4`,heading_5:`Heading 5`,heading_6:`Heading 6`,bulleted_list:`Bulleted List`,numbered_list:`Numbered List`,blockquote:`Block Quote`,code_block:`Code Block`,bold:`Bold`,italic:`Italic`,strikethrough:`Strikethrough`,code:`Code`,link:`Link`,insert_link:`Insert Link`,update_link:`Update Link`,text:`Text`,url:`URL`,edit_in_markdown:`Edit in Markdown`,converter_error:`Unable to enable rich text mode. Please use the plain text editor instead.`,language:`Language`,plain_text:`Plain Text`}};function Hj(e,t){var n=is,r=ts,i=e();let a=na(i,t=>{var a=i!==e(),o,s=ts,c=is;rs(r),as(n);try{o=jo(()=>{Fo(()=>{let n=e();a&&t(n)})})}finally{rs(s),as(c)}return a=!0,o});return t?{set:t,update:n=>t(n(e())),subscribe:a.subscribe}:{subscribe:a.subscribe}}var Uj=(e=``)=>RegExp(`\\bblob:${NA(globalThis.location.origin)}\\/${wf.source}\\b`,e),Wj=/(?:(.+?)\/)?(([^/]+?)(?:\.((?:tar\.)?[a-zA-Z0-9]+))?)$/,Gj=[`application/atom+xml`,`application/javascript`,`application/json`,`application/ld+json`,`application/rss+xml`,`application/xhtml+xml`,`application/xml`,`application/yaml`,`image/svg+xml`],Kj=e=>e.startsWith(`text/`)||Gj.includes(e),qj=e=>{let[,t,n,r,i]=e.match(Wj)??[];return{dirname:t,basename:n,filename:r,extension:i}},Jj=(e,t)=>{if(!t.length)return!0;let n=e.name.toLowerCase();return t.some(t=>{let r=t.toLowerCase();if(r.startsWith(`.`))return n.endsWith(r);let[i,a]=r.split(`/`);return a===`*`?e.type.split(`/`)[0]===i:e.type===r})},Yj=async({items:e},{accept:t}={})=>{let n=t?t.trim().split(/,\s*/):[],r=e=>new Promise(t=>{if(e.name.startsWith(`.`))t(null);else if(e.isFile)e.file(e=>{t(Jj(e,n)?e:null)},()=>{t(null)});else{let n=e.createReader(),i=[],a=()=>{n.readEntries(e=>{e.length?(i.push(...e),a()):t(Promise.all(i.map(r)))})};a()}});return(await Promise.all([...e].map(e=>{let t=e.webkitGetAsEntry();return t?r(t):null}))).flat(1/0).filter(Boolean).sort((e,t)=>e.name.localeCompare(t.name))},Xj=async e=>(await e.text()).replace(/\r\n?/g,` +`),Zj=async e=>{let t=typeof e==`string`?new Blob([e],{type:`text/plain`}):e;return new Uint8Array(await t.arrayBuffer()).toBase64()},Qj=async e=>{let t=Uint8Array.fromBase64(e);return new TextDecoder().decode(t)},$j=(e,t)=>{let n=document.createElement(`a`),r=URL.createObjectURL(e);n.download=t??e.name??`${Date.now()}.${e.type.split(`/`)[1]}`,n.href=r,n.click(),globalThis.setTimeout(()=>{URL.revokeObjectURL(r)},0)};function eM(e){return e&&e.constructor&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e)}function tM(e){return e}function nM(e,t){t||={};let n=t.delimiter||`.`,r=t.maxDepth,i=t.transformKey||tM,a={};function o(e,s,c){c||=1,Object.keys(e).forEach(function(l){let u=e[l],d=t.safe&&Array.isArray(u),f=Object.prototype.toString.call(u),p=eM(u),m=f===`[object Object]`||f===`[object Array]`,h=s?s+n+i(l):i(l);if(!d&&!p&&m&&Object.keys(u).length&&(!t.maxDepth||c0&&(l=o(c.shift()),u=o(c[0]))}d[l]=rM(e[s],t)}),a}var iM=/{{(.+?)}}/,aM=new RegExp(iM.source,`g`),oM=/\\\{\\\{.+?\\\}\\\}/g,sM=[`year`,`month`,`day`,`hour`,`minute`,`second`],cM=/^{{(?.+?)}}$/,lM=na([]),uM=ra([lM],([e],t)=>{t(e.find(({collectionName:e,internalPath:t})=>e===void 0&&t!==void 0))}),dM=na(),fM=ra([dM,uM],([e,t])=>e?.internalPath===void 0?t:e),pM=e=>{let t=`typedKeyPath`in e?e.typedKeyPath?.match(/[^:]+$/)?.[0]:e.typedKeyPath;return A(lM).find(n=>(`typedKeyPath`in e?n.typedKeyPath===t:!n.typedKeyPath)?`componentName`in e?n.componentName===e.componentName:n.collectionName===e.collectionName&&n.fileName===e.fileName&&(`isIndexFile`in e?n.isIndexFile===e.isIndexFile:!n.isIndexFile):!1)},mM={source:void 0,items:[],entryRelative:[]},hM=()=>{let e=A(lM);if(e===mM.source)return mM;let t=[],n=[];return e.forEach(e=>{let{internalPath:r,entryRelative:i}=e;if(r!==void 0){if(i)n.push(e);else{let n=NA(r).replace(oM,`.+?`);t.push({folder:e,regexSub:RegExp(`^${n}${r?`(?=\\/|$)`:`$`}`),regexExact:RegExp(`^${n}$`)})}}}),mM.source=e,mM.items=t,mM.entryRelative=n,mM},gM=(e,{matchSubFolders:t=!0}={})=>{let{filename:n,dirname:r}=qj(e);if(n.startsWith(`+`))return[];let{items:i,entryRelative:a}=hM(),o=r??``;return[...a.filter(({internalPath:t})=>e.startsWith(`${t}/`)),...i.filter(({regexSub:e,regexExact:n})=>(t?e:n).test(o)).map(({folder:e})=>e)].sort((e,t)=>t.internalPath.localeCompare(e.internalPath))},_M=e=>!!e&&!e.entryRelative&&!e.hasTemplateTags,vM=l(s(((e,t)=>{var n=function(e){return r(e)&&!i(e)};function r(e){return!!e&&typeof e==`object`}function i(e){var t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||o(e)}var a=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function o(e){return e.$$typeof===a}function s(e){return Array.isArray(e)?[]:{}}function c(e,t){return t.clone!==!1&&t.isMergeableObject(e)?g(s(e),e,t):e}function l(e,t,n){return e.concat(t).map(function(e){return c(e,n)})}function u(e,t){if(!t.customMerge)return g;var n=t.customMerge(e);return typeof n==`function`?n:g}function d(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function f(e){return Object.keys(e).concat(d(e))}function p(e,t){try{return t in e}catch{return!1}}function m(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function h(e,t,n){var r={};return n.isMergeableObject(e)&&f(e).forEach(function(t){r[t]=c(e[t],n)}),f(t).forEach(function(i){m(e,i)||(r[i]=p(e,i)&&n.isMergeableObject(t[i])?u(i,n)(e[i],t[i],n):c(t[i],n))}),r}function g(e,t,r){r||={},r.arrayMerge=r.arrayMerge||l,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=c;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):h(e,t,r):c(t,r)}g.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return g(e,n,t)},{})},t.exports=g}))(),1),yM=Symbol.for(`yaml.alias`),bM=Symbol.for(`yaml.document`),xM=Symbol.for(`yaml.map`),SM=Symbol.for(`yaml.pair`),CM=Symbol.for(`yaml.scalar`),wM=Symbol.for(`yaml.seq`),TM=Symbol.for(`yaml.node.type`),EM=e=>!!e&&typeof e==`object`&&e[TM]===yM,DM=e=>!!e&&typeof e==`object`&&e[TM]===bM,OM=e=>!!e&&typeof e==`object`&&e[TM]===xM,kM=e=>!!e&&typeof e==`object`&&e[TM]===SM,AM=e=>!!e&&typeof e==`object`&&e[TM]===CM,jM=e=>!!e&&typeof e==`object`&&e[TM]===wM;function MM(e){if(e&&typeof e==`object`)switch(e[TM]){case xM:case wM:return!0}return!1}function NM(e){if(e&&typeof e==`object`)switch(e[TM]){case yM:case xM:case CM:case wM:return!0}return!1}var PM=e=>(AM(e)||MM(e))&&!!e.anchor,FM=Symbol(`break visit`),IM=Symbol(`skip children`),LM=Symbol(`remove node`);function RM(e,t){let n=BM(t);DM(e)?zM(null,e.contents,n,Object.freeze([e]))===LM&&(e.contents=null):zM(null,e,n,Object.freeze([]))}RM.BREAK=FM,RM.SKIP=IM,RM.REMOVE=LM;function zM(e,t,n,r){let i=VM(e,t,n,r);if(NM(i)||kM(i))return HM(e,r,i),zM(e,i,n,r);if(typeof i!=`symbol`){if(MM(t)){r=Object.freeze(r.concat(t));for(let e=0;ee.replace(/[!,[\]{}]/g,e=>UM[e]),GM=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags)}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+WM(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&NM(e.contents)){let t={};RM(e.contents,(e,n)=>{NM(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)(i!==`!!`||a!==`tag:yaml.org,2002:`)&&(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(` +`)}};GM.defaultYaml={explicit:!1,version:`1.2`},GM.defaultTags={"!!":`tag:yaml.org,2002:`};function KM(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function qM(e){let t=new Set;return RM(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function JM(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function YM(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=qM(e);let a=JM(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(AM(t.node)||MM(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function XM(e,t,n,r){if(r&&typeof r==`object`){if(Array.isArray(r))for(let t=0,n=r.length;tZM(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!PM(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var QM=class{constructor(e){Object.defineProperty(this,TM,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!DM(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=ZM(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?XM(i,{"":o},``,o):o}},$M=class extends QM{constructor(e){super(yM),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],RM(e,{Node:(e,t)=>{(EM(t)||PM(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}return r}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(a);if(o||=(ZM(a,null,t),n.get(a)),o?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=eN(r,a,n)),o.count*o.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(KM(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function eN(e,t,n){if(EM(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(MM(t)){let r=0;for(let i of t.items){let t=eN(e,i,n);t>r&&(r=t)}return r}if(kM(t)){let r=eN(e,t.key,n),i=eN(e,t.value,n);return Math.max(r,i)}return 1}var tN=e=>!e||typeof e!=`function`&&typeof e!=`object`,nN=class extends QM{constructor(e){super(CM),this.value=e}toJSON(e,t){return t?.keep?this.value:ZM(this.value,e,t)}toString(){return String(this.value)}};nN.BLOCK_FOLDED=`BLOCK_FOLDED`,nN.BLOCK_LITERAL=`BLOCK_LITERAL`,nN.PLAIN=`PLAIN`,nN.QUOTE_DOUBLE=`QUOTE_DOUBLE`,nN.QUOTE_SINGLE=`QUOTE_SINGLE`;var rN=`tag:yaml.org,2002:`;function iN(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function aN(e,t,n){if(DM(e)&&(e=e.contents),NM(e))return e;if(kM(e)){let t=n.schema[xM].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??(c.anchor=i(e)),new $M(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=rN+t.slice(2));let l=iN(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new nN(e);return c&&(c.node=t),t}l=e instanceof Map?o[xM]:Symbol.iterator in Object(e)?o[wM]:o[xM]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new nN(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}function oN(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return aN(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var sN=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,cN=class extends QM{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>NM(t)||kM(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(sN(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(MM(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,oN(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(MM(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&AM(i)?i.value:i:MM(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!kM(t))return!1;let n=t.value;return n==null||e&&AM(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return MM(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(MM(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,oN(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},lN=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function uN(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var dN=(e,t,n)=>e.endsWith(` +`)?uN(n,t):n.includes(` +`)?` +`+uN(n,t):(e.endsWith(` `)?``:` `)+n,fN=`flow`,pN=`block`,mN=`quoted`;function hN(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;ii-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=gN(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===` +`)n===`block`&&(h=gN(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==` +`&&p!==` `){let t=e[h+1];t&&t!==` `&&t!==` +`&&t!==` `&&(f=h)}if(h>=d){if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===` `;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),vN=e=>/^(%|---|\.\.\.)/m.test(e);function yN(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;tr)return!0;if(n=t+1,i-n<=r)return!1}return!0}function bN(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(vN(e)?` `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length +`;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==` +`&&e!==` `&&e!==` `)break}let p=n.substring(f),m=p.indexOf(` +`);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===` +`&&(p=p.slice(0,-1)),p.replace(CN,`$&${l}`));let h=!1,g,_=-1;for(g=0;g{i=!0});let s=hN(`${v}${e}${p}`,l,pN,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function TN(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(` +`)||u&&/[[\]{},]/.test(a))return SN(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(` +`)?SN(a,t):wN(e,t,n,r);if(!s&&!u&&i!==nN.PLAIN&&a.includes(` +`))return wN(e,t,n,r);if(vN(a)){if(c===``)return t.forceBlockIndent=!0,wN(e,t,n,r);if(s&&c===l)return SN(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return SN(a,t)}return s?d:hN(d,c,fN,_N(t,!1))}function EN(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==nN.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=nN.QUOTE_DOUBLE);let c=e=>{switch(e){case nN.BLOCK_FOLDED:case nN.BLOCK_LITERAL:return i||a?SN(o.value,t):wN(o,t,n,r);case nN.QUOTE_DOUBLE:return bN(o.value,t);case nN.QUOTE_SINGLE:return xN(o.value,t);case nN.PLAIN:return TN(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}function DN(e,t){let n=Object.assign({blockQuote:!0,commentString:lN,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:r,options:n}}function ON(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(AM(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function kN(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(AM(e)||MM(e))&&e.anchor;a&&KM(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function AN(e,t,n,r){if(kM(e))return e.toString(t,n,r);if(EM(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=NM(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=ON(t.doc.schema.tags,a);let o=kN(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):AM(a)?EN(a,t,n,r):a.toString(t,n,r);return o?AM(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function jN({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=NM(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(MM(e)||!NM(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||MM(e)||(AM(e)?e.type===nN.BLOCK_FOLDED||e.type===nN.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=AN(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=dN(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=dN(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=dN(g,n.indent,l(f))));let _,v,y;NM(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&AM(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&jM(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=AN(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?` +`:``,v){let e=l(v);S+=`\n${uN(e,n.indent)}`}x===``&&!n.inFlow?S===` +`&&y&&(S=` + +`):S+=`\n${n.indent}`}else if(!p&&MM(t)){let e=x[0],r=x.indexOf(` +`),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&ne===NN||typeof e==`symbol`&&e.description===NN,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new nN(Symbol(NN)),{addToJSMap:IN}),stringify:()=>NN},FN=(e,t)=>(PN.identify(t)||AM(t)&&(!t.type||t.type===nN.PLAIN)&&PN.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===PN.tag&&e.default);function IN(e,t,n){let r=RN(e,n);if(jM(r))for(let n of r.items)LN(e,t,n);else if(Array.isArray(r))for(let n of r)LN(e,t,n);else LN(e,t,r)}function LN(e,t,n){let r=RN(e,n);if(!OM(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function RN(e,t){return e&&EM(t)?t.resolve(e.doc,e):t}function zN(e,t,{key:n,value:r}){if(NM(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(FN(e,n))IN(e,t,r);else{let i=ZM(n,``,e);if(t instanceof Map)t.set(i,ZM(r,i,e));else if(t instanceof Set)t.add(i);else{let a=BN(n,i,e),o=ZM(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function BN(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(NM(e)&&n?.doc){let t=DN(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),MN(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function VN(e,t,n){return new HN(aN(e,void 0,n),aN(t,void 0,n))}var HN=class e{constructor(e,t=null){Object.defineProperty(this,TM,{value:SM}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return NM(n)&&(n=n.clone(t)),NM(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return zN(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?jN(this,e,t,n):JSON.stringify(this)}};function UN(e,t,n){return(t.inFlow??e.flow?GN:WN)(e,t,n)}function WN({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;eo=null,()=>d=!0);o&&(s+=dN(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;ea=null);l||=d.length>u||o.includes(` +`),n0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=dN(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:` +`;return`${e}\n${i}${p}`}return`${f}${o}${d.join(` `)}${o}${p}`}function KN({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=uN(t(r),e);n.push(i.trimStart())}}function qN(e,t){let n=AM(t)?t.value:t;for(let r of e)if(kM(r)&&(r.key===t||r.key===n||AM(r.key)&&r.key.value===n))return r}var JN=class extends cN{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(xM,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(VN(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=kM(e)?e:!e||typeof e!=`object`||!(`key`in e)?new HN(e,e?.value):new HN(e.key,e.value);let r=qN(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);AM(r.value)&&tN(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=qN(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=qN(this.items,e)?.value;return(!t&&AM(n)?n.value:n)??void 0}has(e){return!!qN(this.items,e)}set(e,t){this.add(new HN(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)zN(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!kM(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),UN(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}},YN={collection:`map`,default:!0,nodeClass:JN,tag:`tag:yaml.org,2002:map`,resolve(e,t){return OM(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>JN.from(e,t,n)},XN=class extends cN{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(wM,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=ZN(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=ZN(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&AM(r)?r.value:r}has(e){let t=ZN(e);return typeof t==`number`&&t=0?t:null}var QN={collection:`seq`,default:!0,nodeClass:XN,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return jM(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>XN.from(e,t,n)},$N={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),EN(e,t,n,r)}},eP={identify:e=>e==null,createNode:()=>new nN(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new nN(null),stringify:({source:e},t)=>typeof e==`string`&&eP.test.test(e)?e:t.options.nullStr},tP={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new nN(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},n){return e&&tP.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?n.options.trueStr:n.options.falseStr}};function nP({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-->0;)a+=`0`}return a}var rP={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:nP},iP={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():nP(e)}},aP={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new nN(parseFloat(e)),n=e.indexOf(`.`);return n!==-1&&e[e.length-1]===`0`&&(t.minFractionDigits=e.length-n-1),t},stringify:nP},oP=e=>typeof e==`bigint`||Number.isInteger(e),sP=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function cP(e,t,n){let{value:r}=e;return oP(r)&&r>=0?n+r.toString(t):nP(e)}var lP={identify:e=>oP(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>sP(e,2,8,n),stringify:e=>cP(e,8,`0o`)},uP={identify:oP,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>sP(e,0,10,n),stringify:nP},dP={identify:e=>oP(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>sP(e,2,16,n),stringify:e=>cP(e,16,`0x`)},fP=[YN,QN,$N,eP,tP,lP,uP,dP,rP,iP,aP];function pP(e){return typeof e==`bigint`||Number.isInteger(e)}var mP=({value:e})=>JSON.stringify(e),hP=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:mP},{identify:e=>e==null,createNode:()=>new nN(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:mP},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:mP},{identify:pP,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>pP(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:mP}],gP=[YN,QN].concat(hP,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}}),_P={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,t){if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new HN(new nN(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=kM(r)?r:new HN(r)}}else t(`Expected a sequence for this tag`);return e}function yP(e,t,n){let{replacer:r}=n,i=new XN(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e)){if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(VN(o,s,n))}return i}var bP={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:vP,createNode:yP},xP=class e extends XN{constructor(){super(),this.add=JN.prototype.add.bind(this),this.delete=JN.prototype.delete.bind(this),this.get=JN.prototype.get.bind(this),this.has=JN.prototype.has.bind(this),this.set=JN.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(kM(e)?(r=ZM(e.key,``,t),i=ZM(e.value,r,t)):r=ZM(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=yP(e,t,n),i=new this;return i.items=r.items,i}};xP.tag=`tag:yaml.org,2002:omap`;var SP={collection:`seq`,identify:e=>e instanceof Map,nodeClass:xP,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=vP(e,t),r=[];for(let{key:e}of n.items)AM(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new xP,n)},createNode:(e,t,n)=>xP.from(e,t,n)};function CP({value:e,source:t},n){return t&&(e?wP:TP).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var wP={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new nN(!0),stringify:CP},TP={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new nN(!1),stringify:CP},EP={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:nP},DP={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():nP(e)}},OP={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new nN(parseFloat(e.replace(/_/g,``))),n=e.indexOf(`.`);if(n!==-1){let r=e.substring(n+1).replace(/_/g,``);r[r.length-1]===`0`&&(t.minFractionDigits=r.length)}return t},stringify:nP},kP=e=>typeof e==`bigint`||Number.isInteger(e);function AP(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function jP(e,t,n){let{value:r}=e;if(kP(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return nP(e)}var MP={identify:kP,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>AP(e,2,2,n),stringify:e=>jP(e,2,`0b`)},NP={identify:kP,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>AP(e,1,8,n),stringify:e=>jP(e,8,`0`)},PP={identify:kP,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>AP(e,0,10,n),stringify:nP},FP={identify:kP,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>AP(e,2,16,n),stringify:e=>jP(e,16,`0x`)},IP=class e extends JN{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=kM(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new HN(e.key,null):new HN(e,null),qN(this.items,t.key)||this.items.push(t)}get(e,t){let n=qN(this.items,e);return!t&&kM(n)?AM(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=qN(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new HN(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(VN(e,null,n));return i}};IP.tag=`tag:yaml.org,2002:set`;var LP={collection:`map`,identify:e=>e instanceof Set,nodeClass:IP,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>IP.from(e,t,n),resolve(e,t){if(OM(e)){if(e.hasAllNullValues(!0))return Object.assign(new IP,e);t(`Set items must all have null values`)}else t(`Expected a mapping for this tag`);return e}};function RP(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function zP(e){let{value:t}=e,n=e=>e;if(typeof t==`bigint`)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return nP(e);let r=``;t<0&&(r=`-`,t*=n(-1));let i=n(60),a=[t%i];return t<60?a.unshift(0):(t=(t-a[0])/i,a.unshift(t%i),t>=60&&(t=(t-a[0])/i,a.unshift(t))),r+a.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}var BP={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>RP(e,n),stringify:zP},VP={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>RP(e,!1),stringify:zP},HP={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(HP.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,n,r,i,a,o,s]=t.map(Number),c=t[7]?Number((t[7]+`00`).substr(1,3)):0,l=Date.UTC(n,r-1,i,a||0,o||0,s||0,c),u=t[8];if(u&&u!==`Z`){let e=RP(u,!1);Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``},UP=[YN,QN,$N,eP,wP,TP,MP,NP,PP,FP,EP,DP,OP,_P,PN,SP,bP,LP,BP,VP,HP],WP=new Map([[`core`,fP],[`failsafe`,[YN,QN,$N]],[`json`,gP],[`yaml11`,UP],[`yaml-1.1`,UP]]),GP={binary:_P,bool:tP,float:aP,floatExp:iP,floatNaN:rP,floatTime:VP,int:uP,intHex:dP,intOct:lP,intTime:BP,map:YN,merge:PN,null:eP,omap:SP,pairs:bP,seq:QN,set:LP,timestamp:HP},KP={"tag:yaml.org,2002:binary":_P,"tag:yaml.org,2002:merge":PN,"tag:yaml.org,2002:omap":SP,"tag:yaml.org,2002:pairs":bP,"tag:yaml.org,2002:set":LP,"tag:yaml.org,2002:timestamp":HP};function qP(e,t,n){let r=WP.get(t);if(r&&!e)return n&&!r.includes(PN)?r.concat(PN):r.slice();let i=r;if(!i){if(Array.isArray(e))i=[];else{let e=Array.from(WP.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(PN)),i.reduce((e,t)=>{let n=typeof t==`string`?GP[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(GP).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}var JP=(e,t)=>e.keyt.key),YP=class e{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(e)?qP(e,`compat`):e?qP(null,e):null,this.name=typeof i==`string`&&i||`core`,this.knownTags=r?KP:{},this.tags=qP(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,xM,{value:YN}),Object.defineProperty(this,CM,{value:$N}),Object.defineProperty(this,wM,{value:QN}),this.sortMapEntries=typeof a==`function`?a:a===!0?JP:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};function XP(e,t){let n=[],r=t.directives===!0;if(t.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push(`---`);let i=DN(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift(``);let t=a(e.commentBefore);n.unshift(uN(t,``))}let o=!1,s=null;if(e.contents){if(NM(e.contents)){if(e.contents.spaceBefore&&r&&n.push(``),e.contents.commentBefore){let t=a(e.contents.commentBefore);n.push(uN(t,``))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>o=!0,c=AN(e.contents,i,()=>s=null,t);s&&(c+=dN(c,``,a(s))),(c[0]===`|`||c[0]===`>`)&&n[n.length-1]===`---`?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(AN(e.contents,i));if(e.directives?.docEnd){if(e.comment){let t=a(e.comment);t.includes(` +`)?(n.push(`...`),n.push(uN(t,``))):n.push(`... ${t}`)}else n.push(`...`)}else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,``)),t&&((!o||s)&&n[n.length-1]!==``&&n.push(``),n.push(uN(a(t),``)))}return n.join(` +`)+` +`}var ZP=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,TM,{value:bM});let r=null;typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new GM({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[TM]:{value:bM}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=NM(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){QP(this.contents)&&this.contents.add(e)}addIn(e,t){QP(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=qM(this);e.anchor=!t||n.has(t)?JM(t||`a`,n):t}return new $M(e.anchor)}createNode(e,t,n){let r;if(typeof t==`function`)e=t.call({"":e},``,e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:f}=YM(this,a||`a`),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=aN(e,l,p);return o&&MM(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){return new HN(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return QP(this.contents)?this.contents.delete(e):!1}deleteIn(e){return sN(e)?this.contents!=null&&(this.contents=null,!0):QP(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return MM(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return sN(e)?!t&&AM(this.contents)?this.contents.value:this.contents:MM(this.contents)?this.contents.getIn(e,t):void 0}has(e){return MM(this.contents)?this.contents.has(e):!1}hasIn(e){return sN(e)?this.contents!==void 0:MM(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=oN(this.schema,[e],t):QP(this.contents)&&this.contents.set(e,t)}setIn(e,t){sN(e)?this.contents=t:this.contents==null?this.contents=oN(this.schema,Array.from(e),t):QP(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new GM({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new GM({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new YP(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},s=ZM(this.contents,t??``,o);if(typeof i==`function`)for(let{count:e,res:t}of o.anchors.values())i(t,e);return typeof a==`function`?XM(a,{"":s},``,s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return XP(this,e)}};function QP(e){if(MM(e))return!0;throw Error(`Expected a YAML collection as document contents`)}var $P=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},eF=class extends $P{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},tF=class extends $P{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}},nF=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`… +`),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}};function rF(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}function iF(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(` +`))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let t of e.items){for(let e of t.start)if(e.type===`newline`)return!0;if(t.sep){for(let e of t.sep)if(e.type===`newline`)return!0}if(iF(t.key)||iF(t.value))return!0}return!1;default:return!0}}function aF(e,t,n){if(t?.type===`flow-collection`){let r=t.end[0];r.indent===e&&(r.source===`]`||r.source===`}`)&&iF(t)&&n(r,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}function oF(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r==`function`?r:(e,t)=>e===t||AM(e)&&AM(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}var sF=`All mapping items must start at the same column`;function cF({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??JN)(n.schema);n.atRoot&&=!1;let s=r.offset,c=null;for(let a of r.items){let{start:l,key:u,sep:d,value:f}=a,p=rF(l,{indicator:`explicit-key-ind`,next:u??d?.[0],offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!p.found;if(m){if(u&&(u.type===`block-seq`?i(s,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in u&&u.indent!==r.indent&&i(s,`BAD_INDENT`,sF)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+=` +`+p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||iF(u))&&i(u??l[l.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else p.found?.indent!==r.indent&&i(s,`BAD_INDENT`,sF);n.atKey=!0;let h=p.end,g=u?e(n,u,p,i):t(n,h,l,null,p,i);n.schema.compat&&aF(r.indent,u,i),n.atKey=!1,oF(n,o.items,g)&&i(h,`DUPLICATE_KEY`,`Map keys must be unique`);let _=rF(d??[],{indicator:`map-value-ind`,next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!u||u.type===`block-scalar`});if(s=_.end,_.found){m&&(f?.type===`block-map`&&!_.hasNewline&&i(s,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),n.options.strict&&p.start<_.found.offset-1024&&i(g.range,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit block mapping key`));let c=f?e(n,f,_,i):t(n,s,d,null,_,i);n.schema.compat&&aF(r.indent,f,i),s=c.range[2];let l=new HN(g,c);n.options.keepSourceTokens&&(l.srcToken=a),o.items.push(l)}else{m&&i(g.range,`MISSING_CHAR`,`Implicit map keys need to be followed by map values`),_.comment&&(g.comment?g.comment+=` +`+_.comment:g.comment=_.comment);let e=new HN(g);n.options.keepSourceTokens&&(e.srcToken=a),o.items.push(e)}}return c&&ce&&(e.type===`block-map`||e.type===`block-seq`);function pF({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=r.start.source===`{`,s=o?`flow map`:`flow sequence`,c=new((a?.nodeClass)??(o?JN:XN))(n.schema);c.flow=!0;let l=n.atRoot;l&&(n.atRoot=!1),n.atKey&&=!1;let u=r.offset+r.start.source.length;for(let a=0;a0){let e=uF(p,m,n.options.strict,i);e.comment&&(c.comment?c.comment+=` +`+e.comment:c.comment=e.comment),c.range=[r.offset,m,e.offset]}else c.range=[r.offset,m,m];return c}function mF(e,t,n,r,i,a){let o=n.type===`block-map`?cF(e,t,n,r,a):n.type===`block-seq`?lF(e,t,n,r,a):pF(e,t,n,r,a),s=o.constructor;return i===`!`||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function hF(e,t,n,r,i){let a=r.tag,o=a?t.directives.tagName(a.source,e=>i(a,`TAG_RESOLVE_FAILED`,e)):null;if(n.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=r,n=e&&a?e.offset>a.offset?e:a:e??a;n&&(!t||t.offsete.tag===o&&e.collection===s);if(!c){let r=t.schema.knownTags[o];if(r?.collection===s)t.schema.tags.push(Object.assign({},r,{default:!1})),c=r;else return r?i(a,`BAD_COLLECTION_TYPE`,`${r.tag} used for ${s} collection, but expects ${r.collection??`scalar`}`,!0):i(a,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${o}`,!0),mF(e,t,n,i,o)}let l=mF(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a,`TAG_RESOLVE_FAILED`,e),t.options)??l,d=NM(u)?u:new nN(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}function gF(e,t,n){let r=t.offset,i=_F(t,e.options.strict,n);if(!i)return{value:``,type:null,comment:``,range:[r,r,r]};let a=i.mode===`>`?nN.BLOCK_FOLDED:nN.BLOCK_LITERAL,o=t.source?vF(t.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(t===``||t===`\r`)s=e;else break}if(s===0){let e=i.chomp===`+`&&o.length>0?` +`.repeat(Math.max(1,o.length-1)):``,n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:a,comment:i.comment,range:[r,n,n]}}let c=t.indent+i.indent,l=t.offset+i.length,u=0;for(let t=0;tc&&(c=r.length);else{r.length=s;--e)o[e][0].length>c&&(s=e+1);let d=``,f=``,p=!1;for(let e=0;ec||r[0]===` `?(f===` `?f=` +`:!p&&f===` +`&&(f=` + +`),d+=f+t.slice(c)+r,f=` +`,p=!0):r===``?f===` +`?d+=` +`:f=` +`:(d+=f+r,f=` `,p=!1)}switch(i.chomp){case`-`:break;case`+`:for(let e=s;en(r+e,t,i);switch(i){case`scalar`:s=nN.PLAIN,c=bF(a,l);break;case`single-quoted-scalar`:s=nN.QUOTE_SINGLE,c=xF(a,l);break;case`double-quoted-scalar`:s=nN.QUOTE_DOUBLE,c=CF(a,l);break;default:return n(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${i}`),{value:``,type:null,comment:``,range:[r,r+a.length,r+a.length]}}let u=r+a.length,d=uF(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function bF(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),SF(e)}function xF(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),SF(e.slice(1,-1)).replace(/''/g,`'`)}function SF(e){let t,n;try{t=RegExp(`(.*?)(?t?e.slice(t,r+1):i)}else n+=i}}return(e[e.length-1]!==`"`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing "quote`),n}function wF(e,t){let n=``,r=e[t+1];for(;(r===` `||r===` `||r===` +`||r===`\r`)&&(r!==`\r`||e[t+2]===` +`);)r===` +`&&(n+=` +`),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}var TF={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:` +`,r:`\r`,t:` `,v:`\v`,N:`…`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`," ":` `};function EF(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(a)}catch{let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}}function DF(e,t,n,r){let{value:i,type:a,comment:o,range:s}=t.type===`block-scalar`?gF(e,t,r):yF(t,e.options.strict,r),c=n?e.directives.tagName(n.source,e=>r(n,`TAG_RESOLVE_FAILED`,e)):null,l;l=e.options.stringKeys&&e.atKey?e.schema[CM]:c?OF(e.schema,i,c,n,r):t.type===`scalar`?kF(e,i,t,r):e.schema[CM];let u;try{let a=l.resolve(i,e=>r(n??t,`TAG_RESOLVE_FAILED`,e),e.options);u=AM(a)?a:new nN(a)}catch(e){let a=e instanceof Error?e.message:String(e);r(n??t,`TAG_RESOLVE_FAILED`,a),u=new nN(i)}return u.range=s,u.source=i,a&&(u.type=a),c&&(u.tag=c),l.format&&(u.format=l.format),o&&(u.comment=o),u}function OF(e,t,n,r,i){if(n===`!`)return e[CM];let a=[];for(let t of e.tags)if(!t.collection&&t.tag===n){if(t.default&&t.test)a.push(t);else return t}for(let e of a)if(e.test?.test(t))return e;let o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${n}`,n!==`tag:yaml.org,2002:str`),e[CM])}function kF({atKey:e,directives:t,schema:n},r,i,a){let o=n.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(r))||n[CM];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[CM];o.tag!==e.tag&&a(i,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`,!0)}return o}function AF(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}var jF={composeNode:MF,composeEmptyNode:NF};function MF(e,t,n,r){let i=e.atKey,{spaceBefore:a,comment:o,anchor:s,tag:c}=n,l,u=!0;switch(t.type){case`alias`:l=PF(e,t,r),(s||c)&&r(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:l=DF(e,t,c,r),s&&(l.anchor=s.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{l=hF(jF,e,t,n,r),s&&(l.anchor=s.source.substring(1))}catch(e){r(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:r(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),u=!1}return l??=NF(e,t.offset,void 0,null,n,r),s&&l.anchor===``&&r(s,`BAD_ALIAS`,`Anchor cannot be an empty string`),i&&e.options.stringKeys&&(!AM(l)||typeof l.value!=`string`||l.tag&&l.tag!==`tag:yaml.org,2002:str`)&&r(c??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),a&&(l.spaceBefore=!0),o&&(t.type===`scalar`&&t.source===``?l.comment=o:l.commentBefore=o),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function NF(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:c},l){let u=DF(e,{type:`scalar`,offset:AF(t,n,r),indent:-1,source:``},s,l);return o&&(u.anchor=o.source.substring(1),u.anchor===``&&l(o,`BAD_ALIAS`,`Anchor cannot be an empty string`)),i&&(u.spaceBefore=!0),a&&(u.comment=a,u.range[2]=c),u}function PF({options:e},{offset:t,source:n,end:r},i){let a=new $M(n.substring(1));a.source===``&&i(t,`BAD_ALIAS`,`Alias cannot be an empty string`),a.source.endsWith(`:`)&&i(t+n.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let o=t+n.length,s=uF(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}function FF(e,t,{offset:n,start:r,value:i,end:a},o){let s=new ZP(void 0,Object.assign({_directives:t},e)),c={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},l=rF(r,{indicator:`doc-start`,next:i??a?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});l.found&&(s.directives.docStart=!0,i&&(i.type===`block-map`||i.type===`block-seq`)&&!l.hasNewline&&o(l.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),s.contents=i?MF(c,i,l,o):NF(c,l.end,r,null,l,o);let u=s.contents.range[2],d=uF(a,u,!1,o);return d.comment&&(s.comment=d.comment),s.range=[n,u,d.offset],s}function IF(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function LF(e){let t=``,n=!1,r=!1;for(let i=0;i{let i=IF(e);r?this.warnings.push(new tF(i,t,n)):this.errors.push(new eF(i,t,n))},this.directives=new GM({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=LF(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(MM(i)&&!i.flow&&i.items.length>0){let e=i.items[0];kM(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t{let i=IF(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=FF(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new eF(IF(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new eF(IF(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=uF(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new eF(IF(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new ZP(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),e.range=[0,t,t],this.decorate(e,!1),yield e}}},zF=Symbol(`break visit`),BF=Symbol(`skip children`),VF=Symbol(`remove item`);function HF(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),UF(Object.freeze([]),e,t)}HF.BREAK=zF,HF.SKIP=BF,HF.REMOVE=VF,HF.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},HF.parentCollection=(e,t)=>{let n=HF.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&`items`in i)return i;throw Error(`Parent collection not found`)};function UF(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;t`:return`block-scalar-header`}return null}function GF(e){switch(e){case void 0:case` `:case` +`:case`\r`:case` `:return!0;default:return!1}}var KF=new Set(`0123456789ABCDEFabcdef`),qF=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),JF=new Set(`,[]{}`),YF=new Set(` ,[]{} +\r `),XF=e=>!e||YF.has(e),ZF=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer=``,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===` `;)t=this.buffer[++e];return!t||t===`#`||t===` +`||t===`\r`&&this.buffer[e+1]===` +`}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===` `;)t=this.buffer[++n+e];if(t===`\r`){let t=this.buffer[n+e+1];if(t===` +`||!t&&!this.atEnd)return e+n+1}return t===` +`||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t===`-`||t===`.`){let t=this.buffer.substr(e,3);if((t===`---`||t===`...`)&&GF(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!=`number`||e!==-1&&ethis.indentValue&&!GF(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext(`block-start`);if((e===`-`||e===`?`||e===`:`)&&GF(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,`block-start`}return`doc`}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext(`doc`);let t=yield*this.pushIndicators();switch(e[t]){case`#`:yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),`doc`;case`*`:return yield*this.pushUntil(XF),`doc`;case`"`:case`'`:return yield*this.parseQuotedScalar();case`|`:case`>`:return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(r===null)return this.setNext(`flow`);if((n!==-1&&n`0`&&t<=`9`)this.blockScalarIndent=Number(t)-1;else if(t!==`-`)break}return yield*this.pushUntil(e=>GF(e)||e===`#`)}*parseBlockScalar(){let e=this.pos-1,t=0,n;loop:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case` `:t+=1;break;case` +`:e=r,t=0;break;case`\r`:{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext(`block-scalar`);if(e===` +`)break}default:break loop}if(!n&&!this.atEnd)return this.setNext(`block-scalar`);if(t>=this.indentNext){this.indentNext=this.blockScalarIndent===-1?t:this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf(` +`,t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext(`block-scalar`);e=this.buffer.length}}let r=e+1;for(n=this.buffer[r];n===` `;)n=this.buffer[++r];if(n===` `){for(;n===` `||n===` `||n===`\r`||n===` +`;)n=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)do{let n=e-1,r=this.buffer[n];r===`\r`&&(r=this.buffer[--n]);let i=n;for(;r===` `;)r=this.buffer[--n];if(r===` +`&&n>=this.pos&&n+1+t>i)e=n;else break}while(!0);return yield``,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,r;for(;r=this.buffer[++n];)if(r===`:`){let r=this.buffer[n+1];if(GF(r)||e&&JF.has(r))break;t=n}else if(GF(r)){let i=this.buffer[n+1];if(r===`\r`&&(i===` +`?(n+=1,r=` +`,i=this.buffer[n+1]):t=n),i===`#`||e&&JF.has(i))break;if(r===` +`){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&JF.has(r))break;t=n}return!r&&!this.atEnd?this.setNext(`plain-scalar`):(yield``,yield*this.pushToIndex(t+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case`&`:e+=yield*this.pushUntil(XF),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,n=this.charAt(1);if(GF(n)||t&&JF.has(n)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!GF(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(qF.has(t))t=this.buffer[++e];else if(t===`%`&&KF.has(this.buffer[e+1])&&KF.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===` +`?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===` +`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}},QF=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t>1;this.lineStarts[r]=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function iI(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&aI(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&eI(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;re.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey){if(!t.sep){if($F(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=rI(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if($F(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(tI(t.key)&&!$F(t.sep,`newline`)){let e=rI(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken)}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):$F(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!$F(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){iI(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||$F(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=rI(nI(t));aI(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(` +`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(` +`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=rI(nI(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=rI(nI(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};function sI(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new QF||null,prettyErrors:t}}function cI(e,t={}){let{lineCounter:n,prettyErrors:r}=sI(t),i=new oI(n?.addNewLine),a=new RF(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new eF(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(nF(e,n)),o.warnings.forEach(nF(e,n))),o}function lI(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=cI(e,n);if(!i)return null;if(i.warnings.forEach(e=>MN(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function uI(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return DM(e)&&!r?e.toString(n):new ZP(e,r,n).toString(n)}var dI={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:`longOffset`},fI=new Map,pI=e=>{let t=e??``,n=fI.get(t);return n||(n=new Intl.DateTimeFormat(`en-US`,{...dI,hour12:!1,timeZone:e}),fI.set(t,n)),n},mI=({date:e=new Date,timeZone:t=void 0}={})=>Object.fromEntries(pI(t).formatToParts(e).filter(({type:e})=>e in dI).map(({type:e,value:t})=>[e,e===`hour`&&t===`24`?`00`:t])),hI=new Map([[`ß`,`ss`],[`ẞ`,`Ss`],[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`À`,`A`],[`Á`,`A`],[`Â`,`A`],[`Ã`,`A`],[`Ä`,`Ae`],[`Å`,`A`],[`Æ`,`AE`],[`Ç`,`C`],[`È`,`E`],[`É`,`E`],[`Ê`,`E`],[`Ë`,`E`],[`Ə`,`A`],[`Ì`,`I`],[`Í`,`I`],[`Î`,`I`],[`Ï`,`I`],[`Ð`,`D`],[`Ñ`,`N`],[`Ò`,`O`],[`Ó`,`O`],[`Ô`,`O`],[`Õ`,`O`],[`Ö`,`Oe`],[`Ō`,`O`],[`Ő`,`O`],[`Ø`,`O`],[`Œ`,`OE`],[`Ù`,`U`],[`Ú`,`U`],[`Û`,`U`],[`Ü`,`Ue`],[`Ű`,`U`],[`Ý`,`Y`],[`Þ`,`TH`],[`ß`,`ss`],[`à`,`a`],[`á`,`a`],[`â`,`a`],[`ã`,`a`],[`ä`,`ae`],[`å`,`a`],[`æ`,`ae`],[`ç`,`c`],[`è`,`e`],[`é`,`e`],[`ê`,`e`],[`ë`,`e`],[`ə`,`a`],[`ì`,`i`],[`í`,`i`],[`î`,`i`],[`ï`,`i`],[`ð`,`d`],[`ñ`,`n`],[`ò`,`o`],[`ó`,`o`],[`ô`,`o`],[`õ`,`o`],[`ö`,`oe`],[`ō`,`o`],[`ő`,`o`],[`ø`,`o`],[`œ`,`oe`],[`ù`,`u`],[`ú`,`u`],[`û`,`u`],[`ü`,`ue`],[`ű`,`u`],[`ý`,`y`],[`þ`,`th`],[`ÿ`,`y`],[`à`,`a`],[`À`,`A`],[`á`,`a`],[`Á`,`A`],[`â`,`a`],[`Â`,`A`],[`ã`,`a`],[`Ã`,`A`],[`è`,`e`],[`È`,`E`],[`é`,`e`],[`É`,`E`],[`ê`,`e`],[`Ê`,`E`],[`ì`,`i`],[`Ì`,`I`],[`í`,`i`],[`Í`,`I`],[`ò`,`o`],[`Ò`,`O`],[`ó`,`o`],[`Ó`,`O`],[`ô`,`o`],[`Ô`,`O`],[`õ`,`o`],[`Õ`,`O`],[`ù`,`u`],[`Ù`,`U`],[`ú`,`u`],[`Ú`,`U`],[`ý`,`y`],[`Ý`,`Y`],[`ă`,`a`],[`Ă`,`A`],[`Đ`,`D`],[`đ`,`d`],[`ĩ`,`i`],[`Ĩ`,`I`],[`ũ`,`u`],[`Ũ`,`U`],[`ơ`,`o`],[`Ơ`,`O`],[`ư`,`u`],[`Ư`,`U`],[`ạ`,`a`],[`Ạ`,`A`],[`ả`,`a`],[`Ả`,`A`],[`ấ`,`a`],[`Ấ`,`A`],[`ầ`,`a`],[`Ầ`,`A`],[`ẩ`,`a`],[`Ẩ`,`A`],[`ẫ`,`a`],[`Ẫ`,`A`],[`ậ`,`a`],[`Ậ`,`A`],[`ắ`,`a`],[`Ắ`,`A`],[`ằ`,`a`],[`Ằ`,`A`],[`ẳ`,`a`],[`Ẳ`,`A`],[`ẵ`,`a`],[`Ẵ`,`A`],[`ặ`,`a`],[`Ặ`,`A`],[`ẹ`,`e`],[`Ẹ`,`E`],[`ẻ`,`e`],[`Ẻ`,`E`],[`ẽ`,`e`],[`Ẽ`,`E`],[`ế`,`e`],[`Ế`,`E`],[`ề`,`e`],[`Ề`,`E`],[`ể`,`e`],[`Ể`,`E`],[`ễ`,`e`],[`Ễ`,`E`],[`ệ`,`e`],[`Ệ`,`E`],[`ỉ`,`i`],[`Ỉ`,`I`],[`ị`,`i`],[`Ị`,`I`],[`ọ`,`o`],[`Ọ`,`O`],[`ỏ`,`o`],[`Ỏ`,`O`],[`ố`,`o`],[`Ố`,`O`],[`ồ`,`o`],[`Ồ`,`O`],[`ổ`,`o`],[`Ổ`,`O`],[`ỗ`,`o`],[`Ỗ`,`O`],[`ộ`,`o`],[`Ộ`,`O`],[`ớ`,`o`],[`Ớ`,`O`],[`ờ`,`o`],[`Ờ`,`O`],[`ở`,`o`],[`Ở`,`O`],[`ỡ`,`o`],[`Ỡ`,`O`],[`ợ`,`o`],[`Ợ`,`O`],[`ụ`,`u`],[`Ụ`,`U`],[`ủ`,`u`],[`Ủ`,`U`],[`ứ`,`u`],[`Ứ`,`U`],[`ừ`,`u`],[`Ừ`,`U`],[`ử`,`u`],[`Ử`,`U`],[`ữ`,`u`],[`Ữ`,`U`],[`ự`,`u`],[`Ự`,`U`],[`ỳ`,`y`],[`Ỳ`,`Y`],[`ỵ`,`y`],[`Ỵ`,`Y`],[`ỷ`,`y`],[`Ỷ`,`Y`],[`ỹ`,`y`],[`Ỹ`,`Y`],[`ء`,`e`],[`آ`,`a`],[`أ`,`a`],[`ؤ`,`w`],[`إ`,`a`],[`ئ`,`y`],[`ا`,`a`],[`ب`,`b`],[`ة`,`t`],[`ت`,`t`],[`ث`,`th`],[`ج`,`j`],[`ح`,`h`],[`خ`,`kh`],[`د`,`d`],[`ذ`,`dh`],[`ر`,`r`],[`ز`,`z`],[`س`,`s`],[`ش`,`sh`],[`ص`,`s`],[`ض`,`d`],[`ط`,`t`],[`ظ`,`z`],[`ع`,`e`],[`غ`,`gh`],[`ـ`,`_`],[`ف`,`f`],[`ق`,`q`],[`ك`,`k`],[`ل`,`l`],[`م`,`m`],[`ن`,`n`],[`ه`,`h`],[`و`,`w`],[`ى`,`a`],[`ي`,`y`],[`َ‎`,`a`],[`ُ`,`u`],[`ِ‎`,`i`],[`٠`,`0`],[`١`,`1`],[`٢`,`2`],[`٣`,`3`],[`٤`,`4`],[`٥`,`5`],[`٦`,`6`],[`٧`,`7`],[`٨`,`8`],[`٩`,`9`],[`چ`,`ch`],[`ک`,`k`],[`گ`,`g`],[`پ`,`p`],[`ژ`,`zh`],[`ی`,`y`],[`۰`,`0`],[`۱`,`1`],[`۲`,`2`],[`۳`,`3`],[`۴`,`4`],[`۵`,`5`],[`۶`,`6`],[`۷`,`7`],[`۸`,`8`],[`۹`,`9`],[`ټ`,`p`],[`ځ`,`z`],[`څ`,`c`],[`ډ`,`d`],[`ﺫ`,`d`],[`ﺭ`,`r`],[`ړ`,`r`],[`ﺯ`,`z`],[`ږ`,`g`],[`ښ`,`x`],[`ګ`,`g`],[`ڼ`,`n`],[`ۀ`,`e`],[`ې`,`e`],[`ۍ`,`ai`],[`ٹ`,`t`],[`ڈ`,`d`],[`ڑ`,`r`],[`ں`,`n`],[`ہ`,`h`],[`ھ`,`h`],[`ے`,`e`],[`А`,`A`],[`а`,`a`],[`Б`,`B`],[`б`,`b`],[`В`,`V`],[`в`,`v`],[`Г`,`G`],[`г`,`g`],[`Д`,`D`],[`д`,`d`],[`ъе`,`ye`],[`Ъе`,`Ye`],[`ъЕ`,`yE`],[`ЪЕ`,`YE`],[`Е`,`E`],[`е`,`e`],[`Ё`,`Yo`],[`ё`,`yo`],[`Ж`,`Zh`],[`ж`,`zh`],[`З`,`Z`],[`з`,`z`],[`И`,`I`],[`и`,`i`],[`ый`,`iy`],[`Ый`,`Iy`],[`ЫЙ`,`IY`],[`ыЙ`,`iY`],[`Й`,`Y`],[`й`,`y`],[`К`,`K`],[`к`,`k`],[`Л`,`L`],[`л`,`l`],[`М`,`M`],[`м`,`m`],[`Н`,`N`],[`н`,`n`],[`О`,`O`],[`о`,`o`],[`П`,`P`],[`п`,`p`],[`Р`,`R`],[`р`,`r`],[`С`,`S`],[`с`,`s`],[`Т`,`T`],[`т`,`t`],[`У`,`U`],[`у`,`u`],[`Ф`,`F`],[`ф`,`f`],[`Х`,`Kh`],[`х`,`kh`],[`Ц`,`Ts`],[`ц`,`ts`],[`Ч`,`Ch`],[`ч`,`ch`],[`Ш`,`Sh`],[`ш`,`sh`],[`Щ`,`Sch`],[`щ`,`sch`],[`Ъ`,``],[`ъ`,``],[`Ы`,`Y`],[`ы`,`y`],[`Ь`,``],[`ь`,``],[`Э`,`E`],[`э`,`e`],[`Ю`,`Yu`],[`ю`,`yu`],[`Я`,`Ya`],[`я`,`ya`],[`ă`,`a`],[`Ă`,`A`],[`ș`,`s`],[`Ș`,`S`],[`ț`,`t`],[`Ț`,`T`],[`ţ`,`t`],[`Ţ`,`T`],[`ş`,`s`],[`Ş`,`S`],[`ç`,`c`],[`Ç`,`C`],[`ğ`,`g`],[`Ğ`,`G`],[`ı`,`i`],[`İ`,`I`],[`ա`,`a`],[`Ա`,`A`],[`բ`,`b`],[`Բ`,`B`],[`գ`,`g`],[`Գ`,`G`],[`դ`,`d`],[`Դ`,`D`],[`ե`,`ye`],[`Ե`,`Ye`],[`զ`,`z`],[`Զ`,`Z`],[`է`,`e`],[`Է`,`E`],[`ը`,`y`],[`Ը`,`Y`],[`թ`,`t`],[`Թ`,`T`],[`ժ`,`zh`],[`Ժ`,`Zh`],[`ի`,`i`],[`Ի`,`I`],[`լ`,`l`],[`Լ`,`L`],[`խ`,`kh`],[`Խ`,`Kh`],[`ծ`,`ts`],[`Ծ`,`Ts`],[`կ`,`k`],[`Կ`,`K`],[`հ`,`h`],[`Հ`,`H`],[`ձ`,`dz`],[`Ձ`,`Dz`],[`ղ`,`gh`],[`Ղ`,`Gh`],[`ճ`,`tch`],[`Ճ`,`Tch`],[`մ`,`m`],[`Մ`,`M`],[`յ`,`y`],[`Յ`,`Y`],[`ն`,`n`],[`Ն`,`N`],[`շ`,`sh`],[`Շ`,`Sh`],[`ու`,`u`],[`ՈՒ`,`U`],[`Ու`,`U`],[`ո`,`vo`],[`Ո`,`Vo`],[`չ`,`ch`],[`Չ`,`Ch`],[`պ`,`p`],[`Պ`,`P`],[`ջ`,`j`],[`Ջ`,`J`],[`ռ`,`r`],[`Ռ`,`R`],[`ս`,`s`],[`Ս`,`S`],[`վ`,`v`],[`Վ`,`V`],[`տ`,`t`],[`Տ`,`T`],[`ր`,`r`],[`Ր`,`R`],[`ց`,`c`],[`Ց`,`C`],[`փ`,`p`],[`Փ`,`P`],[`ք`,`q`],[`Ք`,`Q`],[`օ`,`o`],[`Օ`,`O`],[`ֆ`,`f`],[`Ֆ`,`F`],[`և`,`yev`],[`ა`,`a`],[`ბ`,`b`],[`გ`,`g`],[`დ`,`d`],[`ე`,`e`],[`ვ`,`v`],[`ზ`,`z`],[`თ`,`t`],[`ი`,`i`],[`კ`,`k`],[`ლ`,`l`],[`მ`,`m`],[`ნ`,`n`],[`ო`,`o`],[`პ`,`p`],[`ჟ`,`zh`],[`რ`,`r`],[`ს`,`s`],[`ტ`,`t`],[`უ`,`u`],[`ფ`,`ph`],[`ქ`,`q`],[`ღ`,`gh`],[`ყ`,`k`],[`შ`,`sh`],[`ჩ`,`ch`],[`ც`,`ts`],[`ძ`,`dz`],[`წ`,`ts`],[`ჭ`,`tch`],[`ხ`,`kh`],[`ჯ`,`j`],[`ჰ`,`h`],[`č`,`c`],[`ď`,`d`],[`ě`,`e`],[`ň`,`n`],[`ř`,`r`],[`š`,`s`],[`ť`,`t`],[`ů`,`u`],[`ž`,`z`],[`Č`,`C`],[`Ď`,`D`],[`Ě`,`E`],[`Ň`,`N`],[`Ř`,`R`],[`Š`,`S`],[`Ť`,`T`],[`Ů`,`U`],[`Ž`,`Z`],[`ހ`,`h`],[`ށ`,`sh`],[`ނ`,`n`],[`ރ`,`r`],[`ބ`,`b`],[`ޅ`,`lh`],[`ކ`,`k`],[`އ`,`a`],[`ވ`,`v`],[`މ`,`m`],[`ފ`,`f`],[`ދ`,`dh`],[`ތ`,`th`],[`ލ`,`l`],[`ގ`,`g`],[`ޏ`,`gn`],[`ސ`,`s`],[`ޑ`,`d`],[`ޒ`,`z`],[`ޓ`,`t`],[`ޔ`,`y`],[`ޕ`,`p`],[`ޖ`,`j`],[`ޗ`,`ch`],[`ޘ`,`tt`],[`ޙ`,`hh`],[`ޚ`,`kh`],[`ޛ`,`th`],[`ޜ`,`z`],[`ޝ`,`sh`],[`ޞ`,`s`],[`ޟ`,`d`],[`ޠ`,`t`],[`ޡ`,`z`],[`ޢ`,`a`],[`ޣ`,`gh`],[`ޤ`,`q`],[`ޥ`,`w`],[`ަ`,`a`],[`ާ`,`aa`],[`ި`,`i`],[`ީ`,`ee`],[`ު`,`u`],[`ޫ`,`oo`],[`ެ`,`e`],[`ޭ`,`ey`],[`ޮ`,`o`],[`ޯ`,`oa`],[`ް`,``],[`α`,`a`],[`β`,`v`],[`γ`,`g`],[`δ`,`d`],[`ε`,`e`],[`ζ`,`z`],[`η`,`i`],[`θ`,`th`],[`ι`,`i`],[`κ`,`k`],[`λ`,`l`],[`μ`,`m`],[`ν`,`n`],[`ξ`,`ks`],[`ο`,`o`],[`π`,`p`],[`ρ`,`r`],[`σ`,`s`],[`τ`,`t`],[`υ`,`y`],[`φ`,`f`],[`χ`,`x`],[`ψ`,`ps`],[`ω`,`o`],[`ά`,`a`],[`έ`,`e`],[`ί`,`i`],[`ό`,`o`],[`ύ`,`y`],[`ή`,`i`],[`ώ`,`o`],[`ς`,`s`],[`ϊ`,`i`],[`ΰ`,`y`],[`ϋ`,`y`],[`ΐ`,`i`],[`Α`,`A`],[`Β`,`B`],[`Γ`,`G`],[`Δ`,`D`],[`Ε`,`E`],[`Ζ`,`Z`],[`Η`,`I`],[`Θ`,`TH`],[`Ι`,`I`],[`Κ`,`K`],[`Λ`,`L`],[`Μ`,`M`],[`Ν`,`N`],[`Ξ`,`KS`],[`Ο`,`O`],[`Π`,`P`],[`Ρ`,`R`],[`Σ`,`S`],[`Τ`,`T`],[`Υ`,`Y`],[`Φ`,`F`],[`Χ`,`X`],[`Ψ`,`PS`],[`Ω`,`O`],[`Ά`,`A`],[`Έ`,`E`],[`Ί`,`I`],[`Ό`,`O`],[`Ύ`,`Y`],[`Ή`,`I`],[`Ώ`,`O`],[`Ϊ`,`I`],[`Ϋ`,`Y`],[`ā`,`a`],[`ē`,`e`],[`ģ`,`g`],[`ī`,`i`],[`ķ`,`k`],[`ļ`,`l`],[`ņ`,`n`],[`ū`,`u`],[`Ā`,`A`],[`Ē`,`E`],[`Ģ`,`G`],[`Ī`,`I`],[`Ķ`,`K`],[`Ļ`,`L`],[`Ņ`,`N`],[`Ū`,`U`],[`č`,`c`],[`š`,`s`],[`ž`,`z`],[`Č`,`C`],[`Š`,`S`],[`Ž`,`Z`],[`ą`,`a`],[`č`,`c`],[`ę`,`e`],[`ė`,`e`],[`į`,`i`],[`š`,`s`],[`ų`,`u`],[`ū`,`u`],[`ž`,`z`],[`Ą`,`A`],[`Č`,`C`],[`Ę`,`E`],[`Ė`,`E`],[`Į`,`I`],[`Š`,`S`],[`Ų`,`U`],[`Ū`,`U`],[`Ќ`,`Kj`],[`ќ`,`kj`],[`Љ`,`Lj`],[`љ`,`lj`],[`Њ`,`Nj`],[`њ`,`nj`],[`Тс`,`Ts`],[`тс`,`ts`],[`ą`,`a`],[`ć`,`c`],[`ę`,`e`],[`ł`,`l`],[`ń`,`n`],[`ś`,`s`],[`ź`,`z`],[`ż`,`z`],[`Ą`,`A`],[`Ć`,`C`],[`Ę`,`E`],[`Ł`,`L`],[`Ń`,`N`],[`Ś`,`S`],[`Ź`,`Z`],[`Ż`,`Z`],[`Є`,`Ye`],[`І`,`I`],[`Ї`,`Yi`],[`Ґ`,`G`],[`є`,`ye`],[`і`,`i`],[`ї`,`yi`],[`ґ`,`g`],[`IJ`,`IJ`],[`ij`,`ij`],[`¢`,`c`],[`¥`,`Y`],[`߿`,`b`],[`৳`,`t`],[`૱`,`Bo`],[`฿`,`B`],[`₠`,`CE`],[`₡`,`C`],[`₢`,`Cr`],[`₣`,`F`],[`₥`,`m`],[`₦`,`N`],[`₧`,`Pt`],[`₨`,`Rs`],[`₩`,`W`],[`₫`,`s`],[`€`,`E`],[`₭`,`K`],[`₮`,`T`],[`₯`,`Dp`],[`₰`,`S`],[`₱`,`P`],[`₲`,`G`],[`₳`,`A`],[`₴`,`S`],[`₵`,`C`],[`₶`,`tt`],[`₷`,`S`],[`₸`,`T`],[`₹`,`R`],[`₺`,`L`],[`₽`,`P`],[`₿`,`B`],[`﹩`,`$`],[`¢`,`c`],[`¥`,`Y`],[`₩`,`W`],[`𝐀`,`A`],[`𝐁`,`B`],[`𝐂`,`C`],[`𝐃`,`D`],[`𝐄`,`E`],[`𝐅`,`F`],[`𝐆`,`G`],[`𝐇`,`H`],[`𝐈`,`I`],[`𝐉`,`J`],[`𝐊`,`K`],[`𝐋`,`L`],[`𝐌`,`M`],[`𝐍`,`N`],[`𝐎`,`O`],[`𝐏`,`P`],[`𝐐`,`Q`],[`𝐑`,`R`],[`𝐒`,`S`],[`𝐓`,`T`],[`𝐔`,`U`],[`𝐕`,`V`],[`𝐖`,`W`],[`𝐗`,`X`],[`𝐘`,`Y`],[`𝐙`,`Z`],[`𝐚`,`a`],[`𝐛`,`b`],[`𝐜`,`c`],[`𝐝`,`d`],[`𝐞`,`e`],[`𝐟`,`f`],[`𝐠`,`g`],[`𝐡`,`h`],[`𝐢`,`i`],[`𝐣`,`j`],[`𝐤`,`k`],[`𝐥`,`l`],[`𝐦`,`m`],[`𝐧`,`n`],[`𝐨`,`o`],[`𝐩`,`p`],[`𝐪`,`q`],[`𝐫`,`r`],[`𝐬`,`s`],[`𝐭`,`t`],[`𝐮`,`u`],[`𝐯`,`v`],[`𝐰`,`w`],[`𝐱`,`x`],[`𝐲`,`y`],[`𝐳`,`z`],[`𝐴`,`A`],[`𝐵`,`B`],[`𝐶`,`C`],[`𝐷`,`D`],[`𝐸`,`E`],[`𝐹`,`F`],[`𝐺`,`G`],[`𝐻`,`H`],[`𝐼`,`I`],[`𝐽`,`J`],[`𝐾`,`K`],[`𝐿`,`L`],[`𝑀`,`M`],[`𝑁`,`N`],[`𝑂`,`O`],[`𝑃`,`P`],[`𝑄`,`Q`],[`𝑅`,`R`],[`𝑆`,`S`],[`𝑇`,`T`],[`𝑈`,`U`],[`𝑉`,`V`],[`𝑊`,`W`],[`𝑋`,`X`],[`𝑌`,`Y`],[`𝑍`,`Z`],[`𝑎`,`a`],[`𝑏`,`b`],[`𝑐`,`c`],[`𝑑`,`d`],[`𝑒`,`e`],[`𝑓`,`f`],[`𝑔`,`g`],[`𝑖`,`i`],[`𝑗`,`j`],[`𝑘`,`k`],[`𝑙`,`l`],[`𝑚`,`m`],[`𝑛`,`n`],[`𝑜`,`o`],[`𝑝`,`p`],[`𝑞`,`q`],[`𝑟`,`r`],[`𝑠`,`s`],[`𝑡`,`t`],[`𝑢`,`u`],[`𝑣`,`v`],[`𝑤`,`w`],[`𝑥`,`x`],[`𝑦`,`y`],[`𝑧`,`z`],[`𝑨`,`A`],[`𝑩`,`B`],[`𝑪`,`C`],[`𝑫`,`D`],[`𝑬`,`E`],[`𝑭`,`F`],[`𝑮`,`G`],[`𝑯`,`H`],[`𝑰`,`I`],[`𝑱`,`J`],[`𝑲`,`K`],[`𝑳`,`L`],[`𝑴`,`M`],[`𝑵`,`N`],[`𝑶`,`O`],[`𝑷`,`P`],[`𝑸`,`Q`],[`𝑹`,`R`],[`𝑺`,`S`],[`𝑻`,`T`],[`𝑼`,`U`],[`𝑽`,`V`],[`𝑾`,`W`],[`𝑿`,`X`],[`𝒀`,`Y`],[`𝒁`,`Z`],[`𝒂`,`a`],[`𝒃`,`b`],[`𝒄`,`c`],[`𝒅`,`d`],[`𝒆`,`e`],[`𝒇`,`f`],[`𝒈`,`g`],[`𝒉`,`h`],[`𝒊`,`i`],[`𝒋`,`j`],[`𝒌`,`k`],[`𝒍`,`l`],[`𝒎`,`m`],[`𝒏`,`n`],[`𝒐`,`o`],[`𝒑`,`p`],[`𝒒`,`q`],[`𝒓`,`r`],[`𝒔`,`s`],[`𝒕`,`t`],[`𝒖`,`u`],[`𝒗`,`v`],[`𝒘`,`w`],[`𝒙`,`x`],[`𝒚`,`y`],[`𝒛`,`z`],[`𝒜`,`A`],[`𝒞`,`C`],[`𝒟`,`D`],[`𝒢`,`g`],[`𝒥`,`J`],[`𝒦`,`K`],[`𝒩`,`N`],[`𝒪`,`O`],[`𝒫`,`P`],[`𝒬`,`Q`],[`𝒮`,`S`],[`𝒯`,`T`],[`𝒰`,`U`],[`𝒱`,`V`],[`𝒲`,`W`],[`𝒳`,`X`],[`𝒴`,`Y`],[`𝒵`,`Z`],[`𝒶`,`a`],[`𝒷`,`b`],[`𝒸`,`c`],[`𝒹`,`d`],[`𝒻`,`f`],[`𝒽`,`h`],[`𝒾`,`i`],[`𝒿`,`j`],[`𝓀`,`k`],[`𝓁`,`l`],[`𝓂`,`m`],[`𝓃`,`n`],[`𝓅`,`p`],[`𝓆`,`q`],[`𝓇`,`r`],[`𝓈`,`s`],[`𝓉`,`t`],[`𝓊`,`u`],[`𝓋`,`v`],[`𝓌`,`w`],[`𝓍`,`x`],[`𝓎`,`y`],[`𝓏`,`z`],[`𝓐`,`A`],[`𝓑`,`B`],[`𝓒`,`C`],[`𝓓`,`D`],[`𝓔`,`E`],[`𝓕`,`F`],[`𝓖`,`G`],[`𝓗`,`H`],[`𝓘`,`I`],[`𝓙`,`J`],[`𝓚`,`K`],[`𝓛`,`L`],[`𝓜`,`M`],[`𝓝`,`N`],[`𝓞`,`O`],[`𝓟`,`P`],[`𝓠`,`Q`],[`𝓡`,`R`],[`𝓢`,`S`],[`𝓣`,`T`],[`𝓤`,`U`],[`𝓥`,`V`],[`𝓦`,`W`],[`𝓧`,`X`],[`𝓨`,`Y`],[`𝓩`,`Z`],[`𝓪`,`a`],[`𝓫`,`b`],[`𝓬`,`c`],[`𝓭`,`d`],[`𝓮`,`e`],[`𝓯`,`f`],[`𝓰`,`g`],[`𝓱`,`h`],[`𝓲`,`i`],[`𝓳`,`j`],[`𝓴`,`k`],[`𝓵`,`l`],[`𝓶`,`m`],[`𝓷`,`n`],[`𝓸`,`o`],[`𝓹`,`p`],[`𝓺`,`q`],[`𝓻`,`r`],[`𝓼`,`s`],[`𝓽`,`t`],[`𝓾`,`u`],[`𝓿`,`v`],[`𝔀`,`w`],[`𝔁`,`x`],[`𝔂`,`y`],[`𝔃`,`z`],[`𝔄`,`A`],[`𝔅`,`B`],[`𝔇`,`D`],[`𝔈`,`E`],[`𝔉`,`F`],[`𝔊`,`G`],[`𝔍`,`J`],[`𝔎`,`K`],[`𝔏`,`L`],[`𝔐`,`M`],[`𝔑`,`N`],[`𝔒`,`O`],[`𝔓`,`P`],[`𝔔`,`Q`],[`𝔖`,`S`],[`𝔗`,`T`],[`𝔘`,`U`],[`𝔙`,`V`],[`𝔚`,`W`],[`𝔛`,`X`],[`𝔜`,`Y`],[`𝔞`,`a`],[`𝔟`,`b`],[`𝔠`,`c`],[`𝔡`,`d`],[`𝔢`,`e`],[`𝔣`,`f`],[`𝔤`,`g`],[`𝔥`,`h`],[`𝔦`,`i`],[`𝔧`,`j`],[`𝔨`,`k`],[`𝔩`,`l`],[`𝔪`,`m`],[`𝔫`,`n`],[`𝔬`,`o`],[`𝔭`,`p`],[`𝔮`,`q`],[`𝔯`,`r`],[`𝔰`,`s`],[`𝔱`,`t`],[`𝔲`,`u`],[`𝔳`,`v`],[`𝔴`,`w`],[`𝔵`,`x`],[`𝔶`,`y`],[`𝔷`,`z`],[`𝔸`,`A`],[`𝔹`,`B`],[`𝔻`,`D`],[`𝔼`,`E`],[`𝔽`,`F`],[`𝔾`,`G`],[`𝕀`,`I`],[`𝕁`,`J`],[`𝕂`,`K`],[`𝕃`,`L`],[`𝕄`,`M`],[`𝕆`,`O`],[`𝕊`,`S`],[`𝕋`,`T`],[`𝕌`,`U`],[`𝕍`,`V`],[`𝕎`,`W`],[`𝕏`,`X`],[`𝕐`,`Y`],[`𝕒`,`a`],[`𝕓`,`b`],[`𝕔`,`c`],[`𝕕`,`d`],[`𝕖`,`e`],[`𝕗`,`f`],[`𝕘`,`g`],[`𝕙`,`h`],[`𝕚`,`i`],[`𝕛`,`j`],[`𝕜`,`k`],[`𝕝`,`l`],[`𝕞`,`m`],[`𝕟`,`n`],[`𝕠`,`o`],[`𝕡`,`p`],[`𝕢`,`q`],[`𝕣`,`r`],[`𝕤`,`s`],[`𝕥`,`t`],[`𝕦`,`u`],[`𝕧`,`v`],[`𝕨`,`w`],[`𝕩`,`x`],[`𝕪`,`y`],[`𝕫`,`z`],[`𝕬`,`A`],[`𝕭`,`B`],[`𝕮`,`C`],[`𝕯`,`D`],[`𝕰`,`E`],[`𝕱`,`F`],[`𝕲`,`G`],[`𝕳`,`H`],[`𝕴`,`I`],[`𝕵`,`J`],[`𝕶`,`K`],[`𝕷`,`L`],[`𝕸`,`M`],[`𝕹`,`N`],[`𝕺`,`O`],[`𝕻`,`P`],[`𝕼`,`Q`],[`𝕽`,`R`],[`𝕾`,`S`],[`𝕿`,`T`],[`𝖀`,`U`],[`𝖁`,`V`],[`𝖂`,`W`],[`𝖃`,`X`],[`𝖄`,`Y`],[`𝖅`,`Z`],[`𝖆`,`a`],[`𝖇`,`b`],[`𝖈`,`c`],[`𝖉`,`d`],[`𝖊`,`e`],[`𝖋`,`f`],[`𝖌`,`g`],[`𝖍`,`h`],[`𝖎`,`i`],[`𝖏`,`j`],[`𝖐`,`k`],[`𝖑`,`l`],[`𝖒`,`m`],[`𝖓`,`n`],[`𝖔`,`o`],[`𝖕`,`p`],[`𝖖`,`q`],[`𝖗`,`r`],[`𝖘`,`s`],[`𝖙`,`t`],[`𝖚`,`u`],[`𝖛`,`v`],[`𝖜`,`w`],[`𝖝`,`x`],[`𝖞`,`y`],[`𝖟`,`z`],[`𝖠`,`A`],[`𝖡`,`B`],[`𝖢`,`C`],[`𝖣`,`D`],[`𝖤`,`E`],[`𝖥`,`F`],[`𝖦`,`G`],[`𝖧`,`H`],[`𝖨`,`I`],[`𝖩`,`J`],[`𝖪`,`K`],[`𝖫`,`L`],[`𝖬`,`M`],[`𝖭`,`N`],[`𝖮`,`O`],[`𝖯`,`P`],[`𝖰`,`Q`],[`𝖱`,`R`],[`𝖲`,`S`],[`𝖳`,`T`],[`𝖴`,`U`],[`𝖵`,`V`],[`𝖶`,`W`],[`𝖷`,`X`],[`𝖸`,`Y`],[`𝖹`,`Z`],[`𝖺`,`a`],[`𝖻`,`b`],[`𝖼`,`c`],[`𝖽`,`d`],[`𝖾`,`e`],[`𝖿`,`f`],[`𝗀`,`g`],[`𝗁`,`h`],[`𝗂`,`i`],[`𝗃`,`j`],[`𝗄`,`k`],[`𝗅`,`l`],[`𝗆`,`m`],[`𝗇`,`n`],[`𝗈`,`o`],[`𝗉`,`p`],[`𝗊`,`q`],[`𝗋`,`r`],[`𝗌`,`s`],[`𝗍`,`t`],[`𝗎`,`u`],[`𝗏`,`v`],[`𝗐`,`w`],[`𝗑`,`x`],[`𝗒`,`y`],[`𝗓`,`z`],[`𝗔`,`A`],[`𝗕`,`B`],[`𝗖`,`C`],[`𝗗`,`D`],[`𝗘`,`E`],[`𝗙`,`F`],[`𝗚`,`G`],[`𝗛`,`H`],[`𝗜`,`I`],[`𝗝`,`J`],[`𝗞`,`K`],[`𝗟`,`L`],[`𝗠`,`M`],[`𝗡`,`N`],[`𝗢`,`O`],[`𝗣`,`P`],[`𝗤`,`Q`],[`𝗥`,`R`],[`𝗦`,`S`],[`𝗧`,`T`],[`𝗨`,`U`],[`𝗩`,`V`],[`𝗪`,`W`],[`𝗫`,`X`],[`𝗬`,`Y`],[`𝗭`,`Z`],[`𝗮`,`a`],[`𝗯`,`b`],[`𝗰`,`c`],[`𝗱`,`d`],[`𝗲`,`e`],[`𝗳`,`f`],[`𝗴`,`g`],[`𝗵`,`h`],[`𝗶`,`i`],[`𝗷`,`j`],[`𝗸`,`k`],[`𝗹`,`l`],[`𝗺`,`m`],[`𝗻`,`n`],[`𝗼`,`o`],[`𝗽`,`p`],[`𝗾`,`q`],[`𝗿`,`r`],[`𝘀`,`s`],[`𝘁`,`t`],[`𝘂`,`u`],[`𝘃`,`v`],[`𝘄`,`w`],[`𝘅`,`x`],[`𝘆`,`y`],[`𝘇`,`z`],[`𝘈`,`A`],[`𝘉`,`B`],[`𝘊`,`C`],[`𝘋`,`D`],[`𝘌`,`E`],[`𝘍`,`F`],[`𝘎`,`G`],[`𝘏`,`H`],[`𝘐`,`I`],[`𝘑`,`J`],[`𝘒`,`K`],[`𝘓`,`L`],[`𝘔`,`M`],[`𝘕`,`N`],[`𝘖`,`O`],[`𝘗`,`P`],[`𝘘`,`Q`],[`𝘙`,`R`],[`𝘚`,`S`],[`𝘛`,`T`],[`𝘜`,`U`],[`𝘝`,`V`],[`𝘞`,`W`],[`𝘟`,`X`],[`𝘠`,`Y`],[`𝘡`,`Z`],[`𝘢`,`a`],[`𝘣`,`b`],[`𝘤`,`c`],[`𝘥`,`d`],[`𝘦`,`e`],[`𝘧`,`f`],[`𝘨`,`g`],[`𝘩`,`h`],[`𝘪`,`i`],[`𝘫`,`j`],[`𝘬`,`k`],[`𝘭`,`l`],[`𝘮`,`m`],[`𝘯`,`n`],[`𝘰`,`o`],[`𝘱`,`p`],[`𝘲`,`q`],[`𝘳`,`r`],[`𝘴`,`s`],[`𝘵`,`t`],[`𝘶`,`u`],[`𝘷`,`v`],[`𝘸`,`w`],[`𝘹`,`x`],[`𝘺`,`y`],[`𝘻`,`z`],[`𝘼`,`A`],[`𝘽`,`B`],[`𝘾`,`C`],[`𝘿`,`D`],[`𝙀`,`E`],[`𝙁`,`F`],[`𝙂`,`G`],[`𝙃`,`H`],[`𝙄`,`I`],[`𝙅`,`J`],[`𝙆`,`K`],[`𝙇`,`L`],[`𝙈`,`M`],[`𝙉`,`N`],[`𝙊`,`O`],[`𝙋`,`P`],[`𝙌`,`Q`],[`𝙍`,`R`],[`𝙎`,`S`],[`𝙏`,`T`],[`𝙐`,`U`],[`𝙑`,`V`],[`𝙒`,`W`],[`𝙓`,`X`],[`𝙔`,`Y`],[`𝙕`,`Z`],[`𝙖`,`a`],[`𝙗`,`b`],[`𝙘`,`c`],[`𝙙`,`d`],[`𝙚`,`e`],[`𝙛`,`f`],[`𝙜`,`g`],[`𝙝`,`h`],[`𝙞`,`i`],[`𝙟`,`j`],[`𝙠`,`k`],[`𝙡`,`l`],[`𝙢`,`m`],[`𝙣`,`n`],[`𝙤`,`o`],[`𝙥`,`p`],[`𝙦`,`q`],[`𝙧`,`r`],[`𝙨`,`s`],[`𝙩`,`t`],[`𝙪`,`u`],[`𝙫`,`v`],[`𝙬`,`w`],[`𝙭`,`x`],[`𝙮`,`y`],[`𝙯`,`z`],[`𝙰`,`A`],[`𝙱`,`B`],[`𝙲`,`C`],[`𝙳`,`D`],[`𝙴`,`E`],[`𝙵`,`F`],[`𝙶`,`G`],[`𝙷`,`H`],[`𝙸`,`I`],[`𝙹`,`J`],[`𝙺`,`K`],[`𝙻`,`L`],[`𝙼`,`M`],[`𝙽`,`N`],[`𝙾`,`O`],[`𝙿`,`P`],[`𝚀`,`Q`],[`𝚁`,`R`],[`𝚂`,`S`],[`𝚃`,`T`],[`𝚄`,`U`],[`𝚅`,`V`],[`𝚆`,`W`],[`𝚇`,`X`],[`𝚈`,`Y`],[`𝚉`,`Z`],[`𝚊`,`a`],[`𝚋`,`b`],[`𝚌`,`c`],[`𝚍`,`d`],[`𝚎`,`e`],[`𝚏`,`f`],[`𝚐`,`g`],[`𝚑`,`h`],[`𝚒`,`i`],[`𝚓`,`j`],[`𝚔`,`k`],[`𝚕`,`l`],[`𝚖`,`m`],[`𝚗`,`n`],[`𝚘`,`o`],[`𝚙`,`p`],[`𝚚`,`q`],[`𝚛`,`r`],[`𝚜`,`s`],[`𝚝`,`t`],[`𝚞`,`u`],[`𝚟`,`v`],[`𝚠`,`w`],[`𝚡`,`x`],[`𝚢`,`y`],[`𝚣`,`z`],[`𝚤`,`l`],[`𝚥`,`j`],[`𝛢`,`A`],[`𝛣`,`B`],[`𝛤`,`G`],[`𝛥`,`D`],[`𝛦`,`E`],[`𝛧`,`Z`],[`𝛨`,`I`],[`𝛩`,`TH`],[`𝛪`,`I`],[`𝛫`,`K`],[`𝛬`,`L`],[`𝛭`,`M`],[`𝛮`,`N`],[`𝛯`,`KS`],[`𝛰`,`O`],[`𝛱`,`P`],[`𝛲`,`R`],[`𝛳`,`TH`],[`𝛴`,`S`],[`𝛵`,`T`],[`𝛶`,`Y`],[`𝛷`,`F`],[`𝛸`,`x`],[`𝛹`,`PS`],[`𝛺`,`O`],[`𝛻`,`D`],[`𝛼`,`a`],[`𝛽`,`b`],[`𝛾`,`g`],[`𝛿`,`d`],[`𝜀`,`e`],[`𝜁`,`z`],[`𝜂`,`i`],[`𝜃`,`th`],[`𝜄`,`i`],[`𝜅`,`k`],[`𝜆`,`l`],[`𝜇`,`m`],[`𝜈`,`n`],[`𝜉`,`ks`],[`𝜊`,`o`],[`𝜋`,`p`],[`𝜌`,`r`],[`𝜍`,`s`],[`𝜎`,`s`],[`𝜏`,`t`],[`𝜐`,`y`],[`𝜑`,`f`],[`𝜒`,`x`],[`𝜓`,`ps`],[`𝜔`,`o`],[`𝜕`,`d`],[`𝜖`,`E`],[`𝜗`,`TH`],[`𝜘`,`K`],[`𝜙`,`f`],[`𝜚`,`r`],[`𝜛`,`p`],[`𝜜`,`A`],[`𝜝`,`V`],[`𝜞`,`G`],[`𝜟`,`D`],[`𝜠`,`E`],[`𝜡`,`Z`],[`𝜢`,`I`],[`𝜣`,`TH`],[`𝜤`,`I`],[`𝜥`,`K`],[`𝜦`,`L`],[`𝜧`,`M`],[`𝜨`,`N`],[`𝜩`,`KS`],[`𝜪`,`O`],[`𝜫`,`P`],[`𝜬`,`S`],[`𝜭`,`TH`],[`𝜮`,`S`],[`𝜯`,`T`],[`𝜰`,`Y`],[`𝜱`,`F`],[`𝜲`,`X`],[`𝜳`,`PS`],[`𝜴`,`O`],[`𝜵`,`D`],[`𝜶`,`a`],[`𝜷`,`v`],[`𝜸`,`g`],[`𝜹`,`d`],[`𝜺`,`e`],[`𝜻`,`z`],[`𝜼`,`i`],[`𝜽`,`th`],[`𝜾`,`i`],[`𝜿`,`k`],[`𝝀`,`l`],[`𝝁`,`m`],[`𝝂`,`n`],[`𝝃`,`ks`],[`𝝄`,`o`],[`𝝅`,`p`],[`𝝆`,`r`],[`𝝇`,`s`],[`𝝈`,`s`],[`𝝉`,`t`],[`𝝊`,`y`],[`𝝋`,`f`],[`𝝌`,`x`],[`𝝍`,`ps`],[`𝝎`,`o`],[`𝝏`,`a`],[`𝝐`,`e`],[`𝝑`,`i`],[`𝝒`,`k`],[`𝝓`,`f`],[`𝝔`,`r`],[`𝝕`,`p`],[`𝝖`,`A`],[`𝝗`,`B`],[`𝝘`,`G`],[`𝝙`,`D`],[`𝝚`,`E`],[`𝝛`,`Z`],[`𝝜`,`I`],[`𝝝`,`TH`],[`𝝞`,`I`],[`𝝟`,`K`],[`𝝠`,`L`],[`𝝡`,`M`],[`𝝢`,`N`],[`𝝣`,`KS`],[`𝝤`,`O`],[`𝝥`,`P`],[`𝝦`,`R`],[`𝝧`,`TH`],[`𝝨`,`S`],[`𝝩`,`T`],[`𝝪`,`Y`],[`𝝫`,`F`],[`𝝬`,`X`],[`𝝭`,`PS`],[`𝝮`,`O`],[`𝝯`,`D`],[`𝝰`,`a`],[`𝝱`,`v`],[`𝝲`,`g`],[`𝝳`,`d`],[`𝝴`,`e`],[`𝝵`,`z`],[`𝝶`,`i`],[`𝝷`,`th`],[`𝝸`,`i`],[`𝝹`,`k`],[`𝝺`,`l`],[`𝝻`,`m`],[`𝝼`,`n`],[`𝝽`,`ks`],[`𝝾`,`o`],[`𝝿`,`p`],[`𝞀`,`r`],[`𝞁`,`s`],[`𝞂`,`s`],[`𝞃`,`t`],[`𝞄`,`y`],[`𝞅`,`f`],[`𝞆`,`x`],[`𝞇`,`ps`],[`𝞈`,`o`],[`𝞉`,`a`],[`𝞊`,`e`],[`𝞋`,`i`],[`𝞌`,`k`],[`𝞍`,`f`],[`𝞎`,`r`],[`𝞏`,`p`],[`𝞐`,`A`],[`𝞑`,`V`],[`𝞒`,`G`],[`𝞓`,`D`],[`𝞔`,`E`],[`𝞕`,`Z`],[`𝞖`,`I`],[`𝞗`,`TH`],[`𝞘`,`I`],[`𝞙`,`K`],[`𝞚`,`L`],[`𝞛`,`M`],[`𝞜`,`N`],[`𝞝`,`KS`],[`𝞞`,`O`],[`𝞟`,`P`],[`𝞠`,`S`],[`𝞡`,`TH`],[`𝞢`,`S`],[`𝞣`,`T`],[`𝞤`,`Y`],[`𝞥`,`F`],[`𝞦`,`X`],[`𝞧`,`PS`],[`𝞨`,`O`],[`𝞩`,`D`],[`𝞪`,`av`],[`𝞫`,`g`],[`𝞬`,`d`],[`𝞭`,`e`],[`𝞮`,`z`],[`𝞯`,`i`],[`𝞰`,`i`],[`𝞱`,`th`],[`𝞲`,`i`],[`𝞳`,`k`],[`𝞴`,`l`],[`𝞵`,`m`],[`𝞶`,`n`],[`𝞷`,`ks`],[`𝞸`,`o`],[`𝞹`,`p`],[`𝞺`,`r`],[`𝞻`,`s`],[`𝞼`,`s`],[`𝞽`,`t`],[`𝞾`,`y`],[`𝞿`,`f`],[`𝟀`,`x`],[`𝟁`,`ps`],[`𝟂`,`o`],[`𝟃`,`a`],[`𝟄`,`e`],[`𝟅`,`i`],[`𝟆`,`k`],[`𝟇`,`f`],[`𝟈`,`r`],[`𝟉`,`p`],[`𝟊`,`F`],[`𝟋`,`f`],[`⒜`,`(a)`],[`⒝`,`(b)`],[`⒞`,`(c)`],[`⒟`,`(d)`],[`⒠`,`(e)`],[`⒡`,`(f)`],[`⒢`,`(g)`],[`⒣`,`(h)`],[`⒤`,`(i)`],[`⒥`,`(j)`],[`⒦`,`(k)`],[`⒧`,`(l)`],[`⒨`,`(m)`],[`⒩`,`(n)`],[`⒪`,`(o)`],[`⒫`,`(p)`],[`⒬`,`(q)`],[`⒭`,`(r)`],[`⒮`,`(s)`],[`⒯`,`(t)`],[`⒰`,`(u)`],[`⒱`,`(v)`],[`⒲`,`(w)`],[`⒳`,`(x)`],[`⒴`,`(y)`],[`⒵`,`(z)`],[`Ⓐ`,`(A)`],[`Ⓑ`,`(B)`],[`Ⓒ`,`(C)`],[`Ⓓ`,`(D)`],[`Ⓔ`,`(E)`],[`Ⓕ`,`(F)`],[`Ⓖ`,`(G)`],[`Ⓗ`,`(H)`],[`Ⓘ`,`(I)`],[`Ⓙ`,`(J)`],[`Ⓚ`,`(K)`],[`Ⓛ`,`(L)`],[`Ⓝ`,`(N)`],[`Ⓞ`,`(O)`],[`Ⓟ`,`(P)`],[`Ⓠ`,`(Q)`],[`Ⓡ`,`(R)`],[`Ⓢ`,`(S)`],[`Ⓣ`,`(T)`],[`Ⓤ`,`(U)`],[`Ⓥ`,`(V)`],[`Ⓦ`,`(W)`],[`Ⓧ`,`(X)`],[`Ⓨ`,`(Y)`],[`Ⓩ`,`(Z)`],[`ⓐ`,`(a)`],[`ⓑ`,`(b)`],[`ⓒ`,`(c)`],[`ⓓ`,`(d)`],[`ⓔ`,`(e)`],[`ⓕ`,`(f)`],[`ⓖ`,`(g)`],[`ⓗ`,`(h)`],[`ⓘ`,`(i)`],[`ⓙ`,`(j)`],[`ⓚ`,`(k)`],[`ⓛ`,`(l)`],[`ⓜ`,`(m)`],[`ⓝ`,`(n)`],[`ⓞ`,`(o)`],[`ⓟ`,`(p)`],[`ⓠ`,`(q)`],[`ⓡ`,`(r)`],[`ⓢ`,`(s)`],[`ⓣ`,`(t)`],[`ⓤ`,`(u)`],[`ⓥ`,`(v)`],[`ⓦ`,`(w)`],[`ⓧ`,`(x)`],[`ⓨ`,`(y)`],[`ⓩ`,`(z)`],[`Ċ`,`C`],[`ċ`,`c`],[`Ġ`,`G`],[`ġ`,`g`],[`Ħ`,`H`],[`ħ`,`h`],[`Ż`,`Z`],[`ż`,`z`],[`𝟎`,`0`],[`𝟏`,`1`],[`𝟐`,`2`],[`𝟑`,`3`],[`𝟒`,`4`],[`𝟓`,`5`],[`𝟔`,`6`],[`𝟕`,`7`],[`𝟖`,`8`],[`𝟗`,`9`],[`𝟘`,`0`],[`𝟙`,`1`],[`𝟚`,`2`],[`𝟛`,`3`],[`𝟜`,`4`],[`𝟝`,`5`],[`𝟞`,`6`],[`𝟟`,`7`],[`𝟠`,`8`],[`𝟡`,`9`],[`𝟢`,`0`],[`𝟣`,`1`],[`𝟤`,`2`],[`𝟥`,`3`],[`𝟦`,`4`],[`𝟧`,`5`],[`𝟨`,`6`],[`𝟩`,`7`],[`𝟪`,`8`],[`𝟫`,`9`],[`𝟬`,`0`],[`𝟭`,`1`],[`𝟮`,`2`],[`𝟯`,`3`],[`𝟰`,`4`],[`𝟱`,`5`],[`𝟲`,`6`],[`𝟳`,`7`],[`𝟴`,`8`],[`𝟵`,`9`],[`𝟶`,`0`],[`𝟷`,`1`],[`𝟸`,`2`],[`𝟹`,`3`],[`𝟺`,`4`],[`𝟻`,`5`],[`𝟼`,`6`],[`𝟽`,`7`],[`𝟾`,`8`],[`𝟿`,`9`],[`①`,`1`],[`②`,`2`],[`③`,`3`],[`④`,`4`],[`⑤`,`5`],[`⑥`,`6`],[`⑦`,`7`],[`⑧`,`8`],[`⑨`,`9`],[`⑩`,`10`],[`⑪`,`11`],[`⑫`,`12`],[`⑬`,`13`],[`⑭`,`14`],[`⑮`,`15`],[`⑯`,`16`],[`⑰`,`17`],[`⑱`,`18`],[`⑲`,`19`],[`⑳`,`20`],[`⑴`,`1`],[`⑵`,`2`],[`⑶`,`3`],[`⑷`,`4`],[`⑸`,`5`],[`⑹`,`6`],[`⑺`,`7`],[`⑻`,`8`],[`⑼`,`9`],[`⑽`,`10`],[`⑾`,`11`],[`⑿`,`12`],[`⒀`,`13`],[`⒁`,`14`],[`⒂`,`15`],[`⒃`,`16`],[`⒄`,`17`],[`⒅`,`18`],[`⒆`,`19`],[`⒇`,`20`],[`⒈`,`1.`],[`⒉`,`2.`],[`⒊`,`3.`],[`⒋`,`4.`],[`⒌`,`5.`],[`⒍`,`6.`],[`⒎`,`7.`],[`⒏`,`8.`],[`⒐`,`9.`],[`⒑`,`10.`],[`⒒`,`11.`],[`⒓`,`12.`],[`⒔`,`13.`],[`⒕`,`14.`],[`⒖`,`15.`],[`⒗`,`16.`],[`⒘`,`17.`],[`⒙`,`18.`],[`⒚`,`19.`],[`⒛`,`20.`],[`⓪`,`0`],[`⓫`,`11`],[`⓬`,`12`],[`⓭`,`13`],[`⓮`,`14`],[`⓯`,`15`],[`⓰`,`16`],[`⓱`,`17`],[`⓲`,`18`],[`⓳`,`19`],[`⓴`,`20`],[`⓵`,`1`],[`⓶`,`2`],[`⓷`,`3`],[`⓸`,`4`],[`⓹`,`5`],[`⓺`,`6`],[`⓻`,`7`],[`⓼`,`8`],[`⓽`,`9`],[`⓾`,`10`],[`⓿`,`0`],[`🙰`,`&`],[`🙱`,`&`],[`🙲`,`&`],[`🙳`,`&`],[`🙴`,`&`],[`🙵`,`&`],[`🙶`,`"`],[`🙷`,`"`],[`🙸`,`"`],[`‽`,`?!`],[`🙹`,`?!`],[`🙺`,`?!`],[`🙻`,`?!`],[`🙼`,`/`],[`🙽`,`\\`],[`🜇`,`AR`],[`🜈`,`V`],[`🜉`,`V`],[`🜆`,`VR`],[`🜅`,`VF`],[`🜩`,`2`],[`🜪`,`5`],[`🝡`,`f`],[`🝢`,`W`],[`🝣`,`U`],[`🝧`,`V`],[`🝨`,`T`],[`🝪`,`V`],[`🝫`,`MB`],[`🝬`,`VB`],[`🝲`,`3B`],[`🝳`,`3B`],[`💯`,`100`],[`🔙`,`BACK`],[`🔚`,`END`],[`🔛`,`ON!`],[`🔜`,`SOON`],[`🔝`,`TOP`],[`🔞`,`18`],[`🔤`,`abc`],[`🔠`,`ABCD`],[`🔡`,`abcd`],[`🔢`,`1234`],[`🔣`,`T&@%`],[`#️⃣`,`#`],[`*️⃣`,`*`],[`0️⃣`,`0`],[`1️⃣`,`1`],[`2️⃣`,`2`],[`3️⃣`,`3`],[`4️⃣`,`4`],[`5️⃣`,`5`],[`6️⃣`,`6`],[`7️⃣`,`7`],[`8️⃣`,`8`],[`9️⃣`,`9`],[`🔟`,`10`],[`🅰️`,`A`],[`🅱️`,`B`],[`🆎`,`AB`],[`🆑`,`CL`],[`🅾️`,`O`],[`🅿`,`P`],[`🆘`,`SOS`],[`🅲`,`C`],[`🅳`,`D`],[`🅴`,`E`],[`🅵`,`F`],[`🅶`,`G`],[`🅷`,`H`],[`🅸`,`I`],[`🅹`,`J`],[`🅺`,`K`],[`🅻`,`L`],[`🅼`,`M`],[`🅽`,`N`],[`🆀`,`Q`],[`🆁`,`R`],[`🆂`,`S`],[`🆃`,`T`],[`🆄`,`U`],[`🆅`,`V`],[`🆆`,`W`],[`🆇`,`X`],[`🆈`,`Y`],[`🆉`,`Z`],[`−`,`-`],[`⁓`,`-`]]),gI=[[`æ`,`ae`],[`Æ`,`Ae`],[`ø`,`oe`],[`Ø`,`Oe`],[`å`,`aa`],[`Å`,`Aa`]],_I={sv:[[`ä`,`a`],[`Ä`,`A`],[`ö`,`o`],[`Ö`,`O`],[`å`,`a`],[`Å`,`A`]],da:gI,nb:gI,de:[[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`ß`,`ss`],[`ẞ`,`Ss`]],tr:[[`â`,`a`],[`Â`,`A`],[`ö`,`o`],[`Ö`,`O`],[`ü`,`u`],[`Ü`,`U`]],hu:[[`ű`,`u`],[`Ű`,`U`],[`ö`,`o`],[`Ö`,`O`],[`ü`,`u`],[`Ü`,`U`],[`á`,`a`],[`Á`,`A`],[`é`,`e`],[`É`,`E`],[`í`,`i`],[`Í`,`I`],[`ó`,`o`],[`Ó`,`O`],[`ú`,`u`],[`Ú`,`U`]],sr:[[`ђ`,`dj`],[`Ђ`,`Dj`],[`џ`,`dz`],[`Џ`,`Dz`],[`љ`,`lj`],[`Љ`,`Lj`],[`њ`,`nj`],[`Њ`,`Nj`],[`ћ`,`c`],[`Ћ`,`C`],[`ч`,`ch`],[`Ч`,`Ch`],[`ш`,`sh`],[`Ш`,`Sh`],[`ж`,`zh`],[`Ж`,`Zh`]]};for(let e of Object.keys(_I))_I[e]=new Map(_I[e]);var vI=e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),yI=e=>{let t=[...e.keys()].sort((e,t)=>t.length-e.length);return new RegExp(t.map(e=>vI(e)).join(`|`),`gu`)},bI=yI(hI),xI=new Map;for(let[e,t]of Object.entries(_I)){let n=new Map(hI);for(let[e,r]of t)n.set(e,r);xI.set(e,{replacements:n,pattern:yI(n)})}var SI=e=>{if(!e)return;let t=e.toLowerCase().replace(/^no(-|$)/,`nb$1`);if(Object.hasOwn(_I,t))return t;let n=t.split(`-`)[0];if(Object.hasOwn(_I,n))return n};function CI(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};let n=SI(t.locale),r=[...t.customReplacements],i=hI,a=bI;if(n&&({replacements:i,pattern:a}=xI.get(n)),e=e.normalize(),r.length>0){r.sort((e,t)=>t[0].length-e[0].length);for(let[t,n]of r)e=e.replaceAll(t,n)}return e=e.replace(a,e=>i.get(e)??e),e=e.normalize(`NFD`).replaceAll(/\p{Diacritic}/gu,``).normalize(),e=e.replaceAll(/\p{Dash_Punctuation}/gu,`-`),e}var wI=(e,t,n)=>(e.has(t)||e.set(t,n()),e.get(t)),TI=(e,t,n,r)=>{if(e.has(t)){let n=e.get(t);return e.delete(t),e.set(t,n),n}let i=n();return e.set(t,i),e.size>r&&e.delete(e.keys().next().value),i},EI=[`da`,`de`,`hu`,`nb`,`sr`,`sv`,`tr`],DI=new Map,OI=(e,{fallback:t=!0,locale:n=void 0,maxLength:r=void 0}={})=>{let{slug:{encoding:i=`unicode`,clean_accents:a=!1,sanitize_replacement:o=`-`,maxlength:s=void 0,trim:c=!0,lowercase:l=!0}={}}=A($H)??{},u=r??s,d=e;if(a&&(d=CI(d.normalize(`NFD`),{locale:n&&EI.includes(n)?n:void 0})),d=i===`ascii`?d.replaceAll(/[^\w-~]/g,` `):d.replaceAll(/[\p{Z}\p{C}!"#$%&'()*+,/:;<=>?@[\\\]^`{|}]/gu,` `),d=d.trim().replaceAll(/\s+/g,o),o){let e=o.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),t=wI(DI,e,()=>({consecutivePattern:RegExp(`${e}+`,`g`),trimPattern:RegExp(`^${e}+|${e}+$`,`g`)}));d=d.replace(t.consecutivePattern,o),c&&(d=d.replace(t.trimPattern,``))}return!d&&t&&(d=Tf(`short`)),typeof u==`number`&&d.length>u&&(d=PA(d,u,{ellipsis:``})),l&&(d=d.toLocaleLowerCase()),d},kI=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),AI={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`};function jI(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function Uae(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Wae(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function MI(e){return Wae(e)||jI(e)}var NI=document.createElement(`i`);function PI(e){let t=`&`+e+`;`;NI.innerHTML=t;let n=NI.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}var Gae=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`];function FI(e,t){let n=t||{},r=typeof n.additional==`string`?n.additional.charCodeAt(0):n.additional,i=[],a=0,o=-1,s=``,c,l;n.position&&(`start`in n.position||`indent`in n.position?(l=n.position.indent,c=n.position.start):c=n.position);let u=(c?c.line:0)||1,d=(c?c.column:0)||1,f=m(),p;for(a--;++a<=e.length;)if(p===10&&(d=(l?l[o]:0)||1),p=e.charCodeAt(a),p===38){let t=e.charCodeAt(a+1);if(t===9||t===10||t===12||t===32||t===38||t===60||Number.isNaN(t)||r&&t===r){s+=String.fromCharCode(p),d++;continue}let o=a+1,c=o,l=o,u;if(t===35){l=++c;let t=e.charCodeAt(l);t===88||t===120?(u=`hexadecimal`,l=++c):u=`decimal`}else u=`named`;let _=``,v=``,y=``,b=u===`named`?MI:u===`decimal`?jI:Uae;for(l--;++l<=e.length;){let t=e.charCodeAt(l);if(!b(t))break;y+=String.fromCharCode(t),u===`named`&&kI.includes(y)&&(_=y,v=PI(y))}let x=e.charCodeAt(l)===59;if(x){l++;let e=u===`named`&&PI(y);e&&(_=y,v=e)}let S=1+l-o,C=``;if(!(!x&&n.nonTerminated===!1)){if(!y)u!==`named`&&h(4,S);else if(u===`named`){if(x&&!v)h(5,1);else if(_!==y&&(l=c+_.length,S=1+l-c,x=!1),!x){let t=_?1:3;if(n.attribute){let n=e.charCodeAt(l);n===61?(h(t,S),v=``):MI(n)?v=``:h(t,S)}else h(t,S)}C=v}else{x||h(2,S);let e=Number.parseInt(y,u===`hexadecimal`?16:10);if(Kae(e))h(7,S),C=`�`;else if(e in AI)h(6,S),C=AI[e];else{let t=``;qae(e)&&h(6,S),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),C=t+String.fromCharCode(e)}}}if(C){g(),f=m(),a=l-1,d+=l-o+1,i.push(C);let t=m();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,C,{start:f,end:t},e.slice(o-1,l)),f=t}else y=e.slice(o-1,l),s+=y,d+=y.length,a=l-1}else p===10&&(u++,o++,d=0),Number.isNaN(p)?g():(s+=String.fromCharCode(p),d++);return i.join(``);function m(){return{line:u,column:d,offset:a+((c?c.offset:0)||0)}}function h(e,t){let r;n.warning&&(r=m(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,Gae[e],r,e))}function g(){s&&=(i.push(s),n.text&&n.text.call(n.textContext||void 0,s,{start:f,end:m()}),``)}}function Kae(e){return e>=55296&&e<=57343||e>1114111}function qae(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}var II=(e,t)=>{if(!e.includes(`{{`))return e;let{innerTag:n}=e.match(cM)?.groups??{};return n===void 0?e:String(t(n)??``)},LI=(e,t)=>e.map(e=>{let{defaultValue:n,truthyValue:r,falsyValue:i}=e.args,a={...e.args},o=!1;if(n!==void 0){let e=II(n,t);e!==n&&(a.defaultValue=e,o=!0)}if(r!==void 0){let e=II(r,t);e!==r&&(a.truthyValue=e,o=!0)}if(i!==void 0){let e=II(i,t);e!==i&&(a.falsyValue=e,o=!0)}return o?{...e,args:a}:e}),Jae=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e){(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Xae=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),Zae=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){"use strict";var e=`minute`,t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if(typeof r==`string`&&(r=function(e){e===void 0&&(e=``);var r=e.match(t);if(!r)return null;var i=(``+r[0]).match(n)||[`-`,0,0],a=i[0],o=60*i[1]+ +i[2];return o===0?0:a===`+`?o:-o}(r),r===null))return this;var o=Math.abs(r)<=16?60*r:r;if(o===0)return this.utc(i);var s=this.clone();if(i)return s.$offset=o,s.$u=!1,s;var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c,s};var u=o.format;o.format=function(e){var t=e||(this.$u?`YYYY-MM-DDTHH:mm:ss[Z]`:``);return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return e===`s`&&this.$offset?a(this.format(`YYYY-MM-DD HH:mm:ss:SSS`)).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=a(e).local();return f.call(r,i,t,n)}}}))})),RI=l(Jae(),1),zI=l(Yae(),1),BI=l(Xae(),1),VI=l(Zae(),1),Qae=new Set([`local`,`utc`]),HI=new WeakMap,UI=e=>typeof e==`string`&&!Qae.has(e),WI=e=>{let t=HI.get(e);if(t)return t;let{type:n=`datetime-local`,min:r=void 0,max:i=void 0,step:a=void 0,format:o,date_format:s=void 0,time_format:c=void 0,picker_utc:l=!1,input_timezone:u=`local`,output_utc:d=!1}=e,f=typeof u==`string`&&u!==`any`?u:`local`,p=typeof s==`string`?s:``,m=typeof c==`string`?c:``,h=n===`date`||c===!1,g=n===`time`||s===!1,_=h?`9999-12-31`:g?void 0:`9999-12-31T23:59`,v=e.input_timezone===void 0?l?`utc`:`local`:f,y={type:h?`date`:g?`time`:`datetime-local`,min:typeof r==`string`&&r?r:void 0,max:typeof i==`string`&&i?i:_,step:typeof a==`number`&&Number.isInteger(a)&&a>0||a===`any`?a:void 0,format:o||[p,m].join(` `).trim()||void 0,dateOnly:h,timeOnly:g,inputTimeZone:v,outputUTC:e.output_utc===void 0?l:d,utc:v===`utc`,singleCustomTimeZone:UI(v)?v:void 0};return HI.set(e,y),y};RI.default.extend(zI.default),RI.default.extend(BI.default),RI.default.extend(VI.default);var $ae=/\s*\|\s*/,eoe=/^\d{4}-[01]\d-[0-3]\d$/,toe=/T\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?Z$/,noe=Object.entries({date:/^date\('(?.+?)'(?:,\s*'(?.+?)')?\)$/,default:/^default\('(?.+?)'\)$/,ternary:/^ternary\('(?.*?)',\s*'(?.*?)'\)$/,truncate:/^truncate\((?\d+)(?:,\s*'(?.+?)')?\)$/}),roe=e=>{for(let[t,n]of noe){let r=Object.entries(e.match(n)?.groups??{});if(r.length)return{method:t,args:Object.fromEntries(r.filter(([,e])=>e!==void 0))}}return{method:e,args:{}}},GI=e=>{let[t,...n]=e.trim().split($ae);return{value:t,transformations:n.map(e=>roe(e))}},ioe=e=>String(e).toUpperCase(),aoe=e=>String(e).toLowerCase(),ooe=(e,{format:t,timeZone:n},r)=>{let i=String(e),{dateOnly:a,utc:o}=WI(r),s=(n===`utc`||o||a&&i.match(eoe)||a&&i.match(toe)?RI.default.utc:RI.default)(i);return s.isValid()?s.format(t):``},soe=(e,{defaultValue:t})=>e?String(e):t,coe=(e,{truthyValue:t,falsyValue:n})=>e?t:n,loe=(e,{max:t,ellipsis:n=`…`})=>PA(String(e),Number(t),{ellipsis:n}),uoe=({fieldConfig:e,value:t,transformation:n,locale:r})=>{let{method:i,args:a}=n;switch(i){case`upper`:return ioe(t);case`lower`:return aoe(t);case`slugify`:return OI(String(t),{locale:r});case`date`:return ooe(t,a,e??{});case`default`:return soe(t,a);case`ternary`:return coe(t,a);case`truncate`:return loe(t,a);default:return String(t)}},KI=({fieldConfig:e,value:t,transformations:n,locale:r})=>(n.forEach(n=>{t=uoe({fieldConfig:e,value:t,transformation:n,locale:r})}),t),qI=e=>!(`divider`in e)&&typeof e.file==`string`&&Array.isArray(e.fields),JI=e=>e.filter(e=>qI(e)),YI=(e,t)=>{let n=typeof e==`string`?HL(e):e;if(!(!n||!(`_fileMap`in n)))return n._fileMap[t]},XI=e=>e.label||e.name,ZI=(e,t)=>`_fileMap`in e?Object.values(e._fileMap).filter(({_file:e,_i18n:n})=>e.fullPath===t.locales[n.defaultLocale]?.path):[],QI=(e,t)=>{let n=A(qL).find(({collectionName:n,fileName:r})=>n===e&&r===t);if(!n?.filePathMap)return;let r=new Set(Object.values(n.filePathMap));return A(JL).find(e=>Object.values(e.locales).some(({path:e})=>r.has(e)))},$I=(e,t)=>{if(e&&t){let{collections:n,singletons:r}=A($H);if(e===`_singletons`)return Array.isArray(r)?JI(r).findIndex(e=>e.name===t):-1;let i=zL({collections:n}).find(({name:t})=>t===e);if(i&&`files`in i)return i.files.findIndex(({name:e})=>e===t)}return-1},eL=[`boolean`,`code`,`color`,`compute`,`datetime`,`file`,`hidden`,`image`,`keyvalue`,`list`,`map`,`markdown`,`number`,`object`,`relation`,`richtext`,`select`,`string`,`text`,`uuid`],doe=[`boolean`,`color`,`compute`,`datetime`,`map`,`markdown`,`number`,`richtext`,`string`,`text`,`uuid`].filter(e=>![`boolean`,`number`].includes(e)),tL=[`file`,`image`],nL=[...tL,`relation`,`select`],foe=[...nL,`datetime`,`keyvalue`,`list`,`number`],rL=new Map,iL=new Map,aL=new Map,oL=new Set,sL=new Map,cL=new Set,lL={slug_length:!1,yaml_quote:!1,uuid_read_only:!1,save_all_locales:!1,automatic_deployments:!1,multiple_folders_i18n_root:!1,omit_default_locale_from_filename:!1},poe={slug_length:"The `slug_length` collection option is deprecated and will be removed in Sveltia CMS 1.0. Use the global `slug.maxlength` option instead. ",yaml_quote:"The `yaml_quote` collection option is deprecated and will be removed in Sveltia CMS 1.0. Use the global `output.yaml.quote` option instead. `yaml_quote: true` is equivalent to `quote: double`. https://sveltiacms.app/en/docs/data-output#controlling-data-output",uuid_read_only:"The `read_only` option for the UUID field type is deprecated and will be removed in Sveltia CMS 1.0. Use the `readonly` option instead.",save_all_locales:"The `save_all_locales` i18n option is deprecated and will be removed in Sveltia CMS 1.0. Use the `initial_locales` option instead. `save_all_locales: false` is equivalent to `initial_locales: all`. https://sveltiacms.app/en/docs/i18n#disabling-non-default-locale-content",automatic_deployments:"The `automatic_deployments` backend option is deprecated and will be removed in Sveltia CMS 1.0. Use the `skip_ci` option instead. `automatic_deployments: false` is equivalent to `skip_ci: true`, and `automatic_deployments: true` is equivalent to `skip_ci: false`. https://sveltiacms.app/en/docs/deployments#disabling-automatic-deployments",multiple_folders_i18n_root:"The `multiple_folders_i18n_root` i18n structure is deprecated and will be removed in Sveltia CMS 1.0. Use the `multiple_root_folders` structure instead. https://sveltiacms.app/en/docs/i18n#multiple-root-folders",omit_default_locale_from_filename:"The `omit_default_locale_from_filename` i18n option is deprecated and will be removed in Sveltia CMS 1.0. Use the `omit_default_locale_from_file_path` option instead. https://sveltiacms.app/en/docs/i18n#managing-content-structure"},uL=(e,t)=>{lL[e]||(console.warn(t??poe[e]),lL[e]=!0)},moe=`_index`,dL=new WeakMap,fL=e=>{if(!IL(e))return;let{index_file:t}=e;if(t)return(t===!0?void 0:t.name)??moe},pL=e=>{let t=dL.get(e);if(t&&t.locale===Ud.current)return t.indexFile;let n=fL(e),r;if(n!==void 0){let{index_file:t}=e,i=t===!0?{}:t;r={name:n,label:i.label||Z(`index_file`),icon:i.icon??`home`,fields:i.fields,editor:i.editor}}return dL.set(e,{locale:Ud.current,indexFile:r}),r},mL=(e,t)=>{let n=fL(e);return n!==void 0&&t.slug===n},hL=[`markdown`,`md`,`mdown`,`mdwn`,`mdx`,`mkd`,`mkdn`,`html.md`],gL=[`njk`],hoe=[...hL,...gL],goe={raw:`txt`,yaml:`yml`,yml:`yml`,toml:`toml`,json:`json`},_oe={yaml:`yaml`,yml:`yaml`,toml:`toml`,json:`json`,astro:`raw`},voe={"json-frontmatter":[`{`,`}`],"toml-frontmatter":[`+++`,`+++`],"yaml-frontmatter":[`---`,`---`]},_L=[`yaml-frontmatter`,`toml-frontmatter`,`json-frontmatter`],yoe=[`toml`,`toml-frontmatter`],boe={type:`language`,languageDisplay:`standard`,style:`short`,fallback:`none`},vL=e=>{let t;if(e!==`_default`)try{[t]=Intl.getCanonicalLocales(e)}catch{}return t},yL=e=>e===`_default`?`auto`:Hd(e)?`rtl`:`ltr`,bL=new Map,xL=(e,{displayLocale:t=vL(Ud.current??`en`),formatterOptions:n=boe}={})=>{let r=vL(e);if(!r)return;let i;t?(i=bL.get(t),i||(i=new Intl.DisplayNames(t,n),bL.set(t,i))):i=new Intl.DisplayNames(void 0,n);try{let e=i.of(r);if(!e)return;let[n,...a]=e;return[n.toLocaleUpperCase(t),...a].join(``)}catch(e){console.error(e);return}},SL=new Map,CL=(e,t={})=>{let n={style:`narrow`,type:`conjunction`,...t},r=`${e}|${n.style}|${n.type}`,i=SL.get(r);return i||(i=new Intl.ListFormat(vL(e),n),SL.set(r,i)),i},wL=({_i18n:e,locale:t,path:n})=>{let{defaultLocale:r,omitDefaultLocaleFromFilePath:i}=e;return i&&t===r&&(n=n.replace(/{{locale}}[./]/,``)),n.replaceAll(`{{locale}}`,t)},TL=({extension:e,format:t})=>(t?aL.get(t)?.extension:void 0)||e||(t?goe[t]??`md`:`md`),xoe=({extension:e,format:t})=>t||(hL.includes(e)?`frontmatter`:_oe[e]??`yaml-frontmatter`),Soe=(e,t)=>e?`(?${NA(e).replace(oM,`[^/]+?`)}${t?`|${t}`:``})`:`(?[^/]+?)`,Coe=({extension:e,format:t,basePath:n,subPath:r,indexFileName:i,_i18n:a})=>{let{allLocales:o,defaultLocale:s,omitDefaultLocaleFromFilePath:c,structureMap:{i18nMultiFile:l,i18nMultiFolder:u,i18nMultiRootFolder:d}}=a,f=`(?${o.join(`|`)})`,p=o.filter(e=>e!==s).join(`|`),m=c?`(?:(?${p})\\/)?`:`${f}\\/`,h=c?`(?:\\.(?${p}))?`:`\\.${f}`,g=[`^`,d?m:``,n?`${NA(n)}\\/`:``,u?m:``,Soe(r,i),l?h:``,`\\.`,NA(TL({format:t,extension:e})),`$`].join(``);return new RegExp(g)},EL=({format:e,delimiter:t})=>typeof t==`string`&&t.trim()?[t,t]:Array.isArray(t)&&t.length===2?t:voe[e]??void 0,DL=({rawCollection:e,file:t,_i18n:n})=>{let{folder:r,path:i,extension:a,format:o,frontmatter_delimiter:s,body_field:c,yaml_quote:l}=e,u=IL(e),d=t?.file?FA(t.file):void 0,f=d?qj(d).extension:a,p=t?.format??o,m=TL({format:p,extension:f}),h=xoe({format:p,extension:m}),g=t?.frontmatter_delimiter??s,_=u?FA(r):void 0,v=u?pL(e)?.name:void 0;return l!==void 0&&uL(`yaml_quote`),{extension:m,format:h,basePath:_,subPath:u?i:void 0,fullPathRegEx:_===void 0?void 0:Coe({extension:m,format:h,basePath:_,subPath:i,indexFileName:v,_i18n:n}),fullPath:d?wL({_i18n:n,locale:n.defaultLocale,path:d}):void 0,fmDelimiters:EL({format:h,delimiter:g}),bodyField:t?.body_field??c,yamlQuote:!!l}},OL={SINGLE_FILE:`single_file`,SINGLE_FILE_DEFAULT_ROOT:`single_file_default_root`,MULTIPLE_FILES:`multiple_files`,MULTIPLE_FOLDERS:`multiple_folders`,MULTIPLE_FOLDERS_I18N_ROOT:`multiple_folders_i18n_root`,MULTIPLE_ROOT_FOLDERS:`multiple_root_folders`},kL=`_default`,AL={key:`translationKey`,value:`{{slug}}`},jL=({cmsConfig:e,collection:t,file:n})=>{let r=e?.i18n;if(!or(r))return;let i=structuredClone(r),{name:a,i18n:o}=t;if(!(!o&&a!==`_singletons`)){if(or(o)&&Object.assign(i,o),n){if(!n.i18n)return;or(n.i18n)&&Object.assign(i,n.i18n)}return i}},ML={i18nEnabled:!1,saveAllLocales:!0,allLocales:[kL],initialLocales:[kL],defaultLocale:kL,structure:OL.SINGLE_FILE,structureMap:{i18nSingleFile:!1,i18nSingleFileDefaultRoot:!1,i18nMultiFile:!1,i18nMultiFolder:!1,i18nMultiRootFolder:!1},canonicalSlug:{...AL},omitDefaultLocaleFromFilePath:!1,omitDefaultLocaleFromPreviewPath:!1},woe=(e,t)=>t?t.file.includes(`{{locale}}`)?OL.MULTIPLE_FILES:e===OL.SINGLE_FILE_DEFAULT_ROOT?OL.SINGLE_FILE_DEFAULT_ROOT:OL.SINGLE_FILE:e,Toe=(e,t)=>({i18nSingleFile:e&&t===OL.SINGLE_FILE,i18nSingleFileDefaultRoot:e&&t===OL.SINGLE_FILE_DEFAULT_ROOT,i18nMultiFile:e&&t===OL.MULTIPLE_FILES,i18nMultiFolder:e&&t===OL.MULTIPLE_FOLDERS,i18nMultiRootFolder:e&&(t===OL.MULTIPLE_FOLDERS_I18N_ROOT||t===OL.MULTIPLE_ROOT_FOLDERS)}),Eoe=(e,t,n)=>e?n&&t.includes(n)?n:t[0]:kL,Doe=(e,t,n)=>e===`all`?t:e==="default"?[n]:t.filter(t=>t===n||!Array.isArray(e)||e.includes(t)),Ooe=(e,t,n)=>e?n?/{{locale}}[./]/.test(n.file):t.i18nMultiFile||t.i18nMultiFolder||t.i18nMultiRootFolder:!1,NL=(e,t)=>{let n=jL({cmsConfig:A($H),collection:e,file:t}),{structure:r=OL.SINGLE_FILE,locales:i=[],default_locale:a,initial_locales:o,save_all_locales:s=!0,canonical_slug:c={key:void 0,value:void 0},omit_default_locale_from_filename:l,omit_default_locale_from_file_path:u=l??!1,omit_default_locale_from_preview_path:d=!1}=n??{};n?.save_all_locales!==void 0&&uL(`save_all_locales`),l!==void 0&&uL(`omit_default_locale_from_filename`);let{key:f=AL.key,value:p=AL.value}=c,m=i.length>0,h=m?i:[kL],g=Eoe(m,h,a),_=woe(r,t),v=Toe(m,_),y=!m||s===!0&&o===void 0,b=Doe(o,h,g),x=Ooe(u,v,t);return _===`multiple_folders_i18n_root`&&uL(`multiple_folders_i18n_root`),{i18nEnabled:m,saveAllLocales:y,allLocales:h,defaultLocale:g,initialLocales:b,structure:_,structureMap:v,canonicalSlug:{key:f,value:p},omitDefaultLocaleFromFilePath:x,omitDefaultLocaleFromPreviewPath:d}},PL=na(),FL=new Map,IL=e=>typeof e.folder==`string`&&!Array.isArray(e.files),LL=e=>e.folder===void 0&&Array.isArray(e.files),RL=e=>LL(e)&&e.name===`_singletons`,koe=(e,{visible:t=void 0,type:n=void 0}={})=>`divider`in e||t&&e.hide?!1:n===`entry`?IL(e):n===`file`?LL(e):n===`singleton`?RL(e):IL(e)||LL(e),zL=({collections:e=A($H)?.collections??[],visible:t,type:n}={})=>e.filter(e=>koe(e,{visible:t,type:n})),Aoe=()=>zL({visible:!0})[0],joe=e=>{if(!(`folder`in e))return[];let{fields:t,thumbnail:n=!0}=e;return n===!1?[]:typeof n==`string`?[n]:Array.isArray(n)?n:t?.length?t.filter(({widget:e=`string`})=>tL.includes(e)).map(({multiple:e,name:t})=>e?`${t}.*`:t):[]},Moe=(e,t)=>({...e,_i18n:t,_type:`entry`,_file:DL({rawCollection:e,_i18n:t}),_thumbnailFieldNames:joe(e)}),BL=(e,t,n)=>({...e,_i18n:t,_type:RL(e)?`singleton`:`file`,_fileMap:Object.fromEntries(n.filter(qI).map(t=>{let n=NL(e,t),r=DL({rawCollection:e,file:t,_i18n:n});return[t.name,{...t,_file:r,_i18n:n}]}))}),VL=()=>{let e=A($H)?.singletons;if(!Array.isArray(e))return;let t=JI(e).map(e=>({...e,file:FA(e.file)}));if(!t.length)return;let n={name:`_singletons`,files:t};return BL(n,NL(n),t)},HL=e=>{let t=FL.get(e);if(t)return t;if(e===`_singletons`){let t=VL();return FL.set(e,t),t}let n=zL().find(t=>t.name===e);if(!n){FL.set(e,void 0);return}let r=IL(n)?n:void 0,i=LL(n)?n:void 0;if(!r&&!i){FL.set(e,void 0);return}r?r.folder=FA(r.folder):i?.files.forEach(e=>{e.file&&=FA(e.file)});let a=NL(n),o=r?Moe(r,a):BL(i,a,i.files);return FL.set(e,o),o},UL=(e,{useSingular:t=!1}={})=>{let{_type:n,name:r,label:i,label_singular:a}=e;return n===`singleton`?Z(`files`):t&&a?a:i||r},WL=e=>e?e===`_singletons`?9999999:A($H)?.collections?.findIndex(({name:t})=>t===e)??-1:-1,GL=na(!1),KL=na(),qL=na([]),JL=na([]),YL=na([]),XL={source:void 0,fileMap:new Map,regexFolders:[]},Noe=()=>{let e=A(qL);if(e===XL.source)return XL;let t=new Map,n=[];return e.forEach(e=>{e.filePathMap?[...new Set(Object.values(e.filePathMap))].forEach(n=>{let r=t.get(n);r?r.push(e):t.set(n,[e])}):n.push([e,HL(e.collectionName)?._file?.fullPathRegEx])}),XL.source=e,XL.fileMap=t,XL.regexFolders=n,XL},ZL=e=>{let{fileMap:t,regexFolders:n}=Noe();return[...t.get(e)??[],...n.filter(([,t])=>t?.test(e)).map(([e])=>e).sort((e,t)=>(t.folderPath??``).localeCompare(e.folderPath??``))]},QL=new WeakMap,Poe=e=>{let t=QL.get(e);return t||(t=Object.keys(e).map((e,t)=>[e,t]).sort(([e],[t])=>e{if(n)return Object.keys(e).filter(e=>e.startsWith(t));let r=Poe(e),i=0,a=r.length;for(;ie-t).map(([e])=>e)},eR=/^(?.+)\.\d+$/,tR=new WeakMap,nR=(e,t,{live:n=!1}={})=>{if(n)return Object.keys(e).filter(e=>e.match(eR)?.groups?.parent===t);let r=tR.get(e);return r||(r=new Map,Object.keys(e).forEach(e=>{let{parent:t}=e.match(eR)?.groups??{};if(t===void 0)return;let n=r.get(t);n?n.push(e):r.set(t,[e])}),tR.set(e,r)),r.get(t)??[]},rR=e=>rM(e&&Object.fromEntries(Object.entries(e).sort(([e],[t])=>RA(e,t)))),Foe=e=>Array.isArray(e)&&!e.length||or(e)&&!Object.keys(e).length,iR=(e,t)=>({[e]:Array.isArray(t)?[]:{},...Object.fromEntries(Object.entries(nM(t)).map(([t,n])=>[`${e}.${t}`,n]))}),aR=(e,t,{live:n=!1}={})=>{let r=$L(e,`${t}.`,{live:n});if(!r.length)return;let i=r.map(n=>[`_${n.slice(t.length)}`,e[n]]),a=e[t];return Foe(a)&&i.push([`_`,a]),rR(Object.fromEntries(i))._},Ioe=(e,t)=>{let n=`${t}.`;Object.keys(e).forEach(r=>{(r===t||r.startsWith(n))&&delete e[r]})},Loe=(e,t,n)=>{Ioe(e,t),Object.assign(e,iR(t,n))},Roe=l(s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_timezone=r()})(e,(function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,i){var a,o=function(e,n,r){r===void 0&&(r={});var i=new Date(e);return function(e,n){n===void 0&&(n={});var r=n.timeZoneName||`short`,i=e+`|`+r,a=t[i];return a||(a=new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:e,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:r}),t[i]=a),a}(n,r).formatToParts(i)},s=function(t,n){for(var r=o(t,n),a=[],s=0;s=0&&(a[d]=parseInt(u,10))}var f=a[3],p=f===24?0:f,m=a[0]+`-`+a[1]+`-`+a[2]+` `+p+`:`+a[4]+`:`+a[5]+`:000`,h=+t;return(i.utc(m).valueOf()-(h-=h%1e3))/6e4},c=r.prototype;c.tz=function(e,t){if(e===void 0&&(e=a),!this.isValid())return this;var n,r=this.utcOffset(),o=this.toDate(),c=o.toLocaleString(`en-US`,{timeZone:e}),l=s(+o,e);if(!Number(l))n=this.utcOffset(0,t);else if(n=i(c,{locale:this.$L}).$set(`millisecond`,this.$ms).utcOffset(l,!0),t){var u=n.utcOffset();n=n.add(r-u,`minute`)}return n.$x.$timezone=e,n},c.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=o(this.valueOf(),t,{timeZoneName:e}).find((function(e){return e.type.toLowerCase()===`timezonename`}));return n&&n.value};var l=c.startOf;c.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return l.call(this,e,t);var n=i(this.format(`YYYY-MM-DD HH:mm:ss:SSS`),{locale:this.$L});return l.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,o=n||t||a,c=s(+i(),o);if(typeof e!=`string`)return i(e).tz(o);var l=i.utc(e,r).valueOf();if(Number.isNaN(l)){var u=i(NaN);return u.$x.$timezone=o,u}var d=function(e,t,n){var r=e-60*t*1e3,i=s(r,n);if(t===i)return[r,t];var a=s(r-=60*(i-t)*1e3,n);return i===a?[r,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}(l,c,o),f=d[0],p=d[1],m=i(f).utcOffset(p);return m.$x.$timezone=o,m},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){a=e}}}))}))(),1),zoe=/^\d{4}-[01]\d-[0-3]\d$/,Boe=/T00:00(?::00)?(?:\.000)?Z$/,oR={year:`numeric`,month:`short`,day:`numeric`},sR={hour:`numeric`,minute:`numeric`,hour12:!0},Voe={...oR,...sR},cR=(e,t)=>e.toLocaleString(t??void 0,Voe),Hoe=/(?[+-]\d{2})(?::?(?\d{2}))?(?::?(?\d{2}))?(?:\.\d+)?$|Z$/,lR=e=>String(Math.abs(Number(e))).padStart(2,`0`),uR=(e,t)=>{if(typeof e!=`string`||!e.trim())return;let{inputTimeZone:n}=WI(t);if(n===`local`||n===`utc`)return;let r=new Date(e);if(Number.isNaN(r.getTime()))return;let i=e.match(Hoe);if(!i?.groups)return;let{hours:a,minutes:o=`0`}=i.groups,s=i[0]===`Z`?`+00:00`:`${a.startsWith(`-`)?`-`:`+`}${lR(a)}:${lR(o)}`;return(new Intl.DateTimeFormat(`en-US`,{timeZone:n,timeZoneName:`longOffset`}).formatToParts(r).find(e=>e.type===`timeZoneName`)?.value??``).replace(`GMT`,``)===s?n:void 0},Uoe=(e,t)=>{let n=uR(e,t);if(n)return n;let{inputTimeZone:r,singleCustomTimeZone:i}=WI(t);if(i)return i;try{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(r===`local`)return e}catch{return r===`local`?``:void 0}},dR=(e,t=new Date)=>{try{let n=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).formatToParts(t).find(e=>e.type===`timeZoneName`)?.value??``,r=e.split(`/`).pop()?.replaceAll(`_`,` `)??e;return`(${n.replace(`GMT`,``)}) ${r}`}catch{return e}};RI.default.extend(zI.default),RI.default.extend(BI.default),RI.default.extend(VI.default),RI.default.extend(Roe.default);var Woe=/^(?\d{4}-[01]\d-[0-3]\d)\b/,Goe=/(?:^|T)(?