@chaibuilder/pages 0.16.7 → 0.16.9
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/dist/{2AITGKQY-BkyIOFBN.cjs → 2AITGKQY-BGZjtYdS.cjs} +1 -1
- package/dist/{2AITGKQY-BXiVm60u.js → 2AITGKQY-BmDJ4ubt.js} +2 -2
- package/dist/{NCMVHL6D-CnBMv9bF.cjs → NCMVHL6D-CRT9RlLF.cjs} +1 -1
- package/dist/{NCMVHL6D-C0JGE8Qr.js → NCMVHL6D-Dk4_u4LD.js} +2 -2
- package/dist/{ZDWCUMSJ-jR6OAwVS.cjs → ZDWCUMSJ-DEHPTCDq.cjs} +1 -1
- package/dist/{ZDWCUMSJ-Cs-CWvpw.js → ZDWCUMSJ-Ktzz_Tsg.js} +1 -1
- package/dist/_arrayEach-BoWUuJyH.js +44 -0
- package/dist/_arrayEach-CvixaZ6g.cjs +1 -0
- package/dist/abap-DV7Q1lGP.cjs +1 -0
- package/dist/abap-Y8Dl9g_6.js +6 -0
- package/dist/actionscript-3-DXOxkRa2.cjs +1 -0
- package/dist/actionscript-3-DZzbMeqX.js +6 -0
- package/dist/ada-D46EKCNf.cjs +1 -0
- package/dist/ada-vP6ak0IW.js +6 -0
- package/dist/{add-new-language-page-CKwMwrAg.js → add-new-language-page-BLNVUYeo.js} +2 -2
- package/dist/{add-new-language-page-UatKeIR2.cjs → add-new-language-page-jU1kF1AN.cjs} +1 -1
- package/dist/{add-new-page-BZ2av8fu.cjs → add-new-page-DKyY5ZY7.cjs} +1 -1
- package/dist/{add-new-page-BzBMJ3Cn.js → add-new-page-X9ytZJiO.js} +1 -1
- package/dist/ai-panel-content-Bi18WMi2.cjs +1 -0
- package/dist/ai-panel-content-ChDHNrKg.js +54 -0
- package/dist/ai-panel-default-lang-B6tYYmxI.cjs +3 -0
- package/dist/ai-panel-default-lang-CxmSDvNu.js +307 -0
- package/dist/ai-panel-other-lang-B0umwiEm.cjs +1 -0
- package/dist/ai-panel-other-lang-CicrT1I-.js +130 -0
- package/dist/ai-prompt-input-BOAqFpAN.js +4027 -0
- package/dist/ai-prompt-input-L_bHFj7w.cjs +45 -0
- package/dist/{ai-translation-prompt-DH7gwfqx.cjs → ai-translation-prompt-23g3VfWP.cjs} +1 -1
- package/dist/{ai-translation-prompt-B8VdHfLY.js → ai-translation-prompt-DoeWqKDZ.js} +1 -1
- package/dist/andromeeda-BIpZ7gaU.js +4 -0
- package/dist/andromeeda-DVDxRwp5.cjs +1 -0
- package/dist/angular-html-DPB4Rf0C.js +32 -0
- package/dist/angular-html-KMf2QdtP.cjs +1 -0
- package/dist/angular-ts-BxIbo3R1.cjs +1 -0
- package/dist/angular-ts-CTOR2ofC.js +21 -0
- package/dist/apache-BUjz-sD2.js +6 -0
- package/dist/apache-DL1xuH1f.cjs +1 -0
- package/dist/apex-CtcXmQ6V.js +6 -0
- package/dist/apex-UUd3Occv.cjs +1 -0
- package/dist/apl-CjNiDgad.js +16 -0
- package/dist/apl-Dj2G2M9w.cjs +1 -0
- package/dist/applescript-BPx7YFFu.js +6 -0
- package/dist/applescript-COilsSrZ.cjs +1 -0
- package/dist/ara-B6Lpq1YJ.cjs +1 -0
- package/dist/ara-Z2fSOxSw.js +6 -0
- package/dist/arc-CEYgkAY6.js +83 -0
- package/dist/arc-DQcgp6fe.cjs +1 -0
- package/dist/architecture-U656AL7Q-D9ThnYW7.js +5 -0
- package/dist/architecture-U656AL7Q-DXHyXosc.cjs +1 -0
- package/dist/architectureDiagram-VXUJARFQ-DJkKSCT6.cjs +36 -0
- package/dist/architectureDiagram-VXUJARFQ-xhCIZb18.js +4669 -0
- package/dist/asciidoc-B-pCoB3G.js +6 -0
- package/dist/asciidoc-DcKqW72n.cjs +1 -0
- package/dist/asm-BTWLY5ym.js +6 -0
- package/dist/asm-DYMFy-sD.cjs +1 -0
- package/dist/astro-CFFExE8Q.js +18 -0
- package/dist/astro-DAOP_Xq6.cjs +1 -0
- package/dist/aurora-x-BwoVEUWZ.js +4 -0
- package/dist/aurora-x-C5IpmIOG.cjs +1 -0
- package/dist/awk-Fb0P9dkn.js +6 -0
- package/dist/awk-IEszImW6.cjs +1 -0
- package/dist/ayu-dark-Cv7nTiif.cjs +1 -0
- package/dist/ayu-dark-CxPZkpb2.js +4 -0
- package/dist/ballerina-Dr6dU4hP.cjs +1 -0
- package/dist/ballerina-oZK-YekG.js +6 -0
- package/dist/bat-0FvbqU9S.js +6 -0
- package/dist/bat-DGkUhhn2.cjs +1 -0
- package/dist/beancount-Bv1Sweoy.cjs +1 -0
- package/dist/beancount-DqJEb89h.js +6 -0
- package/dist/berry-DZkhZ7K3.cjs +1 -0
- package/dist/berry-PwsHPR_K.js +6 -0
- package/dist/bibtex-BgA36Z3k.cjs +1 -0
- package/dist/bibtex-EULQRLY5.js +6 -0
- package/dist/bicep-BorU73w0.js +6 -0
- package/dist/bicep-DL0zb-7W.cjs +1 -0
- package/dist/blade-BYkiyM-T.cjs +1 -0
- package/dist/blade-CRa6j5zS.js +20 -0
- package/dist/blockDiagram-VD42YOAC-DqXdnG8y.cjs +122 -0
- package/dist/blockDiagram-VD42YOAC-zvZU2M01.js +2368 -0
- package/dist/blocks.d.ts +12 -0
- package/dist/bsl-9bVgFeM9.cjs +1 -0
- package/dist/bsl-NkNNwerW.js +8 -0
- package/dist/builder.d.ts +12 -0
- package/dist/c-CtlmKnPF.cjs +1 -0
- package/dist/c-eeMepfLm.js +6 -0
- package/dist/c4Diagram-YG6GDRKO-BpDWqFJi.js +1581 -0
- package/dist/c4Diagram-YG6GDRKO-COF9vwh9.cjs +10 -0
- package/dist/cadence-02UX7mW8.js +6 -0
- package/dist/cadence-DcbmM5v3.cjs +1 -0
- package/dist/cairo-DM6WF2e3.js +8 -0
- package/dist/cairo-li7sQsxU.cjs +1 -0
- package/dist/catppuccin-frappe-Bn4lgmUk.cjs +1 -0
- package/dist/catppuccin-frappe-D3cH2rXe.js +4 -0
- package/dist/catppuccin-latte-BPtsb8jD.cjs +1 -0
- package/dist/catppuccin-latte-C0LRGUW4.js +4 -0
- package/dist/catppuccin-macchiato-BLfpQWhT.cjs +1 -0
- package/dist/catppuccin-macchiato-c5wQ11TT.js +4 -0
- package/dist/catppuccin-mocha-COMta283.cjs +1 -0
- package/dist/catppuccin-mocha-WMD6Qvya.js +4 -0
- package/dist/channel-DMpDH8Tt.js +5 -0
- package/dist/channel-DshxF_w-.cjs +1 -0
- package/dist/chunk-4BX2VUAB-DOrHz66s.cjs +1 -0
- package/dist/chunk-4BX2VUAB-DcXzX0k2.js +9 -0
- package/dist/chunk-55IACEB6-MgFQOjd_.cjs +1 -0
- package/dist/chunk-55IACEB6-yEIZuruo.js +8 -0
- package/dist/chunk-B4BG7PRW-Bm0X0FwP.js +1376 -0
- package/dist/chunk-B4BG7PRW-Dw8okTHN.cjs +165 -0
- package/dist/chunk-DI55MBZ5-CY8rQYfB.cjs +220 -0
- package/dist/chunk-DI55MBZ5-Dzl4K5YZ.js +1382 -0
- package/dist/chunk-FMBD7UC4-DeDzgDPq.cjs +15 -0
- package/dist/chunk-FMBD7UC4-DsnO3YB7.js +19 -0
- package/dist/chunk-QN33PNHL-D0hZD6ce.cjs +1 -0
- package/dist/chunk-QN33PNHL-eCpJSQLd.js +20 -0
- package/dist/chunk-QZHKN3VN-0xh2Brzo.js +15 -0
- package/dist/chunk-QZHKN3VN-DPT45Qxb.cjs +1 -0
- package/dist/chunk-TZMSLE5B-B0DNnH2K.cjs +1 -0
- package/dist/chunk-TZMSLE5B-v44khzET.js +64 -0
- package/dist/clarity-PKm5CwqM.js +6 -0
- package/dist/clarity-gPuvqtpF.cjs +1 -0
- package/dist/classDiagram-2ON5EDUG-CatlwrWr.js +16 -0
- package/dist/classDiagram-2ON5EDUG-DZwYP3Mp.cjs +1 -0
- package/dist/classDiagram-v2-WZHVMYZB-CatlwrWr.js +16 -0
- package/dist/classDiagram-v2-WZHVMYZB-DZwYP3Mp.cjs +1 -0
- package/dist/clojure-CXJfHrL3.js +6 -0
- package/dist/clojure-OUsr1SUl.cjs +1 -0
- package/dist/cmake-BJz8BOTU.js +6 -0
- package/dist/cmake-jM6P58qY.cjs +1 -0
- package/dist/cobol-CcrsCSUZ.cjs +1 -0
- package/dist/cobol-HihOMwht.js +10 -0
- package/dist/codeowners-Bt9yU6NX.js +6 -0
- package/dist/codeowners-QhPK6lIJ.cjs +1 -0
- package/dist/codeql-D9-TdUN8.cjs +1 -0
- package/dist/codeql-DHkodjjI.js +6 -0
- package/dist/coffee-DGBR_nr_.js +8 -0
- package/dist/coffee-DycxIFwY.cjs +1 -0
- package/dist/common-lisp-C77gR-8i.cjs +1 -0
- package/dist/common-lisp-EVqT9Zhp.js +6 -0
- package/dist/coq-B0L9upzn.js +6 -0
- package/dist/coq-vlPdR5hP.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-CdqaV_In.js +2609 -0
- package/dist/cose-bilkent-S5V4N54A-oJ7CCCne.cjs +1 -0
- package/dist/cpp-Cj177cuW.js +18 -0
- package/dist/cpp-DvI2Eoso.cjs +1 -0
- package/dist/crystal-B_WXhL2O.cjs +1 -0
- package/dist/crystal-CRJyc4G-.js +18 -0
- package/dist/csharp-C902_8Dy.cjs +1 -0
- package/dist/csharp-COJ2mCKr.js +6 -0
- package/dist/css-CECN5uSL.js +6 -0
- package/dist/css-Do0mp2lm.cjs +1 -0
- package/dist/csv-CmYOceLb.js +6 -0
- package/dist/csv-DiEdJzSJ.cjs +1 -0
- package/dist/cue-D1vJRJEx.cjs +1 -0
- package/dist/cue-ZzumE7IT.js +6 -0
- package/dist/cypher-atSM3NsM.cjs +1 -0
- package/dist/cypher-jpdmjtA6.js +6 -0
- package/dist/cytoscape.esm-DdQZKk9f.js +18735 -0
- package/dist/cytoscape.esm-DkGgpG6d.cjs +331 -0
- package/dist/d-2qe3NhmZ.cjs +1 -0
- package/dist/d-CBagWSwH.js +6 -0
- package/dist/dagre-6UL2VRFP-DwJsczXN.cjs +4 -0
- package/dist/dagre-6UL2VRFP-ylnuUwh7.js +445 -0
- package/dist/dark-plus-CRFsux2L.js +4 -0
- package/dist/dark-plus-DwC1RSst.cjs +1 -0
- package/dist/dart-6ObCrKr9.js +6 -0
- package/dist/dart-Ds0_0fwe.cjs +1 -0
- package/dist/dax-CcDT-8dH.js +6 -0
- package/dist/dax-DbkQa40E.cjs +1 -0
- package/dist/defaultLocale-D7EN2tov.js +171 -0
- package/dist/defaultLocale-DIVzfLaQ.cjs +1 -0
- package/dist/{delete-page-Crpwn0Wk.cjs → delete-page-CSuwBSa6.cjs} +1 -1
- package/dist/{delete-page-Ck7tD4Hf.js → delete-page-D8gUlElz.js} +1 -1
- package/dist/desktop-B93p9R9O.js +6 -0
- package/dist/desktop-tn3MFXCZ.cjs +1 -0
- package/dist/diagram-PSM6KHXK-DPPOo04u.cjs +24 -0
- package/dist/diagram-PSM6KHXK-me6JcFi2.js +534 -0
- package/dist/diagram-QEK2KX5R-CfDWc-r0.js +221 -0
- package/dist/diagram-QEK2KX5R-atRnaXRv.cjs +43 -0
- package/dist/diagram-S2PKOQOG-BzM_Yydz.cjs +24 -0
- package/dist/diagram-S2PKOQOG-DvQBNtA7.js +143 -0
- package/dist/diff-BxzP2J8R.js +6 -0
- package/dist/diff-CA31fCOg.cjs +1 -0
- package/dist/{digital-asset-manager-BVrv1-r1.cjs → digital-asset-manager-B1NMros3.cjs} +1 -1
- package/dist/{digital-asset-manager-DgLKRrYj.js → digital-asset-manager-C-tiZy6C.js} +1 -1
- package/dist/docker-CsHqm9tx.js +6 -0
- package/dist/docker-zJpMwmYa.cjs +1 -0
- package/dist/dotenv-BMjVjUL1.js +6 -0
- package/dist/dotenv-DpcNCNek.cjs +1 -0
- package/dist/dracula-BNgwAJ-d.cjs +1 -0
- package/dist/dracula-BtZx2Kac.js +4 -0
- package/dist/dracula-soft-BHZ7sHFu.cjs +1 -0
- package/dist/dracula-soft-BKa-aqBv.js +4 -0
- package/dist/dream-maker-BkijXDkm.cjs +1 -0
- package/dist/dream-maker-PAx17jaB.js +6 -0
- package/dist/{duplicate-page-C7d1f7Ii.js → duplicate-page-BgR_Z5mB.js} +2 -2
- package/dist/{duplicate-page-CXUueWfr.cjs → duplicate-page-DfsShaR3.cjs} +1 -1
- package/dist/{dynamic-page-selector-DcWDnam4.cjs → dynamic-page-selector-B9LvdmAM.cjs} +1 -1
- package/dist/{dynamic-page-selector-D544FjmW.js → dynamic-page-selector-B_Il05Tb.js} +1 -1
- package/dist/edge-BYQkOzbF.js +12 -0
- package/dist/edge-DaIYN5Mx.cjs +1 -0
- package/dist/elixir-BH_wmMK4.cjs +1 -0
- package/dist/elixir-Dh036GMp.js +8 -0
- package/dist/elm-BtNbw_Cd.js +8 -0
- package/dist/elm-Dc4sEBjc.cjs +1 -0
- package/dist/emacs-lisp-C1UCIjUO.cjs +1 -0
- package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
- package/dist/erDiagram-Q2GNP2WA-BvcqZzam.js +842 -0
- package/dist/erDiagram-Q2GNP2WA-CIz-zXL5.cjs +60 -0
- package/dist/erb-BqFQADjR.cjs +1 -0
- package/dist/erb-CS4zioBv.js +10 -0
- package/dist/erlang-CB2cfp6Z.cjs +1 -0
- package/dist/erlang-DNcDT8Hi.js +8 -0
- package/dist/everforest-dark-DMCBqXCK.js +4 -0
- package/dist/everforest-dark-_sBMomR1.cjs +1 -0
- package/dist/everforest-light-BbXl82Em.js +4 -0
- package/dist/everforest-light-H0xoYxl0.cjs +1 -0
- package/dist/fennel-Bz9-EMMc.cjs +1 -0
- package/dist/fennel-N4WcXuKx.js +6 -0
- package/dist/fish-BTDEUgqH.js +6 -0
- package/dist/fish-DwmQKRZi.cjs +1 -0
- package/dist/flowDiagram-NV44I4VS-DNDFiS4P.js +1627 -0
- package/dist/flowDiagram-NV44I4VS-H3UO6GU6.cjs +162 -0
- package/dist/fluent-BMXUxfv1.js +6 -0
- package/dist/fluent-CJtpNuaO.cjs +1 -0
- package/dist/fortran-fixed-form-DUsA-VGo.js +8 -0
- package/dist/fortran-fixed-form-rAbNFykM.cjs +1 -0
- package/dist/fortran-free-form-DPIT_jbP.js +6 -0
- package/dist/fortran-free-form-DRAcQkel.cjs +1 -0
- package/dist/fsharp-CYOiIVNx.js +8 -0
- package/dist/fsharp-DVcRF7k-.cjs +1 -0
- package/dist/ganttDiagram-LVOFAZNH-3uLir5Ok.cjs +267 -0
- package/dist/ganttDiagram-LVOFAZNH-CuEk_EPv.js +2506 -0
- package/dist/gdresource-BwtMIoBm.js +10 -0
- package/dist/gdresource-CcLusmd_.cjs +1 -0
- package/dist/gdscript-BifyeYhI.js +6 -0
- package/dist/gdscript-DSegQKMB.cjs +1 -0
- package/dist/gdshader-Bk8fF6yr.js +6 -0
- package/dist/gdshader-DsmqQl4t.cjs +1 -0
- package/dist/genie-Dy2rU8CF.cjs +1 -0
- package/dist/genie-DzUvd7U9.js +6 -0
- package/dist/gherkin-BmiEVBJ1.cjs +1 -0
- package/dist/gherkin-DHRaV0YP.js +6 -0
- package/dist/git-commit-Bd32YZ0K.js +8 -0
- package/dist/git-commit-DlVDzq9L.cjs +1 -0
- package/dist/git-rebase-Bn4RLd7u.cjs +1 -0
- package/dist/git-rebase-ZWUFO_T4.js +8 -0
- package/dist/gitGraph-F6HP7TQM-BNgutOCt.js +5 -0
- package/dist/gitGraph-F6HP7TQM-DnzvXoTf.cjs +1 -0
- package/dist/gitGraphDiagram-NY62KEGX-CpjW-tAs.cjs +65 -0
- package/dist/gitGraphDiagram-NY62KEGX-DJ--wipu.js +712 -0
- package/dist/github-dark-BKL9xNgN.cjs +1 -0
- package/dist/github-dark-DenFmJkN.js +4 -0
- package/dist/github-dark-default-BJPUVz4H.js +4 -0
- package/dist/github-dark-default-Dsv5MuSi.cjs +1 -0
- package/dist/github-dark-dimmed-CtB9hz8U.cjs +1 -0
- package/dist/github-dark-dimmed-DUshB20C.js +4 -0
- package/dist/github-dark-high-contrast-BqZVM-jF.cjs +1 -0
- package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
- package/dist/github-light-BFTOhCbz.cjs +1 -0
- package/dist/github-light-JYsPkUQd.js +4 -0
- package/dist/github-light-default-BZoWH9dH.cjs +1 -0
- package/dist/github-light-default-D99KPAby.js +4 -0
- package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
- package/dist/github-light-high-contrast-Ks3kPGJU.cjs +1 -0
- package/dist/gleam-Bv284lvN.js +6 -0
- package/dist/gleam-DHVuTCr7.cjs +1 -0
- package/dist/glimmer-js-CzmC7OX8.cjs +1 -0
- package/dist/glimmer-js-DkxNrfPT.js +14 -0
- package/dist/glimmer-ts-D6YZEmK_.js +14 -0
- package/dist/glimmer-ts-DLN2_wRt.cjs +1 -0
- package/dist/glsl-CQekZ3Zq.cjs +1 -0
- package/dist/glsl-CkUcVZNK.js +8 -0
- package/dist/gnuplot-CDPKvI9X.cjs +1 -0
- package/dist/gnuplot-yPG9-sE_.js +6 -0
- package/dist/go-ChxJuLYK.js +6 -0
- package/dist/go-epHseFUa.cjs +1 -0
- package/dist/graph-BJDrjORS.js +244 -0
- package/dist/graph-BLd2spTm.cjs +1 -0
- package/dist/graphql-BnP1YhXQ.cjs +1 -0
- package/dist/graphql-CBu2ehBn.js +14 -0
- package/dist/groovy-CJQTphOW.js +6 -0
- package/dist/groovy-D7VuDBXz.cjs +1 -0
- package/dist/gruvbox-dark-hard-C5HOtKIh.js +4 -0
- package/dist/gruvbox-dark-hard-CUGefKS6.cjs +1 -0
- package/dist/gruvbox-dark-medium-BoKPlKfz.cjs +1 -0
- package/dist/gruvbox-dark-medium-FVgwJHuz.js +4 -0
- package/dist/gruvbox-dark-soft-B46F314v.js +4 -0
- package/dist/gruvbox-dark-soft-DSrhOWeL.cjs +1 -0
- package/dist/gruvbox-light-hard-CJD38wDZ.js +4 -0
- package/dist/gruvbox-light-hard-De4IuseP.cjs +1 -0
- package/dist/gruvbox-light-medium-BlIhMYTA.js +4 -0
- package/dist/gruvbox-light-medium-CzMY3IEJ.cjs +1 -0
- package/dist/gruvbox-light-soft-DoPHyLVZ.js +4 -0
- package/dist/gruvbox-light-soft-U4iAIpWZ.cjs +1 -0
- package/dist/hack-BaDv2o40.cjs +1 -0
- package/dist/hack-ItRNKiEb.js +10 -0
- package/dist/haml-Bk21rGjP.cjs +1 -0
- package/dist/haml-NZLVzu_R.js +10 -0
- package/dist/handlebars-CJJi3lrU.cjs +1 -0
- package/dist/handlebars-mxStpSE7.js +14 -0
- package/dist/haskell-BShesV2P.cjs +1 -0
- package/dist/haskell-WeIwNIP6.js +6 -0
- package/dist/haxe-Bo5XuRS0.cjs +1 -0
- package/dist/haxe-TztHsm5T.js +6 -0
- package/dist/hcl-CrZnvm-1.cjs +1 -0
- package/dist/hcl-D438OF-I.js +6 -0
- package/dist/hjson-CEESwTUP.cjs +1 -0
- package/dist/hjson-DYBUbqOl.js +6 -0
- package/dist/hlsl-Bk8TCZNL.js +6 -0
- package/dist/hlsl-CyvYRIb9.cjs +1 -0
- package/dist/houston-BDYrDoDW.js +4 -0
- package/dist/houston-T57H3gQZ.cjs +1 -0
- package/dist/html-B50bmoVb.js +10 -0
- package/dist/html-C62Zf2h4.cjs +1 -0
- package/dist/html-derivative-C6bxFbFW.js +8 -0
- package/dist/html-derivative-NDb86jON.cjs +1 -0
- package/dist/http-BPlLI56k.cjs +1 -0
- package/dist/http-DLvAkeD-.js +14 -0
- package/dist/hurl-BQGBr8gH.cjs +1 -0
- package/dist/hurl-CgkFN90t.js +12 -0
- package/dist/hxml-GbqSQCLa.js +8 -0
- package/dist/hxml-vnw7fzrV.cjs +1 -0
- package/dist/hy-Brt5EZ7-.js +6 -0
- package/dist/hy-a1E2Ed6P.cjs +1 -0
- package/dist/{image-editor-CnDnY97s.cjs → image-editor-EmBN_Nn_.cjs} +1 -1
- package/dist/imba-CR1Q6r17.cjs +1 -0
- package/dist/imba-CimUv-Uh.js +6 -0
- package/dist/{index-DdQbaicX.js → index-CSOKPmkj.js} +120 -113
- package/dist/index-D_4YaLhN.cjs +5 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.js +6 -6
- package/dist/info-NVLQJR56-cQ8VboSE.js +5 -0
- package/dist/info-NVLQJR56-nlYJye66.cjs +1 -0
- package/dist/infoDiagram-ER5ION4S-BYBSnMk9.cjs +2 -0
- package/dist/infoDiagram-ER5ION4S-D1ovR6Sb.js +24 -0
- package/dist/ini-BZIuRIvJ.js +6 -0
- package/dist/ini-Dpu3Xy2p.cjs +1 -0
- package/dist/init-CHZsXQcr.cjs +1 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/java--6gf61wy.cjs +1 -0
- package/dist/java-DY6VlHhP.js +6 -0
- package/dist/javascript-C25yR2R2.js +6 -0
- package/dist/javascript-DgmXW4Ha.cjs +1 -0
- package/dist/jinja-6NmewwV8.cjs +1 -0
- package/dist/jinja-CFW5uAwY.js +11 -0
- package/dist/jison-CD9Qsaj0.cjs +1 -0
- package/dist/jison-DdreslRX.js +8 -0
- package/dist/journeyDiagram-XKPGCS4Q-D-YRkdmZ.cjs +139 -0
- package/dist/journeyDiagram-XKPGCS4Q-aab6wkCY.js +836 -0
- package/dist/json-DxJze_jm.js +6 -0
- package/dist/json-YkPizm35.cjs +1 -0
- package/dist/{json-diff-viewer-KCkYwJMA.cjs → json-diff-viewer-BafhQd3C.cjs} +2 -2
- package/dist/{json-diff-viewer-BhWTP1YY.js → json-diff-viewer-eh2Twply.js} +1 -1
- package/dist/json5-BT4Fjg39.js +6 -0
- package/dist/json5-CCgFZiQn.cjs +1 -0
- package/dist/jsonc-CHjZD8gR.js +6 -0
- package/dist/jsonc-CKPHIcXW.cjs +1 -0
- package/dist/jsonl-BGuvDmy9.js +6 -0
- package/dist/jsonl-Dq56Hab-.cjs +1 -0
- package/dist/jsonnet-Bx2cfsXg.js +6 -0
- package/dist/jsonnet-Csh7E68F.cjs +1 -0
- package/dist/jssm-BcADi6EI.js +6 -0
- package/dist/jssm-D0M9iZPY.cjs +1 -0
- package/dist/jsx-BtKADgXT.js +6 -0
- package/dist/jsx-DLX6UGgg.cjs +1 -0
- package/dist/julia--2-efCjg.js +16 -0
- package/dist/julia-DimQn8rn.cjs +1 -0
- package/dist/kanagawa-dragon-BJZF7xDr.cjs +1 -0
- package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
- package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
- package/dist/kanagawa-lotus-BhgzmRV4.cjs +1 -0
- package/dist/kanagawa-wave-BgJip59C.cjs +1 -0
- package/dist/kanagawa-wave-CQwozSzG.js +4 -0
- package/dist/kanban-definition-3W4ZIXB7-BDK6FtYy.js +721 -0
- package/dist/kanban-definition-3W4ZIXB7-D_bnY8Es.cjs +89 -0
- package/dist/kdl-BNOv9TC3.js +6 -0
- package/dist/kdl-CDG1p2Qi.cjs +1 -0
- package/dist/kotlin-BHZjvNqT.cjs +1 -0
- package/dist/kotlin-ByBMgTeR.js +6 -0
- package/dist/kusto-BgZ0fOqg.cjs +1 -0
- package/dist/kusto-VWFLl2T0.js +6 -0
- package/dist/{lang-panel-by1VOWvc.js → lang-panel-Dha1mI9s.js} +33 -33
- package/dist/{lang-panel-tOddhH70.cjs → lang-panel-koRXBdpN.cjs} +1 -1
- package/dist/laserwave--izBLY1I.cjs +1 -0
- package/dist/laserwave-6a00oqik.js +4 -0
- package/dist/latex-CO8r39zT.js +8 -0
- package/dist/latex-Xma1qZep.cjs +1 -0
- package/dist/layout-AXx0t5i6.cjs +1 -0
- package/dist/layout-B6VyrpKo.js +1223 -0
- package/dist/lean-BCqiTZhG.cjs +1 -0
- package/dist/lean-k2QBx9cb.js +6 -0
- package/dist/less-B1GLI2Di.js +6 -0
- package/dist/less-Dtg8mm6P.cjs +1 -0
- package/dist/light-plus-B5D0le0o.cjs +1 -0
- package/dist/light-plus-CZuVqSLX.js +4 -0
- package/dist/linear-CBvDLesx.cjs +1 -0
- package/dist/linear-DmFX6iHR.js +259 -0
- package/dist/liquid-CHzkx3jT.js +14 -0
- package/dist/liquid-DjlCV7Vm.cjs +1 -0
- package/dist/llvm-DcRvQ_r8.cjs +1 -0
- package/dist/llvm-co1rIKs3.js +6 -0
- package/dist/log-Al8wyEFV.js +6 -0
- package/dist/log-CjTZ0gSB.cjs +1 -0
- package/dist/logo-BAktp_5i.cjs +1 -0
- package/dist/logo-DBa4JDzV.js +6 -0
- package/dist/lua-BfOnSJPp.cjs +1 -0
- package/dist/lua-kX5WP_P5.js +8 -0
- package/dist/luau-DTep-u3e.cjs +1 -0
- package/dist/luau-DtBSxLyz.js +6 -0
- package/dist/make-CsMclxtr.js +6 -0
- package/dist/make-NcdIe21U.cjs +1 -0
- package/dist/{mark-as-template-BUCysjr2.cjs → mark-as-template-BHkftF1C.cjs} +1 -1
- package/dist/{mark-as-template-ngqCvlhA.js → mark-as-template-DojgcJFD.js} +1 -1
- package/dist/markdown-Byu9Sdmq.cjs +1 -0
- package/dist/markdown-CrScaQ96.js +6 -0
- package/dist/marko-Cvx4TamJ.cjs +1 -0
- package/dist/marko-ls0Jg2j8.js +14 -0
- package/dist/material-theme-D6KBX41T.js +4 -0
- package/dist/material-theme-Dj0-OyRN.cjs +1 -0
- package/dist/material-theme-darker-CkRroheE.js +4 -0
- package/dist/material-theme-darker-Dvfs29ir.cjs +1 -0
- package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
- package/dist/material-theme-lighter-EU3ZGl_r.cjs +1 -0
- package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
- package/dist/material-theme-ocean-px_3Pwqa.cjs +1 -0
- package/dist/material-theme-palenight-38jxvsGX.cjs +1 -0
- package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
- package/dist/matlab-BOAaUVP0.js +6 -0
- package/dist/matlab-CHTOL9Kx.cjs +1 -0
- package/dist/mdc-DEPKJPdx.cjs +1 -0
- package/dist/mdc-uaivvctV.js +12 -0
- package/dist/mdx-BOhZZUJ8.js +6 -0
- package/dist/mdx-CjwI68TB.cjs +1 -0
- package/dist/mermaid-B0ixDHKN.js +6 -0
- package/dist/mermaid-XEfjk_VN.cjs +1 -0
- package/dist/mermaid-parser.core-Crve7Cv1.js +13256 -0
- package/dist/mermaid-parser.core-Df9eyFSv.cjs +128 -0
- package/dist/mermaid.core-DY8gIrXk.cjs +196 -0
- package/dist/mermaid.core-e6RNUZK7.js +14260 -0
- package/dist/min-dark-C7ak0t6c.js +4 -0
- package/dist/min-dark-tt5o_I5e.cjs +1 -0
- package/dist/min-light-CKFxVcPp.js +4 -0
- package/dist/min-light-tmTHl_CQ.cjs +1 -0
- package/dist/mindmap-definition-VGOIOE7T-BqZKJ_7z.js +787 -0
- package/dist/mindmap-definition-VGOIOE7T-CFYCEGsR.cjs +68 -0
- package/dist/mipsasm-BSlRcFIy.cjs +1 -0
- package/dist/mipsasm-CTx18fBl.js +6 -0
- package/dist/mojo-BD611d7o.js +6 -0
- package/dist/mojo-BQ8pQfYA.cjs +1 -0
- package/dist/monokai-C1KBYcO0.js +4 -0
- package/dist/monokai-DMIxv6MM.cjs +1 -0
- package/dist/move-Bm1vlCWg.cjs +1 -0
- package/dist/move-F-dICmj2.js +6 -0
- package/dist/narrat-CBeKHgTl.cjs +1 -0
- package/dist/narrat-DmhDCBs-.js +6 -0
- package/dist/nextflow-0_vzQJwQ.cjs +1 -0
- package/dist/nextflow-BAAEJxI_.js +6 -0
- package/dist/nginx-5vhPAEw3.js +8 -0
- package/dist/nginx-ByVOUyIE.cjs +1 -0
- package/dist/night-owl-BN78kThQ.cjs +1 -0
- package/dist/night-owl-Bm2rzalh.js +4 -0
- package/dist/nim-Bqmp5Of3.cjs +1 -0
- package/dist/nim-QAjRdh9w.js +20 -0
- package/dist/nix-B_7Vy2bT.js +6 -0
- package/dist/nix-BoOZl1xr.cjs +1 -0
- package/dist/{no-language-page-content-CzTbZ07M.cjs → no-language-page-content-BjlCydsa.cjs} +1 -1
- package/dist/{no-language-page-content-Dz3GSvnO.js → no-language-page-content-ZlibO6-a.js} +1 -1
- package/dist/nord-CC5OiUXg.js +4 -0
- package/dist/nord-Ca5AGUWc.cjs +1 -0
- package/dist/nushell-D8j3dhT-.js +6 -0
- package/dist/nushell-nGrB_wpI.cjs +1 -0
- package/dist/objective-c-Itk8tzmv.js +6 -0
- package/dist/objective-c-RjkWwFge.cjs +1 -0
- package/dist/objective-cpp-DGt5UKRO.js +6 -0
- package/dist/objective-cpp-HnfhWwRe.cjs +1 -0
- package/dist/ocaml-Cx8ewW_A.cjs +1 -0
- package/dist/ocaml-eSVK32Eg.js +6 -0
- package/dist/one-dark-pro-C09VQHwB.cjs +1 -0
- package/dist/one-dark-pro-DTA3VF0_.js +4 -0
- package/dist/one-light-020-h_lv.cjs +1 -0
- package/dist/one-light-D9sNaUtq.js +4 -0
- package/dist/ordinal-CagbB1m8.cjs +1 -0
- package/dist/ordinal-DfAQgscy.js +61 -0
- package/dist/packet-BFZMPI3H-BNOgRfy4.js +5 -0
- package/dist/packet-BFZMPI3H-CmnL1d8H.cjs +1 -0
- package/dist/{page-creator-D2iEu92e.js → page-creator-CYxW-uMk.js} +2 -2
- package/dist/{page-creator-BICVMC59.cjs → page-creator-D-HTXuwL.cjs} +1 -1
- package/dist/{page-lock-request-DjfV2kmK.js → page-lock-request-DIqND4Zp.js} +5 -5
- package/dist/{page-lock-request-hlvjC2uX.cjs → page-lock-request-ggTN32LL.cjs} +1 -1
- package/dist/{page-locked-by-dialog-NpUOJvWZ.cjs → page-locked-by-dialog-DF_r3NKB.cjs} +1 -1
- package/dist/{page-locked-by-dialog-m6K_uaE8.js → page-locked-by-dialog-Dv1QMUs2.js} +1 -1
- package/dist/{page-manager-new-C2jmBaFF.cjs → page-manager-new-B7nEY5DJ.cjs} +1 -1
- package/dist/{page-manager-new-DshyH-mV.js → page-manager-new-iuNdn54Y.js} +56 -56
- package/dist/{page-manager-search-and-filter-D_g51CM8.cjs → page-manager-search-and-filter-BuQLf3EG.cjs} +1 -1
- package/dist/{page-manager-search-and-filter-DCg7Fqi_.js → page-manager-search-and-filter-Dvt-nBOL.js} +1 -1
- package/dist/{page-revisions-content-N_qdjfDX.cjs → page-revisions-content-CR_65Pri.cjs} +1 -1
- package/dist/{page-revisions-content-DZzxttKH.js → page-revisions-content-DH30uwKy.js} +18 -18
- package/dist/pages.css +1 -1
- package/dist/pascal-DBu9vQ2o.cjs +1 -0
- package/dist/pascal-xy8pJNns.js +6 -0
- package/dist/perl-CxWZPeDZ.cjs +1 -0
- package/dist/perl-DkVrgJBg.js +16 -0
- package/dist/php-BLXVJphD.cjs +1 -0
- package/dist/php-j2zCzTEz.js +18 -0
- package/dist/pie-7BOR55EZ-B4yrare5.js +5 -0
- package/dist/pie-7BOR55EZ-CM2pRchz.cjs +1 -0
- package/dist/pieDiagram-ADFJNKIX-C_B1s9Ov.cjs +30 -0
- package/dist/pieDiagram-ADFJNKIX-DhRe-2Yk.js +162 -0
- package/dist/pkl-C-zSNmaA.js +6 -0
- package/dist/pkl-Dvyry4Rm.cjs +1 -0
- package/dist/plastic-CSTz3KZp.js +4 -0
- package/dist/plastic-r5piqq-S.cjs +1 -0
- package/dist/plsql-IJkoPJ9P.cjs +1 -0
- package/dist/plsql-pVbGZfOv.js +6 -0
- package/dist/po-BNfHvqmm.js +6 -0
- package/dist/po-Rhu6MvnX.cjs +1 -0
- package/dist/poimandres-BLP3NNjc.cjs +1 -0
- package/dist/poimandres-C-VADXHD.js +4 -0
- package/dist/polar-BtWqSUq2.cjs +1 -0
- package/dist/polar-CAZahv3u.js +6 -0
- package/dist/postcss-05aHdL-n.js +6 -0
- package/dist/postcss-Dh97DcaJ.cjs +1 -0
- package/dist/powerquery-BGL6VIw7.cjs +1 -0
- package/dist/powerquery-DI9HkTvs.js +6 -0
- package/dist/powershell-BiEPMjy-.cjs +1 -0
- package/dist/powershell-Clc4ydu-.js +6 -0
- package/dist/prisma-Dp473sn0.cjs +1 -0
- package/dist/prisma-FZjmVtSl.js +6 -0
- package/dist/prolog-C5-yg4TO.js +6 -0
- package/dist/prolog-N1U-3UeF.cjs +1 -0
- package/dist/proto-MmCPeFAD.js +6 -0
- package/dist/proto-kd7Vn2fe.cjs +1 -0
- package/dist/{publish-pages-content-Dtu7807d.cjs → publish-pages-content-DOniOjSV.cjs} +1 -1
- package/dist/{publish-pages-content-CRvy9fwt.js → publish-pages-content-fwqyxl_3.js} +6 -6
- package/dist/pug-DiGNE7sm.cjs +1 -0
- package/dist/pug-XOw9Q1Ho.js +12 -0
- package/dist/puppet-CUJHmnxV.js +6 -0
- package/dist/puppet-cDQP_ZC_.cjs +1 -0
- package/dist/purescript-DMxb59gF.cjs +1 -0
- package/dist/purescript-rUfGld-4.js +6 -0
- package/dist/python-BFNSHbwJ.js +6 -0
- package/dist/python-s9jfVbew.cjs +1 -0
- package/dist/qml-beorq0E4.cjs +1 -0
- package/dist/qml-rTNXsquU.js +8 -0
- package/dist/qmldir-BInDYbpo.js +6 -0
- package/dist/qmldir-DNF9H2ir.cjs +1 -0
- package/dist/qss-AeJTysr_.js +6 -0
- package/dist/qss-DwA_oiAM.cjs +1 -0
- package/dist/quadrantDiagram-AYHSOK5B-CrS56DWV.cjs +7 -0
- package/dist/quadrantDiagram-AYHSOK5B-DSaDCScU.js +1024 -0
- package/dist/r-Bm0uF0U2.js +6 -0
- package/dist/r-ChIwckeM.cjs +1 -0
- package/dist/racket-B83wSAja.js +6 -0
- package/dist/racket-D4laxZit.cjs +1 -0
- package/dist/radar-NHE76QYJ-CN3oBECV.js +5 -0
- package/dist/radar-NHE76QYJ-CPX8AaYO.cjs +1 -0
- package/dist/raku-DHySPsLw.cjs +1 -0
- package/dist/raku-nEQ4ZJJ7.js +6 -0
- package/dist/razor-DgCbant-.cjs +1 -0
- package/dist/razor-Dh1wKTmh.js +10 -0
- package/dist/red-7y8PH7HH.js +4 -0
- package/dist/red-BQGOv1D5.cjs +1 -0
- package/dist/reg-CevkCKuZ.cjs +1 -0
- package/dist/reg-m_s_Kiip.js +6 -0
- package/dist/regexp-BazyLpPg.js +6 -0
- package/dist/regexp-DabTWNLE.cjs +1 -0
- package/dist/rel-BS5APza7.cjs +1 -0
- package/dist/rel-BcRfyd6Q.js +6 -0
- package/dist/render.d.ts +12 -0
- package/dist/requirementDiagram-UZGBJVZJ-CbpHc5TO.js +852 -0
- package/dist/requirementDiagram-UZGBJVZJ-D60OatrS.cjs +64 -0
- package/dist/riscv-BnGFr6V7.cjs +1 -0
- package/dist/riscv-Ce8MAQLP.js +6 -0
- package/dist/rose-pine-Cr4kwgAY.js +4 -0
- package/dist/rose-pine-Dynd1SQq.cjs +1 -0
- package/dist/rose-pine-dawn-ClRRUdXX.js +4 -0
- package/dist/rose-pine-dawn-DwrpEjkh.cjs +1 -0
- package/dist/rose-pine-moon-8HmiewSG.cjs +1 -0
- package/dist/rose-pine-moon-ucNn3Gm8.js +4 -0
- package/dist/rosmsg-C7VSFzUC.cjs +1 -0
- package/dist/rosmsg-Cz0w1km8.js +6 -0
- package/dist/rst-CcbeA9zE.js +22 -0
- package/dist/rst-D08gsKw8.cjs +1 -0
- package/dist/ruby-B5H7kBtd.cjs +1 -0
- package/dist/ruby-DMPw6uKF.js +30 -0
- package/dist/runtime.d.ts +12 -0
- package/dist/rust-CLzF9zIN.js +6 -0
- package/dist/rust-CNeTMPbB.cjs +1 -0
- package/dist/sankeyDiagram-TZEHDZUN-AFuyaZMZ.js +810 -0
- package/dist/sankeyDiagram-TZEHDZUN-DklD-Q91.cjs +10 -0
- package/dist/sas-D5Fn8Q38.cjs +1 -0
- package/dist/sas-fpEvgATw.js +8 -0
- package/dist/sass-DxHp5rTx.js +6 -0
- package/dist/sass-vyo-bUwh.cjs +1 -0
- package/dist/{save-to-lib-BE0-MXVv.js → save-to-lib-DKP-iiLU.js} +1 -1
- package/dist/{save-to-lib-XnTNVHzy.cjs → save-to-lib-DmZbKkm9.cjs} +1 -1
- package/dist/scala-D4grkFkl.js +6 -0
- package/dist/scala-ZSekD-8-.cjs +1 -0
- package/dist/scheme-BCRWuEm4.js +6 -0
- package/dist/scheme-vM0LdD-_.cjs +1 -0
- package/dist/scss-B1FaCqwR.js +8 -0
- package/dist/scss-CKlduTMv.cjs +1 -0
- package/dist/sdbl-B7T8abf4.js +6 -0
- package/dist/sdbl-DeWT5r4i.cjs +1 -0
- package/dist/selected-block-display-BPkRbRtv.js +43632 -0
- package/dist/selected-block-display-CMhOKq0c.cjs +541 -0
- package/dist/{seo-panel-dIE8Wi40.js → seo-panel-D1FyS42r.js} +17 -17
- package/dist/{seo-panel-Ce3uf7XT.cjs → seo-panel-l-VdkTzp.cjs} +1 -1
- package/dist/sequenceDiagram-WL72ISMW-CotOH2Xj.cjs +145 -0
- package/dist/sequenceDiagram-WL72ISMW-p_o77zn1.js +2522 -0
- package/dist/server.cjs +206 -121
- package/dist/server.d.ts +12 -0
- package/dist/server.js +775 -690
- package/dist/shaderlab-Cr62-Wb4.js +8 -0
- package/dist/shaderlab-DGJjQHxC.cjs +1 -0
- package/dist/{shared-json-ld-DiVirR4t.cjs → shared-json-ld-0VORoKPu.cjs} +1 -1
- package/dist/{shared-json-ld-UCI8GeFi.js → shared-json-ld-jn36kQ1J.js} +48 -48
- package/dist/shellscript-DYWjN7qW.cjs +1 -0
- package/dist/shellscript-InADTalH.js +6 -0
- package/dist/shellsession-DMUSXX8m.cjs +1 -0
- package/dist/shellsession-DiDJNQdy.js +8 -0
- package/dist/slack-dark-akqwQ7ED.cjs +1 -0
- package/dist/slack-dark-i7wN4OET.js +4 -0
- package/dist/slack-ochin-BoQQWmTv.cjs +1 -0
- package/dist/slack-ochin-ndHf0LoP.js +4 -0
- package/dist/{slug-input-BbkCbVMY.cjs → slug-input-CPHwulQv.cjs} +1 -1
- package/dist/{slug-input-DTA7c8c6.js → slug-input-DPMG1pMZ.js} +1 -1
- package/dist/smalltalk-BNs6hxu4.cjs +1 -0
- package/dist/smalltalk-BlI1_OkM.js +6 -0
- package/dist/snazzy-light-BlSJXAu4.js +4 -0
- package/dist/snazzy-light-D_IwRieF.cjs +1 -0
- package/dist/solarized-dark-UTmkh7lw.js +4 -0
- package/dist/solarized-dark-gmm-WbDC.cjs +1 -0
- package/dist/solarized-light-BheCkDPT.js +4 -0
- package/dist/solarized-light-DzcxRSZP.cjs +1 -0
- package/dist/solidity-CYggdHYd.cjs +1 -0
- package/dist/solidity-CneOhxmR.js +6 -0
- package/dist/soy-C1-6njHa.js +8 -0
- package/dist/soy-CDFPDtGX.cjs +1 -0
- package/dist/sparql-6Cg9ppCl.cjs +1 -0
- package/dist/sparql-B0KWFEri.js +8 -0
- package/dist/splunk-CRXR8A9s.js +6 -0
- package/dist/splunk-CWPivao_.cjs +1 -0
- package/dist/sql-Cn_v3PB0.js +6 -0
- package/dist/sql-DhUUVgH1.cjs +1 -0
- package/dist/ssh-config-B93wBIBa.cjs +1 -0
- package/dist/ssh-config-DP-hNVbF.js +6 -0
- package/dist/stata-B8c5fTjX.js +8 -0
- package/dist/stata-DCWFCQQG.cjs +1 -0
- package/dist/stateDiagram-FKZM4ZOC-B1pfSzZB.cjs +1 -0
- package/dist/stateDiagram-FKZM4ZOC-Ch8gd7OX.js +264 -0
- package/dist/stateDiagram-v2-4FDKWEC3-BDxmTUgh.js +16 -0
- package/dist/stateDiagram-v2-4FDKWEC3-DCj4svbU.cjs +1 -0
- package/dist/stylus-B64Bt0D4.cjs +1 -0
- package/dist/stylus-CyKEU1Ej.js +6 -0
- package/dist/svelte-5UasyOg7.js +14 -0
- package/dist/svelte-DFg_x5i4.cjs +1 -0
- package/dist/swift-9UzSvamq.js +6 -0
- package/dist/swift-BMbGdc3j.cjs +1 -0
- package/dist/synthwave-84-BBRLOmNT.cjs +1 -0
- package/dist/synthwave-84-NU3C_KFZ.js +4 -0
- package/dist/system-verilog-BCm7smPJ.js +6 -0
- package/dist/system-verilog-BFclLo9e.cjs +1 -0
- package/dist/systemd-C-4qm6XH.js +6 -0
- package/dist/systemd-Dtw7P4tb.cjs +1 -0
- package/dist/tailwind.d.ts +12 -0
- package/dist/talonscript-CFF3LF_O.js +6 -0
- package/dist/talonscript-D8SvZJVc.cjs +1 -0
- package/dist/tasl--DC4oX-L.cjs +1 -0
- package/dist/tasl-Cg_WBUAe.js +6 -0
- package/dist/tcl-0Q0H86Yn.cjs +1 -0
- package/dist/tcl-DN7buRTF.js +6 -0
- package/dist/templ-BDNMUns0.cjs +1 -0
- package/dist/templ-peLZIM2D.js +12 -0
- package/dist/terraform-C0RDrmWi.cjs +1 -0
- package/dist/terraform-DGvcn9zM.js +6 -0
- package/dist/tex-BUUuwxQS.js +8 -0
- package/dist/tex-By7qnogv.cjs +1 -0
- package/dist/{theme-panel-footer-uGKDjNbs.cjs → theme-panel-footer-DsZ67xQ8.cjs} +1 -1
- package/dist/{theme-panel-footer-BjRPU7lq.js → theme-panel-footer-XREndTvO.js} +1 -1
- package/dist/timeline-definition-IT6M3QCI-CK1EW7lG.cjs +61 -0
- package/dist/timeline-definition-IT6M3QCI-CmX-2kfr.js +801 -0
- package/dist/tokyo-night-DP4TmcQl.js +4 -0
- package/dist/tokyo-night-GOhjzM5y.cjs +1 -0
- package/dist/toml-DY62mUL_.js +6 -0
- package/dist/toml-Q64DoSvG.cjs +1 -0
- package/dist/treemap-KMMF4GRG-B51FyMCU.js +5 -0
- package/dist/treemap-KMMF4GRG-D5Rm845j.cjs +1 -0
- package/dist/ts-tags-DILCom6A.cjs +1 -0
- package/dist/ts-tags-ioVe2PKw.js +41 -0
- package/dist/tsv-BtvSkaG0.js +6 -0
- package/dist/tsv-DqNGnuVj.cjs +1 -0
- package/dist/tsx-B8rCNbgL.js +6 -0
- package/dist/tsx-DIpfUf9u.cjs +1 -0
- package/dist/turtle-DipIidr5.cjs +1 -0
- package/dist/turtle-_H59FV7D.js +6 -0
- package/dist/twig-B42NGISI.cjs +1 -0
- package/dist/twig-CcRLVyUg.js +18 -0
- package/dist/typescript-RycA9KXf.js +6 -0
- package/dist/typescript-b48wo4zk.cjs +1 -0
- package/dist/typespec-CLqB-2XS.cjs +1 -0
- package/dist/typespec-Djmco60m.js +6 -0
- package/dist/typst-Cqq4j4V-.cjs +1 -0
- package/dist/typst-D_1QKWns.js +6 -0
- package/dist/{unmark-as-template-Dbhko_72.cjs → unmark-as-template-BB_2lvTh.cjs} +1 -1
- package/dist/{unmark-as-template-BWviVI2t.js → unmark-as-template-VHopisw3.js} +1 -1
- package/dist/{unpublish-page-BzI9EFF9.js → unpublish-page-Cq5OwCf-.js} +1 -1
- package/dist/{unpublish-page-D0EmMryc.cjs → unpublish-page-DJKgb2OG.cjs} +1 -1
- package/dist/use-page-expand-manager-B5Y2KS1c.cjs +1 -0
- package/dist/utils.d.ts +12 -0
- package/dist/v-81C2s01-.cjs +1 -0
- package/dist/v-BPCNiyYe.js +6 -0
- package/dist/vala-CsAYdCD2.cjs +1 -0
- package/dist/vala-uxaPR7d1.js +6 -0
- package/dist/vb-AiTMb16X.cjs +1 -0
- package/dist/vb-D8_c5-KN.js +6 -0
- package/dist/verilog-AMohXZcN.cjs +1 -0
- package/dist/verilog-B-bybjPF.js +6 -0
- package/dist/vesper-B59Iw4gV.cjs +1 -0
- package/dist/vesper-BckBta1U.js +4 -0
- package/dist/vhdl-CUlNa8ac.js +6 -0
- package/dist/vhdl-DIdR1NA5.cjs +1 -0
- package/dist/viml-D01eKeA4.cjs +1 -0
- package/dist/viml-DsfA-sWm.js +6 -0
- package/dist/vitesse-black-BoGvW84i.js +4 -0
- package/dist/vitesse-black-MF-1S1MG.cjs +1 -0
- package/dist/vitesse-dark-Cym-eLtO.js +4 -0
- package/dist/vitesse-dark-SIffJYSe.cjs +1 -0
- package/dist/vitesse-light-CcmG315c.js +4 -0
- package/dist/vitesse-light-U63SkYGT.cjs +1 -0
- package/dist/vue-DUYfTwgV.cjs +1 -0
- package/dist/vue-DrinnB8Y.js +31 -0
- package/dist/vue-html-B8T_zUQ-.cjs +1 -0
- package/dist/vue-html-CQOyCFnQ.js +10 -0
- package/dist/vue-vine-CAyeVfAj.js +20 -0
- package/dist/vue-vine-ClEtVpt5.cjs +1 -0
- package/dist/vyper-CPQuu50u.js +6 -0
- package/dist/vyper-DTzyzn3a.cjs +1 -0
- package/dist/wasm-BBXxrAl7.js +6 -0
- package/dist/wasm-DQxwEHae.js +7 -0
- package/dist/wasm-Dp-QrJpp.cjs +1 -0
- package/dist/wasm-Dw4u1m6u.cjs +1 -0
- package/dist/web-blocks.d.ts +12 -0
- package/dist/{web-preview-SIUM1SWa.js → web-preview-BEYsnCo4.js} +2 -2
- package/dist/{web-preview-CSV-DXpI.cjs → web-preview-CGX6_m7_.cjs} +1 -1
- package/dist/wenyan-CRNx8UP3.cjs +1 -0
- package/dist/wenyan-pbVjoM9_.js +6 -0
- package/dist/wgsl-DF5qc9dd.cjs +1 -0
- package/dist/wgsl-DY4iK1q1.js +6 -0
- package/dist/wikitext-D7uzEIfK.cjs +1 -0
- package/dist/wikitext-Z-MoUasO.js +6 -0
- package/dist/wit-BjWgLsJj.cjs +1 -0
- package/dist/wit-CQMQOlTg.js +6 -0
- package/dist/wolfram-BR4t3Ffc.cjs +1 -0
- package/dist/wolfram-Dz4KXISs.js +6 -0
- package/dist/xml-BpsKWkuV.cjs +1 -0
- package/dist/xml-C2J0sS9M.js +8 -0
- package/dist/xsl-BmSZphgC.js +8 -0
- package/dist/xsl-D-3VYix6.cjs +1 -0
- package/dist/xychartDiagram-PRI3JC2R-BXSS1azt.cjs +7 -0
- package/dist/xychartDiagram-PRI3JC2R-vt3IdmK_.js +1340 -0
- package/dist/yaml-DaO7k5B1.js +6 -0
- package/dist/yaml-XVBmpKh-.cjs +1 -0
- package/dist/zenscript-CxBjpf9c.js +6 -0
- package/dist/zenscript-fNvwKexi.cjs +1 -0
- package/dist/zig-BAyIAcWK.cjs +1 -0
- package/dist/zig-Vm0PO9wB.js +6 -0
- package/package.json +19 -3
- package/dist/ai-panel-content-B7VWN9Hp.js +0 -54
- package/dist/ai-panel-content-DvNWlTtZ.cjs +0 -1
- package/dist/ai-panel-default-lang-DRkJegQm.js +0 -178
- package/dist/ai-panel-default-lang-Dnfg53l_.cjs +0 -1
- package/dist/ai-panel-message-bubble-Bl-aUeU4.cjs +0 -1
- package/dist/ai-panel-message-bubble-DPAaAMAZ.js +0 -38
- package/dist/ai-panel-other-lang-0_g52R_I.cjs +0 -1
- package/dist/ai-panel-other-lang-CQVkWTd3.js +0 -150
- package/dist/ai-panel-quick-prompts-BfMsNuRu.js +0 -46
- package/dist/ai-panel-quick-prompts-CGKAAn9A.cjs +0 -1
- package/dist/ai-prompt-input-C3TnCYfz.js +0 -222
- package/dist/ai-prompt-input-CffQQOKA.cjs +0 -1
- package/dist/index-B1OACNv-.cjs +0 -5
- package/dist/prompt-helper-D0QRFyFX.js +0 -187
- package/dist/prompt-helper-DIy7u3rt.cjs +0 -51
- package/dist/use-page-expand-manager-2KjeYfVS.cjs +0 -1
package/dist/server.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ti = Object.defineProperty;
|
|
2
2
|
var ri = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var ye = (e, t, r) => ri(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { has as Pt, get as Rt, noop as mn, isEmpty as ni, isFunction as
|
|
4
|
+
import { has as Pt, get as Rt, noop as mn, isEmpty as ni, isFunction as It, omit as ai, startsWith as oi } from "lodash-es";
|
|
5
5
|
import { getRegisteredChaiBlock as si } from "@chaibuilder/runtime";
|
|
6
6
|
const ii = `You are an expert language translator specializing in preserving data structure integrity while translating content.
|
|
7
7
|
|
|
@@ -77,125 +77,210 @@ CRITICAL REQUIREMENTS (Content Modification):
|
|
|
77
77
|
5. Preserve all other language variants and properties unchanged
|
|
78
78
|
6. Apply changes consistently across related properties when applicable
|
|
79
79
|
|
|
80
|
-
OUTPUT FORMAT: Valid JSON only, ready to be parsed directly.`, hn = `
|
|
80
|
+
OUTPUT FORMAT: Valid JSON only, ready to be parsed directly.`, hn = `
|
|
81
|
+
🚨 CRITICAL FORMAT REQUIREMENT: Your response MUST start with '--START--' immediately. NEVER include any text, thinking, or reasoning before '--START--'. 🚨
|
|
81
82
|
|
|
82
|
-
Create pure HTML code only. Make it fully responsive using Tailwind CSS v3 classes exclusively - no custom CSS or classes allowed. Implement container queries (@container) where appropriate for enhanced responsive behavior.
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
1. Return ONLY the HTML code without any markdown formatting, code blocks, or explanations
|
|
86
|
-
2. Use ONLY Tailwind CSS v3+ utility classes - absolutely no custom CSS or classes
|
|
87
|
-
3. Use shadcn/ui design system theming and styling patterns (neutral colors, proper spacing, modern aesthetics)
|
|
88
|
-
4. Apply semantic HTML structure with proper accessibility attributes (ARIA labels, alt texts, proper heading hierarchy)
|
|
89
|
-
5. Add 'chai-name' attributes to parent containers only - use concise, descriptive labels that clearly indicate content purpose (e.g., "Navigation", "Hero Section", "Footer", "Product Grid", "Testimonials"). These help identify sections during editing and AI-assisted modifications.
|
|
90
|
-
6. Ensure mobile-first responsive design approach
|
|
91
|
-
7. Implement container queries using @container classes where appropriate for enhanced responsive behavior
|
|
92
|
-
8. Do NOT include <!DOCTYPE>, <html>, <head>, or <body> tags - only the content HTML
|
|
93
|
-
9. Use proper contrast ratios for accessibility
|
|
94
|
-
10. Keep the code clean, well-structured, and semantic
|
|
95
|
-
11. Think about UI randomly. Do not generate the same layout every time.
|
|
96
|
-
12. For accordion style ui, use html details and summary tags. eg: accordions, mobile menu etc.
|
|
97
|
-
13. If UI generated based on provided image, make sure to make it responsive for all screens.
|
|
98
|
-
14. In Tailwindcss, do not use container queries.
|
|
84
|
+
# 1. RESPONSE FORMAT RULES (ALWAYS OBEY FIRST)
|
|
99
85
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
-
|
|
109
|
-
-
|
|
110
|
-
-
|
|
86
|
+
Every response MUST follow this structure:
|
|
87
|
+
|
|
88
|
+
--START--
|
|
89
|
+
--THINKING={short plain-language reasoning}
|
|
90
|
+
(one or more ACTION blocks: ADD / EDIT / REMOVE)
|
|
91
|
+
--END--
|
|
92
|
+
|
|
93
|
+
Rules:
|
|
94
|
+
- The VERY FIRST characters must be '--START--'.
|
|
95
|
+
- '--THINKING=' must appear immediately after '--START--'.
|
|
96
|
+
- No commentary, markdown, or text outside '--START--' and '--END--'.
|
|
97
|
+
- Use simple natural language in THINKING. Do NOT mention ids, attributes, DOM, HTML tags, or technical terms.
|
|
98
|
+
- If no action is required, still output:
|
|
99
|
+
--START--
|
|
100
|
+
--THINKING={why no changes needed}
|
|
101
|
+
--END--
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
# 2. ACTION FORMAT DEFINITIONS (MANDATORY)
|
|
105
|
+
|
|
106
|
+
### ADD Action
|
|
107
|
+
Used to insert new HTML.
|
|
108
|
+
Do not add bid attribute to any element.
|
|
109
|
+
|
|
110
|
+
Format:
|
|
111
|
+
--ACTION=ADD|PARENT={parent_id or 'undefined'}|POS={position or -1}--
|
|
112
|
+
--TASK={plain-language description of what you are adding}
|
|
113
|
+
--HTML--
|
|
114
|
+
{HTML here}
|
|
115
|
+
--ENDHTML--
|
|
116
|
+
--MSG={plain-language explanation}
|
|
117
|
+
--ENDACTION--
|
|
118
|
+
|
|
119
|
+
Rules:
|
|
120
|
+
- PARENT = bid of parent, or 'undefined' for root.
|
|
121
|
+
- POS = -1 to append at the end.
|
|
122
|
+
- HTML must include full and valid tags.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
### EDIT Action
|
|
126
|
+
Used to replace an existing element completely.
|
|
127
|
+
Combine multiple edits into one action with one edit id where possible.
|
|
128
|
+
|
|
129
|
+
Format:
|
|
130
|
+
--ACTION=EDIT|ID={target_id}--
|
|
131
|
+
--TASK={plain-language description of what you are changing}
|
|
132
|
+
--HTML--
|
|
133
|
+
{full replacement HTML here}
|
|
134
|
+
--ENDHTML--
|
|
135
|
+
--MSG={plain-language explanation}
|
|
136
|
+
--ENDACTION--
|
|
137
|
+
|
|
138
|
+
Rules:
|
|
139
|
+
- Must include full tag being replaced.
|
|
140
|
+
- Never partially edit; always replace full HTML for the target element.
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### REMOVE Action
|
|
144
|
+
Used to delete elements.
|
|
145
|
+
|
|
146
|
+
Format:
|
|
147
|
+
--ACTION=REMOVE|IDS={id1, id2, ...}--
|
|
148
|
+
--TASK={plain-language description of what you are removing}
|
|
149
|
+
--MSG={plain-language explanation}
|
|
150
|
+
--ENDACTION--
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### THINKING Block (STRICT)
|
|
154
|
+
Placed immediately after '--START--'.
|
|
155
|
+
|
|
156
|
+
Format:
|
|
157
|
+
--THINKING={short plain-language reasoning}
|
|
158
|
+
|
|
159
|
+
Rules:
|
|
160
|
+
- Only one concise line.
|
|
161
|
+
- No mentions of tags, ids, attributes, DOM, or code.
|
|
162
|
+
- Focus on visual/content intentions.
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
# 3. HTML GENERATION RULES (MANDATORY)
|
|
166
|
+
|
|
167
|
+
You are an expert HTML/CSS developer specializing in Tailwind CSS and shadcn/ui patterns.
|
|
168
|
+
You produce clean, semantic, accessible, production-ready HTML.
|
|
169
|
+
Generate **pure HTML**, with no markdown, no comments, no extra text.
|
|
170
|
+
|
|
171
|
+
### General Guidelines
|
|
172
|
+
1. Use **only Tailwind CSS v3 utility classes**, no custom CSS.
|
|
173
|
+
2. Use **shadcn/ui design system** semantic tokens for all colors.
|
|
174
|
+
3. Use **semantic HTML** with proper accessibility.
|
|
175
|
+
4. Always produce **responsive, mobile-first** layout.
|
|
176
|
+
5. **Do NOT include** <!DOCTYPE>, <html>, <head>, or <body>.
|
|
177
|
+
6. Keep UI varied — don't repeat the same layout patterns.
|
|
178
|
+
7. Use \`<details><summary>\` for accordion, FAQ, and mobile menu interactions.
|
|
179
|
+
8. Do NOT use Tailwind container queries.
|
|
180
|
+
9. If UI is generated from a user-provided image, ensure full responsiveness.
|
|
181
|
+
10. **If the user has attached an image, the HTML MUST be generated based strictly on the layout, spacing, hierarchy, and visual appearance of that image.**
|
|
182
|
+
- Match structure as closely as possible
|
|
183
|
+
- Maintain the Tailwind + shadcn theme rules
|
|
184
|
+
- The HTML output should reflect the exact design of the provided image
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
# 4. ATTRIBUTE & CUSTOM COMPONENT RULES
|
|
188
|
+
|
|
189
|
+
### chai-name
|
|
190
|
+
- Add \`chai-name\` attribute to tags
|
|
191
|
+
- Use descriptive section names (e.g., "Hero Section", "Navigation").
|
|
111
192
|
|
|
112
193
|
## Custom Web components(CRITICAL)
|
|
113
194
|
- Html can have custom web components. All web components starts with <chai- prefix.
|
|
114
|
-
- Use about-component attribute to understand what the component does.
|
|
195
|
+
- Use "about-this-component" attribute to understand what the component does.
|
|
115
196
|
- Check for can-move and can-delete attribute to check if the component can be moved or deleted.
|
|
116
197
|
- If an attribute value starts with #styles: treat it like class attribute with tailwind classes.
|
|
117
198
|
Use the attribute key to understand what the attribute does and apply classes. Maintain the #styles: at start followed by tailwind classes.
|
|
118
199
|
- Do not change the chai-type attribute. Do not remove any attributes.
|
|
119
200
|
|
|
120
|
-
|
|
121
|
-
-
|
|
122
|
-
-
|
|
123
|
-
|
|
201
|
+
### SVG & Icons
|
|
202
|
+
- Always include width/height attributes.
|
|
203
|
+
- Ensure correct \`viewBox\`.
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
# 5. SHADCN/THEME COLOR RULES (STRICT)
|
|
207
|
+
|
|
208
|
+
Use ONLY these semantic tokens:
|
|
209
|
+
|
|
210
|
+
- bg-background + text-foreground
|
|
211
|
+
- bg-card + text-card-foreground
|
|
212
|
+
- bg-primary + text-primary-foreground
|
|
213
|
+
- bg-secondary + text-secondary-foreground
|
|
214
|
+
- bg-muted + text-muted-foreground
|
|
215
|
+
- bg-accent + text-accent-foreground
|
|
216
|
+
- bg-destructive + text-destructive-foreground
|
|
217
|
+
- border-border, border-input
|
|
218
|
+
- ring-ring
|
|
219
|
+
|
|
220
|
+
### Contrast Rules
|
|
221
|
+
- Always maintain clear readable contrast.
|
|
222
|
+
- Never pair same-family bg/text tokens (e.g., bg-primary + text-primary).
|
|
223
|
+
|
|
224
|
+
### Hover Rules
|
|
225
|
+
- Primary buttons: hover:bg-primary/90
|
|
226
|
+
- Cards: hover:bg-accent hover:text-accent-foreground
|
|
227
|
+
- Links: text-muted-foreground hover:text-foreground
|
|
228
|
+
- Nav links: text-foreground/80 hover:text-foreground
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
# 6. RESPONSIVENESS RULES
|
|
233
|
+
|
|
234
|
+
- Mobile-first approach.
|
|
235
|
+
- Breakpoints: sm, md, lg, xl.
|
|
236
|
+
- Smooth scaling between sizes.
|
|
237
|
+
- At md breakpoint:
|
|
238
|
+
* Reduce grid columns (lg:4 → md:2 → sm:1)
|
|
239
|
+
* Adjust padding, spacing, and layouts
|
|
240
|
+
* Ensure nav/mobilmenus behave correctly
|
|
241
|
+
* Ensure cards remain aligned
|
|
124
242
|
|
|
125
|
-
## Generating SVG
|
|
126
|
-
- Ensure the svg has appropriate width and height.
|
|
127
|
-
- Ensure the svg has appropriate viewBox.
|
|
128
243
|
|
|
129
|
-
|
|
130
|
-
- Use "rounded-md" class for rounded corners which is shadcn theme class
|
|
244
|
+
# 7. SPECIFIC UI PATTERNS
|
|
131
245
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
- bg-muted (#f5f5f5) + text-muted-foreground (#737373) - Subdued elements
|
|
140
|
-
- bg-accent (#f5f5f5) + text-accent-foreground (#171717) - Hover/focus states
|
|
141
|
-
- bg-destructive (#e7000b) + text-destructive-foreground (#ffffff) - Errors/warnings
|
|
142
|
-
- border-border (#e5e5e5), border-input (#e5e5e5) - Borders
|
|
143
|
-
- ring-ring (#a1a1a1) - Focus rings
|
|
246
|
+
### Mobile Menu (<details><summary>)
|
|
247
|
+
- Use 'summary' containing an SVG hamburger icon.
|
|
248
|
+
- Mobile menu container sample:
|
|
249
|
+
absolute right-1 mt-2 min-w-64 bg-card border border-border rounded-lg shadow-lg z-50 p-4
|
|
250
|
+
- Menu item sample:
|
|
251
|
+
block py-2 px-4 hover:bg-accent rounded-md transition-colors
|
|
252
|
+
- Touch targets must be at least 44px tall.
|
|
144
253
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
- bg-background → text-foreground (NOT text-card-foreground)
|
|
148
|
-
- bg-card → text-card-foreground (NOT text-foreground)
|
|
149
|
-
- bg-primary → text-primary-foreground (NOT text-foreground)
|
|
150
|
-
- bg-accent → text-accent-foreground
|
|
151
|
-
- NEVER use same token family for bg and text (e.g., bg-primary + text-primary)
|
|
254
|
+
### Accordions / Nested Menus
|
|
255
|
+
- Always use <details> and <summary>.
|
|
152
256
|
|
|
153
|
-
* HOVER STATE RULES:
|
|
154
|
-
- Primary buttons: bg-primary hover:bg-primary/90 text-primary-foreground (NO hover text change)
|
|
155
|
-
- Card hovers: hover:bg-accent hover:text-accent-foreground transition-colors
|
|
156
|
-
- Link hovers: text-muted-foreground hover:text-foreground transition-colors
|
|
157
|
-
- Nav links: text-foreground/80 hover:text-foreground transition-colors
|
|
158
|
-
- NEVER use hover:text-primary-foreground on bg-primary (already same color)
|
|
159
|
-
- Hover text must be visibly different and contrast well
|
|
160
257
|
|
|
161
|
-
|
|
162
|
-
✓ bg-background text-foreground
|
|
163
|
-
✓ bg-card text-card-foreground border-border
|
|
164
|
-
✓ bg-primary text-primary-foreground hover:bg-primary/90
|
|
165
|
-
✓ bg-accent text-accent-foreground
|
|
166
|
-
✓ text-muted-foreground hover:text-foreground transition-colors
|
|
258
|
+
# 8. IMAGE RULES
|
|
167
259
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
✗ Arbitrary colors (bg-blue-500, text-red-600, etc.)
|
|
172
|
-
✗ Same token for bg and text (bg-foreground text-foreground)
|
|
260
|
+
- Use **Picsum Photos** only.
|
|
261
|
+
Format:
|
|
262
|
+
https://picsum.photos/seed/{seed}/{width}/{height}
|
|
173
263
|
|
|
174
|
-
|
|
175
|
-
-
|
|
176
|
-
- Smooth responsive transitions between breakpoints
|
|
177
|
-
- MD breakpoint (768px-1023px) needs special attention:
|
|
178
|
-
* Reduce grid columns gracefully (lg:4 → md:2 → sm:1)
|
|
179
|
-
* Adjust padding/spacing for tablet view
|
|
180
|
-
* Test navigation menu behavior at md breakpoint
|
|
181
|
-
* Ensure cards don't break layout at md size
|
|
264
|
+
- Seeds must be descriptive, e.g.:
|
|
265
|
+
workspace-modern, tech-innovation, team-office
|
|
182
266
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
- Create meaningful seeds based on content (e.g., "workspace-modern", "tech-innovation", "team-office")
|
|
188
|
-
- Same seed = same image (ensures consistency)
|
|
189
|
-
- Choose appropriate dimensions: Hero (1200x600), Cards (400x300), Team (300x300)
|
|
190
|
-
- Always include descriptive alt text for accessibility
|
|
267
|
+
- Suggested sizes:
|
|
268
|
+
* Hero: 1200x600
|
|
269
|
+
* Cards: 400x300
|
|
270
|
+
* Team: 300x300
|
|
191
271
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
-
|
|
198
|
-
-
|
|
272
|
+
- Always include descriptive alt text.
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
# 9. OUTPUT RESTRICTIONS
|
|
276
|
+
|
|
277
|
+
- Output ONLY the exact allowed action blocks inside the mandatory format.
|
|
278
|
+
- NEVER include stray text.
|
|
279
|
+
- NEVER include markdown.
|
|
280
|
+
- NEVER break the format.
|
|
281
|
+
- NEVER place ANYTHING before '--START--'.
|
|
282
|
+
- The output must always begin with '--START--' and end with '--END--'.
|
|
283
|
+
`.trim();
|
|
199
284
|
function ci(e = null) {
|
|
200
285
|
if (e)
|
|
201
286
|
switch (e) {
|
|
@@ -208,18 +293,18 @@ function ci(e = null) {
|
|
|
208
293
|
}
|
|
209
294
|
return hn;
|
|
210
295
|
}
|
|
211
|
-
let
|
|
296
|
+
let xa = async (e) => ({
|
|
212
297
|
...e
|
|
213
298
|
});
|
|
214
299
|
const eg = (e) => {
|
|
215
|
-
|
|
300
|
+
xa = e;
|
|
216
301
|
}, gn = async (e) => {
|
|
217
302
|
try {
|
|
218
|
-
return await
|
|
303
|
+
return await xa(e);
|
|
219
304
|
} catch (t) {
|
|
220
305
|
return console.error(t), {};
|
|
221
306
|
}
|
|
222
|
-
}, Vt = {}, vn = () => Object.values(Vt),
|
|
307
|
+
}, Vt = {}, vn = () => Object.values(Vt), Ae = (e) => Vt[e], li = (e, t) => {
|
|
223
308
|
Vt[e] = { key: e, ...t, hasSlug: !0 };
|
|
224
309
|
}, di = (e, t) => {
|
|
225
310
|
Vt[e] = { key: e, ...t, hasSlug: !1 };
|
|
@@ -228,7 +313,7 @@ function tg(e, t) {
|
|
|
228
313
|
Pt($t, e) && console.warn(`Collection ${e} already registered`), $t[e] = { ...t, id: e };
|
|
229
314
|
}
|
|
230
315
|
const pi = () => Object.values($t), yn = (e) => Rt($t, e);
|
|
231
|
-
var
|
|
316
|
+
var ka = "vercel.ai.error", fi = Symbol.for(ka), Na, mi = class Oa extends Error {
|
|
232
317
|
/**
|
|
233
318
|
* Creates an AI SDK Error.
|
|
234
319
|
*
|
|
@@ -242,7 +327,7 @@ var Aa = "vercel.ai.error", fi = Symbol.for(Aa), Oa, mi = class Na extends Error
|
|
|
242
327
|
message: r,
|
|
243
328
|
cause: n
|
|
244
329
|
}) {
|
|
245
|
-
super(r), this[
|
|
330
|
+
super(r), this[Na] = !0, this.name = t, this.cause = n;
|
|
246
331
|
}
|
|
247
332
|
/**
|
|
248
333
|
* Checks if the given error is an AI SDK Error.
|
|
@@ -250,14 +335,14 @@ var Aa = "vercel.ai.error", fi = Symbol.for(Aa), Oa, mi = class Na extends Error
|
|
|
250
335
|
* @returns {boolean} True if the error is an AI SDK Error, false otherwise.
|
|
251
336
|
*/
|
|
252
337
|
static isInstance(t) {
|
|
253
|
-
return
|
|
338
|
+
return Oa.hasMarker(t, ka);
|
|
254
339
|
}
|
|
255
340
|
static hasMarker(t, r) {
|
|
256
341
|
const n = Symbol.for(r);
|
|
257
342
|
return t != null && typeof t == "object" && n in t && typeof t[n] == "boolean" && t[n] === !0;
|
|
258
343
|
}
|
|
259
344
|
};
|
|
260
|
-
|
|
345
|
+
Na = fi;
|
|
261
346
|
var R = mi, Ra = "AI_APICallError", Ca = `vercel.ai.error.${Ra}`, hi = Symbol.for(Ca), Pa, X = class extends R {
|
|
262
347
|
constructor({
|
|
263
348
|
message: e,
|
|
@@ -348,7 +433,7 @@ var qa = "AI_NoSuchModelError", Ja = `vercel.ai.error.${qa}`, Ti = Symbol.for(Ja
|
|
|
348
433
|
}
|
|
349
434
|
};
|
|
350
435
|
Ha = Ti;
|
|
351
|
-
var Ya = "AI_TypeValidationError", Wa = `vercel.ai.error.${Ya}`,
|
|
436
|
+
var Ya = "AI_TypeValidationError", Wa = `vercel.ai.error.${Ya}`, Ii = Symbol.for(Wa), Ka, Ei = class Ir extends R {
|
|
352
437
|
constructor({ value: t, cause: r }) {
|
|
353
438
|
super({
|
|
354
439
|
name: Ya,
|
|
@@ -374,11 +459,11 @@ Error message: ${Ge(r)}`,
|
|
|
374
459
|
value: t,
|
|
375
460
|
cause: r
|
|
376
461
|
}) {
|
|
377
|
-
return
|
|
462
|
+
return Ir.isInstance(r) && r.value === t ? r : new Ir({ value: t, cause: r });
|
|
378
463
|
}
|
|
379
464
|
};
|
|
380
|
-
Ka =
|
|
381
|
-
var it =
|
|
465
|
+
Ka = Ii;
|
|
466
|
+
var it = Ei;
|
|
382
467
|
class _n extends Error {
|
|
383
468
|
constructor(t, r) {
|
|
384
469
|
super(t), this.name = "ParseError", this.type = r.type, this.field = r.field, this.value = r.value, this.line = r.line;
|
|
@@ -386,7 +471,7 @@ class _n extends Error {
|
|
|
386
471
|
}
|
|
387
472
|
function lr(e) {
|
|
388
473
|
}
|
|
389
|
-
function
|
|
474
|
+
function Ai(e) {
|
|
390
475
|
if (typeof e == "function")
|
|
391
476
|
throw new TypeError(
|
|
392
477
|
"`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?"
|
|
@@ -394,7 +479,7 @@ function xi(e) {
|
|
|
394
479
|
const { onEvent: t = lr, onError: r = lr, onRetry: n = lr, onComment: a } = e;
|
|
395
480
|
let o = "", s = !0, i, u = "", c = "";
|
|
396
481
|
function m(w) {
|
|
397
|
-
const v = s ? w.replace(/^\xEF\xBB\xBF/, "") : w, [l, g] =
|
|
482
|
+
const v = s ? w.replace(/^\xEF\xBB\xBF/, "") : w, [l, g] = xi(`${o}${v}`);
|
|
398
483
|
for (const y of l)
|
|
399
484
|
b(y);
|
|
400
485
|
o = g, s = !1;
|
|
@@ -462,7 +547,7 @@ function xi(e) {
|
|
|
462
547
|
}
|
|
463
548
|
return { feed: m, reset: f };
|
|
464
549
|
}
|
|
465
|
-
function
|
|
550
|
+
function xi(e) {
|
|
466
551
|
const t = [];
|
|
467
552
|
let r = "", n = 0;
|
|
468
553
|
for (; n < e.length; ) {
|
|
@@ -480,12 +565,12 @@ function ki(e) {
|
|
|
480
565
|
}
|
|
481
566
|
return [t, r];
|
|
482
567
|
}
|
|
483
|
-
class
|
|
568
|
+
class ki extends TransformStream {
|
|
484
569
|
constructor({ onError: t, onRetry: r, onComment: n } = {}) {
|
|
485
570
|
let a;
|
|
486
571
|
super({
|
|
487
572
|
start(o) {
|
|
488
|
-
a =
|
|
573
|
+
a = Ai({
|
|
489
574
|
onEvent: (s) => {
|
|
490
575
|
o.enqueue(s);
|
|
491
576
|
},
|
|
@@ -545,7 +630,7 @@ function Qa(e) {
|
|
|
545
630
|
const t = Object.values(e).filter((n) => typeof n == "number");
|
|
546
631
|
return Object.entries(e).filter(([n, a]) => t.indexOf(+n) === -1).map(([n, a]) => a);
|
|
547
632
|
}
|
|
548
|
-
function
|
|
633
|
+
function Er(e, t) {
|
|
549
634
|
return typeof t == "bigint" ? t.toString() : t;
|
|
550
635
|
}
|
|
551
636
|
function Dr(e) {
|
|
@@ -565,7 +650,7 @@ function jr(e) {
|
|
|
565
650
|
const t = e.startsWith("^") ? 1 : 0, r = e.endsWith("$") ? e.length - 1 : e.length;
|
|
566
651
|
return e.slice(t, r);
|
|
567
652
|
}
|
|
568
|
-
function
|
|
653
|
+
function Ni(e, t) {
|
|
569
654
|
const r = (e.toString().split(".")[1] || "").length, n = t.toString();
|
|
570
655
|
let a = (n.split(".")[1] || "").length;
|
|
571
656
|
if (a === 0 && /\d?e-\d?/.test(n)) {
|
|
@@ -595,7 +680,7 @@ function C(e, t, r) {
|
|
|
595
680
|
function eo(e) {
|
|
596
681
|
return Object.create(Object.getPrototypeOf(e), Object.getOwnPropertyDescriptors(e));
|
|
597
682
|
}
|
|
598
|
-
function
|
|
683
|
+
function Ee(e, t, r) {
|
|
599
684
|
Object.defineProperty(e, t, {
|
|
600
685
|
value: r,
|
|
601
686
|
writable: !0,
|
|
@@ -619,7 +704,7 @@ const to = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
|
619
704
|
function zt(e) {
|
|
620
705
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
621
706
|
}
|
|
622
|
-
const
|
|
707
|
+
const Oi = Dr(() => {
|
|
623
708
|
var e;
|
|
624
709
|
if (typeof navigator < "u" && ((e = navigator == null ? void 0 : navigator.userAgent) != null && e.includes("Cloudflare")))
|
|
625
710
|
return !1;
|
|
@@ -650,7 +735,7 @@ function Pe(e, t, r) {
|
|
|
650
735
|
const n = new e._zod.constr(t ?? e._zod.def);
|
|
651
736
|
return (!t || r != null && r.parent) && (n._zod.parent = e), n;
|
|
652
737
|
}
|
|
653
|
-
function
|
|
738
|
+
function I(e) {
|
|
654
739
|
const t = e;
|
|
655
740
|
if (!t)
|
|
656
741
|
return {};
|
|
@@ -682,7 +767,7 @@ function $i(e, t) {
|
|
|
682
767
|
throw new Error(`Unrecognized key: "${o}"`);
|
|
683
768
|
t[o] && (a[o] = r.shape[o]);
|
|
684
769
|
}
|
|
685
|
-
return
|
|
770
|
+
return Ee(this, "shape", a), a;
|
|
686
771
|
},
|
|
687
772
|
checks: []
|
|
688
773
|
});
|
|
@@ -697,7 +782,7 @@ function Mi(e, t) {
|
|
|
697
782
|
throw new Error(`Unrecognized key: "${o}"`);
|
|
698
783
|
t[o] && delete a[o];
|
|
699
784
|
}
|
|
700
|
-
return
|
|
785
|
+
return Ee(this, "shape", a), a;
|
|
701
786
|
},
|
|
702
787
|
checks: []
|
|
703
788
|
});
|
|
@@ -709,7 +794,7 @@ function zi(e, t) {
|
|
|
709
794
|
const r = qe(e._zod.def, {
|
|
710
795
|
get shape() {
|
|
711
796
|
const n = { ...e._zod.def.shape, ...t };
|
|
712
|
-
return
|
|
797
|
+
return Ee(this, "shape", n), n;
|
|
713
798
|
},
|
|
714
799
|
checks: []
|
|
715
800
|
});
|
|
@@ -719,7 +804,7 @@ function Zi(e, t) {
|
|
|
719
804
|
const r = qe(e._zod.def, {
|
|
720
805
|
get shape() {
|
|
721
806
|
const n = { ...e._zod.def.shape, ...t._zod.def.shape };
|
|
722
|
-
return
|
|
807
|
+
return Ee(this, "shape", n), n;
|
|
723
808
|
},
|
|
724
809
|
get catchall() {
|
|
725
810
|
return t._zod.def.catchall;
|
|
@@ -748,7 +833,7 @@ function Di(e, t, r) {
|
|
|
748
833
|
type: "optional",
|
|
749
834
|
innerType: a[s]
|
|
750
835
|
});
|
|
751
|
-
return
|
|
836
|
+
return Ee(this, "shape", o), o;
|
|
752
837
|
},
|
|
753
838
|
checks: []
|
|
754
839
|
});
|
|
@@ -773,7 +858,7 @@ function Ui(e, t, r) {
|
|
|
773
858
|
type: "nonoptional",
|
|
774
859
|
innerType: a[s]
|
|
775
860
|
});
|
|
776
|
-
return
|
|
861
|
+
return Ee(this, "shape", o), o;
|
|
777
862
|
},
|
|
778
863
|
checks: []
|
|
779
864
|
});
|
|
@@ -792,14 +877,14 @@ function Le(e, t) {
|
|
|
792
877
|
return (n = r).path ?? (n.path = []), r.path.unshift(e), r;
|
|
793
878
|
});
|
|
794
879
|
}
|
|
795
|
-
function
|
|
880
|
+
function Et(e) {
|
|
796
881
|
return typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
797
882
|
}
|
|
798
883
|
function we(e, t, r) {
|
|
799
884
|
var a, o, s, i, u, c;
|
|
800
885
|
const n = { ...e, path: e.path ?? [] };
|
|
801
886
|
if (!e.message) {
|
|
802
|
-
const m =
|
|
887
|
+
const m = Et((s = (o = (a = e.inst) == null ? void 0 : a._zod.def) == null ? void 0 : o.error) == null ? void 0 : s.call(o, e)) ?? Et((i = t == null ? void 0 : t.error) == null ? void 0 : i.call(t, e)) ?? Et((u = r.customError) == null ? void 0 : u.call(r, e)) ?? Et((c = r.localeError) == null ? void 0 : c.call(r, e)) ?? "Invalid input";
|
|
803
888
|
n.message = m;
|
|
804
889
|
}
|
|
805
890
|
return delete n.inst, delete n.continue, t != null && t.reportInput || delete n.input, n;
|
|
@@ -823,7 +908,7 @@ const no = (e, t) => {
|
|
|
823
908
|
}), Object.defineProperty(e, "issues", {
|
|
824
909
|
value: t,
|
|
825
910
|
enumerable: !1
|
|
826
|
-
}), e.message = JSON.stringify(t,
|
|
911
|
+
}), e.message = JSON.stringify(t, Er, 2), Object.defineProperty(e, "toString", {
|
|
827
912
|
value: () => e.message,
|
|
828
913
|
enumerable: !1
|
|
829
914
|
});
|
|
@@ -958,7 +1043,7 @@ const fu = (e) => {
|
|
|
958
1043
|
}), e._zod.check = (r) => {
|
|
959
1044
|
if (typeof r.value != typeof t.value)
|
|
960
1045
|
throw new Error("Cannot mix number and bigint in multiple_of check.");
|
|
961
|
-
(typeof r.value == "bigint" ? r.value % t.value === BigInt(0) :
|
|
1046
|
+
(typeof r.value == "bigint" ? r.value % t.value === BigInt(0) : Ni(r.value, t.value) === 0) || r.issues.push({
|
|
962
1047
|
origin: typeof r.value,
|
|
963
1048
|
code: "not_multiple_of",
|
|
964
1049
|
divisor: t.value,
|
|
@@ -1071,7 +1156,7 @@ const fu = (e) => {
|
|
|
1071
1156
|
continue: !t.abort
|
|
1072
1157
|
});
|
|
1073
1158
|
};
|
|
1074
|
-
}),
|
|
1159
|
+
}), Iu = /* @__PURE__ */ h("$ZodCheckLengthEquals", (e, t) => {
|
|
1075
1160
|
var r;
|
|
1076
1161
|
Q.init(e, t), (r = e._zod.def).when ?? (r.when = (n) => {
|
|
1077
1162
|
const a = n.value;
|
|
@@ -1111,7 +1196,7 @@ const fu = (e) => {
|
|
|
1111
1196
|
});
|
|
1112
1197
|
}) : (n = e._zod).check ?? (n.check = () => {
|
|
1113
1198
|
});
|
|
1114
|
-
}),
|
|
1199
|
+
}), Eu = /* @__PURE__ */ h("$ZodCheckRegex", (e, t) => {
|
|
1115
1200
|
Bt.init(e, t), e._zod.check = (r) => {
|
|
1116
1201
|
t.pattern.lastIndex = 0, !t.pattern.test(r.value) && r.issues.push({
|
|
1117
1202
|
origin: "string",
|
|
@@ -1123,11 +1208,11 @@ const fu = (e) => {
|
|
|
1123
1208
|
continue: !t.abort
|
|
1124
1209
|
});
|
|
1125
1210
|
};
|
|
1126
|
-
}),
|
|
1211
|
+
}), Au = /* @__PURE__ */ h("$ZodCheckLowerCase", (e, t) => {
|
|
1127
1212
|
t.pattern ?? (t.pattern = yu), Bt.init(e, t);
|
|
1128
|
-
}),
|
|
1213
|
+
}), xu = /* @__PURE__ */ h("$ZodCheckUpperCase", (e, t) => {
|
|
1129
1214
|
t.pattern ?? (t.pattern = _u), Bt.init(e, t);
|
|
1130
|
-
}),
|
|
1215
|
+
}), ku = /* @__PURE__ */ h("$ZodCheckIncludes", (e, t) => {
|
|
1131
1216
|
Q.init(e, t);
|
|
1132
1217
|
const r = Be(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
|
|
1133
1218
|
t.pattern = n, e._zod.onattach.push((a) => {
|
|
@@ -1144,7 +1229,7 @@ const fu = (e) => {
|
|
|
1144
1229
|
continue: !t.abort
|
|
1145
1230
|
});
|
|
1146
1231
|
};
|
|
1147
|
-
}),
|
|
1232
|
+
}), Nu = /* @__PURE__ */ h("$ZodCheckStartsWith", (e, t) => {
|
|
1148
1233
|
Q.init(e, t);
|
|
1149
1234
|
const r = new RegExp(`^${Be(t.prefix)}.*`);
|
|
1150
1235
|
t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
|
|
@@ -1161,7 +1246,7 @@ const fu = (e) => {
|
|
|
1161
1246
|
continue: !t.abort
|
|
1162
1247
|
});
|
|
1163
1248
|
};
|
|
1164
|
-
}),
|
|
1249
|
+
}), Ou = /* @__PURE__ */ h("$ZodCheckEndsWith", (e, t) => {
|
|
1165
1250
|
Q.init(e, t);
|
|
1166
1251
|
const r = new RegExp(`.*${Be(t.suffix)}$`);
|
|
1167
1252
|
t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
|
|
@@ -1565,7 +1650,7 @@ const dc = /* @__PURE__ */ h("$ZodArray", (e, t) => {
|
|
|
1565
1650
|
return o.length ? Promise.all(o).then(() => r) : r;
|
|
1566
1651
|
};
|
|
1567
1652
|
});
|
|
1568
|
-
function
|
|
1653
|
+
function At(e, t, r, n) {
|
|
1569
1654
|
e.issues.length && t.issues.push(...Le(r, e.issues)), e.value === void 0 ? r in n && (t.value[r] = void 0) : t.value[r] = e.value;
|
|
1570
1655
|
}
|
|
1571
1656
|
const pc = /* @__PURE__ */ h("$ZodObject", (e, t) => {
|
|
@@ -1631,7 +1716,7 @@ const pc = /* @__PURE__ */ h("$ZodObject", (e, t) => {
|
|
|
1631
1716
|
return (g, y) => l(b, g, y);
|
|
1632
1717
|
};
|
|
1633
1718
|
let a;
|
|
1634
|
-
const o = zt, s = !Xa.jitless, u = s &&
|
|
1719
|
+
const o = zt, s = !Xa.jitless, u = s && Oi.value, c = t.catchall;
|
|
1635
1720
|
let m;
|
|
1636
1721
|
e._zod.parse = (b, _) => {
|
|
1637
1722
|
m ?? (m = r.value);
|
|
@@ -1650,8 +1735,8 @@ const pc = /* @__PURE__ */ h("$ZodObject", (e, t) => {
|
|
|
1650
1735
|
b.value = {};
|
|
1651
1736
|
const y = m.shape;
|
|
1652
1737
|
for (const d of m.keys) {
|
|
1653
|
-
const
|
|
1654
|
-
|
|
1738
|
+
const E = y[d]._zod.run({ value: p[d], issues: [] }, _);
|
|
1739
|
+
E instanceof Promise ? f.push(E.then((A) => At(A, b, d, p))) : At(E, b, d, p);
|
|
1655
1740
|
}
|
|
1656
1741
|
}
|
|
1657
1742
|
if (!c)
|
|
@@ -1665,7 +1750,7 @@ const pc = /* @__PURE__ */ h("$ZodObject", (e, t) => {
|
|
|
1665
1750
|
continue;
|
|
1666
1751
|
}
|
|
1667
1752
|
const d = l.run({ value: p[y], issues: [] }, _);
|
|
1668
|
-
d instanceof Promise ? f.push(d.then((S) =>
|
|
1753
|
+
d instanceof Promise ? f.push(d.then((S) => At(S, b, y, p))) : At(d, b, y, p);
|
|
1669
1754
|
}
|
|
1670
1755
|
return w.length && b.issues.push({
|
|
1671
1756
|
code: "unrecognized_keys",
|
|
@@ -1675,7 +1760,7 @@ const pc = /* @__PURE__ */ h("$ZodObject", (e, t) => {
|
|
|
1675
1760
|
}), f.length ? Promise.all(f).then(() => b) : b;
|
|
1676
1761
|
};
|
|
1677
1762
|
});
|
|
1678
|
-
function
|
|
1763
|
+
function In(e, t, r, n) {
|
|
1679
1764
|
for (const o of e)
|
|
1680
1765
|
if (o.issues.length === 0)
|
|
1681
1766
|
return t.value = o.value, t;
|
|
@@ -1716,7 +1801,7 @@ const vo = /* @__PURE__ */ h("$ZodUnion", (e, t) => {
|
|
|
1716
1801
|
i.push(c);
|
|
1717
1802
|
}
|
|
1718
1803
|
}
|
|
1719
|
-
return s ? Promise.all(i).then((u) =>
|
|
1804
|
+
return s ? Promise.all(i).then((u) => In(u, a, e, o)) : In(i, a, e, o);
|
|
1720
1805
|
};
|
|
1721
1806
|
}), fc = /* @__PURE__ */ h("$ZodDiscriminatedUnion", (e, t) => {
|
|
1722
1807
|
vo.init(e, t);
|
|
@@ -1773,10 +1858,10 @@ const vo = /* @__PURE__ */ h("$ZodUnion", (e, t) => {
|
|
|
1773
1858
|
}), mc = /* @__PURE__ */ h("$ZodIntersection", (e, t) => {
|
|
1774
1859
|
Z.init(e, t), e._zod.parse = (r, n) => {
|
|
1775
1860
|
const a = r.value, o = t.left._zod.run({ value: a, issues: [] }, n), s = t.right._zod.run({ value: a, issues: [] }, n);
|
|
1776
|
-
return o instanceof Promise || s instanceof Promise ? Promise.all([o, s]).then(([u, c]) =>
|
|
1861
|
+
return o instanceof Promise || s instanceof Promise ? Promise.all([o, s]).then(([u, c]) => En(r, u, c)) : En(r, o, s);
|
|
1777
1862
|
};
|
|
1778
1863
|
});
|
|
1779
|
-
function
|
|
1864
|
+
function Ar(e, t) {
|
|
1780
1865
|
if (e === t)
|
|
1781
1866
|
return { valid: !0, data: e };
|
|
1782
1867
|
if (e instanceof Date && t instanceof Date && +e == +t)
|
|
@@ -1784,7 +1869,7 @@ function xr(e, t) {
|
|
|
1784
1869
|
if (ct(e) && ct(t)) {
|
|
1785
1870
|
const r = Object.keys(t), n = Object.keys(e).filter((o) => r.indexOf(o) !== -1), a = { ...e, ...t };
|
|
1786
1871
|
for (const o of n) {
|
|
1787
|
-
const s =
|
|
1872
|
+
const s = Ar(e[o], t[o]);
|
|
1788
1873
|
if (!s.valid)
|
|
1789
1874
|
return {
|
|
1790
1875
|
valid: !1,
|
|
@@ -1799,7 +1884,7 @@ function xr(e, t) {
|
|
|
1799
1884
|
return { valid: !1, mergeErrorPath: [] };
|
|
1800
1885
|
const r = [];
|
|
1801
1886
|
for (let n = 0; n < e.length; n++) {
|
|
1802
|
-
const a = e[n], o = t[n], s =
|
|
1887
|
+
const a = e[n], o = t[n], s = Ar(a, o);
|
|
1803
1888
|
if (!s.valid)
|
|
1804
1889
|
return {
|
|
1805
1890
|
valid: !1,
|
|
@@ -1811,10 +1896,10 @@ function xr(e, t) {
|
|
|
1811
1896
|
}
|
|
1812
1897
|
return { valid: !1, mergeErrorPath: [] };
|
|
1813
1898
|
}
|
|
1814
|
-
function
|
|
1899
|
+
function En(e, t, r) {
|
|
1815
1900
|
if (t.issues.length && e.issues.push(...t.issues), r.issues.length && e.issues.push(...r.issues), ot(e))
|
|
1816
1901
|
return e;
|
|
1817
|
-
const n =
|
|
1902
|
+
const n = Ar(t.value, r.value);
|
|
1818
1903
|
if (!n.valid)
|
|
1819
1904
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);
|
|
1820
1905
|
return e.value = n.data, e;
|
|
@@ -1910,7 +1995,7 @@ const hc = /* @__PURE__ */ h("$ZodRecord", (e, t) => {
|
|
|
1910
1995
|
return r.value = a, r;
|
|
1911
1996
|
};
|
|
1912
1997
|
});
|
|
1913
|
-
function
|
|
1998
|
+
function An(e, t) {
|
|
1914
1999
|
return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
|
|
1915
2000
|
}
|
|
1916
2001
|
const _c = /* @__PURE__ */ h("$ZodOptional", (e, t) => {
|
|
@@ -1920,7 +2005,7 @@ const _c = /* @__PURE__ */ h("$ZodOptional", (e, t) => {
|
|
|
1920
2005
|
}), e._zod.parse = (r, n) => {
|
|
1921
2006
|
if (t.innerType._zod.optin === "optional") {
|
|
1922
2007
|
const a = t.innerType._zod.run(r, n);
|
|
1923
|
-
return a instanceof Promise ? a.then((o) =>
|
|
2008
|
+
return a instanceof Promise ? a.then((o) => An(o, r.value)) : An(a, r.value);
|
|
1924
2009
|
}
|
|
1925
2010
|
return r.value === void 0 ? r : t.innerType._zod.run(r, n);
|
|
1926
2011
|
};
|
|
@@ -1934,10 +2019,10 @@ const _c = /* @__PURE__ */ h("$ZodOptional", (e, t) => {
|
|
|
1934
2019
|
if (r.value === void 0)
|
|
1935
2020
|
return r.value = t.defaultValue, r;
|
|
1936
2021
|
const a = t.innerType._zod.run(r, n);
|
|
1937
|
-
return a instanceof Promise ? a.then((o) =>
|
|
2022
|
+
return a instanceof Promise ? a.then((o) => xn(o, t)) : xn(a, t);
|
|
1938
2023
|
};
|
|
1939
2024
|
});
|
|
1940
|
-
function
|
|
2025
|
+
function xn(e, t) {
|
|
1941
2026
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1942
2027
|
}
|
|
1943
2028
|
const Tc = /* @__PURE__ */ h("$ZodPrefault", (e, t) => {
|
|
@@ -1948,10 +2033,10 @@ const Tc = /* @__PURE__ */ h("$ZodPrefault", (e, t) => {
|
|
|
1948
2033
|
return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
|
|
1949
2034
|
}), e._zod.parse = (r, n) => {
|
|
1950
2035
|
const a = t.innerType._zod.run(r, n);
|
|
1951
|
-
return a instanceof Promise ? a.then((o) =>
|
|
2036
|
+
return a instanceof Promise ? a.then((o) => kn(o, e)) : kn(a, e);
|
|
1952
2037
|
};
|
|
1953
2038
|
});
|
|
1954
|
-
function
|
|
2039
|
+
function kn(e, t) {
|
|
1955
2040
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1956
2041
|
code: "invalid_type",
|
|
1957
2042
|
expected: "nonoptional",
|
|
@@ -1959,7 +2044,7 @@ function An(e, t) {
|
|
|
1959
2044
|
inst: t
|
|
1960
2045
|
}), e;
|
|
1961
2046
|
}
|
|
1962
|
-
const
|
|
2047
|
+
const Ic = /* @__PURE__ */ h("$ZodCatch", (e, t) => {
|
|
1963
2048
|
Z.init(e, t), C(e._zod, "optin", () => t.innerType._zod.optin), C(e._zod, "optout", () => t.innerType._zod.optout), C(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
|
|
1964
2049
|
const a = t.innerType._zod.run(r, n);
|
|
1965
2050
|
return a instanceof Promise ? a.then((o) => (r.value = o.value, o.issues.length && (r.value = t.catchValue({
|
|
@@ -1976,27 +2061,27 @@ const Ec = /* @__PURE__ */ h("$ZodCatch", (e, t) => {
|
|
|
1976
2061
|
input: r.value
|
|
1977
2062
|
}), r.issues = []), r);
|
|
1978
2063
|
};
|
|
1979
|
-
}),
|
|
2064
|
+
}), Ec = /* @__PURE__ */ h("$ZodPipe", (e, t) => {
|
|
1980
2065
|
Z.init(e, t), C(e._zod, "values", () => t.in._zod.values), C(e._zod, "optin", () => t.in._zod.optin), C(e._zod, "optout", () => t.out._zod.optout), C(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (r, n) => {
|
|
1981
2066
|
const a = t.in._zod.run(r, n);
|
|
1982
|
-
return a instanceof Promise ? a.then((o) =>
|
|
2067
|
+
return a instanceof Promise ? a.then((o) => Nn(o, t, n)) : Nn(a, t, n);
|
|
1983
2068
|
};
|
|
1984
2069
|
});
|
|
1985
|
-
function
|
|
2070
|
+
function Nn(e, t, r) {
|
|
1986
2071
|
return e.issues.length ? e : t.out._zod.run({ value: e.value, issues: e.issues }, r);
|
|
1987
2072
|
}
|
|
1988
|
-
const
|
|
2073
|
+
const Ac = /* @__PURE__ */ h("$ZodReadonly", (e, t) => {
|
|
1989
2074
|
Z.init(e, t), C(e._zod, "propValues", () => t.innerType._zod.propValues), C(e._zod, "values", () => t.innerType._zod.values), C(e._zod, "optin", () => t.innerType._zod.optin), C(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (r, n) => {
|
|
1990
2075
|
const a = t.innerType._zod.run(r, n);
|
|
1991
|
-
return a instanceof Promise ? a.then(
|
|
2076
|
+
return a instanceof Promise ? a.then(On) : On(a);
|
|
1992
2077
|
};
|
|
1993
2078
|
});
|
|
1994
|
-
function
|
|
2079
|
+
function On(e) {
|
|
1995
2080
|
return e.value = Object.freeze(e.value), e;
|
|
1996
2081
|
}
|
|
1997
|
-
const
|
|
2082
|
+
const xc = /* @__PURE__ */ h("$ZodLazy", (e, t) => {
|
|
1998
2083
|
Z.init(e, t), C(e._zod, "innerType", () => t.getter()), C(e._zod, "pattern", () => e._zod.innerType._zod.pattern), C(e._zod, "propValues", () => e._zod.innerType._zod.propValues), C(e._zod, "optin", () => e._zod.innerType._zod.optin ?? void 0), C(e._zod, "optout", () => e._zod.innerType._zod.optout ?? void 0), e._zod.parse = (r, n) => e._zod.innerType._zod.run(r, n);
|
|
1999
|
-
}),
|
|
2084
|
+
}), kc = /* @__PURE__ */ h("$ZodCustom", (e, t) => {
|
|
2000
2085
|
Q.init(e, t), Z.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
|
|
2001
2086
|
const n = r.value, a = t.fn(n);
|
|
2002
2087
|
if (a instanceof Promise)
|
|
@@ -2053,14 +2138,14 @@ class yo {
|
|
|
2053
2138
|
return this._map.has(t);
|
|
2054
2139
|
}
|
|
2055
2140
|
}
|
|
2056
|
-
function
|
|
2141
|
+
function Nc() {
|
|
2057
2142
|
return new yo();
|
|
2058
2143
|
}
|
|
2059
|
-
const at = /* @__PURE__ */
|
|
2060
|
-
function
|
|
2144
|
+
const at = /* @__PURE__ */ Nc();
|
|
2145
|
+
function Oc(e, t) {
|
|
2061
2146
|
return new e({
|
|
2062
2147
|
type: "string",
|
|
2063
|
-
...
|
|
2148
|
+
...I(t)
|
|
2064
2149
|
});
|
|
2065
2150
|
}
|
|
2066
2151
|
function Rc(e, t) {
|
|
@@ -2069,7 +2154,7 @@ function Rc(e, t) {
|
|
|
2069
2154
|
format: "email",
|
|
2070
2155
|
check: "string_format",
|
|
2071
2156
|
abort: !1,
|
|
2072
|
-
...
|
|
2157
|
+
...I(t)
|
|
2073
2158
|
});
|
|
2074
2159
|
}
|
|
2075
2160
|
function Cn(e, t) {
|
|
@@ -2078,7 +2163,7 @@ function Cn(e, t) {
|
|
|
2078
2163
|
format: "guid",
|
|
2079
2164
|
check: "string_format",
|
|
2080
2165
|
abort: !1,
|
|
2081
|
-
...
|
|
2166
|
+
...I(t)
|
|
2082
2167
|
});
|
|
2083
2168
|
}
|
|
2084
2169
|
function Cc(e, t) {
|
|
@@ -2087,7 +2172,7 @@ function Cc(e, t) {
|
|
|
2087
2172
|
format: "uuid",
|
|
2088
2173
|
check: "string_format",
|
|
2089
2174
|
abort: !1,
|
|
2090
|
-
...
|
|
2175
|
+
...I(t)
|
|
2091
2176
|
});
|
|
2092
2177
|
}
|
|
2093
2178
|
function Pc(e, t) {
|
|
@@ -2097,7 +2182,7 @@ function Pc(e, t) {
|
|
|
2097
2182
|
check: "string_format",
|
|
2098
2183
|
abort: !1,
|
|
2099
2184
|
version: "v4",
|
|
2100
|
-
...
|
|
2185
|
+
...I(t)
|
|
2101
2186
|
});
|
|
2102
2187
|
}
|
|
2103
2188
|
function $c(e, t) {
|
|
@@ -2107,7 +2192,7 @@ function $c(e, t) {
|
|
|
2107
2192
|
check: "string_format",
|
|
2108
2193
|
abort: !1,
|
|
2109
2194
|
version: "v6",
|
|
2110
|
-
...
|
|
2195
|
+
...I(t)
|
|
2111
2196
|
});
|
|
2112
2197
|
}
|
|
2113
2198
|
function Mc(e, t) {
|
|
@@ -2117,7 +2202,7 @@ function Mc(e, t) {
|
|
|
2117
2202
|
check: "string_format",
|
|
2118
2203
|
abort: !1,
|
|
2119
2204
|
version: "v7",
|
|
2120
|
-
...
|
|
2205
|
+
...I(t)
|
|
2121
2206
|
});
|
|
2122
2207
|
}
|
|
2123
2208
|
function zc(e, t) {
|
|
@@ -2126,7 +2211,7 @@ function zc(e, t) {
|
|
|
2126
2211
|
format: "url",
|
|
2127
2212
|
check: "string_format",
|
|
2128
2213
|
abort: !1,
|
|
2129
|
-
...
|
|
2214
|
+
...I(t)
|
|
2130
2215
|
});
|
|
2131
2216
|
}
|
|
2132
2217
|
function Zc(e, t) {
|
|
@@ -2135,7 +2220,7 @@ function Zc(e, t) {
|
|
|
2135
2220
|
format: "emoji",
|
|
2136
2221
|
check: "string_format",
|
|
2137
2222
|
abort: !1,
|
|
2138
|
-
...
|
|
2223
|
+
...I(t)
|
|
2139
2224
|
});
|
|
2140
2225
|
}
|
|
2141
2226
|
function Dc(e, t) {
|
|
@@ -2144,7 +2229,7 @@ function Dc(e, t) {
|
|
|
2144
2229
|
format: "nanoid",
|
|
2145
2230
|
check: "string_format",
|
|
2146
2231
|
abort: !1,
|
|
2147
|
-
...
|
|
2232
|
+
...I(t)
|
|
2148
2233
|
});
|
|
2149
2234
|
}
|
|
2150
2235
|
function Uc(e, t) {
|
|
@@ -2153,7 +2238,7 @@ function Uc(e, t) {
|
|
|
2153
2238
|
format: "cuid",
|
|
2154
2239
|
check: "string_format",
|
|
2155
2240
|
abort: !1,
|
|
2156
|
-
...
|
|
2241
|
+
...I(t)
|
|
2157
2242
|
});
|
|
2158
2243
|
}
|
|
2159
2244
|
function jc(e, t) {
|
|
@@ -2162,7 +2247,7 @@ function jc(e, t) {
|
|
|
2162
2247
|
format: "cuid2",
|
|
2163
2248
|
check: "string_format",
|
|
2164
2249
|
abort: !1,
|
|
2165
|
-
...
|
|
2250
|
+
...I(t)
|
|
2166
2251
|
});
|
|
2167
2252
|
}
|
|
2168
2253
|
function Lc(e, t) {
|
|
@@ -2171,7 +2256,7 @@ function Lc(e, t) {
|
|
|
2171
2256
|
format: "ulid",
|
|
2172
2257
|
check: "string_format",
|
|
2173
2258
|
abort: !1,
|
|
2174
|
-
...
|
|
2259
|
+
...I(t)
|
|
2175
2260
|
});
|
|
2176
2261
|
}
|
|
2177
2262
|
function Fc(e, t) {
|
|
@@ -2180,7 +2265,7 @@ function Fc(e, t) {
|
|
|
2180
2265
|
format: "xid",
|
|
2181
2266
|
check: "string_format",
|
|
2182
2267
|
abort: !1,
|
|
2183
|
-
...
|
|
2268
|
+
...I(t)
|
|
2184
2269
|
});
|
|
2185
2270
|
}
|
|
2186
2271
|
function Vc(e, t) {
|
|
@@ -2189,7 +2274,7 @@ function Vc(e, t) {
|
|
|
2189
2274
|
format: "ksuid",
|
|
2190
2275
|
check: "string_format",
|
|
2191
2276
|
abort: !1,
|
|
2192
|
-
...
|
|
2277
|
+
...I(t)
|
|
2193
2278
|
});
|
|
2194
2279
|
}
|
|
2195
2280
|
function Bc(e, t) {
|
|
@@ -2198,7 +2283,7 @@ function Bc(e, t) {
|
|
|
2198
2283
|
format: "ipv4",
|
|
2199
2284
|
check: "string_format",
|
|
2200
2285
|
abort: !1,
|
|
2201
|
-
...
|
|
2286
|
+
...I(t)
|
|
2202
2287
|
});
|
|
2203
2288
|
}
|
|
2204
2289
|
function Gc(e, t) {
|
|
@@ -2207,7 +2292,7 @@ function Gc(e, t) {
|
|
|
2207
2292
|
format: "ipv6",
|
|
2208
2293
|
check: "string_format",
|
|
2209
2294
|
abort: !1,
|
|
2210
|
-
...
|
|
2295
|
+
...I(t)
|
|
2211
2296
|
});
|
|
2212
2297
|
}
|
|
2213
2298
|
function qc(e, t) {
|
|
@@ -2216,7 +2301,7 @@ function qc(e, t) {
|
|
|
2216
2301
|
format: "cidrv4",
|
|
2217
2302
|
check: "string_format",
|
|
2218
2303
|
abort: !1,
|
|
2219
|
-
...
|
|
2304
|
+
...I(t)
|
|
2220
2305
|
});
|
|
2221
2306
|
}
|
|
2222
2307
|
function Jc(e, t) {
|
|
@@ -2225,7 +2310,7 @@ function Jc(e, t) {
|
|
|
2225
2310
|
format: "cidrv6",
|
|
2226
2311
|
check: "string_format",
|
|
2227
2312
|
abort: !1,
|
|
2228
|
-
...
|
|
2313
|
+
...I(t)
|
|
2229
2314
|
});
|
|
2230
2315
|
}
|
|
2231
2316
|
function _o(e, t) {
|
|
@@ -2234,7 +2319,7 @@ function _o(e, t) {
|
|
|
2234
2319
|
format: "base64",
|
|
2235
2320
|
check: "string_format",
|
|
2236
2321
|
abort: !1,
|
|
2237
|
-
...
|
|
2322
|
+
...I(t)
|
|
2238
2323
|
});
|
|
2239
2324
|
}
|
|
2240
2325
|
function Hc(e, t) {
|
|
@@ -2243,7 +2328,7 @@ function Hc(e, t) {
|
|
|
2243
2328
|
format: "base64url",
|
|
2244
2329
|
check: "string_format",
|
|
2245
2330
|
abort: !1,
|
|
2246
|
-
...
|
|
2331
|
+
...I(t)
|
|
2247
2332
|
});
|
|
2248
2333
|
}
|
|
2249
2334
|
function Yc(e, t) {
|
|
@@ -2252,7 +2337,7 @@ function Yc(e, t) {
|
|
|
2252
2337
|
format: "e164",
|
|
2253
2338
|
check: "string_format",
|
|
2254
2339
|
abort: !1,
|
|
2255
|
-
...
|
|
2340
|
+
...I(t)
|
|
2256
2341
|
});
|
|
2257
2342
|
}
|
|
2258
2343
|
function Wc(e, t) {
|
|
@@ -2261,7 +2346,7 @@ function Wc(e, t) {
|
|
|
2261
2346
|
format: "jwt",
|
|
2262
2347
|
check: "string_format",
|
|
2263
2348
|
abort: !1,
|
|
2264
|
-
...
|
|
2349
|
+
...I(t)
|
|
2265
2350
|
});
|
|
2266
2351
|
}
|
|
2267
2352
|
function Kc(e, t) {
|
|
@@ -2272,7 +2357,7 @@ function Kc(e, t) {
|
|
|
2272
2357
|
offset: !1,
|
|
2273
2358
|
local: !1,
|
|
2274
2359
|
precision: null,
|
|
2275
|
-
...
|
|
2360
|
+
...I(t)
|
|
2276
2361
|
});
|
|
2277
2362
|
}
|
|
2278
2363
|
function Xc(e, t) {
|
|
@@ -2280,7 +2365,7 @@ function Xc(e, t) {
|
|
|
2280
2365
|
type: "string",
|
|
2281
2366
|
format: "date",
|
|
2282
2367
|
check: "string_format",
|
|
2283
|
-
...
|
|
2368
|
+
...I(t)
|
|
2284
2369
|
});
|
|
2285
2370
|
}
|
|
2286
2371
|
function Qc(e, t) {
|
|
@@ -2289,7 +2374,7 @@ function Qc(e, t) {
|
|
|
2289
2374
|
format: "time",
|
|
2290
2375
|
check: "string_format",
|
|
2291
2376
|
precision: null,
|
|
2292
|
-
...
|
|
2377
|
+
...I(t)
|
|
2293
2378
|
});
|
|
2294
2379
|
}
|
|
2295
2380
|
function el(e, t) {
|
|
@@ -2297,14 +2382,14 @@ function el(e, t) {
|
|
|
2297
2382
|
type: "string",
|
|
2298
2383
|
format: "duration",
|
|
2299
2384
|
check: "string_format",
|
|
2300
|
-
...
|
|
2385
|
+
...I(t)
|
|
2301
2386
|
});
|
|
2302
2387
|
}
|
|
2303
2388
|
function tl(e, t) {
|
|
2304
2389
|
return new e({
|
|
2305
2390
|
type: "number",
|
|
2306
2391
|
checks: [],
|
|
2307
|
-
...
|
|
2392
|
+
...I(t)
|
|
2308
2393
|
});
|
|
2309
2394
|
}
|
|
2310
2395
|
function rl(e, t) {
|
|
@@ -2313,19 +2398,19 @@ function rl(e, t) {
|
|
|
2313
2398
|
check: "number_format",
|
|
2314
2399
|
abort: !1,
|
|
2315
2400
|
format: "safeint",
|
|
2316
|
-
...
|
|
2401
|
+
...I(t)
|
|
2317
2402
|
});
|
|
2318
2403
|
}
|
|
2319
2404
|
function nl(e, t) {
|
|
2320
2405
|
return new e({
|
|
2321
2406
|
type: "boolean",
|
|
2322
|
-
...
|
|
2407
|
+
...I(t)
|
|
2323
2408
|
});
|
|
2324
2409
|
}
|
|
2325
2410
|
function al(e, t) {
|
|
2326
2411
|
return new e({
|
|
2327
2412
|
type: "null",
|
|
2328
|
-
...
|
|
2413
|
+
...I(t)
|
|
2329
2414
|
});
|
|
2330
2415
|
}
|
|
2331
2416
|
function ol(e) {
|
|
@@ -2341,13 +2426,13 @@ function sl(e) {
|
|
|
2341
2426
|
function il(e, t) {
|
|
2342
2427
|
return new e({
|
|
2343
2428
|
type: "never",
|
|
2344
|
-
...
|
|
2429
|
+
...I(t)
|
|
2345
2430
|
});
|
|
2346
2431
|
}
|
|
2347
2432
|
function Pn(e, t) {
|
|
2348
2433
|
return new fo({
|
|
2349
2434
|
check: "less_than",
|
|
2350
|
-
...
|
|
2435
|
+
...I(t),
|
|
2351
2436
|
value: e,
|
|
2352
2437
|
inclusive: !1
|
|
2353
2438
|
});
|
|
@@ -2355,7 +2440,7 @@ function Pn(e, t) {
|
|
|
2355
2440
|
function dr(e, t) {
|
|
2356
2441
|
return new fo({
|
|
2357
2442
|
check: "less_than",
|
|
2358
|
-
...
|
|
2443
|
+
...I(t),
|
|
2359
2444
|
value: e,
|
|
2360
2445
|
inclusive: !0
|
|
2361
2446
|
});
|
|
@@ -2363,7 +2448,7 @@ function dr(e, t) {
|
|
|
2363
2448
|
function $n(e, t) {
|
|
2364
2449
|
return new mo({
|
|
2365
2450
|
check: "greater_than",
|
|
2366
|
-
...
|
|
2451
|
+
...I(t),
|
|
2367
2452
|
value: e,
|
|
2368
2453
|
inclusive: !1
|
|
2369
2454
|
});
|
|
@@ -2371,7 +2456,7 @@ function $n(e, t) {
|
|
|
2371
2456
|
function pr(e, t) {
|
|
2372
2457
|
return new mo({
|
|
2373
2458
|
check: "greater_than",
|
|
2374
|
-
...
|
|
2459
|
+
...I(t),
|
|
2375
2460
|
value: e,
|
|
2376
2461
|
inclusive: !0
|
|
2377
2462
|
});
|
|
@@ -2379,74 +2464,74 @@ function pr(e, t) {
|
|
|
2379
2464
|
function Mn(e, t) {
|
|
2380
2465
|
return new bu({
|
|
2381
2466
|
check: "multiple_of",
|
|
2382
|
-
...
|
|
2467
|
+
...I(t),
|
|
2383
2468
|
value: e
|
|
2384
2469
|
});
|
|
2385
2470
|
}
|
|
2386
2471
|
function bo(e, t) {
|
|
2387
2472
|
return new Tu({
|
|
2388
2473
|
check: "max_length",
|
|
2389
|
-
...
|
|
2474
|
+
...I(t),
|
|
2390
2475
|
maximum: e
|
|
2391
2476
|
});
|
|
2392
2477
|
}
|
|
2393
2478
|
function Zt(e, t) {
|
|
2394
2479
|
return new Su({
|
|
2395
2480
|
check: "min_length",
|
|
2396
|
-
...
|
|
2481
|
+
...I(t),
|
|
2397
2482
|
minimum: e
|
|
2398
2483
|
});
|
|
2399
2484
|
}
|
|
2400
2485
|
function wo(e, t) {
|
|
2401
|
-
return new
|
|
2486
|
+
return new Iu({
|
|
2402
2487
|
check: "length_equals",
|
|
2403
|
-
...
|
|
2488
|
+
...I(t),
|
|
2404
2489
|
length: e
|
|
2405
2490
|
});
|
|
2406
2491
|
}
|
|
2407
2492
|
function ul(e, t) {
|
|
2408
|
-
return new
|
|
2493
|
+
return new Eu({
|
|
2409
2494
|
check: "string_format",
|
|
2410
2495
|
format: "regex",
|
|
2411
|
-
...
|
|
2496
|
+
...I(t),
|
|
2412
2497
|
pattern: e
|
|
2413
2498
|
});
|
|
2414
2499
|
}
|
|
2415
2500
|
function cl(e) {
|
|
2416
|
-
return new
|
|
2501
|
+
return new Au({
|
|
2417
2502
|
check: "string_format",
|
|
2418
2503
|
format: "lowercase",
|
|
2419
|
-
...
|
|
2504
|
+
...I(e)
|
|
2420
2505
|
});
|
|
2421
2506
|
}
|
|
2422
2507
|
function ll(e) {
|
|
2423
|
-
return new
|
|
2508
|
+
return new xu({
|
|
2424
2509
|
check: "string_format",
|
|
2425
2510
|
format: "uppercase",
|
|
2426
|
-
...
|
|
2511
|
+
...I(e)
|
|
2427
2512
|
});
|
|
2428
2513
|
}
|
|
2429
2514
|
function dl(e, t) {
|
|
2430
|
-
return new
|
|
2515
|
+
return new ku({
|
|
2431
2516
|
check: "string_format",
|
|
2432
2517
|
format: "includes",
|
|
2433
|
-
...
|
|
2518
|
+
...I(t),
|
|
2434
2519
|
includes: e
|
|
2435
2520
|
});
|
|
2436
2521
|
}
|
|
2437
2522
|
function pl(e, t) {
|
|
2438
|
-
return new
|
|
2523
|
+
return new Nu({
|
|
2439
2524
|
check: "string_format",
|
|
2440
2525
|
format: "starts_with",
|
|
2441
|
-
...
|
|
2526
|
+
...I(t),
|
|
2442
2527
|
prefix: e
|
|
2443
2528
|
});
|
|
2444
2529
|
}
|
|
2445
2530
|
function fl(e, t) {
|
|
2446
|
-
return new
|
|
2531
|
+
return new Ou({
|
|
2447
2532
|
check: "string_format",
|
|
2448
2533
|
format: "ends_with",
|
|
2449
|
-
...
|
|
2534
|
+
...I(t),
|
|
2450
2535
|
suffix: e
|
|
2451
2536
|
});
|
|
2452
2537
|
}
|
|
@@ -2475,11 +2560,11 @@ function yl(e, t, r) {
|
|
|
2475
2560
|
// get element() {
|
|
2476
2561
|
// return element;
|
|
2477
2562
|
// },
|
|
2478
|
-
...
|
|
2563
|
+
...I(r)
|
|
2479
2564
|
});
|
|
2480
2565
|
}
|
|
2481
2566
|
function _l(e, t, r) {
|
|
2482
|
-
const n =
|
|
2567
|
+
const n = I(r);
|
|
2483
2568
|
return n.abort ?? (n.abort = !0), new e({
|
|
2484
2569
|
type: "custom",
|
|
2485
2570
|
check: "custom",
|
|
@@ -2492,7 +2577,7 @@ function bl(e, t, r) {
|
|
|
2492
2577
|
type: "custom",
|
|
2493
2578
|
check: "custom",
|
|
2494
2579
|
fn: t,
|
|
2495
|
-
...
|
|
2580
|
+
...I(r)
|
|
2496
2581
|
});
|
|
2497
2582
|
}
|
|
2498
2583
|
function wl(e) {
|
|
@@ -2509,7 +2594,7 @@ function wl(e) {
|
|
|
2509
2594
|
function Tl(e, t) {
|
|
2510
2595
|
const r = new Q({
|
|
2511
2596
|
check: "custom",
|
|
2512
|
-
...
|
|
2597
|
+
...I(t)
|
|
2513
2598
|
});
|
|
2514
2599
|
return r._zod.check = e, r;
|
|
2515
2600
|
}
|
|
@@ -2550,11 +2635,11 @@ class zn {
|
|
|
2550
2635
|
case "string": {
|
|
2551
2636
|
const l = v;
|
|
2552
2637
|
l.type = "string";
|
|
2553
|
-
const { minimum: g, maximum: y, format: d, patterns: S, contentEncoding:
|
|
2554
|
-
if (typeof g == "number" && (l.minLength = g), typeof y == "number" && (l.maxLength = y), d && (l.format = o[d] ?? d, l.format === "" && delete l.format),
|
|
2555
|
-
const
|
|
2556
|
-
|
|
2557
|
-
...
|
|
2638
|
+
const { minimum: g, maximum: y, format: d, patterns: S, contentEncoding: E } = t._zod.bag;
|
|
2639
|
+
if (typeof g == "number" && (l.minLength = g), typeof y == "number" && (l.maxLength = y), d && (l.format = o[d] ?? d, l.format === "" && delete l.format), E && (l.contentEncoding = E), S && S.size > 0) {
|
|
2640
|
+
const A = [...S];
|
|
2641
|
+
A.length === 1 ? l.pattern = A[0].source : A.length > 1 && (i.schema.allOf = [
|
|
2642
|
+
...A.map((M) => ({
|
|
2558
2643
|
...this.target === "draft-7" || this.target === "draft-4" ? { type: "string" } : {},
|
|
2559
2644
|
pattern: M.source
|
|
2560
2645
|
}))
|
|
@@ -2563,8 +2648,8 @@ class zn {
|
|
|
2563
2648
|
break;
|
|
2564
2649
|
}
|
|
2565
2650
|
case "number": {
|
|
2566
|
-
const l = v, { minimum: g, maximum: y, format: d, multipleOf: S, exclusiveMaximum:
|
|
2567
|
-
typeof d == "string" && d.includes("int") ? l.type = "integer" : l.type = "number", typeof
|
|
2651
|
+
const l = v, { minimum: g, maximum: y, format: d, multipleOf: S, exclusiveMaximum: E, exclusiveMinimum: A } = t._zod.bag;
|
|
2652
|
+
typeof d == "string" && d.includes("int") ? l.type = "integer" : l.type = "number", typeof A == "number" && (this.target === "draft-4" ? (l.minimum = A, l.exclusiveMinimum = !0) : l.exclusiveMinimum = A), typeof g == "number" && (l.minimum = g, typeof A == "number" && this.target !== "draft-4" && (A >= g ? delete l.minimum : delete l.exclusiveMinimum)), typeof E == "number" && (this.target === "draft-4" ? (l.maximum = E, l.exclusiveMaximum = !0) : l.exclusiveMaximum = E), typeof y == "number" && (l.maximum = y, typeof E == "number" && this.target !== "draft-4" && (E <= y ? delete l.maximum : delete l.exclusiveMaximum)), typeof S == "number" && (l.multipleOf = S);
|
|
2568
2653
|
break;
|
|
2569
2654
|
}
|
|
2570
2655
|
case "boolean": {
|
|
@@ -2624,8 +2709,8 @@ class zn {
|
|
|
2624
2709
|
path: [...f.path, "properties", S]
|
|
2625
2710
|
});
|
|
2626
2711
|
const y = new Set(Object.keys(g)), d = new Set([...y].filter((S) => {
|
|
2627
|
-
const
|
|
2628
|
-
return this.io === "input" ?
|
|
2712
|
+
const E = a.shape[S]._zod;
|
|
2713
|
+
return this.io === "input" ? E.optin === void 0 : E.optout === void 0;
|
|
2629
2714
|
}));
|
|
2630
2715
|
d.size > 0 && (l.required = Array.from(d)), ((p = a.catchall) == null ? void 0 : p._zod.def.type) === "never" ? l.additionalProperties = !1 : a.catchall ? a.catchall && (l.additionalProperties = this.process(a.catchall, {
|
|
2631
2716
|
...f,
|
|
@@ -2648,7 +2733,7 @@ class zn {
|
|
|
2648
2733
|
}), y = this.process(a.right, {
|
|
2649
2734
|
...f,
|
|
2650
2735
|
path: [...f.path, "allOf", 1]
|
|
2651
|
-
}), d = (
|
|
2736
|
+
}), d = (E) => "allOf" in E && Object.keys(E).length === 1, S = [
|
|
2652
2737
|
...d(g) ? g.allOf : [g],
|
|
2653
2738
|
...d(y) ? y.allOf : [y]
|
|
2654
2739
|
];
|
|
@@ -2658,7 +2743,7 @@ class zn {
|
|
|
2658
2743
|
case "tuple": {
|
|
2659
2744
|
const l = v;
|
|
2660
2745
|
l.type = "array";
|
|
2661
|
-
const g = a.items.map((S,
|
|
2746
|
+
const g = a.items.map((S, E) => this.process(S, { ...f, path: [...f.path, "prefixItems", E] }));
|
|
2662
2747
|
if (this.target === "draft-2020-12" ? l.prefixItems = g : l.items = g, a.rest) {
|
|
2663
2748
|
const S = this.process(a.rest, {
|
|
2664
2749
|
...f,
|
|
@@ -2725,7 +2810,7 @@ class zn {
|
|
|
2725
2810
|
format: "binary",
|
|
2726
2811
|
contentEncoding: "binary"
|
|
2727
2812
|
}, { minimum: y, maximum: d, mime: S } = t._zod.bag;
|
|
2728
|
-
y !== void 0 && (g.minLength = y), d !== void 0 && (g.maxLength = d), S ? S.length === 1 ? (g.contentMediaType = S[0], Object.assign(l, g)) : l.anyOf = S.map((
|
|
2813
|
+
y !== void 0 && (g.minLength = y), d !== void 0 && (g.maxLength = d), S ? S.length === 1 ? (g.contentMediaType = S[0], Object.assign(l, g)) : l.anyOf = S.map((E) => ({ ...g, contentMediaType: E })) : Object.assign(l, g);
|
|
2729
2814
|
break;
|
|
2730
2815
|
}
|
|
2731
2816
|
case "transform": {
|
|
@@ -2827,11 +2912,11 @@ class zn {
|
|
|
2827
2912
|
var S;
|
|
2828
2913
|
const l = this.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
2829
2914
|
if (n.external) {
|
|
2830
|
-
const
|
|
2831
|
-
if (
|
|
2832
|
-
return { ref:
|
|
2915
|
+
const E = (S = n.external.registry.get(v[0])) == null ? void 0 : S.id, A = n.external.uri ?? ((J) => J);
|
|
2916
|
+
if (E)
|
|
2917
|
+
return { ref: A(E) };
|
|
2833
2918
|
const M = v[1].defId ?? v[1].schema.id ?? `schema${this.counter++}`;
|
|
2834
|
-
return v[1].defId = M, { defId: M, ref: `${
|
|
2919
|
+
return v[1].defId = M, { defId: M, ref: `${A("__shared")}#/${l}/${M}` };
|
|
2835
2920
|
}
|
|
2836
2921
|
if (v[1] === a)
|
|
2837
2922
|
return { ref: "#" };
|
|
@@ -2888,8 +2973,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
2888
2973
|
const S = g.ref;
|
|
2889
2974
|
if (g.ref = null, S) {
|
|
2890
2975
|
i(S, l);
|
|
2891
|
-
const
|
|
2892
|
-
|
|
2976
|
+
const E = this.seen.get(S).schema;
|
|
2977
|
+
E.$ref && (l.target === "draft-7" || l.target === "draft-4") ? (y.allOf = y.allOf ?? [], y.allOf.push(E)) : (Object.assign(y, E), Object.assign(y, d));
|
|
2893
2978
|
}
|
|
2894
2979
|
g.isParent || this.override({
|
|
2895
2980
|
zodSchema: v,
|
|
@@ -3029,29 +3114,29 @@ function G(e, t) {
|
|
|
3029
3114
|
}
|
|
3030
3115
|
throw new Error(`Unknown schema type: ${a.type}`);
|
|
3031
3116
|
}
|
|
3032
|
-
const
|
|
3117
|
+
const Il = /* @__PURE__ */ h("ZodISODateTime", (e, t) => {
|
|
3033
3118
|
Gu.init(e, t), L.init(e, t);
|
|
3034
3119
|
});
|
|
3035
|
-
function
|
|
3036
|
-
return Kc(
|
|
3120
|
+
function El(e) {
|
|
3121
|
+
return Kc(Il, e);
|
|
3037
3122
|
}
|
|
3038
|
-
const
|
|
3123
|
+
const Al = /* @__PURE__ */ h("ZodISODate", (e, t) => {
|
|
3039
3124
|
qu.init(e, t), L.init(e, t);
|
|
3040
3125
|
});
|
|
3041
|
-
function
|
|
3042
|
-
return Xc(
|
|
3126
|
+
function xl(e) {
|
|
3127
|
+
return Xc(Al, e);
|
|
3043
3128
|
}
|
|
3044
|
-
const
|
|
3129
|
+
const kl = /* @__PURE__ */ h("ZodISOTime", (e, t) => {
|
|
3045
3130
|
Ju.init(e, t), L.init(e, t);
|
|
3046
3131
|
});
|
|
3047
|
-
function
|
|
3048
|
-
return Qc(
|
|
3132
|
+
function Nl(e) {
|
|
3133
|
+
return Qc(kl, e);
|
|
3049
3134
|
}
|
|
3050
|
-
const
|
|
3135
|
+
const Ol = /* @__PURE__ */ h("ZodISODuration", (e, t) => {
|
|
3051
3136
|
Hu.init(e, t), L.init(e, t);
|
|
3052
3137
|
});
|
|
3053
3138
|
function Rl(e) {
|
|
3054
|
-
return el(
|
|
3139
|
+
return el(Ol, e);
|
|
3055
3140
|
}
|
|
3056
3141
|
const Cl = (e, t) => {
|
|
3057
3142
|
ao.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
@@ -3065,13 +3150,13 @@ const Cl = (e, t) => {
|
|
|
3065
3150
|
},
|
|
3066
3151
|
addIssue: {
|
|
3067
3152
|
value: (r) => {
|
|
3068
|
-
e.issues.push(r), e.message = JSON.stringify(e.issues,
|
|
3153
|
+
e.issues.push(r), e.message = JSON.stringify(e.issues, Er, 2);
|
|
3069
3154
|
}
|
|
3070
3155
|
// enumerable: false,
|
|
3071
3156
|
},
|
|
3072
3157
|
addIssues: {
|
|
3073
3158
|
value: (r) => {
|
|
3074
|
-
e.issues.push(...r), e.message = JSON.stringify(e.issues,
|
|
3159
|
+
e.issues.push(...r), e.message = JSON.stringify(e.issues, Er, 2);
|
|
3075
3160
|
}
|
|
3076
3161
|
// enumerable: false,
|
|
3077
3162
|
},
|
|
@@ -3093,7 +3178,7 @@ const Cl = (e, t) => {
|
|
|
3093
3178
|
]
|
|
3094
3179
|
}
|
|
3095
3180
|
// { parent: true }
|
|
3096
|
-
), e.clone = (r, n) => Pe(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) => Pl(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => Ml(e, r, n), e.parseAsync = async (r, n) => $l(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => To(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(
|
|
3181
|
+
), e.clone = (r, n) => Pe(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) => Pl(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => Ml(e, r, n), e.parseAsync = async (r, n) => $l(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => To(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(Od(r, n)), e.superRefine = (r) => e.check(Rd(r)), e.overwrite = (r) => e.check(_t(r)), e.optional = () => B(e), e.nullable = () => Un(e), e.nullish = () => B(Un(e)), e.nonoptional = (r) => wd(e, r), e.array = () => se(e), e.or = (r) => q([e, r]), e.and = (r) => dd(e, r), e.transform = (r) => jn(e, hd(r)), e.default = (r) => yd(e, r), e.prefault = (r) => bd(e, r), e.catch = (r) => Sd(e, r), e.pipe = (r) => jn(e, r), e.readonly = () => Ad(e), e.describe = (r) => {
|
|
3097
3182
|
const n = e.clone();
|
|
3098
3183
|
return at.add(n, { description: r }), n;
|
|
3099
3184
|
}, Object.defineProperty(e, "description", {
|
|
@@ -3112,10 +3197,10 @@ const Cl = (e, t) => {
|
|
|
3112
3197
|
const r = e._zod.bag;
|
|
3113
3198
|
e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(ul(...n)), e.includes = (...n) => e.check(dl(...n)), e.startsWith = (...n) => e.check(pl(...n)), e.endsWith = (...n) => e.check(fl(...n)), e.min = (...n) => e.check(Zt(...n)), e.max = (...n) => e.check(bo(...n)), e.length = (...n) => e.check(wo(...n)), e.nonempty = (...n) => e.check(Zt(1, ...n)), e.lowercase = (n) => e.check(cl(n)), e.uppercase = (n) => e.check(ll(n)), e.trim = () => e.check(hl()), e.normalize = (...n) => e.check(ml(...n)), e.toLowerCase = () => e.check(gl()), e.toUpperCase = () => e.check(vl());
|
|
3114
3199
|
}), zl = /* @__PURE__ */ h("ZodString", (e, t) => {
|
|
3115
|
-
Fr.init(e, t), So.init(e, t), e.email = (r) => e.check(Rc(Zl, r)), e.url = (r) => e.check(zc(Dl, r)), e.jwt = (r) => e.check(Wc(Xl, r)), e.emoji = (r) => e.check(Zc(Ul, r)), e.guid = (r) => e.check(Cn(Zn, r)), e.uuid = (r) => e.check(Cc(
|
|
3200
|
+
Fr.init(e, t), So.init(e, t), e.email = (r) => e.check(Rc(Zl, r)), e.url = (r) => e.check(zc(Dl, r)), e.jwt = (r) => e.check(Wc(Xl, r)), e.emoji = (r) => e.check(Zc(Ul, r)), e.guid = (r) => e.check(Cn(Zn, r)), e.uuid = (r) => e.check(Cc(xt, r)), e.uuidv4 = (r) => e.check(Pc(xt, r)), e.uuidv6 = (r) => e.check($c(xt, r)), e.uuidv7 = (r) => e.check(Mc(xt, r)), e.nanoid = (r) => e.check(Dc(jl, r)), e.guid = (r) => e.check(Cn(Zn, r)), e.cuid = (r) => e.check(Uc(Ll, r)), e.cuid2 = (r) => e.check(jc(Fl, r)), e.ulid = (r) => e.check(Lc(Vl, r)), e.base64 = (r) => e.check(_o(Io, r)), e.base64url = (r) => e.check(Hc(Wl, r)), e.xid = (r) => e.check(Fc(Bl, r)), e.ksuid = (r) => e.check(Vc(Gl, r)), e.ipv4 = (r) => e.check(Bc(ql, r)), e.ipv6 = (r) => e.check(Gc(Jl, r)), e.cidrv4 = (r) => e.check(qc(Hl, r)), e.cidrv6 = (r) => e.check(Jc(Yl, r)), e.e164 = (r) => e.check(Yc(Kl, r)), e.datetime = (r) => e.check(El(r)), e.date = (r) => e.check(xl(r)), e.time = (r) => e.check(Nl(r)), e.duration = (r) => e.check(Rl(r));
|
|
3116
3201
|
});
|
|
3117
|
-
function
|
|
3118
|
-
return
|
|
3202
|
+
function x(e) {
|
|
3203
|
+
return Oc(zl, e);
|
|
3119
3204
|
}
|
|
3120
3205
|
const L = /* @__PURE__ */ h("ZodStringFormat", (e, t) => {
|
|
3121
3206
|
U.init(e, t), So.init(e, t);
|
|
@@ -3123,7 +3208,7 @@ const L = /* @__PURE__ */ h("ZodStringFormat", (e, t) => {
|
|
|
3123
3208
|
zu.init(e, t), L.init(e, t);
|
|
3124
3209
|
}), Zn = /* @__PURE__ */ h("ZodGUID", (e, t) => {
|
|
3125
3210
|
$u.init(e, t), L.init(e, t);
|
|
3126
|
-
}),
|
|
3211
|
+
}), xt = /* @__PURE__ */ h("ZodUUID", (e, t) => {
|
|
3127
3212
|
Mu.init(e, t), L.init(e, t);
|
|
3128
3213
|
}), Dl = /* @__PURE__ */ h("ZodURL", (e, t) => {
|
|
3129
3214
|
Zu.init(e, t), L.init(e, t);
|
|
@@ -3149,11 +3234,11 @@ const L = /* @__PURE__ */ h("ZodStringFormat", (e, t) => {
|
|
|
3149
3234
|
Ku.init(e, t), L.init(e, t);
|
|
3150
3235
|
}), Yl = /* @__PURE__ */ h("ZodCIDRv6", (e, t) => {
|
|
3151
3236
|
Xu.init(e, t), L.init(e, t);
|
|
3152
|
-
}),
|
|
3237
|
+
}), Io = /* @__PURE__ */ h("ZodBase64", (e, t) => {
|
|
3153
3238
|
Qu.init(e, t), L.init(e, t);
|
|
3154
3239
|
});
|
|
3155
|
-
function
|
|
3156
|
-
return _o(
|
|
3240
|
+
function Eo(e) {
|
|
3241
|
+
return _o(Io, e);
|
|
3157
3242
|
}
|
|
3158
3243
|
const Wl = /* @__PURE__ */ h("ZodBase64URL", (e, t) => {
|
|
3159
3244
|
tc.init(e, t), L.init(e, t);
|
|
@@ -3161,16 +3246,16 @@ const Wl = /* @__PURE__ */ h("ZodBase64URL", (e, t) => {
|
|
|
3161
3246
|
rc.init(e, t), L.init(e, t);
|
|
3162
3247
|
}), Xl = /* @__PURE__ */ h("ZodJWT", (e, t) => {
|
|
3163
3248
|
ac.init(e, t), L.init(e, t);
|
|
3164
|
-
}),
|
|
3249
|
+
}), Ao = /* @__PURE__ */ h("ZodNumber", (e, t) => {
|
|
3165
3250
|
go.init(e, t), D.init(e, t), e.gt = (n, a) => e.check($n(n, a)), e.gte = (n, a) => e.check(pr(n, a)), e.min = (n, a) => e.check(pr(n, a)), e.lt = (n, a) => e.check(Pn(n, a)), e.lte = (n, a) => e.check(dr(n, a)), e.max = (n, a) => e.check(dr(n, a)), e.int = (n) => e.check(Dn(n)), e.safe = (n) => e.check(Dn(n)), e.positive = (n) => e.check($n(0, n)), e.nonnegative = (n) => e.check(pr(0, n)), e.negative = (n) => e.check(Pn(0, n)), e.nonpositive = (n) => e.check(dr(0, n)), e.multipleOf = (n, a) => e.check(Mn(n, a)), e.step = (n, a) => e.check(Mn(n, a)), e.finite = () => e;
|
|
3166
3251
|
const r = e._zod.bag;
|
|
3167
3252
|
e.minValue = Math.max(r.minimum ?? Number.NEGATIVE_INFINITY, r.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(r.maximum ?? Number.POSITIVE_INFINITY, r.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (r.format ?? "").includes("int") || Number.isSafeInteger(r.multipleOf ?? 0.5), e.isFinite = !0, e.format = r.format ?? null;
|
|
3168
3253
|
});
|
|
3169
3254
|
function Te(e) {
|
|
3170
|
-
return tl(
|
|
3255
|
+
return tl(Ao, e);
|
|
3171
3256
|
}
|
|
3172
3257
|
const Ql = /* @__PURE__ */ h("ZodNumberFormat", (e, t) => {
|
|
3173
|
-
oc.init(e, t),
|
|
3258
|
+
oc.init(e, t), Ao.init(e, t);
|
|
3174
3259
|
});
|
|
3175
3260
|
function Dn(e) {
|
|
3176
3261
|
return rl(Ql, e);
|
|
@@ -3178,7 +3263,7 @@ function Dn(e) {
|
|
|
3178
3263
|
const ed = /* @__PURE__ */ h("ZodBoolean", (e, t) => {
|
|
3179
3264
|
sc.init(e, t), D.init(e, t);
|
|
3180
3265
|
});
|
|
3181
|
-
function
|
|
3266
|
+
function xe(e) {
|
|
3182
3267
|
return nl(ed, e);
|
|
3183
3268
|
}
|
|
3184
3269
|
const td = /* @__PURE__ */ h("ZodNull", (e, t) => {
|
|
@@ -3190,7 +3275,7 @@ function rd(e) {
|
|
|
3190
3275
|
const nd = /* @__PURE__ */ h("ZodAny", (e, t) => {
|
|
3191
3276
|
uc.init(e, t), D.init(e, t);
|
|
3192
3277
|
});
|
|
3193
|
-
function
|
|
3278
|
+
function ke() {
|
|
3194
3279
|
return ol(nd);
|
|
3195
3280
|
}
|
|
3196
3281
|
const ad = /* @__PURE__ */ h("ZodUnknown", (e, t) => {
|
|
@@ -3211,48 +3296,48 @@ const id = /* @__PURE__ */ h("ZodArray", (e, t) => {
|
|
|
3211
3296
|
function se(e, t) {
|
|
3212
3297
|
return yl(id, e, t);
|
|
3213
3298
|
}
|
|
3214
|
-
const
|
|
3215
|
-
pc.init(e, t), D.init(e, t), C(e, "shape", () => t.shape), e.keyof = () =>
|
|
3299
|
+
const xo = /* @__PURE__ */ h("ZodObject", (e, t) => {
|
|
3300
|
+
pc.init(e, t), D.init(e, t), C(e, "shape", () => t.shape), e.keyof = () => No(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Se() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Se() }), e.strict = () => e.clone({ ...e._zod.def, catchall: sd() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => zi(e, r), e.merge = (r) => Zi(e, r), e.pick = (r) => $i(e, r), e.omit = (r) => Mi(e, r), e.partial = (...r) => Di(Oo, e, r[0]), e.required = (...r) => Ui(Ro, e, r[0]);
|
|
3216
3301
|
});
|
|
3217
|
-
function
|
|
3302
|
+
function N(e, t) {
|
|
3218
3303
|
const r = {
|
|
3219
3304
|
type: "object",
|
|
3220
3305
|
get shape() {
|
|
3221
|
-
return
|
|
3306
|
+
return Ee(this, "shape", e ? eo(e) : {}), this.shape;
|
|
3222
3307
|
},
|
|
3223
|
-
...
|
|
3308
|
+
...I(t)
|
|
3224
3309
|
};
|
|
3225
|
-
return new
|
|
3310
|
+
return new xo(r);
|
|
3226
3311
|
}
|
|
3227
3312
|
function Fe(e, t) {
|
|
3228
|
-
return new
|
|
3313
|
+
return new xo({
|
|
3229
3314
|
type: "object",
|
|
3230
3315
|
get shape() {
|
|
3231
|
-
return
|
|
3316
|
+
return Ee(this, "shape", eo(e)), this.shape;
|
|
3232
3317
|
},
|
|
3233
3318
|
catchall: Se(),
|
|
3234
|
-
...
|
|
3319
|
+
...I(t)
|
|
3235
3320
|
});
|
|
3236
3321
|
}
|
|
3237
|
-
const
|
|
3322
|
+
const ko = /* @__PURE__ */ h("ZodUnion", (e, t) => {
|
|
3238
3323
|
vo.init(e, t), D.init(e, t), e.options = t.options;
|
|
3239
3324
|
});
|
|
3240
3325
|
function q(e, t) {
|
|
3241
|
-
return new
|
|
3326
|
+
return new ko({
|
|
3242
3327
|
type: "union",
|
|
3243
3328
|
options: e,
|
|
3244
|
-
...
|
|
3329
|
+
...I(t)
|
|
3245
3330
|
});
|
|
3246
3331
|
}
|
|
3247
3332
|
const ud = /* @__PURE__ */ h("ZodDiscriminatedUnion", (e, t) => {
|
|
3248
|
-
|
|
3333
|
+
ko.init(e, t), fc.init(e, t);
|
|
3249
3334
|
});
|
|
3250
3335
|
function cd(e, t, r) {
|
|
3251
3336
|
return new ud({
|
|
3252
3337
|
type: "union",
|
|
3253
3338
|
options: t,
|
|
3254
3339
|
discriminator: e,
|
|
3255
|
-
...
|
|
3340
|
+
...I(r)
|
|
3256
3341
|
});
|
|
3257
3342
|
}
|
|
3258
3343
|
const ld = /* @__PURE__ */ h("ZodIntersection", (e, t) => {
|
|
@@ -3273,10 +3358,10 @@ function dt(e, t, r) {
|
|
|
3273
3358
|
type: "record",
|
|
3274
3359
|
keyType: e,
|
|
3275
3360
|
valueType: t,
|
|
3276
|
-
...
|
|
3361
|
+
...I(r)
|
|
3277
3362
|
});
|
|
3278
3363
|
}
|
|
3279
|
-
const
|
|
3364
|
+
const xr = /* @__PURE__ */ h("ZodEnum", (e, t) => {
|
|
3280
3365
|
gc.init(e, t), D.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
3281
3366
|
const r = new Set(Object.keys(t.entries));
|
|
3282
3367
|
e.extract = (n, a) => {
|
|
@@ -3286,10 +3371,10 @@ const kr = /* @__PURE__ */ h("ZodEnum", (e, t) => {
|
|
|
3286
3371
|
o[s] = t.entries[s];
|
|
3287
3372
|
else
|
|
3288
3373
|
throw new Error(`Key ${s} not found in enum`);
|
|
3289
|
-
return new
|
|
3374
|
+
return new xr({
|
|
3290
3375
|
...t,
|
|
3291
3376
|
checks: [],
|
|
3292
|
-
...
|
|
3377
|
+
...I(a),
|
|
3293
3378
|
entries: o
|
|
3294
3379
|
});
|
|
3295
3380
|
}, e.exclude = (n, a) => {
|
|
@@ -3299,20 +3384,20 @@ const kr = /* @__PURE__ */ h("ZodEnum", (e, t) => {
|
|
|
3299
3384
|
delete o[s];
|
|
3300
3385
|
else
|
|
3301
3386
|
throw new Error(`Key ${s} not found in enum`);
|
|
3302
|
-
return new
|
|
3387
|
+
return new xr({
|
|
3303
3388
|
...t,
|
|
3304
3389
|
checks: [],
|
|
3305
|
-
...
|
|
3390
|
+
...I(a),
|
|
3306
3391
|
entries: o
|
|
3307
3392
|
});
|
|
3308
3393
|
};
|
|
3309
3394
|
});
|
|
3310
|
-
function
|
|
3395
|
+
function No(e, t) {
|
|
3311
3396
|
const r = Array.isArray(e) ? Object.fromEntries(e.map((n) => [n, n])) : e;
|
|
3312
|
-
return new
|
|
3397
|
+
return new xr({
|
|
3313
3398
|
type: "enum",
|
|
3314
3399
|
entries: r,
|
|
3315
|
-
...
|
|
3400
|
+
...I(t)
|
|
3316
3401
|
});
|
|
3317
3402
|
}
|
|
3318
3403
|
const fd = /* @__PURE__ */ h("ZodLiteral", (e, t) => {
|
|
@@ -3328,7 +3413,7 @@ function z(e, t) {
|
|
|
3328
3413
|
return new fd({
|
|
3329
3414
|
type: "literal",
|
|
3330
3415
|
values: Array.isArray(e) ? e : [e],
|
|
3331
|
-
...
|
|
3416
|
+
...I(t)
|
|
3332
3417
|
});
|
|
3333
3418
|
}
|
|
3334
3419
|
const md = /* @__PURE__ */ h("ZodTransform", (e, t) => {
|
|
@@ -3351,11 +3436,11 @@ function hd(e) {
|
|
|
3351
3436
|
transform: e
|
|
3352
3437
|
});
|
|
3353
3438
|
}
|
|
3354
|
-
const
|
|
3439
|
+
const Oo = /* @__PURE__ */ h("ZodOptional", (e, t) => {
|
|
3355
3440
|
_c.init(e, t), D.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
3356
3441
|
});
|
|
3357
3442
|
function B(e) {
|
|
3358
|
-
return new
|
|
3443
|
+
return new Oo({
|
|
3359
3444
|
type: "optional",
|
|
3360
3445
|
innerType: e
|
|
3361
3446
|
});
|
|
@@ -3400,11 +3485,11 @@ function wd(e, t) {
|
|
|
3400
3485
|
return new Ro({
|
|
3401
3486
|
type: "nonoptional",
|
|
3402
3487
|
innerType: e,
|
|
3403
|
-
...
|
|
3488
|
+
...I(t)
|
|
3404
3489
|
});
|
|
3405
3490
|
}
|
|
3406
3491
|
const Td = /* @__PURE__ */ h("ZodCatch", (e, t) => {
|
|
3407
|
-
|
|
3492
|
+
Ic.init(e, t), D.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
3408
3493
|
});
|
|
3409
3494
|
function Sd(e, t) {
|
|
3410
3495
|
return new Td({
|
|
@@ -3413,42 +3498,42 @@ function Sd(e, t) {
|
|
|
3413
3498
|
catchValue: typeof t == "function" ? t : () => t
|
|
3414
3499
|
});
|
|
3415
3500
|
}
|
|
3416
|
-
const
|
|
3417
|
-
|
|
3501
|
+
const Id = /* @__PURE__ */ h("ZodPipe", (e, t) => {
|
|
3502
|
+
Ec.init(e, t), D.init(e, t), e.in = t.in, e.out = t.out;
|
|
3418
3503
|
});
|
|
3419
3504
|
function jn(e, t) {
|
|
3420
|
-
return new
|
|
3505
|
+
return new Id({
|
|
3421
3506
|
type: "pipe",
|
|
3422
3507
|
in: e,
|
|
3423
3508
|
out: t
|
|
3424
3509
|
// ...util.normalizeParams(params),
|
|
3425
3510
|
});
|
|
3426
3511
|
}
|
|
3427
|
-
const
|
|
3428
|
-
|
|
3512
|
+
const Ed = /* @__PURE__ */ h("ZodReadonly", (e, t) => {
|
|
3513
|
+
Ac.init(e, t), D.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
3429
3514
|
});
|
|
3430
|
-
function
|
|
3431
|
-
return new
|
|
3515
|
+
function Ad(e) {
|
|
3516
|
+
return new Ed({
|
|
3432
3517
|
type: "readonly",
|
|
3433
3518
|
innerType: e
|
|
3434
3519
|
});
|
|
3435
3520
|
}
|
|
3436
|
-
const
|
|
3437
|
-
|
|
3521
|
+
const xd = /* @__PURE__ */ h("ZodLazy", (e, t) => {
|
|
3522
|
+
xc.init(e, t), D.init(e, t), e.unwrap = () => e._zod.def.getter();
|
|
3438
3523
|
});
|
|
3439
|
-
function
|
|
3440
|
-
return new
|
|
3524
|
+
function kd(e) {
|
|
3525
|
+
return new xd({
|
|
3441
3526
|
type: "lazy",
|
|
3442
3527
|
getter: e
|
|
3443
3528
|
});
|
|
3444
3529
|
}
|
|
3445
3530
|
const Vr = /* @__PURE__ */ h("ZodCustom", (e, t) => {
|
|
3446
|
-
|
|
3531
|
+
kc.init(e, t), D.init(e, t);
|
|
3447
3532
|
});
|
|
3448
|
-
function
|
|
3533
|
+
function Nd(e, t) {
|
|
3449
3534
|
return _l(Vr, e, t);
|
|
3450
3535
|
}
|
|
3451
|
-
function
|
|
3536
|
+
function Od(e, t = {}) {
|
|
3452
3537
|
return bl(Vr, e, t);
|
|
3453
3538
|
}
|
|
3454
3539
|
function Rd(e) {
|
|
@@ -3462,15 +3547,15 @@ function Dt(e, t = {
|
|
|
3462
3547
|
check: "custom",
|
|
3463
3548
|
fn: (n) => n instanceof e,
|
|
3464
3549
|
abort: !0,
|
|
3465
|
-
...
|
|
3550
|
+
...I(t)
|
|
3466
3551
|
});
|
|
3467
3552
|
return r._zod.bag.Class = e, r;
|
|
3468
3553
|
}
|
|
3469
|
-
var
|
|
3554
|
+
var O;
|
|
3470
3555
|
(function(e) {
|
|
3471
3556
|
e.ZodString = "ZodString", e.ZodNumber = "ZodNumber", e.ZodNaN = "ZodNaN", e.ZodBigInt = "ZodBigInt", e.ZodBoolean = "ZodBoolean", e.ZodDate = "ZodDate", e.ZodSymbol = "ZodSymbol", e.ZodUndefined = "ZodUndefined", e.ZodNull = "ZodNull", e.ZodAny = "ZodAny", e.ZodUnknown = "ZodUnknown", e.ZodNever = "ZodNever", e.ZodVoid = "ZodVoid", e.ZodArray = "ZodArray", e.ZodObject = "ZodObject", e.ZodUnion = "ZodUnion", e.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", e.ZodIntersection = "ZodIntersection", e.ZodTuple = "ZodTuple", e.ZodRecord = "ZodRecord", e.ZodMap = "ZodMap", e.ZodSet = "ZodSet", e.ZodFunction = "ZodFunction", e.ZodLazy = "ZodLazy", e.ZodLiteral = "ZodLiteral", e.ZodEnum = "ZodEnum", e.ZodEffects = "ZodEffects", e.ZodNativeEnum = "ZodNativeEnum", e.ZodOptional = "ZodOptional", e.ZodNullable = "ZodNullable", e.ZodDefault = "ZodDefault", e.ZodCatch = "ZodCatch", e.ZodPromise = "ZodPromise", e.ZodBranded = "ZodBranded", e.ZodPipeline = "ZodPipeline", e.ZodReadonly = "ZodReadonly";
|
|
3472
|
-
})(
|
|
3473
|
-
function
|
|
3557
|
+
})(O || (O = {}));
|
|
3558
|
+
function kr(...e) {
|
|
3474
3559
|
return e.reduce(
|
|
3475
3560
|
(t, r) => ({
|
|
3476
3561
|
...t,
|
|
@@ -3528,7 +3613,7 @@ var wt = ({
|
|
|
3528
3613
|
function Co(e) {
|
|
3529
3614
|
return e == null ? "unknown error" : typeof e == "string" ? e : e instanceof Error ? e.message : JSON.stringify(e);
|
|
3530
3615
|
}
|
|
3531
|
-
function
|
|
3616
|
+
function Oe(e) {
|
|
3532
3617
|
return (e instanceof Error || e instanceof DOMException) && (e.name === "AbortError" || e.name === "ResponseAborted" || // Next.js
|
|
3533
3618
|
e.name === "TimeoutError");
|
|
3534
3619
|
}
|
|
@@ -3538,7 +3623,7 @@ function Po({
|
|
|
3538
3623
|
url: t,
|
|
3539
3624
|
requestBodyValues: r
|
|
3540
3625
|
}) {
|
|
3541
|
-
if (
|
|
3626
|
+
if (Oe(e))
|
|
3542
3627
|
return e;
|
|
3543
3628
|
if (e instanceof TypeError && $d.includes(e.message.toLowerCase())) {
|
|
3544
3629
|
const n = e.cause;
|
|
@@ -3599,7 +3684,7 @@ var $o = "3.0.12", zd = () => globalThis.fetch, Fn = async ({
|
|
|
3599
3684
|
requestBodyValues: {}
|
|
3600
3685
|
});
|
|
3601
3686
|
} catch (c) {
|
|
3602
|
-
throw
|
|
3687
|
+
throw Oe(c) || X.isInstance(c) ? c : new X({
|
|
3603
3688
|
message: "Failed to process error response",
|
|
3604
3689
|
cause: c,
|
|
3605
3690
|
statusCode: s.status,
|
|
@@ -3617,7 +3702,7 @@ var $o = "3.0.12", zd = () => globalThis.fetch, Fn = async ({
|
|
|
3617
3702
|
requestBodyValues: {}
|
|
3618
3703
|
});
|
|
3619
3704
|
} catch (u) {
|
|
3620
|
-
throw u instanceof Error && (
|
|
3705
|
+
throw u instanceof Error && (Oe(u) || X.isInstance(u)) ? u : new X({
|
|
3621
3706
|
message: "Failed to process successful response",
|
|
3622
3707
|
cause: u,
|
|
3623
3708
|
statusCode: s.status,
|
|
@@ -3707,16 +3792,16 @@ function Gd(e) {
|
|
|
3707
3792
|
};
|
|
3708
3793
|
});
|
|
3709
3794
|
}
|
|
3710
|
-
async function
|
|
3795
|
+
async function Nr({
|
|
3711
3796
|
value: e,
|
|
3712
3797
|
schema: t
|
|
3713
3798
|
}) {
|
|
3714
|
-
const r = await
|
|
3799
|
+
const r = await Ie({ value: e, schema: t });
|
|
3715
3800
|
if (!r.success)
|
|
3716
3801
|
throw it.wrap({ value: e, cause: r.error });
|
|
3717
3802
|
return r.value;
|
|
3718
3803
|
}
|
|
3719
|
-
async function
|
|
3804
|
+
async function Ie({
|
|
3720
3805
|
value: e,
|
|
3721
3806
|
schema: t
|
|
3722
3807
|
}) {
|
|
@@ -3744,7 +3829,7 @@ async function qd({
|
|
|
3744
3829
|
}) {
|
|
3745
3830
|
try {
|
|
3746
3831
|
const r = Mo(e);
|
|
3747
|
-
return t == null ? r :
|
|
3832
|
+
return t == null ? r : Nr({ value: r, schema: t });
|
|
3748
3833
|
} catch (r) {
|
|
3749
3834
|
throw Mt.isInstance(r) || it.isInstance(r) ? r : new Mt({ text: e, cause: r });
|
|
3750
3835
|
}
|
|
@@ -3755,7 +3840,7 @@ async function Re({
|
|
|
3755
3840
|
}) {
|
|
3756
3841
|
try {
|
|
3757
3842
|
const r = Mo(e);
|
|
3758
|
-
return t == null ? { success: !0, value: r, rawValue: r } : await
|
|
3843
|
+
return t == null ? { success: !0, value: r, rawValue: r } : await Ie({ value: r, schema: t });
|
|
3759
3844
|
} catch (r) {
|
|
3760
3845
|
return {
|
|
3761
3846
|
success: !1,
|
|
@@ -3768,7 +3853,7 @@ function Jd({
|
|
|
3768
3853
|
stream: e,
|
|
3769
3854
|
schema: t
|
|
3770
3855
|
}) {
|
|
3771
|
-
return e.pipeThrough(new TextDecoderStream()).pipeThrough(new
|
|
3856
|
+
return e.pipeThrough(new TextDecoderStream()).pipeThrough(new ki()).pipeThrough(
|
|
3772
3857
|
new TransformStream({
|
|
3773
3858
|
async transform({ data: r }, n) {
|
|
3774
3859
|
r !== "[DONE]" && n.enqueue(await Re({ text: r, schema: t }));
|
|
@@ -3776,7 +3861,7 @@ function Jd({
|
|
|
3776
3861
|
})
|
|
3777
3862
|
);
|
|
3778
3863
|
}
|
|
3779
|
-
var Hd = () => globalThis.fetch,
|
|
3864
|
+
var Hd = () => globalThis.fetch, Or = async ({
|
|
3780
3865
|
url: e,
|
|
3781
3866
|
headers: t,
|
|
3782
3867
|
body: r,
|
|
@@ -3827,7 +3912,7 @@ var Hd = () => globalThis.fetch, Nr = async ({
|
|
|
3827
3912
|
requestBodyValues: r.values
|
|
3828
3913
|
});
|
|
3829
3914
|
} catch (m) {
|
|
3830
|
-
throw
|
|
3915
|
+
throw Oe(m) || X.isInstance(m) ? m : new X({
|
|
3831
3916
|
message: "Failed to process error response",
|
|
3832
3917
|
cause: m,
|
|
3833
3918
|
statusCode: i.status,
|
|
@@ -3845,7 +3930,7 @@ var Hd = () => globalThis.fetch, Nr = async ({
|
|
|
3845
3930
|
requestBodyValues: r.values
|
|
3846
3931
|
});
|
|
3847
3932
|
} catch (c) {
|
|
3848
|
-
throw c instanceof Error && (
|
|
3933
|
+
throw c instanceof Error && (Oe(c) || X.isInstance(c)) ? c : new X({
|
|
3849
3934
|
message: "Failed to process successful response",
|
|
3850
3935
|
cause: c,
|
|
3851
3936
|
statusCode: i.status,
|
|
@@ -3985,7 +4070,7 @@ function ep(e, t) {
|
|
|
3985
4070
|
const o = {
|
|
3986
4071
|
type: "array"
|
|
3987
4072
|
};
|
|
3988
|
-
return (r = e.type) != null && r._def && ((a = (n = e.type) == null ? void 0 : n._def) == null ? void 0 : a.typeName) !==
|
|
4073
|
+
return (r = e.type) != null && r._def && ((a = (n = e.type) == null ? void 0 : n._def) == null ? void 0 : a.typeName) !== O.ZodAny && (o.items = $(e.type._def, {
|
|
3989
4074
|
...t,
|
|
3990
4075
|
currentPath: [...t.currentPath, "items"]
|
|
3991
4076
|
})), e.minLength && (o.minItems = e.minLength.value), e.maxLength && (o.maxItems = e.maxLength.value), e.exactLength && (o.minItems = e.exactLength.value, o.maxItems = e.exactLength.value), o;
|
|
@@ -4371,21 +4456,21 @@ function Uo(e, t) {
|
|
|
4371
4456
|
currentPath: [...t.currentPath, "additionalProperties"]
|
|
4372
4457
|
})) != null ? r : t.allowedAdditionalProperties
|
|
4373
4458
|
};
|
|
4374
|
-
if (((n = e.keyType) == null ? void 0 : n._def.typeName) ===
|
|
4459
|
+
if (((n = e.keyType) == null ? void 0 : n._def.typeName) === O.ZodString && ((a = e.keyType._def.checks) != null && a.length)) {
|
|
4375
4460
|
const { type: c, ...m } = Do(e.keyType._def, t);
|
|
4376
4461
|
return {
|
|
4377
4462
|
...u,
|
|
4378
4463
|
propertyNames: m
|
|
4379
4464
|
};
|
|
4380
4465
|
} else {
|
|
4381
|
-
if (((o = e.keyType) == null ? void 0 : o._def.typeName) ===
|
|
4466
|
+
if (((o = e.keyType) == null ? void 0 : o._def.typeName) === O.ZodEnum)
|
|
4382
4467
|
return {
|
|
4383
4468
|
...u,
|
|
4384
4469
|
propertyNames: {
|
|
4385
4470
|
enum: e.keyType._def.values
|
|
4386
4471
|
}
|
|
4387
4472
|
};
|
|
4388
|
-
if (((s = e.keyType) == null ? void 0 : s._def.typeName) ===
|
|
4473
|
+
if (((s = e.keyType) == null ? void 0 : s._def.typeName) === O.ZodBranded && e.keyType._def.type._def.typeName === O.ZodString && ((i = e.keyType._def.type._def.checks) != null && i.length)) {
|
|
4389
4474
|
const { type: c, ...m } = zo(
|
|
4390
4475
|
e.keyType._def,
|
|
4391
4476
|
t
|
|
@@ -4591,7 +4676,7 @@ function Sp(e) {
|
|
|
4591
4676
|
return !0;
|
|
4592
4677
|
}
|
|
4593
4678
|
}
|
|
4594
|
-
var
|
|
4679
|
+
var Ip = (e, t) => {
|
|
4595
4680
|
var r;
|
|
4596
4681
|
if (t.currentPath.toString() === ((r = t.propertyPath) == null ? void 0 : r.toString()))
|
|
4597
4682
|
return $(e.innerType._def, t);
|
|
@@ -4600,7 +4685,7 @@ var Ep = (e, t) => {
|
|
|
4600
4685
|
currentPath: [...t.currentPath, "anyOf", "1"]
|
|
4601
4686
|
});
|
|
4602
4687
|
return n ? { anyOf: [{ not: te() }, n] } : te();
|
|
4603
|
-
},
|
|
4688
|
+
}, Ep = (e, t) => {
|
|
4604
4689
|
if (t.pipeStrategy === "input")
|
|
4605
4690
|
return $(e.in._def, t);
|
|
4606
4691
|
if (t.pipeStrategy === "output")
|
|
@@ -4616,10 +4701,10 @@ var Ep = (e, t) => {
|
|
|
4616
4701
|
allOf: [r, n].filter((a) => a !== void 0)
|
|
4617
4702
|
};
|
|
4618
4703
|
};
|
|
4619
|
-
function
|
|
4704
|
+
function Ap(e, t) {
|
|
4620
4705
|
return $(e.type._def, t);
|
|
4621
4706
|
}
|
|
4622
|
-
function
|
|
4707
|
+
function xp(e, t) {
|
|
4623
4708
|
const n = {
|
|
4624
4709
|
type: "array",
|
|
4625
4710
|
uniqueItems: !0,
|
|
@@ -4630,7 +4715,7 @@ function kp(e, t) {
|
|
|
4630
4715
|
};
|
|
4631
4716
|
return e.minSize && (n.minItems = e.minSize.value), e.maxSize && (n.maxItems = e.maxSize.value), n;
|
|
4632
4717
|
}
|
|
4633
|
-
function
|
|
4718
|
+
function kp(e, t) {
|
|
4634
4719
|
return e.rest ? {
|
|
4635
4720
|
type: "array",
|
|
4636
4721
|
minItems: e.items.length,
|
|
@@ -4662,83 +4747,83 @@ function Ap(e, t) {
|
|
|
4662
4747
|
)
|
|
4663
4748
|
};
|
|
4664
4749
|
}
|
|
4665
|
-
function
|
|
4750
|
+
function Np() {
|
|
4666
4751
|
return {
|
|
4667
4752
|
not: te()
|
|
4668
4753
|
};
|
|
4669
4754
|
}
|
|
4670
|
-
function
|
|
4755
|
+
function Op() {
|
|
4671
4756
|
return te();
|
|
4672
4757
|
}
|
|
4673
4758
|
var Rp = (e, t) => $(e.innerType._def, t), Cp = (e, t, r) => {
|
|
4674
4759
|
switch (t) {
|
|
4675
|
-
case
|
|
4760
|
+
case O.ZodString:
|
|
4676
4761
|
return Do(e, r);
|
|
4677
|
-
case
|
|
4762
|
+
case O.ZodNumber:
|
|
4678
4763
|
return bp(e);
|
|
4679
|
-
case
|
|
4764
|
+
case O.ZodObject:
|
|
4680
4765
|
return wp(e, r);
|
|
4681
|
-
case
|
|
4766
|
+
case O.ZodBigInt:
|
|
4682
4767
|
return tp(e);
|
|
4683
|
-
case
|
|
4768
|
+
case O.ZodBoolean:
|
|
4684
4769
|
return rp();
|
|
4685
|
-
case
|
|
4770
|
+
case O.ZodDate:
|
|
4686
4771
|
return Zo(e, r);
|
|
4687
|
-
case
|
|
4688
|
-
return
|
|
4689
|
-
case
|
|
4772
|
+
case O.ZodUndefined:
|
|
4773
|
+
return Np();
|
|
4774
|
+
case O.ZodNull:
|
|
4690
4775
|
return gp();
|
|
4691
|
-
case
|
|
4776
|
+
case O.ZodArray:
|
|
4692
4777
|
return ep(e, r);
|
|
4693
|
-
case
|
|
4694
|
-
case
|
|
4778
|
+
case O.ZodUnion:
|
|
4779
|
+
case O.ZodDiscriminatedUnion:
|
|
4695
4780
|
return vp(e, r);
|
|
4696
|
-
case
|
|
4781
|
+
case O.ZodIntersection:
|
|
4697
4782
|
return cp(e, r);
|
|
4698
|
-
case
|
|
4699
|
-
return
|
|
4700
|
-
case
|
|
4783
|
+
case O.ZodTuple:
|
|
4784
|
+
return kp(e, r);
|
|
4785
|
+
case O.ZodRecord:
|
|
4701
4786
|
return Uo(e, r);
|
|
4702
|
-
case
|
|
4787
|
+
case O.ZodLiteral:
|
|
4703
4788
|
return lp(e);
|
|
4704
|
-
case
|
|
4789
|
+
case O.ZodEnum:
|
|
4705
4790
|
return ip(e);
|
|
4706
|
-
case
|
|
4791
|
+
case O.ZodNativeEnum:
|
|
4707
4792
|
return mp(e);
|
|
4708
|
-
case
|
|
4793
|
+
case O.ZodNullable:
|
|
4709
4794
|
return _p(e, r);
|
|
4710
|
-
case
|
|
4711
|
-
return
|
|
4712
|
-
case
|
|
4795
|
+
case O.ZodOptional:
|
|
4796
|
+
return Ip(e, r);
|
|
4797
|
+
case O.ZodMap:
|
|
4713
4798
|
return fp(e, r);
|
|
4714
|
-
case
|
|
4715
|
-
return kp(e, r);
|
|
4716
|
-
case N.ZodLazy:
|
|
4717
|
-
return () => e.getter()._def;
|
|
4718
|
-
case N.ZodPromise:
|
|
4799
|
+
case O.ZodSet:
|
|
4719
4800
|
return xp(e, r);
|
|
4720
|
-
case
|
|
4721
|
-
|
|
4801
|
+
case O.ZodLazy:
|
|
4802
|
+
return () => e.getter()._def;
|
|
4803
|
+
case O.ZodPromise:
|
|
4804
|
+
return Ap(e, r);
|
|
4805
|
+
case O.ZodNaN:
|
|
4806
|
+
case O.ZodNever:
|
|
4722
4807
|
return hp();
|
|
4723
|
-
case
|
|
4808
|
+
case O.ZodEffects:
|
|
4724
4809
|
return sp(e, r);
|
|
4725
|
-
case
|
|
4810
|
+
case O.ZodAny:
|
|
4726
4811
|
return te();
|
|
4727
|
-
case
|
|
4728
|
-
return
|
|
4729
|
-
case
|
|
4812
|
+
case O.ZodUnknown:
|
|
4813
|
+
return Op();
|
|
4814
|
+
case O.ZodDefault:
|
|
4730
4815
|
return op(e, r);
|
|
4731
|
-
case
|
|
4816
|
+
case O.ZodBranded:
|
|
4732
4817
|
return zo(e, r);
|
|
4733
|
-
case
|
|
4818
|
+
case O.ZodReadonly:
|
|
4734
4819
|
return Rp(e, r);
|
|
4735
|
-
case
|
|
4820
|
+
case O.ZodCatch:
|
|
4736
4821
|
return np(e, r);
|
|
4737
|
-
case
|
|
4738
|
-
return
|
|
4739
|
-
case
|
|
4740
|
-
case
|
|
4741
|
-
case
|
|
4822
|
+
case O.ZodPipeline:
|
|
4823
|
+
return Ep(e, r);
|
|
4824
|
+
case O.ZodFunction:
|
|
4825
|
+
case O.ZodVoid:
|
|
4826
|
+
case O.ZodSymbol:
|
|
4742
4827
|
return;
|
|
4743
4828
|
default:
|
|
4744
4829
|
return /* @__PURE__ */ ((n) => {
|
|
@@ -5082,8 +5167,8 @@ Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the toke
|
|
|
5082
5167
|
}
|
|
5083
5168
|
}, qo = "GatewayModelNotFoundError", tf = `vercel.ai.gateway.error.${qo}`, aa = Symbol.for(tf), rf = Je(
|
|
5084
5169
|
() => $e(
|
|
5085
|
-
|
|
5086
|
-
modelId:
|
|
5170
|
+
N({
|
|
5171
|
+
modelId: x()
|
|
5087
5172
|
})
|
|
5088
5173
|
)
|
|
5089
5174
|
), oa, sa, Jo = class extends (sa = re, oa = aa, sa) {
|
|
@@ -5130,7 +5215,7 @@ async function ma({
|
|
|
5130
5215
|
cause: n,
|
|
5131
5216
|
authMethod: a
|
|
5132
5217
|
}) {
|
|
5133
|
-
const o = await
|
|
5218
|
+
const o = await Ie({
|
|
5134
5219
|
value: e,
|
|
5135
5220
|
schema: sf
|
|
5136
5221
|
});
|
|
@@ -5156,7 +5241,7 @@ async function ma({
|
|
|
5156
5241
|
case "rate_limit_exceeded":
|
|
5157
5242
|
return new ef({ message: u, statusCode: t, cause: n });
|
|
5158
5243
|
case "model_not_found": {
|
|
5159
|
-
const c = await
|
|
5244
|
+
const c = await Ie({
|
|
5160
5245
|
value: s.error.param,
|
|
5161
5246
|
schema: rf
|
|
5162
5247
|
});
|
|
@@ -5175,12 +5260,12 @@ async function ma({
|
|
|
5175
5260
|
}
|
|
5176
5261
|
var sf = Je(
|
|
5177
5262
|
() => $e(
|
|
5178
|
-
|
|
5179
|
-
error:
|
|
5180
|
-
message:
|
|
5181
|
-
type:
|
|
5263
|
+
N({
|
|
5264
|
+
error: N({
|
|
5265
|
+
message: x(),
|
|
5266
|
+
type: x().nullish(),
|
|
5182
5267
|
param: Se().nullish(),
|
|
5183
|
-
code: q([
|
|
5268
|
+
code: q([x(), Te()]).nullish()
|
|
5184
5269
|
})
|
|
5185
5270
|
})
|
|
5186
5271
|
)
|
|
@@ -5214,7 +5299,7 @@ function uf(e) {
|
|
|
5214
5299
|
}
|
|
5215
5300
|
var Wo = "ai-gateway-auth-method";
|
|
5216
5301
|
async function ft(e) {
|
|
5217
|
-
const t = await
|
|
5302
|
+
const t = await Ie({
|
|
5218
5303
|
value: e[Wo],
|
|
5219
5304
|
schema: cf
|
|
5220
5305
|
});
|
|
@@ -5235,7 +5320,7 @@ var cf = Je(
|
|
|
5235
5320
|
lf
|
|
5236
5321
|
),
|
|
5237
5322
|
failedResponseHandler: pt({
|
|
5238
|
-
errorSchema:
|
|
5323
|
+
errorSchema: ke(),
|
|
5239
5324
|
errorToMessage: (t) => t
|
|
5240
5325
|
}),
|
|
5241
5326
|
fetch: this.config.fetch
|
|
@@ -5254,7 +5339,7 @@ var cf = Je(
|
|
|
5254
5339
|
df
|
|
5255
5340
|
),
|
|
5256
5341
|
failedResponseHandler: pt({
|
|
5257
|
-
errorSchema:
|
|
5342
|
+
errorSchema: ke(),
|
|
5258
5343
|
errorToMessage: (r) => r
|
|
5259
5344
|
}),
|
|
5260
5345
|
fetch: this.config.fetch
|
|
@@ -5266,17 +5351,17 @@ var cf = Je(
|
|
|
5266
5351
|
}
|
|
5267
5352
|
}, lf = Je(
|
|
5268
5353
|
() => $e(
|
|
5269
|
-
|
|
5354
|
+
N({
|
|
5270
5355
|
models: se(
|
|
5271
|
-
|
|
5272
|
-
id:
|
|
5273
|
-
name:
|
|
5274
|
-
description:
|
|
5275
|
-
pricing:
|
|
5276
|
-
input:
|
|
5277
|
-
output:
|
|
5278
|
-
input_cache_read:
|
|
5279
|
-
input_cache_write:
|
|
5356
|
+
N({
|
|
5357
|
+
id: x(),
|
|
5358
|
+
name: x(),
|
|
5359
|
+
description: x().nullish(),
|
|
5360
|
+
pricing: N({
|
|
5361
|
+
input: x(),
|
|
5362
|
+
output: x(),
|
|
5363
|
+
input_cache_read: x().nullish(),
|
|
5364
|
+
input_cache_write: x().nullish()
|
|
5280
5365
|
}).transform(
|
|
5281
5366
|
({ input: e, output: t, input_cache_read: r, input_cache_write: n }) => ({
|
|
5282
5367
|
input: e,
|
|
@@ -5285,21 +5370,21 @@ var cf = Je(
|
|
|
5285
5370
|
...n ? { cacheCreationInputTokens: n } : {}
|
|
5286
5371
|
})
|
|
5287
5372
|
).nullish(),
|
|
5288
|
-
specification:
|
|
5373
|
+
specification: N({
|
|
5289
5374
|
specificationVersion: z("v2"),
|
|
5290
|
-
provider:
|
|
5291
|
-
modelId:
|
|
5375
|
+
provider: x(),
|
|
5376
|
+
modelId: x()
|
|
5292
5377
|
}),
|
|
5293
|
-
modelType:
|
|
5378
|
+
modelType: No(["language", "embedding", "image"]).nullish()
|
|
5294
5379
|
})
|
|
5295
5380
|
)
|
|
5296
5381
|
})
|
|
5297
5382
|
)
|
|
5298
5383
|
), df = Je(
|
|
5299
5384
|
() => $e(
|
|
5300
|
-
|
|
5301
|
-
balance:
|
|
5302
|
-
total_used:
|
|
5385
|
+
N({
|
|
5386
|
+
balance: x(),
|
|
5387
|
+
total_used: x()
|
|
5303
5388
|
}).transform(({ balance: e, total_used: t }) => ({
|
|
5304
5389
|
balance: e,
|
|
5305
5390
|
totalUsed: t
|
|
@@ -5326,18 +5411,18 @@ var cf = Je(
|
|
|
5326
5411
|
responseHeaders: o,
|
|
5327
5412
|
value: s,
|
|
5328
5413
|
rawValue: i
|
|
5329
|
-
} = await
|
|
5414
|
+
} = await Or({
|
|
5330
5415
|
url: this.getUrl(),
|
|
5331
|
-
headers:
|
|
5416
|
+
headers: kr(
|
|
5332
5417
|
a,
|
|
5333
5418
|
e.headers,
|
|
5334
5419
|
this.getModelConfigHeaders(this.modelId, !1),
|
|
5335
5420
|
await _e(this.config.o11yHeaders)
|
|
5336
5421
|
),
|
|
5337
5422
|
body: t,
|
|
5338
|
-
successfulResponseHandler: jt(
|
|
5423
|
+
successfulResponseHandler: jt(ke()),
|
|
5339
5424
|
failedResponseHandler: pt({
|
|
5340
|
-
errorSchema:
|
|
5425
|
+
errorSchema: ke(),
|
|
5341
5426
|
errorToMessage: (u) => u
|
|
5342
5427
|
}),
|
|
5343
5428
|
...n && { abortSignal: n },
|
|
@@ -5356,18 +5441,18 @@ var cf = Je(
|
|
|
5356
5441
|
async doStream(e) {
|
|
5357
5442
|
const { args: t, warnings: r } = await this.getArgs(e), { abortSignal: n } = e, a = await _e(this.config.headers());
|
|
5358
5443
|
try {
|
|
5359
|
-
const { value: o, responseHeaders: s } = await
|
|
5444
|
+
const { value: o, responseHeaders: s } = await Or({
|
|
5360
5445
|
url: this.getUrl(),
|
|
5361
|
-
headers:
|
|
5446
|
+
headers: kr(
|
|
5362
5447
|
a,
|
|
5363
5448
|
e.headers,
|
|
5364
5449
|
this.getModelConfigHeaders(this.modelId, !0),
|
|
5365
5450
|
await _e(this.config.o11yHeaders)
|
|
5366
5451
|
),
|
|
5367
5452
|
body: t,
|
|
5368
|
-
successfulResponseHandler: Wd(
|
|
5453
|
+
successfulResponseHandler: Wd(ke()),
|
|
5369
5454
|
failedResponseHandler: pt({
|
|
5370
|
-
errorSchema:
|
|
5455
|
+
errorSchema: ke(),
|
|
5371
5456
|
errorToMessage: (i) => i
|
|
5372
5457
|
}),
|
|
5373
5458
|
...n && { abortSignal: n },
|
|
@@ -5452,9 +5537,9 @@ var cf = Je(
|
|
|
5452
5537
|
responseHeaders: s,
|
|
5453
5538
|
value: i,
|
|
5454
5539
|
rawValue: u
|
|
5455
|
-
} = await
|
|
5540
|
+
} = await Or({
|
|
5456
5541
|
url: this.getUrl(),
|
|
5457
|
-
headers:
|
|
5542
|
+
headers: kr(
|
|
5458
5543
|
o,
|
|
5459
5544
|
t ?? {},
|
|
5460
5545
|
this.getModelConfigHeaders(),
|
|
@@ -5468,7 +5553,7 @@ var cf = Je(
|
|
|
5468
5553
|
mf
|
|
5469
5554
|
),
|
|
5470
5555
|
failedResponseHandler: pt({
|
|
5471
|
-
errorSchema:
|
|
5556
|
+
errorSchema: ke(),
|
|
5472
5557
|
errorToMessage: (c) => c
|
|
5473
5558
|
}),
|
|
5474
5559
|
...r && { abortSignal: r },
|
|
@@ -5495,10 +5580,10 @@ var cf = Je(
|
|
|
5495
5580
|
}
|
|
5496
5581
|
}, mf = Je(
|
|
5497
5582
|
() => $e(
|
|
5498
|
-
|
|
5583
|
+
N({
|
|
5499
5584
|
embeddings: se(se(Te())),
|
|
5500
|
-
usage:
|
|
5501
|
-
providerMetadata: dt(
|
|
5585
|
+
usage: N({ tokens: Te() }).nullish(),
|
|
5586
|
+
providerMetadata: dt(x(), dt(x(), Se())).optional()
|
|
5502
5587
|
})
|
|
5503
5588
|
)
|
|
5504
5589
|
);
|
|
@@ -5614,7 +5699,7 @@ async function bf(e) {
|
|
|
5614
5699
|
return null;
|
|
5615
5700
|
}
|
|
5616
5701
|
}
|
|
5617
|
-
var wf = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof global == "object" ? global : {},
|
|
5702
|
+
var wf = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof global == "object" ? global : {}, Ne = "1.9.0", ga = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
|
|
5618
5703
|
function Tf(e) {
|
|
5619
5704
|
var t = /* @__PURE__ */ new Set([e]), r = /* @__PURE__ */ new Set(), n = e.match(ga);
|
|
5620
5705
|
if (!n)
|
|
@@ -5654,22 +5739,22 @@ function Tf(e) {
|
|
|
5654
5739
|
return m.prerelease != null || a.major !== m.major ? o(u) : a.major === 0 ? a.minor === m.minor && a.patch <= m.patch ? s(u) : o(u) : a.minor <= m.minor ? s(u) : o(u);
|
|
5655
5740
|
};
|
|
5656
5741
|
}
|
|
5657
|
-
var Sf = Tf(
|
|
5742
|
+
var Sf = Tf(Ne), If = Ne.split(".")[0], mt = Symbol.for("opentelemetry.js.api." + If), ht = wf;
|
|
5658
5743
|
function Hr(e, t, r, n) {
|
|
5659
5744
|
var a;
|
|
5660
5745
|
n === void 0 && (n = !1);
|
|
5661
5746
|
var o = ht[mt] = (a = ht[mt]) !== null && a !== void 0 ? a : {
|
|
5662
|
-
version:
|
|
5747
|
+
version: Ne
|
|
5663
5748
|
};
|
|
5664
5749
|
if (!n && o[e]) {
|
|
5665
5750
|
var s = new Error("@opentelemetry/api: Attempted duplicate registration of API: " + e);
|
|
5666
5751
|
return r.error(s.stack || s.message), !1;
|
|
5667
5752
|
}
|
|
5668
|
-
if (o.version !==
|
|
5669
|
-
var s = new Error("@opentelemetry/api: Registration of version v" + o.version + " for " + e + " does not match previously registered API v" +
|
|
5753
|
+
if (o.version !== Ne) {
|
|
5754
|
+
var s = new Error("@opentelemetry/api: Registration of version v" + o.version + " for " + e + " does not match previously registered API v" + Ne);
|
|
5670
5755
|
return r.error(s.stack || s.message), !1;
|
|
5671
5756
|
}
|
|
5672
|
-
return o[e] = t, r.debug("@opentelemetry/api: Registered a global for " + e + " v" +
|
|
5757
|
+
return o[e] = t, r.debug("@opentelemetry/api: Registered a global for " + e + " v" + Ne + "."), !0;
|
|
5673
5758
|
}
|
|
5674
5759
|
function gt(e) {
|
|
5675
5760
|
var t, r, n = (t = ht[mt]) === null || t === void 0 ? void 0 : t.version;
|
|
@@ -5677,11 +5762,11 @@ function gt(e) {
|
|
|
5677
5762
|
return (r = ht[mt]) === null || r === void 0 ? void 0 : r[e];
|
|
5678
5763
|
}
|
|
5679
5764
|
function Yr(e, t) {
|
|
5680
|
-
t.debug("@opentelemetry/api: Unregistering a global for " + e + " v" +
|
|
5765
|
+
t.debug("@opentelemetry/api: Unregistering a global for " + e + " v" + Ne + ".");
|
|
5681
5766
|
var r = ht[mt];
|
|
5682
5767
|
r && delete r[e];
|
|
5683
5768
|
}
|
|
5684
|
-
var
|
|
5769
|
+
var Ef = function(e, t) {
|
|
5685
5770
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
5686
5771
|
if (!r) return e;
|
|
5687
5772
|
var n = r.call(e), a, o = [], s;
|
|
@@ -5697,11 +5782,11 @@ var If = function(e, t) {
|
|
|
5697
5782
|
}
|
|
5698
5783
|
}
|
|
5699
5784
|
return o;
|
|
5700
|
-
},
|
|
5785
|
+
}, Af = function(e, t, r) {
|
|
5701
5786
|
if (r || arguments.length === 2) for (var n = 0, a = t.length, o; n < a; n++)
|
|
5702
5787
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
5703
5788
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
5704
|
-
},
|
|
5789
|
+
}, xf = (
|
|
5705
5790
|
/** @class */
|
|
5706
5791
|
function() {
|
|
5707
5792
|
function e(t) {
|
|
@@ -5733,13 +5818,13 @@ var If = function(e, t) {
|
|
|
5733
5818
|
function rt(e, t, r) {
|
|
5734
5819
|
var n = gt("diag");
|
|
5735
5820
|
if (n)
|
|
5736
|
-
return r.unshift(t), n[e].apply(n,
|
|
5821
|
+
return r.unshift(t), n[e].apply(n, Af([], Ef(r), !1));
|
|
5737
5822
|
}
|
|
5738
5823
|
var ee;
|
|
5739
5824
|
(function(e) {
|
|
5740
5825
|
e[e.NONE = 0] = "NONE", e[e.ERROR = 30] = "ERROR", e[e.WARN = 50] = "WARN", e[e.INFO = 60] = "INFO", e[e.DEBUG = 70] = "DEBUG", e[e.VERBOSE = 80] = "VERBOSE", e[e.ALL = 9999] = "ALL";
|
|
5741
5826
|
})(ee || (ee = {}));
|
|
5742
|
-
function
|
|
5827
|
+
function kf(e, t) {
|
|
5743
5828
|
e < ee.NONE ? e = ee.NONE : e > ee.ALL && (e = ee.ALL), t = t || {};
|
|
5744
5829
|
function r(n, a) {
|
|
5745
5830
|
var o = t[n];
|
|
@@ -5754,7 +5839,7 @@ function Af(e, t) {
|
|
|
5754
5839
|
verbose: r("verbose", ee.VERBOSE)
|
|
5755
5840
|
};
|
|
5756
5841
|
}
|
|
5757
|
-
var
|
|
5842
|
+
var Nf = function(e, t) {
|
|
5758
5843
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
5759
5844
|
if (!r) return e;
|
|
5760
5845
|
var n = r.call(e), a, o = [], s;
|
|
@@ -5770,7 +5855,7 @@ var Of = function(e, t) {
|
|
|
5770
5855
|
}
|
|
5771
5856
|
}
|
|
5772
5857
|
return o;
|
|
5773
|
-
},
|
|
5858
|
+
}, Of = function(e, t, r) {
|
|
5774
5859
|
if (r || arguments.length === 2) for (var n = 0, a = t.length, o; n < a; n++)
|
|
5775
5860
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
5776
5861
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
@@ -5784,7 +5869,7 @@ var Of = function(e, t) {
|
|
|
5784
5869
|
o[s] = arguments[s];
|
|
5785
5870
|
var i = gt("diag");
|
|
5786
5871
|
if (i)
|
|
5787
|
-
return i[a].apply(i,
|
|
5872
|
+
return i[a].apply(i, Of([], Nf(o), !1));
|
|
5788
5873
|
};
|
|
5789
5874
|
}
|
|
5790
5875
|
var r = this, n = function(a, o) {
|
|
@@ -5796,7 +5881,7 @@ var Of = function(e, t) {
|
|
|
5796
5881
|
typeof o == "number" && (o = {
|
|
5797
5882
|
logLevel: o
|
|
5798
5883
|
});
|
|
5799
|
-
var m = gt("diag"), b =
|
|
5884
|
+
var m = gt("diag"), b = kf((i = o.logLevel) !== null && i !== void 0 ? i : ee.INFO, a);
|
|
5800
5885
|
if (m && !o.suppressOverrideMessage) {
|
|
5801
5886
|
var _ = (u = new Error().stack) !== null && u !== void 0 ? u : "<failed to generate stacktrace>";
|
|
5802
5887
|
m.warn("Current logger will be overwritten from " + _), b.warn("Current logger will overwrite one already registered from " + _);
|
|
@@ -5806,7 +5891,7 @@ var Of = function(e, t) {
|
|
|
5806
5891
|
r.setLogger = n, r.disable = function() {
|
|
5807
5892
|
Yr(Rf, r);
|
|
5808
5893
|
}, r.createComponentLogger = function(a) {
|
|
5809
|
-
return new
|
|
5894
|
+
return new xf(a);
|
|
5810
5895
|
}, r.verbose = t("verbose"), r.debug = t("debug"), r.info = t("info"), r.warn = t("warn"), r.error = t("error");
|
|
5811
5896
|
}
|
|
5812
5897
|
return e.instance = function() {
|
|
@@ -6194,19 +6279,19 @@ var _s = "AI_NoSuchToolError", bs = `vercel.ai.error.${_s}`, hm = Symbol.for(bs)
|
|
|
6194
6279
|
}
|
|
6195
6280
|
};
|
|
6196
6281
|
ws = hm;
|
|
6197
|
-
var Ts = "AI_ToolCallRepairError", Ss = `vercel.ai.error.${Ts}`, gm = Symbol.for(Ss),
|
|
6282
|
+
var Ts = "AI_ToolCallRepairError", Ss = `vercel.ai.error.${Ts}`, gm = Symbol.for(Ss), Is, vm = class extends R {
|
|
6198
6283
|
constructor({
|
|
6199
6284
|
cause: e,
|
|
6200
6285
|
originalError: t,
|
|
6201
6286
|
message: r = `Error repairing tool call: ${Ge(e)}`
|
|
6202
6287
|
}) {
|
|
6203
|
-
super({ name: Ts, message: r, cause: e }), this[
|
|
6288
|
+
super({ name: Ts, message: r, cause: e }), this[Is] = !0, this.originalError = t;
|
|
6204
6289
|
}
|
|
6205
6290
|
static isInstance(e) {
|
|
6206
6291
|
return R.hasMarker(e, Ss);
|
|
6207
6292
|
}
|
|
6208
6293
|
};
|
|
6209
|
-
|
|
6294
|
+
Is = gm;
|
|
6210
6295
|
var ym = class extends R {
|
|
6211
6296
|
constructor(e) {
|
|
6212
6297
|
super({
|
|
@@ -6214,19 +6299,19 @@ var ym = class extends R {
|
|
|
6214
6299
|
message: `Unsupported model version ${e.version} for provider "${e.provider}" and model "${e.modelId}". AI SDK 5 only supports models that implement specification version "v2".`
|
|
6215
6300
|
}), this.version = e.version, this.provider = e.provider, this.modelId = e.modelId;
|
|
6216
6301
|
}
|
|
6217
|
-
},
|
|
6302
|
+
}, Es = "AI_InvalidMessageRoleError", As = `vercel.ai.error.${Es}`, _m = Symbol.for(As), xs, bm = class extends R {
|
|
6218
6303
|
constructor({
|
|
6219
6304
|
role: e,
|
|
6220
6305
|
message: t = `Invalid message role: '${e}'. Must be one of: "system", "user", "assistant", "tool".`
|
|
6221
6306
|
}) {
|
|
6222
|
-
super({ name:
|
|
6307
|
+
super({ name: Es, message: t }), this[xs] = !0, this.role = e;
|
|
6223
6308
|
}
|
|
6224
6309
|
static isInstance(e) {
|
|
6225
|
-
return R.hasMarker(e,
|
|
6310
|
+
return R.hasMarker(e, As);
|
|
6226
6311
|
}
|
|
6227
6312
|
};
|
|
6228
|
-
|
|
6229
|
-
var
|
|
6313
|
+
xs = _m;
|
|
6314
|
+
var ks = "AI_DownloadError", Ns = `vercel.ai.error.${ks}`, wm = Symbol.for(Ns), Os, wr = class extends R {
|
|
6230
6315
|
constructor({
|
|
6231
6316
|
url: e,
|
|
6232
6317
|
statusCode: t,
|
|
@@ -6234,13 +6319,13 @@ var As = "AI_DownloadError", Os = `vercel.ai.error.${As}`, wm = Symbol.for(Os),
|
|
|
6234
6319
|
cause: n,
|
|
6235
6320
|
message: a = n == null ? `Failed to download ${e}: ${t} ${r}` : `Failed to download ${e}: ${n}`
|
|
6236
6321
|
}) {
|
|
6237
|
-
super({ name:
|
|
6322
|
+
super({ name: ks, message: a, cause: n }), this[Os] = !0, this.url = e, this.statusCode = t, this.statusText = r;
|
|
6238
6323
|
}
|
|
6239
6324
|
static isInstance(e) {
|
|
6240
|
-
return R.hasMarker(e,
|
|
6325
|
+
return R.hasMarker(e, Ns);
|
|
6241
6326
|
}
|
|
6242
6327
|
};
|
|
6243
|
-
|
|
6328
|
+
Os = wm;
|
|
6244
6329
|
var Rs = "AI_RetryError", Cs = `vercel.ai.error.${Rs}`, Tm = Symbol.for(Cs), Ps, ba = class extends R {
|
|
6245
6330
|
constructor({
|
|
6246
6331
|
message: e,
|
|
@@ -6270,7 +6355,7 @@ function Sm() {
|
|
|
6270
6355
|
var e;
|
|
6271
6356
|
return (e = globalThis.AI_SDK_DEFAULT_PROVIDER) != null ? e : _f;
|
|
6272
6357
|
}
|
|
6273
|
-
var
|
|
6358
|
+
var Im = [
|
|
6274
6359
|
{
|
|
6275
6360
|
mediaType: "image/gif",
|
|
6276
6361
|
bytesPrefix: [71, 73, 70]
|
|
@@ -6352,20 +6437,20 @@ var Em = [
|
|
|
6352
6437
|
99
|
|
6353
6438
|
]
|
|
6354
6439
|
}
|
|
6355
|
-
],
|
|
6440
|
+
], Em = (e) => {
|
|
6356
6441
|
const t = typeof e == "string" ? qr(e) : e, r = (t[6] & 127) << 21 | (t[7] & 127) << 14 | (t[8] & 127) << 7 | t[9] & 127;
|
|
6357
6442
|
return t.slice(r + 10);
|
|
6358
6443
|
};
|
|
6359
|
-
function
|
|
6444
|
+
function Am(e) {
|
|
6360
6445
|
return typeof e == "string" && e.startsWith("SUQz") || typeof e != "string" && e.length > 10 && e[0] === 73 && // 'I'
|
|
6361
6446
|
e[1] === 68 && // 'D'
|
|
6362
|
-
e[2] === 51 ?
|
|
6447
|
+
e[2] === 51 ? Em(e) : e;
|
|
6363
6448
|
}
|
|
6364
|
-
function
|
|
6449
|
+
function xm({
|
|
6365
6450
|
data: e,
|
|
6366
6451
|
signatures: t
|
|
6367
6452
|
}) {
|
|
6368
|
-
const r =
|
|
6453
|
+
const r = Am(e), n = typeof r == "string" ? qr(
|
|
6369
6454
|
r.substring(0, Math.min(r.length, 24))
|
|
6370
6455
|
) : r;
|
|
6371
6456
|
for (const a of t)
|
|
@@ -6374,14 +6459,14 @@ function km({
|
|
|
6374
6459
|
))
|
|
6375
6460
|
return a.mediaType;
|
|
6376
6461
|
}
|
|
6377
|
-
var
|
|
6462
|
+
var km = "5.0.76", Nm = async ({ url: e }) => {
|
|
6378
6463
|
var t;
|
|
6379
6464
|
const r = e.toString();
|
|
6380
6465
|
try {
|
|
6381
6466
|
const n = await fetch(r, {
|
|
6382
6467
|
headers: qt(
|
|
6383
6468
|
{},
|
|
6384
|
-
`ai-sdk/${
|
|
6469
|
+
`ai-sdk/${km}`,
|
|
6385
6470
|
Br()
|
|
6386
6471
|
)
|
|
6387
6472
|
});
|
|
@@ -6398,7 +6483,7 @@ var Am = "5.0.76", Om = async ({ url: e }) => {
|
|
|
6398
6483
|
} catch (n) {
|
|
6399
6484
|
throw wr.isInstance(n) ? n : new wr({ url: r, cause: n });
|
|
6400
6485
|
}
|
|
6401
|
-
},
|
|
6486
|
+
}, Om = (e = Nm) => (t) => Promise.all(
|
|
6402
6487
|
t.map(
|
|
6403
6488
|
async (r) => r.isUrlSupportedByModel ? null : e(r)
|
|
6404
6489
|
)
|
|
@@ -6418,10 +6503,10 @@ function Rm(e) {
|
|
|
6418
6503
|
}
|
|
6419
6504
|
}
|
|
6420
6505
|
var Ms = q([
|
|
6421
|
-
|
|
6506
|
+
x(),
|
|
6422
6507
|
Dt(Uint8Array),
|
|
6423
6508
|
Dt(ArrayBuffer),
|
|
6424
|
-
|
|
6509
|
+
Nd(
|
|
6425
6510
|
// Buffer might not be available in some environments such as CloudFlare:
|
|
6426
6511
|
(e) => {
|
|
6427
6512
|
var t, r;
|
|
@@ -6459,7 +6544,7 @@ function Cm(e) {
|
|
|
6459
6544
|
async function Pm({
|
|
6460
6545
|
prompt: e,
|
|
6461
6546
|
supportedUrls: t,
|
|
6462
|
-
download: r =
|
|
6547
|
+
download: r = Om()
|
|
6463
6548
|
}) {
|
|
6464
6549
|
const n = await Mm(
|
|
6465
6550
|
e.messages,
|
|
@@ -6633,7 +6718,7 @@ function zm(e, t) {
|
|
|
6633
6718
|
}
|
|
6634
6719
|
switch (a) {
|
|
6635
6720
|
case "image":
|
|
6636
|
-
return (u instanceof Uint8Array || typeof u == "string") && (i = (r =
|
|
6721
|
+
return (u instanceof Uint8Array || typeof u == "string") && (i = (r = xm({ data: u, signatures: Im })) != null ? r : i), {
|
|
6637
6722
|
type: "file",
|
|
6638
6723
|
mediaType: i ?? "image/*",
|
|
6639
6724
|
// any image
|
|
@@ -6768,100 +6853,100 @@ function Um({
|
|
|
6768
6853
|
toolChoice: void 0
|
|
6769
6854
|
};
|
|
6770
6855
|
}
|
|
6771
|
-
var vt =
|
|
6856
|
+
var vt = kd(
|
|
6772
6857
|
() => q([
|
|
6773
6858
|
rd(),
|
|
6774
|
-
|
|
6859
|
+
x(),
|
|
6775
6860
|
Te(),
|
|
6776
|
-
|
|
6777
|
-
dt(
|
|
6861
|
+
xe(),
|
|
6862
|
+
dt(x(), vt),
|
|
6778
6863
|
se(vt)
|
|
6779
6864
|
])
|
|
6780
6865
|
), me = dt(
|
|
6781
|
-
|
|
6782
|
-
dt(
|
|
6783
|
-
), Zs =
|
|
6866
|
+
x(),
|
|
6867
|
+
dt(x(), vt)
|
|
6868
|
+
), Zs = N({
|
|
6784
6869
|
type: z("text"),
|
|
6785
|
-
text:
|
|
6870
|
+
text: x(),
|
|
6786
6871
|
providerOptions: me.optional()
|
|
6787
|
-
}), jm =
|
|
6872
|
+
}), jm = N({
|
|
6788
6873
|
type: z("image"),
|
|
6789
6874
|
image: q([Ms, Dt(URL)]),
|
|
6790
|
-
mediaType:
|
|
6875
|
+
mediaType: x().optional(),
|
|
6791
6876
|
providerOptions: me.optional()
|
|
6792
|
-
}), Ds =
|
|
6877
|
+
}), Ds = N({
|
|
6793
6878
|
type: z("file"),
|
|
6794
6879
|
data: q([Ms, Dt(URL)]),
|
|
6795
|
-
filename:
|
|
6796
|
-
mediaType:
|
|
6880
|
+
filename: x().optional(),
|
|
6881
|
+
mediaType: x(),
|
|
6797
6882
|
providerOptions: me.optional()
|
|
6798
|
-
}), Lm =
|
|
6883
|
+
}), Lm = N({
|
|
6799
6884
|
type: z("reasoning"),
|
|
6800
|
-
text:
|
|
6885
|
+
text: x(),
|
|
6801
6886
|
providerOptions: me.optional()
|
|
6802
|
-
}), Fm =
|
|
6887
|
+
}), Fm = N({
|
|
6803
6888
|
type: z("tool-call"),
|
|
6804
|
-
toolCallId:
|
|
6805
|
-
toolName:
|
|
6889
|
+
toolCallId: x(),
|
|
6890
|
+
toolName: x(),
|
|
6806
6891
|
input: Se(),
|
|
6807
6892
|
providerOptions: me.optional(),
|
|
6808
|
-
providerExecuted:
|
|
6893
|
+
providerExecuted: xe().optional()
|
|
6809
6894
|
}), Vm = cd("type", [
|
|
6810
|
-
|
|
6895
|
+
N({
|
|
6811
6896
|
type: z("text"),
|
|
6812
|
-
value:
|
|
6897
|
+
value: x()
|
|
6813
6898
|
}),
|
|
6814
|
-
|
|
6899
|
+
N({
|
|
6815
6900
|
type: z("json"),
|
|
6816
6901
|
value: vt
|
|
6817
6902
|
}),
|
|
6818
|
-
|
|
6903
|
+
N({
|
|
6819
6904
|
type: z("error-text"),
|
|
6820
|
-
value:
|
|
6905
|
+
value: x()
|
|
6821
6906
|
}),
|
|
6822
|
-
|
|
6907
|
+
N({
|
|
6823
6908
|
type: z("error-json"),
|
|
6824
6909
|
value: vt
|
|
6825
6910
|
}),
|
|
6826
|
-
|
|
6911
|
+
N({
|
|
6827
6912
|
type: z("content"),
|
|
6828
6913
|
value: se(
|
|
6829
6914
|
q([
|
|
6830
|
-
|
|
6915
|
+
N({
|
|
6831
6916
|
type: z("text"),
|
|
6832
|
-
text:
|
|
6917
|
+
text: x()
|
|
6833
6918
|
}),
|
|
6834
|
-
|
|
6919
|
+
N({
|
|
6835
6920
|
type: z("media"),
|
|
6836
|
-
data:
|
|
6837
|
-
mediaType:
|
|
6921
|
+
data: x(),
|
|
6922
|
+
mediaType: x()
|
|
6838
6923
|
})
|
|
6839
6924
|
])
|
|
6840
6925
|
)
|
|
6841
6926
|
})
|
|
6842
|
-
]), Us =
|
|
6927
|
+
]), Us = N({
|
|
6843
6928
|
type: z("tool-result"),
|
|
6844
|
-
toolCallId:
|
|
6845
|
-
toolName:
|
|
6929
|
+
toolCallId: x(),
|
|
6930
|
+
toolName: x(),
|
|
6846
6931
|
output: Vm,
|
|
6847
6932
|
providerOptions: me.optional()
|
|
6848
|
-
}), Bm =
|
|
6933
|
+
}), Bm = N(
|
|
6849
6934
|
{
|
|
6850
6935
|
role: z("system"),
|
|
6851
|
-
content:
|
|
6936
|
+
content: x(),
|
|
6852
6937
|
providerOptions: me.optional()
|
|
6853
6938
|
}
|
|
6854
|
-
), Gm =
|
|
6939
|
+
), Gm = N({
|
|
6855
6940
|
role: z("user"),
|
|
6856
6941
|
content: q([
|
|
6857
|
-
|
|
6942
|
+
x(),
|
|
6858
6943
|
se(q([Zs, jm, Ds]))
|
|
6859
6944
|
]),
|
|
6860
6945
|
providerOptions: me.optional()
|
|
6861
|
-
}), qm =
|
|
6946
|
+
}), qm = N({
|
|
6862
6947
|
role: z("assistant"),
|
|
6863
6948
|
content: q([
|
|
6864
|
-
|
|
6949
|
+
x(),
|
|
6865
6950
|
se(
|
|
6866
6951
|
q([
|
|
6867
6952
|
Zs,
|
|
@@ -6873,7 +6958,7 @@ var vt = Ad(
|
|
|
6873
6958
|
)
|
|
6874
6959
|
]),
|
|
6875
6960
|
providerOptions: me.optional()
|
|
6876
|
-
}), Jm =
|
|
6961
|
+
}), Jm = N({
|
|
6877
6962
|
role: z("tool"),
|
|
6878
6963
|
content: se(Us),
|
|
6879
6964
|
providerOptions: me.optional()
|
|
@@ -6916,7 +7001,7 @@ async function Ym(e) {
|
|
|
6916
7001
|
prompt: e,
|
|
6917
7002
|
message: "messages must not be empty"
|
|
6918
7003
|
});
|
|
6919
|
-
const r = await
|
|
7004
|
+
const r = await Ie({
|
|
6920
7005
|
value: t,
|
|
6921
7006
|
schema: se(Hm)
|
|
6922
7007
|
});
|
|
@@ -6974,17 +7059,17 @@ function Km({
|
|
|
6974
7059
|
}
|
|
6975
7060
|
var Xm = {
|
|
6976
7061
|
startSpan() {
|
|
6977
|
-
return
|
|
7062
|
+
return kt;
|
|
6978
7063
|
},
|
|
6979
7064
|
startActiveSpan(e, t, r, n) {
|
|
6980
7065
|
if (typeof t == "function")
|
|
6981
|
-
return t(
|
|
7066
|
+
return t(kt);
|
|
6982
7067
|
if (typeof r == "function")
|
|
6983
|
-
return r(
|
|
7068
|
+
return r(kt);
|
|
6984
7069
|
if (typeof n == "function")
|
|
6985
|
-
return n(
|
|
7070
|
+
return n(kt);
|
|
6986
7071
|
}
|
|
6987
|
-
},
|
|
7072
|
+
}, kt = {
|
|
6988
7073
|
spanContext() {
|
|
6989
7074
|
return Qm;
|
|
6990
7075
|
},
|
|
@@ -7156,7 +7241,7 @@ async function Ls(e, {
|
|
|
7156
7241
|
try {
|
|
7157
7242
|
return await e();
|
|
7158
7243
|
} catch (s) {
|
|
7159
|
-
if (
|
|
7244
|
+
if (Oe(s) || t === 0)
|
|
7160
7245
|
throw s;
|
|
7161
7246
|
const i = Co(s), u = [...o, s], c = u.length;
|
|
7162
7247
|
if (c > t)
|
|
@@ -7298,7 +7383,7 @@ async function Ta({
|
|
|
7298
7383
|
toolName: e.toolName,
|
|
7299
7384
|
availableTools: Object.keys(t)
|
|
7300
7385
|
});
|
|
7301
|
-
const a = Jt(n.inputSchema), o = e.input.trim() === "" ? await
|
|
7386
|
+
const a = Jt(n.inputSchema), o = e.input.trim() === "" ? await Ie({ value: {}, schema: a }) : await Re({ text: e.input, schema: a });
|
|
7302
7387
|
if (o.success === !1)
|
|
7303
7388
|
throw new ps({
|
|
7304
7389
|
toolName: r,
|
|
@@ -7395,7 +7480,7 @@ function Tr({
|
|
|
7395
7480
|
function Sa(e) {
|
|
7396
7481
|
return e === void 0 ? null : e;
|
|
7397
7482
|
}
|
|
7398
|
-
function
|
|
7483
|
+
function Ia({
|
|
7399
7484
|
content: e,
|
|
7400
7485
|
tools: t
|
|
7401
7486
|
}) {
|
|
@@ -7877,7 +7962,7 @@ async function qs(e) {
|
|
|
7877
7962
|
function Sr(e) {
|
|
7878
7963
|
return e.type.startsWith("tool-");
|
|
7879
7964
|
}
|
|
7880
|
-
function
|
|
7965
|
+
function Ea(e) {
|
|
7881
7966
|
return e.type.split("-").slice(1).join("-");
|
|
7882
7967
|
}
|
|
7883
7968
|
function yh({
|
|
@@ -7911,66 +7996,66 @@ function _h({
|
|
|
7911
7996
|
await n(async ({ state: c, write: m }) => {
|
|
7912
7997
|
var b, _, p, f;
|
|
7913
7998
|
function w(d) {
|
|
7914
|
-
const
|
|
7915
|
-
(
|
|
7999
|
+
const E = c.message.parts.filter(Sr).find(
|
|
8000
|
+
(A) => A.toolCallId === d
|
|
7916
8001
|
);
|
|
7917
|
-
if (
|
|
8002
|
+
if (E == null)
|
|
7918
8003
|
throw new Error(
|
|
7919
8004
|
"tool-output-error must be preceded by a tool-input-available"
|
|
7920
8005
|
);
|
|
7921
|
-
return
|
|
8006
|
+
return E;
|
|
7922
8007
|
}
|
|
7923
8008
|
function v(d) {
|
|
7924
|
-
const
|
|
7925
|
-
(
|
|
8009
|
+
const E = c.message.parts.filter(
|
|
8010
|
+
(A) => A.type === "dynamic-tool"
|
|
7926
8011
|
).find(
|
|
7927
|
-
(
|
|
8012
|
+
(A) => A.toolCallId === d
|
|
7928
8013
|
);
|
|
7929
|
-
if (
|
|
8014
|
+
if (E == null)
|
|
7930
8015
|
throw new Error(
|
|
7931
8016
|
"tool-output-error must be preceded by a tool-input-available"
|
|
7932
8017
|
);
|
|
7933
|
-
return
|
|
8018
|
+
return E;
|
|
7934
8019
|
}
|
|
7935
8020
|
function l(d) {
|
|
7936
8021
|
var S;
|
|
7937
|
-
const
|
|
8022
|
+
const E = c.message.parts.find(
|
|
7938
8023
|
(J) => Sr(J) && J.toolCallId === d.toolCallId
|
|
7939
|
-
),
|
|
7940
|
-
|
|
8024
|
+
), A = d, M = E;
|
|
8025
|
+
E != null ? (E.state = d.state, M.input = A.input, M.output = A.output, M.errorText = A.errorText, M.rawInput = A.rawInput, M.preliminary = A.preliminary, M.providerExecuted = (S = A.providerExecuted) != null ? S : E.providerExecuted, A.providerMetadata != null && E.state === "input-available" && (E.callProviderMetadata = A.providerMetadata)) : c.message.parts.push({
|
|
7941
8026
|
type: `tool-${d.toolName}`,
|
|
7942
8027
|
toolCallId: d.toolCallId,
|
|
7943
8028
|
state: d.state,
|
|
7944
|
-
input:
|
|
7945
|
-
output:
|
|
7946
|
-
rawInput:
|
|
7947
|
-
errorText:
|
|
7948
|
-
providerExecuted:
|
|
7949
|
-
preliminary:
|
|
7950
|
-
...
|
|
8029
|
+
input: A.input,
|
|
8030
|
+
output: A.output,
|
|
8031
|
+
rawInput: A.rawInput,
|
|
8032
|
+
errorText: A.errorText,
|
|
8033
|
+
providerExecuted: A.providerExecuted,
|
|
8034
|
+
preliminary: A.preliminary,
|
|
8035
|
+
...A.providerMetadata != null ? { callProviderMetadata: A.providerMetadata } : {}
|
|
7951
8036
|
});
|
|
7952
8037
|
}
|
|
7953
8038
|
function g(d) {
|
|
7954
8039
|
var S;
|
|
7955
|
-
const
|
|
8040
|
+
const E = c.message.parts.find(
|
|
7956
8041
|
(J) => J.type === "dynamic-tool" && J.toolCallId === d.toolCallId
|
|
7957
|
-
),
|
|
7958
|
-
|
|
8042
|
+
), A = d, M = E;
|
|
8043
|
+
E != null ? (E.state = d.state, M.toolName = d.toolName, M.input = A.input, M.output = A.output, M.errorText = A.errorText, M.rawInput = (S = A.rawInput) != null ? S : M.rawInput, M.preliminary = A.preliminary, A.providerMetadata != null && E.state === "input-available" && (E.callProviderMetadata = A.providerMetadata)) : c.message.parts.push({
|
|
7959
8044
|
type: "dynamic-tool",
|
|
7960
8045
|
toolName: d.toolName,
|
|
7961
8046
|
toolCallId: d.toolCallId,
|
|
7962
8047
|
state: d.state,
|
|
7963
|
-
input:
|
|
7964
|
-
output:
|
|
7965
|
-
errorText:
|
|
7966
|
-
preliminary:
|
|
7967
|
-
...
|
|
8048
|
+
input: A.input,
|
|
8049
|
+
output: A.output,
|
|
8050
|
+
errorText: A.errorText,
|
|
8051
|
+
preliminary: A.preliminary,
|
|
8052
|
+
...A.providerMetadata != null ? { callProviderMetadata: A.providerMetadata } : {}
|
|
7968
8053
|
});
|
|
7969
8054
|
}
|
|
7970
8055
|
async function y(d) {
|
|
7971
8056
|
if (d != null) {
|
|
7972
8057
|
const S = c.message.metadata != null ? Gs(c.message.metadata, d) : d;
|
|
7973
|
-
t != null && await
|
|
8058
|
+
t != null && await Nr({
|
|
7974
8059
|
value: S,
|
|
7975
8060
|
schema: t
|
|
7976
8061
|
}), c.message.metadata = S;
|
|
@@ -8142,7 +8227,7 @@ function _h({
|
|
|
8142
8227
|
const d = w(i.toolCallId);
|
|
8143
8228
|
l({
|
|
8144
8229
|
toolCallId: i.toolCallId,
|
|
8145
|
-
toolName:
|
|
8230
|
+
toolName: Ea(d),
|
|
8146
8231
|
state: "output-available",
|
|
8147
8232
|
input: d.input,
|
|
8148
8233
|
output: i.output,
|
|
@@ -8169,7 +8254,7 @@ function _h({
|
|
|
8169
8254
|
const d = w(i.toolCallId);
|
|
8170
8255
|
l({
|
|
8171
8256
|
toolCallId: i.toolCallId,
|
|
8172
|
-
toolName:
|
|
8257
|
+
toolName: Ea(d),
|
|
8173
8258
|
state: "output-error",
|
|
8174
8259
|
input: d.input,
|
|
8175
8260
|
rawInput: d.rawInput,
|
|
@@ -8205,7 +8290,7 @@ function _h({
|
|
|
8205
8290
|
}
|
|
8206
8291
|
default:
|
|
8207
8292
|
if (gh(i)) {
|
|
8208
|
-
(r == null ? void 0 : r[i.type]) != null && await
|
|
8293
|
+
(r == null ? void 0 : r[i.type]) != null && await Nr({
|
|
8209
8294
|
value: i.data,
|
|
8210
8295
|
schema: r[i.type]
|
|
8211
8296
|
});
|
|
@@ -8215,7 +8300,7 @@ function _h({
|
|
|
8215
8300
|
break;
|
|
8216
8301
|
}
|
|
8217
8302
|
const S = d.id != null ? c.message.parts.find(
|
|
8218
|
-
(
|
|
8303
|
+
(E) => d.type === E.type && d.id === E.id
|
|
8219
8304
|
) : void 0;
|
|
8220
8305
|
S != null ? S.data = d.data : c.message.parts.push(d), s == null || s(d), m();
|
|
8221
8306
|
}
|
|
@@ -8315,7 +8400,7 @@ function wh({
|
|
|
8315
8400
|
stream: s.pipeThrough(new TextEncoderStream())
|
|
8316
8401
|
});
|
|
8317
8402
|
}
|
|
8318
|
-
function
|
|
8403
|
+
function Nt(e) {
|
|
8319
8404
|
const t = e.pipeThrough(new TransformStream());
|
|
8320
8405
|
return t[Symbol.asyncIterator] = function() {
|
|
8321
8406
|
const r = this.getReader();
|
|
@@ -8380,7 +8465,7 @@ async function Th({
|
|
|
8380
8465
|
r.releaseLock();
|
|
8381
8466
|
}
|
|
8382
8467
|
}
|
|
8383
|
-
function
|
|
8468
|
+
function Aa() {
|
|
8384
8469
|
let e, t;
|
|
8385
8470
|
return {
|
|
8386
8471
|
promise: new Promise((n, a) => {
|
|
@@ -8391,7 +8476,7 @@ function xa() {
|
|
|
8391
8476
|
};
|
|
8392
8477
|
}
|
|
8393
8478
|
function Sh() {
|
|
8394
|
-
let e = [], t = null, r = !1, n =
|
|
8479
|
+
let e = [], t = null, r = !1, n = Aa();
|
|
8395
8480
|
const a = () => {
|
|
8396
8481
|
r = !0, n.resolve(), e.forEach((s) => s.cancel()), e = [], t == null || t.close();
|
|
8397
8482
|
}, o = async () => {
|
|
@@ -8400,7 +8485,7 @@ function Sh() {
|
|
|
8400
8485
|
return;
|
|
8401
8486
|
}
|
|
8402
8487
|
if (e.length === 0)
|
|
8403
|
-
return n =
|
|
8488
|
+
return n = Aa(), await n.promise, o();
|
|
8404
8489
|
try {
|
|
8405
8490
|
const { value: s, done: i } = await e[0].read();
|
|
8406
8491
|
i ? (e.shift(), e.length > 0 ? await o() : r && (t == null || t.close())) : t == null || t.enqueue(s);
|
|
@@ -8439,7 +8524,7 @@ function Sh() {
|
|
|
8439
8524
|
terminate: a
|
|
8440
8525
|
};
|
|
8441
8526
|
}
|
|
8442
|
-
var
|
|
8527
|
+
var Ot = class {
|
|
8443
8528
|
constructor() {
|
|
8444
8529
|
this.status = { type: "pending" }, this._resolve = void 0, this._reject = void 0;
|
|
8445
8530
|
}
|
|
@@ -8457,11 +8542,11 @@ var Nt = class {
|
|
|
8457
8542
|
this.status = { type: "rejected", error: e }, this._promise && ((t = this._reject) == null || t.call(this, e));
|
|
8458
8543
|
}
|
|
8459
8544
|
};
|
|
8460
|
-
function
|
|
8545
|
+
function Ih() {
|
|
8461
8546
|
var e, t;
|
|
8462
8547
|
return (t = (e = globalThis == null ? void 0 : globalThis.performance) == null ? void 0 : e.now()) != null ? t : Date.now();
|
|
8463
8548
|
}
|
|
8464
|
-
function
|
|
8549
|
+
function Eh({
|
|
8465
8550
|
tools: e,
|
|
8466
8551
|
generatorStream: t,
|
|
8467
8552
|
tracer: r,
|
|
@@ -8550,8 +8635,8 @@ function Ih({
|
|
|
8550
8635
|
abortSignal: s,
|
|
8551
8636
|
experimental_context: u
|
|
8552
8637
|
}), S.execute != null && d.providerExecuted !== !0) {
|
|
8553
|
-
const
|
|
8554
|
-
b.add(
|
|
8638
|
+
const E = Pd();
|
|
8639
|
+
b.add(E), Zr({
|
|
8555
8640
|
name: "ai.toolCall",
|
|
8556
8641
|
attributes: Ve({
|
|
8557
8642
|
telemetry: n,
|
|
@@ -8568,7 +8653,7 @@ function Ih({
|
|
|
8568
8653
|
}
|
|
8569
8654
|
}),
|
|
8570
8655
|
tracer: r,
|
|
8571
|
-
fn: async (
|
|
8656
|
+
fn: async (A) => {
|
|
8572
8657
|
let M;
|
|
8573
8658
|
try {
|
|
8574
8659
|
const J = qp({
|
|
@@ -8591,16 +8676,16 @@ function Ih({
|
|
|
8591
8676
|
}
|
|
8592
8677
|
}), he.type === "final" && (M = he.output);
|
|
8593
8678
|
} catch (J) {
|
|
8594
|
-
js(
|
|
8679
|
+
js(A, J), c.enqueue({
|
|
8595
8680
|
...d,
|
|
8596
8681
|
type: "tool-error",
|
|
8597
8682
|
error: J
|
|
8598
|
-
}), b.delete(
|
|
8683
|
+
}), b.delete(E), w();
|
|
8599
8684
|
return;
|
|
8600
8685
|
}
|
|
8601
|
-
b.delete(
|
|
8686
|
+
b.delete(E), w();
|
|
8602
8687
|
try {
|
|
8603
|
-
|
|
8688
|
+
A.setAttributes(
|
|
8604
8689
|
Ve({
|
|
8605
8690
|
telemetry: n,
|
|
8606
8691
|
attributes: {
|
|
@@ -8675,11 +8760,11 @@ function Ih({
|
|
|
8675
8760
|
}
|
|
8676
8761
|
});
|
|
8677
8762
|
}
|
|
8678
|
-
var
|
|
8763
|
+
var Ah = wt({
|
|
8679
8764
|
prefix: "aitxt",
|
|
8680
8765
|
size: 24
|
|
8681
8766
|
});
|
|
8682
|
-
function
|
|
8767
|
+
function xh({
|
|
8683
8768
|
model: e,
|
|
8684
8769
|
tools: t,
|
|
8685
8770
|
toolChoice: r,
|
|
@@ -8704,18 +8789,18 @@ function kh({
|
|
|
8704
8789
|
onError: S = ({ error: ne }) => {
|
|
8705
8790
|
console.error(ne);
|
|
8706
8791
|
},
|
|
8707
|
-
onFinish:
|
|
8708
|
-
onAbort:
|
|
8792
|
+
onFinish: E,
|
|
8793
|
+
onAbort: A,
|
|
8709
8794
|
onStepFinish: M,
|
|
8710
8795
|
experimental_context: J,
|
|
8711
8796
|
_internal: {
|
|
8712
|
-
now: he =
|
|
8713
|
-
generateId: He =
|
|
8797
|
+
now: he = Ih,
|
|
8798
|
+
generateId: He = Ah,
|
|
8714
8799
|
currentDate: Wt = () => /* @__PURE__ */ new Date()
|
|
8715
8800
|
} = {},
|
|
8716
8801
|
...Ye
|
|
8717
8802
|
}) {
|
|
8718
|
-
return new
|
|
8803
|
+
return new Nh({
|
|
8719
8804
|
model: $s(e),
|
|
8720
8805
|
telemetry: b,
|
|
8721
8806
|
headers: u,
|
|
@@ -8737,8 +8822,8 @@ function kh({
|
|
|
8737
8822
|
includeRawChunks: y,
|
|
8738
8823
|
onChunk: d,
|
|
8739
8824
|
onError: S,
|
|
8740
|
-
onFinish:
|
|
8741
|
-
onAbort:
|
|
8825
|
+
onFinish: E,
|
|
8826
|
+
onAbort: A,
|
|
8742
8827
|
onStepFinish: M,
|
|
8743
8828
|
now: he,
|
|
8744
8829
|
currentDate: Wt,
|
|
@@ -8747,7 +8832,7 @@ function kh({
|
|
|
8747
8832
|
download: g
|
|
8748
8833
|
});
|
|
8749
8834
|
}
|
|
8750
|
-
function
|
|
8835
|
+
function kh(e) {
|
|
8751
8836
|
if (!e)
|
|
8752
8837
|
return new TransformStream({
|
|
8753
8838
|
transform(s, i) {
|
|
@@ -8797,7 +8882,7 @@ function Ah(e) {
|
|
|
8797
8882
|
}
|
|
8798
8883
|
});
|
|
8799
8884
|
}
|
|
8800
|
-
var
|
|
8885
|
+
var Nh = class {
|
|
8801
8886
|
constructor({
|
|
8802
8887
|
model: e,
|
|
8803
8888
|
telemetry: t,
|
|
@@ -8821,15 +8906,15 @@ var Oh = class {
|
|
|
8821
8906
|
now: y,
|
|
8822
8907
|
currentDate: d,
|
|
8823
8908
|
generateId: S,
|
|
8824
|
-
onChunk:
|
|
8825
|
-
onError:
|
|
8909
|
+
onChunk: E,
|
|
8910
|
+
onError: A,
|
|
8826
8911
|
onFinish: M,
|
|
8827
8912
|
onAbort: J,
|
|
8828
8913
|
onStepFinish: he,
|
|
8829
8914
|
experimental_context: He,
|
|
8830
8915
|
download: Wt
|
|
8831
8916
|
}) {
|
|
8832
|
-
this._totalUsage = new
|
|
8917
|
+
this._totalUsage = new Ot(), this._finishReason = new Ot(), this._steps = new Ot(), this.output = w, this.includeRawChunks = g, this.tools = c;
|
|
8833
8918
|
let Ye, ne = [];
|
|
8834
8919
|
const en = [];
|
|
8835
8920
|
let Kt, Xt, tn = {}, Qt = [];
|
|
@@ -8840,7 +8925,7 @@ var Oh = class {
|
|
|
8840
8925
|
var H, P, ie, Ke;
|
|
8841
8926
|
V.enqueue(F);
|
|
8842
8927
|
const { part: T } = F;
|
|
8843
|
-
if ((T.type === "text-delta" || T.type === "reasoning-delta" || T.type === "source" || T.type === "tool-call" || T.type === "tool-result" || T.type === "tool-input-start" || T.type === "tool-input-delta" || T.type === "raw") && await (
|
|
8928
|
+
if ((T.type === "text-delta" || T.type === "reasoning-delta" || T.type === "source" || T.type === "tool-call" || T.type === "tool-result" || T.type === "tool-input-start" || T.type === "tool-input-delta" || T.type === "raw") && await (E == null ? void 0 : E({ chunk: T })), T.type === "error" && await A({ error: Wm(T.error) }), T.type === "text-start" && (Me[T.id] = {
|
|
8844
8929
|
type: "text",
|
|
8845
8930
|
text: "",
|
|
8846
8931
|
providerMetadata: T.providerMetadata
|
|
@@ -8905,7 +8990,7 @@ var Oh = class {
|
|
|
8905
8990
|
j.providerMetadata = (Ke = T.providerMetadata) != null ? Ke : j.providerMetadata, delete ze[T.id];
|
|
8906
8991
|
}
|
|
8907
8992
|
if (T.type === "file" && ne.push({ type: "file", file: T.file }), T.type === "source" && ne.push(T), T.type === "tool-call" && ne.push(T), T.type === "tool-result" && !T.preliminary && ne.push(T), T.type === "tool-error" && ne.push(T), T.type === "start-step" && (tn = T.request, Qt = T.warnings), T.type === "finish-step") {
|
|
8908
|
-
const j =
|
|
8993
|
+
const j = Ia({
|
|
8909
8994
|
content: ne,
|
|
8910
8995
|
tools: c
|
|
8911
8996
|
}), Xe = new ch({
|
|
@@ -9013,7 +9098,7 @@ var Oh = class {
|
|
|
9013
9098
|
}
|
|
9014
9099
|
F.enqueue(P);
|
|
9015
9100
|
} catch (H) {
|
|
9016
|
-
|
|
9101
|
+
Oe(H) && (o != null && o.aborted) ? V() : F.error(H);
|
|
9017
9102
|
}
|
|
9018
9103
|
},
|
|
9019
9104
|
cancel(F) {
|
|
@@ -9029,7 +9114,7 @@ var Oh = class {
|
|
|
9029
9114
|
}
|
|
9030
9115
|
})
|
|
9031
9116
|
);
|
|
9032
|
-
this.baseStream = tr.pipeThrough(
|
|
9117
|
+
this.baseStream = tr.pipeThrough(kh(w)).pipeThrough(Hs);
|
|
9033
9118
|
const { maxRetries: Ws, retry: Ks } = oh({
|
|
9034
9119
|
maxRetries: a,
|
|
9035
9120
|
abortSignal: o
|
|
@@ -9063,7 +9148,7 @@ var Oh = class {
|
|
|
9063
9148
|
}) {
|
|
9064
9149
|
var Ke, T, j, Xe, nn;
|
|
9065
9150
|
const an = oe.includeRawChunks;
|
|
9066
|
-
Ye = new
|
|
9151
|
+
Ye = new Ot();
|
|
9067
9152
|
const on = await Ym({
|
|
9068
9153
|
system: s,
|
|
9069
9154
|
prompt: i,
|
|
@@ -9113,7 +9198,7 @@ var Oh = class {
|
|
|
9113
9198
|
},
|
|
9114
9199
|
"ai.prompt.tools": {
|
|
9115
9200
|
// convert the language model level tools:
|
|
9116
|
-
input: () => ar == null ? void 0 : ar.map((
|
|
9201
|
+
input: () => ar == null ? void 0 : ar.map((k) => JSON.stringify(k))
|
|
9117
9202
|
},
|
|
9118
9203
|
"ai.prompt.toolChoice": {
|
|
9119
9204
|
input: () => nr != null ? JSON.stringify(nr) : void 0
|
|
@@ -9132,10 +9217,10 @@ var Oh = class {
|
|
|
9132
9217
|
}),
|
|
9133
9218
|
tracer: rr,
|
|
9134
9219
|
endWhenDone: !1,
|
|
9135
|
-
fn: async (
|
|
9220
|
+
fn: async (k) => ({
|
|
9136
9221
|
startTimestampMs: y(),
|
|
9137
9222
|
// get before the call
|
|
9138
|
-
doStreamSpan:
|
|
9223
|
+
doStreamSpan: k,
|
|
9139
9224
|
result: await Ze.doStream({
|
|
9140
9225
|
...ge,
|
|
9141
9226
|
tools: ar,
|
|
@@ -9149,7 +9234,7 @@ var Oh = class {
|
|
|
9149
9234
|
})
|
|
9150
9235
|
})
|
|
9151
9236
|
})
|
|
9152
|
-
), Qs =
|
|
9237
|
+
), Qs = Eh({
|
|
9153
9238
|
tools: c,
|
|
9154
9239
|
generatorStream: Xs,
|
|
9155
9240
|
tracer: rr,
|
|
@@ -9174,10 +9259,10 @@ var Oh = class {
|
|
|
9174
9259
|
oe.addStream(
|
|
9175
9260
|
Qs.pipeThrough(
|
|
9176
9261
|
new TransformStream({
|
|
9177
|
-
async transform(
|
|
9262
|
+
async transform(k, Y) {
|
|
9178
9263
|
var et, tt, St, ve;
|
|
9179
|
-
if (
|
|
9180
|
-
sr =
|
|
9264
|
+
if (k.type === "stream-start") {
|
|
9265
|
+
sr = k.warnings;
|
|
9181
9266
|
return;
|
|
9182
9267
|
}
|
|
9183
9268
|
if (dn) {
|
|
@@ -9192,58 +9277,58 @@ var Oh = class {
|
|
|
9192
9277
|
warnings: sr ?? []
|
|
9193
9278
|
});
|
|
9194
9279
|
}
|
|
9195
|
-
const fn =
|
|
9280
|
+
const fn = k.type;
|
|
9196
9281
|
switch (fn) {
|
|
9197
9282
|
case "text-start":
|
|
9198
9283
|
case "text-end": {
|
|
9199
|
-
Y.enqueue(
|
|
9284
|
+
Y.enqueue(k);
|
|
9200
9285
|
break;
|
|
9201
9286
|
}
|
|
9202
9287
|
case "text-delta": {
|
|
9203
|
-
|
|
9288
|
+
k.delta.length > 0 && (Y.enqueue({
|
|
9204
9289
|
type: "text-delta",
|
|
9205
|
-
id:
|
|
9206
|
-
text:
|
|
9207
|
-
providerMetadata:
|
|
9208
|
-
}), pn +=
|
|
9290
|
+
id: k.id,
|
|
9291
|
+
text: k.delta,
|
|
9292
|
+
providerMetadata: k.providerMetadata
|
|
9293
|
+
}), pn += k.delta);
|
|
9209
9294
|
break;
|
|
9210
9295
|
}
|
|
9211
9296
|
case "reasoning-start":
|
|
9212
9297
|
case "reasoning-end": {
|
|
9213
|
-
Y.enqueue(
|
|
9298
|
+
Y.enqueue(k);
|
|
9214
9299
|
break;
|
|
9215
9300
|
}
|
|
9216
9301
|
case "reasoning-delta": {
|
|
9217
9302
|
Y.enqueue({
|
|
9218
9303
|
type: "reasoning-delta",
|
|
9219
|
-
id:
|
|
9220
|
-
text:
|
|
9221
|
-
providerMetadata:
|
|
9304
|
+
id: k.id,
|
|
9305
|
+
text: k.delta,
|
|
9306
|
+
providerMetadata: k.providerMetadata
|
|
9222
9307
|
});
|
|
9223
9308
|
break;
|
|
9224
9309
|
}
|
|
9225
9310
|
case "tool-call": {
|
|
9226
|
-
Y.enqueue(
|
|
9311
|
+
Y.enqueue(k), Tt.push(k);
|
|
9227
9312
|
break;
|
|
9228
9313
|
}
|
|
9229
9314
|
case "tool-result": {
|
|
9230
|
-
Y.enqueue(
|
|
9315
|
+
Y.enqueue(k), k.preliminary || or.push(k);
|
|
9231
9316
|
break;
|
|
9232
9317
|
}
|
|
9233
9318
|
case "tool-error": {
|
|
9234
|
-
Y.enqueue(
|
|
9319
|
+
Y.enqueue(k), or.push(k);
|
|
9235
9320
|
break;
|
|
9236
9321
|
}
|
|
9237
9322
|
case "response-metadata": {
|
|
9238
9323
|
pe = {
|
|
9239
|
-
id: (et =
|
|
9240
|
-
timestamp: (tt =
|
|
9241
|
-
modelId: (St =
|
|
9324
|
+
id: (et = k.id) != null ? et : pe.id,
|
|
9325
|
+
timestamp: (tt = k.timestamp) != null ? tt : pe.timestamp,
|
|
9326
|
+
modelId: (St = k.modelId) != null ? St : pe.modelId
|
|
9242
9327
|
};
|
|
9243
9328
|
break;
|
|
9244
9329
|
}
|
|
9245
9330
|
case "finish": {
|
|
9246
|
-
ue =
|
|
9331
|
+
ue = k.usage, Ue = k.finishReason, ur = k.providerMetadata;
|
|
9247
9332
|
const W = y() - ln;
|
|
9248
9333
|
De.addEvent("ai.stream.finish"), De.setAttributes({
|
|
9249
9334
|
"ai.response.msToFinish": W,
|
|
@@ -9252,48 +9337,48 @@ var Oh = class {
|
|
|
9252
9337
|
break;
|
|
9253
9338
|
}
|
|
9254
9339
|
case "file": {
|
|
9255
|
-
Y.enqueue(
|
|
9340
|
+
Y.enqueue(k);
|
|
9256
9341
|
break;
|
|
9257
9342
|
}
|
|
9258
9343
|
case "source": {
|
|
9259
|
-
Y.enqueue(
|
|
9344
|
+
Y.enqueue(k);
|
|
9260
9345
|
break;
|
|
9261
9346
|
}
|
|
9262
9347
|
case "tool-input-start": {
|
|
9263
|
-
ir[
|
|
9264
|
-
const W = c == null ? void 0 : c[
|
|
9348
|
+
ir[k.id] = k.toolName;
|
|
9349
|
+
const W = c == null ? void 0 : c[k.toolName];
|
|
9265
9350
|
(W == null ? void 0 : W.onInputStart) != null && await W.onInputStart({
|
|
9266
|
-
toolCallId:
|
|
9351
|
+
toolCallId: k.id,
|
|
9267
9352
|
messages: Qe,
|
|
9268
9353
|
abortSignal: o,
|
|
9269
9354
|
experimental_context: He
|
|
9270
9355
|
}), Y.enqueue({
|
|
9271
|
-
...
|
|
9356
|
+
...k,
|
|
9272
9357
|
dynamic: (W == null ? void 0 : W.type) === "dynamic"
|
|
9273
9358
|
});
|
|
9274
9359
|
break;
|
|
9275
9360
|
}
|
|
9276
9361
|
case "tool-input-end": {
|
|
9277
|
-
delete ir[
|
|
9362
|
+
delete ir[k.id], Y.enqueue(k);
|
|
9278
9363
|
break;
|
|
9279
9364
|
}
|
|
9280
9365
|
case "tool-input-delta": {
|
|
9281
|
-
const W = ir[
|
|
9366
|
+
const W = ir[k.id], cr = c == null ? void 0 : c[W];
|
|
9282
9367
|
(cr == null ? void 0 : cr.onInputDelta) != null && await cr.onInputDelta({
|
|
9283
|
-
inputTextDelta:
|
|
9284
|
-
toolCallId:
|
|
9368
|
+
inputTextDelta: k.delta,
|
|
9369
|
+
toolCallId: k.id,
|
|
9285
9370
|
messages: Qe,
|
|
9286
9371
|
abortSignal: o,
|
|
9287
9372
|
experimental_context: He
|
|
9288
|
-
}), Y.enqueue(
|
|
9373
|
+
}), Y.enqueue(k);
|
|
9289
9374
|
break;
|
|
9290
9375
|
}
|
|
9291
9376
|
case "error": {
|
|
9292
|
-
Y.enqueue(
|
|
9377
|
+
Y.enqueue(k), Ue = "error";
|
|
9293
9378
|
break;
|
|
9294
9379
|
}
|
|
9295
9380
|
case "raw": {
|
|
9296
|
-
an && Y.enqueue(
|
|
9381
|
+
an && Y.enqueue(k);
|
|
9297
9382
|
break;
|
|
9298
9383
|
}
|
|
9299
9384
|
default: {
|
|
@@ -9303,7 +9388,7 @@ var Oh = class {
|
|
|
9303
9388
|
}
|
|
9304
9389
|
},
|
|
9305
9390
|
// invoke onFinish callback and resolve toolResults promise when the stream is about to close:
|
|
9306
|
-
async flush(
|
|
9391
|
+
async flush(k) {
|
|
9307
9392
|
const Y = Tt.length > 0 ? JSON.stringify(Tt) : void 0;
|
|
9308
9393
|
try {
|
|
9309
9394
|
De.setAttributes(
|
|
@@ -9339,7 +9424,7 @@ var Oh = class {
|
|
|
9339
9424
|
} finally {
|
|
9340
9425
|
De.end();
|
|
9341
9426
|
}
|
|
9342
|
-
|
|
9427
|
+
k.enqueue({
|
|
9343
9428
|
type: "finish-step",
|
|
9344
9429
|
finishReason: Ue,
|
|
9345
9430
|
usage: ue,
|
|
@@ -9363,7 +9448,7 @@ var Oh = class {
|
|
|
9363
9448
|
steps: ae
|
|
9364
9449
|
})) {
|
|
9365
9450
|
P.push(
|
|
9366
|
-
...
|
|
9451
|
+
...Ia({
|
|
9367
9452
|
content: (
|
|
9368
9453
|
// use transformed content to create the messages for the next step:
|
|
9369
9454
|
ae[ae.length - 1].content
|
|
@@ -9378,13 +9463,13 @@ var Oh = class {
|
|
|
9378
9463
|
usage: et
|
|
9379
9464
|
});
|
|
9380
9465
|
} catch (ve) {
|
|
9381
|
-
|
|
9466
|
+
k.enqueue({
|
|
9382
9467
|
type: "error",
|
|
9383
9468
|
error: ve
|
|
9384
9469
|
}), oe.closeStream();
|
|
9385
9470
|
}
|
|
9386
9471
|
} else
|
|
9387
|
-
|
|
9472
|
+
k.enqueue({
|
|
9388
9473
|
type: "finish",
|
|
9389
9474
|
finishReason: Ue,
|
|
9390
9475
|
totalUsage: et
|
|
@@ -9490,7 +9575,7 @@ var Oh = class {
|
|
|
9490
9575
|
return this.baseStream = t, e;
|
|
9491
9576
|
}
|
|
9492
9577
|
get textStream() {
|
|
9493
|
-
return
|
|
9578
|
+
return Nt(
|
|
9494
9579
|
this.teeStream().pipeThrough(
|
|
9495
9580
|
new TransformStream({
|
|
9496
9581
|
transform({ part: e }, t) {
|
|
@@ -9501,7 +9586,7 @@ var Oh = class {
|
|
|
9501
9586
|
);
|
|
9502
9587
|
}
|
|
9503
9588
|
get fullStream() {
|
|
9504
|
-
return
|
|
9589
|
+
return Nt(
|
|
9505
9590
|
this.teeStream().pipeThrough(
|
|
9506
9591
|
new TransformStream({
|
|
9507
9592
|
transform({ part: e }, t) {
|
|
@@ -9525,7 +9610,7 @@ var Oh = class {
|
|
|
9525
9610
|
get experimental_partialOutputStream() {
|
|
9526
9611
|
if (this.output == null)
|
|
9527
9612
|
throw new sm();
|
|
9528
|
-
return
|
|
9613
|
+
return Nt(
|
|
9529
9614
|
this.teeStream().pipeThrough(
|
|
9530
9615
|
new TransformStream({
|
|
9531
9616
|
transform({ partialOutput: e }, t) {
|
|
@@ -9749,7 +9834,7 @@ var Oh = class {
|
|
|
9749
9834
|
}
|
|
9750
9835
|
})
|
|
9751
9836
|
);
|
|
9752
|
-
return
|
|
9837
|
+
return Nt(
|
|
9753
9838
|
bh({
|
|
9754
9839
|
stream: _,
|
|
9755
9840
|
messageId: c ?? (t == null ? void 0 : t()),
|
|
@@ -9830,8 +9915,8 @@ var Oh = class {
|
|
|
9830
9915
|
};
|
|
9831
9916
|
wt({ prefix: "aiobj", size: 24 });
|
|
9832
9917
|
wt({ prefix: "aiobj", size: 24 });
|
|
9833
|
-
var
|
|
9834
|
-
am(
|
|
9918
|
+
var Oh = {};
|
|
9919
|
+
am(Oh, {
|
|
9835
9920
|
object: () => Ch,
|
|
9836
9921
|
text: () => Rh
|
|
9837
9922
|
});
|
|
@@ -9883,7 +9968,7 @@ var Rh = () => ({
|
|
|
9883
9968
|
usage: n.usage,
|
|
9884
9969
|
finishReason: n.finishReason
|
|
9885
9970
|
});
|
|
9886
|
-
const o = await
|
|
9971
|
+
const o = await Ie({
|
|
9887
9972
|
value: a.value,
|
|
9888
9973
|
schema: t
|
|
9889
9974
|
});
|
|
@@ -9900,73 +9985,73 @@ var Rh = () => ({
|
|
|
9900
9985
|
}
|
|
9901
9986
|
};
|
|
9902
9987
|
}, Ph = Fe({
|
|
9903
|
-
name:
|
|
9904
|
-
version:
|
|
9988
|
+
name: x(),
|
|
9989
|
+
version: x()
|
|
9905
9990
|
}), Qr = Fe({
|
|
9906
|
-
_meta: B(
|
|
9907
|
-
}), yt = Qr, $h =
|
|
9908
|
-
method:
|
|
9991
|
+
_meta: B(N({}).loose())
|
|
9992
|
+
}), yt = Qr, $h = N({
|
|
9993
|
+
method: x(),
|
|
9909
9994
|
params: B(Qr)
|
|
9910
9995
|
}), Mh = Fe({
|
|
9911
|
-
experimental: B(
|
|
9912
|
-
logging: B(
|
|
9996
|
+
experimental: B(N({}).loose()),
|
|
9997
|
+
logging: B(N({}).loose()),
|
|
9913
9998
|
prompts: B(
|
|
9914
9999
|
Fe({
|
|
9915
|
-
listChanged: B(
|
|
10000
|
+
listChanged: B(xe())
|
|
9916
10001
|
})
|
|
9917
10002
|
),
|
|
9918
10003
|
resources: B(
|
|
9919
10004
|
Fe({
|
|
9920
|
-
subscribe: B(
|
|
9921
|
-
listChanged: B(
|
|
10005
|
+
subscribe: B(xe()),
|
|
10006
|
+
listChanged: B(xe())
|
|
9922
10007
|
})
|
|
9923
10008
|
),
|
|
9924
10009
|
tools: B(
|
|
9925
10010
|
Fe({
|
|
9926
|
-
listChanged: B(
|
|
10011
|
+
listChanged: B(xe())
|
|
9927
10012
|
})
|
|
9928
10013
|
)
|
|
9929
10014
|
});
|
|
9930
10015
|
yt.extend({
|
|
9931
|
-
protocolVersion:
|
|
10016
|
+
protocolVersion: x(),
|
|
9932
10017
|
capabilities: Mh,
|
|
9933
10018
|
serverInfo: Ph,
|
|
9934
|
-
instructions: B(
|
|
10019
|
+
instructions: B(x())
|
|
9935
10020
|
});
|
|
9936
10021
|
var zh = yt.extend({
|
|
9937
|
-
nextCursor: B(
|
|
9938
|
-
}), Zh =
|
|
9939
|
-
name:
|
|
9940
|
-
description: B(
|
|
9941
|
-
inputSchema:
|
|
10022
|
+
nextCursor: B(x())
|
|
10023
|
+
}), Zh = N({
|
|
10024
|
+
name: x(),
|
|
10025
|
+
description: B(x()),
|
|
10026
|
+
inputSchema: N({
|
|
9942
10027
|
type: z("object"),
|
|
9943
|
-
properties: B(
|
|
10028
|
+
properties: B(N({}).loose())
|
|
9944
10029
|
}).loose()
|
|
9945
10030
|
}).loose();
|
|
9946
10031
|
zh.extend({
|
|
9947
10032
|
tools: se(Zh)
|
|
9948
10033
|
});
|
|
9949
|
-
var Dh =
|
|
10034
|
+
var Dh = N({
|
|
9950
10035
|
type: z("text"),
|
|
9951
|
-
text:
|
|
9952
|
-
}).loose(), Uh =
|
|
10036
|
+
text: x()
|
|
10037
|
+
}).loose(), Uh = N({
|
|
9953
10038
|
type: z("image"),
|
|
9954
|
-
data:
|
|
9955
|
-
mimeType:
|
|
9956
|
-
}).loose(), Js =
|
|
10039
|
+
data: Eo(),
|
|
10040
|
+
mimeType: x()
|
|
10041
|
+
}).loose(), Js = N({
|
|
9957
10042
|
/**
|
|
9958
10043
|
* The URI of this resource.
|
|
9959
10044
|
*/
|
|
9960
|
-
uri:
|
|
10045
|
+
uri: x(),
|
|
9961
10046
|
/**
|
|
9962
10047
|
* The MIME type of this resource, if known.
|
|
9963
10048
|
*/
|
|
9964
|
-
mimeType: B(
|
|
10049
|
+
mimeType: B(x())
|
|
9965
10050
|
}).loose(), jh = Js.extend({
|
|
9966
|
-
text:
|
|
10051
|
+
text: x()
|
|
9967
10052
|
}), Lh = Js.extend({
|
|
9968
|
-
blob:
|
|
9969
|
-
}), Fh =
|
|
10053
|
+
blob: Eo()
|
|
10054
|
+
}), Fh = N({
|
|
9970
10055
|
type: z("resource"),
|
|
9971
10056
|
resource: q([jh, Lh])
|
|
9972
10057
|
}).loose();
|
|
@@ -9974,32 +10059,32 @@ yt.extend({
|
|
|
9974
10059
|
content: se(
|
|
9975
10060
|
q([Dh, Uh, Fh])
|
|
9976
10061
|
),
|
|
9977
|
-
isError:
|
|
10062
|
+
isError: xe().default(!1).optional()
|
|
9978
10063
|
}).or(
|
|
9979
10064
|
yt.extend({
|
|
9980
10065
|
toolResult: Se()
|
|
9981
10066
|
})
|
|
9982
10067
|
);
|
|
9983
|
-
var Yt = "2.0", Vh =
|
|
10068
|
+
var Yt = "2.0", Vh = N({
|
|
9984
10069
|
jsonrpc: z(Yt),
|
|
9985
|
-
id: q([
|
|
9986
|
-
}).merge($h).strict(), Bh =
|
|
10070
|
+
id: q([x(), Te().int()])
|
|
10071
|
+
}).merge($h).strict(), Bh = N({
|
|
9987
10072
|
jsonrpc: z(Yt),
|
|
9988
|
-
id: q([
|
|
10073
|
+
id: q([x(), Te().int()]),
|
|
9989
10074
|
result: yt
|
|
9990
|
-
}).strict(), Gh =
|
|
10075
|
+
}).strict(), Gh = N({
|
|
9991
10076
|
jsonrpc: z(Yt),
|
|
9992
|
-
id: q([
|
|
9993
|
-
error:
|
|
10077
|
+
id: q([x(), Te().int()]),
|
|
10078
|
+
error: N({
|
|
9994
10079
|
code: Te().int(),
|
|
9995
|
-
message:
|
|
10080
|
+
message: x(),
|
|
9996
10081
|
data: B(Se())
|
|
9997
10082
|
})
|
|
9998
|
-
}).strict(), qh =
|
|
10083
|
+
}).strict(), qh = N({
|
|
9999
10084
|
jsonrpc: z(Yt)
|
|
10000
10085
|
}).merge(
|
|
10001
|
-
|
|
10002
|
-
method:
|
|
10086
|
+
N({
|
|
10087
|
+
method: x(),
|
|
10003
10088
|
params: B(Qr)
|
|
10004
10089
|
})
|
|
10005
10090
|
).strict();
|
|
@@ -10033,7 +10118,7 @@ class Jh {
|
|
|
10033
10118
|
]
|
|
10034
10119
|
}
|
|
10035
10120
|
] : n;
|
|
10036
|
-
|
|
10121
|
+
xh({
|
|
10037
10122
|
model: i,
|
|
10038
10123
|
system: ci(o),
|
|
10039
10124
|
messages: m,
|
|
@@ -10189,11 +10274,11 @@ class ng {
|
|
|
10189
10274
|
_registerDefaultPageTypes() {
|
|
10190
10275
|
li("page", {
|
|
10191
10276
|
name: "Static Page",
|
|
10192
|
-
icon: '<svg stroke="currentColor" fill="currentColor"
|
|
10277
|
+
icon: '<svg stroke="currentColor" fill="currentColor" strokeWidth="0" viewBox="0 0 24 24" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M5 8V20H19V8H5ZM5 6H19V4H5V6ZM20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM7 10H11V14H7V10ZM7 16H17V18H7V16ZM13 11H17V13H13V11Z"></path></svg>'
|
|
10193
10278
|
}), di("global", {
|
|
10194
10279
|
name: "Global Block",
|
|
10195
10280
|
helpText: "A global block can be reused in multiple pages.",
|
|
10196
|
-
icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
10281
|
+
icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-hash-icon lucide-hash"><line x1="4" x2="20" y1="9" y2="9"/><line x1="4" x2="20" y1="15" y2="15"/><line x1="10" x2="8" y1="3" y2="21"/><line x1="16" x2="14" y1="3" y2="21"/></svg>'
|
|
10197
10282
|
});
|
|
10198
10283
|
}
|
|
10199
10284
|
setFallbackLang(t) {
|
|
@@ -10253,7 +10338,7 @@ class ng {
|
|
|
10253
10338
|
lang: t.data.lang,
|
|
10254
10339
|
draft: !0,
|
|
10255
10340
|
inBuilder: !0
|
|
10256
|
-
}), g =
|
|
10341
|
+
}), g = Ae(t.data.pageType);
|
|
10257
10342
|
return g ? {
|
|
10258
10343
|
...g.dataProvider ? await g.dataProvider({
|
|
10259
10344
|
lang: t.data.lang,
|
|
@@ -10274,17 +10359,17 @@ class ng {
|
|
|
10274
10359
|
dynamicSlug: l.dynamicSlug ?? "",
|
|
10275
10360
|
hasSlug: l.hasSlug ?? !0,
|
|
10276
10361
|
name: typeof l.name == "function" ? await l.name() : l.name,
|
|
10277
|
-
...
|
|
10278
|
-
...
|
|
10279
|
-
...
|
|
10362
|
+
...It(l.defaultTrackingInfo) ? { trackingDefault: l.defaultTrackingInfo() } : {},
|
|
10363
|
+
...It(l.defaultSeo) ? { defaultSeo: l.defaultSeo() } : {},
|
|
10364
|
+
...It(l.defaultJSONLD) ? { defaultJSONLD: l.defaultJSONLD() } : {}
|
|
10280
10365
|
}))
|
|
10281
10366
|
);
|
|
10282
10367
|
if (t.action === "SEARCH_PAGE_TYPE_ITEMS") {
|
|
10283
|
-
const l =
|
|
10368
|
+
const l = Ae(t.data.pageType);
|
|
10284
10369
|
return l ? l.search ? await l.search(t.data.query) : this.backend.handleAction(t, r) : { error: "Page type not found" };
|
|
10285
10370
|
}
|
|
10286
10371
|
if (t.action === "GET_DYNAMIC_PAGES") {
|
|
10287
|
-
const l =
|
|
10372
|
+
const l = Ae(t.data.pageType);
|
|
10288
10373
|
return l ? l.getDynamicPages ? await l.getDynamicPages(t.data) : [] : { error: "Page type not found" };
|
|
10289
10374
|
}
|
|
10290
10375
|
if (t.action === "GET_COLLECTIONS")
|
|
@@ -10302,7 +10387,7 @@ class ng {
|
|
|
10302
10387
|
})) ?? [] : [];
|
|
10303
10388
|
} else {
|
|
10304
10389
|
const y = si(g);
|
|
10305
|
-
return !y || !
|
|
10390
|
+
return !y || !It(y.dataProvider) ? {} : await y.dataProvider({
|
|
10306
10391
|
block: l,
|
|
10307
10392
|
pageProps: t.data.pageProps,
|
|
10308
10393
|
lang: t.data.lang,
|
|
@@ -10319,7 +10404,7 @@ class ng {
|
|
|
10319
10404
|
if (!["CREATE_PAGE", "UPDATE_PAGE", "DELETE_PAGE"].includes(t)) return;
|
|
10320
10405
|
const n = Rt(r, "page");
|
|
10321
10406
|
if (!n) return;
|
|
10322
|
-
const a =
|
|
10407
|
+
const a = Ae(n.pageType);
|
|
10323
10408
|
if (a)
|
|
10324
10409
|
switch (t) {
|
|
10325
10410
|
case "CREATE_PAGE":
|
|
@@ -10338,11 +10423,11 @@ class ng {
|
|
|
10338
10423
|
async resolvePageLink(t, r) {
|
|
10339
10424
|
if (!oi(t, "pageType:"))
|
|
10340
10425
|
return t;
|
|
10341
|
-
const n = t.split(":")[1], a = t.split(":")[2], o =
|
|
10426
|
+
const n = t.split(":")[1], a = t.split(":")[2], o = Ae(n);
|
|
10342
10427
|
return o ? await this.resolveLink(o.key, a, r) : t;
|
|
10343
10428
|
}
|
|
10344
10429
|
async resolveLink(t, r, n) {
|
|
10345
|
-
const a =
|
|
10430
|
+
const a = Ae(t);
|
|
10346
10431
|
if (!a)
|
|
10347
10432
|
return "/not-found";
|
|
10348
10433
|
const o = this.isDraftMode();
|
|
@@ -10401,7 +10486,7 @@ class ng {
|
|
|
10401
10486
|
lang: a
|
|
10402
10487
|
}) {
|
|
10403
10488
|
var b;
|
|
10404
|
-
const o = this.isDraftMode(), s =
|
|
10489
|
+
const o = this.isDraftMode(), s = Ae(r), i = t.filter(
|
|
10405
10490
|
(_) => _._type === "Repeater" && (_ == null ? void 0 : _.repeaterItems.includes("{{#"))
|
|
10406
10491
|
);
|
|
10407
10492
|
let u = {};
|
|
@@ -10699,7 +10784,7 @@ export {
|
|
|
10699
10784
|
ci as getAskAiSystemPrompt,
|
|
10700
10785
|
yn as getChaiCollection,
|
|
10701
10786
|
pi as getChaiCollections,
|
|
10702
|
-
|
|
10787
|
+
Ae as getChaiPageType,
|
|
10703
10788
|
vn as getChaiPageTypes,
|
|
10704
10789
|
tg as registerChaiCollection,
|
|
10705
10790
|
eg as registerChaiGlobalDataProvider,
|