allyhub 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/commands/auth.js +4 -4
- package/dist/commands/cloud-tools.js +11 -11
- package/dist/commands/dev.js +2 -2
- package/dist/commands/frames/compare.js +2 -2
- package/dist/commands/frames/piece.js +1 -1
- package/dist/commands/frames/report.js +2 -0
- package/dist/commands/frames.js +11 -9
- package/dist/commands/index.js +1 -1
- package/dist/commands/inspect/common.js +4 -2
- package/dist/commands/inspect/facts.js +3 -3
- package/dist/commands/inspect/layout.js +1 -1
- package/dist/commands/orgs.js +2 -2
- package/dist/commands/render.js +2 -2
- package/dist/help.js +4 -4
- package/dist/main.js +8 -7
- package/dist/node_modules/@allyhub/3d-extension/dist/stage-routes.js +1 -1
- package/dist/node_modules/@allyhub/3d-extension/package.json +34 -2
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/browser/dist/emoji.d.ts +29 -0
- package/dist/node_modules/@allyhub/browser/dist/emoji.js +57 -0
- package/dist/node_modules/@allyhub/browser/dist/picture.d.ts +18 -0
- package/dist/node_modules/@allyhub/browser/dist/picture.js +2 -0
- package/dist/node_modules/@allyhub/browser/package.json +9 -1
- package/dist/node_modules/@allyhub/build/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +7 -0
- package/dist/node_modules/@allyhub/build/dist/made-notes.d.ts +9 -0
- package/dist/node_modules/@allyhub/build/dist/made-notes.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +17 -0
- package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +7 -0
- package/dist/node_modules/@allyhub/build/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-extension/package.json +2 -1
- package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +4 -24
- package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
- package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +10 -0
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +9 -0
- package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +4 -4
- package/dist/node_modules/@allyhub/cloud/dist/credentials.js +2 -2
- package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +12 -0
- package/dist/node_modules/@allyhub/cloud/dist/device.js +2 -0
- package/dist/node_modules/@allyhub/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub/components/package.json +1 -1
- package/dist/node_modules/@allyhub/components/r/callout.json +1 -1
- package/dist/node_modules/@allyhub/components/src/callout.ts +98 -13
- package/dist/node_modules/@allyhub/dev-server/dist/exports.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/inputs.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/pages.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/ports.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/respond.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/reveal.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/watcher.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +7 -0
- package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
- package/dist/node_modules/@allyhub/doc/dist/captions.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
- package/dist/node_modules/@allyhub/doc/dist/html.js +51 -92
- package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/page.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/write.js +22 -22
- package/dist/node_modules/@allyhub/doc/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +19 -6
- package/dist/node_modules/@allyhub/doc-print/dist/pages.js +5 -5
- package/dist/node_modules/@allyhub/doc-print/dist/print.js +10 -10
- package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
- package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/export/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
- package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +87 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +89 -0
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/note-shape.d.ts +20 -0
- package/dist/node_modules/@allyhub/formats/dist/note-shape.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +50 -0
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/dist/export.js +4 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +16 -6
- package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +7 -39
- package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
- package/dist/node_modules/@allyhub/image-render/package.json +1 -1
- package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/article-build.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/article-kind.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/build.js +5 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/media.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/stage-module.js +82 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-extension/package.json +287 -0
- package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +12 -0
- package/dist/node_modules/@allyhub/linkedin-model/LICENSE +241 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/article-check.js +5 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/article.js +3 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/count.js +3 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/edit.js +3 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/html.js +19 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/limits.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/little.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/post.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-model/dist/requests.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-model/package.json +14 -0
- package/dist/node_modules/@allyhub/linkedin-view/LICENSE +241 -0
- package/dist/node_modules/@allyhub/linkedin-view/dist/article.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-view/dist/fold.js +3 -0
- package/dist/node_modules/@allyhub/linkedin-view/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-view/dist/post.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-view/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-view/dist/text.js +2 -0
- package/dist/node_modules/@allyhub/linkedin-view/package.json +21 -0
- package/dist/node_modules/@allyhub/linkedin-view/src/style.css +600 -0
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/package.json +7 -4
- package/dist/node_modules/@allyhub/model/package.json +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +16 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +1 -1
- package/dist/node_modules/@allyhub/piece/dist/page/index.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +14 -1
- package/dist/node_modules/@allyhub/piece/dist/page/locate.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +18 -0
- package/dist/node_modules/@allyhub/piece/package.json +1 -1
- package/dist/node_modules/@allyhub/project/dist/version.js +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +140 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +157 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +10 -2
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +101 -186
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +1 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +92 -94
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +17 -0
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +7 -0
- package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +15 -3
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +1 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/dist/encode.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/look.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/render.js +2 -2
- package/dist/node_modules/@allyhub/render/package.json +1 -1
- package/dist/node_modules/@allyhub/report-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/report-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/check.js +3 -0
- package/dist/node_modules/@allyhub/report-extension/dist/cli/find.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/cli/index.js +5 -0
- package/dist/node_modules/@allyhub/report-extension/dist/cli/picture.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/inline.js +58 -0
- package/dist/node_modules/@allyhub/report-extension/dist/page.js +21 -0
- package/dist/node_modules/@allyhub/report-extension/dist/project-tools.js +21 -0
- package/dist/node_modules/@allyhub/report-extension/dist/styles.js +5 -0
- package/dist/node_modules/@allyhub/report-extension/dist/theme.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/report-extension/package.json +182 -0
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/STYLE.md +132 -0
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.css +105 -0
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.json +17 -0
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/tokens.js +38 -0
- package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/player/clips.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/player/player.js +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
- package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
- package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +7 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.d.ts +4 -3
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.d.ts +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.d.ts +8 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/viewer.d.ts +6 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/viewer.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/export.js +2 -4
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -6
- package/dist/node_modules/@allyhub/sheet-extension/package.json +24 -9
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/package.json +22 -16
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
- package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
- package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/stage/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +76 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +316 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +316 -0
- package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/install.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +3 -0
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +18 -18
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/package.json +17 -4
- package/dist/node_modules/@allyhub/video-measure/dist/version.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/dist/held.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/dist/preview.js +5 -5
- package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +24 -1
- package/dist/node_modules/@allyhub/website-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/website-extension/package.json +49 -2
- package/dist/node_modules/@allyhub/x-extension/dist/build.js +4 -3
- package/dist/node_modules/@allyhub/x-extension/package.json +43 -15
- package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +7 -62
- package/dist/node_modules/@allyhub/x-model/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/dist/article.js +1 -1
- package/dist/node_modules/@allyhub/x-view/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/x-view/dist/post.js +2 -2
- package/dist/node_modules/@allyhub/x-view/package.json +1 -1
- package/dist/package.json +12 -10
- package/dist/text/facts-text.js +5 -5
- package/dist/text/index.js +1 -1
- package/dist/text/long-text.js +4 -0
- package/dist/works.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-CN5PiJYY.js → abnfDiagram-WEYOIA3C-BKmMA6gn.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-BnvZtQYk.js → architecture-WOLXFQ4H-BEFBgb4k.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-tkcEcFQ8.js → architectureDiagram-ZHVYKT53-_u5YfCjY.js} +1 -1
- package/editor-web/assets/{arrow-up-DTP2yVSU.js → arrow-up-B5rJbBv0.js} +1 -1
- package/editor-web/assets/article-BUmD3xtR.js +8 -0
- package/editor-web/assets/article-DNioBb3p.js +7 -0
- package/editor-web/assets/{audio-lines-Ti8-m7H2.js → audio-lines-CzuzsGjI.js} +1 -1
- package/editor-web/assets/{blockDiagram-RJAE7QA3-DhqEIpie.js → blockDiagram-RJAE7QA3-DybfaO3Z.js} +1 -1
- package/editor-web/assets/bookmark-Dsd3kHJJ.js +1 -0
- package/editor-web/assets/button-eGxLxbv9.js +41 -0
- package/editor-web/assets/{c4Diagram-XDPPPE54-Bg9G95tl.js → c4Diagram-XDPPPE54-BfqLHB5i.js} +1 -1
- package/editor-web/assets/calc-worker-D2pGis6e.js +45 -0
- package/editor-web/assets/channel-TNPgFDrw.js +1 -0
- package/editor-web/assets/chart-C37xvZT2.js +1 -0
- package/editor-web/assets/chart-no-axes-column-BVkeF_Mr.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-C8Ve9lAa.js → chunk-2E7WHVMD-BVp1I_d0.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-BDWwPUnT.js → chunk-4EMNKR2T-CTdgWEMr.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-BQiNPKgx.js → chunk-55XCU76K-7pnsxeaP.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-QoEt-6jf.js → chunk-7S6XSTFO-Dc0Dvkq7.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-BeuwIv0-.js → chunk-AQDTSKZB-VAILIsfx.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-BHW7sLAz.js → chunk-DSNLSHJZ-CUDx1Rv5.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-bbGED0hu.js → chunk-HAGFOTED-DAoEe-dJ.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-FltWp8yo.js → chunk-HNE4Q36P-g0akya12.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-NeQzr6kH.js → chunk-NQOKRVIF-hTGjzXdJ.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-eA4-WUhn.js → chunk-UHW7PFBP-BgLV8BIJ.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-BPPv325z.js → chunk-VQ5W62QI-Bw19OOSD.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-DOCIz7Te.js → chunk-WQQL4CDK-CMST9dyE.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-Dc_ihQJi.js → chunk-YZO67HFG-Bbpu36XF.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-CoqwCPSm.js → chunk-ZAUX2LTX-C48Ri0Gs.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-CZUQPkJx.js → chunk-ZCHMQSOR-DN1g01Oe.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-DUh9c50k.js → classDiagram-v2-4MYWR3UA-U6jbPr2d.js} +1 -1
- package/editor-web/assets/collaborator-B1u2td9m.js +1 -0
- package/editor-web/assets/createLucideIcon-GFZ_fxLc.js +1 -0
- package/editor-web/assets/{cynefin-EF2NZ3EQ-DUTZiog0.js → cynefin-EF2NZ3EQ-gzkai_7-.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-oAjpfbrU.js → cynefinDiagram-WF24UDRP-DtSekSr6.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-BrKvKCvb.js → dagre-NK4GIZVX-CiUwYVT6.js} +1 -1
- package/editor-web/assets/{diagram-CBK3MWTC-GekVRnmm.js → diagram-CBK3MWTC-r9XHCV-k.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-CDd1VFRT.js → diagram-I5XIIV2D-DxVsDZ34.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-535RISTn.js → diagram-ODIL2UCW-B0eNQoHV.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-MXzzKCGG.js → diagram-PFBEJUXE-C7f2MfJT.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-vKVwkQxY.js → diagram-RJA3I4VV-CSXcnvct.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-UwGAiQLx.js → diagram-TYUNFSNR-DXzOD_ii.js} +1 -1
- package/editor-web/assets/dist-BGRwhCQO.js +1 -0
- package/editor-web/assets/{dist-9ymlIMhr.js → dist-BW4X7BrF.js} +1 -1
- package/editor-web/assets/dist-BgDRE85b.js +2 -0
- package/editor-web/assets/dist-Blq5nJnU.js +24 -0
- package/editor-web/assets/dist-BuWaZ3Y4.js +274 -0
- package/editor-web/assets/dist-C1emZ9wX.js +37 -0
- package/editor-web/assets/dist-CC7OeU1e.js +6 -0
- package/editor-web/assets/dist-CX-fiPSn.js +38 -0
- package/editor-web/assets/dist-C_VvG-_9.js +5 -0
- package/editor-web/assets/dist-Ce7HrBxv.js +3 -0
- package/editor-web/assets/dist-D2k6w-_a.js +1 -0
- package/editor-web/assets/dist-DDv_SbKw.js +84 -0
- package/editor-web/assets/dist-DEoEO4zs.js +1 -0
- package/editor-web/assets/dist-DlDxxPIP.js +16 -0
- package/editor-web/assets/dist-Gz6NDS0J.js +4 -0
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-73yGokYa.js → ebnfDiagram-V4P3TTPT-Cs4YRvDD.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-BW6V9y6a.js → elk-QONTBCTQ-Bh3LZ9WI.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-BPqIJ22h.js → erDiagram-KYQIGQAA-C4vYTYXp.js} +1 -1
- package/editor-web/assets/{eventmodeling-K75KTNOO-_VZ8jvuy.js → eventmodeling-K75KTNOO-BN1kkHWS.js} +1 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-B04NGsyi.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-DZ157JN2.js → ganttDiagram-R7GPNTJY-CA1LkkC5.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-fmcNL9bq.js → gitGraph-VSP46ZUC-Dy5tA7dG.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-DiZDyksR.js → gitGraphDiagram-PDYL7XHY-hJIB8EkH.js} +1 -1
- package/editor-web/assets/hint-B8JpEypy.js +1 -0
- package/editor-web/assets/index-CgB5osVc.js +28 -0
- package/editor-web/assets/index-Daytem9N.css +2 -0
- package/editor-web/assets/{info-OHQRW6UA-V06620kN.js → info-OHQRW6UA-DvzSf7rQ.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-CbIgheWX.js → infoDiagram-MVDRKAX5-BjIMm4Af.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-D5oJQPkG.js → ishikawaDiagram-HPEHV2GE-Bpz71S40.js} +1 -1
- package/editor-web/assets/{italic-CDhZKo_q.js → italic-D10w8n6C.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-BZEv6JI4.js → journeyDiagram-BOSHW7O7-DAB-pZjD.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-CLG1R8y_.js → kanban-definition-FNSA4HC5-cYeyh3P6.js} +1 -1
- package/editor-web/assets/katex-5Z2zF-9g.js +257 -0
- package/editor-web/assets/link-BC5xK1-1.js +1 -0
- package/editor-web/assets/{mermaid-parser.core-DxDwXM7z.js → mermaid-parser.core-req5LE0X.js} +3 -3
- package/editor-web/assets/{mermaid.core-tU55ZwVG.js → mermaid.core-zFwZug4C.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-CYf4zzAh.js → mindmap-definition-6OY57UG3-TStWb7DG.js} +1 -1
- package/editor-web/assets/minus-DaWs5i8B.js +1 -0
- package/editor-web/assets/{packet-JDAUHWVQ-DsHeKYNL.js → packet-JDAUHWVQ-smFhVKcB.js} +1 -1
- package/editor-web/assets/palette-BIOudGkm.js +1 -0
- package/editor-web/assets/{pegDiagram-ECIUJNBX-CQyh6TTa.js → pegDiagram-ECIUJNBX-DvSNRv0-.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-3vCIvpNB.js → pie-XZMESJXO-qjaGsBZG.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-DF5yGBLn.js → pieDiagram-GNMPY74T-Dd9P-Pdc.js} +1 -1
- package/editor-web/assets/play-CrMmPghG.js +1 -0
- package/editor-web/assets/progress-DE4C5_3x.js +6 -0
- package/editor-web/assets/props-form-CsmDBqzy.js +1 -0
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-B7pxlDYP.js → quadrantDiagram-D57K4MC3-h2IIKUUA.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-cpEA41mL.js → radar-ABXABTNO-DlVrSA1d.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-BLyy5R2c.js → railroad-I3PHUGI6-nFbuLAtc.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-Y-oyol19.js → railroad-abnf-LNEFI6M7-Daj8h2iV.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-o58wHZsr.js → railroad-ebnf-DWYD2UWJ-eYJyl5PH.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-CcD3PXZ8.js → railroad-peg-JR7BVNR7-BTRhKZQq.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-BuCC4eyy.js → railroadDiagram-Y72NRBL7-CeLGUjdp.js} +1 -1
- package/editor-web/assets/react-WA6wlt8S.js +1 -0
- package/editor-web/assets/{repeat-2-C5PCbNsg.js → repeat-2-VQP1EVOZ.js} +1 -1
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-Dp-JFGn4.js → requirementDiagram-EQYSW5RA-Dmk9XRM5.js} +1 -1
- package/editor-web/assets/row-BRlEWRrK.js +1 -0
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-rYuCqEvw.js → sankeyDiagram-SY24JHO5-Yn4zlrAM.js} +1 -1
- package/editor-web/assets/schemas-VikZYZIK.js +1 -0
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-DryW8x6d.js → sequenceDiagram-BLEHNHQU-BTRnp_PW.js} +1 -1
- package/editor-web/assets/session-Do9AqS38.js +1 -0
- package/editor-web/assets/slides-diTEQ3C5.js +1 -0
- package/editor-web/assets/snapshots-BUGlKQIB.js +56 -0
- package/editor-web/assets/sound-Bj3o9_Fa.js +1 -0
- package/editor-web/assets/split-CNU1RHcX.js +3 -0
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-Bnp0XfpT.js → stateDiagram-v2-A6IESKWZ-kstrRKv2.js} +1 -1
- package/editor-web/assets/{strikethrough-DJckA35o.js → strikethrough-CfXx6IYH.js} +1 -1
- package/editor-web/assets/{svg-BjM9RazX.js → svg-Cx50MpxK.js} +1 -1
- package/editor-web/assets/swatch-WeJD41aW.js +1 -0
- package/editor-web/assets/{swimlanes-B3ENRKFQ-BiRRhhbd.js → swimlanes-B3ENRKFQ-DaZsZkeP.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-CBZAujYY.js +8 -0
- package/editor-web/assets/switch-N0G_sbqt.js +1 -0
- package/editor-web/assets/syntax-BVsgRJ4I.js +66 -0
- package/editor-web/assets/syntax-oWsKBWFw.js +1 -0
- package/editor-web/assets/table-B6hVZAMi.js +1 -0
- package/editor-web/assets/tabs-DIFDqj-l.js +1 -0
- package/editor-web/assets/{textarea-BGtPqZdB.js → textarea-tEWvBY9p.js} +1 -1
- package/editor-web/assets/{timeline-definition-JXYKGLGB-D-Q5ZtDF.js → timeline-definition-JXYKGLGB-CLCvY-Yf.js} +1 -1
- package/editor-web/assets/{trash-2-Bjj6cWzP.js → trash-2-BP6nqpg2.js} +1 -1
- package/editor-web/assets/{treeView-D4JQ5SDB-B6DDatXq.js → treeView-D4JQ5SDB-BmN0gwdC.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-D7j5ZhiI.js → treemap-SAJKECNS-DN29G_E_.js} +1 -1
- package/editor-web/assets/{undo-2-yOSG766T.js → undo-2-CHR0nvWL.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-tkrdKUJB.js → usecaseDiagram-WPOLBNNX-DTRS54cB.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-Ch4XbSnD.js → vennDiagram-Q3Y3IDCW-DAAc11Hx.js} +1 -1
- package/editor-web/assets/video-BlvmR8BK.js +1 -0
- package/editor-web/assets/{wardley-7MLQ67FV-Bynt7qNQ.js → wardley-7MLQ67FV-B-UYkmdB.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-DRuSgm_L.js → wardleyDiagram-IVAIDKWA-BmbwCaky.js} +1 -1
- package/editor-web/assets/words-D_4T9Adq.js +3 -0
- package/editor-web/assets/words-WgdEQdYP.js +2 -0
- package/editor-web/assets/{xychartDiagram-4URNHDU4-DctpvfkL.js → xychartDiagram-4URNHDU4-ChAfAq1U.js} +1 -1
- package/editor-web/index.html +6 -5
- package/package.json +8 -2
- package/editor-web/assets/alt-BOVao_9S.js +0 -4
- package/editor-web/assets/article-B6YCzhj8.js +0 -73
- package/editor-web/assets/calc-worker-B5-fDWnb.js +0 -45
- package/editor-web/assets/channel-C26aBI4o.js +0 -1
- package/editor-web/assets/chart-BOnxneyw.js +0 -1
- package/editor-web/assets/choice-O5nwc2N0.js +0 -1
- package/editor-web/assets/collaborator-BJU5qwHd.js +0 -1
- package/editor-web/assets/createLucideIcon-B3B95oX5.js +0 -1
- package/editor-web/assets/dist-C6NqUEG4.js +0 -16
- package/editor-web/assets/dist-C9UGmCG9.js +0 -6
- package/editor-web/assets/dist-CAk5bjBm.js +0 -1
- package/editor-web/assets/dist-CKyfo5RM.js +0 -340
- package/editor-web/assets/dist-CRaWqNwq.js +0 -37
- package/editor-web/assets/dist-CwIBc7HQ.js +0 -1
- package/editor-web/assets/dist-DXRmkezB.js +0 -38
- package/editor-web/assets/dist-EKK5i0dG.js +0 -219
- package/editor-web/assets/dist-hHJlpLWo.js +0 -5
- package/editor-web/assets/dist-oYKcwWUj.js +0 -4
- package/editor-web/assets/dist-shKo7XVN.js +0 -2
- package/editor-web/assets/dist-wrKxBrVu.js +0 -24
- package/editor-web/assets/flowDiagram-IUGLLWBU-ouDQYiTr.js +0 -1
- package/editor-web/assets/hint-_AQWCDMj.js +0 -1
- package/editor-web/assets/index-BsstP-cI.js +0 -28
- package/editor-web/assets/index-DQRcmxBO.css +0 -2
- package/editor-web/assets/minus-Cgmm6ncD.js +0 -1
- package/editor-web/assets/progress-0B_TVsPi.js +0 -6
- package/editor-web/assets/react-BP46yLMB.js +0 -1
- package/editor-web/assets/react-pgBZqVxJ.js +0 -96
- package/editor-web/assets/schemas-Ewwjtbf4.js +0 -1
- package/editor-web/assets/session-DiI9KYRI.js +0 -1
- package/editor-web/assets/slides-CCwgBcGH.js +0 -1
- package/editor-web/assets/sound-CqryteNl.js +0 -1
- package/editor-web/assets/swatch-DL3HqIjW.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BkOls8Tv.js +0 -8
- package/editor-web/assets/switch-DltnKqN-.js +0 -1
- package/editor-web/assets/syntax-CC6QYhCz.js +0 -1
- package/editor-web/assets/tabs-C-re0Kxn.js +0 -1
- package/editor-web/assets/video-DXFiCNGc.js +0 -1
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import{i as e,n as t,t as n}from"./rolldown-runtime-COiEfhsA.js";import{t as r}from"./react-BP46yLMB.js";import{t as i}from"./jsx-runtime-DePvh3-m.js";import{t as a}from"./createLucideIcon-B3B95oX5.js";var o=n((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return l(e,t,null,r)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.0`})),s=n(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=o()}));function c(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function l(e,t=`|`){return e.map(e=>N(e)).join(t)}function u(e,t){return typeof t==`bigint`?t.toString():t}var d=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function f(e){return new d(e)}function p(e){return e==null}function m(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function h(e,t){let n=e/t,r=Math.round(n),i=4*2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var g=Symbol(`evaluating`);function _(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==g)return r===void 0&&(r=g,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function v(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function y(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function b(e){return y(e._zod.def)??e._zod.def.shape}function x(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return v(this,t,e),e},enumerable:!0,configurable:!0})}function S(e,t,n){t in e?v(e,t,n):e[t]=n}function C(e,t,n,r){let i=b(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?x(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):S(e,a,r?r(n.value,a):n.value))}}function w(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?x(e,n,()=>t[n]):S(e,n,r.value))}}function T(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function E(e){return JSON.stringify(e)}function D(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var ee=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function O(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var te=f(()=>{if(qe.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function ne(e){if(O(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return O(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function k(e){return ne(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var re=new Set([`string`,`number`,`symbol`]),ie=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]);function A(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function j(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function M(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function N(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function ae(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}var oe={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},se={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function ce(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return C(i,e,le(e,t)),j(e,T(n,{shape:i,checks:[]}))}function le(e,t){let n=b(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function ue(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(le(e,t)),a={};return C(a,e,Reflect.ownKeys(b(e)).filter(e=>!i.has(e))),j(e,T(n,{shape:a,checks:[]}))}function de(e,t){if(!ne(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=b(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return j(e,T(e._zod.def,{shape:fe(e,t)}))}function fe(e,t){let n={};return C(n,e,Reflect.ownKeys(b(e))),w(n,t),n}function pe(e,t){if(!ne(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return j(e,T(e._zod.def,{shape:fe(e,t)}))}function me(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return C(n,e,Reflect.ownKeys(b(e))),C(n,t,Reflect.ownKeys(b(t))),j(e,T(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function he(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(le(t,n)):void 0,o={};return C(o,t,Reflect.ownKeys(b(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),j(t,T(t._zod.def,{shape:o,checks:[]}))}function ge(e,t,n){let r=n?new Set(le(t,n)):void 0,i={};return C(i,t,Reflect.ownKeys(b(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),j(t,T(t._zod.def,{shape:i}))}function P(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function _e(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function ve(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function ye(e){return typeof e==`string`?e:e?.message}function be(e){let t=[];for(let n of e??[]){let e=n._zod.def;if(!/_(length|size)$|_equals$/.test(e.check))break;let r=e.maximum??e.length??e.size;r>=0&&t.push([r,n])}return t}function xe(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function Se(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:ye(e.inst?._zod.def?.error?.(e))??ye(a?.(e))??ye(t?.error?.(e))??ye(n.customError?.(e))??ye(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}function Ce(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}var we=/[\uD800-\uDBFF]/;function Te(e){let t=e.length;if(!we.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function Ee(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function De(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Oe(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function ke(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Ne(e,n,r.value)}}function Ae(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function je(e,t,n){return Ae(e,t,n,!1)}function Me(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return Ae(this,n,r(this))},set(e){Ae(this,n,e)}})}return t}function Ne(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:Ae(this,t,n.bind(this))},set(e){Ae(this,t,e)}})}function Pe(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var Fe,Ie=!1,Le={configurable:!0,get(){Ie=!0}};function F(e,t,n){let r=Object.getPrototypeOf(e._zod);t in r&&Fe!==e._zod?Fe=void 0:(Fe=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Le);let e=Ie;Ie=!1;try{let r=n(this);return Ie?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),Ie||=e,r}catch(n){throw delete this[t],Ie||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}}))}function Re(e,t,n,r){let i=Pe(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var ze=`~constantCatch`;function Be(e){let t=()=>e;return t[ze]=!0,t}var Ve,He={value:void 0,enumerable:!1},Ue=`captureStackTrace`in Error?Error:null;function We(e){let t=Ue;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return Ue=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function I(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){He.value=new a(r);try{Object.defineProperty(n,"_zod",He)}finally{He.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),ke(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?We(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var Ge=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Ke=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(Ve=globalThis).__zod_globalConfig??(Ve.__zod_globalConfig={});var qe=globalThis.__zod_globalConfig;function Je(e){return e&&Object.assign(qe,e),qe}function Ye(){let e=this._zod;return e.message??=JSON.stringify(e.def,u,2),e.message}function Xe(e){this._zod.message=e}var Ze={get:Ye,set:Xe,enumerable:!0,configurable:!0},Qe={value:void 0,enumerable:!1},$e=new WeakSet([Object.prototype,Error.prototype]),et=(e,t)=>{e.name=`$ZodError`,Qe.value=t,Object.defineProperty(e,"issues",Qe),Qe.value=void 0,Object.defineProperty(e,"message",Ze);let n=Object.getPrototypeOf(e);$e.has(n)||($e.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},tt=I(`$ZodError`,et),nt=I(`$ZodError`,et,void 0,{Parent:Error});function rt(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function it(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?rt(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function at(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function ot(e){let t=[],n=e.map(e=>typeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function st(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${ot(e.path)}`);return t.join(`
|
|
2
|
-
`)}function ct(e,t){return{callee:t?.callee??e,Err:t?.Err}}var lt=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new Ge;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>Se(e,o,Je())));throw ee(n,a?.callee??t),n}return s.value};return t},ut=lt(nt),dt=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>Se(e,o,Je())));throw ee(n,a?.callee??t),n}return s.value};return t},ft=dt(nt),pt=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Ge;return a.issues.length?mt(e,a.issues,i):{success:!0,data:a.value}};function mt(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>Se(e,n,Je()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var ht=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?mt(e,a.issues,i):{success:!0,data:a.value}},gt=Symbol.for(`zod.compile.invalid`),_t=Symbol.for(`zod.compile.fallback`),vt=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==gt)return!0;if(r.definite===!0&&n===void 0)return!1}return yt(e,t,n)});function yt(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[_t]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new Ge;return a.issues.length===0}var bt=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},xt=e=>{let t=lt(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,ct(n,a))};return n},St=e=>{let t=lt(e),n=(e,r,i,a)=>t(e,r,i,ct(n,a));return n},Ct=e=>{let t=dt(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,ct(n,a))};return n},wt=e=>{let t=dt(e),n=async(e,r,i,a)=>await t(e,r,i,ct(n,a));return n},Tt=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return pt(e)(t,n,i)},Et=e=>(t,n,r)=>pt(e)(t,n,r),Dt=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ht(e)(t,n,i)},Ot=e=>async(t,n,r)=>ht(e)(t,n,r),kt=t({anyString:()=>yn,base64:()=>rn,base64url:()=>an,bigint:()=>xn,boolean:()=>wn,browserEmail:()=>Yt,cidrv4:()=>tn,cidrv6:()=>nn,creditCard:()=>un,cuid:()=>At,cuid2:()=>jt,currencyCode:()=>dn,date:()=>hn,datetime:()=>vn,domain:()=>sn,duration:()=>Lt,e164:()=>ln,email:()=>Wt,emoji:()=>Zt,extendedDuration:()=>Rt,guid:()=>zt,hex:()=>kn,hostname:()=>on,html5Email:()=>Gt,httpProtocol:()=>cn,iban:()=>fn,idnEmail:()=>Jt,integer:()=>Sn,ipv4:()=>Qt,ipv6:()=>$t,ksuid:()=>Pt,lowercase:()=>Dn,mac:()=>en,md5_base64:()=>Nn,md5_base64url:()=>Pn,md5_hex:()=>Mn,nanoid:()=>Ft,nanoidOfLength:()=>It,null:()=>Tn,number:()=>Cn,rfc5322Email:()=>Kt,sha1_base64:()=>In,sha1_base64url:()=>Ln,sha1_hex:()=>Fn,sha256_base64:()=>zn,sha256_base64url:()=>Bn,sha256_hex:()=>Rn,sha384_base64:()=>Hn,sha384_base64url:()=>Un,sha384_hex:()=>Vn,sha512_base64:()=>Gn,sha512_base64url:()=>Kn,sha512_hex:()=>Wn,string:()=>bn,time:()=>_n,ulid:()=>Mt,undefined:()=>En,unicodeEmail:()=>qt,uppercase:()=>On,uuid:()=>Bt,uuid4:()=>Vt,uuid6:()=>Ht,uuid7:()=>Ut,xid:()=>Nt}),At=/^[cC][0-9a-z]{6,}$/,jt=/^[0-9a-z]+$/,Mt=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Nt=/^[0-9a-vA-V]{20}$/,Pt=/^[A-Za-z0-9]{27}$/,Ft=/^[a-zA-Z0-9_-]{21}$/;function It(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Lt=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Rt=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,zt=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Bt=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Vt=Bt(4),Ht=Bt(6),Ut=Bt(7),Wt=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Gt=/^[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])?)*$/,Kt=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,qt=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Jt=qt,Yt=/^[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])?)*$/,Xt=`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;function Zt(){return new RegExp(Xt,`u`)}var Qt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,$t=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,en=e=>{let t=A(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},tn=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,nn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,rn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,an=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,on=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,sn=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,cn=/^https?$/,ln=/^\+[1-9]\d{6,14}$/,un=/^\d(?:[ -]?\d){11,18}$/,dn=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,fn=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,pn=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;function mn(e){return RegExp(`^${e}$`)}var hn=mn(pn);function gn(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function _n(e){return RegExp(`^${gn(e)}$`)}function vn(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${gn({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${gn({precision:e.precision})}`:n;return RegExp(`^${pn}T(?:${r})$`)}var yn=/^[\s\S]{0,}$/,bn=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},xn=/^-?\d+n?$/,Sn=/^-?\d+$/,Cn=/^-?\d+(?:\.\d+)?$/,wn=/^(?:true|false)$/i,Tn=/^null$/i,En=/^undefined$/i,Dn=/^[^A-Z]*$/,On=/^[^a-z]*$/,kn=/^[0-9a-fA-F]*$/;function An(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function jn(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Mn=/^[0-9a-fA-F]{32}$/,Nn=An(22,`==`),Pn=jn(22),Fn=/^[0-9a-fA-F]{40}$/,In=An(27,`=`),Ln=jn(27),Rn=/^[0-9a-fA-F]{64}$/,zn=An(43,`=`),Bn=jn(43),Vn=/^[0-9a-fA-F]{96}$/,Hn=An(64,``),Un=jn(64),Wn=/^[0-9a-fA-F]{128}$/,Gn=An(86,`==`),Kn=jn(86),L=I(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),qn=e=>{let t=e.value;return!p(t)&&t.size!==void 0},Jn=e=>{let t=e.value;return!p(t)&&t.length!==void 0},Yn={number:`number`,bigint:`bigint`,object:`date`},Xn=I(`$ZodCheckLessThan`,(e,t)=>{L.init(e,t);let n=Yn[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:Yn[typeof r.value]??n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Zn=I(`$ZodCheckGreaterThan`,(e,t)=>{L.init(e,t);let n=Yn[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:Yn[typeof r.value]??n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Qn=I(`$ZodCheckMultipleOf`,(e,t)=>{L.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):h(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),$n=I(`$ZodCheckNumberFormat`,(e,t)=>{L.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=oe[t.format];e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),er=I(`$ZodCheckBigIntFormat`,(e,t)=>{L.init(e,t);let[n,r]=se[t.format];e._zod.check=i=>{let a=i.value;a<n&&i.issues.push({origin:`bigint`,input:a,code:`too_small`,minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>r&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),tr=I(`$ZodCheckMaxSize`,(e,t)=>{var n;L.init(e,t),(n=e._zod.def).when??(n.when=qn),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:Ce(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),nr=I(`$ZodCheckMinSize`,(e,t)=>{var n;L.init(e,t),(n=e._zod.def).when??(n.when=qn),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:Ce(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),rr=I(`$ZodCheckSizeEquals`,(e,t)=>{var n;L.init(e,t),(n=e._zod.def).when??(n.when=qn),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:Ce(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ir=I(`$ZodCheckMaxLength`,(e,t)=>{var n;L.init(e,t),(n=e._zod.def).when??(n.when=Jn),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?Te(r):i)<=t.maximum)return;let a=Ee(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ar=I(`$ZodCheckMinLength`,(e,t)=>{var n;L.init(e,t),(n=e._zod.def).when??(n.when=Jn),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?Te(r):i)>=t.minimum)return;let a=Ee(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),or=I(`$ZodCheckLengthEquals`,(e,t)=>{var n;L.init(e,t),(n=e._zod.def).when??(n.when=Jn),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?Te(r):i;if(a===t.length)return;let o=Ee(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),sr=I(`$ZodCheckStringFormat`,(e,t)=>{var n,r;L.init(e,t),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),cr=I(`$ZodCheckRegex`,(e,t)=>{sr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),lr=I(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Dn,sr.init(e,t)}),ur=I(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=On,sr.init(e,t)}),dr=I(`$ZodCheckIncludes`,(e,t)=>{L.init(e,t);let n=A(t.includes);t.pattern=new RegExp(typeof t.position==`number`?`^.{${t.position},}${n}`:n),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),fr=I(`$ZodCheckStartsWith`,(e,t)=>{L.init(e,t);let n=RegExp(`^${A(t.prefix)}.*`);t.pattern??=n,e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),pr=I(`$ZodCheckEndsWith`,(e,t)=>{L.init(e,t);let n=RegExp(`.*${A(t.suffix)}$`);t.pattern??=n,e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function mr(e,t,n){e.issues.length&&t.issues.push(...ve(n,e.issues))}var hr=I(`$ZodCheckProperty`,(e,t)=>{L.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>mr(n,e,t.property));mr(n,e,t.property)}}),gr=I(`$ZodCheckProperties`,(e,t)=>{L.init(e,t),je(e,Symbol.iterator,function*(){yield e});let n;e._zod.check=r=>{if(r.value==null){r.issues.push({expected:`object`,code:`invalid_type`,input:r.value,inst:e});return}n??=Reflect.ownKeys(t.shape).map(e=>[e,t.shape[e]]);let i=r.value,a;for(let[e,t]of n){let n=t._zod.run({value:i[e],issues:[]},{});n instanceof Promise?(a??=[],a.push(n.then(t=>mr(t,r,e)))):mr(n,r,e)}if(a)return Promise.all(a).then(()=>void 0)}}),_r=I(`$ZodCheckMimeType`,(e,t)=>{L.init(e,t);let n=new Set(t.mime);e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),vr=I(`$ZodCheckOverwrite`,(e,t)=>{L.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),yr=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{--this.indent}}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
3
|
-
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.content??[``];return new e(...Object.keys(this.closed),`return function (${this.args.join(`, `)}) {\n${t.join(`
|
|
4
|
-
`)}\n};`)(...Object.values(this.closed))}},br={major:4,minor:6,patch:7},R=I(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=br;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=P(t),a;for(let o of n){if(o._zod.def.when){if(_e(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new Ge;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(xe(t.issues,n,e),i||=P(t,n))});else{if(t.issues.length===n)continue;xe(t.issues,n,e),i||=P(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(P(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new Ge;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new Ge;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return je(this,`~standard`,Cr(this))},set"~standard"(e){Ae(this,`~standard`,e)}}),xr=(e,t)=>e.issues.length?{issues:e.issues.map(e=>Se(e,t,Je()))}:{value:e.value};async function Sr(e,t){let n={async:!0};return xr(await e._zod.run({value:t,issues:[]},n),n)}function Cr(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return xr(r,n)}catch{}return Sr(e,t)},vendor:`zod`,version:1}}var wr=I(`$ZodString`,(e,t)=>{R.init(e,t),e._zod.pattern=t.pattern??yn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),z=I(`$ZodStringFormat`,(e,t)=>{sr.init(e,t),wr.init(e,t)}),Tr=I(`$ZodGUID`,(e,t)=>{t.pattern??=zt,z.init(e,t)}),Er=I(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Bt(e)}else t.pattern??=Bt();z.init(e,t)}),Dr=I(`$ZodEmail`,(e,t)=>{t.pattern??=Wt,z.init(e,t)});function Or(e){try{return typeof URL<`u`&&typeof URL.canParse==`function`?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function kr(e,t){return!(`normalize`in t)&&!(`hostname`in t)&&!(`protocol`in t)?Or(e)||2:Ar(e,t)}function Ar(e,t){if(!t.normalize&&t.protocol?.source===cn.source&&!/^https?:\/\//i.test(e))return 1;try{if(typeof URL<`u`){let t=URL;if(typeof t.parse==`function`)return t.parse(e)??2}return new URL(e)}catch{return 2}}var jr=/[\t\n\r]/g;function Mr(e){return e.replace(jr,``)}function Nr(e,t){return t.lastIndex=0,t.test(e.hostname)}function Pr(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(`:`)?e.protocol.slice(0,-1):e.protocol)}var Fr=I(`$ZodURL`,(e,t)=>{z.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=kr(r,t);if(i===1){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort});return}if(i===!0){n.value=Mr(r);return}t.hostname&&!Nr(i,t.hostname)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!Pr(i,t.protocol)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:Mr(r);return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Ir=I(`$ZodEmoji`,(e,t)=>{t.pattern??=Zt(),z.init(e,t)}),Lr=I(`$ZodNanoID`,(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??=t.length===void 0?Ft:It(t.length),z.init(e,t)}),Rr=I(`$ZodCUID`,(e,t)=>{t.pattern??=At,z.init(e,t)}),zr=I(`$ZodCUID2`,(e,t)=>{t.pattern??=jt,z.init(e,t)}),Br=I(`$ZodULID`,(e,t)=>{t.pattern??=Mt,z.init(e,t)}),Vr=I(`$ZodXID`,(e,t)=>{t.pattern??=Nt,z.init(e,t)}),Hr=I(`$ZodKSUID`,(e,t)=>{t.pattern??=Pt,z.init(e,t)}),Ur=I(`$ZodISODateTime`,(e,t)=>{t.pattern??=vn(t),z.init(e,t)}),Wr=I(`$ZodISODate`,(e,t)=>{t.pattern??=hn,z.init(e,t)}),Gr=I(`$ZodISOTime`,(e,t)=>{t.pattern??=_n(t),z.init(e,t)}),Kr=I(`$ZodISODuration`,(e,t)=>{t.pattern??=Lt,z.init(e,t)}),qr=I(`$ZodIPv4`,(e,t)=>{t.pattern??=Qt,z.init(e,t)}),Jr=/^[0-9a-fA-F:.]+$/;function Yr(e){return Jr.test(e)?Or(`http://[${e}]`):!1}var Xr=I(`$ZodIPv6`,(e,t)=>{t.pattern??=$t,z.init(e,t),e._zod.check=n=>{Yr(n.value)||n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}),Zr=I(`$ZodMAC`,(e,t)=>{t.pattern??=en(t.delimiter),z.init(e,t)}),Qr=I(`$ZodCIDRv4`,(e,t)=>{t.pattern??=tn,z.init(e,t)});function $r(e){let t=e.split(`/`);if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}`!==r||i<0||i>128?!1:Yr(n)}var ei=I(`$ZodCIDRv6`,(e,t)=>{t.pattern??=nn,z.init(e,t),e._zod.check=n=>{$r(n.value)||n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}});function ti(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var ni=/^[0-9a-zA-Z+/]*={0,2}$/,ri=I(`$ZodBase64`,(e,t)=>{t.pattern??=ni,z.init(e,t),e._zod.check=n=>{ti(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),ii=/^[A-Za-z0-9_-]*$/;function ai(e){if(!ii.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return ti(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var oi=I(`$ZodBase64URL`,(e,t)=>{t.pattern??=ii,z.init(e,t),e._zod.check=n=>{ai(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),si=I(`$ZodE164`,(e,t)=>{t.pattern??=ln,z.init(e,t)}),ci=/[- ]/g;function li(e){let t=e.length,n=1,r=0;for(;t;){let i=e.charCodeAt(--t)-48;n^=1,r+=n?[0,2,4,6,8,1,3,5,7,9][i]:i}return r%10==0}function ui(e){return un.test(e)?li(e.replace(ci,``)):!1}var di=I(`$ZodCreditCard`,(e,t)=>{t.pattern??=un,z.init(e,t),e._zod.check=n=>{ui(n.value)||n.issues.push({code:`invalid_format`,format:`credit_card`,input:n.value,inst:e,continue:!t.abort})}});function fi(e){let t=0,n=e.length;for(let r=4;r<n;r++){let n=e.charCodeAt(r);t=(n>=65?t*100+(n-55):t*10+(n-48))%97}for(let n=0;n<4;n++){let r=e.charCodeAt(n);t=(r>=65?t*100+(r-55):t*10+(r-48))%97}return t===1}function pi(e){return fn.test(e)?fi(e):!1}var mi=I(`$ZodIBAN`,(e,t)=>{t.pattern??=fn,z.init(e,t),e._zod.check=n=>{pi(n.value)||n.issues.push({code:`invalid_format`,format:`iban`,input:n.value,inst:e,continue:!t.abort})}});function hi(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var gi=I(`$ZodJWT`,(e,t)=>{z.init(e,t),e._zod.check=n=>{hi(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),_i=I(`$ZodCustomStringFormat`,(e,t)=>{z.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),vi=I(`$ZodNumber`,(e,t)=>{R.init(e,t),e._zod.pattern=Cn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),yi=I(`$ZodNumberFormat`,(e,t)=>{$n.init(e,t),vi.init(e,t)}),bi=I(`$ZodBoolean`,(e,t)=>{R.init(e,t),e._zod.pattern=wn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),xi=I(`$ZodBigInt`,(e,t)=>{R.init(e,t),e._zod.pattern=xn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),Si=I(`$ZodBigIntFormat`,(e,t)=>{er.init(e,t),xi.init(e,t)}),Ci=I(`$ZodSymbol`,(e,t)=>{R.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),wi=I(`$ZodUndefined`,(e,t)=>{R.init(e,t),e._zod.pattern=En,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),Ti=I(`$ZodNull`,(e,t)=>{R.init(e,t),e._zod.pattern=Tn,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Ei=I(`$ZodAny`,(e,t)=>{R.init(e,t),e._zod.parse=e=>e}),Di=I(`$ZodUnknown`,(e,t)=>{R.init(e,t),e._zod.parse=e=>e}),Oi=I(`$ZodNever`,(e,t)=>{R.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),ki=I(`$ZodVoid`,(e,t)=>{R.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),Ai=I(`$ZodDate`,(e,t)=>{R.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}});function ji(e,t){let n=be(e._zod.def.checks);if(!n.length)return;let r=Math.min(...n.map(e=>e[0])),i=e._zod.parse;e._zod.parse=(n,a)=>{let o=t(n.value);if(o>r&&!a?.skipChecks&&a?.direction!==`backward`){for(let[t,r]of be(e._zod.def.checks))if(o>t&&r._zod.def.when(n)){let t=n.issues.length;return r._zod.check(n),n.issues[t].continue=!1,xe(n.issues,t,e),n}}return i(n,a)}}var Mi=e=>Array.isArray(e)?e.length:-1,Ni=e=>e instanceof Map?e.size:-1,Pi=e=>e instanceof Set?e.size:-1;function Fi(e,t,n){e.issues.length&&t.issues.push(...ve(n,e.issues)),t.value[n]=e.value}var Ii=I(`$ZodArray`,(e,t)=>{R.init(e,t);let n=qe.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let e=0;e<a.length;e++){let n=a[e],c=t.element._zod.run({value:n,issues:[]},i);if(c instanceof Promise)o.push(c.then(t=>Fi(t,r,e)));else if(Fi(c,r,e),s&&c.issues.length!==0&&P(c))break}return o.length?Promise.all(o).then(()=>r):r},ji(e,Mi)});function Li(e,t,n,r,i,a){let o=n in r,s=a===`optional`;if(o||!s||i!==`optional`){if(e.issues.length){if(i!==void 0&&s&&!o)return;t.issues.push(...ve(n,e.issues))}!o&&i===void 0?e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]}):e.value===void 0?(o||i===`defaulted`&&!s)&&(t.value[n]=void 0):t.value[n]=e.value}}var Ri=[];function zi(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Ri,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=ae(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function Bi(e,t,n,r,i,a,o){let s=[],c=i.keySet,l=i.catchall._zod,u=l.def.type,d=l.optin,f=l.optout,p=0;for(let i in t){if(o&&n.issues.length!==p){if(P(n,p))break;p=n.issues.length}if(c.has(i))continue;if(i===`__proto__`){u===`never`&&s.push(i);continue}if(u===`never`){s.push(i);continue}let a=l.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Li(e,n,i,t,d,f))):Li(a,n,i,t,d,f)}return s.length&&n.issues.push({code:`unrecognized_keys`,keys:s,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var Vi=I(`$ZodObject`,(e,t)=>{R.init(e,t);let n=Object.getOwnPropertyDescriptor(t,`shape`),r=n?.get?n.get.raw:t.shape??{};if(r){let e=()=>{let n={...r};return Object.defineProperty(t,"shape",{value:n}),e.raw=n,n};e.raw=r,Object.defineProperty(t,"shape",{get:e})}let i=f(()=>zi(t));F(e,`propValues`,e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,e)||v(n,e,new Set);for(let t of r.values)n[e].add(t);r.optin!==void 0&&n[e].add(void 0)}}return n});let a=O,o=t.catchall,s,c=qe.memoizer;c?.attach(e),e._zod.parse=(t,n)=>{s??=i.value;let r=t.value;if(!a(r))return t.issues.push({expected:`object`,code:`invalid_type`,input:r,inst:e}),t;t.value=c?c.alloc(e,t,{},n):{};let l=[],u=s.shape,d=n?.abortEarly,f=t.issues.length;for(let e of s.allKeys){if(d&&t.issues.length!==f){if(P(t,f))break;f=t.issues.length}if(e===`__proto__`)continue;let i=u[e],a=i._zod.optin,o=i._zod.optout,s=i._zod.run({value:r[e],issues:[]},n);s instanceof Promise?l.push(s.then(n=>Li(n,t,e,r,a,o))):Li(s,t,e,r,a,o)}return o?Bi(l,r,t,n,i.value,e,d===!0):l.length?Promise.all(l).then(()=>t):t}}),Hi=I(`$ZodObjectJIT`,(e,t)=>{Vi.init(e,t);let n=e._zod.parse,r=f(()=>zi(t)),i=qe.memoizer,a=t=>{let n=r.value,a=n.symbolKeys,o=new yr([`payload`,`ctx`],{shape:t,inst:e,memo:i,syms:a}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,c=(e,t)=>`
|
|
5
|
-
let ${e}_ab = false;
|
|
6
|
-
for (let i = 0; i < ${e}.issues.length; i++) {
|
|
7
|
-
const iss = ${e}.issues[i];
|
|
8
|
-
iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
|
|
9
|
-
payload.issues.push(iss);
|
|
10
|
-
if (iss.continue !== true) ${e}_ab = true;
|
|
11
|
-
}
|
|
12
|
-
if (${e}_ab && ctx && ctx.abortEarly) {
|
|
13
|
-
payload.value = newResult;
|
|
14
|
-
return payload;
|
|
15
|
-
}`;o.write(`const input = payload.value;`);let l=Object.create(null),u=0;for(let e of n.allKeys)l[e]=`key_${u++}`;o.write(i?`const newResult = memo.alloc(inst, payload, {}, ctx);`:`const newResult = {};`);for(let e of n.allKeys){if(e===`__proto__`)continue;let n=l[e],r=typeof e==`symbol`?`syms[${a.indexOf(e)}]`:E(e),i=`${r} in input`,u=t[e],d=u?._zod?.optin,f=d!==void 0,p=u?._zod?.optout===`optional`;if(o.write(`const ${n} = ${s(r)};`),f&&p){let e=d===`optional`?`${n}_present`:`${n}.value !== undefined || ${n}_present`;o.write(`
|
|
16
|
-
const ${n}_present = ${i};
|
|
17
|
-
if (!${n}.issues.length || ${n}_present) {
|
|
18
|
-
if (${n}.issues.length) {${c(n,r)}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (${e}) {
|
|
22
|
-
newResult[${r}] = ${n}.value;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
`)}else f?(o.write(`
|
|
27
|
-
if (${n}.issues.length) {${c(n,r)}
|
|
28
|
-
}
|
|
29
|
-
`),d===`defaulted`?o.write(`newResult[${r}] = ${n}.value;`):o.write(`
|
|
30
|
-
if (${n}.value !== undefined || ${i}) {
|
|
31
|
-
newResult[${r}] = ${n}.value;
|
|
32
|
-
}
|
|
33
|
-
`)):o.write(`
|
|
34
|
-
const ${n}_present = ${i};
|
|
35
|
-
if (${n}.issues.length) {${c(n,r)}
|
|
36
|
-
}
|
|
37
|
-
if (!${n}_present && !${n}.issues.length) {
|
|
38
|
-
payload.issues.push({
|
|
39
|
-
code: "invalid_type",
|
|
40
|
-
expected: "nonoptional",
|
|
41
|
-
input: undefined,
|
|
42
|
-
path: [${r}]
|
|
43
|
-
});
|
|
44
|
-
if (ctx && ctx.abortEarly) {
|
|
45
|
-
payload.value = newResult;
|
|
46
|
-
return payload;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
if (${n}_present) {
|
|
51
|
-
newResult[${r}] = ${n}.value;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
`)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=O,c=!qe.jitless,l=c&&te.value,u=t.catchall,d;e._zod.parse=(i,f)=>{d??=r.value;let p=i.value;return s(p)?c&&l&&f?.async===!1&&f.jitless!==!0?(o||=a(t.shape),i=o(i,f),u?Bi([],p,i,f,d,e,f?.abortEarly===!0):i):n(i,f):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)}});function Ui(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!P(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Se(e,r,Je())))}),t)}var Wi=I(`$ZodUnion`,(e,t)=>{R.init(e,t),F(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),F(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),F(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),F(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>m(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Ui(t,r,e,i)):Ui(o,r,e,i)}});function Gi(e,t,n,r){let i=[];for(let t=0;t<e.length;t++)e[t].issues.length===0&&i.push(t);return i.length===1?(t.value=e[i[0]].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Se(e,r,Je())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1,matches:i}),t)}var Ki=I(`$ZodXor`,(e,t)=>{Wi.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>Gi(t,r,e,i)):Gi(o,r,e,i)}});function qi(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let e of r)if(t.has(e)){if(e!==void 0)throw Error(`Duplicate discriminator value "${String(e)}"`);t.set(e,null)}else t.set(e,n)}return t}var Ji=I(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Wi.init(e,t);let n=e._zod.parse;F(e,`propValues`,e=>{let t={},n=0;for(let r of e.def.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(r)}"`);i[e.def.discriminator]?.has(void 0)&&n++;for(let[e,n]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,e)||v(t,e,new Set);for(let r of n)t[e].add(r)}}return!e.def.unionFallback&&n>1&&t[e.def.discriminator]?.delete(void 0),t}),t.options.forEach((e,n)=>{let r=y(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=f(()=>qi(t));e._zod.parse=(i,a)=>{let o=i.value;if(!O(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=o?.[t.discriminator],c=r.value.get(s);return c&&(s!==void 0||a.direction!==`backward`)?c._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(e=>r.value.get(e)!==null),input:o,path:[t.discriminator],inst:e}),i)}}),Yi=I(`$ZodIntersection`,(e,t)=>{R.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Zi(e,t,n)):Zi(e,i,a)}});function Xi(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ne(e)&&ne(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=Xi(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Xi(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Zi(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=Xi(t.value,n.value);if(!c.valid){if(P(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var Qi=I(`$ZodTuple`,(e,t)=>{R.init(e,t);let n=t.items,r=qe.memoizer;r?.attach(e),e._zod.parse=(i,a)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:`tuple`,code:`invalid_type`}),i;i.value=r?r.alloc(e,i,[],a):[];let s=[],c=$i(n,`optin`),l=$i(n,`optout`);if(!t.rest){if(o.length<c)return i.issues.push({code:`too_small`,minimum:c,inclusive:!0,input:o,inst:e,origin:`array`}),i;o.length>n.length&&i.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:o,inst:e,origin:`array`})}let u=Array(n.length),d=t.rest?a?.abortEarly:void 0,f=!1;for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:o[e],issues:[]},a);t instanceof Promise?s.push(t.then(t=>{u[e]=t})):(u[e]=t,d&&!f&&t.issues.length&&(f=P(t)))}if(t.rest&&!f){let e=n.length-1,r=o.slice(n.length),c=i.issues.length;for(let n of r){if(d&&i.issues.length!==c){if(P(i,c))break;c=i.issues.length}e++;let r=t.rest._zod.run({value:n,issues:[]},a);r instanceof Promise?s.push(r.then(t=>ea(t,i,e))):ea(r,i,e)}}return s.length?Promise.all(s).then(()=>ta(u,i,n,o,l)):ta(u,i,n,o,l)}});function $i(e,t){for(let n=e.length-1;n>=0;n--)if(!(t===`optin`?e[n]._zod.optin!==void 0:e[n]._zod.optout===`optional`))return n+1;return 0}function ea(e,t,n){e.issues.length&&t.issues.push(...ve(n,e.issues)),t.value[n]=e.value}function ta(e,t,n,r,i){for(let a=0;a<n.length;a++){let o=e[a],s=a<r.length;if(!s&&a>=i&&n[a]._zod.optin===`optional`){t.value.length=a;break}if(o.issues.length){if(!s&&a>=i){t.value.length=a;break}t.issues.push(...ve(a,o.issues))}t.value[a]=o.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}var na=I(`$ZodRecord`,(e,t)=>{R.init(e,t);let n=qe.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!ne(a))return r.issues.push({expected:`record`,code:`invalid_type`,input:a,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s&&!t.partial){r.value=n?n.alloc(e,r,{},i):{};let c=new Set;for(let n of s)if(typeof n==`string`||typeof n==`number`||typeof n==`symbol`){if(c.add(typeof n==`number`?n.toString():n),n===`__proto__`)continue;let s=t.keyType._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){r.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>Se(e,i,Je())),input:n,path:[n],inst:e});continue}let l=s.value;if(l===`__proto__`)continue;let u=t.valueType._zod.run({value:a[n],issues:[]},i);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&r.issues.push(...ve(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...ve(n,u.issues)),r.value[l]=u.value)}let l;for(let e in a)if(!c.has(e)){if(t.mode===`loose`){if(e===`__proto__`)continue;r.value[e]=a[e]}else l??=[],l.push(e)}l&&l.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:l,continue:!0})}else{r.value=n?n.alloc(e,r,{},i):{};let c;for(let n of Reflect.ownKeys(a)){if(n===`__proto__`||!Object.prototype.propertyIsEnumerable.call(a,n))continue;let l=t.keyType._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof n==`string`&&Cn.test(n)&&l.issues.length){let e=t.keyType._zod.run({value:Number(n),issues:[]},i);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(l=e)}if(l.issues.length){t.mode===`loose`?r.value[n]=a[n]:s?(c??=[],c.push(n)):r.issues.push({code:`invalid_key`,origin:`record`,issues:l.issues.map(e=>Se(e,i,Je())),input:n,path:[n],inst:e});continue}let u=l.value;if(u===`__proto__`)continue;let d=t.valueType._zod.run({value:a[n],issues:[]},i);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&r.issues.push(...ve(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...ve(n,d.issues)),r.value[u]=d.value)}c&&c.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:c,continue:!0})}return o.length?Promise.all(o).then(()=>r):r}}),ra=I(`$ZodMap`,(e,t)=>{R.init(e,t);let n=qe.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!(a instanceof Map))return r.issues.push({expected:`map`,code:`invalid_type`,input:a,inst:e}),r;let o=[];r.value=n?n.alloc(e,r,new Map,i):new Map;let s=i?.abortEarly,c=r.issues.length;for(let[n,l]of a){if(s&&r.issues.length!==c){if(P(r,c))break;c=r.issues.length}let u=t.keyType._zod.run({value:n,issues:[]},i),d=t.valueType._zod.run({value:l,issues:[]},i);u instanceof Promise||d instanceof Promise?o.push(Promise.all([u,d]).then(([t,o])=>{ia(t,o,r,n,a,e,i)})):ia(u,d,r,n,a,e,i)}return o.length?Promise.all(o).then(()=>r):r},ji(e,Ni)});function ia(e,t,n,r,i,a,o){e.issues.length&&(re.has(typeof r)?n.issues.push(...ve(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>Se(e,o,Je()))})),t.issues.length&&(re.has(typeof r)?n.issues.push(...ve(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>Se(e,o,Je()))})),n.value.set(e.value,t.value)}var aa=I(`$ZodSet`,(e,t)=>{R.init(e,t);let n=qe.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!(a instanceof Set))return r.issues.push({input:a,inst:e,expected:`set`,code:`invalid_type`}),r;let o=[];r.value=n?n.alloc(e,r,new Set,i):new Set;let s=i?.abortEarly,c=r.issues.length;for(let e of a){if(s&&r.issues.length!==c){if(P(r,c))break;c=r.issues.length}let n=t.valueType._zod.run({value:e,issues:[]},i);n instanceof Promise?o.push(n.then(e=>oa(e,r))):oa(n,r)}return o.length?Promise.all(o).then(()=>r):r},ji(e,Pi)});function oa(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var sa=I(`$ZodEnum`,(e,t)=>{R.init(e,t);let n=c(t.entries),r=new Set(n);e._zod.values=r,F(e,`pattern`,e=>{let t=c(e.def.entries).filter(e=>re.has(typeof e));return RegExp(t.length?`^(${t.map(e=>A(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),ca=I(`$ZodLiteral`,(e,t)=>{R.init(e,t);let n=new Set(t.values);e._zod.values=n,F(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?A(e):e?A(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),la=I(`$ZodFile`,(e,t)=>{R.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),ua=I(`$ZodTransform`,(e,t)=>{R.init(e,t),e._zod.optin=`optional`,qe.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Ke(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new Ge;return n.value=i,n}});function da(e,t){return e.value=t.issues.length?void 0:t.value,e}var fa=I(`$ZodOptional`,(e,t)=>{R.init(e,t),F(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,F(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),F(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${m(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>da(e,t)):da(e,r)}return t.innerType._zod.run(e,n)}}),pa=I(`$ZodExactOptional`,(e,t)=>{fa.init(e,t),F(e,`values`,e=>e.def.innerType._zod.values),F(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),ma=I(`$ZodNullable`,(e,t)=>{R.init(e,t),F(e,`optin`,e=>e.def.innerType._zod.optin),F(e,`optout`,e=>e.def.innerType._zod.optout),F(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${m(t.source)}|null)$`):void 0}),F(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),ha=I(`$ZodDefault`,(e,t)=>{R.init(e,t),e._zod.optin=`defaulted`,F(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>ga(e,t)):ga(r,t)}});function ga(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var _a=I(`$ZodPrefault`,(e,t)=>{R.init(e,t),e._zod.optin=`defaulted`,F(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),va=I(`$ZodNonOptional`,(e,t)=>{R.init(e,t),F(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>ya(t,e)):ya(i,e)}});function ya(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var ba=I(`$ZodSuccess`,(e,t)=>{R.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new Ke(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}});function xa(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>Se(e,r,Je()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var Sa=I(`$ZodCatch`,(e,t)=>{R.init(e,t),F(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),F(e,`optout`,e=>e.def.innerType._zod.optout),F(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>xa(e,r,t,n)):xa(e,r,t,n)}}),Ca=I(`$ZodNaN`,(e,t)=>{R.init(e,t),e._zod.parse=(t,n)=>(typeof t.value==`number`&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),wa=I(`$ZodPipe`,(e,t)=>{R.init(e,t),F(e,`values`,e=>e.def.in._zod.values),F(e,`optin`,e=>e.def.in._zod.optin),F(e,`optout`,e=>e.def.out._zod.optout),F(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Ta(e,t.in,n)):Ta(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Ta(e,t.out,n)):Ta(r,t.out,n)}});function Ta(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Ea=I(`$ZodCodec`,(e,t)=>{R.init(e,t),F(e,`values`,e=>e.def.in._zod.values),F(e,`optin`,e=>e.def.in._zod.optin),F(e,`optout`,e=>e.def.out._zod.optout),F(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Da(e,t,n)):Da(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Da(e,t,n)):Da(r,t,n)}}});function Da(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>Oa(e,r,t.out,n)):Oa(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>Oa(e,r,t.in,n)):Oa(e,r,t.in,n)}}function Oa(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var ka=I(`$ZodPreprocess`,(e,t)=>{wa.init(e,t)}),Aa=I(`$ZodReadonly`,(e,t)=>{R.init(e,t),F(e,`propValues`,e=>e.def.innerType._zod.propValues),F(e,`values`,e=>e.def.innerType._zod.values),F(e,`optin`,e=>e.def.innerType?._zod?.optin),F(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(ja):ja(r)}});function ja(e){return e.memo||(e.value=Object.freeze(e.value)),e}function Ma(e){let t=e._zod.def,n=t.pattern,r=!!t.format?.includes(`int`),i,a;for(let e of t.checks??[]){let t=e._zod.def;t.pattern&&(n=t.pattern),r||=!!t.format?.includes(`int`);let o=t.minimum??t.length,s=t.maximum??t.length;o!==void 0&&(i===void 0||o>i)&&(i=o),s!==void 0&&(a===void 0||s<a)&&(a=s)}if(n)return n.source;if(i!==void 0&&a!==void 0&&i>a)return`(?!)`;if(i!==void 0||a!==void 0)return bn({minimum:i,maximum:a}).source;let o=e._zod.pattern;return(r&&o===Cn?Sn:o)?.source}function Na(e){let t=e._zod.def,n=e._zod.pattern?.source,r=t.innerType??e._zod.innerType;if(r){let e=r._zod.pattern?.source,t=Na(r);return n&&e&&t&&t!==e?n.replace(m(e),()=>m(t)):n}if(t.options){let e=t.options.map(Na);if(e.every(Boolean))return`^(${e.map(e=>m(e)).join(`|`)})$`}return Ma(e)}var Pa=I(`$ZodTemplateLiteral`,(e,t)=>{R.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){let t=Na(e);if(!t)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);n.push(m(t))}else if(e===null||ie.has(typeof e))n.push(A(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),Fa=I(`$ZodFunction`,(e,t)=>(R.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return Object.defineProperty(function(...n){let r=e._def.input?ut(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?ut(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return Object.defineProperty(async function(...n){let r=e._def.input?await ft(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await ft(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e._zod.parse=(t,n)=>typeof t.value==`function`?(t.value=e._def.output&&e._def.output._zod.def.type===`promise`?e.implementAsync(t.value):e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new Qi({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),Ia=I(`$ZodPromise`,(e,t)=>{R.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),La=I(`$ZodLazy`,(e,t)=>{R.init(e,t),_(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),F(e,`pattern`,e=>e.innerType?._zod?.pattern),F(e,`propValues`,e=>e.innerType?._zod?.propValues),F(e,`optin`,e=>e.innerType?._zod?.optin??void 0),F(e,`optout`,e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),Ra=I(`$ZodCustom`,(e,t)=>{L.init(e,t),R.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>za(t,n,r,e));za(i,n,r,e)}});function za(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Oe(e))}}var Ba=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},Va=`~memo`,Ha=[];function Ua(e){return typeof e==`object`&&!!e}function Wa(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var Ga=new WeakMap,Ka=0,qa=1,Ja=2;function Ya(e,t,n){let r=Ga.get(e);if(r!==void 0)return r?Ja:Ka;if(t.has(e))return Ja;t.add(e);let i=Ka,a=e=>{if(i!==Ja&&e?._zod){let r=Ya(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=Ka;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?qa:o.value?._zod?Ya(o.value,t,n):Ka;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=y(c);s(e?o(e,!0):qa),a(c.catchall);break}case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?Ya(r,t,!1):qa);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(n&&typeof n==`object`){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),Xa(e,i)}function Xa(e,t){return t!==qa&&Ga.set(e,t===Ja),t}function Za(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var Qa,$a=[],eo={alloc(e,t,n){let r=Qa;if(!r)return n;Qa=void 0;let i={value:n,issues:null};return r.set(t.value,i),$a.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&no(n,e.value))throw new Ba;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=Ya(e,new Set,!1);if(i===Ka)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===Ja||r?n=!0:r=!0}let l=s.value;if(!Ua(l))return t(s,c);let u=c[Va];u||(u={buckets:new WeakMap,backEdges:void 0},c[Va]=u);let d;i===c?d=a:(d=Za(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...Wa(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=new WeakSet),u.backEdges.add(f.value)),s;Qa=d;let p=$a.length,m=t(s,c);Qa=void 0;let h=$a.length>p?$a.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?Wa(e.issues):Ha),e)):(h&&(h.issues=m.issues.length?Wa(m.issues):Ha),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}};function to(){return eo}function no(e,t){let n=e[Va]?.backEdges;return n!==void 0&&Ua(t)&&n.has(t)}var ro=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(De(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${N(e.values[0])}`:`Invalid option: expected one of ${l(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${l(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function io(){return{localeError:ro()}}var ao,oo=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function so(){return new oo}(ao=globalThis).__zod_globalRegistry??(ao.__zod_globalRegistry=so());var co=globalThis.__zod_globalRegistry;function lo(e){return e.checks&&=[...e.checks],e}function uo(e,t){return new e(lo({type:`string`,...M(t)}))}function fo(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...M(t)})}function po(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...M(t)})}function mo(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...M(t)})}function ho(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...M(t)})}function go(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...M(t)})}function _o(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...M(t)})}function vo(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...M(t)})}function yo(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...M(t)})}function bo(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...M(t)})}function xo(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...M(t)})}function So(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...M(t)})}function Co(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...M(t)})}function wo(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...M(t)})}function To(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...M(t)})}function Eo(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...M(t)})}function Do(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...M(t)})}function Oo(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...M(t)})}function ko(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...M(t)})}function Ao(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...M(t)})}function jo(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...M(t)})}function Mo(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...M(t)})}function No(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...M(t)})}function Po(e,t){return new e({type:`string`,format:`credit_card`,check:`string_format`,abort:!1,...M(t)})}function Fo(e,t){return new e({type:`string`,format:`iban`,check:`string_format`,abort:!1,...M(t)})}function Io(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...M(t)})}function Lo(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...M(t)})}function Ro(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...M(t)})}function zo(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...M(t)})}function Bo(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...M(t)})}function Vo(e,t){return new e(lo({type:`number`,checks:[],...M(t)}))}function Ho(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...M(t)})}function Uo(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...M(t)})}function Wo(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...M(t)})}function Go(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...M(t)})}function Ko(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...M(t)})}function qo(e,t){return new e({type:`boolean`,...M(t)})}function Jo(e,t){return new e({type:`bigint`,...M(t)})}function Yo(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...M(t)})}function Xo(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...M(t)})}function Zo(e,t){return new e({type:`symbol`,...M(t)})}function Qo(e,t){return new e({type:`undefined`,...M(t)})}function $o(e,t){return new e({type:`null`,...M(t)})}function es(e){return new e({type:`any`})}function ts(e){return new e({type:`unknown`})}function ns(e,t){return new e({type:`never`,...M(t)})}function rs(e,t){return new e({type:`void`,...M(t)})}function is(e,t){return new e({type:`date`,...M(t)})}function as(e,t){return new e({type:`nan`,...M(t)})}function os(e,t){return new Xn({check:`less_than`,...M(t),value:e,inclusive:!1})}function ss(e,t){return new Xn({check:`less_than`,...M(t),value:e,inclusive:!0})}function cs(e,t){return new Zn({check:`greater_than`,...M(t),value:e,inclusive:!1})}function ls(e,t){return new Zn({check:`greater_than`,...M(t),value:e,inclusive:!0})}function us(e){return cs(0,e)}function ds(e){return os(0,e)}function fs(e){return ss(0,e)}function ps(e){return ls(0,e)}function ms(e,t){return new Qn({check:`multiple_of`,...M(t),value:e})}function hs(e,t){return new tr({check:`max_size`,...M(t),maximum:e})}function gs(e,t){return new nr({check:`min_size`,...M(t),minimum:e})}function _s(e,t){return new rr({check:`size_equals`,...M(t),size:e})}function vs(e,t){return new ir({check:`max_length`,...M(t),maximum:e})}function ys(e,t){return new ar({check:`min_length`,...M(t),minimum:e})}function bs(e,t){return new or({check:`length_equals`,...M(t),length:e})}function xs(e,t){return new cr({check:`string_format`,format:`regex`,...M(t),pattern:e})}function Ss(e){return new lr({check:`string_format`,format:`lowercase`,...M(e)})}function Cs(e){return new ur({check:`string_format`,format:`uppercase`,...M(e)})}function ws(e,t){return new dr({check:`string_format`,format:`includes`,...M(t),includes:e})}function Ts(e,t){return new fr({check:`string_format`,format:`starts_with`,...M(t),prefix:e})}function Es(e,t){return new pr({check:`string_format`,format:`ends_with`,...M(t),suffix:e})}function Ds(e,t,n){return new hr({check:`property`,property:e,schema:t,...M(n)})}function Os(e,t){return new gr({check:`properties`,shape:e,...M(t)})}function ks(e,t){return new _r({check:`mime_type`,mime:e,...M(t)})}function As(e){return new vr({check:`overwrite`,tx:e})}function js(e){return As(t=>t.normalize(e))}function Ms(){return As(e=>e.trim())}function Ns(){return As(e=>e.toLowerCase())}function Ps(){return As(e=>e.toUpperCase())}function Fs(){return As(e=>D(e))}function Is(e,t,n){return new e({type:`array`,element:t,...M(n)})}function Ls(e,t){return new e({type:`file`,...M(t)})}function Rs(e,t,n){let r=M(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function zs(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...M(n)})}function Bs(e,t){let n=Vs(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Oe(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Oe(r))}},e(t.value,t)),t);return n}function Vs(e,t){let n=new L({check:`custom`,...M(t)});return n._zod.check=e,n}function Hs(e){let t=new L({check:`describe`});return t._zod.onattach=[t=>{let n=co.get(t)??{};co.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function Us(e){let t=new L({check:`meta`});return t._zod.onattach=[t=>{let n=co.get(t)??{};co.add(t,{...n,...e})}],t._zod.check=()=>{},t}function Ws(e,t){let n=M(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??Ea,c=e.Boolean??bi,l=new s({type:`pipe`,in:new(e.String??wr)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:!o.has(r)&&(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l._zod.bag.truthy=r,l._zod.bag.falsy=i,l._zod.bag.case=n.case??`insensitive`,l}function Gs(e,t,n,r={}){let i=M(r),a={check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}function Ks(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&v(e,t,n[t]);return e}function qs(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??co,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function Js(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function B(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,B(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Ks(o.schema,c),t.io===`input`&&ic(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Ys(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function Xs(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${Ys(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+Ys(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
55
|
-
|
|
56
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function Zs(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;Zs(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var Qs=new Set([`type`,`properties`,`required`,`additionalProperties`]),$s=[`oneOf`,`anyOf`];function ec(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function tc(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!Qs.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??ec(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}v(n,r,e.length===1?e[0]:tc(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=ec(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function nc(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of Qs)if(t in e)return;let n=t.filter(e=>$s.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=tc(t);else{let e=n[0],i=$s.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>tc([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,Ks(e,r))}function rc(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Ks(i,s),Ks(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())Zs(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])nc(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Ks(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,v(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:oc(t,`input`,e.processors),output:oc(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function ic(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return ic(r.element,n);if(r.type===`set`)return ic(r.valueType,n);if(r.type===`lazy`)return ic(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return ic(r.innerType,n);if(r.type===`intersection`)return ic(r.left,n)||ic(r.right,n);if(r.type===`record`||r.type===`map`)return ic(r.keyType,n)||ic(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:ic(r.in,n)||ic(r.out,n);if(r.type===`object`){for(let e in r.shape)if(ic(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(ic(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(ic(e,n))return!0;return!!(r.rest&&ic(r.rest,n))}return!1}var ac=(e,t={})=>n=>{let r=qs({...n,processors:t});return B(e,r),Xs(r,e),rc(r,e)},oc=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=qs({...i??{},target:a,io:t,processors:n});return B(e,o),Xs(o,e),rc(o,e)},sc=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},cc=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},lc=(e,t)=>{sc(e,`minimum`,t),cc(e,`maximum`,t)},uc=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},dc=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},fc=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},pc=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},mc=(e,t)=>sc(e,`minimum`,t.minimum),hc=(e,t)=>cc(e,`maximum`,t.maximum),gc=e=>(t,n)=>{pc(t,n.format);let[r,i]=e[n.format];sc(t,`minimum`,r),cc(t,`maximum`,i)},_c={greater_than:(e,t)=>sc(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>cc(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>uc(e,t.value),number_format:gc(oe),bigint_format:gc(se),min_length:mc,max_length:hc,length_equals:(e,t)=>lc(e,t.length),min_size:mc,max_size:hc,size_equals:(e,t)=>lc(e,t.size),string_format:(e,t)=>{pc(e,t.format),t.pattern&&dc(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>fc(e,t.mime)};function vc(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)_c[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&sc(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&sc(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&cc(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&cc(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&uc(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&fc(t,i.mime);for(let e of i.patterns??[])dc(t,e);return t}var yc={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},bc=new Map([[ni,rn],[ii,an]]),xc=e=>bc.get(e)??e,Sc=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=vc(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=yc[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(xc);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Cc=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=vc(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):Js(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},wc=(e,t,n,r)=>{n.type=`boolean`},Tc=(e,t,n,r)=>{Js(e,t,n,r,`BigInt cannot be represented in JSON Schema`)},Ec=(e,t,n,r)=>{Js(e,t,n,r,`Symbols cannot be represented in JSON Schema`)},Dc=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Oc=(e,t,n,r)=>{Js(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},kc=(e,t,n,r)=>{Js(e,t,n,r,`Void cannot be represented in JSON Schema`)},Ac=(e,t,n,r)=>{n.not={}},jc=(e,t,n,r)=>{Js(e,t,n,r,`Date cannot be represented in JSON Schema`)},Mc=(e,t,n,r)=>{let i=e._zod.def,a=c(i.entries);a.length===0?n.not={}:(a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a)},Nc=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(Js(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(Js(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},Pc=(e,t,n,r)=>{Js(e,t,n,r,`NaN cannot be represented in JSON Schema`)},Fc=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},Ic=(e,t,n,r)=>{let i=n;i.type=`string`,i.format=`binary`,i.contentEncoding=`binary`;let{minimum:a,maximum:o,mime:s}=vc(e);a!==void 0&&(i.minLength=a),o!==void 0&&(i.maxLength=o),s&&(s.length===0?i.not={}:s.length===1?i.contentMediaType=s[0]:i.anyOf=s.map(e=>({contentMediaType:e})))},Lc=(e,t,n,r)=>{n.type=`boolean`},Rc=(e,t,n,r)=>{Js(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},zc=(e,t,n,r)=>{Js(e,t,n,r,`Function types cannot be represented in JSON Schema`)},Bc=(e,t,n,r)=>{Js(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},Vc=(e,t,n,r)=>{Js(e,t,n,r,`Map cannot be represented in JSON Schema`)},Hc=(e,t,n,r)=>{Js(e,t,n,r,`Set cannot be represented in JSON Schema`)},Uc=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=vc(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=B(a.element,t,{...r,path:[...r.path,`items`]})};function Wc(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?Wc(t.out):t.type===`catch`?Wc(t.innerType):e._zod.optin}var Gc=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&Js(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)v(i.properties,e,B(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?Wc(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=B(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Kc=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>B(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},qc=(e,t,n,r)=>{let i=e._zod.def,a=B(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=B(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},Jc=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>B(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?B(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null,u=a.items.length;for(;u>0;){let e=a.items[u-1];if(!(t.io===`input`?Wc(e)!==void 0:e._zod.optout===`optional`))break;u--}let d=a.items.length,f=!a.rest;t.target===`draft-2020-12`?(i.prefixItems=c,f?i.items=!1:l&&(i.items=l),u>0&&(i.minItems=u),f&&(i.maxItems=d)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),u>0&&(i.minItems=u),f&&(i.maxItems=d)):(i.items=c,f?i.additionalItems=!1:l&&(i.additionalItems=l),u>0&&(i.minItems=u),f&&(i.maxItems=d));let{minimum:p,maximum:m}=vc(e);typeof p==`number`&&(i.minItems=p),typeof m==`number`&&(i.maxItems=m)};function Yc(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=Yc(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>Yc(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i&&(p.type=`string`,a||(p.pattern=(r.includes(`number`)?Cn:Sn).source)),p}var Xc=new WeakMap;function Zc(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of Xc.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=Yc(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}var Qc=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=vc(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=B(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)v(i.patternProperties,xc(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=B(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=Xc.get(t);n||(n=[],Xc.set(t,n),t.deferred.push(()=>Zc(t))),n.push(e)}i.additionalProperties=B(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&Wc(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},$c=(e,t,n,r)=>{let i=e._zod.def,a=B(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},el=(e,t,n,r)=>{let i=e._zod.def;B(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},tl=Symbol();function nl(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(Js(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),tl):JSON.parse(o)}var rl=(e,t,n,r)=>{let i=e._zod.def;B(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=nl(i.defaultValue,e,t,n,r);o!==tl&&(n.default=o)},il=(e,t,n,r)=>{let i=e._zod.def;B(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=nl(i.defaultValue,e,t,n,r);o!==tl&&(n._prefault=o)},al=(e,t,n,r)=>{let i=e._zod.def;B(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{Js(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},ol=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;B(o,t,r);let s=t.seen.get(e);s.ref=o},sl=(e,t,n,r)=>{let i=e._zod.def;B(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},cl=(e,t,n,r)=>{let i=e._zod.def;B(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},ll=(e,t,n,r)=>{let i=e._zod.def;B(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},ul=(e,t,n,r)=>{let i=e._zod.innerType;B(i,t,r);let a=t.seen.get(e);a.ref=i},dl=new WeakSet([Object.prototype,Error.prototype]);function fl(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var pl=I(`ZodError`,(e,t)=>{tt.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);dl.has(n)||(dl.add(n),fl(n,`format`,e=>t=>at(e,t)),fl(n,`flatten`,e=>t=>it(e,t)),fl(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,u,2)}),fl(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,u,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),ml=lt(pl),hl=dt(pl),gl=pt(pl),_l=ht(pl),vl=xt(pl),yl=St(pl),bl=Ct(pl),xl=wt(pl),Sl=Tt(pl),Cl=Et(pl),wl=Dt(pl),Tl=Ot(pl),El=t({ZodAny:()=>td,ZodArray:()=>dd,ZodBase64:()=>_u,ZodBase64URL:()=>yu,ZodBigInt:()=>Wu,ZodBigIntFormat:()=>Ku,ZodBoolean:()=>Hu,ZodCIDRv4:()=>pu,ZodCIDRv6:()=>hu,ZodCUID:()=>Zl,ZodCUID2:()=>$l,ZodCatch:()=>tf,ZodCodec:()=>cf,ZodCreditCard:()=>Cu,ZodCustom:()=>Sf,ZodCustomStringFormat:()=>ku,ZodDate:()=>ld,ZodDefault:()=>qd,ZodDiscriminatedUnion:()=>yd,ZodE164:()=>xu,ZodEmail:()=>Fl,ZodEmoji:()=>ql,ZodEnum:()=>Md,ZodExactOptional:()=>Hd,ZodFile:()=>Id,ZodFunction:()=>bf,ZodGUID:()=>Ll,ZodIBAN:()=>Tu,ZodIPv4:()=>su,ZodIPv6:()=>du,ZodISODate:()=>Ml,ZodISODateTime:()=>jl,ZodISODuration:()=>Pl,ZodISOTime:()=>Nl,ZodInstanceOf:()=>kf,ZodIntersection:()=>xd,ZodJWT:()=>Du,ZodKSUID:()=>au,ZodLazy:()=>gf,ZodLiteral:()=>Pd,ZodMAC:()=>lu,ZodMap:()=>Od,ZodNaN:()=>rf,ZodNanoID:()=>Yl,ZodNever:()=>ad,ZodNonOptional:()=>Zd,ZodNull:()=>$u,ZodNullable:()=>Wd,ZodNumber:()=>Fu,ZodNumberFormat:()=>Iu,ZodObject:()=>pd,ZodOptional:()=>Bd,ZodPipe:()=>of,ZodPrefault:()=>Yd,ZodPreprocess:()=>df,ZodPromise:()=>vf,ZodReadonly:()=>ff,ZodRecord:()=>Td,ZodSet:()=>Ad,ZodString:()=>Al,ZodStringFormat:()=>U,ZodSuccess:()=>$d,ZodSymbol:()=>Yu,ZodTemplateLiteral:()=>mf,ZodTransform:()=>Rd,ZodTuple:()=>Cd,ZodType:()=>V,ZodULID:()=>tu,ZodURL:()=>Wl,ZodUUID:()=>zl,ZodUndefined:()=>Zu,ZodUnion:()=>hd,ZodUnknown:()=>rd,ZodVoid:()=>sd,ZodXID:()=>ru,ZodXor:()=>_d,_ZodString:()=>kl,_default:()=>Jd,_function:()=>xf,any:()=>nd,array:()=>G,base64:()=>vu,base64url:()=>bu,bigint:()=>Gu,boolean:()=>Uu,catch:()=>nf,check:()=>Cf,cidrv4:()=>mu,cidrv6:()=>gu,codec:()=>lf,creditCard:()=>wu,cuid:()=>Ql,cuid2:()=>eu,currencyCode:()=>Nu,custom:()=>wf,date:()=>ud,describe:()=>Df,discriminatedUnion:()=>bd,e164:()=>Su,email:()=>Il,emoji:()=>Jl,enum:()=>Y,exactOptional:()=>Ud,file:()=>Ld,float32:()=>Ru,float64:()=>zu,function:()=>xf,guid:()=>Rl,hash:()=>Pu,hex:()=>Mu,hostname:()=>ju,httpUrl:()=>Kl,iban:()=>Eu,instanceof:()=>Af,int:()=>Lu,int32:()=>Bu,int64:()=>qu,intersection:()=>Sd,invertCodec:()=>uf,ipv4:()=>cu,ipv6:()=>fu,json:()=>Mf,jwt:()=>Ou,keyof:()=>fd,ksuid:()=>ou,lazy:()=>_f,literal:()=>Fd,looseObject:()=>md,looseRecord:()=>Dd,mac:()=>uu,map:()=>kd,meta:()=>Of,nan:()=>af,nanoid:()=>Xl,nativeEnum:()=>Nd,never:()=>od,nonoptional:()=>Qd,null:()=>ed,nullable:()=>Gd,nullish:()=>Kd,number:()=>W,object:()=>K,optional:()=>Vd,partialRecord:()=>Ed,pipe:()=>sf,prefault:()=>Xd,preprocess:()=>Nf,promise:()=>yf,readonly:()=>pf,record:()=>J,refine:()=>Tf,set:()=>jd,strictObject:()=>q,string:()=>H,stringFormat:()=>Au,stringbool:()=>jf,success:()=>ef,superRefine:()=>Ef,symbol:()=>Xu,templateLiteral:()=>hf,transform:()=>zd,tuple:()=>wd,uint32:()=>Vu,uint64:()=>Ju,ulid:()=>nu,undefined:()=>Qu,union:()=>gd,unknown:()=>id,url:()=>Gl,uuid:()=>Bl,uuidv4:()=>Vl,uuidv6:()=>Hl,uuidv7:()=>Ul,void:()=>cd,xid:()=>iu,xor:()=>vd});function Dl(){qe.localeError||Je(io())}function Ol(){qe.memoizer||Je({memoizer:to()})}var V=I(`ZodType`,(e,t)=>(Dl(),R.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(T(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return j(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Tf(e,t))},superRefine(e,t){return this.check(Ef(e,t))},overwrite(e){return this.check(As(e))},optional(){return Vd(this)},exactOptional(){return Ud(this)},nullable(){return Gd(this)},nullish(){return Vd(Gd(this))},nonoptional(e){return Qd(this,e)},array(){return G(this)},or(e){return gd([this,e])},and(e){return Sd(this,e)},transform(e){return sf(this,zd(e))},default(e){return Jd(this,e)},prefault(e){return Xd(this,e)},catch(e){return nf(this,e)},pipe(e){return sf(this,e)},readonly(){return pf(this)},describe(e){let t=this.clone();return co.add(t,{description:e}),t},meta(...e){if(e.length===0)return co.get(this);let t=this.clone();return co.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return je(this,`~standard`,{...Cr(this),jsonSchema:{input:oc(this,`input`),output:oc(this,`output`)}})},set"~standard"(e){Ae(this,`~standard`,e)},parse:function e(t,n){return ml(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await hl(this,t,n,{callee:e})},safeParse(e,t){return gl(this,e,t)},async safeParseAsync(e,t){return _l(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Ae(this,`spa`,e)},validate(e,t){return vt(this,e,t)},validateAsync(e,t){return bt(this,e,t)},encode:function e(t,n){return vl(this,t,n,{callee:e})},decode:function e(t,n){return yl(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await bl(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await xl(this,t,n,{callee:e})},safeEncode(e,t){return Sl(this,e,t)},safeDecode(e,t){return Cl(this,e,t)},async safeEncodeAsync(e,t){return wl(this,e,t)},async safeDecodeAsync(e,t){return Tl(this,e,t)},toJSONSchema(e){return ac(this,{})(e)},get description(){return co.get(this)?.description},get _def(){return this._zod.def}}),kl=I(`_ZodString`,(e,t)=>{wr.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sc(e,t,n,r)},Me({format:e=>vc(e).format??null,minLength:e=>vc(e).minimum??null,maxLength:e=>vc(e).maximum??null},{regex(...e){return this.check(xs(...e))},includes(...e){return this.check(ws(...e))},startsWith(...e){return this.check(Ts(...e))},endsWith(...e){return this.check(Es(...e))},min(...e){return this.check(ys(...e))},max(...e){return this.check(vs(...e))},length(...e){return this.check(bs(...e))},nonempty(...e){return this.check(ys(1,...e))},lowercase(e){return this.check(Ss(e))},uppercase(e){return this.check(Cs(e))},trim(){return this.check(Ms())},normalize(...e){return this.check(js(...e))},toLowerCase(){return this.check(Ns())},toUpperCase(){return this.check(Ps())},slugify(){return this.check(Fs())}})),Al=I(`ZodString`,(e,t)=>{wr.init(e,t),kl.init(e,t)},{email(e){return this.check(fo(Fl,e))},url(e){return this.check(vo(Wl,e))},jwt(e){return this.check(Io(Du,e))},emoji(e){return this.check(yo(ql,e))},guid(e){return this.check(po(Ll,e))},uuid(e){return this.check(mo(zl,e))},uuidv4(e){return this.check(ho(zl,e))},uuidv6(e){return this.check(go(zl,e))},uuidv7(e){return this.check(_o(zl,e))},nanoid(e){return this.check(bo(Yl,e))},cuid(e){return this.check(xo(Zl,e))},cuid2(e){return this.check(So($l,e))},ulid(e){return this.check(Co(tu,e))},base64(e){return this.check(jo(_u,e))},base64url(e){return this.check(Mo(yu,e))},xid(e){return this.check(wo(ru,e))},ksuid(e){return this.check(To(au,e))},ipv4(e){return this.check(Eo(su,e))},ipv6(e){return this.check(Do(du,e))},cidrv4(e){return this.check(ko(pu,e))},cidrv6(e){return this.check(Ao(hu,e))},e164(e){return this.check(No(xu,e))},datetime(e){return this.check(Lo(jl,e))},date(e){return this.check(Ro(Ml,e))},time(e){return this.check(zo(Nl,e))},duration(e){return this.check(Bo(Pl,e))}});function H(e){return uo(Al,e)}var U=I(`ZodStringFormat`,(e,t)=>{z.init(e,t),kl.init(e,t)}),jl=I(`ZodISODateTime`,(e,t)=>{Ur.init(e,t),U.init(e,t)}),Ml=I(`ZodISODate`,(e,t)=>{Wr.init(e,t),U.init(e,t)}),Nl=I(`ZodISOTime`,(e,t)=>{Gr.init(e,t),U.init(e,t)}),Pl=I(`ZodISODuration`,(e,t)=>{Kr.init(e,t),U.init(e,t)}),Fl=I(`ZodEmail`,(e,t)=>{Dr.init(e,t),U.init(e,t)});function Il(e){return fo(Fl,e)}var Ll=I(`ZodGUID`,(e,t)=>{Tr.init(e,t),U.init(e,t)});function Rl(e){return po(Ll,e)}var zl=I(`ZodUUID`,(e,t)=>{Er.init(e,t),U.init(e,t)});function Bl(e){return mo(zl,e)}function Vl(e){return ho(zl,e)}function Hl(e){return go(zl,e)}function Ul(e){return _o(zl,e)}var Wl=I(`ZodURL`,(e,t)=>{Fr.init(e,t),U.init(e,t)});function Gl(e){return vo(Wl,e)}function Kl(e){return vo(Wl,{protocol:cn,hostname:sn,...M(e)})}var ql=I(`ZodEmoji`,(e,t)=>{Ir.init(e,t),U.init(e,t)});function Jl(e){return yo(ql,e)}var Yl=I(`ZodNanoID`,(e,t)=>{Lr.init(e,t),U.init(e,t)});function Xl(e){return bo(Yl,e)}var Zl=I(`ZodCUID`,(e,t)=>{Rr.init(e,t),U.init(e,t)});function Ql(e){return xo(Zl,e)}var $l=I(`ZodCUID2`,(e,t)=>{zr.init(e,t),U.init(e,t)});function eu(e){return So($l,e)}var tu=I(`ZodULID`,(e,t)=>{Br.init(e,t),U.init(e,t)});function nu(e){return Co(tu,e)}var ru=I(`ZodXID`,(e,t)=>{Vr.init(e,t),U.init(e,t)});function iu(e){return wo(ru,e)}var au=I(`ZodKSUID`,(e,t)=>{Hr.init(e,t),U.init(e,t)});function ou(e){return To(au,e)}var su=I(`ZodIPv4`,(e,t)=>{qr.init(e,t),U.init(e,t)});function cu(e){return Eo(su,e)}var lu=I(`ZodMAC`,(e,t)=>{Zr.init(e,t),U.init(e,t)});function uu(e){return Oo(lu,e)}var du=I(`ZodIPv6`,(e,t)=>{Xr.init(e,t),U.init(e,t)});function fu(e){return Do(du,e)}var pu=I(`ZodCIDRv4`,(e,t)=>{Qr.init(e,t),U.init(e,t)});function mu(e){return ko(pu,e)}var hu=I(`ZodCIDRv6`,(e,t)=>{ei.init(e,t),U.init(e,t)});function gu(e){return Ao(hu,e)}var _u=I(`ZodBase64`,(e,t)=>{ri.init(e,t),U.init(e,t)});function vu(e){return jo(_u,e)}var yu=I(`ZodBase64URL`,(e,t)=>{oi.init(e,t),U.init(e,t)});function bu(e){return Mo(yu,e)}var xu=I(`ZodE164`,(e,t)=>{si.init(e,t),U.init(e,t)});function Su(e){return No(xu,e)}var Cu=I(`ZodCreditCard`,(e,t)=>{di.init(e,t),U.init(e,t)});function wu(e){return Po(Cu,e)}var Tu=I(`ZodIBAN`,(e,t)=>{mi.init(e,t),U.init(e,t)});function Eu(e){return Fo(Tu,e)}var Du=I(`ZodJWT`,(e,t)=>{gi.init(e,t),U.init(e,t)});function Ou(e){return Io(Du,e)}var ku=I(`ZodCustomStringFormat`,(e,t)=>{_i.init(e,t),U.init(e,t)});function Au(e,t,n={}){return Gs(ku,e,t,n)}function ju(e){return Gs(ku,`hostname`,on,e)}function Mu(e){return Gs(ku,`hex`,kn,e)}function Nu(e){return Gs(ku,`currency_code`,dn,e)}function Pu(e,t){let n=`${e}_${t?.enc??`hex`}`,r=kt[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return Gs(ku,n,r,t)}var Fu=I(`ZodNumber`,(e,t)=>{vi.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cc(e,t,n,r),e.isFinite=!0},Me({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=vc(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=vc(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=vc(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>vc(e).format??null},{gt(e,t){return this.check(cs(e,t))},gte(e,t){return this.check(ls(e,t))},min(e,t){return this.check(ls(e,t))},lt(e,t){return this.check(os(e,t))},lte(e,t){return this.check(ss(e,t))},max(e,t){return this.check(ss(e,t))},int(e){return this.check(Lu(e))},safe(e){return this.check(Lu(e))},positive(e){return this.check(cs(0,e))},nonnegative(e){return this.check(ls(0,e))},negative(e){return this.check(os(0,e))},nonpositive(e){return this.check(ss(0,e))},multipleOf(e,t){return this.check(ms(e,t))},step(e,t){return this.check(ms(e,t))},finite(){return this}}));function W(e){return Vo(Fu,e)}var Iu=I(`ZodNumberFormat`,(e,t)=>{yi.init(e,t),Fu.init(e,t)});function Lu(e){return Ho(Iu,e)}function Ru(e){return Uo(Iu,e)}function zu(e){return Wo(Iu,e)}function Bu(e){return Go(Iu,e)}function Vu(e){return Ko(Iu,e)}var Hu=I(`ZodBoolean`,(e,t)=>{bi.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wc(e,t,n,r)});function Uu(e){return qo(Hu,e)}var Wu=I(`ZodBigInt`,(e,t)=>{xi.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Tc(e,t,n,r)},Me({minValue:e=>vc(e).minimum??null,maxValue:e=>vc(e).maximum??null,format:e=>vc(e).format??null},{gte(e,t){return this.check(ls(e,t))},min(e,t){return this.check(ls(e,t))},gt(e,t){return this.check(cs(e,t))},lt(e,t){return this.check(os(e,t))},lte(e,t){return this.check(ss(e,t))},max(e,t){return this.check(ss(e,t))},positive(e){return this.check(cs(BigInt(0),e))},negative(e){return this.check(os(BigInt(0),e))},nonpositive(e){return this.check(ss(BigInt(0),e))},nonnegative(e){return this.check(ls(BigInt(0),e))},multipleOf(e,t){return this.check(ms(e,t))}}));function Gu(e){return Jo(Wu,e)}var Ku=I(`ZodBigIntFormat`,(e,t)=>{Si.init(e,t),Wu.init(e,t)});function qu(e){return Yo(Ku,e)}function Ju(e){return Xo(Ku,e)}var Yu=I(`ZodSymbol`,(e,t)=>{Ci.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ec(e,t,n,r)});function Xu(e){return Zo(Yu,e)}var Zu=I(`ZodUndefined`,(e,t)=>{wi.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oc(e,t,n,r)});function Qu(e){return Qo(Zu,e)}var $u=I(`ZodNull`,(e,t)=>{Ti.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dc(e,t,n,r)});function ed(e){return $o($u,e)}var td=I(`ZodAny`,(e,t)=>{Ei.init(e,t),V.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function nd(){return es(td)}var rd=I(`ZodUnknown`,(e,t)=>{Di.init(e,t),V.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function id(){return ts(rd)}var ad=I(`ZodNever`,(e,t)=>{Oi.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ac(e,t,n,r)});function od(e){return ns(ad,e)}var sd=I(`ZodVoid`,(e,t)=>{ki.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kc(e,t,n,r)});function cd(e){return rs(sd,e)}var ld=I(`ZodDate`,(e,t)=>{Ai.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jc(e,t,n,r),e.min=(t,n)=>e.check(ls(t,n)),e.max=(t,n)=>e.check(ss(t,n))},Me({minDate:e=>{let{minimum:t}=vc(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=vc(e);return t?new Date(t):null}},{}));function ud(e){return is(ld,e)}var dd=I(`ZodArray`,(e,t)=>{Ol(),Ii.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uc(e,t,n,r),e.element=t.element},{min(e,t){return this.check(ys(e,t))},nonempty(e){return this.check(ys(1,e))},max(e,t){return this.check(vs(e,t))},length(e,t){return this.check(bs(e,t))},unwrap(){return this.element}});function G(e,t){return Is(dd,e,t)}function fd(e){let t=e._zod.def.shape;return Y(Object.keys(t))}var pd=I(`ZodObject`,(e,t)=>{Ol(),Hi.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gc(e,t,n,r),Re(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return Y(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(T(this._zod.def,{catchall:e}))},passthrough(){return this.clone(T(this._zod.def,{catchall:id()}))},loose(){return this.clone(T(this._zod.def,{catchall:id()}))},strict(){return this.clone(T(this._zod.def,{catchall:od()}))},strip(){return this.clone(T(this._zod.def,{catchall:void 0}))},extend(e){return de(this,e)},safeExtend(e){return pe(this,e)},merge(e){return me(this,e)},pick(e){return ce(this,e)},omit(e){return ue(this,e)},partial(...e){return he(Bd,this,e[0])},exactPartial(...e){return he(Hd,this,e[0],`exactPartial`)},required(...e){return ge(Zd,this,e[0])}});function K(e,t){return new pd({type:`object`,shape:e??{},...M(t)})}function q(e,t){return new pd({type:`object`,shape:e,catchall:od(),...M(t)})}function md(e,t){return new pd({type:`object`,shape:e,catchall:id(),...M(t)})}var hd=I(`ZodUnion`,(e,t)=>{Wi.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kc(e,t,n,r),e.options=t.options});function gd(e,t){return new hd({type:`union`,options:e,...M(t)})}var _d=I(`ZodXor`,(e,t)=>{hd.init(e,t),Ki.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kc(e,t,n,r),e.options=t.options});function vd(e,t){return new _d({type:`union`,options:e,inclusive:!1,...M(t)})}var yd=I(`ZodDiscriminatedUnion`,(e,t)=>{hd.init(e,t),Ji.init(e,t)});function bd(e,t,n){return new yd({type:`union`,options:t,discriminator:e,...M(n)})}var xd=I(`ZodIntersection`,(e,t)=>{Yi.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qc(e,t,n,r)});function Sd(e,t){return new xd({type:`intersection`,left:e,right:t})}var Cd=I(`ZodTuple`,(e,t)=>{Ol(),Qi.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jc(e,t,n,r)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw Error(`.partial() cannot be used on tuple schemas containing refinements`);return this.clone({...e,items:e.items.map(e=>new Bd({type:`optional`,innerType:e}))})}});function wd(e,t,n){let r=t instanceof R;return new Cd({type:`tuple`,items:e,rest:r?t:null,...M(r?n:t)})}var Td=I(`ZodRecord`,(e,t)=>{Ol(),na.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qc(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function J(e,t,n){return!t||!t._zod?new Td({type:`record`,keyType:H(),valueType:e,...M(t)}):new Td({type:`record`,keyType:e,valueType:t,...M(n)})}function Ed(e,t,n){return new Td({type:`record`,keyType:e,valueType:t,...M(n),partial:!0})}function Dd(e,t,n){return new Td({type:`record`,keyType:e,valueType:t,mode:`loose`,...M(n)})}var Od=I(`ZodMap`,(e,t)=>{Ol(),ra.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vc(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(gs(...t)),e.nonempty=t=>e.check(gs(1,t)),e.max=(...t)=>e.check(hs(...t)),e.size=(...t)=>e.check(_s(...t))});function kd(e,t,n){return new Od({type:`map`,keyType:e,valueType:t,...M(n)})}var Ad=I(`ZodSet`,(e,t)=>{Ol(),aa.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hc(e,t,n,r),e.min=(...t)=>e.check(gs(...t)),e.nonempty=t=>e.check(gs(1,t)),e.max=(...t)=>e.check(hs(...t)),e.size=(...t)=>e.check(_s(...t))});function jd(e,t){return new Ad({type:`set`,valueType:e,...M(t)})}var Md=I(`ZodEnum`,(e,t)=>{sa.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mc(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Md({...t,checks:[],...M(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Md({...t,checks:[],...M(r),entries:i})}});function Y(e,t){return new Md({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...M(t)})}function Nd(e,t){return new Md({type:`enum`,entries:e,...M(t)})}var Pd=I(`ZodLiteral`,(e,t)=>{ca.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Nc(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Fd(e,t){return new Pd({type:`literal`,values:Array.isArray(e)?e:[e],...M(t)})}var Id=I(`ZodFile`,(e,t)=>{la.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ic(e,t,n,r),e.min=(t,n)=>e.check(gs(t,n)),e.max=(t,n)=>e.check(hs(t,n)),e.mime=(t,n)=>e.check(ks(Array.isArray(t)?t:[t],n))});function Ld(e){return Ls(Id,e)}var Rd=I(`ZodTransform`,(e,t)=>{Ol(),ua.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bc(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Ke(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Oe(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Oe(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function zd(e){return new Rd({type:`transform`,transform:e})}var Bd=I(`ZodOptional`,(e,t)=>{fa.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Vd(e){return new Bd({type:`optional`,innerType:e})}var Hd=I(`ZodExactOptional`,(e,t)=>{pa.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ud(e){return new Hd({type:`optional`,innerType:e})}var Wd=I(`ZodNullable`,(e,t)=>{ma.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$c(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Gd(e){return new Wd({type:`nullable`,innerType:e})}function Kd(e){return Vd(Gd(e))}var qd=I(`ZodDefault`,(e,t)=>{ha.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Jd(e,t){return new qd({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():k(t)}})}var Yd=I(`ZodPrefault`,(e,t)=>{_a.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>il(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Xd(e,t){return new Yd({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():k(t)}})}var Zd=I(`ZodNonOptional`,(e,t)=>{va.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>el(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Qd(e,t){return new Zd({type:`nonoptional`,innerType:e,...M(t)})}var $d=I(`ZodSuccess`,(e,t)=>{ba.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lc(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ef(e){return new $d({type:`success`,innerType:e})}var tf=I(`ZodCatch`,(e,t)=>{Sa.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>al(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function nf(e,t){return new tf({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Be(t)})}var rf=I(`ZodNaN`,(e,t)=>{Ca.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pc(e,t,n,r)});function af(e){return as(rf,e)}var of=I(`ZodPipe`,(e,t)=>{wa.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ol(e,t,n,r),e.in=t.in,e.out=t.out});function sf(e,t){return new of({type:`pipe`,in:e,out:t})}var cf=I(`ZodCodec`,(e,t)=>{of.init(e,t),Ea.init(e,t)});function lf(e,t,n){return new cf({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function uf(e){let t=e._zod.def;return new cf({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var df=I(`ZodPreprocess`,(e,t)=>{of.init(e,t),ka.init(e,t)}),ff=I(`ZodReadonly`,(e,t)=>{Aa.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function pf(e){return new ff({type:`readonly`,innerType:e})}var mf=I(`ZodTemplateLiteral`,(e,t)=>{Pa.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fc(e,t,n,r)});function hf(e,t){return new mf({type:`template_literal`,parts:e,...M(t)})}var gf=I(`ZodLazy`,(e,t)=>{La.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ul(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function _f(e){return new gf({type:`lazy`,getter:e})}var vf=I(`ZodPromise`,(e,t)=>{Ia.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function yf(e){return new vf({type:`promise`,innerType:e})}var bf=I(`ZodFunction`,(e,t)=>{Fa.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zc(e,t,n,r)});function xf(e){return new bf({type:`function`,input:Array.isArray(e?.input)?wd(e?.input):e?.input??G(id()),output:e?.output??id()})}var Sf=I(`ZodCustom`,(e,t)=>{Ra.init(e,t),V.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rc(e,t,n,r)});function Cf(e){let t=new L({check:`custom`});return t._zod.check=e,t}function wf(e,t){return Rs(Sf,e??(()=>!0),t)}function Tf(e,t={}){return zs(Sf,e,t)}function Ef(e,t){return Bs(e,t)}var Df=Hs,Of=Us,kf=I(`ZodInstanceOf`,(e,t)=>{Sf.init(e,t)},{properties(e,t){return this.check(Os(e,t))}});function Af(e,t={}){let n=new kf({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...M(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}var jf=(...e)=>Ws({Codec:cf,Boolean:Hu,String:Al},...e);function Mf(e){let t=_f(()=>gd([H(e),W(),Uu(),ed(),G(t),J(H(),t)]));return t}function Nf(e,t){return new df({type:`pipe`,in:zd(e),out:t})}var Pf=t({ZodISODate:()=>Ml,ZodISODateTime:()=>jl,ZodISODuration:()=>Pl,ZodISOTime:()=>Nl,date:()=>If,datetime:()=>Ff,duration:()=>Rf,time:()=>Lf});function Ff(e){return Lo(jl,e)}function If(e){return Ro(Ml,e)}function Lf(e){return zo(Nl,e)}function Rf(e){return Bo(Pl,e)}q({jsonrpc:Fd(`2.0`),id:gd([H(),Lu()]),method:H().min(1),params:id().optional()}),q({jsonrpc:Fd(`2.0`),method:H().min(1),params:id().optional()});var zf=q({code:Lu(),message:H(),data:id().optional()});gd([q({jsonrpc:Fd(`2.0`),id:gd([H(),Lu()]),result:id()}),q({jsonrpc:Fd(`2.0`),id:gd([H(),Lu(),ed()]),error:zf})]);var Bf={parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603,conflict:-32001,notFound:-32002,invalid:-32003,forbidden:-32004,unavailable:-32005},X=(e,t,n)=>({params:e,result:t,about:n}),Vf=(e,t)=>({params:e,about:t}),Hf=class extends Error{code;data;constructor(e,t,n){super(t),this.name=`RpcError`,this.code=e,this.data=n}};async function Uf(e,t,n){let{id:r}=n,i=Object.hasOwn(e,n.method)?e[n.method]:void 0;if(!i)return{jsonrpc:`2.0`,id:r,error:{code:Bf.methodNotFound,message:`There is no method "${n.method}".`}};let a=i.params.safeParse(n.params??{});if(!a.success)return{jsonrpc:`2.0`,id:r,error:{code:Bf.invalidParams,message:st(a.error)}};try{let e=t[n.method],o=await e(a.data);return{jsonrpc:`2.0`,id:r,result:i.result.parse(o)}}catch(e){return e instanceof Hf?{jsonrpc:`2.0`,id:r,error:{code:e.code,message:e.message,...e.data===void 0?{}:{data:e.data}}}:{jsonrpc:`2.0`,id:r,error:{code:Bf.internal,message:e instanceof Error?e.message:String(e)}}}}var Z=H().min(1).refine(e=>!e.startsWith(`/`)&&!e.split(`/`).includes(`..`),{message:`A path is inside the project.`}),Wf=gd([Fd(``),Z]),Gf=H().regex(/^[0-9a-f]{64}$/u).nullable(),Kf=q({kind:Y([`person`,`agent`,`tool`]),name:H().min(1)}),qf=q({path:Z,size:Lu().nonnegative(),modified:W()}),Jf={"files/read":X(q({path:Z}),q({text:H(),version:Gf}),`A text file, with its version; a file that is not there reads as empty with version null.`),"files/write":X(q({path:Z,text:H(),over:Gf}),q({version:Gf}),`Writes a text file over the version read. Errors: conflict (data: { text, version }) when it changed; invalid (data: { problems }) when its format refuses it.`),"files/upload":X(q({dir:Z,name:H().min(1),data:vu()}),q({path:Z}),`Keeps a file the person added, under a free name in the folder.`),"files/url":X(q({path:Z}),q({url:H()}),`An address a page can load the file from (a picture, a video).`),"files/list":X(q({dir:H()}),q({files:G(qf),dirs:G(Z)}),`A folder's files and folders, as on disk.`),"files/move":X(q({from:Z,to:Z}),q({rewritten:G(Z)}),`Moves a file or a folder, and rewrites the relative imports and links that pointed at it, as an editor does.`),"files/remove":X(q({path:Z}),q({trash:H()}),`Moves a file or folder to the recycle bin (nothing is deleted).`),"files/trash":X(q({}),q({entries:G(q({id:H(),path:Z,removed:W()}))}),`What the recycle bin holds.`),"files/restore":X(q({id:H()}),q({path:Z}),`Puts a removed thing back where it was; refused while something is there.`),"files/watch":X(q({paths:G(Z).min(1)}),q({watch:H()}),"Starts telling `files/changed` for these files or folders."),"files/unwatch":X(q({watch:H()}),q({}),`Stops a watch.`)},Yf={"files/changed":Vf(q({watch:H(),changes:G(q({path:Z,version:Gf,by:Kf.optional()}))}),`Files under a watch changed, other than by this client's own writes.`)},Xf=K({name:H().min(1),only:G(H().min(1)),values:G(H().min(1)).optional()}),Zf=K({types:G(H().min(1)),extras:G(H().min(1)),options:G(Xf),names:J(H(),J(H(),H())).optional()}),Qf={noun:H().min(1),icon:H().min(1).optional(),color:H().min(1).optional(),editor:H().min(1).optional(),exports:Zf.optional(),share:Uu().optional()},$f=K({name:H().min(1),...Qf}),ep=K({name:J(H(),H().min(1)),plural:J(H(),H().min(1)).optional(),starter:K({files:J(H().min(1),H()),entry:H().min(1)}).optional(),...Qf}),tp=(e,t)=>e.name[t]??e.name.en??e.noun,np=/\.(ya?ml|json)$/u;function rp(e,t,n,r){let i=e=>e.replaceAll(`{{locale}}`,n).replaceAll(`{{name}}`,r);return{files:Object.entries(e.files).map(([e,a])=>{let o=i(e),s=np.test(o)?JSON.stringify(t):t;return{path:o,text:a.replaceAll(`{{locale}}`,n).replaceAll(`{{name}}`,r).replaceAll(`{{title}}`,()=>s)}}),entry:i(e.entry)}}function ip(e,t,n){return t===void 0?{name:e??`file`,noun:e??`file`}:{name:tp(t,n),noun:t.noun,...t.icon===void 0?{}:{icon:t.icon},...t.color===void 0?{}:{color:t.color},...t.editor===void 0?{}:{editor:t.editor},...t.exports===void 0?{}:{exports:t.exports},...t.share===void 0?{}:{share:t.share}}}var ap=[`script`,`style`,`font`,`img`,`media`,`connect`],op=[`agent`,`project`,`piece`,`plugin`,`skill`,`website`,`studio`],sp=[`download`,`wake`,`export`,`update`,`install`,`start`,`publish`],cp=[`queued`,`running`,`paused`,`done`,`failed`,`cancelled`],lp=[`bytes`,`files`,`share`],up=[`offline`,`no-space`,`no-credits`,`unavailable`,`other`],dp=[`first-setup`],fp=q({kind:Y(op),id:H()}),pp=q({id:H(),about:fp,what:Y(sp),name:H().optional(),state:Y(cp),completed:W().min(0),total:W().min(0).optional(),unit:Y(lp),left:W().min(0).optional(),stalled:Uu().optional(),step:Y(dp).optional(),cancellable:Uu(),pausable:Uu().optional(),quiet:Uu().optional(),retryable:Uu(),failure:q({reason:Y(up),details:H()}).optional(),made:H().optional(),started:W(),ended:W().optional()}),mp=q({mime:H().regex(/^image\//u),data:vu()}),hp=bd(`type`,[q({type:Fd(`picture`),image:mp,width:Lu().positive(),height:Lu().positive(),duration:W().nonnegative().optional()}),q({type:Fd(`text`),lines:G(H())}),q({type:Fd(`table`),columns:G(H()),rows:G(G(H())),count:Lu().nonnegative()})]);q({id:Z,kind:H().min(1),dir:Wf,entry:Z,title:H().optional()});var gp={item:Z,version:H().optional()},_p=md({code:H(),level:Y([`error`,`warn`]),message:H(),piece:H().optional(),part:H().optional(),t:W().optional()}),vp=md({kind:H(),data:id()}),yp=q({status:Y([`off`,`waiting`,`running`,`done`,`failed`]),revision:Lu().nonnegative(),problems:G(_p),facts:G(vp),versions:q({total:Lu(),loaded:Lu(),reused:Lu()}).optional(),error:H().optional()}),bp=[`queued`,`running`,`done`,`failed`,`cancelled`],xp=J(H(),gd([H(),Uu()])),Sp=q({id:H(),item:Z,versions:G(H()),types:G(H()),options:xp.optional(),state:Y(bp),progress:W().min(0).max(1),files:G(Z),error:H().optional()}),Cp=q({file:Z,status:Y([`running`,`done`,`failed`]),message:H(),share:W().min(0).max(1).optional()}),wp=q({url:H(),probe:H()}),Tp={"project/items":X(q({}),q({items:G(q({id:Z,kind:H().min(1).optional(),dir:Wf,entry:Z,title:H().optional(),groups:G(H()),files:G(K({path:H().min(1),role:H().min(1).optional()})).optional(),kindInfo:ep.optional()})),kinds:G(ep.extend({id:H().min(1)})).optional(),name:H(),scope:H(),revision:Lu().nonnegative()}),`The project's items, as its list (allyhub.yaml) names them, in its order: each a file of a kind, or a file an editor opens by its name.`),"items/preview":X(q({item:Z}),q({preview:hp.optional()}),`What an item looks like (named by its id or its file), as its kind's provider makes it from its files now (a video's still, an image's boards, a deck's slide, a doc's first paragraphs, a sheet's first rows); none where its kind gives none.`),"work/add":X(q({kind:H().min(1),file:Z,title:H().min(1).optional()}),q({}),`Adds a piece to the end of the project's list (allyhub.yaml), the rest of it as it was; nothing when its file is listed already.`),"components/list":X(q({item:Z}),q({components:G(q({of:H(),name:H(),label:gd([H(),J(H(),H())]).optional()}))}),`The components an item may place: every one the project's files define, by the reference it would write.`),"components/stage":X(q(gp),wp,"The address of a page that draws an item's components one at a time, for a sandboxed frame (docs/design/components-everywhere.md): a deck's by the name its module gives it, a doc's by the reference its block writes. Its parent posts `{ type: \"component\", name, props, width, height, t }` and hears `component-ready`, or `error` with what went wrong."),"components/stills":X(q({...gp,components:G(q({name:H(),props:J(H(),id()),width:W().positive(),height:W().positive(),t:W().nonnegative()})).min(1).max(64)}),q({stills:G(q({key:H(),url:Gl()}).nullable())}),`An item's components (a deck's, a doc's) drawn alone, transparent, as the render draws them: pictures kept by what they show, given as addresses.`),"check/results":X(q({}),yp,`The check run after edits, as it stands.`),"check/run":X(q({}),q({}),`Runs the check again now.`),"export/start":X(q({item:Z,versions:G(H()).optional(),types:G(H().min(1)).max(10).optional(),options:xp.optional()}),q({job:Sp}),"Exports an item (its versions, as file types) into .allyhub/out/; `export/changed` says how it goes."),"export/cancel":X(q({job:H()}),q({}),`Stops an export.`),"export/list":X(q({}),q({jobs:G(Sp),reveal:Uu()}),`The exports asked for since the server started.`),"export/reveal":X(q({path:Z}),q({}),"Shows an exported file in the person's file manager, where the server runs on their computer (`export/list`'s `reveal`).")},Ep={"project/items":`project`,"items/preview":`asleep`,"work/add":`machine`,"components/list":`asleep`,"components/stage":`asleep`,"components/stills":`project`,"check/results":`project`,"check/run":`machine`,"export/start":`machine`,"export/cancel":`machine`,"export/list":`asleep`,"export/reveal":`machine`};function Dp(e){return async(t,n,r)=>{let{result:i}=await t[`tools/call`]({name:n,arguments:r}),a=e[n]?.result.safeParse(i);if(!a?.success)throw new Hf(Bf.internal,`The answer to the tool ${n} is not what the protocol says.`);return a.data}}var Op={"project/changed":Vf(q({revision:Lu().nonnegative()}),`The build saw a change: a stage or a timeline asked for now is the new one's.`),"check/changed":Vf(yp,`The check started, ended or failed.`),"export/changed":Vf(q({job:Sp}),`An export moved on.`),"index/changed":Vf(q({jobs:G(Cp)}),`Making what the media index lacks moved on.`),"jobs/changed":Vf(q({job:pp,item:Z}),`A job of the process the server runs in (docs/design/jobs.md: a website starting, an export) moved on, about a thing in this project: what the window lists, for the editor of that thing to show where the person waits on it.`)},kp=e=>gd([Y(e),H().min(1).brand()]),Ap=e=>G(id()).transform(t=>t.flatMap(t=>{let n=e.safeParse(t);return n.success?[n.data]:[]})),jp=[`no_card`,`saving_card`,`not_a_card`,`declined`,`needs_authentication`,`not_charged`,`under_line`,`refunded`,`disputed`,`monthly_limit`],Mp=[`month`,`year`];K({credits:W(),held:W(),owed:W(),frozen:H().nullable().default(null),plan:K({id:H(),name:H(),interval:kp(Mp),status:H(),renewsAt:Ff().nullable(),endsAt:Ff().nullable(),monthlyCredits:W().default(0),price:K({amountCents:W(),currency:H()}).nullable().default(null)}).nullable(),allowance:K({total:W(),used:W(),renewsAt:Ff()}).nullable().default(null),bought:W().default(0),customer:Uu().default(!1),autoTopUp:K({below:W(),amountCents:W(),monthlyLimitCents:W().nullable().default(null),chargedThisMonthCents:W().default(0),stopped:kp(jp).nullable()}).nullable()}),K({plans:G(K({id:H(),name:H(),family:H().nullable().default(null),recommended:Uu().default(!1),monthlyCredits:W(),prices:G(K({interval:kp(Mp),amountCents:W(),currency:H()}))})),topUp:K({currency:H(),creditsPerDollar:W(),minCents:W(),maxCents:W(),presetsCents:G(W()).default([])}),welcomeCredits:W().optional()}),K({days:G(K({day:If(),credits:W(),byKind:J(H(),W()).default({})}))}),gd([q({plan:H(),interval:Y(Mp)}),q({topUpCents:W().int()})]),gd([q({flow:Y([`home`,`payment_method`,`cancel`])}),q({flow:Fd(`change_plan`),plan:H(),interval:Y(Mp)})]).default({flow:`home`}),K({card:K({brand:H(),last4:H(),expMonth:W(),expYear:W()}).nullable(),email:H().nullable()}),q({topUpCents:W().int()}),q({below:W().nonnegative(),amountCents:W().int().positive(),monthlyLimitCents:W().int().positive().nullable().optional(),newCard:Uu().optional()});var Np={tier:kp([`premium`,`standard`,`efficient`]).optional(),maker:H().min(1).optional()};K({models:G(md({id:H().min(1),name:H().min(1),...Np,reasoning:Uu().optional(),input:G(H()).optional(),contextWindow:W().int().positive().optional(),maxOutput:W().int().positive().optional()})).min(1),defaultModel:H().min(1),needPlan:G(md({id:H().min(1),name:H().min(1),...Np})).default([])});var Pp=J(H(),id()),Fp=K({id:H().min(1),title:H().min(1),description:H().min(1)}),Ip=K({name:H().min(1),work:H().min(1),title:H().min(1),description:H().min(1),input:Pp,output:Pp,long:Uu(),example:J(H(),id()).optional()});K({version:H().min(1),works:G(Fp),tools:G(Ip)}),q({input:J(H(),id())}),K({id:H().min(1),tool:H().min(1),status:kp([`working`,`completed`,`failed`]),output:id().optional(),error:K({kind:H().min(1),message:H().min(1)}).optional(),credits:W().nonnegative().optional(),pollAfterMs:W().int().nonnegative().optional(),createdAt:H(),endedAt:H().optional()});var Lp=1073741824;q({name:H().min(1).max(255),size:Lu().positive().max(Lp),sha256:H().regex(/^[0-9a-f]{64}$/u),contentType:H().min(1).max(255)}),K({id:H().min(1),upload:K({url:Gl(),headers:J(H(),H())}).nullable()}),K({id:H().min(1),name:H()}),K({url:Gl()});var Rp=H().regex(/^[0-9a-f]{64}$/u),zp=H().min(1).max(1024).refine(e=>!e.startsWith(`/`)&&!e.includes(`\\`)&&e.split(`/`).every(e=>e!==``&&e!==`.`&&e!==`..`),`a relative path of forward slashes, without . or ..`),Bp=K({sha256:Rp,size:Lu().nonnegative().max(Lp)}),Vp=Bp.extend({type:H().min(1).max(255)});q({blobs:G(Bp.extend({contentType:H().min(1).max(255)})).min(1).max(1e3)}),K({uploads:G(K({sha256:Rp,url:Gl(),headers:J(H(),H())}))});var Hp=K({sessionId:H().min(1),agent:H().min(1),title:H().optional(),createdAt:Ff(),updatedAt:Ff(),transcript:Rp});K({sessionId:H().min(1),messages:G(K({method:H().min(1),params:id()}))});var Up=[`project`,`home`];H().regex(/^[a-z][a-z0-9-]*\/$/u,`one lower-case word and /`).refine(e=>!Object.values(Yp).includes(e)&&!Object.values(cm).includes(e),`a folder of the core's`),kp(ap);var Wp=J(H(),G(H())),Gp=H().refine(e=>e.endsWith(`/`)&&zp.safeParse(e.slice(0,-1)).success,`a folder of the tree, ending in /`),Kp=K({tree:G(zp),files:G(zp),own:J(zp,Vp)}),qp=K({shared:G(Gp),items:J(H(),Kp)}),Jp=K({format:Fd(1),kind:Y(Up),project:K({name:H().min(1).max(255)}),host:K({version:H().min(1)}),madeAt:Ff(),files:J(zp,Bp),tree:J(zp,Vp),conversations:G(Hp),reach:qp.optional(),routes:Wp.optional()}),Yp={editor:`editor/`,runtime:`runtime/`,build:`build/`,media:`media/`,matte:`matte/`,stills:`stills/`,answers:`answers/`,previews:`previews/`};function Xp(e){return Array.isArray(e)?e.map(Xp):typeof e==`object`&&e?Object.fromEntries(Object.keys(e).sort().map(t=>[t,Xp(e[t])])):e}var Zp=(e,t)=>`${Yp.answers}${e}/${encodeURIComponent(JSON.stringify(Xp(t??{})))}.json`,Qp=K({result:id().optional(),error:K({code:W(),message:H(),data:id().optional()}).optional()}),$p=e=>`${Yp.stills}${e}.webp`,em=(e,t)=>`${Yp.stills}index/${encodeURIComponent(e)}/${encodeURIComponent(t)}.json`,tm=K({stills:J(H(),H().regex(/^[0-9a-f]{64}$/u))}),nm=e=>JSON.stringify(Xp(e)),rm=K({name:H(),props:J(H(),id()),width:W().positive(),height:W().positive(),t:W().nonnegative()});K({stills:G(K({version:H(),components:G(rm)})).optional(),shows:K({media:G(H()),data:G(H())}).optional(),routes:J(H(),G(H().min(1))).optional()}),`${Yp.runtime}`,`${Yp.runtime}`,`${Yp.runtime}`;var im=e=>e.split(`/`).map(encodeURIComponent).join(`/`),am=[`cloud`,`computer`];H().regex(/^[A-Za-z0-9_-]{16,64}$/u);var om=K({kind:kp(am),here:Uu()});q({project:q({id:H().min(1).optional(),kind:Y(Up),name:H().min(1).max(255)}),manifest:Rp}),K({id:H().min(1),projectId:H().min(1)}),K({missing:G(Rp)});var sm=K({id:H().min(1),madeAt:Ff(),hostVersion:H()});K({projects:Ap(K({id:H().min(1),kind:Y(Up),name:H(),latest:sm.nullable(),executor:om}))}),q({kind:Y(am)}),K({origin:Gl(),expiresAt:Ff()});var cm={manifest:`manifest.json`,files:`files/`,conversations:`conversations/`},lm=-32010,um=e=>typeof e==`object`&&!!e&&e.code===-32010;K({changed:G(H())});var Q=e(r(),1),dm=e(s(),1),fm=`allyhub.stage-sandbox`;function pm(e){let t=e;return typeof t==`object`&&!!t&&t.allyhub===!0&&t.type===`probe`}function mm(e){try{let t=e?.getItem(fm);return t===`1`||t!==`0`&&void 0}catch{return}}async function hm(e){let t=mm(e.storage);if(t!==void 0)return t;let n,r=()=>void 0,i=await new Promise(t=>{n=setTimeout(()=>{t(!1)},e.ms??1500),r=e.open(()=>{t(!0)})});clearTimeout(n),r();try{e.storage?.setItem(fm,i?`1`:`0`)}catch{}return i}function gm(e){return t=>{let n=document.createElement(`iframe`);n.setAttribute(`sandbox`,`allow-scripts`),n.setAttribute(`aria-hidden`,`true`),n.tabIndex=-1,n.style.cssText=`position:fixed;width:1px;height:1px;left:-10px;top:-10px;border:0;opacity:0`;let r=e=>{e.source===n.contentWindow&&pm(e.data)&&t()};return window.addEventListener(`message`,r),n.src=e,document.body.append(n),()=>{window.removeEventListener(`message`,r),n.remove()}}}var _m;function vm(e){let t;try{t=sessionStorage}catch{t=void 0}return _m??=hm({open:gm(e),storage:t}),_m}var ym=[`en`,`zh-cn`,`zh-tw`,`ja`,`ko`,`es`,`pt`,`de`,`fr`],bm={en:`en`,"zh-cn":`zh-CN`,"zh-tw":`zh-TW`,ja:`ja`,ko:`ko`,es:`es`,fr:`fr`,de:`de`,pt:`pt-BR`};function xm(e){return typeof e==`string`&&ym.includes(e)}var Sm=new Set([`hant`,`tw`,`hk`,`mo`]);function Cm(e){for(let t of e){let e=t.trim().toLowerCase().replaceAll(`_`,`-`).split(`-`),n=e[0];if(n!==void 0&&n!==``){if(n===`zh`){let t=e.slice(1);return t.includes(`hans`)?`zh-cn`:t.some(e=>Sm.has(e))?`zh-tw`:`zh-cn`}if(xm(n))return n}}}function wm(e){return e===void 0?`en`:Cm([e])??`en`}function Tm(e,t){return e[wm(t)]}function Em(e){return{all:e,of:t=>Tm(e,t)}}var Dm=a(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Om=Object.defineProperty,km=((e,t)=>{let n={};for(var r in e)Om(n,r,{get:e[r],enumerable:!0});return t||Om(n,Symbol.toStringTag,{value:`Module`}),n})({isAny:()=>Um,isAnyNonArbitrary:()=>Jm,isArbitraryFamilyName:()=>dh,isArbitraryImage:()=>ph,isArbitraryLength:()=>ch,isArbitraryNumber:()=>lh,isArbitraryPosition:()=>fh,isArbitraryShadow:()=>mh,isArbitrarySize:()=>oh,isArbitraryValue:()=>sh,isArbitraryVariable:()=>hh,isArbitraryVariableFamilyName:()=>_h,isArbitraryVariableImage:()=>bh,isArbitraryVariableLength:()=>gh,isArbitraryVariablePosition:()=>vh,isArbitraryVariableShadow:()=>xh,isArbitraryVariableSize:()=>yh,isArbitraryVariableWeight:()=>Sh,isArbitraryWeight:()=>uh,isFraction:()=>Rm,isInteger:()=>Bm,isNamedContainerQuery:()=>Ym,isNumber:()=>zm,isPercent:()=>Vm,isTshirtSize:()=>Hm}),Am=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jm=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Mm=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Nm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pm=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Fm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Im=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rm=e=>Mm.test(e),zm=e=>!!e&&!Number.isNaN(Number(e)),Bm=e=>!!e&&Number.isInteger(Number(e)),Vm=e=>e.endsWith(`%`)&&zm(e.slice(0,-1)),Hm=e=>Nm.test(e),Um=()=>!0,Wm=e=>Pm.test(e)&&!Fm.test(e),Gm=()=>!1,Km=e=>Im.test(e),qm=e=>Lm.test(e),Jm=e=>!sh(e)&&!hh(e),Ym=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Xm=(e,t,n)=>{let r=Am.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Zm=(e,t,n=!1)=>{let r=jm.exec(e);return r?r[1]?t(r[1]):n:!1},Qm=e=>e===`position`||e===`percentage`,$m=e=>e===`image`||e===`url`,eh=e=>e===`length`||e===`size`||e===`bg-size`,th=e=>e===`length`,nh=e=>e===`number`,rh=e=>e===`family-name`,ih=e=>e===`number`||e===`weight`,ah=e=>e===`shadow`,oh=e=>Xm(e,eh,Gm),sh=e=>Am.test(e),ch=e=>Xm(e,th,Wm),lh=e=>Xm(e,nh,zm),uh=e=>Xm(e,ih,Um),dh=e=>Xm(e,rh,Gm),fh=e=>Xm(e,Qm,Gm),ph=e=>Xm(e,$m,qm),mh=e=>Xm(e,ah,Km),hh=e=>jm.test(e),gh=e=>Zm(e,th),_h=e=>Zm(e,rh),vh=e=>Zm(e,Qm),yh=e=>Zm(e,eh),bh=e=>Zm(e,$m),xh=e=>Zm(e,ah,!0),Sh=e=>Zm(e,ih,!0),Ch=(e,t)=>{let n=Object.keys(e);return n.length===1&&n[0]===t&&typeof e[t]==`string`},wh=e=>typeof e==`function`&&e.isThemeGetter===!0,Th=e=>({...e,theme:{...e.theme},classGroups:{...e.classGroups},conflictingClassGroups:{...e.conflictingClassGroups},conflictingClassGroupModifiers:{...e.conflictingClassGroupModifiers},orderSensitiveModifiers:[...e.orderSensitiveModifiers],postfixLookupClassGroups:[...e.postfixLookupClassGroups??[]]}),Eh=(e,t)=>{let n=Th(e);t.prefix!==void 0&&(n.prefix=t.prefix);let r=(e,t)=>{if(t)for(let n in t)t[n]!==void 0&&(e[n]=t[n])},i=t.override;i&&(i.orderSensitiveModifiers&&(n.orderSensitiveModifiers=[...i.orderSensitiveModifiers]),r(n.theme,i.theme),r(n.classGroups,i.classGroups),r(n.conflictingClassGroups,i.conflictingClassGroups),r(n.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers));let a=(e,t)=>{if(t)for(let n in t){let r=t[n];r&&(e[n]=(e[n]??[]).concat(r))}},o=t.extend;return o&&(o.orderSensitiveModifiers&&(n.orderSensitiveModifiers=[...n.orderSensitiveModifiers,...o.orderSensitiveModifiers]),a(n.theme,o.theme),a(n.classGroups,o.classGroups),a(n.conflictingClassGroups,o.conflictingClassGroups),a(n.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers)),n},Dh={isAny:0,isAnyNonArbitrary:1,isArbitraryValue:2,isArbitraryVariable:3,isFraction:4,isNumber:5,isInteger:6,isPercent:7,isTshirtSize:8,isNamedContainerQuery:9,isArbitraryLength:10,isArbitraryNumber:11,isArbitraryWeight:12,isArbitraryFamilyName:13,isArbitraryPosition:14,isArbitrarySize:15,isArbitraryImage:16,isArbitraryShadow:17,isArbitraryVariableLength:18,isArbitraryVariableFamilyName:19,isArbitraryVariablePosition:20,isArbitraryVariableSize:21,isArbitraryVariableImage:22,isArbitraryVariableShadow:23,isArbitraryVariableWeight:24},Oh=25,kh=()=>({names:[],idByName:new Map,impls:{},fnName:new Map,classifierFns:new Map}),Ah=(e,t,n)=>{let r=e.idByName.get(t);return r===void 0&&(r=e.names.length,e.names.push(t),e.idByName.set(t,r),e.classifierFns.set(t,n)),r},jh=(e,t)=>{if(typeof t==`function`){let n=e.fnName.get(t);return n===void 0&&(n=`$c`+e.fnName.size,e.fnName.set(t,n),e.impls[n]=t),Ah(e,n,t)}let n=t.$v,r=km[n];if(Dh[n]===void 0||!r)throw Error(`cn: unknown validator "${n}"`);return Ah(e,n,r)},Mh=()=>({nextPart:new Map,validators:null,classGroupId:-1,lit:[]}),Nh=(e,t)=>e.theme[t]??[],Ph=(e,t,n)=>{let r=Mh(),i=(e,t)=>{for(let n of t.split(`-`)){let t=e.nextPart.get(n);t||(t=Mh(),e.nextPart.set(n,t)),e=t}return e},a=(n,r,o)=>{if(typeof n==`string`){let e=n===``?r:i(r,n);e.classGroupId=o}else if(typeof n==`function`){if(wh(n)){for(let t of n(e.theme))a(t,r,o);return}(r.validators??=[]).push({validatorId:jh(t,n),groupId:o})}else if(Ch(n,`$t`))for(let t of Nh(e,n.$t))a(t,r,o);else if(Ch(n,`$v`))(r.validators??=[]).push({validatorId:jh(t,n),groupId:o});else for(let[e,t]of Object.entries(n)){let n=i(r,e);for(let e of t)a(e,n,o)}};for(let[t,i]of Object.entries(e.classGroups)){let e=n(t);for(let t of i)a(t,r,e)}return r},Fh=e=>{let t=kh(),n=[],r=new Map,i=e=>{let t=r.get(e);return t===void 0&&(t=n.length,n.push(e),r.set(e,t)),t},a=Ph(e,t,i),o=e=>{if(e.validators)return!1;for(let t of e.nextPart.values())if(!o(t))return!1;return!0},s=(e,t,n)=>{e.classGroupId>=0&&n.push({tail:t,gid:e.classGroupId});for(let[r,i]of e.nextPart)s(i,t+`-`+r,n)},c=e=>{for(let[t,n]of[...e.nextPart])o(n)?(s(n,t,e.lit),e.nextPart.delete(t)):c(n)};c(a);let l=[{edges:new Map,groupId:-1,vlist:-1}],u=()=>(l.push({edges:new Map,groupId:-1,vlist:-1}),l.length-1),d=[],f=new Map,p=e=>{let t=e.map(e=>e.validatorId+`:`+e.groupId).join(`,`),n=f.get(t);return n===void 0&&(n=d.length,d.push(e.map(e=>[e.validatorId,e.groupId])),f.set(t,n)),n},m=(e,t)=>{let n=e;for(let e=0;e<t.length;e++){let r=t.charCodeAt(e),i=l[n].edges.get(r);i===void 0&&(i=u(),l[n].edges.set(r,i)),n=i}return n},h=[],g=(e,t,n)=>{e.classGroupId>=0&&(l[t].groupId=e.classGroupId),e.validators&&(l[t].vlist=p(e.validators));for(let{tail:n,gid:r}of e.lit)h.push({anchor:t,tail:n,gid:r});for(let[r,i]of e.nextPart){let e=t;if(!n){let n=l[t].edges.get(45);n===void 0&&(n=u(),l[t].edges.set(45,n)),e=n}let a=m(e,r);g(i,a,!1)}};g(a,0,!0);let _=new Set(h.map(e=>e.anchor)),v=e=>l[e].groupId>=0||l[e].vlist>=0||_.has(e),y=new Map,b=[],x=e=>{let t=b.length;y.set(e,t);let n={edges:[],groupId:l[e].groupId,vlist:l[e].vlist};b.push(n);let r=[...l[e].edges.entries()].sort((e,t)=>e[0]-t[0]);for(let[e,t]of r){let r=String.fromCharCode(e),i=t;for(;l[i].edges.size===1&&!v(i);){let[[e,t]]=l[i].edges.entries();r+=String.fromCharCode(e),i=t}n.edges.push({label:r,oldTarget:i})}for(let e of n.edges)x(e.oldTarget);return t};x(0);let S=b.length,C=0;for(let e of b)C+=e.edges.length;let w=new Int32Array(S),T=new Int32Array(C),E=``,D=new Int32Array(S),ee=new Int32Array(S),O=[];{let e=0;for(let t=0;t<S;t++){let n=b[t];w[t]=n.edges.length;for(let t of n.edges)T[e]=t.label.length,E+=t.label,O.push(y.get(t.oldTarget)),e++;D[t]=n.groupId,ee[t]=n.vlist}}{let e=new Int32Array(S);for(let t=S-1;t>=0;t--){let n=1,r=t+1;for(let i=0;i<w[t];i++)n+=e[r],r+=e[r];e[t]=n}let t=0;for(let n=0;n<S;n++){let r=n+1;for(let i=0;i<w[n];i++){if(r!==O[t])throw Error(`cn compiler: edge target mismatch at ${t}`);r+=e[r],t++}}}for(let e of h)e.anchor=y.get(e.anchor);{let e=new Int32Array(d.length).fill(-1),t=[];for(let n=0;n<S;n++){let r=ee[n];r>=0&&(e[r]===-1&&(e[r]=t.length,t.push(d[r])),ee[n]=e[r])}d.length=0,d.push(...t)}let te=0;for(let e of d)te+=e.length;let ne=new Int32Array(te),k=new Int32Array(te);{let e=0;for(let t of d)for(let[n,r]of t)ne[e]=n,k[e]=r,e++}h.sort((e,t)=>e.anchor-t.anchor||e.gid-t.gid||(e.tail<t.tail?-1:1));let re=[];for(let e of h){let t=re[re.length-1];t&&t.anchor===e.anchor&&t.gid===e.gid?t.tails.push(e.tail):re.push({anchor:e.anchor,gid:e.gid,tails:[e.tail],set:-1})}let ie=new Map,A=[];for(let e of re){let t=e.tails.join(` `),n=ie.get(t);n===void 0&&(n=A.length,ie.set(t,n),A.push(e.tails)),e.set=n}for(let e of A.flat())if(e.includes(`|`)||e.includes(` `))throw Error(`cn compiler: tail contains delimiter: `+e);let j=new Set(A.flat()).size;re.sort((e,t)=>e.anchor-t.anchor||e.set-t.set);for(let t of Object.values(e.conflictingClassGroups))for(let e of t)i(e);for(let t of Object.values(e.conflictingClassGroupModifiers))for(let e of t)i(e);for(let t of e.postfixLookupClassGroups??[])i(t);let M=n.length,N=new Int32Array(M).fill(-1),ae=0,oe=e=>(N[e]===-1&&(N[e]=ae++),N[e]);for(let e=0;e<k.length;e++)k[e]=oe(k[e]);for(let e of re)e.gid=oe(e.gid);for(let e=0;e<D.length;e++)D[e]>=0&&(D[e]=oe(D[e]));for(let e=0;e<M;e++)N[e]===-1&&(N[e]=ae++);let se=Array(M);for(let e=0;e<M;e++)se[N[e]]=n[e];let ce=[],le=[],ue=[],de=[],fe=[];for(let t=0;t<M;t++){let n=se[t],i=(e.conflictingClassGroups[n]??[]).map(e=>N[r.get(e)]),a=(e.conflictingClassGroupModifiers[n]??[]).map(e=>N[r.get(e)]);i.length&&(ce.push(t),le.push(i.length),ue.push(...i));for(let e of a)de.push(t),fe.push(e)}let pe=(e.postfixLookupClassGroups??[]).map(e=>N[r.get(e)]),me=[],he=new Int32Array(ne.length);for(let e=0;e<ne.length;e++){let n=t.names[ne[e]],r=Dh[n];if(r!==void 0)he[e]=r;else{let t=me.indexOf(n);t===-1&&(t=me.length,me.push(n)),he[e]=Oh+t}}let ge=new Map,P=[],_e=[],ve=[];{let e=0;for(let t of d){let n=[];for(let r=0;r<t.length;r++)n.push(he[e++]);let r=n.join(`,`),i=ge.get(r);i===void 0&&(i=P.length,ge.set(r,i),P.push(n.length),_e.push(...n)),ve.push(i)}}let ye={};for(let e of me)ye[e]=t.classifierFns.get(e);return{G:M,customNames:me,impls:ye,edgeCounts:w,edgeLabelLen:T,labelText:E,edgeTargetActual:O,nodeGroup:D,nodeVlist:ee,nodeCount:S,totalEdges:C,patCounts:P,patOps:_e,listPat:ve,vlistGroup:k,litEntries:h,sets:A,attachments:re,uniqueTailCount:j,adjGid:ce,adjCnt:le,adjTgt:ue,patGid:de,patTgt:fe,postfixLookup:pe,orderSensitiveModifiers:e.orderSensitiveModifiers.join(` `),prefix:e.prefix}},Ih=e=>{let t=new Int32Array(e.length+1);for(let n=0;n<e.length;n++)t[n+1]=t[n]+e[n];return t},Lh=e=>{let t=Fh(e),n=t.litEntries.length,r=new Int32Array(n),i=new Int32Array(n),a=new Int32Array(n),o=``,s=new Int32Array(t.uniqueTailCount*2);{let e=new Map,n=0,c=0;for(let l of t.attachments)for(let u of t.sets[l.set]){let t=e.get(u);t===void 0&&(t=n++,e.set(u,t),s[t*2]=o.length,s[t*2+1]=u.length,o+=u),r[c]=l.anchor,i[c]=l.gid,a[c]=t,c++}}return{tables:{GROUP_COUNT:t.G,edgeStart:Ih(t.edgeCounts),labelStart:Ih(t.edgeLabelLen),labelText:t.labelText,edgeTarget:Int32Array.from(t.edgeTargetActual),nodeGroup:t.nodeGroup,nodeVlist:t.nodeVlist,vlistPat:Ih(t.patCounts),vlistOps:Int32Array.from(t.patOps),vlistRef:Int32Array.from(t.listPat),vlistGroup:t.vlistGroup,litAnchor:r,litGroup:i,litPool:a,poolOffsets:s,poolText:o,adjGid:Int32Array.from(t.adjGid),adjStart:Ih(t.adjCnt),adjTgt:Int32Array.from(t.adjTgt),patGid:Int32Array.from(t.patGid),patTgt:Int32Array.from(t.patTgt),postfixLookupGroups:Int32Array.from(t.postfixLookup),customValidatorNames:t.customNames,orderSensitiveModifiers:t.orderSensitiveModifiers},validatorImpls:t.impls,prefix:t.prefix}},Rh=`line`in Error(),zh=-1,Bh=-1,Vh=(e,t,n)=>{let r=2166136261;for(let i=t;i<n;i++)r=Math.imul(r^e.charCodeAt(i),16777619);return r},Hh=(e,t,n)=>{let r=n-t,i=Math.imul(r,2654435761)^e.charCodeAt(t);if(r>3){let a=r>>2,o=r>>1;i=Math.imul(i^e.charCodeAt(t+1)<<8^e.charCodeAt(t+2)<<16^e.charCodeAt(t+a),2246822507),i=Math.imul(i^e.charCodeAt(t+o)<<8^e.charCodeAt(t+o+a)<<16^e.charCodeAt(n-3),3266489909),i^=e.charCodeAt(n-2)<<8^e.charCodeAt(n-1)<<16;for(let r=t+3,a=n-4;r<t+8&&r<a;r++,a--)i=Math.imul(i^e.charCodeAt(r)^e.charCodeAt(a)<<8,16777619)}return i^i>>>15},Uh=(e,t,n={})=>{let{GROUP_COUNT:r,edgeStart:i,labelStart:a,labelText:o,edgeTarget:s,nodeGroup:c,nodeVlist:l,vlistPat:u,vlistOps:d,vlistRef:f,vlistGroup:p,litAnchor:m,litGroup:h,litPool:g,poolOffsets:_,poolText:v,adjGid:y,adjStart:b,adjTgt:x,patGid:S,patTgt:C,postfixLookupGroups:w,customValidatorNames:T,orderSensitiveModifiers:E}=e,D=new Int32Array(r).fill(-1);for(let e=0;e<y.length;e++)D[y[e]]=e;let ee=0;for(let e=0;e+1<b.length;e++){let t=b[e+1]-b[e];t>ee&&(ee=t)}let O=32;for(;O<2*(1+ee+S.length);)O<<=1;let te=new Int32Array(f.length+1);for(let e=0;e<f.length;e++)te[e+1]=te[e]+u[f[e]+1]-u[f[e]];let ne=new Uint8Array(r);for(let e=0;e<w.length;e++)ne[w[e]]=1;let k=i.length-1,re=new Uint8Array(k),ie=0,A=!0;for(let e=0;e<m.length;e++){re[m[e]]=1;let t=_[g[e]*2+1];t>ie&&(ie=t);let n=v.charCodeAt(_[g[e]*2]);(n===91||n===40)&&(A=!1)}let j=1;for(;j<m.length*2;)j<<=1;let M=new Int32Array(j).fill(-1);for(let e=0;e<m.length;e++){let t=_[g[e]*2],n=(Vh(v,t,t+_[g[e]*2+1])^Math.imul(m[e],2654435761)|0)&j-1;for(;M[n]!==-1;)n=n+1&j-1;M[n]=e}let N=(e,t,n,r)=>{let i=(Vh(t,n,r)^Math.imul(e,2654435761)|0)&j-1,a=r-n;for(;;){let r=M[i];if(r===-1)return-1;if(m[r]===e&&_[g[r]*2+1]===a){let e=_[g[r]*2],i=!0;for(let r=0;r<a;r++)if(v.charCodeAt(e+r)!==t.charCodeAt(n+r)){i=!1;break}if(i)return h[r]}i=i+1&j-1}},ae=n.cacheSize??8192,oe=n.prefix??e.prefix??``,se=oe===``?``:oe+`:`,ce=se.length,le=(T??[]).map(e=>{let n=t&&t[e];if(!n)throw Error(`cn: missing validator `+e);return n}),ue=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,de=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,fe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,me=0,he=-1,ge=-1,P=-1,_e=-1,ve=e=>e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57||e===95,ye=e=>/\s/.test(String.fromCharCode(e)),be=(e,t,n)=>{if(me=0,he=-1,n-t<3)return;let r=e.charCodeAt(t),i=e.charCodeAt(n-1);if(r===91&&i===93)me=1;else if(r===40&&i===41)me=2;else return;P=t+1,_e=n-1;let a=t+1;if(ve(e.charCodeAt(a))){for(a++;a<n-1;){let t=e.charCodeAt(a);if(!ve(t)&&t!==45)break;a++}a<n-2&&e.charCodeAt(a)===58&&(he=t+1,ge=a,P=a+1)}},xe=(e,t,n,r)=>{if(n-t!==r.length)return!1;for(let n=0;n<r.length;n++)if(e.charCodeAt(t+n)!==r.charCodeAt(n))return!1;return!0},Se=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ce=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,we=e=>!!e&&!Number.isNaN(Number(e)),Te=(e,t,n)=>{if(n-t<11||!xe(e,t,t+10,`@container`))return!1;if(e.charCodeAt(t+10)===47)return n-t>=12;let r=e.charCodeAt(t+11);return r===115&&n-t>=17&&xe(e,t+10,t+16,`-size/`)||r===110&&n-t>=19&&xe(e,t+10,t+18,`-normal/`)},Ee=[1,1,1,1,1,1,1,1,2,2,2,2,2,2,2],De=`length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight`.split(`|`).map(e=>e.split(` `)),Oe=[2,3,1,0,0,0,4,5,0,0,0,0,0,1,1],ke=(e,t,n,r)=>{if(e>=10){if(e>=25)return le[e-25](t.slice(n,r));let i=e-10;if(me!==Ee[i])return!1;if(he>=0){for(let e of De[i])if(xe(t,he,ge,e))return!0;return!1}switch(Oe[i]){case 0:return!1;case 1:return!0;case 2:{let e=t.slice(P,_e);return ue.test(e)&&!de.test(e)}case 3:return we(t.slice(P,_e));case 4:return pe.test(t.slice(P,_e));default:return fe.test(t.slice(P,_e))}}switch(e){case 0:return!0;case 1:return me===0;case 2:return me===1;case 3:return me===2;case 4:return Se.test(t.slice(n,r));case 5:return we(t.slice(n,r));case 6:{let e=t.slice(n,r);return!!e&&Number.isInteger(Number(e))}case 7:return r>n&&t.charCodeAt(r-1)===37&&we(t.slice(n,r-1));case 8:return Ce.test(t.slice(n,r));default:return Te(t,n,r)}},Ae=new Set(typeof E==`string`?E.split(` `):E),je=(e,t,n,r,i,a)=>{let o=Vh(t,n,r)^(i?2654435769:0),s=e.get(o);if(s!==void 0)outer:for(let e=0;e<s.length;e++){let a=s[e];if(a.imp===i&&a.k.length===r-n){for(let e=0;e<a.k.length;e++)if(a.k.charCodeAt(e)!==t.charCodeAt(n+e))continue outer;return a.id}}else e.set(o,s=[]);let c=t.slice(n,r),l=a(c);return s.push({k:c,imp:i,id:l}),l},Me=new Map,Ne=new Map,Pe=2,Fe=4096,Ie=(e,t)=>{let n=[],r=0,i=0,a=0;for(let t=0;t<e.length;t++){let o=e.charCodeAt(t);r===0&&i===0&&o===58?(n.push(e.slice(a,t)),a=t+1):o===91?r++:o===93?r--:o===40?i++:o===41&&i--}n.push(e.slice(a));let o=n[0];if(n.length>1){let e=[],t=[];for(let r of n)r.charCodeAt(0)===91||Ae.has(r)?(t.length&&(e.push(...t.sort()),t=[]),e.push(r)):t.push(r);t.length&&e.push(...t.sort()),o=e.join(`:`)}let s=t?o+` !`:o,c=Ne.get(s);return c===void 0&&Ne.set(s,c=Pe++),c},Le=new Map,F=r,Re=r+4096,ze=()=>F++,Be=2097152,Ve=8192,He=new Int32Array(Ve),Ue=Array(Ve).fill(null),We=new Int32Array(Ve),I=new Int32Array(Ve),Ge=new Uint8Array(Ve),Ke=0,qe=(e,t,n,r,i,a,o,s)=>{let c=e;if(Ue[e]!==null){if(Ue[e|1]===null)c=e|1;else if(!(Ke++&3))c=e|Ke>>2&1;else return}Ue[c]=t.slice(n,r),He[c]=i,We[c]=a,I[c]=o,Ge[c]=s},Je=()=>Ue.fill(null),Ye=256,Xe=[new Int32Array(Ye),new Int32Array(Ye),new Int32Array(Ye),new Int32Array(Ye)],[Ze,Qe,$e,et]=Xe,tt=new Uint8Array(Ye),nt=new Uint8Array(Ye),rt=()=>{Ye*=2,Xe=Xe.map(e=>{let t=new Int32Array(Ye);return t.set(e),t}),[Ze,Qe,$e,et]=Xe;let e=new Uint8Array(Ye);e.set(tt),tt=e,nt=new Uint8Array(Ye)},it=64,at=new Int32Array(it),ot=new Int32Array(it),st=new Int32Array(r),ct=2048,lt=21,ut=new Float64Array(ct),dt=new Int32Array(ct),ft=0,pt=(e,t)=>{if(e===0&&t<r)return st[t]===ft?1:(st[t]=ft,0);let n=e*2097152+t+1,i=Math.imul(n,2654435761)>>>lt;for(;dt[i]===ft;){if(ut[i]===n)return 1;i=i+1&ct-1}return ut[i]=n,dt[i]=ft,0},mt=(e,t,n,r,i)=>{if(n-t>=2&&e.charCodeAt(t)===91&&e.charCodeAt(n-1)===93){let r=-1;for(let i=t+1;i<n-1;i++)if(e.charCodeAt(i)===58){r=i;break}return r===-1||r===t+1?zh:je(Le,e,t+1,r,0,ze)}if(r>=0&&c[r]>=0)return c[r];for(let t=i-1;t>=0;t--){let r=ot[t];if(r>n)continue;let i=at[t],a=n-r;if(re[i]===1&&a>0&&a<=ie){let t=e.charCodeAt(r);if(A===!1||t!==91&&t!==40){let t=N(i,e,r,n);if(t>=0)return t}}let o=l[i];if(o<0)continue;let s=f[o],c=u[s],m=u[s+1];if(c===m)continue;be(e,r,n);let h=te[o]-c;for(let t=c;t<m;t++)if(ke(d[t],e,r,n))return p[h+t]}return zh},ht=e=>{let t=e.length,n=0,c=0,u=!1;(Pe>Fe||Me.size>Fe)&&(Me=new Map,Ne=new Map,Pe=2,Je()),F>Re&&(Le=new Map,F=r,Je());let d=0;for(;d<t;){let f=e.charCodeAt(d);if(f===32||f>=9&&f<=13||f>=160&&ye(f)){f!==32&&(u=!0),d++;continue}let p=d,m=0;for(;d<t;){if(f=e.charCodeAt(d),f<=32){if(f===32)break;if(f>=9&&f<=13){u=!0;break}}else if(f>=160&&ye(f)){u=!0;break}m=Math.imul(m^f,16777619),d++}let h=d,g=h-p;n===Ye&&rt();let _=n++;Ze[_]=p,Qe[_]=h,c+=g,m^=Math.imul(g,2654435761);let v=m^m>>>15,y=v&8190;{let t=-1;if(He[y]===v&&Ue[y]!==null&&Ue[y].length===g?t=y:He[y|1]===v&&Ue[y|1]!==null&&Ue[y|1].length===g&&(t=y|1),t>=0){let n=Ue[t],r=!0;for(let t=0;t<g;t++)if(n.charCodeAt(t)!==e.charCodeAt(p+t)){r=!1;break}if(r){$e[_]=We[t],et[_]=I[t],tt[_]=Ge[t];continue}}}let b=p;if(ce!==0){if(h-p<=ce||!e.startsWith(se,p)){$e[_]=zh,qe(y,e,p,h,v,zh,0,0);continue}b=p+ce}let x=0,S=0,C=-1,w=-1;for(let t=b;t<h;t++){let n=e.charCodeAt(t);if(x===0&&S===0){if(n===58){C=t;continue}if(n===47){w=t;continue}}n===91?x++:n===93?x--:n===40?S++:n===41&&S--}let T=C>=b?C+1:b,E=T,D=h,ee=!1,O=0;D>E&&e.charCodeAt(D-1)===33?(ee=!0,D--):D>E&&e.charCodeAt(E)===33&&(ee=!0,E++,O=1);let te=-1;w>T&&(te=w+O,te>=D&&(te=-1));let k=E;D-E>1&&e.charCodeAt(E)===45&&(k=E+1);let ie=0,A=0,j=0,M=-1,N=0;(l[0]>=0||re[0]===1)&&(at[0]=0,ot[0]=k,N=1);let ae=Bh,oe=0;for(let t=k;t<D;t++)if(t===te&&(ae=A<j?Bh:ie,oe=N),ie!==Bh){let n=e.charCodeAt(t),r=-1;if(A<j)o.charCodeAt(A)===n?(A++,A===j&&(r=ie=M)):ie=Bh;else{let e=i[ie],t=i[ie+1],c=Bh;for(let i=e;i<t;i++){let e=a[i];if(o.charCodeAt(e)===n){a[i+1]-e===1?r=c=s[i]:(A=e+1,j=a[i+1],M=s[i],c=ie);break}}ie=c}if(r>=0&&(l[r]>=0||re[r]===1)&&t+1<D&&e.charCodeAt(t+1)===45){if(N===it){it*=2;let e=new Int32Array(it);e.set(at),at=e;let t=new Int32Array(it);t.set(ot),ot=t}at[N]=r,ot[N]=t+2,N++}}te===D&&(ae=A<j?Bh:ie,oe=N);let le=A<j?Bh:ie,ue,de=!1;if(te>=0){if(de=!0,ue=mt(e,E,te,ae,oe),ue!==zh&&ue<r&&ne[ue]){let t=mt(e,E,D,le,N);t!==zh&&t!==ue&&(ue=t,de=!1)}else ue===zh&&(ue=mt(e,E,D,le,N),de=!1)}else ue=mt(e,E,D,le,N);let fe=0,pe=0;ue===zh?$e[_]=zh:(pe=+!!de,fe=b>=C?+!!ee:je(Me,e,b,C,+!!ee,e=>Ie(e,ee)),$e[_]=ue,tt[_]=pe,et[_]=fe),qe(y,e,p,h,v,ue,fe,pe)}if(n===0)return``;if(n===1)return Ze[0]===0&&Qe[0]===t?e:e.slice(Ze[0],Qe[0]);if(n*O>ct){for(;n*O>ct;)ct<<=1,lt--;ut=new Float64Array(ct),dt=new Int32Array(ct)}if(Pe>=Be||F>=Be)throw Error(`cn: too many distinct classes in one merge`);ft=ft+1|0,ft===0&&(st.fill(0),dt.fill(0),ft=1);let f=!1;for(let e=n-1;e>=0;e--){let t=$e[e];if(t===zh){nt[e]=1;continue}let n=et[e];if(pt(n,t)===1)nt[e]=0,f=!0;else if(nt[e]=1,t<r){let r=D[t];if(r>=0)for(let e=b[r];e<b[r+1];e++)pt(n,x[e]);if(tt[e]&1)for(let e=0;e<S.length;e++)S[e]===t&&pt(n,C[e])}}if(!f&&!u&&t===c+n-1)return e;let p=``,m=0;for(;m<n;){if(!nt[m]){m++;continue}let t=Ze[m],r=Qe[m],i=m+1;for(;i<n&&nt[i]&&Ze[i]===r+1&&e.charCodeAt(r)===32;)r=Qe[i],i++;p.length>0&&(p+=` `),p+=e.slice(t,r),m=i}return p},gt=16384,_t=new Int32Array(gt*2),vt=0,yt=1,bt=Object.create(null),xt=Object.create(null),St=new Map,Ct=new Map,wt=0,Tt=0,Et=()=>{vt^=gt,yt=yt+1|0,Tt=0},Dt=e=>{let t=bt[e];if(t!==void 0)return t;let n=Hh(e,0,e.length),r=(n&16383)+vt,i=_t[r]===(n^yt)||_t[r^gt]===(n^yt-1);return i&&(t=xt[e],t!==void 0)?(bt[e]=t,t):(t=ht(e),i?(bt[e]=t,++wt>ae&&(wt=0,xt=bt,bt=Object.create(null),Et())):(_t[r]=n^yt,++Tt>gt&&Et()),t)},Ot=e=>{let t=St.get(e);if(t!==void 0)return t;let n=Hh(e,0,e.length),r=(n&16383)+vt,i=_t[r]===(n^yt)||_t[r^gt]===(n^yt-1);return i&&(t=Ct.get(e),t!==void 0)?(St.set(e,t),t):(t=ht(e),i?(St.set(e,t),++wt>ae&&(wt=0,Ct=St,St=new Map,Et())):(_t[r]=n^yt,++Tt>gt&&Et()),t)},kt=e=>{let t=Hh(e,0,e.length),n=(t&16383)+vt;return _t[n]===(t^yt)||_t[n^gt]===(t^yt-1)||(_t[n]=t^yt,++Tt>gt&&Et(),!1)},At=ae===0?ht:Rh?e=>{let t=St.get(e);return t===void 0?Ot(e):t}:Dt;return{merge:function(){return arguments.length===1&&typeof arguments[0]==`string`?At(arguments[0]):At(Kh.apply(null,arguments))},mergeString:At,seenBefore:ae===0?()=>!1:kt,mergeUncached:ht}},Wh=(e,t)=>{if(!e)return``;if(typeof e==`string`)return e;let n=``;if(typeof e.length==`number`&&(!t||Array.isArray(e))){let r=e;for(let e=0;e<r.length;e++){let i=r[e];if(!i)continue;let a=typeof i==`string`?i:Wh(i,t);a&&(n&&(n+=` `),n+=a)}return n}if(t){if(typeof e==`number`)return``+e;if(typeof e==`object`)for(let t in e)e[t]&&(n&&(n+=` `),n+=t)}return n},Gh=(e,t)=>{let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(!i)continue;let a=typeof i==`string`?i:Wh(i,t);a&&(n&&(n+=` `),n+=a)}return n},Kh=function(){return Gh(arguments,!1)},qh=256,Jh=16,Yh=1024,Xh=4096,Zh=(e,t)=>{let n=t===void 0?()=>!0:t.seenBefore,r=t===void 0?e:t.mergeUncached,i=new Map,a=new Map,o=0,s=null,c=null,l=[],u=[],d=0,f=(t,n,r)=>{c===null&&(c=Array(Xh).fill(``),l=Array(Xh).fill(``),u=Array(Xh).fill(``));let i=Hh(t,0,t.length)&4094;if(c[i]===t&&l[i]===n)return u[i];if(c[i|1]===t&&l[i|1]===n)return u[i|1];let a=e(r?n+` `+t:t),o=c[i]===``?i:i|(c[i|1]===``?1:d++&1);return c[o]=t,l[o]=n,u[o]=a,a},p=(e,t,n,r)=>{let i=0;if(t){if(t!==e.a0)return!1;i=1}if(n){if(n!==(i===0?e.a0:e.a1))return!1;i++}if(r){if(r!==(i===0?e.a0:i===1?e.a1:e.a2))return!1;i++}return i===e.t},m=(e,t)=>{let n=e.a,r=0;for(let e=0;e<t.length;e++){let i=t[e];if(i){if(i!==n[r])return!1;r++}}return r===e.t},h=(t,c)=>{let l=t.length,u=s===null?null:s.n;if(!c){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let d=``,p=-1,h=0,g=!1;for(let e=0;e<l;e++){let n=t[e];if(n){if(typeof n!=`string`){if(n=t[e]=Wh(n,!0),!n)continue;g=!0}p<0&&(d=n,p=e),h++}}if(h===0)return``;if(h===1)return e(d);if(g){if(u!==null&&m(u,t))return s=u,u.r;if(s!==null&&s!==u&&m(s,t))return s.r}let _=i.get(d);_===void 0&&(_=a.get(d),_!==void 0&&i.set(d,_));let v=null;if(_!==void 0){if(_.skip>0){_.skip--,s=null;let e=d;for(let n=p+1;n<l;n++){let r=t[n];r&&(e+=` `+r)}return f(e,``,!1)}let e=_.e;outer:for(let n=0;n<e.length;n++){let r=e[n];if(r.t!==h)continue;let i=r.a,a=1;for(let e=p+1;e<l;e++){let n=t[e];if(n&&n!==i[a++])continue outer}v=r;break}v!==null&&(_.miss=0)}if(v===null){let s=d,c=[d];for(let e=p+1;e<l;e++){let n=t[e];n&&(s+=` `+n,c.push(n))}if(!n(s))return r(s);v={r:e(s),t:c.length,a0:c[0],a1:c[1],a2:c[2]??``,a:c,n:null},_===void 0?i.set(d,_={e:[],miss:0,skip:0,at:0}):++_.miss>Jh&&(_.miss=Jh,_.skip=Yh,_.e.length=0,_.at=0);let u=_.e;u.length<qh?u.push(v):(u[_.at]=v,_.at=_.at+1&255),++o>1e3&&(o=0,a=i,i=new Map)}return s!==null&&s!==v&&(s.n=v),s=v,v.r},g=t=>Array.isArray(t)?h(t.slice(),!1):e(Wh(t,!0));return function(t,n,r){let a=arguments.length;if((a|1)==3){let e=s;if(e!==null){let i=e.n;if(i!==null&&p(i,t,n,r))return s=i,i.r;if(e!==i&&p(e,t,n,r))return e.r}if(a===2&&typeof n==`string`&&n!==``){let e=i.get(t);if(e!==void 0&&e.skip>0)return e.skip--,s=null,f(n,t,!0)}return h([t,n,r],!0)}if(a===1)return typeof t==`string`?e(t):g(t);let o=s;if(o!==null){let e=o.n;if(e!==null){let t=e.a,n=0,r=!0;for(let e=0;e<a;e++){let i=arguments[e];if(i){if(i!==t[n]){r=!1;break}n++}}if(r&&n===e.t)return s=e,e.r}if(o!==e){let e=o.a,t=0,n=!0;for(let r=0;r<a;r++){let i=arguments[r];if(i){if(i!==e[t]){n=!1;break}t++}}if(n&&t===o.t)return o.r}}let c=[];for(let e=0;e<a;e++)c.push(arguments[e]);return h(c,!0)}},Qh=`{"theme":{"animate":["spin","ping","pulse","bounce"],"aspect":["video"],"blur":[{"$v":"isTshirtSize"}],"breakpoint":[{"$v":"isTshirtSize"}],"color":[{"$v":"isAny"}],"container":[{"$v":"isTshirtSize"}],"drop-shadow":[{"$v":"isTshirtSize"}],"ease":["in","out","in-out"],"font":[{"$v":"isAnyNonArbitrary"}],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[{"$v":"isTshirtSize"}],"leading":["none","tight","snug","normal","relaxed","loose"],"perspective":["dramatic","near","normal","midrange","distant","none"],"radius":[{"$v":"isTshirtSize"}],"shadow":[{"$v":"isTshirtSize"}],"spacing":["px",{"$v":"isNumber"}],"text":[{"$v":"isTshirtSize"}],"text-shadow":[{"$v":"isTshirtSize"}],"tracking":["tighter","tight","normal","wide","wider","widest"]},"classGroups":{"aspect":[{"aspect":["auto","square",{"$v":"isFraction"},{"$v":"isArbitraryValue"},{"$v":"isArbitraryVariable"},{"$t":"aspect"}]}],"container":["container"],"container-type":[{"@container":["","normal","size",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"container-named":[{"$v":"isNamedContainerQuery"}],"columns":[{"columns":[{"$v":"isNumber"},"auto",{"$v":"isArbitraryValue"},{"$v":"isArbitraryVariable"},{"$t":"container"}]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],"box":[{"box":["border","content"]}],"display":["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],"sr":["sr-only","not-sr-only"],"float":[{"float":["right","left","none","start","end"]}],"clear":[{"clear":["left","right","both","none","start","end"]}],"isolation":["isolate","isolation-auto"],"object-fit":[{"object":["contain","cover","fill","none","scale-down"]}],"object-position":[{"object":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"overflow":[{"overflow":["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],"overscroll":[{"overscroll":["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],"position":["static","fixed","absolute","relative","sticky"],"inset":[{"inset":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"inset-x":[{"inset-x":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"inset-y":[{"inset-y":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"start":[{"inset-s":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}],"start":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"end":[{"inset-e":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}],"end":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"inset-bs":[{"inset-bs":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"inset-be":[{"inset-be":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"top":[{"top":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"right":[{"right":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"bottom":[{"bottom":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"left":[{"left":[{"$v":"isFraction"},"full","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"visibility":["visible","invisible","collapse"],"z":[{"z":[{"$v":"isInteger"},"auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"basis":[{"basis":[{"$v":"isFraction"},"full","auto",{"$t":"container"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"flex-direction":[{"flex":["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{"flex":["nowrap","wrap","wrap-reverse"]}],"flex":[{"flex":[{"$v":"isNumber"},{"$v":"isFraction"},"auto","initial","none",{"$v":"isArbitraryValue"}]}],"grow":[{"grow":["",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"shrink":[{"shrink":["",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"order":[{"order":[{"$v":"isInteger"},"first","last","none",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"grid-cols":[{"grid-cols":[{"$v":"isInteger"},"none","subgrid",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"col-start-end":[{"col":["auto",{"span":["full",{"$v":"isInteger"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]},{"$v":"isInteger"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"col-start":[{"col-start":[{"$v":"isInteger"},"auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"col-end":[{"col-end":[{"$v":"isInteger"},"auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"grid-rows":[{"grid-rows":[{"$v":"isInteger"},"none","subgrid",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"row-start-end":[{"row":["auto",{"span":["full",{"$v":"isInteger"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]},{"$v":"isInteger"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"row-start":[{"row-start":[{"$v":"isInteger"},"auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"row-end":[{"row-end":[{"$v":"isInteger"},"auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]},{"auto-cols":[{"$t":"spacing"}]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]},{"auto-rows":[{"$t":"spacing"}]}],"gap":[{"gap":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"gap-x":[{"gap-x":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"gap-y":[{"gap-y":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"justify-content":[{"justify":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{"content":["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{"items":["start","end","center","stretch","center-safe","end-safe",{"baseline":["","last"]}]}],"align-self":[{"self":["auto","start","end","center","stretch","center-safe","end-safe",{"baseline":["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"p":[{"p":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"px":[{"px":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"py":[{"py":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"ps":[{"ps":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"pe":[{"pe":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"pbs":[{"pbs":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"pbe":[{"pbe":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"pt":[{"pt":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"pr":[{"pr":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"pb":[{"pb":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"pl":[{"pl":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"m":[{"m":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"mx":[{"mx":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"my":[{"my":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"ms":[{"ms":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"me":[{"me":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"mbs":[{"mbs":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"mbe":[{"mbe":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"mt":[{"mt":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"mr":[{"mr":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"mb":[{"mb":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"ml":[{"ml":["auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"space-x":[{"space-x":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"space-y-reverse":["space-y-reverse"],"size":[{"size":[{"$v":"isFraction"},"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"inline-size":[{"inline":["auto",{"$t":"container"},{"$v":"isFraction"},"screen","full","dvw","lvw","svw","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"min-inline-size":[{"min-inline":["auto",{"$t":"container"},{"$v":"isFraction"},"screen","full","dvw","lvw","svw","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"max-inline-size":[{"max-inline":["none",{"$t":"container"},{"$v":"isFraction"},"screen","full","dvw","lvw","svw","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"block-size":[{"block":["auto",{"$v":"isFraction"},"screen","full","lh","dvh","lvh","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"min-block-size":[{"min-block":["auto",{"$v":"isFraction"},"screen","full","lh","dvh","lvh","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"max-block-size":[{"max-block":["none",{"$v":"isFraction"},"screen","full","lh","dvh","lvh","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"w":[{"w":[{"$t":"container"},"screen",{"$v":"isFraction"},"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"min-w":[{"min-w":[{"$t":"container"},"screen","none",{"$v":"isFraction"},"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"max-w":[{"max-w":[{"$t":"container"},"screen","none","prose",{"screen":[{"$t":"breakpoint"}]},{"$v":"isFraction"},"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"h":[{"h":["screen","lh",{"$v":"isFraction"},"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"min-h":[{"min-h":["screen","lh","none",{"$v":"isFraction"},"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"max-h":[{"max-h":["screen","lh","none",{"$v":"isFraction"},"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"font-size":[{"text":["base",{"$t":"text"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{"font":[{"$t":"font-weight"},{"$v":"isArbitraryVariableWeight"},{"$v":"isArbitraryWeight"}]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",{"$v":"isPercent"},{"$v":"isArbitraryValue"}]}],"font-family":[{"font":[{"$v":"isArbitraryVariableFamilyName"},{"$v":"isArbitraryFamilyName"},{"$t":"font"}]}],"font-features":[{"font-features":[{"$v":"isArbitraryValue"}]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],"tracking":[{"tracking":[{"$t":"tracking"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"line-clamp":[{"line-clamp":[{"$v":"isNumber"},"none",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryNumber"}]}],"leading":[{"leading":["none",{"$t":"leading"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"list-image":[{"list-image":["none",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"list-style-position":[{"list":["inside","outside"]}],"list-style-type":[{"list":["disc","decimal","none",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"text-alignment":[{"text":["left","center","right","justify","start","end"]}],"placeholder-color":[{"placeholder":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"text-color":[{"text":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{"decoration":["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{"decoration":[{"$v":"isNumber"},"from-font","auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryLength"}]}],"text-decoration-color":[{"decoration":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"underline-offset":[{"underline-offset":[{"$v":"isNumber"},"auto",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{"text":["wrap","nowrap","balance","pretty"]}],"indent":[{"indent":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"tab-size":[{"tab":[{"$v":"isInteger"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"vertical-align":[{"align":["baseline","top","middle","bottom","text-top","text-bottom","sub","super",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"whitespace":[{"whitespace":["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],"break":[{"break":["normal","words","all","keep"]}],"wrap":[{"wrap":["break-word","anywhere","normal"]}],"hyphens":[{"hyphens":["none","manual","auto"]}],"content":[{"content":["none",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"bg-attachment":[{"bg":["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{"bg":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"},{"position":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}]}],"bg-repeat":[{"bg":["no-repeat",{"repeat":["","x","y","space","round"]}]}],"bg-size":[{"bg":["auto","cover","contain",{"$v":"isArbitraryVariableSize"},{"$v":"isArbitrarySize"},{"size":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}]}],"bg-image":[{"bg":["none",{"linear":[{"to":["t","tr","r","br","b","bl","l","tl"]},{"$v":"isInteger"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}],"radial":["",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}],"conic":["",{"$v":"isInteger"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]},{"$v":"isArbitraryVariableImage"},{"$v":"isArbitraryImage"}]},{"bg-gradient-to":["t","tr","r","br","b","bl","l","tl"]}],"bg-color":[{"bg":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"gradient-from-pos":[{"from":[{"$v":"isPercent"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"gradient-via-pos":[{"via":[{"$v":"isPercent"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"gradient-to-pos":[{"to":[{"$v":"isPercent"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"gradient-from":[{"from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"gradient-via":[{"via":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"gradient-to":[{"to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded":[{"rounded":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-s":[{"rounded-s":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-e":[{"rounded-e":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-t":[{"rounded-t":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-r":[{"rounded-r":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-b":[{"rounded-b":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-l":[{"rounded-l":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-ss":[{"rounded-ss":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-se":[{"rounded-se":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-ee":[{"rounded-ee":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-es":[{"rounded-es":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-tl":[{"rounded-tl":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-tr":[{"rounded-tr":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-br":[{"rounded-br":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rounded-bl":[{"rounded-bl":["","none","full",{"$t":"radius"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-w":[{"border":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-x":[{"border-x":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-y":[{"border-y":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-s":[{"border-s":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-e":[{"border-e":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-bs":[{"border-bs":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-be":[{"border-be":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-t":[{"border-t":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-r":[{"border-r":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-b":[{"border-b":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"border-w-l":[{"border-l":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"divide-x":[{"divide-x":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{"border":["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{"divide":["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{"border":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-x":[{"border-x":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-y":[{"border-y":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-s":[{"border-s":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-e":[{"border-e":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-bs":[{"border-bs":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-be":[{"border-be":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-t":[{"border-t":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-r":[{"border-r":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-b":[{"border-b":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-color-l":[{"border-l":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"divide-color":[{"divide":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"outline-style":[{"outline":["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"outline-w":[{"outline":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"outline-color":[{"outline":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"shadow":[{"shadow":["","inner","none",{"$t":"shadow"},{"$v":"isArbitraryVariableShadow"},{"$v":"isArbitraryShadow"}]}],"shadow-color":[{"shadow":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"inset-shadow":[{"inset-shadow":["none",{"$t":"inset-shadow"},{"$v":"isArbitraryVariableShadow"},{"$v":"isArbitraryShadow"}]}],"inset-shadow-color":[{"inset-shadow":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"ring-w":[{"ring":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"ring-w-inset":["ring-inset"],"ring-color":[{"ring":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"ring-offset-w":[{"ring-offset":[{"$v":"isNumber"},{"$v":"isArbitraryLength"}]}],"ring-offset-color":[{"ring-offset":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"inset-ring-w":[{"inset-ring":["",{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"}]}],"inset-ring-color":[{"inset-ring":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"text-shadow":[{"text-shadow":["none",{"$t":"text-shadow"},{"$v":"isArbitraryVariableShadow"},{"$v":"isArbitraryShadow"}]}],"text-shadow-color":[{"text-shadow":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"opacity":[{"opacity":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{"mask":["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[{"$v":"isNumber"}]}],"mask-image-linear-from-pos":[{"mask-linear-from":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-linear-to-pos":[{"mask-linear-to":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-linear-from-color":[{"mask-linear-from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-linear-to-color":[{"mask-linear-to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-t-from-pos":[{"mask-t-from":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-t-to-pos":[{"mask-t-to":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-t-from-color":[{"mask-t-from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-t-to-color":[{"mask-t-to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-r-from-pos":[{"mask-r-from":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-r-to-pos":[{"mask-r-to":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-r-from-color":[{"mask-r-from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-r-to-color":[{"mask-r-to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-b-from-pos":[{"mask-b-from":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-b-to-pos":[{"mask-b-to":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-b-from-color":[{"mask-b-from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-b-to-color":[{"mask-b-to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-l-from-pos":[{"mask-l-from":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-l-to-pos":[{"mask-l-to":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-l-from-color":[{"mask-l-from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-l-to-color":[{"mask-l-to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-x-from-pos":[{"mask-x-from":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-x-to-pos":[{"mask-x-to":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-x-from-color":[{"mask-x-from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-x-to-color":[{"mask-x-to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-y-from-pos":[{"mask-y-from":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-y-to-pos":[{"mask-y-to":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-y-from-color":[{"mask-y-from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-y-to-color":[{"mask-y-to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-radial":[{"mask-radial":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-radial-from-pos":[{"mask-radial-from":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-radial-to-pos":[{"mask-radial-to":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-radial-from-color":[{"mask-radial-from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-radial-to-color":[{"mask-radial-to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{"closest":["side","corner"],"farthest":["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[{"$v":"isNumber"}]}],"mask-image-conic-from-pos":[{"mask-conic-from":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-conic-to-pos":[{"mask-conic-to":[{"$v":"isNumber"},{"$v":"isPercent"},{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"}]}],"mask-image-conic-from-color":[{"mask-conic-from":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-image-conic-to-color":[{"mask-conic-to":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"mask-mode":[{"mask":["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{"mask":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",{"$v":"isArbitraryVariablePosition"},{"$v":"isArbitraryPosition"},{"position":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}]}],"mask-repeat":[{"mask":["no-repeat",{"repeat":["","x","y","space","round"]}]}],"mask-size":[{"mask":["auto","cover","contain",{"$v":"isArbitraryVariableSize"},{"$v":"isArbitrarySize"},{"size":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}]}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{"mask":["none",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"filter":[{"filter":["","none",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"blur":[{"blur":["","none",{"$t":"blur"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"brightness":[{"brightness":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"contrast":[{"contrast":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"drop-shadow":[{"drop-shadow":["","none",{"$t":"drop-shadow"},{"$v":"isArbitraryVariableShadow"},{"$v":"isArbitraryShadow"}]}],"drop-shadow-color":[{"drop-shadow":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"grayscale":[{"grayscale":["",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"hue-rotate":[{"hue-rotate":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"invert":[{"invert":["",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"saturate":[{"saturate":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"sepia":[{"sepia":["",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-filter":[{"backdrop-filter":["","none",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-blur":[{"backdrop-blur":["","none",{"$t":"blur"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-brightness":[{"backdrop-brightness":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-contrast":[{"backdrop-contrast":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-grayscale":[{"backdrop-grayscale":["",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-invert":[{"backdrop-invert":["",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-opacity":[{"backdrop-opacity":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-saturate":[{"backdrop-saturate":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backdrop-sepia":[{"backdrop-sepia":["",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"border-collapse":[{"border":["collapse","separate"]}],"border-spacing":[{"border-spacing":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"border-spacing-x":[{"border-spacing-x":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"border-spacing-y":[{"border-spacing-y":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"table-layout":[{"table":["auto","fixed"]}],"caption":[{"caption":["top","bottom"]}],"transition":[{"transition":["","all","colors","opacity","shadow","transform","none",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"transition-behavior":[{"transition":["normal","discrete"]}],"duration":[{"duration":[{"$v":"isNumber"},"initial",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"ease":[{"ease":["linear","initial",{"$t":"ease"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"delay":[{"delay":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"animate":[{"animate":["none",{"$t":"animate"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"backface":[{"backface":["hidden","visible"]}],"perspective":[{"perspective":[{"$t":"perspective"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"perspective-origin":[{"perspective-origin":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rotate":[{"rotate":["none",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rotate-x":[{"rotate-x":["none",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rotate-y":[{"rotate-y":["none",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"rotate-z":[{"rotate-z":["none",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"scale":[{"scale":["none",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"scale-x":[{"scale-x":["none",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"scale-y":[{"scale-y":["none",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"scale-z":[{"scale-z":["none",{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"scale-3d":["scale-3d"],"skew":[{"skew":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"skew-x":[{"skew-x":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"skew-y":[{"skew-y":[{"$v":"isNumber"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"transform":[{"transform":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},"","none","gpu","cpu"]}],"transform-origin":[{"origin":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"transform-style":[{"transform":["3d","flat"]}],"translate":[{"translate":[{"$v":"isFraction"},"full",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"translate-x":[{"translate-x":[{"$v":"isFraction"},"full",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"translate-y":[{"translate-y":[{"$v":"isFraction"},"full",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"translate-z":[{"translate-z":[{"$v":"isFraction"},"full",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"translate-none":["translate-none"],"zoom":[{"zoom":[{"$v":"isInteger"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"accent":[{"accent":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"appearance":[{"appearance":["none","auto"]}],"caret-color":[{"caret":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"color-scheme":[{"scheme":["normal","dark","light","light-dark","only-dark","only-light"]}],"cursor":[{"cursor":["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],"resize":[{"resize":["none","","y","x"]}],"scroll-behavior":[{"scroll":["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"scrollbar-track-color":[{"scrollbar-track":[{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{"scrollbar":["auto","thin","none"]}],"scroll-m":[{"scroll-m":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-mx":[{"scroll-mx":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-my":[{"scroll-my":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-ms":[{"scroll-ms":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-me":[{"scroll-me":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-mbs":[{"scroll-mbs":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-mbe":[{"scroll-mbe":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-mt":[{"scroll-mt":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-mr":[{"scroll-mr":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-mb":[{"scroll-mb":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-ml":[{"scroll-ml":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-p":[{"scroll-p":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-px":[{"scroll-px":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-py":[{"scroll-py":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-ps":[{"scroll-ps":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-pe":[{"scroll-pe":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-pbs":[{"scroll-pbs":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-pbe":[{"scroll-pbe":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-pt":[{"scroll-pt":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-pr":[{"scroll-pr":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-pb":[{"scroll-pb":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"scroll-pl":[{"scroll-pl":[{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"},{"$t":"spacing"}]}],"snap-align":[{"snap":["start","end","center","align-none"]}],"snap-stop":[{"snap":["normal","always"]}],"snap-type":[{"snap":["none","x","y","both"]}],"snap-strictness":[{"snap":["mandatory","proximity"]}],"touch":[{"touch":["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],"select":[{"select":["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"fill":[{"fill":["none",{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"stroke-w":[{"stroke":[{"$v":"isNumber"},{"$v":"isArbitraryVariableLength"},{"$v":"isArbitraryLength"},{"$v":"isArbitraryNumber"}]}],"stroke":[{"stroke":["none",{"$t":"color"},{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}],"contain":[{"contain":["none","content","strict",{"$v":"isArbitraryVariable"},{"$v":"isArbitraryValue"}]}],"contain-size":[{"contain":["size","inline-size"]}],"contain-layout":["contain-layout"],"contain-paint":["contain-paint"],"contain-style":["contain-style"]},"conflictingClassGroups":{"container-named":["container-type"],"overflow":["overflow-x","overflow-y"],"overscroll":["overscroll-x","overscroll-y"],"inset":["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],"flex":["basis","grow","shrink"],"gap":["gap-x","gap-y"],"p":["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],"px":["ps","pe","pr","pl"],"py":["pbs","pbe","pt","pb"],"m":["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],"mx":["ms","me","mr","ml"],"my":["mbs","mbe","mt","mb"],"size":["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],"rounded":["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],"translate":["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],"touch":["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"],"contain":["contain-size","contain-layout","contain-paint","contain-style"],"contain-size":["contain"],"contain-layout":["contain"],"contain-paint":["contain"],"contain-style":["contain"]},"conflictingClassGroupModifiers":{"font-size":["leading"]},"orderSensitiveModifiers":["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"],"postfixLookupClassGroups":["container-type"]}`,$h=()=>JSON.parse(Qh),eg=e=>`classGroups`in e&&`theme`in e&&`conflictingClassGroups`in e,tg=e=>e===void 0?{config:$h()}:typeof e==`function`?{config:e($h())}:eg(e)?{config:e}:{config:Eh($h(),e),cacheSize:e.cacheSize},ng=e=>{let{config:t,cacheSize:n}=tg(e),{tables:r,validatorImpls:i,prefix:a}=Lh(t);return Uh(r,i,{cacheSize:n,prefix:a})},rg=e=>{let t=null,n=()=>t??=ng(e);return Zh(e=>n().mergeString(e),{seenBefore:e=>n().seenBefore(e),mergeUncached:e=>n().mergeUncached(e)})},$=i(),ig=rg({extend:{classGroups:{"font-size":[{text:[`display`,`title`,`heading`,`read`,`dense`,`micro`]}],shadow:[{shadow:[`overlay`]}],tracking:[{tracking:[`label`]}]}}});function ag(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<i;t++)e[t]&&(n=ag(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function og(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ag(e))&&(r&&(r+=` `),r+=t);return r}var sg=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,cg=og,lg=(e,t)=>n=>{if(t?.variants==null)return cg(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=sg(t)||sg(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return cg(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},ug=Object.defineProperty,dg=(e,t)=>ug(e,`name`,{value:t,configurable:!0});function fg(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}dg(fg,`setRef`);function pg(...e){return t=>{let n=!1,r=e.map(e=>{let r=fg(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():fg(e[t],null)}}}}dg(pg,`composeRefs`);function mg(...e){return Q.useCallback(pg(...e),e)}dg(mg,`useComposedRefs`);var hg=Object.defineProperty,gg=(e,t)=>hg(e,`name`,{value:t,configurable:!0});function _g(e){let t=Q.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Eg(r)&&typeof jg==`function`&&(r=jg(r._payload)),Q.Children.forEach(r,e=>{if(wg(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Eg(n)&&typeof jg==`function`&&(n=jg(n._payload)),a=xg(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=Q.cloneElement(a,void 0,s):!o&&Q.Children.count(r)===1&&Q.isValidElement(r)&&(a=r);let c=a?Cg(a):void 0,l=mg(n,c);if(!a){if(r||r===0)throw Error(o?Ag(e):kg(e));return r}let u=Sg(i,a.props??{});return a.type!==Q.Fragment&&(u.ref=n?l:c),Q.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}gg(_g,`createSlot`);var vg=_g(`Slot`),yg=Symbol.for(`radix.slottable`);function bg(e){let t=gg(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=yg,t}gg(bg,`createSlottable`);var xg=gg((e,t)=>{if(`child`in e.props){let t=e.props.child;return Q.isValidElement(t)?Q.cloneElement(t,void 0,e.props.children(t.props.children)):null}return Q.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function Sg(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=Og(a,i))}return{...e,...n}}gg(Sg,`mergeProps`);function Cg(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}gg(Cg,`getElementRef`);function wg(e){return Q.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===yg}gg(wg,`isSlottable`);var Tg=Symbol.for(`react.lazy`);function Eg(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Tg&&`_payload`in e&&Dg(e._payload)}gg(Eg,`isLazyComponent`);function Dg(e){return typeof e==`object`&&!!e&&`then`in e}gg(Dg,`isPromiseLike`);function Og(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}gg(Og,`concatAriaDescribedby`);var kg=gg(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Ag=gg(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),jg=Q.use,Mg=Object.defineProperty,Ng=(e,t)=>Mg(e,`name`,{value:t,configurable:!0}),Pg=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=_g(`Primitive.${t}`),r=Q.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,$.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Fg(e,t){e&&dm.flushSync(()=>e.dispatchEvent(t))}Ng(Fg,`dispatchDiscreteCustomEvent`);var Ig=Object.defineProperty,Lg=(e,t)=>Ig(e,`name`,{value:t,configurable:!0});function Rg(e,t){let n=Q.createContext(t);n.displayName=e+`Context`;let r=Lg(e=>{let{children:t,...r}=e,i=Q.useMemo(()=>r,Object.values(r));return(0,$.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=Q.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return Lg(i,`useContext`),[r,i]}Lg(Rg,`createContext`);function zg(e,t=[]){let n=[];function r(t,r){let i=Q.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=Lg(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=Q.useMemo(()=>o,Object.values(o));return(0,$.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=Q.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return Lg(s,`useContext`),[o,s]}Lg(r,`createContext`);let i=Lg(()=>{let t=n.map(e=>Q.createContext(e));return Lg(function(n){let r=n?.[e]||t;return Q.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,Bg(i,...t)]}Lg(zg,`createContextScope`);function Bg(...e){let t=e[0];if(e.length===1)return t;let n=Lg(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Lg(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return Q.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}Lg(Bg,`composeContextScopes`);var Vg=Object.defineProperty,Hg=(e,t)=>Vg(e,`name`,{value:t,configurable:!0}),Ug=!!(typeof window<`u`&&window.document&&window.document.createElement);function Wg(e,t,{checkForDefaultPrevented:n=!0}={}){return Hg(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Hg(Wg,`composeEventHandlers`);function Gg(e){if(!Ug)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Hg(Gg,`getOwnerWindow`);function Kg(e){if(!Ug)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Hg(Kg,`getOwnerDocument`);function qg(e,t=!1){let{activeElement:n}=Kg(e);if(!n?.nodeName)return null;if(Jg(n)&&n.contentDocument)return qg(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Kg(n).getElementById(e);if(t)return t}}return n}Hg(qg,`getActiveElement`);function Jg(e){return e.tagName===`IFRAME`}Hg(Jg,`isFrame`);var Yg=globalThis?.document?Q.useLayoutEffect:()=>{},Xg=Object.defineProperty,Zg=(e,t)=>Xg(e,`name`,{value:t,configurable:!0}),Qg=Q.useEffectEvent,$g=Q.useInsertionEffect;function e_(e){if(typeof Qg==`function`)return Qg(e);let t=Q.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof $g==`function`?$g(()=>{t.current=e}):Yg(()=>{t.current=e}),Q.useMemo(()=>((...e)=>t.current?.(...e)),[])}Zg(e_,`useEffectEvent`);var t_=Object.defineProperty,n_=(e,t)=>t_(e,`name`,{value:t,configurable:!0}),r_=Q.useInsertionEffect||Yg;function i_({prop:e,defaultProp:t,onChange:n=n_(()=>{},`onChange`),caller:r}){let[i,a,o]=a_({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,Q.useCallback(t=>{if(s){let n=o_(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}n_(i_,`useControllableState`);function a_({defaultProp:e,onChange:t}){let[n,r]=Q.useState(e),i=Q.useRef(n),a=Q.useRef(t);return r_(()=>{a.current=t},[t]),Q.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}n_(a_,`useUncontrolledState`);function o_(e){return typeof e==`function`}n_(o_,`isFunction`);var s_=Symbol(`RADIX:SYNC_STATE`);function c_(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=e_(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=Q.useReducer((t,n)=>{if(n.type===s_)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=Q.useRef(p);Q.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=Q.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return Q.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:s_,state:i})},[i,d.state,c]),[h,f]}n_(c_,`useControllableStateReducer`);var l_=Object.defineProperty,u_=(e,t)=>l_(e,`name`,{value:t,configurable:!0});function d_(e,t){return Q.useReducer((e,n)=>t[e][n]??e,e)}u_(d_,`useStateMachine`);var f_=u_(e=>{let{present:t,children:n}=e,r=p_(t),i=typeof n==`function`?n({present:r.isPresent}):Q.Children.only(n),a=h_(r.ref,__(i));return typeof n==`function`||r.isPresent?Q.cloneElement(i,{ref:a}):null},`Presence`);function p_(e){let[t,n]=Q.useState(),r=Q.useRef(null),i=Q.useRef(e),a=Q.useRef(`none`),o=Q.useRef(void 0),[s,c]=d_(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return Q.useEffect(()=>{s===`mounted`?(a.current=o.current??g_(r.current),o.current=void 0):a.current=`none`},[s]),Yg(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=g_(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),Yg(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=u_(a=>{let o=g_(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=u_(e=>{e.target===t&&(a.current=g_(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:Q.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=g_(t)}else r.current=null;n(e)},[])}}u_(p_,`usePresence`);function m_(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}u_(m_,`setRef`);function h_(...e){let t=Q.useRef(e);return t.current=e,Q.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=m_(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():m_(n[e],null)}}},[])}u_(h_,`useStableComposedRefs`);function g_(e){return e?.animationName||`none`}u_(g_,`getAnimationName`);function __(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}u_(__,`getElementRef`);var v_=Object.defineProperty,y_=(e,t)=>v_(e,`name`,{value:t,configurable:!0}),b_=Q.useId||(()=>void 0),x_=0;function S_(e){let[t,n]=Q.useState(b_());return Yg(()=>{e||n(e=>e??String(x_++))},[e]),e||(t?`radix-${t}`:``)}y_(S_,`useId`);var C_=Object.defineProperty,w_=(e,t)=>C_(e,`name`,{value:t,configurable:!0});function T_(e){let t=Q.useRef(e);return Q.useEffect(()=>{t.current=e}),Q.useMemo(()=>((...e)=>t.current?.(...e)),[])}w_(T_,`useCallbackRef`);var E_=Object.defineProperty,D_=(e,t)=>E_(e,`name`,{value:t,configurable:!0}),O_=`dismissableLayer.update`,k_=`dismissableLayer.pointerDownOutside`,A_=`dismissableLayer.focusOutside`,j_,M_=Q.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),N_=Q.forwardRef(D_(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=Q.useContext(M_),[d,f]=Q.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=Q.useState({}),h=mg(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=Q.useRef(!1),C=I_(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:Q.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),w=L_(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),T=d?y===g.length-1:!1,E=T_(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return Q.useEffect(()=>{if(T)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,T,E]),Q.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(j_=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),R_(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=j_))}},[d,p,n,u]),Q.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),R_())},[d,u]),Q.useEffect(()=>{let e=D_(()=>m({}),`handleUpdate`);return document.addEventListener(O_,e),()=>document.removeEventListener(O_,e)},[]),(0,$.jsx)(Pg.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:Wg(e.onFocusCapture,w.onFocusCapture),onBlurCapture:Wg(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:Wg(e.onPointerDownCapture,C.onPointerDownCapture)})},`DismissableLayer`));function P_(){let e=Q.useContext(M_),[t,n]=Q.useState(null);return Q.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}D_(P_,`useDismissableLayerSurface`);var F_=D_(()=>!0,`IS_TRUE`);function I_(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=F_}=t,s=T_(e),c=Q.useRef(!1),l=Q.useRef(!1),u=Q.useRef(new Map),d=Q.useRef(()=>{});return Q.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}D_(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}D_(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}D_(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}D_(p,`handleInteractionBubble`);let m=D_(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||z_(k_,s,p,{discrete:!0})};if(D_(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:D_(()=>c.current=!0,`onPointerDownCapture`)}}D_(I_,`usePointerDownOutside`);function L_(e,t=globalThis?.document){let n=T_(e),r=Q.useRef(!1);return Q.useEffect(()=>{let e=D_(e=>{e.target&&!r.current&&z_(A_,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:D_(()=>r.current=!0,`onFocusCapture`),onBlurCapture:D_(()=>r.current=!1,`onBlurCapture`)}}D_(L_,`useFocusOutside`);function R_(){let e=new CustomEvent(O_);document.dispatchEvent(e)}D_(R_,`dispatchUpdate`);function z_(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Fg(i,a):i.dispatchEvent(a)}D_(z_,`handleAndDispatchCustomEvent`);var B_=Object.defineProperty,V_=(e,t)=>B_(e,`name`,{value:t,configurable:!0}),H_=`focusScope.autoFocusOnMount`,U_=`focusScope.autoFocusOnUnmount`,W_={bubbles:!1,cancelable:!0},G_=Q.forwardRef(V_(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=Q.useState(null),u=T_(a),d=T_(o),f=Q.useRef(null),p=mg(t,l),m=Q.useRef(i);Q.useEffect(()=>{m.current=i});let h=Q.useCallback(e=>e?c?.contains(e)?!0:!!m.current?.some(t=>t.contains(e)):!1,[c]),g=Q.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Q.useEffect(()=>{if(r){let e=function(e){if(g.paused||!c)return;let t=e.target;h(t)?f.current=t:nv(f.current,{select:!0})},t=function(e){if(g.paused||!c)return;let t=e.relatedTarget;t!==null&&(h(t)||nv(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&nv(c)};V_(e,`handleFocusIn`),V_(t,`handleFocusOut`),V_(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,g.paused,h]),Q.useEffect(()=>{if(c){rv.add(g);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(H_,W_);c.addEventListener(H_,u),c.dispatchEvent(t),t.defaultPrevented||(X_(ov(Q_(c)),{select:!0}),document.activeElement===e&&nv(c))}return()=>{c.removeEventListener(H_,u),setTimeout(()=>{let t=new CustomEvent(U_,W_);c.addEventListener(U_,d),c.dispatchEvent(t),t.defaultPrevented||nv(e??document.body,{select:!0}),c.removeEventListener(U_,d),rv.remove(g)},0)}}},[c,u,d,g]);let _=Q.useCallback(e=>{if(!n&&!r||g.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Z_(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&nv(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&nv(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,$.jsx)(Pg.div,{tabIndex:-1,...s,ref:p,onKeyDown:_})},`FocusScope`)),K_=Q.createContext(null);function q_({registry:e,children:t}){return e?(0,$.jsx)(K_.Provider,{value:e,children:t}):t}V_(q_,`FocusScopeBranchProvider`);function J_(){let[e,t]=Q.useState([]);return{nodes:e,registry:Q.useMemo(()=>({add:V_(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:V_(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}V_(J_,`useFocusScopeBranchRegistry`);function Y_(e){let t=Q.useContext(K_);Q.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}V_(Y_,`useFocusScopeBranch`);function X_(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(nv(r,{select:t}),document.activeElement!==n)return}V_(X_,`focusFirst`);function Z_(e){let t=Q_(e);return[$_(t,e),$_(t.reverse(),e)]}V_(Z_,`getTabbableEdges`);function Q_(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:V_(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}V_(Q_,`getTabbableCandidates`);function $_(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):ev(r,{upTo:t})))return r}V_($_,`findVisible`);function ev(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}V_(ev,`isHidden`);function tv(e){return e instanceof HTMLInputElement&&`select`in e}V_(tv,`isSelectableInput`);function nv(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&tv(e)&&t&&e.select()}}V_(nv,`focus`);var rv=iv();function iv(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=av(e,t),e.unshift(t)},remove(t){e=av(e,t),e[0]?.resume()}}}V_(iv,`createFocusScopesStack`);function av(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}V_(av,`arrayRemove`);function ov(e){return e.filter(e=>e.tagName!==`A`)}V_(ov,`removeLinks`);var sv=Object.defineProperty,cv=Q.forwardRef(((e,t)=>sv(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=Q.useState(!1);Yg(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?dm.createPortal((0,$.jsx)(Pg.div,{...r,ref:t}),o):null},`Portal`)),lv=Object.defineProperty,uv=(e,t)=>lv(e,`name`,{value:t,configurable:!0}),dv=0,fv=null;function pv(e){return mv(),e.children}uv(pv,`FocusGuards`);function mv(){Q.useEffect(()=>{fv||={start:hv(),end:hv()};let{start:e,end:t}=fv;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),dv++,()=>{dv===1&&(fv?.start.remove(),fv?.end.remove(),fv=null),dv=Math.max(0,dv-1)}},[])}uv(mv,`useFocusGuards`);function hv(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}uv(hv,`createFocusGuard`);var gv=function(){return gv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},gv.apply(this,arguments)};function _v(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function vv(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var yv=`right-scroll-bar-position`,bv=`width-before-scroll-bar`,xv=`with-scroll-bars-hidden`,Sv=`--removed-body-scroll-bar-size`;function Cv(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function wv(e,t){var n=(0,Q.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Tv=typeof window<`u`?Q.useLayoutEffect:Q.useEffect,Ev=new WeakMap;function Dv(e,t){var n=wv(t||null,function(t){return e.forEach(function(e){return Cv(e,t)})});return Tv(function(){var t=Ev.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Cv(e,null)}),i.forEach(function(e){r.has(e)||Cv(e,a)})}Ev.set(n,e)},[e]),n}function Ov(e){return e}function kv(e,t){t===void 0&&(t=Ov);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Av(e){e===void 0&&(e={});var t=kv(null);return t.options=gv({async:!0,ssr:!1},e),t}var jv=function(e){var t=e.sideCar,n=_v(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return Q.createElement(r,gv({},n))};jv.isSideCarExport=!0;function Mv(e,t){return e.useMedium(t),jv}var Nv=Av(),Pv=function(){},Fv=Q.forwardRef(function(e,t){var n=Q.useRef(null),r=Q.useState({onScrollCapture:Pv,onWheelCapture:Pv,onTouchMoveCapture:Pv}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=_v(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=Dv([n,t]),C=gv(gv({},b),i);return Q.createElement(Q.Fragment,null,u&&Q.createElement(x,{sideCar:Nv,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?Q.cloneElement(Q.Children.only(s),gv(gv({},C),{ref:S})):Q.createElement(v,gv({},C,{className:c,ref:S}),s))});Fv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Fv.classNames={fullWidth:bv,zeroRight:yv};var Iv=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Lv(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Iv();return t&&e.setAttribute(`nonce`,t),e}function Rv(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function zv(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Bv=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Lv())&&(Rv(t,n),zv(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Vv=function(){var e=Bv();return function(t,n){Q.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Hv=function(){var e=Vv();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Uv={left:0,top:0,right:0,gap:0},Wv=function(e){return parseInt(e||``,10)||0},Gv=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Wv(n),Wv(r),Wv(i)]},Kv=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Uv;var t=Gv(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},qv=Hv(),Jv=`data-scroll-locked`,Yv=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
57
|
-
.${xv} {
|
|
58
|
-
overflow: hidden ${r};
|
|
59
|
-
padding-right: ${s}px ${r};
|
|
60
|
-
}
|
|
61
|
-
body[${Jv}] {
|
|
62
|
-
overflow: hidden ${r};
|
|
63
|
-
overscroll-behavior: contain;
|
|
64
|
-
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
65
|
-
padding-left: ${i}px;
|
|
66
|
-
padding-top: ${a}px;
|
|
67
|
-
padding-right: ${o}px;
|
|
68
|
-
margin-left:0;
|
|
69
|
-
margin-top:0;
|
|
70
|
-
margin-right: ${s}px ${r};
|
|
71
|
-
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.${yv} {
|
|
75
|
-
right: ${s}px ${r};
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.${bv} {
|
|
79
|
-
margin-right: ${s}px ${r};
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.${yv} .${yv} {
|
|
83
|
-
right: 0 ${r};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.${bv} .${bv} {
|
|
87
|
-
margin-right: 0 ${r};
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
body[${Jv}] {
|
|
91
|
-
${Sv}: ${s}px;
|
|
92
|
-
}
|
|
93
|
-
`},Xv=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Zv=function(){Q.useEffect(function(){return document.body.setAttribute(Jv,(Xv()+1).toString()),function(){var e=Xv()-1;e<=0?document.body.removeAttribute(Jv):document.body.setAttribute(Jv,e.toString())}},[])},Qv=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Zv();var a=Q.useMemo(function(){return Kv(i)},[i]);return Q.createElement(qv,{styles:Yv(a,!t,i,n?``:`!important`)})},$v=!1;if(typeof window<`u`)try{var ey=Object.defineProperty({},"passive",{get:function(){return $v=!0,!0}});window.addEventListener(`test`,ey,ey),window.removeEventListener(`test`,ey,ey)}catch{$v=!1}var ty=$v?{passive:!1}:!1,ny=function(e){return e.tagName===`TEXTAREA`},ry=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!ny(e)&&n[t]===`visible`)},iy=function(e){return ry(e,`overflowY`)},ay=function(e){return ry(e,`overflowX`)},oy=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),ly(e,r)){var i=uy(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},sy=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},cy=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},ly=function(e,t){return e===`v`?iy(t):ay(t)},uy=function(e,t){return e===`v`?sy(t):cy(t)},dy=function(e,t){return e===`h`&&t===`rtl`?-1:1},fy=function(e,t,n,r,i){var a=dy(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=uy(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&ly(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},py=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},my=function(e){return[e.deltaX,e.deltaY]},hy=function(e){return e&&`current`in e?e.current:e},gy=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_y=function(e){return`
|
|
94
|
-
.block-interactivity-${e} {pointer-events: none;}
|
|
95
|
-
.allow-interactivity-${e} {pointer-events: all;}
|
|
96
|
-
`},vy=0,yy=[];function by(e){var t=Q.useRef([]),n=Q.useRef([0,0]),r=Q.useRef(),i=Q.useState(vy++)[0],a=Q.useState(Hv)[0],o=Q.useRef(e);Q.useEffect(function(){o.current=e},[e]),Q.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=vv([e.lockRef.current],(e.shards||[]).map(hy),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=Q.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=py(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=oy(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=oy(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return fy(h,t,e,h===`h`?s:c,!0)},[]),c=Q.useCallback(function(e){var n=e;if(yy.length&&yy[yy.length-1]===a){var r=`deltaY`in n?my(n):py(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&gy(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(hy).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=Q.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:xy(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=Q.useCallback(function(e){n.current=py(e),r.current=void 0},[]),d=Q.useCallback(function(t){l(t.type,my(t),t.target,s(t,e.lockRef.current))},[]),f=Q.useCallback(function(t){l(t.type,py(t),t.target,s(t,e.lockRef.current))},[]);Q.useEffect(function(){return yy.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,ty),document.addEventListener(`touchmove`,c,ty),document.addEventListener(`touchstart`,u,ty),function(){yy=yy.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,ty),document.removeEventListener(`touchmove`,c,ty),document.removeEventListener(`touchstart`,u,ty)}},[]);var p=e.removeScrollBar,m=e.inert;return Q.createElement(Q.Fragment,null,m?Q.createElement(a,{styles:_y(i)}):null,p?Q.createElement(Qv,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function xy(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Sy=Mv(Nv,by),Cy=Q.forwardRef(function(e,t){return Q.createElement(Fv,gv({},e,{ref:t,sideCar:Sy}))});Cy.classNames=Fv.classNames;var wy=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Ty=new WeakMap,Ey=new WeakMap,Dy={},Oy=0,ky=function(e){return e&&(e.host||ky(e.parentNode))},Ay=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=ky(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},jy=function(e,t,n,r){var i=Ay(t,Array.isArray(e)?e:[e]);Dy[n]||(Dy[n]=new WeakMap);var a=Dy[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Ty.get(e)||0)+1,l=(a.get(e)||0)+1;Ty.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ey.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Oy++,function(){o.forEach(function(e){var t=Ty.get(e)-1,i=a.get(e)-1;Ty.set(e,t),a.set(e,i),t||(Ey.has(e)||e.removeAttribute(r),Ey.delete(e)),i||e.removeAttribute(n)}),Oy--,Oy||(Ty=new WeakMap,Ty=new WeakMap,Ey=new WeakMap,Dy={})}},My=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||wy(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),jy(r,i,n,`aria-hidden`)):function(){return null}},Ny=Object.defineProperty,Py=(e,t)=>Ny(e,`name`,{value:t,configurable:!0}),Fy=`Dialog`,[Iy,Ly]=zg(Fy),[Ry,zy]=Iy(Fy),By=Py(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=Q.useRef(null),c=Q.useRef(null),{nodes:l,registry:u}=J_(),[d,f]=i_({prop:r,defaultProp:i??!1,onChange:a,caller:Fy}),[p,m]=Q.useState(0),[h,g]=Q.useState(0);return(0,$.jsx)(Ry,{scope:t,triggerRef:s,contentRef:c,contentId:S_(),titleId:S_(),descriptionId:S_(),titlePresent:p>0,descriptionPresent:h>0,setTitleCount:m,setDescriptionCount:g,open:d,onOpenChange:f,onOpenToggle:Q.useCallback(()=>f(e=>!e),[f]),modal:o,branchNodes:l,branchRegistry:u,children:n})},`Dialog`),Vy=`DialogPortal`,[Hy,Uy]=Iy(Vy,{forceMount:void 0}),Wy=Py(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=zy(Vy,t);return(0,$.jsx)(Hy,{scope:t,forceMount:n,children:Q.Children.map(r,e=>(0,$.jsx)(f_,{present:n||a.open,children:(0,$.jsx)(cv,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),Gy=`DialogOverlay`,Ky=Q.forwardRef(Py(function(e,t){let n=Uy(Gy,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=zy(Gy,e.__scopeDialog);return a.modal?(0,$.jsx)(f_,{present:r||a.open,children:(0,$.jsx)(Jy,{...i,ref:t})}):null},`DialogOverlay`)),qy=_g(`DialogOverlay.RemoveScroll`),Jy=Q.forwardRef(Py(function(e,t){let{__scopeDialog:n,...r}=e,i=zy(Gy,n),a=mg(t,P_());return(0,$.jsx)(Cy,{as:qy,allowPinchZoom:!0,shards:Q.useMemo(()=>[i.contentRef,...i.branchNodes.map(e=>({current:e}))],[i.contentRef,i.branchNodes]),children:(0,$.jsx)(Pg.div,{"data-state":ib(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),Yy=`DialogContent`,Xy=Q.forwardRef(Py(function(e,t){let n=Uy(Yy,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=zy(Yy,e.__scopeDialog);return(0,$.jsx)(f_,{present:r||a.open,children:a.modal?(0,$.jsx)(Zy,{...i,ref:t}):(0,$.jsx)(Qy,{...i,ref:t})})},`DialogContent`)),Zy=Q.forwardRef(Py(function(e,t){let n=zy(Yy,e.__scopeDialog),r=Q.useRef(null),i=mg(t,n.contentRef,r);return Q.useEffect(()=>{let e=r.current;if(e)return My(e)},[]),(0,$.jsx)($y,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:Wg(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Wg(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:Wg(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),Qy=Q.forwardRef(Py(function(e,t){let n=zy(Yy,e.__scopeDialog),r=Q.useRef(!1),i=Q.useRef(!1);return(0,$.jsx)($y,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),$y=Q.forwardRef(Py(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":o,children:s,...c}=e,l=zy(Yy,n);return mv(),(0,$.jsx)(q_,{registry:l.branchRegistry,children:(0,$.jsx)(G_,{asChild:!0,loop:!0,trapped:r,branches:l.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,$.jsx)(N_,{role:`dialog`,id:l.contentId,"aria-labelledby":l.titlePresent?l.titleId:void 0,"aria-describedby":l.descriptionPresent?rb(o,l.descriptionId):o,"data-state":ib(l.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1),children:s})})})},`DialogContentImpl`)),eb=Q.forwardRef(Py(function(e,t){let{__scopeDialog:n,...r}=e,i=zy(`DialogTitle`,n),{setTitleCount:a}=i;return Yg(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,$.jsx)(Pg.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),tb=`DialogClose`,nb=Q.forwardRef(Py(function(e,t){let{__scopeDialog:n,...r}=e,i=zy(tb,n);return(0,$.jsx)(Pg.button,{type:`button`,...r,ref:t,onClick:Wg(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function rb(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Py(rb,`concatAriaDescribedby`);function ib(e){return e?`open`:`closed`}Py(ib,`getState`);var ab=Object.defineProperty,ob=(e,t)=>ab(e,`name`,{value:t,configurable:!0});function sb(e){let[t,n]=Q.useState(void 0);return Yg(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let i=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if(`borderBoxSize`in i){let e=i.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}ob(sb,`useSize`);var cb=[`top`,`right`,`bottom`,`left`],lb=Math.min,ub=Math.max,db=Math.round,fb=Math.floor,pb=e=>({x:e,y:e}),mb={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function hb(e,t,n){return ub(e,lb(t,n))}function gb(e,t){return typeof e==`function`?e(t):e}function _b(e){return e.split(`-`)[0]}function vb(e){return e.split(`-`)[1]}function yb(e){return e===`x`?`y`:`x`}function bb(e){return e===`y`?`height`:`width`}function xb(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Sb(e){return yb(xb(e))}function Cb(e,t,n){n===void 0&&(n=!1);let r=vb(e),i=Sb(e),a=bb(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Mb(o)),[o,Mb(o)]}function wb(e){let t=Mb(e);return[Tb(e),t,Tb(t)]}function Tb(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Eb=[`left`,`right`],Db=[`right`,`left`],Ob=[`top`,`bottom`],kb=[`bottom`,`top`];function Ab(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Db:Eb:t?Eb:Db;case`left`:case`right`:return t?Ob:kb;default:return[]}}function jb(e,t,n,r){let i=vb(e),a=Ab(_b(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Tb)))),a}function Mb(e){let t=_b(e);return mb[t]+e.slice(t.length)}function Nb(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Pb(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Nb(e)}function Fb(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ib(e,t,n){let{reference:r,floating:i}=e,a=xb(t),o=Sb(t),s=bb(o),c=_b(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=vb(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Lb(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=gb(t,e),p=Pb(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Fb(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Fb(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Rb=50,zb=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Lb},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ib(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Rb&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Ib(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Bb=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=gb(e,t)||{};if(l==null)return{};let d=Pb(u),f={x:n,y:r},p=Sb(i),m=bb(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=lb(d[_],T),D=lb(d[v],T),ee=C-h[m]-D,O=C/2-h[m]/2+w,te=hb(E,O,ee),ne=!c.arrow&&vb(i)!=null&&O!==te&&a.reference[m]/2-(O<E?E:D)-h[m]/2<0,k=ne?O<E?O-E:O-ee:0;return{[p]:f[p]+k,data:{[p]:te,centerOffset:O-te-k,...ne&&{alignmentOffset:k}},reset:ne}}}),Vb=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=gb(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=_b(r),_=xb(o),v=_b(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Mb(o)]:wb(o)),x=p!==`none`;!d&&x&&b.push(...jb(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Cb(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===xb(t)||T.every(e=>xb(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=xb(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Hb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ub(e){return cb.some(t=>e[t]>=0)}var Wb=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=gb(e,t);switch(i){case`referenceHidden`:{let e=Hb(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ub(e)}}}case`escaped`:{let e=Hb(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ub(e)}}}default:return{}}}}};function Gb(e){let t=lb(...e.map(e=>e.left)),n=lb(...e.map(e=>e.top)),r=ub(...e.map(e=>e.right)),i=ub(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function Kb(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>Fb(Gb(e)))}var qb=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=gb(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=Kb(u),f=Fb(Gb(u)),p=Pb(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(xb(n)===`y`){let e=d[0],t=d[d.length-1],r=_b(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return Fb({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=_b(n)===`left`,t=ub(...d.map(e=>e.right)),r=lb(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return Fb({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},Jb=new Set([`left`,`top`]);async function Yb(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=_b(n),s=vb(n),c=xb(n)===`y`,l=Jb.has(o)?-1:1,u=a&&c?-1:1,d=gb(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Xb=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Yb(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Zb=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=gb(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=xb(i),p=yb(f),m=u[p],h=u[f],g=(e,t)=>hb(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Qb=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=gb(e,t),u={x:n,y:r},d=xb(i),f=yb(d),p=u[f],m=u[d],h=gb(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Jb.has(_b(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},$b=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=gb(e,t),c=await i.detectOverflow(t,s),l=_b(n),u=vb(n),d=xb(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=lb(p-c[m],g),y=lb(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*ub(c.left,c.right):S=p-2*ub(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function ex(){return typeof window<`u`}function tx(e){return ix(e)?(e.nodeName||``).toLowerCase():`#document`}function nx(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rx(e){return((ix(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function ix(e){return ex()?e instanceof Node||e instanceof nx(e).Node:!1}function ax(e){return ex()?e instanceof Element||e instanceof nx(e).Element:!1}function ox(e){return ex()?e instanceof HTMLElement||e instanceof nx(e).HTMLElement:!1}function sx(e){return!ex()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof nx(e).ShadowRoot}function cx(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=yx(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function lx(e){return/^(table|td|th)$/.test(tx(e))}function ux(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var dx=/transform|translate|scale|rotate|perspective|filter/,fx=/paint|layout|strict|content/,px=e=>!!e&&e!==`none`,mx;function hx(e){let t=ax(e)?yx(e):e;return px(t.transform)||px(t.translate)||px(t.scale)||px(t.rotate)||px(t.perspective)||!_x()&&(px(t.backdropFilter)||px(t.filter))||dx.test(t.willChange||``)||fx.test(t.contain||``)}function gx(e){let t=xx(e);for(;ox(t)&&!vx(t);){if(hx(t))return t;if(ux(t))return null;t=xx(t)}return null}function _x(){return mx??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),mx}function vx(e){return/^(html|body|#document)$/.test(tx(e))}function yx(e){return nx(e).getComputedStyle(e)}function bx(e){return ax(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xx(e){if(tx(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||sx(e)&&e.host||rx(e);return sx(t)?t.host:t}function Sx(e){let t=xx(e);return vx(t)?(e.ownerDocument||e).body:ox(t)&&cx(t)?t:Sx(t)}function Cx(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Sx(e),i=r===e.ownerDocument?.body,a=nx(r);if(i){let e=wx(a);return t.concat(a,a.visualViewport||[],cx(r)?r:[],e&&n?Cx(e):[])}return t.concat(r,Cx(r,[],n))}function wx(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tx(e){let t=yx(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ox(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=db(n)!==a||db(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Ex(e){return ax(e)?e:e.contextElement}function Dx(e){let t=Ex(e);if(!ox(t))return pb(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Tx(t),o=(a?db(n.width):n.width)/r,s=(a?db(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var Ox=pb(0);function kx(e){let t=nx(e);return!_x()||!t.visualViewport?Ox:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ax(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===nx(e)}function jx(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ex(e),o=pb(1);t&&(r?ax(r)&&(o=Dx(r)):o=Dx(e));let s=Ax(a,n,r)?kx(a):pb(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=nx(a),t=ax(r)?nx(r):r,n=e,i=wx(n);for(;i&&t!==n;){let e=Dx(i),t=i.getBoundingClientRect(),r=yx(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=nx(i),i=wx(n)}}return Fb({width:u,height:d,x:c,y:l})}function Mx(e,t){let n=bx(e).scrollLeft;return t?t.left+n:jx(rx(e)).left+n}function Nx(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Mx(e,n),y:n.top+t.scrollTop}}function Px(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=rx(r),s=t?ux(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=pb(1),u=pb(0),d=ox(r);if((d||!a)&&((tx(r)!==`body`||cx(o))&&(c=bx(r)),d)){let e=jx(r);l=Dx(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Nx(o,c):pb(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Fx(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Ix(e){let t=bx(e),n=e.ownerDocument.body,r=ub(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=ub(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Mx(e),o=-t.scrollTop;return yx(n).direction===`rtl`&&(a+=ub(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Lx=25;function Rx(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=nx(e),a=rx(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!_x()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Mx(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Lx&&(s-=o)}return{width:s,height:c,x:l,y:u}}function zx(e,t){let n=jx(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Dx(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Bx(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Rx(e,n,t);else if(t===`document`)r=Ix(rx(e));else if(ax(t))r=zx(t,n);else{let n=kx(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Fb(r)}function Vx(e,t){let n=t.get(e);if(n)return n;let r=Cx(e,[],!1).filter(e=>ax(e)&&tx(e)!==`body`),i=null,a=yx(e).position===`fixed`,o=a?xx(e):e;for(;ax(o)&&!vx(o);){let e=yx(o),t=hx(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=xx(o)}return t.set(e,r),r}function Hx(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ux(t)?[]:Vx(t,this._c):[].concat(n),r],o=Bx(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Bx(t,a[e],i);s=ub(n.top,s),c=lb(n.right,c),l=lb(n.bottom,l),u=ub(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ux(e){let{width:t,height:n}=Tx(e);return{width:t,height:n}}function Wx(e,t,n){let r=ox(t),i=rx(t),a=n===`fixed`,o=jx(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=pb(0);if((r||!a)&&((tx(t)!==`body`||cx(i))&&(s=bx(t)),r)){let e=jx(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Mx(i));let l=i&&!r&&!a?Nx(i,s):pb(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Gx(e){return yx(e).position===`static`}function Kx(e,t){if(!ox(e)||yx(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return rx(e)===n&&(n=n.ownerDocument.body),n}function qx(e,t){let n=nx(e);if(ux(e))return n;if(!ox(e)){let t=xx(e);for(;t&&!vx(t);){if(ax(t)&&!Gx(t))return t;t=xx(t)}return n}let r=Kx(e,t);for(;r&&lx(r)&&Gx(r);)r=Kx(r,t);return r&&vx(r)&&Gx(r)&&!hx(r)?n:r||gx(e)||n}var Jx=async function(e){let t=this.getOffsetParent||qx,n=this.getDimensions,r=await n(e.floating);return{reference:Wx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Yx(e){return yx(e).direction===`rtl`}var Xx={convertOffsetParentRelativeRectToViewportRelativeRect:Px,getDocumentElement:rx,getClippingRect:Hx,getOffsetParent:qx,getElementRects:Jx,getClientRects:Fx,getDimensions:Ux,getScale:Dx,isElement:ax,isRTL:Yx};function Zx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Qx(e,t,n){let r=null,i,a=rx(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=fb(d),h=fb(a.clientWidth-(u+f)),g=fb(a.clientHeight-(d+p)),_=fb(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:ub(0,lb(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Zx(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=nx(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function $x(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Ex(e),u=i||a?[...l?Cx(l):[],...t?Cx(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Qx(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?jx(e):null;c&&g();function g(){let t=jx(e);h&&!Zx(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var eS=Xb,tS=Zb,nS=Vb,rS=$b,iS=Wb,aS=Bb,oS=qb,sS=Qb,cS=(e,t,n)=>{let r=new Map,i=n??{},a={...Xx,...i.platform,_c:r};return zb(e,t,{...i,platform:a})},lS=typeof document<`u`?Q.useLayoutEffect:function(){};function uS(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!uS(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!uS(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function dS(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fS(e,t){let n=dS(e);return Math.round(t*n)/n}function pS(e){let t=Q.useRef(e);return lS(()=>{t.current=e}),t}function mS(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=Q.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=Q.useState(r);uS(f,r)||p(r);let[m,h]=Q.useState(null),[g,_]=Q.useState(null),v=Q.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=Q.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=Q.useRef(null),C=Q.useRef(null),w=Q.useRef(u),T=c!=null,E=pS(c),D=pS(i),ee=pS(l),O=Q.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),cS(S.current,C.current,e).then(e=>{let t={...e,isPositioned:ee.current!==!1};te.current&&!uS(w.current,t)&&(w.current=t,dm.flushSync(()=>{d(t)}))})},[f,t,n,D,ee]);lS(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let te=Q.useRef(!1);lS(()=>(te.current=!0,()=>{te.current=!1}),[]),lS(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,O);O()}},[b,x,O,E,T]);let ne=Q.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),k=Q.useMemo(()=>({reference:b,floating:x}),[b,x]),re=Q.useMemo(()=>{let e={position:n,left:0,top:0};if(!k.floating)return e;let t=fS(k.floating,u.x),r=fS(k.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...dS(k.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,k.floating,u.x,u.y]);return Q.useMemo(()=>({...u,update:O,refs:ne,elements:k,floatingStyles:re}),[u,O,ne,k,re])}var hS=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:aS({element:r.current,padding:i}).fn(n):r?aS({element:r,padding:i}).fn(n):{}}}},gS=(e,t)=>{let n=eS(e);return{name:n.name,fn:n.fn,options:[e,t]}},_S=(e,t)=>{let n=tS(e);return{name:n.name,fn:n.fn,options:[e,t]}},vS=(e,t)=>({fn:sS(e).fn,options:[e,t]}),yS=(e,t)=>{let n=nS(e);return{name:n.name,fn:n.fn,options:[e,t]}},bS=(e,t)=>{let n=rS(e);return{name:n.name,fn:n.fn,options:[e,t]}},xS=(e,t)=>{let n=iS(e);return{name:n.name,fn:n.fn,options:[e,t]}},SS=(e,t)=>{let n=oS(e);return{name:n.name,fn:n.fn,options:[e,t]}},CS=(e,t)=>{let n=hS(e);return{name:n.name,fn:n.fn,options:[e,t]}},wS=Object.defineProperty,TS=Q.forwardRef(((e,t)=>wS(e,`name`,{value:t,configurable:!0}))(function(e,t){let{children:n,width:r=10,height:i=5,...a}=e;return(0,$.jsx)(Pg.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,$.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})},`Arrow`)),ES=Object.defineProperty,DS=(e,t)=>ES(e,`name`,{value:t,configurable:!0}),OS={Partial:`partial`,Always:`always`},kS={Optimized:`optimized`,Always:`always`},AS=`Popper`,[jS,MS]=zg(AS),[NS,PS]=jS(AS),FS=DS(e=>{let{__scopePopper:t,children:n}=e,[r,i]=Q.useState(null),[a,o]=Q.useState(void 0);return(0,$.jsx)(NS,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),IS=`PopperAnchor`,LS=Q.forwardRef(DS(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=PS(IS,n),o=Q.useRef(null),s=a.onAnchorChange,c=mg(t,Q.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=Q.useRef(null);Q.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&qS(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,$.jsx)(Pg.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),RS=`PopperContent`,[zS,BS]=jS(RS),VS=Q.forwardRef(DS(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=OS.Partial,hideWhenDetached:f=!1,updatePositionStrategy:p=kS.Optimized,onPlaced:m,...h}=e,g=PS(RS,n),[_,v]=Q.useState(null),y=mg(t,v),[b,x]=Q.useState(null),S=sb(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(l)?l:[l],ee=D.length>0,O={padding:E,boundary:D.filter(GS),altBoundary:ee},{refs:te,floatingStyles:ne,placement:k,isPositioned:re,middlewareData:ie}=mS({strategy:`fixed`,placement:T,whileElementsMounted:DS((...e)=>$x(...e,{animationFrame:p===kS.Always}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[gS({mainAxis:i+w,alignmentAxis:o}),c&&_S({mainAxis:!0,crossAxis:!1,limiter:d===OS.Partial?vS():void 0,...O}),c&&yS({...O}),bS({...O,apply:DS(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),b&&CS({element:b,padding:s}),KS({arrowWidth:C,arrowHeight:w}),f&&xS({strategy:`referenceHidden`,...O,boundary:ee?O.boundary:void 0})]}),A=g.setPlacementState;Yg(()=>(A(k),()=>{A(void 0)}),[k,A]);let[j,M]=qS(k),N=T_(m);Yg(()=>{re&&N?.()},[re,N]);let ae=ie.arrow?.x,oe=ie.arrow?.y,se=ie.arrow?.centerOffset!==0,[ce,le]=Q.useState();return Yg(()=>{_&&le(window.getComputedStyle(_).zIndex)},[_]),(0,$.jsx)(`div`,{ref:te.setFloating,"data-radix-popper-content-wrapper":``,style:{...ne,transform:re?ne.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ce,"--radix-popper-transform-origin":[ie.transformOrigin?.x,ie.transformOrigin?.y].join(` `),...ie.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,$.jsx)(zS,{scope:n,placedSide:j,placedAlign:M,onArrowChange:x,arrowX:ae,arrowY:oe,shouldHideArrow:se,children:(0,$.jsx)(Pg.div,{"data-side":j,"data-align":M,...h,ref:y,style:{...h.style,animation:re?h.style?.animation:`none`}})})})},`PopperContent`)),HS=`PopperArrow`,US={top:`bottom`,right:`left`,bottom:`top`,left:`right`},WS=Q.forwardRef(DS(function(e,t){let{__scopePopper:n,...r}=e,i=BS(HS,n),a=US[i.placedSide];return(0,$.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,$.jsx)(TS,{...r,ref:t,style:{...r.style,display:`block`}})})},`PopperArrow`));function GS(e){return e!==null}DS(GS,`isNotNull`);var KS=DS(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=qS(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function qS(e){let[t,n=`center`]=e.split(`-`);return[t,n]}DS(qS,`getSideAndAlignFromPlacement`);var JS=lg(`inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap select-none transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,xs:`h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`,"icon-xs":`size-6 rounded-md [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function YS({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){let a=r?vg:`button`;return(0,$.jsx)(a,{"data-slot":`button`,"data-variant":t,"data-size":n,className:ig(JS({variant:t,size:n,className:e})),...i})}var XS=(0,Q.createContext)(null);function ZS(e){return(0,$.jsx)(XS.Provider,{value:e.host,children:e.children})}function QS(){let e=(0,Q.useContext)(XS);if(!e)throw Error(`An editor runs inside a HostProvider.`);return e}function $S(e,t){let n=QS(),r=(0,Q.useEffectEvent)(t);(0,Q.useEffect)(()=>n.on(e,e=>{r(e)}),[n,e])}function eC(e){let t=QS(),n=(0,Q.useRef)(e);(0,Q.useEffect)(()=>{n.current=e});let r={anchorAt:e.anchorAt!==void 0,placement:e.placement!==void 0,onMoved:e.onMoved!==void 0,where:e.where!==void 0,pictures:e.pictures!==void 0,locate:e.locate!==void 0,show:e.show!==void 0,release:e.release!==void 0},i=JSON.stringify(r);(0,Q.useEffect)(()=>{let e={hold:()=>n.current.hold()};return r.anchorAt&&(e.anchorAt=e=>n.current.anchorAt?.(e)),r.placement&&(e.placement=e=>n.current.placement?.(e)),r.onMoved&&(e.onMoved=e=>n.current.onMoved?.(e)??(()=>void 0)),r.where&&(e.where=e=>n.current.where?.(e)),r.pictures&&(e.pictures=()=>n.current.pictures?.()??Promise.resolve([])),r.locate&&(e.locate=e=>n.current.locate?.(e)??Promise.resolve([])),r.show&&(e.show=(e,t)=>n.current.show?.(e,t)??Promise.resolve(!1)),r.release&&(e.release=()=>{n.current.release?.()}),t.notes?.(e)},[t,i])}function tC(){let e=QS(),[t,n]=(0,Q.useState)();return(0,Q.useEffect)(()=>{let t=!0;e[`host/context`]({}).then(e=>{t&&n(e)},()=>void 0);let r=e.on(`host/context-changed`,e=>{n(e)});return()=>{t=!1,r()}},[e]),t}function nC(){let e=QS(),t=tC(),n=t?.readOnly===!0,r=t?.viewer===!0,i=(0,Q.useRef)(0);return{readOnly:n,ask:()=>{!n||r||Date.now()-i.current<1e3||(i.current=Date.now(),e[`edit/request`]({}).catch(()=>void 0))}}}function rC(){return tC()?.viewer===!0}function iC(){try{return mm(sessionStorage)}catch{return}}function aC(e){let[t,n]=(0,Q.useState)(iC);return(0,Q.useEffect)(()=>{if(t!==void 0||e===void 0)return;let r=!0;return vm(e).then(e=>{r&&n(e)}),()=>{r=!1}},[t,e]),t}var oC=(0,Q.createContext)([]);function sC(e){return(0,$.jsx)(oC.Provider,{value:e.renderers,children:e.children})}var cC=(e,t)=>{let n=t.split(`;`)[0]?.trim().toLowerCase()??``;return e.endsWith(`/*`)?n.startsWith(e.slice(0,-1)):n===e};function lC(e){let t=(0,Q.useContext)(oC);if(e!==void 0)return(t.find(t=>t.types.some(t=>!t.endsWith(`/*`)&&cC(t,e)))??t.find(t=>t.types.some(t=>cC(t,e))))?.renderer}function uC(){let e=QS(),[t,n]=(0,Q.useState)([]);return(0,Q.useEffect)(()=>{let t=!0,r=!1,i=e.on(`presence/changed`,e=>{r=!0,n(e.collaborators)});return e[`presence/get`]({}).then(e=>{t&&!r&&n(e.collaborators)},()=>void 0),()=>{t=!1,i()}},[e]),t}function dC(){let e=tC(),t=uC(),n=e?.item.id;if(n!==void 0&&e?.viewer!==!0)return t.find(e=>e.kind===`agent`&&e.item===n)}var fC=`data-follow-keep`,pC=class{on=!0;present=!1;listeners=new Set;unhear;get=()=>this.on;subscribe=e=>(this.listeners.add(e),this.listeners.size===1&&this.hear(),()=>{this.listeners.delete(e),this.listeners.size===0&&(this.unhear?.(),this.unhear=void 0)});set(e){if(this.on!==e){this.on=e;for(let e of this.listeners)e()}}agent(e){e&&!this.present&&this.set(!0),this.present=e}hear(){if(typeof document>`u`)return;let e=e=>{if(!e.isTrusted)return;let t=e.target;t instanceof Element&&t.closest(`[data-follow-keep]`)||this.set(!1)},t=[`pointerdown`,`click`,`keydown`,`wheel`];for(let n of t)document.addEventListener(n,e,{capture:!0,passive:!0});this.unhear=()=>{for(let n of t)document.removeEventListener(n,e,{capture:!0})}}},mC=new WeakMap;function hC(){let e=QS(),t=mC.get(e);t||(t=new pC,mC.set(e,t));let n=t,r=dC(),i=r?.doing!==void 0;return(0,Q.useEffect)(()=>{n.agent(i)},[n,i]),{agent:r,following:(0,Q.useSyncExternalStore)(n.subscribe,n.get,n.get),follow:()=>{n.set(!0)},unfollow:()=>{n.set(!1)}}}export{nb as $,ds as $n,gp as $t,yx as A,Ed as An,Em as At,sx as B,cs as Bn,Zp as Bt,vS as C,Lu as Cn,bg as Ct,mS as D,md as Dn,ig as Dt,bS as E,Fd as En,og as Et,ax as F,wd as Fn,Qp as Ft,Sb as G,os as Gn,Rp as Gt,hb as H,ws as Hn,nm as Ht,ox as I,gd as In,cm as It,_b as J,hs as Jn,kp as Jt,bb as K,ss as Kn,Vp as Kt,vx as L,id as Ln,Jp as Lt,Cx as M,El as Mn,Cm as Mt,xx as N,q as Nn,Tm as Nt,$x as O,W as On,Dm as Ot,nx as P,H as Pn,lm as Pt,By as Q,ms as Qn,Op as Qt,ix as R,Gl as Rn,tm as Rt,SS as S,bd as Sn,_g as St,_S as T,_f as Tn,lg as Tt,gb as U,bs as Un,em as Ut,_x as V,ls as Vn,$p as Vt,vb as W,Ss as Wn,im as Wt,Fb as X,ys as Xn,Tp as Xt,xb as Y,ks as Yn,wp as Yt,sb as Z,gs as Zn,Ep as Zt,WS as _,Y as _n,ne as _r,Yg as _t,hC as a,rp as an,Os as ar,Cy as at,yS as b,Uu as bn,Pg as bt,$S as c,Wf as cn,_s as cr,G_ as ct,nC as d,Hf as dn,Ns as dr,J_ as dt,Dp as en,ps as er,Xy as et,aC as f,Uf as fn,Ps as fr,N_ as ft,LS as g,Pf as gn,v as gr,i_ as gt,FS as h,Ff as hn,co as hr,f_ as ht,dC as i,tp as in,us as ir,My as it,tx as j,J as jn,wm as jt,Xx as k,K as kn,bm as kt,eC as l,Z as ln,Fs as lr,q_ as lt,YS as m,Vf as mn,Cs as mr,S_ as mt,ZS as n,$f as nn,js as nr,Wy as nt,QS as o,Jf as on,Ds as or,mv as ot,rC as p,X as pn,Ms as pr,T_ as pt,Pb as q,vs as qn,zp as qt,sC as r,ip as rn,As as rr,eb as rt,tC as s,Yf as sn,xs as sr,cv as st,fC as t,mp as tn,fs as tr,Ky as tt,lC as u,Bf as un,Ts as ur,Y_ as ut,VS as v,ed as vn,s as vr,Wg as vt,gS as w,Mf as wn,mg as wt,xS as x,wf as xn,Fg as xt,MS as y,G as yn,zg as yt,cx as z,Es as zn,um as zt};
|