allyhub 0.2.0-next.1 → 0.2.0-next.2
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/client.d.ts +13 -0
- package/dist/commands/add.js +5 -5
- package/dist/lent/model.d.ts +2 -0
- package/dist/lent/scenery-host-layer.d.ts +2 -0
- package/editor-app/view.html +4 -4
- package/editor-web/assets/chevron-left-BWWKfQPt.js +1 -0
- package/editor-web/assets/{chevron-up-lWCKw7jZ.js → chevron-up-DdzgESXy.js} +1 -1
- package/editor-web/assets/{dist-CmlFikE4.js → dist-CiIDdJZw.js} +1 -1
- package/editor-web/assets/{dist-Cf-s-WVX.js → dist-DlzWTZjN.js} +4 -4
- package/editor-web/assets/dist-DqFDRJ1S.js +8 -0
- package/editor-web/assets/{dist-BcITcjpx.js → dist-ZLZyLIPV.js} +4 -4
- package/editor-web/assets/{floating-ui.react-dom-CItxQagi.js → floating-ui.react-dom-BrYYB6DH.js} +1 -1
- package/editor-web/assets/index-DRbemuuR.css +2 -0
- package/editor-web/assets/index-DYkuF7LX.js +56 -0
- package/editor-web/assets/react-DIqYlXoe.js +61 -0
- package/editor-web/assets/{undo-2-C7Qog5D_.js → undo-2-oaEQLQ47.js} +1 -1
- package/editor-web/index.html +4 -4
- package/node_modules/@allyhub-next/audio/dist/at-cut.d.ts +52 -0
- package/node_modules/@allyhub-next/audio/dist/decode.d.ts +33 -0
- package/node_modules/@allyhub-next/audio/dist/envelope.d.ts +37 -0
- package/node_modules/@allyhub-next/audio/dist/index.d.ts +17 -0
- package/node_modules/@allyhub-next/audio/dist/levels.d.ts +97 -0
- package/node_modules/@allyhub-next/audio/dist/master.d.ts +29 -0
- package/node_modules/@allyhub-next/audio/dist/music.d.ts +11 -0
- package/node_modules/@allyhub-next/audio/dist/node/decode.d.ts +39 -0
- package/node_modules/@allyhub-next/audio/dist/node/ebur128.d.ts +25 -0
- package/node_modules/@allyhub-next/audio/dist/node/ffmpeg.d.ts +31 -0
- package/node_modules/@allyhub-next/audio/dist/node/index.d.ts +8 -0
- package/node_modules/@allyhub-next/audio/dist/node/loudness.d.ts +18 -0
- package/node_modules/@allyhub-next/audio/dist/node/master.d.ts +42 -0
- package/node_modules/@allyhub-next/audio/dist/node/measure.d.ts +60 -0
- package/node_modules/@allyhub-next/audio/dist/node/mix.d.ts +31 -0
- package/node_modules/@allyhub-next/audio/dist/plan.d.ts +143 -0
- package/node_modules/@allyhub-next/audio/dist/recorded.d.ts +26 -0
- package/node_modules/@allyhub-next/audio/dist/recording/bandwidth.d.ts +47 -0
- package/node_modules/@allyhub-next/audio/dist/recording/chain.d.ts +89 -0
- package/node_modules/@allyhub-next/audio/dist/recording/dynamics.d.ts +64 -0
- package/node_modules/@allyhub-next/audio/dist/recording/fft.d.ts +26 -0
- package/node_modules/@allyhub-next/audio/dist/recording/filters.d.ts +42 -0
- package/node_modules/@allyhub-next/audio/dist/recording/fit.d.ts +56 -0
- package/node_modules/@allyhub-next/audio/dist/recording/index.d.ts +10 -0
- package/node_modules/@allyhub-next/audio/dist/recording/loudness.d.ts +12 -0
- package/node_modules/@allyhub-next/audio/dist/recording/measure.d.ts +67 -0
- package/node_modules/@allyhub-next/audio/dist/recording/mic.d.ts +32 -0
- package/node_modules/@allyhub-next/audio/dist/recording/noise.d.ts +27 -0
- package/node_modules/@allyhub-next/audio/dist/recording/presets.d.ts +64 -0
- package/node_modules/@allyhub-next/audio/dist/recording/room.d.ts +78 -0
- package/node_modules/@allyhub-next/audio/dist/recording/setup.d.ts +111 -0
- package/node_modules/@allyhub-next/audio/dist/recording/vec.d.ts +3 -0
- package/node_modules/@allyhub-next/audio/dist/render.d.ts +26 -0
- package/node_modules/@allyhub-next/audio/dist/sfx.d.ts +10 -0
- package/node_modules/@allyhub-next/audio/dist/shape.d.ts +118 -0
- package/node_modules/@allyhub-next/audio/dist/voice.d.ts +45 -0
- package/node_modules/@allyhub-next/audio/package.json +1 -1
- package/node_modules/@allyhub-next/browser/dist/browser.d.ts +24 -0
- package/node_modules/@allyhub-next/browser/dist/capture.d.ts +61 -0
- package/node_modules/@allyhub-next/browser/dist/cdp.d.ts +51 -0
- package/node_modules/@allyhub-next/browser/dist/flags.d.ts +13 -0
- package/node_modules/@allyhub-next/browser/dist/frames.d.ts +35 -0
- package/node_modules/@allyhub-next/browser/dist/html.d.ts +19 -0
- package/node_modules/@allyhub-next/browser/dist/index.d.ts +10 -0
- package/node_modules/@allyhub-next/browser/dist/launch.d.ts +35 -0
- package/node_modules/@allyhub-next/browser/dist/page.d.ts +67 -0
- package/node_modules/@allyhub-next/browser/dist/server.d.ts +26 -0
- package/node_modules/@allyhub-next/browser/package.json +1 -1
- package/node_modules/@allyhub-next/build/dist/code.d.ts +26 -0
- package/node_modules/@allyhub-next/build/dist/content.d.ts +35 -0
- package/node_modules/@allyhub-next/build/dist/data.d.ts +11 -0
- package/node_modules/@allyhub-next/build/dist/files.d.ts +2 -0
- package/node_modules/@allyhub-next/build/dist/fonts.d.ts +26 -0
- package/node_modules/@allyhub-next/build/dist/index.d.ts +20 -0
- package/node_modules/@allyhub-next/build/dist/matrix.d.ts +18 -0
- package/node_modules/@allyhub-next/build/dist/media.d.ts +10 -0
- package/node_modules/@allyhub-next/build/dist/messages.d.ts +48 -0
- package/node_modules/@allyhub-next/build/dist/meta-worker.d.ts +33 -0
- package/node_modules/@allyhub-next/build/dist/meta.d.ts +24 -0
- package/node_modules/@allyhub-next/build/dist/model-info.d.ts +6 -0
- package/node_modules/@allyhub-next/build/dist/move-refs.d.ts +16 -0
- package/node_modules/@allyhub-next/build/dist/places.d.ts +23 -0
- package/node_modules/@allyhub-next/build/dist/plugin.d.ts +31 -0
- package/node_modules/@allyhub-next/build/dist/prepare.d.ts +81 -0
- package/node_modules/@allyhub-next/build/dist/prepare.js +2 -2
- package/node_modules/@allyhub-next/build/dist/scan.d.ts +48 -0
- package/node_modules/@allyhub-next/build/dist/scan.js +1 -1
- package/node_modules/@allyhub-next/build/dist/takes.d.ts +33 -0
- package/node_modules/@allyhub-next/build/dist/types.d.ts +11 -0
- package/node_modules/@allyhub-next/build/dist/vite.d.ts +105 -0
- package/node_modules/@allyhub-next/build/package.json +1 -1
- package/node_modules/@allyhub-next/check/dist/cache.d.ts +46 -0
- package/node_modules/@allyhub-next/check/dist/check.d.ts +142 -0
- package/node_modules/@allyhub-next/check/dist/generated.d.ts +22 -0
- package/node_modules/@allyhub-next/check/dist/index.d.ts +7 -0
- package/node_modules/@allyhub-next/check/dist/plans.d.ts +111 -0
- package/node_modules/@allyhub-next/check/dist/result.d.ts +12 -0
- package/node_modules/@allyhub-next/check/dist/scenery.d.ts +23 -0
- package/node_modules/@allyhub-next/check/package.json +1 -1
- package/node_modules/@allyhub-next/cloud/package.json +1 -1
- package/node_modules/@allyhub-next/components/package.json +1 -1
- package/node_modules/@allyhub-next/dev-server/dist/background.d.ts +50 -0
- package/node_modules/@allyhub-next/dev-server/dist/card.d.ts +26 -0
- package/node_modules/@allyhub-next/dev-server/dist/exports.d.ts +18 -0
- package/node_modules/@allyhub-next/dev-server/dist/index.d.ts +11 -0
- package/node_modules/@allyhub-next/dev-server/dist/live.d.ts +68 -0
- package/node_modules/@allyhub-next/dev-server/dist/mime.d.ts +2 -0
- package/node_modules/@allyhub-next/dev-server/dist/paths.d.ts +27 -0
- package/node_modules/@allyhub-next/dev-server/dist/project.d.ts +150 -0
- package/node_modules/@allyhub-next/dev-server/dist/server.d.ts +47 -0
- package/node_modules/@allyhub-next/dev-server/dist/server.js +2 -2
- package/node_modules/@allyhub-next/dev-server/dist/sound.d.ts +21 -0
- package/node_modules/@allyhub-next/dev-server/dist/stage.d.ts +80 -0
- package/node_modules/@allyhub-next/dev-server/dist/tools.d.ts +22 -0
- package/node_modules/@allyhub-next/dev-server/dist/validate.d.ts +6 -0
- package/node_modules/@allyhub-next/dev-server/dist/watcher.d.ts +47 -0
- package/node_modules/@allyhub-next/dev-server/dist/writer.d.ts +51 -0
- package/node_modules/@allyhub-next/dev-server/package.json +1 -1
- package/node_modules/@allyhub-next/doc/dist/html.d.ts +20 -0
- package/node_modules/@allyhub-next/doc/dist/index.d.ts +8 -0
- package/node_modules/@allyhub-next/doc/dist/markdown.d.ts +6 -0
- package/node_modules/@allyhub-next/doc/dist/model.d.ts +145 -0
- package/node_modules/@allyhub-next/doc/dist/parse.d.ts +10 -0
- package/node_modules/@allyhub-next/doc/dist/patch.d.ts +8 -0
- package/node_modules/@allyhub-next/doc/dist/title.d.ts +23 -0
- package/node_modules/@allyhub-next/doc/dist/write.d.ts +10 -0
- package/node_modules/@allyhub-next/doc/package.json +1 -1
- package/node_modules/@allyhub-next/export/dist/batch.d.ts +70 -0
- package/node_modules/@allyhub-next/export/dist/export.d.ts +107 -0
- package/node_modules/@allyhub-next/export/dist/index.d.ts +4 -0
- package/node_modules/@allyhub-next/export/dist/names.d.ts +31 -0
- package/node_modules/@allyhub-next/export/package.json +1 -1
- package/node_modules/@allyhub-next/formats/dist/data/comments.d.ts +94 -0
- package/node_modules/@allyhub-next/formats/dist/data/config.d.ts +10 -0
- package/node_modules/@allyhub-next/formats/dist/data/edits.d.ts +28 -0
- package/node_modules/@allyhub-next/formats/dist/data/elements.d.ts +6 -0
- package/node_modules/@allyhub-next/formats/dist/data/faces.d.ts +38 -0
- package/node_modules/@allyhub-next/formats/dist/data/file.d.ts +11 -0
- package/node_modules/@allyhub-next/formats/dist/data/gen.d.ts +31 -0
- package/node_modules/@allyhub-next/formats/dist/data/messages.d.ts +34 -0
- package/node_modules/@allyhub-next/formats/dist/data/reference.d.ts +676 -0
- package/node_modules/@allyhub-next/formats/dist/data/script.d.ts +37 -0
- package/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +214 -0
- package/node_modules/@allyhub-next/formats/dist/data/words.d.ts +25 -0
- package/node_modules/@allyhub-next/formats/dist/index.d.ts +16 -0
- package/node_modules/@allyhub-next/formats/dist/items.d.ts +94 -0
- package/node_modules/@allyhub-next/formats/dist/layout.d.ts +54 -0
- package/node_modules/@allyhub-next/formats/dist/layout.js +1 -1
- package/node_modules/@allyhub-next/formats/dist/schemas.d.ts +301 -0
- package/node_modules/@allyhub-next/formats/package.json +1 -1
- package/node_modules/@allyhub-next/measure/dist/compare.d.ts +195 -0
- package/node_modules/@allyhub-next/measure/dist/contrast.d.ts +14 -0
- package/node_modules/@allyhub-next/measure/dist/cut-sheet.d.ts +90 -0
- package/node_modules/@allyhub-next/measure/dist/cuts.d.ts +108 -0
- package/node_modules/@allyhub-next/measure/dist/facts.d.ts +60 -0
- package/node_modules/@allyhub-next/measure/dist/fidelity.d.ts +40 -0
- package/node_modules/@allyhub-next/measure/dist/flat.d.ts +42 -0
- package/node_modules/@allyhub-next/measure/dist/index.d.ts +25 -0
- package/node_modules/@allyhub-next/measure/dist/loop.d.ts +22 -0
- package/node_modules/@allyhub-next/measure/dist/overlay.d.ts +44 -0
- package/node_modules/@allyhub-next/measure/dist/recording-report.d.ts +66 -0
- package/node_modules/@allyhub-next/measure/dist/reference/compare.d.ts +118 -0
- package/node_modules/@allyhub-next/measure/dist/reference/folder.d.ts +77 -0
- package/node_modules/@allyhub-next/measure/dist/reference/interpret.d.ts +39 -0
- package/node_modules/@allyhub-next/measure/dist/reference/piece.d.ts +53 -0
- package/node_modules/@allyhub-next/measure/dist/reference/sections.d.ts +53 -0
- package/node_modules/@allyhub-next/measure/dist/reference/served.d.ts +8 -0
- package/node_modules/@allyhub-next/measure/dist/reference/sets.d.ts +84 -0
- package/node_modules/@allyhub-next/measure/dist/reference/text.d.ts +27 -0
- package/node_modules/@allyhub-next/measure/dist/reference/video.d.ts +53 -0
- package/node_modules/@allyhub-next/measure/dist/seams.d.ts +46 -0
- package/node_modules/@allyhub-next/measure/dist/sound-measures.d.ts +74 -0
- package/node_modules/@allyhub-next/measure/dist/sound-report.d.ts +156 -0
- package/node_modules/@allyhub-next/measure/dist/still.d.ts +58 -0
- package/node_modules/@allyhub-next/measure/dist/version-voice.d.ts +12 -0
- package/node_modules/@allyhub-next/measure/package.json +1 -1
- package/node_modules/@allyhub-next/media/dist/asr/hear.d.ts +41 -0
- package/node_modules/@allyhub-next/media/dist/asr/languages.d.ts +9 -0
- package/node_modules/@allyhub-next/media/dist/asr/parakeet.d.ts +57 -0
- package/node_modules/@allyhub-next/media/dist/asr/protocol.d.ts +20 -0
- package/node_modules/@allyhub-next/media/dist/asr/transcribe.d.ts +36 -0
- package/node_modules/@allyhub-next/media/dist/asr/windows.d.ts +34 -0
- package/node_modules/@allyhub-next/media/dist/asr/words.d.ts +7 -0
- package/node_modules/@allyhub-next/media/dist/asr/worker.d.ts +2 -0
- package/node_modules/@allyhub-next/media/dist/audio.d.ts +14 -0
- package/node_modules/@allyhub-next/media/dist/beats.d.ts +100 -0
- package/node_modules/@allyhub-next/media/dist/cache.d.ts +26 -0
- package/node_modules/@allyhub-next/media/dist/errors.d.ts +34 -0
- package/node_modules/@allyhub-next/media/dist/fetch.d.ts +11 -0
- package/node_modules/@allyhub-next/media/dist/grid.d.ts +101 -0
- package/node_modules/@allyhub-next/media/dist/index.d.ts +37 -0
- package/node_modules/@allyhub-next/media/dist/local.d.ts +36 -0
- package/node_modules/@allyhub-next/media/dist/ocr/lines.d.ts +36 -0
- package/node_modules/@allyhub-next/media/dist/ocr/tesseract.d.ts +56 -0
- package/node_modules/@allyhub-next/media/dist/ocr/text.d.ts +36 -0
- package/node_modules/@allyhub-next/media/dist/ocr/worker.d.ts +2 -0
- package/node_modules/@allyhub-next/media/dist/picture.d.ts +130 -0
- package/node_modules/@allyhub-next/media/dist/probe.d.ts +52 -0
- package/node_modules/@allyhub-next/media/dist/progress.d.ts +16 -0
- package/node_modules/@allyhub-next/media/dist/run.d.ts +20 -0
- package/node_modules/@allyhub-next/media/dist/sheet.d.ts +65 -0
- package/node_modules/@allyhub-next/media/dist/shots.d.ts +110 -0
- package/node_modules/@allyhub-next/media/dist/sync.d.ts +156 -0
- package/node_modules/@allyhub-next/media/dist/tools.d.ts +25 -0
- package/node_modules/@allyhub-next/media/dist/video.d.ts +35 -0
- package/node_modules/@allyhub-next/media/dist/vision/cache.d.ts +42 -0
- package/node_modules/@allyhub-next/media/dist/vision/common.d.ts +32 -0
- package/node_modules/@allyhub-next/media/dist/vision/faces.d.ts +18 -0
- package/node_modules/@allyhub-next/media/dist/vision/index-media.d.ts +48 -0
- package/node_modules/@allyhub-next/media/dist/vision/matte.d.ts +16 -0
- package/node_modules/@allyhub-next/media/dist/vision/mattes.d.ts +109 -0
- package/node_modules/@allyhub-next/media/dist/vision/models.d.ts +16 -0
- package/node_modules/@allyhub-next/media/dist/vision/probe.d.ts +39 -0
- package/node_modules/@allyhub-next/media/dist/vision/protocol.d.ts +51 -0
- package/node_modules/@allyhub-next/media/dist/vision/run.d.ts +12 -0
- package/node_modules/@allyhub-next/media/dist/vision/runtime.d.ts +16 -0
- package/node_modules/@allyhub-next/media/dist/vision/status.d.ts +24 -0
- package/node_modules/@allyhub-next/media/dist/vision/track.d.ts +54 -0
- package/node_modules/@allyhub-next/media/dist/vision/types.d.ts +2 -0
- package/node_modules/@allyhub-next/media/dist/vision/worker.d.ts +2 -0
- package/node_modules/@allyhub-next/media/dist/vision/yunet.d.ts +35 -0
- package/node_modules/@allyhub-next/media/dist/voice-shape.d.ts +51 -0
- package/node_modules/@allyhub-next/media/dist/worker-process.d.ts +8 -0
- package/node_modules/@allyhub-next/media/package.json +1 -1
- package/node_modules/@allyhub-next/model/dist/apply.d.ts +15 -0
- package/node_modules/@allyhub-next/model/dist/authoring.d.ts +48 -0
- package/node_modules/@allyhub-next/model/dist/bevel-attributes.d.ts +19 -0
- package/node_modules/@allyhub-next/model/dist/bevel-collapse.d.ts +12 -0
- package/node_modules/@allyhub-next/model/dist/bevel-corner-plan.d.ts +24 -0
- package/node_modules/@allyhub-next/model/dist/bevel-deform.d.ts +5 -0
- package/node_modules/@allyhub-next/model/dist/bevel-fans.d.ts +12 -0
- package/node_modules/@allyhub-next/model/dist/bevel-junction.d.ts +16 -0
- package/node_modules/@allyhub-next/model/dist/bevel-marks.d.ts +14 -0
- package/node_modules/@allyhub-next/model/dist/bevel-metric.d.ts +4 -0
- package/node_modules/@allyhub-next/model/dist/bevel-mixed.d.ts +12 -0
- package/node_modules/@allyhub-next/model/dist/bevel-offsets.d.ts +22 -0
- package/node_modules/@allyhub-next/model/dist/bevel-patch.d.ts +45 -0
- package/node_modules/@allyhub-next/model/dist/bevel-profile.d.ts +13 -0
- package/node_modules/@allyhub-next/model/dist/bevel-projection.d.ts +10 -0
- package/node_modules/@allyhub-next/model/dist/bevel-reflex.d.ts +10 -0
- package/node_modules/@allyhub-next/model/dist/bevel-square-out.d.ts +18 -0
- package/node_modules/@allyhub-next/model/dist/bevel-strips.d.ts +8 -0
- package/node_modules/@allyhub-next/model/dist/bevel-topology.d.ts +79 -0
- package/node_modules/@allyhub-next/model/dist/bevel.d.ts +23 -0
- package/node_modules/@allyhub-next/model/dist/bmesh-bevel.d.ts +40 -0
- package/node_modules/@allyhub-next/model/dist/bmesh-bridge.d.ts +21 -0
- package/node_modules/@allyhub-next/model/dist/bmesh-cycles.d.ts +52 -0
- package/node_modules/@allyhub-next/model/dist/bmesh-data.d.ts +227 -0
- package/node_modules/@allyhub-next/model/dist/bmesh-dissolve.d.ts +30 -0
- package/node_modules/@allyhub-next/model/dist/bmesh-edit.d.ts +54 -0
- package/node_modules/@allyhub-next/model/dist/bmesh-inset.d.ts +39 -0
- package/node_modules/@allyhub-next/model/dist/bmesh-primitives.d.ts +41 -0
- package/node_modules/@allyhub-next/model/dist/bmesh-smooth.d.ts +22 -0
- package/node_modules/@allyhub-next/model/dist/bmesh-spin.d.ts +25 -0
- package/node_modules/@allyhub-next/model/dist/bmesh-subdivide.d.ts +89 -0
- package/node_modules/@allyhub-next/model/dist/bmesh.d.ts +72 -0
- package/node_modules/@allyhub-next/model/dist/boolean.d.ts +20 -0
- package/node_modules/@allyhub-next/model/dist/build-cache.d.ts +42 -0
- package/node_modules/@allyhub-next/model/dist/build-job.d.ts +30 -0
- package/node_modules/@allyhub-next/model/dist/build-worker.d.ts +2 -0
- package/node_modules/@allyhub-next/model/dist/build.d.ts +57 -0
- package/node_modules/@allyhub-next/model/dist/cancel.d.ts +8 -0
- package/node_modules/@allyhub-next/model/dist/capabilities.d.ts +22 -0
- package/node_modules/@allyhub-next/model/dist/curve-eval.d.ts +66 -0
- package/node_modules/@allyhub-next/model/dist/curve-math.d.ts +21 -0
- package/node_modules/@allyhub-next/model/dist/curve-mesh.d.ts +30 -0
- package/node_modules/@allyhub-next/model/dist/curve.d.ts +149 -0
- package/node_modules/@allyhub-next/model/dist/data.d.ts +549 -0
- package/node_modules/@allyhub-next/model/dist/evaluate.d.ts +141 -0
- package/node_modules/@allyhub-next/model/dist/evaluation-cache.d.ts +55 -0
- package/node_modules/@allyhub-next/model/dist/evaluation-guard.d.ts +11 -0
- package/node_modules/@allyhub-next/model/dist/evaluation-plan.d.ts +38 -0
- package/node_modules/@allyhub-next/model/dist/export.d.ts +12 -0
- package/node_modules/@allyhub-next/model/dist/field.d.ts +59 -0
- package/node_modules/@allyhub-next/model/dist/generated/opensubdiv.d.mts +25 -0
- package/node_modules/@allyhub-next/model/dist/geometry.d.ts +75 -0
- package/node_modules/@allyhub-next/model/dist/image.d.ts +77 -0
- package/node_modules/@allyhub-next/model/dist/index.d.ts +19 -0
- package/node_modules/@allyhub-next/model/dist/instances.d.ts +18 -0
- package/node_modules/@allyhub-next/model/dist/material-eval.d.ts +12 -0
- package/node_modules/@allyhub-next/model/dist/material-nodes.d.ts +279 -0
- package/node_modules/@allyhub-next/model/dist/mesh-attributes.d.ts +27 -0
- package/node_modules/@allyhub-next/model/dist/mesh-queries.d.ts +34 -0
- package/node_modules/@allyhub-next/model/dist/names.d.ts +9 -0
- package/node_modules/@allyhub-next/model/dist/patterns.d.ts +21 -0
- package/node_modules/@allyhub-next/model/dist/png.d.ts +12 -0
- package/node_modules/@allyhub-next/model/dist/polygon-triangulation.d.ts +4 -0
- package/node_modules/@allyhub-next/model/dist/program-location.d.ts +7 -0
- package/node_modules/@allyhub-next/model/dist/report.d.ts +70 -0
- package/node_modules/@allyhub-next/model/dist/screw.d.ts +38 -0
- package/node_modules/@allyhub-next/model/dist/solidify.d.ts +11 -0
- package/node_modules/@allyhub-next/model/dist/subdivision.d.ts +21 -0
- package/node_modules/@allyhub-next/model/dist/three.d.ts +43 -0
- package/node_modules/@allyhub-next/model/dist/uv-project.d.ts +62 -0
- package/node_modules/@allyhub-next/model/dist/uv-unwrap.d.ts +40 -0
- package/node_modules/@allyhub-next/model/dist/uv.d.ts +16 -0
- package/node_modules/@allyhub-next/model/dist/vertex-groups.d.ts +27 -0
- package/node_modules/@allyhub-next/model/dist/weighted-normal.d.ts +28 -0
- package/node_modules/@allyhub-next/model/package.json +1 -1
- package/node_modules/@allyhub-next/project/dist/console.d.ts +34 -0
- package/node_modules/@allyhub-next/project/dist/digest.d.ts +11 -0
- package/node_modules/@allyhub-next/project/dist/index.d.ts +11 -0
- package/node_modules/@allyhub-next/project/dist/ledger.d.ts +17 -0
- package/node_modules/@allyhub-next/project/dist/media-index.d.ts +27 -0
- package/node_modules/@allyhub-next/project/dist/page.d.ts +124 -0
- package/node_modules/@allyhub-next/project/dist/says.d.ts +15 -0
- package/node_modules/@allyhub-next/project/dist/scenery.d.ts +35 -0
- package/node_modules/@allyhub-next/project/dist/session.d.ts +37 -0
- package/node_modules/@allyhub-next/project/dist/stretch.d.ts +38 -0
- package/node_modules/@allyhub-next/project/dist/version.d.ts +114 -0
- package/node_modules/@allyhub-next/project/package.json +1 -1
- package/node_modules/@allyhub-next/protocol/dist/app.d.ts +98 -0
- package/node_modules/@allyhub-next/protocol/dist/auth.d.ts +116 -0
- package/node_modules/@allyhub-next/protocol/dist/cli.d.ts +59 -0
- package/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +293 -0
- package/node_modules/@allyhub-next/protocol/dist/cloud.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/editor.d.ts +405 -0
- package/node_modules/@allyhub-next/protocol/dist/files.d.ts +101 -0
- package/node_modules/@allyhub-next/protocol/dist/index.d.ts +12 -0
- package/node_modules/@allyhub-next/protocol/dist/jsonrpc.d.ts +83 -0
- package/node_modules/@allyhub-next/protocol/dist/registry.d.ts +167 -0
- package/node_modules/@allyhub-next/protocol/dist/registry.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/runtimes.d.ts +93 -0
- package/node_modules/@allyhub-next/protocol/dist/teams.d.ts +67 -0
- package/node_modules/@allyhub-next/protocol/dist/tools.d.ts +345 -0
- package/node_modules/@allyhub-next/protocol/package.json +1 -1
- package/node_modules/@allyhub-next/registry/dist/index.js +1 -1
- package/node_modules/@allyhub-next/registry/dist/registry.js +1 -1
- package/node_modules/@allyhub-next/registry/package.json +1 -1
- package/node_modules/@allyhub-next/render/dist/cap.d.ts +41 -0
- package/node_modules/@allyhub-next/render/dist/capture.d.ts +78 -0
- package/node_modules/@allyhub-next/render/dist/clip.d.ts +27 -0
- package/node_modules/@allyhub-next/render/dist/composite.d.ts +106 -0
- package/node_modules/@allyhub-next/render/dist/delivery.d.ts +18 -0
- package/node_modules/@allyhub-next/render/dist/doc/fonts.d.ts +3 -0
- package/node_modules/@allyhub-next/render/dist/doc/index.d.ts +3 -0
- package/node_modules/@allyhub-next/render/dist/doc/print.d.ts +25 -0
- package/node_modules/@allyhub-next/render/dist/encode.d.ts +111 -0
- package/node_modules/@allyhub-next/render/dist/errors.d.ts +15 -0
- package/node_modules/@allyhub-next/render/dist/exports.d.ts +51 -0
- package/node_modules/@allyhub-next/render/dist/ffmpeg.d.ts +75 -0
- package/node_modules/@allyhub-next/render/dist/footage.d.ts +169 -0
- package/node_modules/@allyhub-next/render/dist/image.d.ts +16 -0
- package/node_modules/@allyhub-next/render/dist/index.d.ts +27 -0
- package/node_modules/@allyhub-next/render/dist/junction.d.ts +70 -0
- package/node_modules/@allyhub-next/render/dist/look.d.ts +21 -0
- package/node_modules/@allyhub-next/render/dist/page.d.ts +176 -0
- package/node_modules/@allyhub-next/render/dist/parts.d.ts +140 -0
- package/node_modules/@allyhub-next/render/dist/png.d.ts +37 -0
- package/node_modules/@allyhub-next/render/dist/pool.d.ts +54 -0
- package/node_modules/@allyhub-next/render/dist/post-probe.d.ts +27 -0
- package/node_modules/@allyhub-next/render/dist/post.d.ts +27 -0
- package/node_modules/@allyhub-next/render/dist/render.d.ts +149 -0
- package/node_modules/@allyhub-next/render/dist/segments.d.ts +40 -0
- package/node_modules/@allyhub-next/render/dist/served.d.ts +27 -0
- package/node_modules/@allyhub-next/render/dist/sound.d.ts +24 -0
- package/node_modules/@allyhub-next/render/dist/stills.d.ts +41 -0
- package/node_modules/@allyhub-next/render/dist/tools.d.ts +25 -0
- package/node_modules/@allyhub-next/render/dist/webp.d.ts +17 -0
- package/node_modules/@allyhub-next/render/package.json +1 -1
- package/node_modules/@allyhub-next/runtime/dist/bridge.d.ts +201 -0
- package/node_modules/@allyhub-next/runtime/dist/captions.d.ts +24 -0
- package/node_modules/@allyhub-next/runtime/dist/clock.d.ts +32 -0
- package/node_modules/@allyhub-next/runtime/dist/compose.d.ts +149 -0
- package/node_modules/@allyhub-next/runtime/dist/console.d.ts +21 -0
- package/node_modules/@allyhub-next/runtime/dist/contrast.d.ts +13 -0
- package/node_modules/@allyhub-next/runtime/dist/embed.d.ts +50 -0
- package/node_modules/@allyhub-next/runtime/dist/env.d.ts +101 -0
- package/node_modules/@allyhub-next/runtime/dist/errors.d.ts +21 -0
- package/node_modules/@allyhub-next/runtime/dist/facade.d.ts +42 -0
- package/node_modules/@allyhub-next/runtime/dist/fonts.d.ts +110 -0
- package/node_modules/@allyhub-next/runtime/dist/footage.d.ts +54 -0
- package/node_modules/@allyhub-next/runtime/dist/frame.d.ts +61 -0
- package/node_modules/@allyhub-next/runtime/dist/guards.d.ts +32 -0
- package/node_modules/@allyhub-next/runtime/dist/host.d.ts +22 -0
- package/node_modules/@allyhub-next/runtime/dist/index.d.ts +12 -0
- package/node_modules/@allyhub-next/runtime/dist/inspect.d.ts +112 -0
- package/node_modules/@allyhub-next/runtime/dist/measure.d.ts +40 -0
- package/node_modules/@allyhub-next/runtime/dist/mix-plan.d.ts +42 -0
- package/node_modules/@allyhub-next/runtime/dist/music.d.ts +29 -0
- package/node_modules/@allyhub-next/runtime/dist/output.d.ts +5 -0
- package/node_modules/@allyhub-next/runtime/dist/paged.d.ts +16 -0
- package/node_modules/@allyhub-next/runtime/dist/pictures.d.ts +39 -0
- package/node_modules/@allyhub-next/runtime/dist/piece.d.ts +38 -0
- package/node_modules/@allyhub-next/runtime/dist/player/clips.d.ts +41 -0
- package/node_modules/@allyhub-next/runtime/dist/player/cutout.d.ts +57 -0
- package/node_modules/@allyhub-next/runtime/dist/player/player.d.ts +78 -0
- package/node_modules/@allyhub-next/runtime/dist/reads.d.ts +130 -0
- package/node_modules/@allyhub-next/runtime/dist/sound.d.ts +22 -0
- package/node_modules/@allyhub-next/runtime/dist/speech.d.ts +107 -0
- package/node_modules/@allyhub-next/runtime/dist/stage.d.ts +34 -0
- package/node_modules/@allyhub-next/runtime/dist/styles.d.ts +35 -0
- package/node_modules/@allyhub-next/runtime/dist/takes.d.ts +72 -0
- package/node_modules/@allyhub-next/runtime/dist/titles.d.ts +10 -0
- package/node_modules/@allyhub-next/runtime/dist/transitions.d.ts +26 -0
- package/node_modules/@allyhub-next/runtime/package.json +1 -1
- package/node_modules/@allyhub-next/runtimes/dist/bundled.d.ts +10 -0
- package/node_modules/@allyhub-next/runtimes/dist/download.d.ts +15 -0
- package/node_modules/@allyhub-next/runtimes/dist/errors.d.ts +16 -0
- package/node_modules/@allyhub-next/runtimes/dist/home.d.ts +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/index.d.ts +9 -0
- package/node_modules/@allyhub-next/runtimes/dist/lock.d.ts +6 -0
- package/node_modules/@allyhub-next/runtimes/dist/manifest.d.ts +3 -0
- package/node_modules/@allyhub-next/runtimes/dist/runtimes.d.ts +63 -0
- package/node_modules/@allyhub-next/runtimes/dist/unpack.d.ts +7 -0
- package/node_modules/@allyhub-next/runtimes/package.json +1 -1
- package/node_modules/@allyhub-next/scenery/dist/aim.d.ts +55 -0
- package/node_modules/@allyhub-next/scenery/dist/bake.d.ts +203 -0
- package/node_modules/@allyhub-next/scenery/dist/camera.d.ts +150 -0
- package/node_modules/@allyhub-next/scenery/dist/curve.d.ts +40 -0
- package/node_modules/@allyhub-next/scenery/dist/define.d.ts +164 -0
- package/node_modules/@allyhub-next/scenery/dist/fit.d.ts +64 -0
- package/node_modules/@allyhub-next/scenery/dist/glass.d.ts +34 -0
- package/node_modules/@allyhub-next/scenery/dist/handheld.d.ts +184 -0
- package/node_modules/@allyhub-next/scenery/dist/hull.d.ts +23 -0
- package/node_modules/@allyhub-next/scenery/dist/index.d.ts +22 -0
- package/node_modules/@allyhub-next/scenery/dist/lens.d.ts +48 -0
- package/node_modules/@allyhub-next/scenery/dist/moire.d.ts +136 -0
- package/node_modules/@allyhub-next/scenery/dist/motion.d.ts +48 -0
- package/node_modules/@allyhub-next/scenery/dist/move.d.ts +260 -0
- package/node_modules/@allyhub-next/scenery/dist/noise.d.ts +41 -0
- package/node_modules/@allyhub-next/scenery/dist/phone.d.ts +34 -0
- package/node_modules/@allyhub-next/scenery/dist/report.d.ts +677 -0
- package/node_modules/@allyhub-next/scenery/dist/screen-focus.d.ts +55 -0
- package/node_modules/@allyhub-next/scenery/dist/screen.d.ts +71 -0
- package/node_modules/@allyhub-next/scenery/dist/solve.d.ts +82 -0
- package/node_modules/@allyhub-next/scenery/dist/timing.d.ts +26 -0
- package/node_modules/@allyhub-next/scenery/dist/vec.d.ts +19 -0
- package/node_modules/@allyhub-next/scenery/package.json +1 -1
- package/node_modules/@allyhub-next/scenery-host/dist/adapter.d.ts +46 -0
- package/node_modules/@allyhub-next/scenery-host/dist/allyhub.d.ts +21 -0
- package/node_modules/@allyhub-next/scenery-host/dist/allyhub.js +1 -1
- package/node_modules/@allyhub-next/scenery-host/dist/bake/apply.d.ts +59 -0
- package/node_modules/@allyhub-next/scenery-host/dist/bake/digest.d.ts +14 -0
- package/node_modules/@allyhub-next/scenery-host/dist/bake/envmap.d.ts +21 -0
- package/node_modules/@allyhub-next/scenery-host/dist/bake/format.d.ts +63 -0
- package/node_modules/@allyhub-next/scenery-host/dist/bake/run.d.ts +63 -0
- package/node_modules/@allyhub-next/scenery-host/dist/bake/run.js +15 -13
- package/node_modules/@allyhub-next/scenery-host/dist/budget.d.ts +40 -0
- package/node_modules/@allyhub-next/scenery-host/dist/bundle.d.ts +68 -0
- package/node_modules/@allyhub-next/scenery-host/dist/clock.d.ts +31 -0
- package/node_modules/@allyhub-next/scenery-host/dist/commands.d.ts +54 -0
- package/node_modules/@allyhub-next/scenery-host/dist/draw2d.d.ts +47 -0
- package/node_modules/@allyhub-next/scenery-host/dist/errors.d.ts +33 -0
- package/node_modules/@allyhub-next/scenery-host/dist/fidelity.d.ts +72 -0
- package/node_modules/@allyhub-next/scenery-host/dist/focus-pass.d.ts +51 -0
- package/node_modules/@allyhub-next/scenery-host/dist/glass.d.ts +39 -0
- package/node_modules/@allyhub-next/scenery-host/dist/idbuffer.d.ts +35 -0
- package/node_modules/@allyhub-next/scenery-host/dist/index.d.ts +24 -0
- package/node_modules/@allyhub-next/scenery-host/dist/inventory.d.ts +18 -0
- package/node_modules/@allyhub-next/scenery-host/dist/layer/fidelity.d.ts +70 -0
- package/node_modules/@allyhub-next/scenery-host/dist/layer/index.d.ts +51 -0
- package/node_modules/@allyhub-next/scenery-host/dist/layer/moire.d.ts +6 -0
- package/node_modules/@allyhub-next/scenery-host/dist/layer/queries.d.ts +106 -0
- package/node_modules/@allyhub-next/scenery-host/dist/layer/screens.d.ts +58 -0
- package/node_modules/@allyhub-next/scenery-host/dist/layer/state.d.ts +110 -0
- package/node_modules/@allyhub-next/scenery-host/dist/layer/types.d.ts +239 -0
- package/node_modules/@allyhub-next/scenery-host/dist/measure/contacts.d.ts +45 -0
- package/node_modules/@allyhub-next/scenery-host/dist/measure/facts.d.ts +86 -0
- package/node_modules/@allyhub-next/scenery-host/dist/measure/health.d.ts +10 -0
- package/node_modules/@allyhub-next/scenery-host/dist/measure/index.d.ts +110 -0
- package/node_modules/@allyhub-next/scenery-host/dist/measure/relations.d.ts +17 -0
- package/node_modules/@allyhub-next/scenery-host/dist/measure/screen-readback.d.ts +27 -0
- package/node_modules/@allyhub-next/scenery-host/dist/measure/solid.d.ts +32 -0
- package/node_modules/@allyhub-next/scenery-host/dist/measure/support.d.ts +11 -0
- package/node_modules/@allyhub-next/scenery-host/dist/module.d.ts +5 -0
- package/node_modules/@allyhub-next/scenery-host/dist/page/bake.d.ts +53 -0
- package/node_modules/@allyhub-next/scenery-host/dist/page/draw.d.ts +42 -0
- package/node_modules/@allyhub-next/scenery-host/dist/page/files.d.ts +45 -0
- package/node_modules/@allyhub-next/scenery-host/dist/page/page.d.ts +127 -0
- package/node_modules/@allyhub-next/scenery-host/dist/page/props.d.ts +23 -0
- package/node_modules/@allyhub-next/scenery-host/dist/page/screens.d.ts +147 -0
- package/node_modules/@allyhub-next/scenery-host/dist/page/shaders.d.ts +41 -0
- package/node_modules/@allyhub-next/scenery-host/dist/queries/inventory.d.ts +5 -0
- package/node_modules/@allyhub-next/scenery-host/dist/queries/map.d.ts +5 -0
- package/node_modules/@allyhub-next/scenery-host/dist/queries/view.d.ts +10 -0
- package/node_modules/@allyhub-next/scenery-host/dist/scene.d.ts +35 -0
- package/node_modules/@allyhub-next/scenery-host/dist/screen-dom.d.ts +24 -0
- package/node_modules/@allyhub-next/scenery-host/dist/screen-light.d.ts +58 -0
- package/node_modules/@allyhub-next/scenery-host/dist/screen-picture.d.ts +123 -0
- package/node_modules/@allyhub-next/scenery-host/dist/signature.d.ts +4 -0
- package/node_modules/@allyhub-next/scenery-host/dist/steady.d.ts +4 -0
- package/node_modules/@allyhub-next/scenery-host/dist/vec.d.ts +19 -0
- package/node_modules/@allyhub-next/scenery-host/dist/viewer.d.ts +103 -0
- package/node_modules/@allyhub-next/scenery-host/package.json +1 -1
- package/node_modules/@allyhub-next/sheet/dist/check.d.ts +26 -0
- package/node_modules/@allyhub-next/sheet/dist/csv.d.ts +62 -0
- package/node_modules/@allyhub-next/sheet/dist/export.d.ts +15 -0
- package/node_modules/@allyhub-next/sheet/dist/import.d.ts +22 -0
- package/node_modules/@allyhub-next/sheet/dist/index.d.ts +13 -0
- package/node_modules/@allyhub-next/sheet/dist/model.d.ts +133 -0
- package/node_modules/@allyhub-next/sheet/dist/patch.d.ts +12 -0
- package/node_modules/@allyhub-next/sheet/dist/profile.d.ts +32 -0
- package/node_modules/@allyhub-next/sheet/dist/sheet.d.ts +17 -0
- package/node_modules/@allyhub-next/sheet/dist/spec-write.d.ts +27 -0
- package/node_modules/@allyhub-next/sheet/dist/spec.d.ts +29 -0
- package/node_modules/@allyhub-next/sheet/dist/values.d.ts +55 -0
- package/node_modules/@allyhub-next/sheet/dist/view.d.ts +26 -0
- package/node_modules/@allyhub-next/sheet/dist/xlsx.d.ts +26 -0
- package/node_modules/@allyhub-next/sheet/package.json +1 -1
- package/node_modules/@allyhub-next/site/package.json +1 -1
- package/node_modules/@allyhub-next/stage/dist/bakes.d.ts +42 -0
- package/node_modules/@allyhub-next/stage/dist/graphics.d.ts +7 -0
- package/node_modules/@allyhub-next/stage/dist/identity.d.ts +2 -0
- package/node_modules/@allyhub-next/stage/dist/index.d.ts +9 -0
- package/node_modules/@allyhub-next/stage/dist/page.d.ts +78 -0
- package/node_modules/@allyhub-next/stage/dist/scenery-page.d.ts +69 -0
- package/node_modules/@allyhub-next/stage/dist/scenery-page.js +4 -4
- package/node_modules/@allyhub-next/stage/dist/scenery-solve.d.ts +49 -0
- package/node_modules/@allyhub-next/stage/dist/scenery.d.ts +8 -0
- package/node_modules/@allyhub-next/stage/dist/server.d.ts +21 -0
- package/node_modules/@allyhub-next/stage/package.json +1 -1
- package/node_modules/@allyhub-next/video-core/dist/anchors.d.ts +164 -0
- package/node_modules/@allyhub-next/video-core/dist/audio-types.d.ts +148 -0
- package/node_modules/@allyhub-next/video-core/dist/backdrop.d.ts +87 -0
- package/node_modules/@allyhub-next/video-core/dist/captions.d.ts +122 -0
- package/node_modules/@allyhub-next/video-core/dist/console.d.ts +91 -0
- package/node_modules/@allyhub-next/video-core/dist/contrast.d.ts +98 -0
- package/node_modules/@allyhub-next/video-core/dist/cut-report.d.ts +77 -0
- package/node_modules/@allyhub-next/video-core/dist/edit.d.ts +77 -0
- package/node_modules/@allyhub-next/video-core/dist/edits.d.ts +163 -0
- package/node_modules/@allyhub-next/video-core/dist/export.d.ts +96 -0
- package/node_modules/@allyhub-next/video-core/dist/fact.d.ts +965 -0
- package/node_modules/@allyhub-next/video-core/dist/footage-motion.d.ts +168 -0
- package/node_modules/@allyhub-next/video-core/dist/formats.d.ts +240 -0
- package/node_modules/@allyhub-next/video-core/dist/gen.d.ts +37 -0
- package/node_modules/@allyhub-next/video-core/dist/index.d.ts +40 -0
- package/node_modules/@allyhub-next/video-core/dist/look.d.ts +66 -0
- package/node_modules/@allyhub-next/video-core/dist/marks.d.ts +34 -0
- package/node_modules/@allyhub-next/video-core/dist/matrix.d.ts +289 -0
- package/node_modules/@allyhub-next/video-core/dist/measure.d.ts +465 -0
- package/node_modules/@allyhub-next/video-core/dist/media.d.ts +226 -0
- package/node_modules/@allyhub-next/video-core/dist/messages.d.ts +88 -0
- package/node_modules/@allyhub-next/video-core/dist/motion.d.ts +56 -0
- package/node_modules/@allyhub-next/video-core/dist/music.d.ts +110 -0
- package/node_modules/@allyhub-next/video-core/dist/piece.d.ts +1146 -0
- package/node_modules/@allyhub-next/video-core/dist/placement.d.ts +37 -0
- package/node_modules/@allyhub-next/video-core/dist/problem.d.ts +262 -0
- package/node_modules/@allyhub-next/video-core/dist/render-types.d.ts +49 -0
- package/node_modules/@allyhub-next/video-core/dist/schema.d.ts +352 -0
- package/node_modules/@allyhub-next/video-core/dist/script-edit.d.ts +176 -0
- package/node_modules/@allyhub-next/video-core/dist/script.d.ts +67 -0
- package/node_modules/@allyhub-next/video-core/dist/seams.d.ts +214 -0
- package/node_modules/@allyhub-next/video-core/dist/slides.d.ts +37 -0
- package/node_modules/@allyhub-next/video-core/dist/sound-under.d.ts +72 -0
- package/node_modules/@allyhub-next/video-core/dist/speech.d.ts +83 -0
- package/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +616 -0
- package/node_modules/@allyhub-next/video-core/dist/timing.d.ts +88 -0
- package/node_modules/@allyhub-next/video-core/dist/transcript.d.ts +288 -0
- package/node_modules/@allyhub-next/video-core/dist/transition.d.ts +289 -0
- package/node_modules/@allyhub-next/video-core/dist/voice.d.ts +175 -0
- package/node_modules/@allyhub-next/video-core/dist/words.d.ts +128 -0
- package/node_modules/@allyhub-next/video-core/package.json +1 -1
- package/package.json +37 -27
- package/editor-web/assets/chevron-left-BmxSmft8.js +0 -1
- package/editor-web/assets/dist-CjQKFMhS.js +0 -8
- package/editor-web/assets/index-BAvCs2l0.css +0 -2
- package/editor-web/assets/index-g9RQlyDb.js +0 -56
- package/editor-web/assets/react-ZggY1Y07.js +0 -61
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var ee={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},te=Object.assign,ne={};function re(e,t,n){this.props=e,this.context=t,this.refs=ne,this.updater=n||ee}re.prototype.isReactComponent={},re.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},re.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function ie(){}ie.prototype=re.prototype;function ae(e,t,n){this.props=e,this.context=t,this.refs=ne,this.updater=n||ee}var g=ae.prototype=new ie;g.constructor=ae,te(g,re.prototype),g.isPureReactComponent=!0;var oe=Array.isArray;function _(){}var v={H:null,A:null,T:null,S:null},se=Object.prototype.hasOwnProperty;function ce(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function le(e,t){return ce(e.type,t,e.props)}function y(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ue(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var de=/\/+/g;function fe(e,t){return typeof e==`object`&&e&&e.key!=null?ue(``+e.key):t.toString(36)}function pe(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(_,_):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function me(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,me(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+fe(e,0):a,oe(o)?(i=``,c!=null&&(i=c.replace(de,`$&/`)+`/`),me(o,r,i,``,function(e){return e})):o!=null&&(y(o)&&(o=le(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(de,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(oe(e))for(var u=0;u<e.length;u++)a=e[u],s=l+fe(a,u),c+=me(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+fe(a,u++),c+=me(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return me(pe(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function he(e,t,n){if(e==null)return e;var r=[],i=0;return me(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ge(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var _e=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function ve(e){var t=v.T,n={};n.types=t===null?null:t.types,v.T=n;try{var r=e(),i=v.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(_,_e)}catch(e){_e(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),v.T=t}}function ye(e){var t=v.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else ve(ye.bind(null,e))}var b={map:he,forEach:function(e,t,n){he(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return he(e,function(){t++}),t},toArray:function(e){return he(e,function(e){return e})||[]},only:function(e){if(!y(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=b,e.Component=re,e.Fragment=r,e.Profiler=a,e.PureComponent=ae,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=v,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return v.H.useMemoCache(e)}},e.addTransitionType=ye,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=te({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!se.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return ce(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)se.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return ce(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=y,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ge}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=ve,e.unstable_useCacheRefresh=function(){return v.H.useCacheRefresh()},e.use=function(e){return v.H.use(e)},e.useActionState=function(e,t,n){return v.H.useActionState(e,t,n)},e.useCallback=function(e,t){return v.H.useCallback(e,t)},e.useContext=function(e){return v.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return v.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return v.H.useEffect(e,t)},e.useEffectEvent=function(e){return v.H.useEffectEvent(e)},e.useId=function(){return v.H.useId()},e.useImperativeHandle=function(e,t,n){return v.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return v.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return v.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return v.H.useMemo(e,t)},e.useOptimistic=function(e,t){return v.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return v.H.useReducer(e,t,n)},e.useRef=function(e){return v.H.useRef(e)},e.useState=function(e){return v.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return v.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return v.H.useTransition()},e.version=`19.3.0`})),d=o(((e,t)=>{t.exports=u()}));function f(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 p(e,t=`|`){return e.map(e=>be(e)).join(t)}function m(e,t){return typeof t==`bigint`?t.toString():t}var h=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 ee(e){return new h(e)}function te(e){return e==null}function ne(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function re(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 ie=Symbol(`evaluating`);function ae(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==ie)return r===void 0&&(r=ie,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function g(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function oe(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function _(e){return oe(e._zod.def)??e._zod.def.shape}function v(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return g(this,t,e),e},enumerable:!0,configurable:!0})}function se(e,t,n){t in e?g(e,t,n):e[t]=n}function ce(e,t,n,r){let i=_(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?v(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):se(e,a,r?r(n.value,a):n.value))}}function le(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?v(e,n,()=>t[n]):se(e,n,r.value))}}function y(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function ue(e){return JSON.stringify(e)}function de(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var fe=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function pe(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var me=ee(()=>{if(w.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function he(e){if(pe(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return pe(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function ge(e){return he(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var _e=new Set([`string`,`number`,`symbol`]);function ve(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function ye(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function b(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 be(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function xe(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}var Se={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Ce={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function we(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 ce(i,e,Te(e,t)),ye(e,y(n,{shape:i,checks:[]}))}function Te(e,t){let n=_(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 Ee(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(Te(e,t)),a={};return ce(a,e,Reflect.ownKeys(_(e)).filter(e=>!i.has(e))),ye(e,y(n,{shape:a,checks:[]}))}function De(e,t){if(!he(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=_(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 ye(e,y(e._zod.def,{shape:Oe(e,t)}))}function Oe(e,t){let n={};return ce(n,e,Reflect.ownKeys(_(e))),le(n,t),n}function ke(e,t){if(!he(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return ye(e,y(e._zod.def,{shape:Oe(e,t)}))}function Ae(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 ce(n,e,Reflect.ownKeys(_(e))),ce(n,t,Reflect.ownKeys(_(t))),ye(e,y(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function je(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(Te(t,n)):void 0,o={};return ce(o,t,Reflect.ownKeys(_(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),ye(t,y(t._zod.def,{shape:o,checks:[]}))}function Me(e,t,n){let r=n?new Set(Te(t,n)):void 0,i={};return ce(i,t,Reflect.ownKeys(_(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),ye(t,y(t._zod.def,{shape:i}))}function x(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 Ne(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 Pe(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Fe(e){return typeof e==`string`?e:e?.message}function Ie(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 Le(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function Re(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:Fe(e.inst?._zod.def?.error?.(e))??Fe(a?.(e))??Fe(t?.error?.(e))??Fe(n.customError?.(e))??Fe(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}var ze=/[\uD800-\uDBFF]/;function Be(e){let t=e.length;if(!ze.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 Ve(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function He(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 Ue(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function We(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Je(e,n,r.value)}}function Ge(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Ke(e,t,n){return Ge(e,t,n,!1)}function qe(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return Ge(this,n,r(this))},set(e){Ge(this,n,e)}})}return t}function Je(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:Ge(this,t,n.bind(this))},set(e){Ge(this,t,e)}})}function Ye(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var Xe,Ze=!1,Qe={configurable:!0,get(){Ze=!0}};function S(e,t,n){let r=Object.getPrototypeOf(e._zod);t in r&&Xe!==e._zod?Xe=void 0:(Xe=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Qe);let e=Ze;Ze=!1;try{let r=n(this);return Ze?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),Ze||=e,r}catch(n){throw delete this[t],Ze||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}}))}function $e(e,t,n,r){let i=Ye(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 et=`~constantCatch`;function tt(e){let t=()=>e;return t[et]=!0,t}var nt,rt={value:void 0,enumerable:!1},it=`captureStackTrace`in Error?Error:null;function at(e){let t=it;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return it=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function C(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){rt.value=new a(r);try{Object.defineProperty(n,"_zod",rt)}finally{rt.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),We(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?at(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 ot=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},st=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(nt=globalThis).__zod_globalConfig??(nt.__zod_globalConfig={});var w=globalThis.__zod_globalConfig;function ct(e){return e&&Object.assign(w,e),w}function lt(){let e=this._zod;return e.message??=JSON.stringify(e.def,m,2),e.message}function ut(e){this._zod.message=e}var dt={get:lt,set:ut,enumerable:!0,configurable:!0},ft={value:void 0,enumerable:!1},pt=new WeakSet([Object.prototype,Error.prototype]),mt=C(`$ZodError`,(e,t)=>{e.name=`$ZodError`,ft.value=t,Object.defineProperty(e,"issues",ft),ft.value=void 0,Object.defineProperty(e,"message",dt);let n=Object.getPrototypeOf(e);pt.has(n)||(pt.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})}}))});function ht(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 gt(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?ht(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function _t(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 vt(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 yt(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 ${vt(e.path)}`);return t.join(`
|
|
2
|
-
`)}function bt(e,t){return{callee:t?.callee??e,Err:t?.Err}}var xt=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 ot;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>Re(e,o,ct())));throw fe(n,a?.callee??t),n}return s.value};return t},St=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=>Re(e,o,ct())));throw fe(n,a?.callee??t),n}return s.value};return t},Ct=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 ot;return a.issues.length?wt(e,a.issues,i):{success:!0,data:a.value}};function wt(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>Re(e,n,ct()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var Tt=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?wt(e,a.issues,i):{success:!0,data:a.value}},Et=Symbol.for(`zod.compile.invalid`),Dt=Symbol.for(`zod.compile.fallback`),Ot=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==Et)return!0;if(r.definite===!0&&n===void 0)return!1}return kt(e,t,n)});function kt(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[Dt]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new ot;return a.issues.length===0}var At=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},jt=e=>{let t=xt(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,bt(n,a))};return n},Mt=e=>{let t=xt(e),n=(e,r,i,a)=>t(e,r,i,bt(n,a));return n},Nt=e=>{let t=St(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,bt(n,a))};return n},Pt=e=>{let t=St(e),n=async(e,r,i,a)=>await t(e,r,i,bt(n,a));return n},Ft=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Ct(e)(t,n,i)},It=e=>(t,n,r)=>Ct(e)(t,n,r),Lt=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Tt(e)(t,n,i)},Rt=e=>async(t,n,r)=>Tt(e)(t,n,r),zt=/^[cC][0-9a-z]{6,}$/,Bt=/^[0-9a-z]+$/,Vt=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Ht=/^[0-9a-vA-V]{20}$/,Ut=/^[A-Za-z0-9]{27}$/,Wt=/^[a-zA-Z0-9_-]{21}$/;function Gt(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Kt=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,qt=/^([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})$/,Jt=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)$/,Yt=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,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=/^((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])$/,tn=/^(([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])$/,nn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,rn=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,an=/^https?$/,on=/^\+[1-9]\d{6,14}$/,sn=`(?:(?:\\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 cn(e){return RegExp(`^${e}$`)}var ln=cn(sn);function un(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 dn(e){return RegExp(`^${un(e)}$`)}function fn(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${un({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${un({precision:e.precision})}`:n;return RegExp(`^${sn}T(?:${r})$`)}var pn=/^[\s\S]{0,}$/,mn=/^-?\d+$/,hn=/^-?\d+(?:\.\d+)?$/,gn=/^(?:true|false)$/i,_n=/^null$/i,vn=/^[^A-Z]*$/,yn=/^[^a-z]*$/,T=C(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),bn=e=>{let t=e.value;return!te(t)&&t.length!==void 0},xn={number:`number`,bigint:`bigint`,object:`date`},Sn=C(`$ZodCheckLessThan`,(e,t)=>{T.init(e,t);let n=xn[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:xn[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})}}),Cn=C(`$ZodCheckGreaterThan`,(e,t)=>{T.init(e,t);let n=xn[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:xn[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})}}),wn=C(`$ZodCheckMultipleOf`,(e,t)=>{T.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):re(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})}}),Tn=C(`$ZodCheckNumberFormat`,(e,t)=>{T.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Se[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})}}),En=C(`$ZodCheckMaxLength`,(e,t)=>{var n;T.init(e,t),(n=e._zod.def).when??(n.when=bn),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?Be(r):i)<=t.maximum)return;let a=Ve(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Dn=C(`$ZodCheckMinLength`,(e,t)=>{var n;T.init(e,t),(n=e._zod.def).when??(n.when=bn),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?Be(r):i)>=t.minimum)return;let a=Ve(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),On=C(`$ZodCheckLengthEquals`,(e,t)=>{var n;T.init(e,t),(n=e._zod.def).when??(n.when=bn),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?Be(r):i;if(a===t.length)return;let o=Ve(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})}}),kn=C(`$ZodCheckStringFormat`,(e,t)=>{var n,r;T.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=()=>{})}),An=C(`$ZodCheckRegex`,(e,t)=>{kn.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})}}),jn=C(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=vn,kn.init(e,t)}),Mn=C(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=yn,kn.init(e,t)}),Nn=C(`$ZodCheckIncludes`,(e,t)=>{T.init(e,t);let n=ve(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})}}),Pn=C(`$ZodCheckStartsWith`,(e,t)=>{T.init(e,t);let n=RegExp(`^${ve(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})}}),Fn=C(`$ZodCheckEndsWith`,(e,t)=>{T.init(e,t);let n=RegExp(`.*${ve(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})}}),In=C(`$ZodCheckOverwrite`,(e,t)=>{T.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),Ln=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))}},Rn={major:4,minor:6,patch:7},E=C(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Rn;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=x(t),a;for(let o of n){if(o._zod.def.when){if(Ne(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 ot;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(Le(t.issues,n,e),i||=x(t,n))});else{if(t.issues.length===n)continue;Le(t.issues,n,e),i||=x(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(x(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new ot;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 ot;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return Ke(this,`~standard`,Vn(this))},set"~standard"(e){Ge(this,`~standard`,e)}}),zn=(e,t)=>e.issues.length?{issues:e.issues.map(e=>Re(e,t,ct()))}:{value:e.value};async function Bn(e,t){let n={async:!0};return zn(await e._zod.run({value:t,issues:[]},n),n)}function Vn(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return zn(r,n)}catch{}return Bn(e,t)},vendor:`zod`,version:1}}var Hn=C(`$ZodString`,(e,t)=>{E.init(e,t),e._zod.pattern=t.pattern??pn,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}}),D=C(`$ZodStringFormat`,(e,t)=>{kn.init(e,t),Hn.init(e,t)}),Un=C(`$ZodGUID`,(e,t)=>{t.pattern??=qt,D.init(e,t)}),Wn=C(`$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??=Jt(e)}else t.pattern??=Jt();D.init(e,t)}),Gn=C(`$ZodEmail`,(e,t)=>{t.pattern??=Yt,D.init(e,t)});function Kn(e){try{return typeof URL<`u`&&typeof URL.canParse==`function`?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function qn(e,t){return!(`normalize`in t)&&!(`hostname`in t)&&!(`protocol`in t)?Kn(e)||2:Jn(e,t)}function Jn(e,t){if(!t.normalize&&t.protocol?.source===an.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 Yn=/[\t\n\r]/g;function Xn(e){return e.replace(Yn,``)}function Zn(e,t){return t.lastIndex=0,t.test(e.hostname)}function Qn(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(`:`)?e.protocol.slice(0,-1):e.protocol)}var $n=C(`$ZodURL`,(e,t)=>{D.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=qn(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=Xn(r);return}t.hostname&&!Zn(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&&!Qn(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:Xn(r);return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),er=C(`$ZodEmoji`,(e,t)=>{t.pattern??=Zt(),D.init(e,t)}),tr=C(`$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?Wt:Gt(t.length),D.init(e,t)}),nr=C(`$ZodCUID`,(e,t)=>{t.pattern??=zt,D.init(e,t)}),rr=C(`$ZodCUID2`,(e,t)=>{t.pattern??=Bt,D.init(e,t)}),ir=C(`$ZodULID`,(e,t)=>{t.pattern??=Vt,D.init(e,t)}),ar=C(`$ZodXID`,(e,t)=>{t.pattern??=Ht,D.init(e,t)}),or=C(`$ZodKSUID`,(e,t)=>{t.pattern??=Ut,D.init(e,t)}),sr=C(`$ZodISODateTime`,(e,t)=>{t.pattern??=fn(t),D.init(e,t)}),cr=C(`$ZodISODate`,(e,t)=>{t.pattern??=ln,D.init(e,t)}),lr=C(`$ZodISOTime`,(e,t)=>{t.pattern??=dn(t),D.init(e,t)}),ur=C(`$ZodISODuration`,(e,t)=>{t.pattern??=Kt,D.init(e,t)}),dr=C(`$ZodIPv4`,(e,t)=>{t.pattern??=Qt,D.init(e,t)}),fr=/^[0-9a-fA-F:.]+$/;function pr(e){return fr.test(e)?Kn(`http://[${e}]`):!1}var mr=C(`$ZodIPv6`,(e,t)=>{t.pattern??=$t,D.init(e,t),e._zod.check=n=>{pr(n.value)||n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}),hr=C(`$ZodCIDRv4`,(e,t)=>{t.pattern??=en,D.init(e,t)});function gr(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:pr(n)}var _r=C(`$ZodCIDRv6`,(e,t)=>{t.pattern??=tn,D.init(e,t),e._zod.check=n=>{gr(n.value)||n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}});function vr(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var yr=/^[0-9a-zA-Z+/]*={0,2}$/,br=C(`$ZodBase64`,(e,t)=>{t.pattern??=yr,D.init(e,t),e._zod.check=n=>{vr(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),xr=/^[A-Za-z0-9_-]*$/;function Sr(e){if(!xr.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return vr(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Cr=C(`$ZodBase64URL`,(e,t)=>{t.pattern??=xr,D.init(e,t),e._zod.check=n=>{Sr(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),wr=C(`$ZodE164`,(e,t)=>{t.pattern??=on,D.init(e,t)});function Tr(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 Er=C(`$ZodJWT`,(e,t)=>{D.init(e,t),e._zod.check=n=>{Tr(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Dr=C(`$ZodNumber`,(e,t)=>{E.init(e,t),e._zod.pattern=hn,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}}),Or=C(`$ZodNumberFormat`,(e,t)=>{Tn.init(e,t),Dr.init(e,t)}),kr=C(`$ZodBoolean`,(e,t)=>{E.init(e,t),e._zod.pattern=gn,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}}),Ar=C(`$ZodNull`,(e,t)=>{E.init(e,t),e._zod.pattern=_n,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}}),jr=C(`$ZodUnknown`,(e,t)=>{E.init(e,t),e._zod.parse=e=>e}),Mr=C(`$ZodNever`,(e,t)=>{E.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Nr(e,t){let n=Ie(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 Ie(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,Le(n.issues,t,e),n}}return i(n,a)}}var Pr=e=>Array.isArray(e)?e.length:-1;function Fr(e,t,n){e.issues.length&&t.issues.push(...Pe(n,e.issues)),t.value[n]=e.value}var Ir=C(`$ZodArray`,(e,t)=>{E.init(e,t);let n=w.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=>Fr(t,r,e)));else if(Fr(c,r,e),s&&c.issues.length!==0&&x(c))break}return o.length?Promise.all(o).then(()=>r):r},Nr(e,Pr)});function Lr(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(...Pe(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 Rr=[];function zr(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Rr,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=xe(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function Br(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(x(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=>Lr(e,n,i,t,d,f))):Lr(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 Vr=C(`$ZodObject`,(e,t)=>{E.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=ee(()=>zr(t));S(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)||g(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=pe,o=t.catchall,s,c=w.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(x(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=>Lr(n,t,e,r,a,o))):Lr(s,t,e,r,a,o)}return o?Br(l,r,t,n,i.value,e,d===!0):l.length?Promise.all(l).then(()=>t):t}}),Hr=C(`$ZodObjectJIT`,(e,t)=>{Vr.init(e,t);let n=e._zod.parse,r=ee(()=>zr(t)),i=w.memoizer,a=t=>{let n=r.value,a=n.symbolKeys,o=new Ln([`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)}]`:ue(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=pe,c=!w.jitless,l=c&&me.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?Br([],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 Ur(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=>!x(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=>Re(e,r,ct())))}),t)}var Wr=C(`$ZodUnion`,(e,t)=>{E.init(e,t),S(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),S(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),S(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)))}),S(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=>ne(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=>Ur(t,r,e,i)):Ur(o,r,e,i)}});function Gr(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 Kr=C(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Wr.init(e,t);let n=e._zod.parse;S(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)||g(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=oe(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=ee(()=>Gr(t));e._zod.parse=(i,a)=>{let o=i.value;if(!pe(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)}}),qr=C(`$ZodIntersection`,(e,t)=>{E.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])=>Yr(e,t,n)):Yr(e,i,a)}});function Jr(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(he(e)&&he(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=Jr(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=Jr(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 Yr(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=Jr(t.value,n.value);if(!c.valid){if(x(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var Xr=C(`$ZodTuple`,(e,t)=>{E.init(e,t);let n=t.items,r=w.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=Zr(n,`optin`),l=Zr(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=x(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(x(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=>Qr(t,i,e))):Qr(r,i,e)}}return s.length?Promise.all(s).then(()=>$r(u,i,n,o,l)):$r(u,i,n,o,l)}});function Zr(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 Qr(e,t,n){e.issues.length&&t.issues.push(...Pe(n,e.issues)),t.value[n]=e.value}function $r(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(...Pe(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 ei=C(`$ZodRecord`,(e,t)=>{E.init(e,t);let n=w.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!he(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=>Re(e,i,ct())),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(...Pe(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...Pe(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`&&hn.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=>Re(e,i,ct())),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(...Pe(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...Pe(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}}),ti=C(`$ZodEnum`,(e,t)=>{E.init(e,t);let n=f(t.entries),r=new Set(n);e._zod.values=r,S(e,`pattern`,e=>{let t=f(e.def.entries).filter(e=>_e.has(typeof e));return RegExp(t.length?`^(${t.map(e=>ve(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}}),ni=C(`$ZodLiteral`,(e,t)=>{E.init(e,t);let n=new Set(t.values);e._zod.values=n,S(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?ve(e):e?ve(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}}),ri=C(`$ZodTransform`,(e,t)=>{E.init(e,t),e._zod.optin=`optional`,w.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new st(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 ot;return n.value=i,n}});function ii(e,t){return e.value=t.issues.length?void 0:t.value,e}var ai=C(`$ZodOptional`,(e,t)=>{E.init(e,t),S(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,S(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),S(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${ne(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=>ii(e,t)):ii(e,r)}return t.innerType._zod.run(e,n)}}),oi=C(`$ZodExactOptional`,(e,t)=>{ai.init(e,t),S(e,`values`,e=>e.def.innerType._zod.values),S(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),si=C(`$ZodNullable`,(e,t)=>{E.init(e,t),S(e,`optin`,e=>e.def.innerType._zod.optin),S(e,`optout`,e=>e.def.innerType._zod.optout),S(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${ne(t.source)}|null)$`):void 0}),S(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)}),ci=C(`$ZodDefault`,(e,t)=>{E.init(e,t),e._zod.optin=`defaulted`,S(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=>li(e,t)):li(r,t)}});function li(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var ui=C(`$ZodPrefault`,(e,t)=>{E.init(e,t),e._zod.optin=`defaulted`,S(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))}),di=C(`$ZodNonOptional`,(e,t)=>{E.init(e,t),S(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=>fi(t,e)):fi(i,e)}});function fi(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function pi(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>Re(e,r,ct()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var mi=C(`$ZodCatch`,(e,t)=>{E.init(e,t),S(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),S(e,`optout`,e=>e.def.innerType._zod.optout),S(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=>pi(e,r,t,n)):pi(e,r,t,n)}}),hi=C(`$ZodPipe`,(e,t)=>{E.init(e,t),S(e,`values`,e=>e.def.in._zod.values),S(e,`optin`,e=>e.def.in._zod.optin),S(e,`optout`,e=>e.def.out._zod.optout),S(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=>gi(e,t.in,n)):gi(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>gi(e,t.out,n)):gi(r,t.out,n)}});function gi(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 _i=C(`$ZodReadonly`,(e,t)=>{E.init(e,t),S(e,`propValues`,e=>e.def.innerType._zod.propValues),S(e,`values`,e=>e.def.innerType._zod.values),S(e,`optin`,e=>e.def.innerType?._zod?.optin),S(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(vi):vi(r)}});function vi(e){return e.memo||(e.value=Object.freeze(e.value)),e}var yi=C(`$ZodLazy`,(e,t)=>{E.init(e,t),ae(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),S(e,`pattern`,e=>e.innerType?._zod?.pattern),S(e,`propValues`,e=>e.innerType?._zod?.propValues),S(e,`optin`,e=>e.innerType?._zod?.optin??void 0),S(e,`optout`,e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),bi=C(`$ZodCustom`,(e,t)=>{T.init(e,t),E.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=>xi(t,n,r,e));xi(i,n,r,e)}});function xi(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(Ue(e))}}var Si=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},Ci=`~memo`,wi=[];function Ti(e){return typeof e==`object`&&!!e}function Ei(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var Di=new WeakMap,Oi=0,ki=1,Ai=2;function ji(e,t,n){let r=Di.get(e);if(r!==void 0)return r?Ai:Oi;if(t.has(e))return Ai;t.add(e);let i=Oi,a=e=>{if(i!==Ai&&e?._zod){let r=ji(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=Oi;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?ki:o.value?._zod?ji(o.value,t,n):Oi;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=oe(c);s(e?o(e,!0):ki),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?ji(r,t,!1):ki);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),Mi(e,i)}function Mi(e,t){return t!==ki&&Di.set(e,t===Ai),t}function Ni(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var Pi,Fi=[],Ii={alloc(e,t,n){let r=Pi;if(!r)return n;Pi=void 0;let i={value:n,issues:null};return r.set(t.value,i),Fi.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`&&Ri(n,e.value))throw new Si;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=ji(e,new Set,!1);if(i===Oi)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===Ai||r?n=!0:r=!0}let l=s.value;if(!Ti(l))return t(s,c);let u=c[Ci];u||(u={buckets:new WeakMap,backEdges:void 0},c[Ci]=u);let d;i===c?d=a:(d=Ni(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(...Ei(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=new WeakSet),u.backEdges.add(f.value)),s;Pi=d;let p=Fi.length,m=t(s,c);Pi=void 0;let h=Fi.length>p?Fi.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?Ei(e.issues):wi),e)):(h&&(h.issues=m.issues.length?Ei(m.issues):wi),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}};function Li(){return Ii}function Ri(e,t){let n=e[Ci]?.backEdges;return n!==void 0&&Ti(t)&&n.has(t)}var zi=()=>{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(He(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${be(e.values[0])}`:`Invalid option: expected one of ${p(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`:``}: ${p(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 Bi(){return{localeError:zi()}}var Vi,Hi=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 Ui(){return new Hi}(Vi=globalThis).__zod_globalRegistry??(Vi.__zod_globalRegistry=Ui());var Wi=globalThis.__zod_globalRegistry;function Gi(e){return e.checks&&=[...e.checks],e}function Ki(e,t){return new e(Gi({type:`string`,...b(t)}))}function qi(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...b(t)})}function Ji(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...b(t)})}function Yi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...b(t)})}function Xi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...b(t)})}function Zi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...b(t)})}function Qi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...b(t)})}function $i(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...b(t)})}function ea(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...b(t)})}function ta(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...b(t)})}function na(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...b(t)})}function ra(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...b(t)})}function ia(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...b(t)})}function aa(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...b(t)})}function oa(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...b(t)})}function sa(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...b(t)})}function ca(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...b(t)})}function la(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...b(t)})}function ua(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...b(t)})}function da(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...b(t)})}function fa(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...b(t)})}function pa(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...b(t)})}function ma(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...b(t)})}function ha(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...b(t)})}function ga(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...b(t)})}function _a(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...b(t)})}function va(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...b(t)})}function ya(e,t){return new e(Gi({type:`number`,checks:[],...b(t)}))}function ba(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...b(t)})}function xa(e,t){return new e({type:`boolean`,...b(t)})}function Sa(e,t){return new e({type:`null`,...b(t)})}function Ca(e){return new e({type:`unknown`})}function wa(e,t){return new e({type:`never`,...b(t)})}function Ta(e,t){return new Sn({check:`less_than`,...b(t),value:e,inclusive:!1})}function Ea(e,t){return new Sn({check:`less_than`,...b(t),value:e,inclusive:!0})}function Da(e,t){return new Cn({check:`greater_than`,...b(t),value:e,inclusive:!1})}function Oa(e,t){return new Cn({check:`greater_than`,...b(t),value:e,inclusive:!0})}function ka(e,t){return new wn({check:`multiple_of`,...b(t),value:e})}function Aa(e,t){return new En({check:`max_length`,...b(t),maximum:e})}function ja(e,t){return new Dn({check:`min_length`,...b(t),minimum:e})}function Ma(e,t){return new On({check:`length_equals`,...b(t),length:e})}function Na(e,t){return new An({check:`string_format`,format:`regex`,...b(t),pattern:e})}function Pa(e){return new jn({check:`string_format`,format:`lowercase`,...b(e)})}function Fa(e){return new Mn({check:`string_format`,format:`uppercase`,...b(e)})}function Ia(e,t){return new Nn({check:`string_format`,format:`includes`,...b(t),includes:e})}function La(e,t){return new Pn({check:`string_format`,format:`starts_with`,...b(t),prefix:e})}function Ra(e,t){return new Fn({check:`string_format`,format:`ends_with`,...b(t),suffix:e})}function za(e){return new In({check:`overwrite`,tx:e})}function Ba(e){return za(t=>t.normalize(e))}function Va(){return za(e=>e.trim())}function Ha(){return za(e=>e.toLowerCase())}function Ua(){return za(e=>e.toUpperCase())}function Wa(){return za(e=>de(e))}function Ga(e,t,n){return new e({type:`array`,element:t,...b(n)})}function Ka(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...b(n)})}function qa(e,t){let n=Ja(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Ue(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(Ue(r))}},e(t.value,t)),t);return n}function Ja(e,t){let n=new T({check:`custom`,...b(t)});return n._zod.check=e,n}function Ya(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&g(e,t,n[t]);return e}function Xa(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??Wi,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 Za(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 O(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,O(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Ya(o.schema,c),t.io===`input`&&k(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 Qa(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function $a(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}/${Qa(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+Qa(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 eo(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;eo(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 to=new Set([`type`,`properties`,`required`,`additionalProperties`]),no=[`oneOf`,`anyOf`];function ro(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function io(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!to.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]??ro(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}g(n,r,e.length===1?e[0]:io(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=ro(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 ao(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of to)if(t in e)return;let n=t.filter(e=>no.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=io(t);else{let e=n[0],i=no.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=>io([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,Ya(e,r))}function oo(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)):Ya(i,s),Ya(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())eo(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)??[])ao(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)}Ya(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,g(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:co(t,`input`,e.processors),output:co(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function k(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 k(r.element,n);if(r.type===`set`)return k(r.valueType,n);if(r.type===`lazy`)return k(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 k(r.innerType,n);if(r.type===`intersection`)return k(r.left,n)||k(r.right,n);if(r.type===`record`||r.type===`map`)return k(r.keyType,n)||k(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:k(r.in,n)||k(r.out,n);if(r.type===`object`){for(let e in r.shape)if(k(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(k(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(k(e,n))return!0;return!!(r.rest&&k(r.rest,n))}return!1}var so=(e,t={})=>n=>{let r=Xa({...n,processors:t});return O(e,r),$a(r,e),oo(r,e)},co=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Xa({...i??{},target:a,io:t,processors:n});return O(e,o),$a(o,e),oo(o,e)},lo=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},uo=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},fo=(e,t)=>{lo(e,`minimum`,t),uo(e,`maximum`,t)},po=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},mo=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},ho=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},go=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},_o=(e,t)=>lo(e,`minimum`,t.minimum),vo=(e,t)=>uo(e,`maximum`,t.maximum),yo=e=>(t,n)=>{go(t,n.format);let[r,i]=e[n.format];lo(t,`minimum`,r),uo(t,`maximum`,i)},bo={greater_than:(e,t)=>lo(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>uo(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>po(e,t.value),number_format:yo(Se),bigint_format:yo(Ce),min_length:_o,max_length:vo,length_equals:(e,t)=>fo(e,t.length),min_size:_o,max_size:vo,size_equals:(e,t)=>fo(e,t.size),string_format:(e,t)=>{go(e,t.format),t.pattern&&mo(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)=>ho(e,t.mime)};function A(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)bo[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&lo(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&lo(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&uo(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&uo(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&po(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&ho(t,i.mime);for(let e of i.patterns??[])mo(t,e);return t}var xo={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},So=new Map([[yr,nn],[xr,rn]]),Co=e=>So.get(e)??e,wo=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=A(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=xo[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(Co);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}))])}},To=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=A(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)):Za(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}))])}},Eo=(e,t,n,r)=>{n.type=`boolean`},Do=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Oo=(e,t,n,r)=>{n.not={}},ko=(e,t,n,r)=>{let i=e._zod.def,a=f(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)},Ao=(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(Za(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(Za(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}},jo=(e,t,n,r)=>{Za(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},Mo=(e,t,n,r)=>{Za(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},No=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=A(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=O(a.element,t,{...r,path:[...r.path,`items`]})};function Po(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?Po(t.out):t.type===`catch`?Po(t.innerType):e._zod.optin}var Fo=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&Za(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)g(i.properties,e,O(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`?Po(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=O(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Io=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>O(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Lo=(e,t,n,r)=>{let i=e._zod.def,a=O(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=O(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)},Ro=(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)=>O(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?O(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`?Po(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}=A(e);typeof p==`number`&&(i.minItems=p),typeof m==`number`&&(i.maxItems=m)};function zo(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=zo(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=>zo(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`)?hn:mn).source)),p}var Bo=new WeakMap;function Vo(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 Bo.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=zo(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 Ho=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=A(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=O(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)g(i.patternProperties,Co(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=O(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=Bo.get(t);n||(n=[],Bo.set(t,n),t.deferred.push(()=>Vo(t))),n.push(e)}i.additionalProperties=O(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&Po(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))}},Uo=(e,t,n,r)=>{let i=e._zod.def,a=O(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`}]},Wo=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Go=Symbol();function Ko(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(Za(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),Go):JSON.parse(o)}var qo=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=Ko(i.defaultValue,e,t,n,r);o!==Go&&(n.default=o)},Jo=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=Ko(i.defaultValue,e,t,n,r);o!==Go&&(n._prefault=o)},Yo=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{Za(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},Xo=(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;O(o,t,r);let s=t.seen.get(e);s.ref=o},Zo=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Qo=(e,t,n,r)=>{let i=e._zod.def;O(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},$o=(e,t,n,r)=>{let i=e._zod.innerType;O(i,t,r);let a=t.seen.get(e);a.ref=i},es=new WeakSet([Object.prototype,Error.prototype]);function ts(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 j=C(`ZodError`,(e,t)=>{mt.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);es.has(n)||(es.add(n),ts(n,`format`,e=>t=>_t(e,t)),ts(n,`flatten`,e=>t=>gt(e,t)),ts(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,m,2)}),ts(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,m,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),ns=xt(j),rs=St(j),is=Ct(j),as=Tt(j),os=jt(j),ss=Mt(j),cs=Nt(j),ls=Pt(j),us=Ft(j),ds=It(j),fs=Lt(j),ps=Rt(j);function ms(){w.localeError||ct(Bi())}function hs(){w.memoizer||ct({memoizer:Li()})}var M=C(`ZodType`,(e,t)=>(ms(),E.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(y(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 ye(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Pc(e,t))},superRefine(e,t){return this.check(Fc(e,t))},overwrite(e){return this.check(za(e))},optional(){return mc(this)},exactOptional(){return gc(this)},nullable(){return vc(this)},nullish(){return mc(vc(this))},nonoptional(e){return wc(this,e)},array(){return B(this)},or(e){return U([this,e])},and(e){return ic(this,e)},transform(e){return Oc(this,fc(e))},default(e){return bc(this,e)},prefault(e){return Sc(this,e)},catch(e){return Ec(this,e)},pipe(e){return Oc(this,e)},readonly(){return Ac(this)},describe(e){let t=this.clone();return Wi.add(t,{description:e}),t},meta(...e){if(e.length===0)return Wi.get(this);let t=this.clone();return Wi.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 Ke(this,`~standard`,{...Vn(this),jsonSchema:{input:co(this,`input`),output:co(this,`output`)}})},set"~standard"(e){Ge(this,`~standard`,e)},parse:function e(t,n){return ns(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await rs(this,t,n,{callee:e})},safeParse(e,t){return is(this,e,t)},async safeParseAsync(e,t){return as(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Ge(this,`spa`,e)},validate(e,t){return Ot(this,e,t)},validateAsync(e,t){return At(this,e,t)},encode:function e(t,n){return os(this,t,n,{callee:e})},decode:function e(t,n){return ss(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await cs(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await ls(this,t,n,{callee:e})},safeEncode(e,t){return us(this,e,t)},safeDecode(e,t){return ds(this,e,t)},async safeEncodeAsync(e,t){return fs(this,e,t)},async safeDecodeAsync(e,t){return ps(this,e,t)},toJSONSchema(e){return so(this,{})(e)},get description(){return Wi.get(this)?.description},get _def(){return this._zod.def}}),gs=C(`_ZodString`,(e,t)=>{Hn.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wo(e,t,n,r)},qe({format:e=>A(e).format??null,minLength:e=>A(e).minimum??null,maxLength:e=>A(e).maximum??null},{regex(...e){return this.check(Na(...e))},includes(...e){return this.check(Ia(...e))},startsWith(...e){return this.check(La(...e))},endsWith(...e){return this.check(Ra(...e))},min(...e){return this.check(ja(...e))},max(...e){return this.check(Aa(...e))},length(...e){return this.check(Ma(...e))},nonempty(...e){return this.check(ja(1,...e))},lowercase(e){return this.check(Pa(e))},uppercase(e){return this.check(Fa(e))},trim(){return this.check(Va())},normalize(...e){return this.check(Ba(...e))},toLowerCase(){return this.check(Ha())},toUpperCase(){return this.check(Ua())},slugify(){return this.check(Wa())}})),_s=C(`ZodString`,(e,t)=>{Hn.init(e,t),gs.init(e,t)},{email(e){return this.check(qi(Ss,e))},url(e){return this.check($i(Es,e))},jwt(e){return this.check(ma(Hs,e))},emoji(e){return this.check(ea(Ds,e))},guid(e){return this.check(Ji(ws,e))},uuid(e){return this.check(Yi(Ts,e))},uuidv4(e){return this.check(Xi(Ts,e))},uuidv6(e){return this.check(Zi(Ts,e))},uuidv7(e){return this.check(Qi(Ts,e))},nanoid(e){return this.check(ta(Os,e))},cuid(e){return this.check(na(ks,e))},cuid2(e){return this.check(ra(As,e))},ulid(e){return this.check(ia(js,e))},base64(e){return this.check(da(Rs,e))},base64url(e){return this.check(fa(Bs,e))},xid(e){return this.check(aa(Ms,e))},ksuid(e){return this.check(oa(Ns,e))},ipv4(e){return this.check(sa(Ps,e))},ipv6(e){return this.check(ca(Fs,e))},cidrv4(e){return this.check(la(Is,e))},cidrv6(e){return this.check(ua(Ls,e))},e164(e){return this.check(pa(Vs,e))},datetime(e){return this.check(ha(vs,e))},date(e){return this.check(ga(ys,e))},time(e){return this.check(_a(bs,e))},duration(e){return this.check(va(xs,e))}});function N(e){return Ki(_s,e)}var P=C(`ZodStringFormat`,(e,t)=>{D.init(e,t),gs.init(e,t)}),vs=C(`ZodISODateTime`,(e,t)=>{sr.init(e,t),P.init(e,t)}),ys=C(`ZodISODate`,(e,t)=>{cr.init(e,t),P.init(e,t)}),bs=C(`ZodISOTime`,(e,t)=>{lr.init(e,t),P.init(e,t)}),xs=C(`ZodISODuration`,(e,t)=>{ur.init(e,t),P.init(e,t)}),Ss=C(`ZodEmail`,(e,t)=>{Gn.init(e,t),P.init(e,t)});function Cs(e){return qi(Ss,e)}var ws=C(`ZodGUID`,(e,t)=>{Un.init(e,t),P.init(e,t)}),Ts=C(`ZodUUID`,(e,t)=>{Wn.init(e,t),P.init(e,t)}),Es=C(`ZodURL`,(e,t)=>{$n.init(e,t),P.init(e,t)});function F(e){return $i(Es,e)}var Ds=C(`ZodEmoji`,(e,t)=>{er.init(e,t),P.init(e,t)}),Os=C(`ZodNanoID`,(e,t)=>{tr.init(e,t),P.init(e,t)}),ks=C(`ZodCUID`,(e,t)=>{nr.init(e,t),P.init(e,t)}),As=C(`ZodCUID2`,(e,t)=>{rr.init(e,t),P.init(e,t)}),js=C(`ZodULID`,(e,t)=>{ir.init(e,t),P.init(e,t)}),Ms=C(`ZodXID`,(e,t)=>{ar.init(e,t),P.init(e,t)}),Ns=C(`ZodKSUID`,(e,t)=>{or.init(e,t),P.init(e,t)}),Ps=C(`ZodIPv4`,(e,t)=>{dr.init(e,t),P.init(e,t)}),Fs=C(`ZodIPv6`,(e,t)=>{mr.init(e,t),P.init(e,t)}),Is=C(`ZodCIDRv4`,(e,t)=>{hr.init(e,t),P.init(e,t)}),Ls=C(`ZodCIDRv6`,(e,t)=>{_r.init(e,t),P.init(e,t)}),Rs=C(`ZodBase64`,(e,t)=>{br.init(e,t),P.init(e,t)});function zs(e){return da(Rs,e)}var Bs=C(`ZodBase64URL`,(e,t)=>{Cr.init(e,t),P.init(e,t)}),Vs=C(`ZodE164`,(e,t)=>{wr.init(e,t),P.init(e,t)}),Hs=C(`ZodJWT`,(e,t)=>{Er.init(e,t),P.init(e,t)}),Us=C(`ZodNumber`,(e,t)=>{Dr.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>To(e,t,n,r),e.isFinite=!0},qe({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=A(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=A(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=A(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>A(e).format??null},{gt(e,t){return this.check(Da(e,t))},gte(e,t){return this.check(Oa(e,t))},min(e,t){return this.check(Oa(e,t))},lt(e,t){return this.check(Ta(e,t))},lte(e,t){return this.check(Ea(e,t))},max(e,t){return this.check(Ea(e,t))},int(e){return this.check(L(e))},safe(e){return this.check(L(e))},positive(e){return this.check(Da(0,e))},nonnegative(e){return this.check(Oa(0,e))},negative(e){return this.check(Ta(0,e))},nonpositive(e){return this.check(Ea(0,e))},multipleOf(e,t){return this.check(ka(e,t))},step(e,t){return this.check(ka(e,t))},finite(){return this}}));function I(e){return ya(Us,e)}var Ws=C(`ZodNumberFormat`,(e,t)=>{Or.init(e,t),Us.init(e,t)});function L(e){return ba(Ws,e)}var Gs=C(`ZodBoolean`,(e,t)=>{kr.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Eo(e,t,n,r)});function R(e){return xa(Gs,e)}var Ks=C(`ZodNull`,(e,t)=>{Ar.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Do(e,t,n,r)});function qs(e){return Sa(Ks,e)}var Js=C(`ZodUnknown`,(e,t)=>{jr.init(e,t),M.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function z(){return Ca(Js)}var Ys=C(`ZodNever`,(e,t)=>{Mr.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oo(e,t,n,r)});function Xs(e){return wa(Ys,e)}var Zs=C(`ZodArray`,(e,t)=>{hs(),Ir.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>No(e,t,n,r),e.element=t.element},{min(e,t){return this.check(ja(e,t))},nonempty(e){return this.check(ja(1,e))},max(e,t){return this.check(Aa(e,t))},length(e,t){return this.check(Ma(e,t))},unwrap(){return this.element}});function B(e,t){return Ga(Zs,e,t)}var Qs=C(`ZodObject`,(e,t)=>{hs(),Hr.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fo(e,t,n,r),$e(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return G(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(y(this._zod.def,{catchall:e}))},passthrough(){return this.clone(y(this._zod.def,{catchall:z()}))},loose(){return this.clone(y(this._zod.def,{catchall:z()}))},strict(){return this.clone(y(this._zod.def,{catchall:Xs()}))},strip(){return this.clone(y(this._zod.def,{catchall:void 0}))},extend(e){return De(this,e)},safeExtend(e){return ke(this,e)},merge(e){return Ae(this,e)},pick(e){return we(this,e)},omit(e){return Ee(this,e)},partial(...e){return je(pc,this,e[0])},exactPartial(...e){return je(hc,this,e[0],`exactPartial`)},required(...e){return Me(Cc,this,e[0])}});function V(e,t){return new Qs({type:`object`,shape:e??{},...b(t)})}function H(e,t){return new Qs({type:`object`,shape:e,catchall:Xs(),...b(t)})}function $s(e,t){return new Qs({type:`object`,shape:e,catchall:z(),...b(t)})}var ec=C(`ZodUnion`,(e,t)=>{Wr.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Io(e,t,n,r),e.options=t.options});function U(e,t){return new ec({type:`union`,options:e,...b(t)})}var tc=C(`ZodDiscriminatedUnion`,(e,t)=>{ec.init(e,t),Kr.init(e,t)});function nc(e,t,n){return new tc({type:`union`,options:t,discriminator:e,...b(n)})}var rc=C(`ZodIntersection`,(e,t)=>{qr.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lo(e,t,n,r)});function ic(e,t){return new rc({type:`intersection`,left:e,right:t})}var ac=C(`ZodTuple`,(e,t)=>{hs(),Xr.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ro(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 pc({type:`optional`,innerType:e}))})}});function oc(e,t,n){let r=t instanceof E;return new ac({type:`tuple`,items:e,rest:r?t:null,...b(r?n:t)})}var sc=C(`ZodRecord`,(e,t)=>{hs(),ei.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ho(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function W(e,t,n){return!t||!t._zod?new sc({type:`record`,keyType:N(),valueType:e,...b(t)}):new sc({type:`record`,keyType:e,valueType:t,...b(n)})}function cc(e,t,n){return new sc({type:`record`,keyType:e,valueType:t,...b(n),partial:!0})}var lc=C(`ZodEnum`,(e,t)=>{ti.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ko(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 lc({...t,checks:[],...b(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 lc({...t,checks:[],...b(r),entries:i})}});function G(e,t){return new lc({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...b(t)})}var uc=C(`ZodLiteral`,(e,t)=>{ni.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ao(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 K(e,t){return new uc({type:`literal`,values:Array.isArray(e)?e:[e],...b(t)})}var dc=C(`ZodTransform`,(e,t)=>{hs(),ri.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mo(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new st(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Ue(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(Ue(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function fc(e){return new dc({type:`transform`,transform:e})}var pc=C(`ZodOptional`,(e,t)=>{ai.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function mc(e){return new pc({type:`optional`,innerType:e})}var hc=C(`ZodExactOptional`,(e,t)=>{oi.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function gc(e){return new hc({type:`optional`,innerType:e})}var _c=C(`ZodNullable`,(e,t)=>{si.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function vc(e){return new _c({type:`nullable`,innerType:e})}var yc=C(`ZodDefault`,(e,t)=>{ci.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function bc(e,t){return new yc({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ge(t)}})}var xc=C(`ZodPrefault`,(e,t)=>{ui.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Sc(e,t){return new xc({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ge(t)}})}var Cc=C(`ZodNonOptional`,(e,t)=>{di.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function wc(e,t){return new Cc({type:`nonoptional`,innerType:e,...b(t)})}var Tc=C(`ZodCatch`,(e,t)=>{mi.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ec(e,t){return new Tc({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:tt(t)})}var Dc=C(`ZodPipe`,(e,t)=>{hi.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xo(e,t,n,r),e.in=t.in,e.out=t.out});function Oc(e,t){return new Dc({type:`pipe`,in:e,out:t})}var kc=C(`ZodReadonly`,(e,t)=>{_i.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ac(e){return new kc({type:`readonly`,innerType:e})}var jc=C(`ZodLazy`,(e,t)=>{yi.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$o(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function Mc(e){return new jc({type:`lazy`,getter:e})}var Nc=C(`ZodCustom`,(e,t)=>{bi.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jo(e,t,n,r)});function Pc(e,t={}){return Ka(Nc,e,t)}function Fc(e,t){return qa(e,t)}function q(e){return ha(vs,e)}function Ic(e){return ga(ys,e)}H({jsonrpc:K(`2.0`),id:U([N(),L()]),method:N().min(1),params:z().optional()}),H({jsonrpc:K(`2.0`),method:N().min(1),params:z().optional()});var Lc=H({code:L(),message:N(),data:z().optional()});U([H({jsonrpc:K(`2.0`),id:U([N(),L()]),result:z()}),H({jsonrpc:K(`2.0`),id:U([N(),L(),qs()]),error:Lc})]);var Rc={parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603,conflict:-32001,notFound:-32002,invalid:-32003,forbidden:-32004,unavailable:-32005},J=(e,t,n)=>({params:e,result:t,about:n}),zc=(e,t)=>({params:e,about:t}),Bc=class extends Error{code;data;constructor(e,t,n){super(t),this.name=`RpcError`,this.code=e,this.data=n}};async function Vc(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:Rc.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:Rc.invalidParams,message:yt(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 Bc?{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:Rc.internal,message:e instanceof Error?e.message:String(e)}}}}var Y=N().min(1).refine(e=>!e.startsWith(`/`)&&!e.split(`/`).includes(`..`),{message:`A path is inside the project.`}),Hc=N().regex(/^[0-9a-f]{64}$/u).nullable(),Uc=H({kind:G([`person`,`agent`,`tool`]),name:N().min(1)}),Wc=H({path:Y,size:L().nonnegative(),modified:I()}),Gc={"files/read":J(H({path:Y}),H({text:N(),version:Hc}),`A text file, with its version; a file that is not there reads as empty with version null.`),"files/write":J(H({path:Y,text:N(),over:Hc}),H({version:Hc}),`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":J(H({dir:Y,name:N().min(1),data:zs()}),H({path:Y}),`Keeps a file the person added, under a free name in the folder.`),"files/url":J(H({path:Y}),H({url:N()}),`An address a page can load the file from (a picture, a video).`),"files/list":J(H({dir:N()}),H({files:B(Wc),dirs:B(Y)}),`A folder's files and folders, as on disk.`),"files/move":J(H({from:Y,to:Y}),H({rewritten:B(Y)}),`Moves a file or a folder, and rewrites the relative imports and links that pointed at it, as an editor does.`),"files/remove":J(H({path:Y}),H({trash:N()}),`Moves a file or folder to the recycle bin (nothing is deleted).`),"files/trash":J(H({}),H({entries:B(H({id:N(),path:Y,removed:I()}))}),`What the recycle bin holds.`),"files/restore":J(H({id:N()}),H({path:Y}),`Puts a removed thing back where it was; refused while something is there.`),"files/watch":J(H({paths:B(Y).min(1)}),H({watch:N()}),"Starts telling `files/changed` for these files or folders."),"files/unwatch":J(H({watch:N()}),H({}),`Stops a watch.`)},Kc={"files/changed":zc(H({watch:N(),changes:B(H({path:Y,version:Hc,by:Uc.optional()}))}),`Files under a watch changed, other than by this client's own writes.`)},qc=[`ts`,`tsx`,`mts`,`js`,`jsx`,`mjs`],Jc=e=>qc.map(t=>`${e}.${t}`),Yc=[`video`,`slides`,`doc`,`sheet`,`scenery`,`website`],Xc={video:{entries:Jc(`video`),editor:`video`,name:`video`},slides:{entries:Jc(`slides`),editor:`slides`,name:`slides`},doc:{entries:[`doc.mdx`],editor:`doc`,name:`doc`},sheet:{entries:[`sheet.csv`],editor:`sheet`,name:`sheet`},scenery:{entries:Jc(`scenery`),editor:`scenery`,name:`3D scenery`},website:{entries:[`astro.config.mjs`,`astro.config.ts`,`astro.config.mts`,`astro.config.js`],editor:`website`,name:`website`}},Zc=Object.keys(Xc);new Map(Zc.flatMap(e=>Xc[e].entries.map(t=>[t,e])));var Qc=N().regex(/^[0-9a-f]{64}$/u,`A sha256 is 64 lowercase hexadecimal digits.`),X=I().nonnegative(),$c=q({offset:!0});function el(e){return H({$schema:N().optional(),...e})}var tl=nc(`type`,[H({type:K(`quote`),exact:N().min(1),prefix:N().optional(),suffix:N().optional()}),H({type:K(`cells`),range:N().regex(/^[A-Z]+[1-9]\d*(?::[A-Z]+[1-9]\d*)?$/u)}),H({type:K(`item`)})]),nl=H({kind:G([`person`,`agent`]),name:N().min(1)}),rl=H({id:N().min(1),author:nl,text:N().min(1),at:$c}),il=H({id:N().min(1),target:tl,resolved:R().default(!1),comments:B(rl).min(1)}),al=el({version:K(1),threads:B(il).default([])}),ol=H({fonts:B(N().min(1)).default([]),text:N().optional(),locales:B(N().min(2)).min(1).optional(),look:W(N(),z()).optional(),defaults:W(N(),z()).optional()}),sl=H({from:X,to:X}).refine(e=>e.to>e.from,{message:`A stretch ends after its start.`,path:[`to`]}),cl=I().min(0).max(2),ll=el({version:K(1),take:N().optional(),remove:B(H({from:L().nonnegative(),to:L().nonnegative(),text:N().optional()}).refine(e=>e.to>=e.from,{message:`A range ends at or after its start.`,path:[`to`]})).optional(),sounds:B(sl).optional(),inWord:B(sl).optional(),maxPause:I().min(.05).max(10).optional(),pad:H({before:cl.optional(),after:cl.optional()}).optional()}),ul=oc([I(),I(),I().nonnegative(),I().nonnegative()]),dl=W(N().min(1),ul);H({omitted:K(!0),sha256:Qc,bytes:L().nonnegative()});var fl=el({version:K(1),ai:R(),tool:N().optional(),model:N().optional(),input:W(N(),z()).optional(),inputHash:Qc.optional(),output:W(N(),z()).optional(),credits:I().nonnegative().optional(),at:$c,sha256:Qc,bytes:L().nonnegative(),source:H({library:N(),page:F(),authors:B(N()).default([]),license:N()}).optional()}),pl=/^[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)*$/u,ml=H({display:N(),speak:N()}),hl=H({declarations:B(N()).default([]),selectors:B(N()).default([]),match:W(N(),N()).refine(e=>Object.keys(e).length>0,`A match needs at least one case.`)}),gl=U([N(),ml,oc([hl])]),_l=W(N(),z()).superRefine((e,t)=>{for(let[n,r]of Object.entries(e)){if(n===`$schema`){typeof r!=`string`&&t.addIssue({code:`custom`,path:[n],message:`$schema is a string.`});continue}pl.test(n)||t.addIssue({code:`custom`,path:[n],message:`"${n}" is not a message key: letters, digits, _ and -, in segments joined by dots.`});let e=gl.safeParse(r);e.success||t.addIssue({code:`custom`,path:[n],message:Array.isArray(r)?`A message with variants is [{ "declarations": […], "selectors": […], "match": {…} }]: ${e.error.issues.map(e=>e.message).join(`; `)}`:`A message is a string, { display, speak }, or [{ declarations, selectors, match }].`})}}).transform(e=>{let t={...e};return delete t.$schema,t}),vl=oc([I(),I(),I(),I()]),yl=V({t:X,score:I()}),Z=I().nullable(),Q=I().int().nonnegative(),bl=V({index:Q,start:X,end:X,words:oc([I().int(),I().int()]),text:N(),punctuation:R(),pauseAfter:X.optional()}),xl=V({after:Q,start:X,end:X,dur:X}),Sl=V({t:X,cut:yl.optional(),weak:yl.optional(),pause:V({start:X,end:X,dur:X}).optional(),sentence:Q.optional()}),Cl=V({id:Q,text:N(),box:vl,height:I(),conf:I(),words:Q,upper:I().min(0).max(1),start:X,end:X,spans:B(oc([X,X])),seconds:X,seen:I().int().positive(),frames:I().min(0).max(1),spread:I().min(0).max(1),said:I().min(0).max(1)}),wl=V({start:X,end:X,dur:X,said:N(),words:Q,wordsPerMinute:I().nonnegative(),cuts:B(X),shots:I().int().positive(),cutsPerMinute:I().nonnegative(),text:B(Q),textSeconds:X}).extend({index:Q,name:N(),sentences:oc([I().int(),I().int()]).optional()}),Tl=V({cutsPerMinute:I().nonnegative(),meanShot:X,medianShot:X,wordsPerMinute:I().nonnegative(),speakingRate:I().nonnegative(),timeToFirstWord:X.optional(),timeToFirstCut:X.optional(),textShare:I().min(0).max(1),speechShare:I().min(0).max(1),tempo:V({bpm:I().positive(),confidence:I().min(0),candidates:B(V({bpm:I(),r:I(),score:I()})).optional(),prior:I().optional()}).optional(),onsetsPerMinute:I().nonnegative()}),El=V({seconds:X,p10:I(),median:I(),p90:I()}),Dl=V({gap:X,edge:X,voiced:I().min(0).max(100),whole:El,words:El.optional(),between:El.extend({voicedShare:I().min(0).max(1),onsetsPerMinute:I().nonnegative()}).optional(),floor:I()}),Ol=V({params:W(N(),z()),frames:V({tone:Q,color:Q,motion:Q}),luma:V({p1:Z,p50:Z,p99:Z}),blackShare:Z,noise:Z,sharpness:Z,saturation:Z,warmth:Z,motion:V({speed:V({p50:Z,p90:Z}),shake:V({p50:Z,p90:Z}),stillShare:Z,runs:Q}),sharpnessBySpeed:B(V({from:I(),to:Z,frames:Q,sharpness:Z})),noiseByLuma:B(V({from:I(),to:I(),blocks:Q,noise:Z,median:Z})),shake:B(V({start:X,end:X,rms:I(),peaks:B(V({hz:I(),share:I()})),flatness:I()}))}),kl=V({frames:Q,reach:B(V({drop:I(),hz:Z})),rolloff95:Z,rolloff99:Z,steps:B(V({hz:I(),db:I()}))}),Al=V({loudness:V({integrated:Z,range:Z,truePeak:Z}),recording:V({params:W(N(),z()),spectrum:B(V({hz:I(),db:I()})),dynamics:V({spread:I(),crest:I()})}).loose(),bandwidth:kl.extend({params:W(N(),z())}),voice:kl.optional()}),jl=V({item:N(),combo:W(N(),N()),format:N(),platform:N().optional(),export:V({type:N(),crf:I().optional(),maxKbps:I().optional()}),video:V({codec:N(),profile:N().optional(),kbps:I(),width:I().int().positive(),height:I().int().positive(),fps:I().positive(),preset:N().optional()}).optional(),audio:U([V({codec:N(),kbps:I(),rate:I(),channels:I()}),V({missing:N(),instead:N()})]),joins:B(V({t:X,kind:N(),part:N().optional(),score:I(),margin:I(),cut:R()})),unmeant:B(V({t:X,score:I(),margin:I()}))});V({version:K(1),id:N(),source:V({file:N(),url:N().optional(),title:N().optional(),sha256:Qc}),analysedAt:N(),duration:X,width:I().int().positive(),height:I().int().positive(),fps:I().positive(),encoding:V({codec:N().optional(),bitrate:I().positive().optional(),audio:V({codec:N().optional(),profile:N().optional(),bitrate:I().positive().optional(),rate:I().positive().optional(),channels:I().int().positive().optional()}).optional()}).optional(),words:N().optional(),wordCount:Q,asr:N().optional(),wordsMissing:V({code:N().optional(),message:N(),hint:N().optional(),instead:N()}).optional(),shots:V({threshold:I().min(0).max(1),minShot:I().nonnegative(),weakFloor:I().min(0).max(1),prominence:I().nonnegative(),cuts:B(yl),weak:B(yl),candidates:B(V({t:X,score:I(),source:G([`jump`,`change`]),around:I(),passes:R()})).optional()}),speech:V({pause:X,sentences:B(bl),pauses:B(xl),gaps:B(xl).optional()}),boundaries:V({cutWithin:X,candidates:B(Sl)}),ocr:V({engine:N(),confidence:V({word:I().min(0).max(100),short:I().min(0).max(100)}),frames:Q,samePlace:I(),saidWithin:X,low:B(V({t:X,text:N(),conf:I(),box:vl})).optional()}),text:B(Cl),pacing:Tl,sound:Dl.optional(),segments:V({rule:N(),pause:X,cutWithin:X,minLength:X,list:B(wl).min(1)}),sheets:B(N()),picture:Ol,audio:Al.optional(),served:jl.optional()});var Ml=H({start:X,end:X,name:N().min(1).optional(),role:N().min(1).optional(),picture:N().optional(),onScreen:B(N()).optional(),notes:N().optional()}),Nl=el({version:K(1).default(1),summary:N().optional(),layout:N().optional(),hook:N().optional(),sections:B(Ml).min(1),captions:H({lines:B(Q).optional(),style:N().optional()}).optional(),watermarks:B(Q).optional(),notes:N().optional(),labels:W(N(),U([N(),I(),R(),B(N())])).optional()}),Pl=N().regex(/^[A-Za-z0-9_-]+$/u,`A name is letters, digits, _ and -.`),Fl=Mc(()=>U([N(),ml,hl,B(Fl),W(Pl,Fl)])),Il=H({id:Pl,say:U([N(),hl]).optional(),screen:W(Pl,Fl).optional()}),Ll=H({title:N().optional(),text:W(Pl,Fl).optional(),parts:B(Il).default([])}).superRefine((e,t)=>{let n=new Set;e.parts.forEach((e,r)=>{n.has(e.id)&&t.addIssue({code:`custom`,path:[`parts`,r,`id`],message:`Two parts are "${e.id}".`}),n.add(e.id)})}),Rl=[`text`,`number`,`select`,`multi-select`,`date`,`checkbox`,`url`,`email`,`phone`,`file`],zl=[`gray`,`brown`,`red`,`orange`,`yellow`,`green`,`blue`,`purple`,`pink`],Bl=N().regex(/\S/u),Vl=U([N().regex(/\S/u),I(),R(),H({name:U([N().regex(/\S/u),I()]),color:G(zl).optional()})]),Hl=e=>String(typeof e==`object`?e.name:e).trim(),Ul=N().regex(/^[^"]*[^"\s][^"]*$/u),Wl=G([`plain`,`percent`,`currency`]),Gl=U([Wl,H({style:Wl.nullable().optional(),decimals:L().min(0).max(10).optional(),currency:N().regex(/^[A-Za-z]{3}$/u).optional(),thousands:R().optional()})]),Kl=G([`iso`,`short`,`long`]),ql=U([Kl,H({style:Kl.nullable().optional(),time:R().optional()})]),Jl={width:I().positive().optional(),wrap:R().optional()};function Yl(e,t){let n=e.separator??`;`,r=new Set;(e.options??[]).forEach((e,i)=>{let a=Hl(e);a.includes(n)&&t.addIssue({code:`custom`,path:[`options`,i],message:`"${a}" has the separator ${JSON.stringify(n)} in it`}),r.has(a)&&t.addIssue({code:`custom`,path:[`options`,i],message:`"${a}" is an option twice`}),r.add(a)})}var Xl=U([H({type:G([`text`,`checkbox`,`url`,`email`,`phone`]).nullable().optional(),...Jl}),H({type:K(`number`),format:Gl.optional(),...Jl}),H({type:K(`date`),format:ql.optional(),...Jl}),H({type:K(`select`),options:B(Vl).optional(),...Jl}).superRefine(Yl),H({type:K(`multi-select`),options:B(Vl).optional(),separator:Ul.optional(),...Jl}).superRefine(Yl),H({type:K(`file`),separator:Ul.optional(),height:I().positive().optional(),...Jl})]),Zl=U([qs(),G(Rl),Xl]),Ql=U([qs(),H({title:U([N(),I()]).optional(),key:Bl.optional(),primary:Bl.optional(),columns:U([qs(),W(N(),Zl)]).optional()})]),$l=H({text:N().min(1),start:X,end:X,confidence:I().min(0).max(1).optional()}).refine(e=>e.end>=e.start,{message:`A word ends at or after its start.`,path:[`end`]}),eu={words:{schema:el({version:K(1),language:N().min(2).optional(),duration:X.optional(),model:N().optional(),words:B($l)}).refine(e=>e.words.every((t,n)=>n===0||t.start>=(e.words[n-1]?.start??0)),{message:`Words are in the order they are said.`,path:[`words`]}),files:[`**/*.words.json`],about:`The words said in an audio or video file, with their times.`},edits:{schema:ll,files:[`**/edits/*.json`],about:`A recording's cut list.`},elements:{schema:dl,files:[`**/*.elements.json`],about:`A page screenshot's named elements, each its box in the picture's pixels.`},gen:{schema:fl,files:[`**/*.gen.json`],about:`How a media file was made, and where it came from.`},comments:{schema:al,files:[`**/comments.json`],about:`What was said about an item, in threads.`},script:{schema:Ll,files:[`**/script.*.yaml`],about:`An item's words in one language.`},messages:{schema:_l,files:[`assets/text/*.json`],about:`Words several items share, in one language.`},sheet:{schema:Ql,files:[`**/sheet.yaml`],about:`What a sheet's columns are.`},interpretation:{schema:Nl,files:[`**/reference/*/interpretation.json`],about:`What the agent concludes of a reference video: its sections, captions, watermarks and labels.`},config:{schema:ol,files:[],about:`allyhub.config.ts's settings.`}};function tu(e,t){let n=eu[e].schema.safeParse(t);return n.success?{ok:!0,value:n.data}:{ok:!1,problems:n.error.issues.map(e=>({path:e.path.map(String).join(`.`),message:e.message}))}}var nu={item:Y,version:N().optional()},ru=H({mime:N().regex(/^image\//u),data:zs()}),iu=$s({code:N(),level:G([`error`,`warn`]),message:N(),piece:N().optional(),part:N().optional(),t:I().optional()}),au=$s({kind:N(),data:z()}),ou=$s({fps:I(),width:I(),height:I(),duration:I(),parts:B(z())}),su=H({status:G([`off`,`waiting`,`running`,`done`,`failed`]),revision:L().nonnegative(),problems:B(iu),facts:B(au),versions:H({total:L(),loaded:L(),reused:L()}).optional(),error:N().optional()}),cu=H({id:N(),item:Y,versions:B(N()),types:B(N()),state:G([`queued`,`running`,`done`,`failed`,`cancelled`]),progress:I().min(0).max(1),files:B(Y),error:N().optional()}),lu=H({file:Y,status:G([`running`,`done`,`failed`]),message:N(),share:I().min(0).max(1).optional()}),uu=oc([I(),I(),I()]),du=H({url:N(),probe:N()}),fu={"project/items":J(H({}),H({items:B(H({kind:G(Zc),dir:Y,entry:Y,title:N().optional()})),folder:N(),name:N(),revision:L().nonnegative()}),`The project's items, as the build finds them.`),"video/versions":J(H({item:Y}),H({piece:N(),kind:G([`video`,`slides`]),title:N().optional(),width:I(),height:I(),versions:B(H({key:N(),lang:N().optional()}))}),`A video's or a deck's versions, one per language: what its stage, its timeline and its exports are asked for.`),"video/stage":J(H({...nu,start:H({t:I().nonnegative().optional(),part:N().optional(),offset:I().nonnegative().optional(),dur:I().positive().optional()}).optional(),play:R().optional(),chrome:R().optional()}),du,`The address of a version's stage page, for a sandboxed frame: it plays the piece and talks to its parent by postMessage.`),"video/timeline":J(H(nu),H({timeline:ou,text:B(z())}),`A version's timeline, drawn nowhere.`),"video/still":J(H({...nu,t:I().nonnegative().optional()}),H({t:I(),image:ru,width:L().positive(),height:L().positive(),duration:I().nonnegative()}),`A moment of a version as the render draws it, as a picture.`),"check/results":J(H({}),su,`The check run after edits, as it stands.`),"check/run":J(H({}),H({}),`Runs the check again now.`),"export/start":J(H({item:Y,versions:B(N()).optional(),types:B(N().min(1)).max(10).optional()}),H({job:cu}),"Exports an item (its versions, as file types) into .allyhub/out/; `export/changed` says how it goes."),"export/cancel":J(H({job:N()}),H({}),`Stops an export.`),"export/list":J(H({}),H({jobs:B(cu)}),`The exports asked for since the server started.`),"scenery/viewer":J(H({item:Y,camera:H({position:uu,target:uu}).optional()}),du,`The address of a scenery's viewer page, for a sandboxed frame: it tells what the person does by postMessage.`)},pu={"project/changed":zc(H({revision:L().nonnegative()}),`The build saw a change: a stage or a timeline asked for now is the new one's.`),"check/changed":zc(su,`The check started, ended or failed.`),"export/changed":zc(H({job:cu}),`An export moved on.`),"index/changed":zc(H({jobs:B(lu)}),`Making what the media index lacks moved on.`)},mu=G([`light`,`dark`]),hu=H({locale:N().min(2),theme:mu,agent:H({name:N().min(1)}).optional(),project:H({name:N().min(1)}),item:H({kind:G(Zc),dir:Y,entry:Y}),editor:G(Yc)}),gu=nc(`type`,[H({type:K(`file`),path:Y,line:L().positive().optional()}),H({type:K(`browser`),url:F({protocol:/^https?$/u}).optional(),tabId:N().min(1).optional()})]),_u={"host/context":J(H({}),hu,`Where the editor runs.`),"items/open":J(H({target:gu}),H({}),`Shows another item, a file or a page, where the host shows things.`),"storage/get":J(H({key:N().min(1)}),H({value:z()}),`What the editor kept for this person on this computer (a hand sort, what was last seen), or null.`),"storage/set":J(H({key:N().min(1),value:z()}),H({}),`Keeps a value for this person on this computer; null removes it.`),"editor/state":J(H({state:G([`saved`,`saving`,`unsaved`,`error`]),message:N().optional()}),H({}),`Says whether what the person typed is saved.`),"editor/context":J(H({text:N(),at:H({t:I().nonnegative(),version:N()}).optional(),picture:H({x:I(),y:I(),width:I().positive(),height:I().positive()}).optional()}),H({}),`Tells the host what the editor shows, as MCP Apps' ui/update-model-context does: what a note the person makes on it is about.`),"tools/call":J(H({name:N().min(1),arguments:W(N(),z()).default({})}),H({result:z()}),`Runs one of the project server's tools (tools.ts's PROJECT_TOOLS), for an editor that needs more than files (a video's preview, a still).`)};({...Kc,...pu});var vu={...Gc,..._u};H({error:H({code:N().regex(/^[a-z][a-z0-9-]*$/u),message:N().min(1),hint:N().optional()})}),V({issuer:F(),authorization_endpoint:F(),token_endpoint:F(),device_authorization_endpoint:F(),revocation_endpoint:F(),code_challenge_methods_supported:B(N()).refine(e=>e.includes(`S256`),{message:`The server must take S256 PKCE challenges.`})}),V({devices:B(V({id:N(),client:N(),signedInAt:q(),lastActiveAt:q()}))}),V({access_token:N().min(1),token_type:N(),expires_in:I().positive(),refresh_token:N().min(1).optional(),scope:N().optional()}),V({error:N(),error_description:N().optional()}),V({device_code:N().min(1),user_code:N().min(1),verification_uri:F(),verification_uri_complete:F().optional(),expires_in:I().positive(),interval:I().positive().optional()});var yu=H({id:N().min(1),email:Cs(),name:N().optional(),organization:H({id:N().min(1),name:N()}).optional()});H({version:K(1),url:F(),issuer:F(),account:yu,refreshToken:N().min(1),access:H({token:N().min(1),expiresAt:q({offset:!0})}).optional(),since:q({offset:!0})}),H({accessToken:N().min(1),expiresAt:q({offset:!0}),account:yu});var bu=[`allyhub:component`,`allyhub:template`,`allyhub:scenery`,`allyhub:model`],xu=N().regex(/^[a-z0-9][a-z0-9-]*$/u),Su=H({path:N().min(1),target:N().min(1),sha256:N().regex(/^[0-9a-f]{64}$/u),content:N().optional()}),Cu=H({$schema:N().optional(),name:xu,type:G(bu),title:N().min(1),description:N().min(1),author:N().optional(),license:N().min(1),dependencies:B(N()).default([]),registryDependencies:B(xu).default([]),files:B(Su).min(1),categories:B(N()).default([]),preview:N().optional()});H({$schema:N().optional(),name:N().min(1),homepage:F().optional(),items:B(Cu.pick({name:!0,type:!0,title:!0,description:!0,categories:!0,preview:!0}))});var wu=[`darwin-arm64`,`darwin-x64`,`linux-x64`,`linux-arm64`,`win32-x64`],Tu=N().regex(/^[0-9a-f]{64}$/u),Eu=N().min(1).refine(e=>!e.startsWith(`/`)&&!e.split(/[\\/]/u).includes(`..`),{message:`A path stays inside the runtime's folder.`}),Du=H({url:F({protocol:/^https$/u}),sha256:Tu,size:L().positive(),unpack:G([`none`,`zip`,`tgz`]).default(`none`),name:Eu.optional(),check:B(H({path:Eu,sha256:Tu})).default([]),executable:R().default(!1),bins:W(N().regex(/^[a-z0-9][a-z0-9-]*$/u),Eu).default({})}),Ou=H({about:N().min(1),version:N().min(1),license:N().min(1),homepage:F().optional(),platforms:cc(U([G(wu),K(`any`)]),B(Du).min(1))});H({$schema:N().optional(),version:K(1),runtimes:W(N().regex(/^[a-z0-9][a-z0-9-]*$/u),Ou)}),V({credits:I(),held:I(),owed:I(),plan:V({id:N(),name:N(),interval:G([`month`,`year`]),status:N(),renewsAt:q().nullable(),endsAt:q().nullable()}).nullable(),autoTopUp:V({below:I(),amountCents:I(),stopped:N().nullable()}).nullable()}),V({plans:B(V({id:N(),name:N(),monthlyCredits:I(),prices:B(V({interval:G([`month`,`year`]),amountCents:I(),currency:N()}))})),topUp:V({currency:N(),creditsPerDollar:I(),minCents:I(),maxCents:I()})}),V({days:B(V({day:Ic(),credits:I()}))}),U([H({plan:N(),interval:G([`month`,`year`])}),H({topUpCents:I().int()})]),H({below:I().nonnegative(),amountCents:I().int().positive()}),V({models:B($s({id:N().min(1),name:N().min(1),reasoning:R().optional(),input:B(N()).optional(),contextWindow:I().int().positive().optional(),maxOutput:I().int().positive().optional()})).min(1),defaultModel:N().min(1)});var ku=W(N(),z()),Au=V({meter:N().min(1),credits:I().nonnegative(),field:N().optional(),size:I().int().positive().optional(),free:I().int().nonnegative().optional(),tierField:N().optional(),tiers:W(N(),I().nonnegative()).optional(),typical:I().nonnegative().optional()}),ju=V({baseCredits:I().nonnegative(),parts:B(Au)}),Mu=V({id:N().min(1),title:N().min(1),description:N().min(1)}),Nu=V({name:N().min(1),work:N().min(1),title:N().min(1),description:N().min(1),input:ku,output:ku,price:ju,long:R()});V({version:N().min(1),works:B(Mu),tools:B(Nu)}),H({input:W(N(),z())}),V({id:N().min(1),tool:N().min(1),status:G([`working`,`completed`,`failed`]),output:z().optional(),error:V({kind:N().min(1),message:N().min(1)}).optional(),credits:I().nonnegative().optional(),pollAfterMs:I().int().nonnegative().optional(),createdAt:N(),endedAt:N().optional()}),H({name:N().min(1).max(255),size:L().positive().max(1073741824),sha256:N().regex(/^[0-9a-f]{64}$/u),contentType:N().min(1).max(255)}),V({id:N().min(1),upload:V({url:F(),headers:W(N(),N())}).nullable()}),V({id:N().min(1),name:N()}),V({url:F()}),V({organizations:B(V({id:N(),name:N(),slug:N(),kind:G([`personal`,`team`]),role:N(),dissolvedAt:q().nullable()}))}),V({members:B(V({userId:N(),email:N(),name:N(),role:N(),limit:I().nullable(),used:I()}))}),H({monthly:I().nonnegative().nullable()}),V({studio:V({state:G([`running`,`paused`]),organizationId:N()}).nullable(),creditsPerHour:I()}),H({at:q().nullable()}),H({path:N().min(1).optional().describe(`The item to open: its folder or entry file, absolute or from the folder allyhub mcp runs in (launch/plan, launch/plan/doc.mdx); leave it out for the project's items`)});var Pu=nc(`type`,[H({type:K(`picture`),image:ru,width:L().positive(),height:L().positive(),duration:I().nonnegative().optional()}),H({type:K(`text`),lines:B(N())}),H({type:K(`table`),columns:B(N()),rows:B(B(N())),count:L().nonnegative()})]),Fu=H({kind:G(Zc),dir:Y,entry:Y,title:N().optional()});H({project:H({name:N().min(1)}),url:N().min(1),item:Fu.optional(),preview:Pu.optional(),items:B(Fu).optional()});var Iu=3e5,Lu=class{next=1;pending=new Map;listeners=new Map;stop;channel;timeout;constructor(e,t={}){this.channel=e,this.timeout=t.timeout??Iu,this.stop=e.listen(e=>{this.receive(e)})}request(e,t){let n=this.next++;return new Promise((r,i)=>{let a=setTimeout(()=>{this.pending.delete(n),i(new Bc(Rc.unavailable,`${e} had no answer.`))},this.timeout);this.pending.set(n,{resolve:r,reject:i,timer:a});try{this.channel.send({jsonrpc:`2.0`,id:n,method:e,params:t})}catch(e){clearTimeout(a),this.pending.delete(n),i(e instanceof Error?e:Error(String(e)))}})}on(e,t){let n=this.listeners.get(e);return n||(n=new Set,this.listeners.set(e,n)),n.add(t),()=>n.delete(t)}fail(e){for(let[t,n]of this.pending)clearTimeout(n.timer),n.reject(new Bc(Rc.unavailable,e)),this.pending.delete(t)}close(){this.stop(),this.fail(`The host closed.`),this.channel.close?.()}receive(e){if(typeof e!=`object`||!e)return;let t=e;if(t.jsonrpc!==`2.0`)return;if(typeof t.method==`string`&&!(`id`in t)){for(let e of this.listeners.get(t.method)??[])e(t.params);return}if(typeof t.id!=`number`)return;let n=this.pending.get(t.id);if(!n)return;this.pending.delete(t.id),clearTimeout(n.timer);let r=t.error;r?n.reject(new Bc(r.code,r.message,r.data)):n.resolve(t.result)}},Ru=(e,t,n)=>{let r=e.result.safeParse(t);if(!r.success)throw new Bc(Rc.internal,`The host's answer to ${n} is not what the protocol says.`);return r.data};function zu(e){let t={on:(t,n)=>e.on(t,n)};for(let[n,r]of Object.entries(vu))t[n]=async t=>Ru(r,await e.request(n,t??{}),n);return t}function Bu(e,t){let n=new Map,r={...e};for(let e of Object.keys(t)){let n=_u[e];r[e]=async r=>{let i=await Vc({[e]:n},{[e]:t[e]},{jsonrpc:`2.0`,id:0,method:e,params:r??{}});if(`error`in i)throw new Bc(i.error.code,i.error.message,i.error.data);return Ru(n,i.result,e)}}return r.on=(t,r)=>{let i=e.on(t,r),a=n.get(t);return a||(a=new Set,n.set(t,a)),a.add(r),()=>{i(),a.delete(r)}},r.notify=(e,t)=>{for(let r of n.get(e)??[])r(t)},r}var Vu=`/rpc`;function Hu(e,t){let n=new URL(e);return n.protocol===`http:`?n.protocol=`ws:`:n.protocol===`https:`&&(n.protocol=`wss:`),(n.pathname===`/`||n.pathname===``)&&(n.pathname=Vu),n.searchParams.set(`token`,t),n.toString()}function Uu(e,t){let n=new WebSocket(Hu(e,t)),r=[],i,a,o=new Promise((e,t)=>{i=e,a=t});o.catch(()=>void 0);let s,c=new Promise(e=>{s=e}),l=new Lu({send(e){let t=JSON.stringify(e);if(n.readyState===WebSocket.OPEN)n.send(t);else if(n.readyState===WebSocket.CONNECTING)r.push(t);else throw Error(`The connection to allyhub dev is closed.`)},listen(e){let t=t=>{if(typeof t.data==`string`)try{e(JSON.parse(t.data))}catch{}};return n.addEventListener(`message`,t),()=>{n.removeEventListener(`message`,t)}},close(){n.close()}});return n.addEventListener(`open`,()=>{for(let e of r.splice(0))n.send(e);i()}),n.addEventListener(`close`,()=>{a(Error(`The connection to allyhub dev did not open.`)),l.fail(`The connection to allyhub dev closed.`),s()}),Object.assign(zu(l),{opened:o,closed:c,close:()=>{l.close()}})}async function Wu(e,t,n){let{result:r}=await e[`tools/call`]({name:t,arguments:n}),i=fu[t].result.safeParse(r);if(!i.success)throw new Bc(Rc.internal,`The answer to the tool ${t} is not what the protocol says.`);return i.data}var Gu=8,Ku=e=>{if(!(e instanceof Bc)||e.code!==Rc.conflict)return;let t=e.data;return typeof t?.text==`string`&&(typeof t.version==`string`||t.version===null)?{text:t.text,version:t.version}:void 0},qu=class e{path;text;version;state=`saved`;error;host;delay;report;format;running;timer;dirty=!1;stale=!1;closed=!1;stops=[];stateListeners=new Set;constructor(e,t,n,r){this.host=e,this.path=t,this.text=n.text,this.version=n.version,this.delay=r.delay??500,this.report=r.report??!0}static async open(t,n,r={}){let i=new e(t,n,await t[`files/read`]({path:n}),r),{watch:a}=await t[`files/watch`]({paths:[n]});return i.stops.push(t.on(`files/changed`,e=>{e.watch===a&&e.changes.some(e=>e.path===n&&e.version!==i.version)&&i.changed()}),()=>{t[`files/unwatch`]({watch:a}).catch(()=>void 0)}),i}attach(e){this.format=e}onState(e){return this.stateListeners.add(e),()=>this.stateListeners.delete(e)}edited(){this.closed||(this.dirty=!0,this.set(`unsaved`),clearTimeout(this.timer),this.timer=setTimeout(()=>{this.kick()},this.delay))}flush(){return clearTimeout(this.timer),this.kick()}changed(){return this.stale=!0,this.kick()}async close(){await this.flush(),this.closed=!0;for(let e of this.stops.splice(0))e()}set(e,t){if(this.error=t,e!==this.state||t!==void 0){this.state=e;for(let t of this.stateListeners)t(e);this.report&&this.host[`editor/state`]&&this.host[`editor/state`]({state:e,...t===void 0?{}:{message:t}}).catch(()=>void 0)}}take(e,t){let n=this.text;this.text=e,this.version=t,e!==n&&this.format?.take(e,n)}waiting(){return this.dirty}kick(){return this.running??=this.loop(),this.running}async loop(){await Promise.resolve();let e=0;try{for(;this.dirty||this.stale;){if(this.stale){this.stale=!1;let e=await this.host[`files/read`]({path:this.path});this.take(e.text,e.version)}if(!this.dirty||!this.format)continue;this.dirty=!1;let t=this.format.save(this.text);if(t===void 0)this.set(`saved`);else{this.set(`saving`);try{let{version:e}=await this.host[`files/write`]({path:this.path,text:t,over:this.version});this.text=t,this.version=e,this.waiting()||this.set(this.format.save(this.text)===void 0?`saved`:`unsaved`)}catch(t){let n=Ku(t);if(!n){this.set(`error`,t instanceof Error?t.message:String(t));continue}if(this.take(n.text,n.version),++e>=Gu){this.set(`error`,`${this.path} keeps changing.`);continue}this.dirty=!0}}}}catch(e){this.dirty=!1,this.stale=!1,this.set(`error`,e instanceof Error?e.message:String(e))}finally{this.running=void 0}}},Ju=`allyhub.stage-sandbox`;function Yu(e){let t=e;return typeof t==`object`&&!!t&&t.allyhub===!0&&t.type===`probe`}function Xu(e){try{let t=e?.getItem(Ju);return t===`1`||t!==`0`&&void 0}catch{return}}async function Zu(e){let t=Xu(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(Ju,i?`1`:`0`)}catch{}return i}function Qu(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&&Yu(e.data)&&t()};return window.addEventListener(`message`,r),n.src=e,document.body.append(n),()=>{window.removeEventListener(`message`,r),n.remove()}}}var $u;function ed(e){let t;try{t=sessionStorage}catch{t=void 0}return $u??=Zu({open:Qu(e),storage:t}),$u}var td=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r)setTimeout(function(){r(e)},0);else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h)d[r]=void 0;else{if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}};new class extends td{};function nd(e,t){let n=0;for(;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function rd(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function id(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function ad(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function od(e,t){return id(e,t,``)}function sd(e,t){return ad(e,t,``)}function cd(e,t){return t.slice(0,ld(e,t))}function ld(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function ud(e,t){let n=[];for(let r of Array.from(t.segment(e))){let e=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function dd(e,t){if(t)return pd(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function fd(e,t){if(t)return pd(e,t)[0];let n=e.match(/^\s*/);return n?n[0]:``}function pd(e,t){if(!t)return[fd(e),dd(e)];if(t.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);let n=ud(e,t),r=n[0],i=n[n.length-1];return[/\s/.test(r)?r:``,/\s/.test(i)?i:``]}var md=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,hd=RegExp(`[${md}]+|\\s+|[^${md}]`,`ug`);new class extends td{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=ud(e,r)}else n=e.match(hd)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&gd(n,i,r,e,t.intlSegmenter),n=e,r=null,i=null)}),(r||i)&&gd(n,i,r,null,t.intlSegmenter),e}};function gd(e,t,n,r,i){if(t&&n){let[a,o]=pd(t.value,i),[s,c]=pd(n.value,i);if(e){let r=nd(a,s);e.value=ad(e.value,s,r),t.value=od(t.value,r),n.value=od(n.value,r)}if(r){let e=rd(o,c);r.value=id(r.value,c,e),t.value=sd(t.value,e),n.value=sd(n.value,e)}}else if(n){if(e){let e=fd(n.value,i);n.value=n.value.substring(e.length)}if(r){let e=fd(r.value,i);r.value=r.value.substring(e.length)}}else if(e&&r){let n=fd(r.value,i),[a,o]=pd(t.value,i),s=nd(n,a);t.value=od(t.value,s);let c=rd(od(n,s),o);t.value=sd(t.value,c),r.value=id(r.value,n,c),e.value=ad(e.value,n,n.slice(0,n.length-c.length))}else if(r){let e=fd(r.value,i),n=cd(dd(t.value,i),e);t.value=sd(t.value,n)}else if(e){let n=cd(dd(e.value,i),fd(t.value,i));t.value=od(t.value,n)}}new class extends td{tokenize(e){let t=RegExp(`(\\r?\\n)|[${md}]+|[^\\S\\n\\r]+|[^${md}]`,`ug`);return e.match(t)||[]}},new class extends td{constructor(){super(...arguments),this.tokenize=_d}equals(e,t,n){return n.ignoreWhitespace?(n.newlineIsToken&&e.includes(`
|
|
57
|
-
`)||(e=e.trim()),n.newlineIsToken&&t.includes(`
|
|
58
|
-
`)||(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
59
|
-
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
60
|
-
`)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function _d(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
61
|
-
`));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function vd(e){return e==`.`||e==`!`||e==`?`}new class extends td{tokenize(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(r==e.length-1){t.push(e.slice(n));break}if(vd(e[r])&&e[r+1].match(/\s/)){for(t.push(e.slice(n,r+1)),r=n=r+1;e[r+1]?.match(/\s/);)r++;t.push(e.slice(n,r+1)),n=r+1}}return t}},new class extends td{tokenize(e){return e.split(/([{}:;,]|\s+)/)}},new class extends td{constructor(){super(...arguments),this.tokenize=_d}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>t===void 0?n:t}=t;return typeof e==`string`?e:JSON.stringify(yd(e,null,null,r),null,` `)}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`),n)}};function yd(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i===void 0?``:i,e));let a=0;for(;a<t.length;a+=1)if(t[a]===e)return n[a];let o;if(Object.prototype.toString.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=yd(e[a],t,n,r,String(a));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e==`object`&&e){t.push(e),o={},n.push(o);let i=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)s=i[a],o[s]=yd(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}var bd=new class extends td{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};function xd(e,t,n){return bd.diff(e,t,n)}var Sd=1e3;function Cd(e,t,n=Sd){let r=[],i=0;for(;i<e.length&&i<t.length&&e[i]===t[i];)r.push([i,i]),i++;let a=e.length,o=t.length,s=[];for(;a>i&&o>i&&e[a-1]===t[o-1];)a--,o--,s.push([a,o]);let c=xd(e.slice(i,a),t.slice(i,o),{maxEditLength:n});if(c){let e=i,t=i;for(let n of c)if(n.added)t+=n.count;else if(n.removed)e+=n.count;else for(let i=0;i<n.count;i++)r.push([e++,t++])}return r.push(...s.reverse()),r}function wd(e,t,n){let r=Cd(e.map(n),t.map(n)),i=[],a=0,o=0;for(let[n,s]of[...r,[e.length,t.length]])(n>a||s>o)&&i.push({at:a,remove:n-a,insert:t.slice(o,s)}),a=n+1,o=s+1;return i.reverse()}var Td=[`en`,`zh-cn`,`zh-tw`,`ja`,`ko`,`es`,`fr`,`de`,`it`,`pt`,`ru`,`tr`,`vi`,`th`,`hi`],Ed={en:`en`,"zh-cn":`zh-CN`,"zh-tw":`zh-TW`,ja:`ja`,ko:`ko`,es:`es`,fr:`fr`,de:`de`,it:`it`,pt:`pt-BR`,ru:`ru`,tr:`tr`,vi:`vi`,th:`th`,hi:`hi`};function Dd(e){return typeof e==`string`&&Td.includes(e)}var Od=new Set([`hant`,`tw`,`hk`,`mo`]);function kd(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=>Od.has(e))?`zh-tw`:`zh-cn`}if(Dd(n))return n}}}function Ad(e){return e===void 0?`en`:kd([e])??`en`}function jd(e,t){return e[Ad(t)]}function Md(e){return{all:e,of:t=>jd(e,t)}}var Nd=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Pd=o(((e,t)=>{t.exports=Nd()})),$=l(d()),Fd=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Id=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Ld=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Rd=e=>{let t=Ld(e);return t.charAt(0).toUpperCase()+t.slice(1)},zd={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},Bd=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Vd=(0,$.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,$.createElement)(`svg`,{ref:c,...zd,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Fd(`lucide`,i),...!a&&!Bd(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,$.createElement)(e,t)),...Array.isArray(a)?a:[a]])),Hd=(e,t)=>{let n=(0,$.forwardRef)(({className:n,...r},i)=>(0,$.createElement)(Vd,{ref:i,iconNode:t,className:Fd(`lucide-${Id(Rd(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Rd(e),n};function Ud(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=Ud(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Wd(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ud(e))&&(r&&(r+=` `),r+=t);return r}var Gd=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Kd=Wd,qd=(e,t)=>n=>{if(t?.variants==null)return Kd(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=Gd(t)||Gd(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 Kd(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)},Jd=Pd(),Yd=(0,$.createContext)(null);function Xd(e){return(0,Jd.jsx)(Yd.Provider,{value:e.host,children:e.children})}function Zd(){let e=(0,$.useContext)(Yd);if(!e)throw Error(`An editor runs inside a HostProvider.`);return e}function Qd(e,t){let n=Zd(),r=(0,$.useEffectEvent)(t);(0,$.useEffect)(()=>n.on(e,e=>{r(e)}),[n,e])}function $d(){let e=Zd(),[t,n]=(0,$.useState)();return(0,$.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 ef(){try{return Xu(sessionStorage)}catch{return}}function tf(e){let[t,n]=(0,$.useState)(ef);return(0,$.useEffect)(()=>{if(t!==void 0||e===void 0)return;let r=!0;return ed(e).then(e=>{r&&n(e)}),()=>{r=!1}},[t,e]),t}export{s as A,zl as C,Bc as D,Rc as E,d as O,Rl as S,Zc as T,qu as _,tf as a,Bu as b,Hd as c,Md as d,Ad as f,wd as g,Cd as h,Qd as i,l as j,o as k,Pd as l,jd as m,Zd as n,qd as o,kd as p,$d as r,Wd as s,Xd as t,Ed as u,Wu as v,Xc as w,tu as x,Uu as y};
|