cf 1.0.0-beta.11 → 1.0.0-beta.13
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/bin/cf +1 -1
- package/dist/_meta/commands.json +3119 -2067
- package/dist/_meta/hand-written-commands.json +14 -1
- package/dist/_meta/schemas.json +1856 -1132
- package/dist/abuse-reports-BjU1s8cf.mjs +24 -0
- package/dist/{access-DuHs0Mii.mjs → access-C_G2MZnA.mjs} +1 -1
- package/dist/account-tags-CaXDDeZ4.mjs +15 -0
- package/dist/accounts-BALwxDQY.mjs +131 -0
- package/dist/{acm-BgSr3Ig4.mjs → acm-CP9EaXQN.mjs} +7 -7
- package/dist/addressing-DRlaxqrI.mjs +93 -0
- package/dist/agent-context-DFEgYjEQ.mjs +2 -0
- package/dist/agent-memory-vGhlfZBx.mjs +34 -0
- package/dist/ai-CJtbWfB9.mjs +31 -0
- package/dist/{ai-audit-Bn_BfMFS.mjs → ai-audit-C0BJNqZZ.mjs} +3 -3
- package/dist/ai-gateway-BQtv3U3x.mjs +80 -0
- package/dist/ai-search-DGU1Y5By.mjs +79 -0
- package/dist/ai-security-CFTaYk_X.mjs +10 -0
- package/dist/alerting-1hun27JC.mjs +56 -0
- package/dist/analytics-DXUSjvzT.mjs +17 -0
- package/dist/analytics_engine-CQsnL09C.mjs +4 -0
- package/dist/ansi-styles-kSC6bEIq.mjs +2 -0
- package/dist/{api-security-gB1FHrHq.mjs → api-security-BXhrfR6-.mjs} +57 -57
- package/dist/argo-LPUCTnee.mjs +14 -0
- package/dist/artifacts-Dt6easua.mjs +43 -0
- package/dist/{audit-logs-CpPUjMUP.mjs → audit-logs-CVznAM2Z.mjs} +2 -2
- package/dist/auth-CGLsxbc6.mjs +2 -0
- package/dist/auth-CrmVwfpJ.mjs +2 -0
- package/dist/{auth-7Fk7PVIC.mjs → auth-eQr-kQCH.mjs} +1 -1
- package/dist/{auth-token-DeG33BMQ.mjs → auth-token-pNQrX_9O.mjs} +1 -1
- package/dist/autoconfig-sD7Frryg.mjs +532 -0
- package/dist/{banner-Xk4xBN8U.mjs → banner-D03JEqRs.mjs} +1 -1
- package/dist/basin-catalog-ZQICw-zF.mjs +46 -0
- package/dist/billing-Dy1-dV_B.mjs +23 -0
- package/dist/bot-management-DTgPwL7O.mjs +9 -0
- package/dist/botnet-feed-xb98Cj3Y.mjs +11 -0
- package/dist/brand-protection-Ck3okE2k.mjs +27 -0
- package/dist/browser-run-DJGJSzFX.mjs +42 -0
- package/dist/build-B1L6xrgC.mjs +2 -0
- package/dist/build-HmSXqjGn.mjs +2 -0
- package/dist/builds-CYxcZtkG.mjs +71 -0
- package/dist/cache-D9tSfovH.mjs +45 -0
- package/dist/{certificate-authorities-NUQzCDK8.mjs → certificate-authorities-CpiveTFC.mjs} +3 -3
- package/dist/cf-BxsXrVeh.mjs +18 -0
- package/dist/chunk-DSGVRFIS-C1_SEtRK.mjs +2 -0
- package/dist/chunk-NDZDTP46-Bjx_wtJe.mjs +361 -0
- package/dist/chunk-TAK63GWY-DdMktrgc.mjs +319 -0
- package/dist/chunk-U6NEESU5-DqqRCaWH.mjs +2 -0
- package/dist/chunk-WMOON6TZ-C0dmPHpM.mjs +2 -0
- package/dist/{cli-aChy8ou_.mjs → cli-DeJc9U8z.mjs} +1 -1
- package/dist/cli-exit-CstFZ1eJ.mjs +2 -0
- package/dist/{client-certificates-qgLpBn8t.mjs → client-certificates-CF6YZyvP.mjs} +6 -6
- package/dist/{client-side-security-DZO6Xw14.mjs → client-side-security-BLoe9kS5.mjs} +14 -14
- package/dist/{cloud-connector-C7vGDCzX.mjs → cloud-connector-DXRUHsjt.mjs} +3 -3
- package/dist/cloudflared--1Ws1RJy.mjs +2 -0
- package/dist/cloudforce-one-CBLxXi6v.mjs +447 -0
- package/dist/{command-07vhr56i.mjs → command-83uVfXh9.mjs} +1 -1
- package/dist/{command-Cdx___59.mjs → command-BDe67N_n.mjs} +1 -1
- package/dist/command-BlIb6RR2.mjs +2 -0
- package/dist/{command-dAYWrB5y.mjs → command-Bpzp8Mz2.mjs} +1 -1
- package/dist/{command-eM48o0J6.mjs → command-BvfKhMl7.mjs} +1 -1
- package/dist/command-CG6RvZs0.mjs +2 -0
- package/dist/{command-D0MKPucK.mjs → command-CcuLC6CJ.mjs} +1 -1
- package/dist/{command-Ds5OVat3.mjs → command-Cu7dcaHT.mjs} +1 -1
- package/dist/{command-BsmF3J_l.mjs → command-D3fyhdy-.mjs} +1 -1
- package/dist/{command-Dv6YavZa.mjs → command-DUhX8Dcr.mjs} +1 -1
- package/dist/{command-maDJWJgu.mjs → command-Dh7RmjFu.mjs} +1 -1
- package/dist/{command-C2pNxAeL.mjs → command-DwXiDOeH.mjs} +1 -1
- package/dist/{command-CrtDkZNs.mjs → command-UiHLJ8Ji.mjs} +1 -1
- package/dist/command-_rqD0hXF.mjs +2 -0
- package/dist/{command-B6TpINoN.mjs → command-oNVwyjGB.mjs} +1 -1
- package/dist/{completions-D0280hul.mjs → completions-D06AO7A8.mjs} +12 -12
- package/dist/connector-interrupts-DelTmNyw.mjs +6 -0
- package/dist/connector-telemetry-events-BwxR3G8d.mjs +6 -0
- package/dist/connector-telemetry-snapshots-Bqq-hrpJ.mjs +6 -0
- package/dist/connectors-D-m3rEpk.mjs +15 -0
- package/dist/containers-CVNfEjJs.mjs +78 -0
- package/dist/containers-DeoZyeQe.mjs +375 -0
- package/dist/{content-scan-BCtWBCqd.mjs → content-scan-W0BNzbQp.mjs} +7 -7
- package/dist/{context-CquYYyS3.mjs → context-q7UaYK69.mjs} +2 -2
- package/dist/{cps-C8BbnbuD.mjs → cps-BZ6hqRb5.mjs} +3 -3
- package/dist/{csamScanner-CsJ9H2fA.mjs → csamScanner-Bo1t3CLh.mjs} +3 -3
- package/dist/ct-alerting-E03faC7p.mjs +5 -0
- package/dist/{custom-certificates-CA8HqolM.mjs → custom-certificates-CUySSPzi.mjs} +7 -7
- package/dist/{custom-csrs-D0P2vWJE.mjs → custom-csrs-gNpWkJPQ.mjs} +5 -5
- package/dist/{custom-hostnames-CzYMChbh.mjs → custom-hostnames-abGBAbx7.mjs} +12 -12
- package/dist/{custom-nameservers-Cet3oF56.mjs → custom-nameservers-BgNXol1P.mjs} +5 -5
- package/dist/{custom-pages-DUkHIaTP.mjs → custom-pages-DMKX3aoD.mjs} +10 -10
- package/dist/d1-CE08YqYk.mjs +93 -0
- package/dist/{dcv-delegation-BkdRVEAH.mjs → dcv-delegation-B5YUEWu0.mjs} +2 -2
- package/dist/delegate.mjs +1 -1
- package/dist/deploy-CWNm1-5v.mjs +2 -0
- package/dist/deploy-context-Dr6bxNcB.mjs +56 -0
- package/dist/deploy-input-Cc0_2QlW.mjs +2 -0
- package/dist/{dev-BHkVwAea.mjs → dev-ZA8itQE7.mjs} +2 -2
- package/dist/diagnostics-UMbG6m4n.mjs +15 -0
- package/dist/dialog-D4Y9ocuF.mjs +2 -0
- package/dist/discover-DIDEGKo3.mjs +2 -0
- package/dist/discover-P20XeGBF.mjs +2 -0
- package/dist/dist-BHEmAAHr.mjs +487 -0
- package/dist/dist-uRuGmkMB.mjs +60 -0
- package/dist/dls-DIl16mLp.mjs +17 -0
- package/dist/{dns-BLNa0GrP.mjs → dns-QUpgljRG.mjs} +63 -63
- package/dist/{dns-firewall-ChCvC5rT.mjs → dns-firewall-BZwJXHLj.mjs} +9 -9
- package/dist/dot-prop-IITUZ2XW-BnPfnQkb.mjs +2 -0
- package/dist/dotenv-DpXaxfho.mjs +4 -0
- package/dist/dry-run-DRj2_uV3.mjs +2 -0
- package/dist/durable-objects-BCj4ykpU.mjs +6 -0
- package/dist/{email-auth-C28s03aI.mjs → email-auth-DlHIYhCk.mjs} +3 -3
- package/dist/{email-routing-Ci-xjXIN.mjs → email-routing-UKVS4DYy.mjs} +22 -22
- package/dist/email-security-CZjfRIg0.mjs +158 -0
- package/dist/{email-sending-kTVAlVKO.mjs → email-sending-Dquc880C.mjs} +22 -22
- package/dist/error-sanitization-DE_zSrXw.mjs +2 -0
- package/dist/error-sanitization-DOCQ9Ykh.mjs +2 -0
- package/dist/fieldExtractors-BbwDRquU.mjs +9 -0
- package/dist/{firewall-BND3qSY2.mjs → firewall--mTfDnCJ.mjs} +17 -17
- package/dist/flagship-cfoSwwM9.mjs +28 -0
- package/dist/{fraud-DgyYv_CC.mjs → fraud-Dcsq3EYK.mjs} +3 -3
- package/dist/{generate-VxmGG8BF.mjs → generate-CeeWW3eX.mjs} +1 -1
- package/dist/generate-D80-1GnZ.mjs +2 -0
- package/dist/{google-tag-gateway-v3p7murv.mjs → google-tag-gateway-DPKSkZQi.mjs} +3 -3
- package/dist/gt-3bcLGJ7V.mjs +3 -0
- package/dist/{healthchecks-CByb4qYA.mjs → healthchecks-D78hIIBC.mjs} +10 -10
- package/dist/{hostnames-3CqeMF5g.mjs → hostnames-sF999-6H.mjs} +5 -5
- package/dist/{hyperdrive-CmyYTE-K.mjs → hyperdrive-qWACKfA4.mjs} +10 -10
- package/dist/iam-Bvg_PayW.mjs +52 -0
- package/dist/images-DI_lEZ4L.mjs +71 -0
- package/dist/index.mjs +1 -1
- package/dist/init-1w_mcgk3.mjs +43 -0
- package/dist/intel-BxElBUMP.mjs +76 -0
- package/dist/interactive-BW9T1D1q.mjs +48 -0
- package/dist/interactive-DGUWZ2Gk.mjs +2 -0
- package/dist/{ips-WWvPwSBc.mjs → ips-DWoaKxi7.mjs} +2 -2
- package/dist/k2-tFjaftl-.mjs +11 -0
- package/dist/{keyless-certificates-DqILy3t9.mjs → keyless-certificates-BrvxHU4J.mjs} +6 -6
- package/dist/keys-DcwTYKRf.mjs +4 -0
- package/dist/kv-htXS-7uP.mjs +15 -0
- package/dist/{lazy-command--5YpWUVY.mjs → lazy-command-BDiIwpss.mjs} +1 -1
- package/dist/{leaked-credential-checks-C0U1oYM5.mjs → leaked-credential-checks-bvGrLOmQ.mjs} +8 -8
- package/dist/lifecycle-oud60haK.mjs +2 -0
- package/dist/{load-balancers-BJKI9lm7.mjs → load-balancers-BNTUt4yG.mjs} +40 -40
- package/dist/local-DlDumOSC.mjs +2 -0
- package/dist/{local-rYpzEQb-.mjs → local-DlT72Xpn.mjs} +1 -1
- package/dist/{local-runtime-DZTTIe6x.mjs → local-runtime-CokO6qaX.mjs} +1 -1
- package/dist/{login-bnylLTit.mjs → login-BGF_I_LT.mjs} +1 -1
- package/dist/login-Ccw-mYwT.mjs +2 -0
- package/dist/logo-matches-tE8LTKgg.mjs +6 -0
- package/dist/logos-Bj845Mcw.mjs +7 -0
- package/dist/logpush-Cs8JdvKi.mjs +46 -0
- package/dist/{logs-c3b3USyS.mjs → logs-C92XZvNu.mjs} +11 -11
- package/dist/magic-cloud-networking-hNp5MMw-.mjs +71 -0
- package/dist/magic-network-monitoring-68GuWAnv.mjs +36 -0
- package/dist/magic-transit-DNd7gu4j.mjs +383 -0
- package/dist/managed-defense-B_wCAuFD.mjs +18 -0
- package/dist/{managed-transforms-DcYAvqTe.mjs → managed-transforms-DZdxHPOh.mjs} +4 -4
- package/dist/{matches-hnU16rSJ.mjs → matches-B65CkflD.mjs} +3 -3
- package/dist/mcp-DrJW5ayK.mjs +32 -0
- package/dist/mesh-DfVzYTn1.mjs +26 -0
- package/dist/metadata-Df5kCWJv.mjs +2 -0
- package/dist/{migrate-BNvUWrjy.mjs → migrate-CZNq63Uj.mjs} +1 -1
- package/dist/{monetization-Dsqj9DCA.mjs → monetization-BGaI8CMO.mjs} +9 -9
- package/dist/mtls-certificates-BsU2emDD.mjs +13 -0
- package/dist/network-BEMD8P0U.mjs +50 -0
- package/dist/network-interconnects-DMu_fcbo.mjs +68 -0
- package/dist/o11y-C1a4gDGF.mjs +93 -0
- package/dist/{oauth-CeZ3d_dB.mjs → oauth-Bj5Ne1o8.mjs} +1 -1
- package/dist/oauth-clients-p4Etdqy_.mjs +16 -0
- package/dist/{oauth-w0fWmrwU.mjs → oauth-mspHHU5U.mjs} +1 -1
- package/dist/{oauth-scopes-CxpRD6d7.mjs → oauth-scopes-B2IabFza.mjs} +2 -2
- package/dist/open-PCXX3ZDZ-D55O2jpQ.mjs +4 -0
- package/dist/{organization-DNieJ1xJ.mjs → organization-CdXt7AVZ.mjs} +16 -16
- package/dist/{organizations-BIXPmTy5.mjs → organizations-5S6xEp7T.mjs} +2 -2
- package/dist/{origin-ca-certificates-dVJvSIH8.mjs → origin-ca-certificates-_VJAoK1D.mjs} +5 -5
- package/dist/{origin-post-quantum-encryption-CO6tDW1t.mjs → origin-post-quantum-encryption-GcldDsT2.mjs} +3 -3
- package/dist/{origin-tls-client-auth-DeTY8aN2.mjs → origin-tls-client-auth-DZHld9fA.mjs} +14 -14
- package/dist/output-BOe-3AQG.mjs +2 -0
- package/dist/{page-rules-DA552Ra4.mjs → page-rules-o1tAMMsD.mjs} +7 -7
- package/dist/pages-CmiOhjSl.mjs +54 -0
- package/dist/pay-per-crawl-BsnOxGYU.mjs +38 -0
- package/dist/pay-per-use-BXWMCSyE.mjs +33 -0
- package/dist/pipelines-DWLQC0F6.mjs +44 -0
- package/dist/precursor-B6DjBib6.mjs +4 -0
- package/dist/previews-dUKEBGSM.mjs +4 -0
- package/dist/process-2wmDCy17.mjs +2 -0
- package/dist/{progress-TLUEIYE6.mjs → progress-BtkTVcHI.mjs} +1 -1
- package/dist/prompt-RlgRrmbm.mjs +3 -0
- package/dist/queries-yLwoJRHV.mjs +9 -0
- package/dist/queues-CnJRaE1o.mjs +57 -0
- package/dist/r2-CuC6-zQX.mjs +128 -0
- package/dist/{radar-Bez6k9Dw.mjs → radar-DrQLcbkq.mjs} +150 -150
- package/dist/{raw-fetch-DNxNCoeP.mjs → raw-fetch-B4NvWuZD.mjs} +1 -1
- package/dist/realtime-CjsnzHxD.mjs +172 -0
- package/dist/registrar-BgOsxTnX.mjs +43 -0
- package/dist/registrar-sandbox-3ikBD9fB.mjs +56 -0
- package/dist/{registry-CsSLAAOE.mjs → registry-CHowrQsZ.mjs} +1 -1
- package/dist/reporting-hE127s5r.mjs +14 -0
- package/dist/request-headers-DiJeDAn1.mjs +2 -0
- package/dist/request-tracers-BCwLxmPN.mjs +4 -0
- package/dist/resolve-CaTBV-c6.mjs +2 -0
- package/dist/resolve-DCGSzUDQ.mjs +2 -0
- package/dist/resource-sharing-2qvWUuMa.mjs +40 -0
- package/dist/resource-tagging-Dwx7iL3v.mjs +4 -0
- package/dist/rules-DxVQ6jIg.mjs +18 -0
- package/dist/rulesets-Cdh8YjI9.mjs +37 -0
- package/dist/rum-a4CMq4Qu.mjs +30 -0
- package/dist/run-BvHwWWUX.mjs +2 -0
- package/dist/run-CkbrPJPx.mjs +2 -0
- package/dist/schema-elj12WOx.mjs +2 -0
- package/dist/schema-flags-BzoBGPWk.mjs +5 -0
- package/dist/scim-B8XlXl8v.mjs +18 -0
- package/dist/secrets-store-Cqhedh_i.mjs +24 -0
- package/dist/{security-insights-DVAqroY5.mjs → security-insights-le2-DteL.mjs} +20 -20
- package/dist/{security-txt-rfrrdiZV.mjs → security-txt-cCArWXur.mjs} +4 -4
- package/dist/{session-B6mFkaVZ.mjs → session-C1BhT1ZJ.mjs} +1 -1
- package/dist/shared-BPjcpXuA.mjs +2 -0
- package/dist/{smart-shield-_HA814Im.mjs → smart-shield-Csyh8hwB.mjs} +11 -11
- package/dist/{snippets-mRelEw0p.mjs → snippets-DUWx25q6.mjs} +8 -8
- package/dist/source-mXUcrTVw.mjs +6 -0
- package/dist/spawn-IysxuTNW.mjs +10 -0
- package/dist/{spectrum-BwtOiaDw.mjs → spectrum-Da3UYSOR.mjs} +11 -11
- package/dist/{speed-DmqsZtiJ.mjs → speed-NxlMnB2e.mjs} +11 -11
- package/dist/sql-CNdHAlQ8.mjs +4 -0
- package/dist/src-JfLDUxFr.mjs +125 -0
- package/dist/{ssl-DCvfveJB.mjs → ssl-BtaX2WEJ.mjs} +16 -16
- package/dist/startup-profile-B2l0ChVu.mjs +2 -0
- package/dist/startup-profile-CdJWgNjd.mjs +29 -0
- package/dist/{state-BPwdiNO_.mjs → state-BDSvdSdP.mjs} +1 -1
- package/dist/state-JB4_BU1o.mjs +2 -0
- package/dist/stream-C1Ijjzn4.mjs +102 -0
- package/dist/submit-MdkuU_Pt.mjs +4 -0
- package/dist/{tags-Djw0e-4j.mjs → tags-CA1xMM96.mjs} +2 -2
- package/dist/telemetry-BsYO3nxG.mjs +2 -0
- package/dist/{telemetry-DrFNujdx.mjs → telemetry-Cm39QJ-M.mjs} +1 -1
- package/dist/{tenant-tc1wb_ym.mjs → tenant-BB6Oszcl.mjs} +5 -5
- package/dist/{tenant-custom-nameservers-XCbXryBZ.mjs → tenant-custom-nameservers-BsbgYAEo.mjs} +4 -4
- package/dist/{theme-BIWQFmZ0.mjs → theme-CQ_TYifs.mjs} +2 -2
- package/dist/{tools-CB4NleeJ.mjs → tools-CSc5DmFi.mjs} +1 -1
- package/dist/tunnels-CRFtyHWz.mjs +29 -0
- package/dist/turnstile-DBXWo_Xe.mjs +33 -0
- package/dist/{ui-D1hhIDIs.mjs → ui-YmjF66Ct.mjs} +1 -1
- package/dist/update-check-C2oVEbXx.mjs +2 -0
- package/dist/update-check-CMXSdres.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/url-info-t-XAs0Mk.mjs +4 -0
- package/dist/{url-normalization-Dbypc9wz.mjs → url-normalization-Cs4F8e0a.mjs} +4 -4
- package/dist/url-scanner-CBIoDbTx.mjs +16 -0
- package/dist/{user-3uwLMH78.mjs → user-CevdOMoa.mjs} +52 -52
- package/dist/values-CjNlkbIh.mjs +4 -0
- package/dist/vectorize-9d9tPmg5.mjs +32 -0
- package/dist/version-BdVUXLnK.mjs +2 -0
- package/dist/waiting-rooms--5WmrWb3.mjs +53 -0
- package/dist/{web-assets-BfEprX1S.mjs → web-assets-BHot_MU8.mjs} +30 -30
- package/dist/{web3-DNbp5sZw.mjs → web3-CYfWAF6b.mjs} +13 -13
- package/dist/workers-S17M0n3h.mjs +40 -0
- package/dist/workers-builds-Dw7ho3So.mjs +14 -0
- package/dist/workers-for-platforms-A3yjyLh3.mjs +40 -0
- package/dist/{workers-vpc-LVfayM2-.mjs → workers-vpc-BZ2xXtC3.mjs} +7 -7
- package/dist/workflows-BgGrVpSR.mjs +43 -0
- package/dist/{wrangler-migration-B0mKHqGd.mjs → wrangler-migration-C6FKHER1.mjs} +1 -1
- package/dist/{zaraz-BY60ZUQ4.mjs → zaraz-BsD2dMI3.mjs} +11 -11
- package/dist/zero-trust-CA3iGQbG.mjs +837 -0
- package/dist/{zone-BVDW2UGd.mjs → zone-D2M4EZD0.mjs} +2 -2
- package/dist/{zones-CcZL0YQp.mjs → zones-BoOC_JzC.mjs} +43 -43
- package/package.json +33 -35
- package/dist/abuse-reports-DX5xgeka.mjs +0 -24
- package/dist/account-tags-CiKwgOWd.mjs +0 -15
- package/dist/accounts-DfXSHrkF.mjs +0 -138
- package/dist/addressing-B70NFnrX.mjs +0 -93
- package/dist/agent-context-GRiQ4zRU.mjs +0 -2
- package/dist/agent-memory-DJRquHeq.mjs +0 -34
- package/dist/ai-CP2oIS-I.mjs +0 -29
- package/dist/ai-gateway-CrrEtzUP.mjs +0 -82
- package/dist/ai-search-C4YWVTCa.mjs +0 -79
- package/dist/ai-security-Bt_fG65f.mjs +0 -10
- package/dist/alerting-CRr88fVR.mjs +0 -56
- package/dist/analytics-XqS9OP5B.mjs +0 -20
- package/dist/analytics_engine-CzmYem4f.mjs +0 -4
- package/dist/ansi-styles-eKEZXVwN.mjs +0 -2
- package/dist/argo-wFCAsYx7.mjs +0 -10
- package/dist/artifacts-qFjlNRqb.mjs +0 -43
- package/dist/auth-BmJ946bE.mjs +0 -2
- package/dist/auth-Br-t8vL_.mjs +0 -2
- package/dist/autoconfig-D-copdZG.mjs +0 -511
- package/dist/basin-catalog-CshcpsAH.mjs +0 -46
- package/dist/billing-B-xNxxiP.mjs +0 -23
- package/dist/bot-management-DhafeA2J.mjs +0 -9
- package/dist/botnet-feed-D6uCLE_D.mjs +0 -11
- package/dist/brand-protection-c3WiHbYn.mjs +0 -27
- package/dist/browser-run-D9_cwaSD.mjs +0 -46
- package/dist/build-9ihDp-Gy.mjs +0 -2
- package/dist/build-DrG6TqMw.mjs +0 -2
- package/dist/builds-Dl8if-2k.mjs +0 -71
- package/dist/cache-CIZokBjd.mjs +0 -45
- package/dist/cf-DfQfIu3q.mjs +0 -18
- package/dist/chunk-FT2NMTJB-BFqlGcem.mjs +0 -97
- package/dist/chunk-KKDV4JPS-B_t8sDTz.mjs +0 -2
- package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +0 -2
- package/dist/chunk-WMOON6TZ-B8xCqjB1.mjs +0 -2
- package/dist/cli-exit-Dqoo6Jgb.mjs +0 -2
- package/dist/cloudflared-CEfZhSQH.mjs +0 -2
- package/dist/cloudforce-one-CE7y5UkF.mjs +0 -447
- package/dist/command-BWC9CbE7.mjs +0 -2
- package/dist/command-C65Ed0o9.mjs +0 -2
- package/dist/command-DHdWKtqx.mjs +0 -2
- package/dist/connector-interrupts-CVjFhU-C.mjs +0 -6
- package/dist/connector-telemetry-events-Bu3LKP6T.mjs +0 -6
- package/dist/connector-telemetry-snapshots-BbDTIc06.mjs +0 -6
- package/dist/connectors-DGtx-rPI.mjs +0 -15
- package/dist/containers-CzNbBrYE.mjs +0 -239
- package/dist/containers-DEFrbNgO.mjs +0 -78
- package/dist/ct-alerting-CYsQZO2H.mjs +0 -5
- package/dist/d1-B2duXfH2.mjs +0 -41
- package/dist/deploy-BdWBEbLj.mjs +0 -2
- package/dist/deploy-input-LmLfj6kI.mjs +0 -2
- package/dist/diagnostics-9Wj5UWBL.mjs +0 -15
- package/dist/dialog-Dpi-UVbz.mjs +0 -2
- package/dist/discover-BYkHr5Ja.mjs +0 -2
- package/dist/discover-t6E9lpf3.mjs +0 -2
- package/dist/dist-Cpb7_h4N.mjs +0 -57
- package/dist/dist-D1iG7guo.mjs +0 -366
- package/dist/dist-zep5OXGt.mjs +0 -48
- package/dist/dls-Caya7FZc.mjs +0 -17
- package/dist/dot-prop-IITUZ2XW-BsZYdILY.mjs +0 -2
- package/dist/dotenv-CcQjGlV0.mjs +0 -4
- package/dist/dry-run-p9Q7nMZ5.mjs +0 -2
- package/dist/durable-objects-DuRbdp7N.mjs +0 -6
- package/dist/email-security-DPU6xvI9.mjs +0 -158
- package/dist/error-sanitization-BbEw--0B.mjs +0 -2
- package/dist/error-sanitization-p5rmb53x.mjs +0 -2
- package/dist/fieldExtractors-ceaXu4zD.mjs +0 -9
- package/dist/flagship-DfxbNzgx.mjs +0 -28
- package/dist/generate-9P8Q_RiO.mjs +0 -2
- package/dist/gt-KlYHH-UC.mjs +0 -2
- package/dist/iam-CV_M681j.mjs +0 -52
- package/dist/images-DaLPjskW.mjs +0 -71
- package/dist/init-CBKifk5L.mjs +0 -39
- package/dist/intel-MpftjuPB.mjs +0 -76
- package/dist/interactive-D80kbTap.mjs +0 -32
- package/dist/interactive-mJQ_IrGd.mjs +0 -2
- package/dist/k2-D0QYUFqT.mjs +0 -13
- package/dist/keys-DhX4AcqF.mjs +0 -4
- package/dist/kv-DLUfUL0_.mjs +0 -15
- package/dist/lifecycle-Cyc3fmyN.mjs +0 -2
- package/dist/local-DkYQiSQQ.mjs +0 -2
- package/dist/login-CnE2Ii_F.mjs +0 -2
- package/dist/logo-matches-DFZybI0C.mjs +0 -6
- package/dist/logos-Da2YtqSN.mjs +0 -7
- package/dist/logpush-Q7WIEHS1.mjs +0 -46
- package/dist/magic-cloud-networking-BoyDmFq3.mjs +0 -71
- package/dist/magic-network-monitoring-BkUbpMUp.mjs +0 -36
- package/dist/magic-transit-4-THD45G.mjs +0 -383
- package/dist/managed-defense-CTMqSp6z.mjs +0 -18
- package/dist/mcp-kZX4irfN.mjs +0 -32
- package/dist/mesh-Dxzvvso6.mjs +0 -26
- package/dist/metadata-C33s4rc-.mjs +0 -2
- package/dist/mtls-certificates-BSbMwIna.mjs +0 -13
- package/dist/network-interconnects-osO_vAPu.mjs +0 -73
- package/dist/network-mEnXTEiG.mjs +0 -50
- package/dist/oauth-clients-CWPHi-Yn.mjs +0 -16
- package/dist/observability-BxL2RqWZ.mjs +0 -80
- package/dist/open-PCXX3ZDZ-C7gpxSsl.mjs +0 -4
- package/dist/output-ClYel9WX.mjs +0 -2
- package/dist/pages-B0x7tidm.mjs +0 -54
- package/dist/pay-per-crawl-DoTg9VP7.mjs +0 -65
- package/dist/pay-per-use-yRO2QBfe.mjs +0 -6
- package/dist/pipelines-CQxrm9ao.mjs +0 -44
- package/dist/precursor-FiGYDRV9.mjs +0 -4
- package/dist/previews-BthBa50j.mjs +0 -4
- package/dist/prompt-Ck_1PCHm.mjs +0 -3
- package/dist/queries-C0RRdol7.mjs +0 -9
- package/dist/queues-sLgvjsRP.mjs +0 -57
- package/dist/r2-C2PllL6i.mjs +0 -125
- package/dist/realtime-D-HSXznX.mjs +0 -172
- package/dist/registrar-DwHrG9QR.mjs +0 -43
- package/dist/registrar-sandbox-jNukmzQP.mjs +0 -56
- package/dist/reporting-DolhAb10.mjs +0 -14
- package/dist/request-headers-Lhj314mk.mjs +0 -2
- package/dist/request-tracers-w72hKc33.mjs +0 -4
- package/dist/resolve-CGKqk7q8.mjs +0 -2
- package/dist/resolve-Djf2xgBx.mjs +0 -2
- package/dist/resource-sharing-DTrSkqI4.mjs +0 -40
- package/dist/resource-tagging-aURR4fIJ.mjs +0 -4
- package/dist/rules-C8a7cV-W.mjs +0 -18
- package/dist/rulesets-RJ6yBefy.mjs +0 -37
- package/dist/rum-Bk1dPW4p.mjs +0 -30
- package/dist/run-BJOAPmsz.mjs +0 -2
- package/dist/run-iFM5TxtQ.mjs +0 -2
- package/dist/schema-flags-PagOq-G2.mjs +0 -5
- package/dist/schema-v7mOxMdx.mjs +0 -2
- package/dist/scim-C0FmjkkV.mjs +0 -18
- package/dist/secrets-store-cG_5RMzK.mjs +0 -24
- package/dist/shared-BqsWoApw.mjs +0 -2
- package/dist/source-38bULAR8.mjs +0 -6
- package/dist/spawn-BzPhcLJI.mjs +0 -10
- package/dist/src--KDGqL5N.mjs +0 -109
- package/dist/startup-profile-BCe9k9sR.mjs +0 -17
- package/dist/startup-profile-WrwRyMwH.mjs +0 -2
- package/dist/state-a1tTOGjm.mjs +0 -2
- package/dist/stream-aroClJeD.mjs +0 -102
- package/dist/submit-BBKhoKT8.mjs +0 -4
- package/dist/telemetry-DoBQOGRk.mjs +0 -2
- package/dist/tunnels-C2FTswb6.mjs +0 -29
- package/dist/turnstile-BV4Mdd-j.mjs +0 -33
- package/dist/update-check-CFt6cMOi.mjs +0 -2
- package/dist/update-check-Dtj9fzNe.mjs +0 -2
- package/dist/url-info-CeegsDK7.mjs +0 -4
- package/dist/url-scanner-BFXMrpJF.mjs +0 -16
- package/dist/values-BTncDc3U.mjs +0 -4
- package/dist/vectorize-CtMAtx8r.mjs +0 -32
- package/dist/version-oN1bmOgM.mjs +0 -2
- package/dist/waiting-rooms-1xDvjF13.mjs +0 -53
- package/dist/workers-DK_JgS4Y.mjs +0 -38
- package/dist/workers-builds-CdhwmmsQ.mjs +0 -14
- package/dist/workers-for-platforms-CP6IqxrK.mjs +0 -42
- package/dist/workflows-CA5K8FFb.mjs +0 -43
- package/dist/zero-trust-CQNohO7_.mjs +0 -821
- /package/dist/{Page-DAgOEX17.mjs → Page-BShsqCXr.mjs} +0 -0
- /package/dist/{alerts-D3iKtzoN.mjs → alerts-BSON-vFh.mjs} +0 -0
- /package/dist/{args-CXgkQKK7.mjs → args-CfbYkeXd.mjs} +0 -0
- /package/dist/{autorag-pvRfDwne.mjs → autorag-kNrLiqDX.mjs} +0 -0
- /package/dist/{body-parser-NjzJZMOV.mjs → body-parser-DkHKPkJ7.mjs} +0 -0
- /package/dist/{brands-DP5Ndir1.mjs → brands-bBJgbbOH.mjs} +0 -0
- /package/dist/{browser-extension-Dee2Y1qn.mjs → browser-extension-C1_fcw7h.mjs} +0 -0
- /package/dist/{clear-qLKPlJqb.mjs → clear-BW9vLgI3.mjs} +0 -0
- /package/dist/{cli-types-_Kmwfpnp.mjs → cli-types-9oYmRTHJ.mjs} +0 -0
- /package/dist/{connector-telemetry-events-latest-_aCmWeZx.mjs → connector-telemetry-events-latest-BQdOvbWh.mjs} +0 -0
- /package/dist/{connector-telemetry-snapshots-latest-CffEplpV.mjs → connector-telemetry-snapshots-latest-CtdN_dGu.mjs} +0 -0
- /package/dist/{delegate-CCGgla7X.mjs → delegate-Tgfxa-MZ.mjs} +0 -0
- /package/dist/{domain-info-BQh9XapD.mjs → domain-info-BkcBcyfF.mjs} +0 -0
- /package/dist/{errors-cuuW88wR.mjs → errors-_sob7Ihu.mjs} +0 -0
- /package/dist/{health--10IShMi.mjs → health-CTaCeVyC.mjs} +0 -0
- /package/dist/{input-validation-0CeePPHp.mjs → input-validation-D7z60HJH.mjs} +0 -0
- /package/dist/{internal-BUs583vv.mjs → internal-BYS7hO8c.mjs} +0 -0
- /package/dist/{live-VCSxA0N9.mjs → live-BJE_YWE1.mjs} +0 -0
- /package/dist/{project-settings-Bf6rReo1.mjs → project-settings-nBMEx1f-.mjs} +0 -0
- /package/dist/{r2-data-catalog-Bg7zq1IB.mjs → r2-data-catalog-BRo-Rx2I.mjs} +0 -0
- /package/dist/{rate-limit-analytics-D3q0mGv2.mjs → rate-limit-analytics-BiRyU0Xd.mjs} +0 -0
- /package/dist/{rate-limits-BIxlBuMn.mjs → rate-limits-Cr2zpncO.mjs} +0 -0
- /package/dist/{ready-CAgelFmC.mjs → ready-B3pLxnjc.mjs} +0 -0
- /package/dist/{recent-submissions-B3TOjNmk.mjs → recent-submissions-JLOvuZq-.mjs} +0 -0
- /package/dist/{refute-BZNkFpBB.mjs → refute-Dp3VodMn.mjs} +0 -0
- /package/dist/{scan-logo-StecHiaf.mjs → scan-logo-3Zr6CDJB.mjs} +0 -0
- /package/dist/{scan-page-B4adr-vD.mjs → scan-page-CxeudOzj.mjs} +0 -0
- /package/dist/{search-Devngw4M.mjs → search-B_P5ZTQj.mjs} +0 -0
- /package/dist/{signed-url-ChR5eXXd.mjs → signed-url-D5RwvrQq.mjs} +0 -0
- /package/dist/{submission-info-BGb81HZN.mjs → submission-info-_t78q2OE.mjs} +0 -0
- /package/dist/{total-queries-_wa6KxEl.mjs → total-queries-CPrKEciQ.mjs} +0 -0
- /package/dist/{tracked-domains-BesKGqfI.mjs → tracked-domains-CTRItgFT.mjs} +0 -0
- /package/dist/{verify-CYM5GlPu.mjs → verify-5KcvRk-q.mjs} +0 -0
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{r as e}from"./chunk-U6NEESU5-DqqRCaWH.mjs";import{createRequire as t}from"node:module";import{existsSync as n,readFileSync as r,statSync as i}from"node:fs";import a,{dirname as o,isAbsolute as s,join as c,resolve as l}from"node:path";t(import.meta.url||(typeof __filename==`string`?__filename:`/`));function u(e){var t=[...arguments].slice(1),n=Array.from(typeof e==`string`?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,``);var r=n.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(r.length){var i=RegExp(`
|
|
3
|
+
[ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,`
|
|
4
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,``);var a=n[0];return t.forEach(function(e,t){var r=a.match(/(?:^|\n)( *)$/),i=r?r[1]:``,o=e;typeof e==`string`&&e.includes(`
|
|
5
|
+
`)&&(o=String(e).split(`
|
|
6
|
+
`).map(function(e,t){return t===0?e:``+i+e}).join(`
|
|
7
|
+
`)),a+=o+n[t+1]}),a}e(u,`dedent`);var d=u;t(import.meta.url||(typeof __filename==`string`?__filename:`/`));var f=class extends Error{static{e(this,`UserError`)}telemetryMessage;constructor(e,t){super(e,t),Object.setPrototypeOf(this,new.target.prototype),this.telemetryMessage=typeof t?.telemetryMessage==`string`?t.telemetryMessage:t?.telemetryMessage?e:void 0}};(class extends f{static{e(this,`DeprecationError`)}constructor(e,t){super(`Deprecation:
|
|
8
|
+
${e}`,t)}});var p=class extends f{static{e(this,`FatalError`)}code;constructor(e,t){super(e,t),this.code=t.code}};(class extends f{static{e(this,`CommandLineArgsError`)}});var m=class extends p{static{e(this,`JsonFriendlyFatalError`)}};(class extends Error{static{e(this,`MissingConfigError`)}telemetryMessage;constructor(e){super(`Missing config value for ${e}`),this.telemetryMessage=`Missing config value for ${e}`}});function h(e,t,n){return t?new m(JSON.stringify(e),n):new p(`${e}`,n)}e(h,`createFatalError`),t(import.meta.url||(typeof __filename==`string`?__filename:`/`));function g(e){let t=e?.type;return t===`durable-object`||t===`worker`||t===`workflow`}e(g,`hasKnownExportType`);function _(e){let t={"durable-object":{},worker:{},workflow:{}};if(e===void 0)return t;for(let[n,r]of Object.entries(e))g(r)&&(t[r.type][n]=r);return t}e(_,`partitionExports`);function v(e){let t=e.state??`created`;return t===`created`||t===`expecting-transfer`}e(v,`isLiveDurableObjectExport`);function y(e){return _(e)[`durable-object`]}e(y,`getDurableObjectExports`);function b(e){return Object.keys(y(e)).length>0}e(b,`hasDurableObjectExports`);function x(e){return e.scheduling_policy===`durable_object`}e(x,`isDurableObjectContainerApp`);function S(e){return Array.isArray(e)?e.filter(x):[]}e(S,`getDurableObjectContainerApps`);function C(e,t){return S(e).map(e=>{let n=T(e,t);if(typeof n!=`string`||n.length===0)throw new f(`The container "${e.name}" is not linked to a Durable Object. Either set "containers.class_name", or reference this container from a Durable Object's \`exports\` entry via its "container" field.`,{telemetryMessage:`durable object container class unresolved`});return{...e,class_name:n}})}e(C,`getResolvedDurableObjectContainerApps`);function w(e){let t=/* @__PURE__ */ new Map;for(let[n,r]of Object.entries(y(e)))`container`in r&&typeof r.container==`string`&&!t.has(r.container)&&t.set(r.container,n);return t}e(w,`getContainerNameToClassNameMap`);function T(e,t){if(e.class_name!==void 0)return e.class_name;if(e.name!==void 0)return w(t).get(e.name)}e(T,`resolveContainerClassName`);function ee(e,t){let n=/* @__PURE__ */ new Set;for(let r of e??[]){let e=T(r,t);e!==void 0&&n.add(e)}return n}e(ee,`getContainerDurableObjectClassNames`);function E(e,t){let n=/* @__PURE__ */ new Map;(e??[]).forEach(e=>{e.deleted_classes?.forEach(e=>{if(!n.delete(e))throw new f(`Cannot apply deleted_classes migration to non-existent class ${e}`,{telemetryMessage:`durable object deleted class migration missing class`})}),e.renamed_classes?.forEach(({from:e,to:t})=>{let r=n.get(e);if(r===void 0)throw new f(`Cannot apply renamed_classes migration to non-existent class ${e}`,{telemetryMessage:`durable object renamed class migration missing class`});n.delete(e),n.set(t,r)}),e.new_classes?.forEach(e=>{if(n.has(e))throw new f(`Cannot apply new_classes migration to existing class ${e}`,{telemetryMessage:`durable object new class migration existing class`});n.set(e,!1)}),e.new_sqlite_classes?.forEach(e=>{if(n.has(e))throw new f(`Cannot apply new_sqlite_classes migration to existing class ${e}`,{telemetryMessage:`durable object new sqlite class migration existing class`});n.set(e,!0)})});let r=y(t??{});for(let[e,t]of Object.entries(r))t.type===`durable-object`&&v(t)&&n.set(e,t.storage===`sqlite`);return n}e(E,`getDurableObjectClassNameToUseSQLiteMap`);function D(e,t=S(e.containers)){let n=E(e.migrations,e.exports);for(let r of C(t,e.exports)){let t=e.durable_objects.bindings.find(e=>e.class_name===r.class_name),i=n.get(r.class_name);if(i===void 0&&t===void 0)throw new f(`The container class_name ${r.class_name} does not match any durable object class_name defined in your Wrangler config file. Note that the durable object must be defined in the same script as the container.`,{telemetryMessage:`no DO defined that matches container class_name`});if(t?.script_name!==void 0)throw new f(`The container ${r.name} is referencing the durable object ${r.class_name}, which appears to be defined on the ${t.script_name} Worker instead (via the 'script_name' field). You cannot configure a container on a Durable Object that is defined in another Worker.`,{telemetryMessage:`container class_name refers to an external durable object`});if(i===!1)throw new f(`The container ${r.name} references Durable Object class ${r.class_name}, which uses the legacy KV storage backend. Durable Object-managed Containers require SQLite-backed Durable Objects.`,{telemetryMessage:`durable object container class uses legacy storage`})}}e(D,`validateDurableObjectContainerApplications`);function te(t,n=!1){let r=t.length,i=0,a=``,o=0,s=16,c=0,l=0,u=0,d=0,f=0;function p(e,n){let r=0,a=0;for(;r<e||!n;){let e=t.charCodeAt(i);if(e>=48&&e<=57)a=a*16+e-48;else if(e>=65&&e<=70)a=a*16+e-65+10;else if(e>=97&&e<=102)a=a*16+e-97+10;else break;i++,r++}return r<e&&(a=-1),a}e(p,`scanHexDigits`);function m(e){i=e,a=``,o=0,s=16,f=0}e(m,`setPosition`);function h(){let e=i;if(t.charCodeAt(i)===48)i++;else for(i++;i<t.length&&A(t.charCodeAt(i));)i++;if(i<t.length&&t.charCodeAt(i)===46){if(i++,i<t.length&&A(t.charCodeAt(i)))for(i++;i<t.length&&A(t.charCodeAt(i));)i++;else return f=3,t.substring(e,i)}let n=i;if(i<t.length&&(t.charCodeAt(i)===69||t.charCodeAt(i)===101)){if(i++,(i<t.length&&t.charCodeAt(i)===43||t.charCodeAt(i)===45)&&i++,i<t.length&&A(t.charCodeAt(i))){for(i++;i<t.length&&A(t.charCodeAt(i));)i++;n=i}else f=3}return t.substring(e,n)}e(h,`scanNumber`);function g(){let e=``,n=i;for(;;){if(i>=r){e+=t.substring(n,i),f=2;break}let a=t.charCodeAt(i);if(a===34){e+=t.substring(n,i),i++;break}if(a===92){if(e+=t.substring(n,i),i++,i>=r){f=2;break}switch(t.charCodeAt(i++)){case 34:e+=`"`;break;case 92:e+=`\\`;break;case 47:e+=`/`;break;case 98:e+=`\b`;break;case 102:e+=`\f`;break;case 110:e+=`
|
|
9
|
+
`;break;case 114:e+=`\r`;break;case 116:e+=` `;break;case 117:let t=p(4,!0);t>=0?e+=String.fromCharCode(t):f=4;break;default:f=5}n=i;continue}if(a>=0&&a<=31){if(k(a)){e+=t.substring(n,i),f=2;break}f=6}i++}return e}e(g,`scanString`);function _(){if(a=``,f=0,o=i,l=c,d=u,i>=r)return o=r,s=17;let e=t.charCodeAt(i);if(O(e)){do i++,a+=String.fromCharCode(e),e=t.charCodeAt(i);while(O(e));return s=15}if(k(e))return i++,a+=String.fromCharCode(e),e===13&&t.charCodeAt(i)===10&&(i++,a+=`
|
|
10
|
+
`),c++,u=i,s=14;switch(e){case 123:return i++,s=1;case 125:return i++,s=2;case 91:return i++,s=3;case 93:return i++,s=4;case 58:return i++,s=6;case 44:return i++,s=5;case 34:return i++,a=g(),s=10;case 47:let n=i-1;if(t.charCodeAt(i+1)===47){for(i+=2;i<r&&!k(t.charCodeAt(i));)i++;return a=t.substring(n,i),s=12}if(t.charCodeAt(i+1)===42){i+=2;let e=r-1,o=!1;for(;i<e;){let e=t.charCodeAt(i);if(e===42&&t.charCodeAt(i+1)===47){i+=2,o=!0;break}i++,k(e)&&(e===13&&t.charCodeAt(i)===10&&i++,c++,u=i)}return o||(i++,f=1),a=t.substring(n,i),s=13}return a+=String.fromCharCode(e),i++,s=16;case 45:if(a+=String.fromCharCode(e),i++,i===r||!A(t.charCodeAt(i)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return a+=h(),s=11;default:for(;i<r&&v(e);)i++,e=t.charCodeAt(i);if(o!==i){switch(a=t.substring(o,i),a){case`true`:return s=8;case`false`:return s=9;case`null`:return s=7}return s=16}return a+=String.fromCharCode(e),i++,s=16}}e(_,`scanNext`);function v(e){if(O(e)||k(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}e(v,`isUnknownContentCharacter`);function y(){let e;do e=_();while(e>=12&&e<=15);return e}return e(y,`scanNextNonTrivia`),{setPosition:m,getPosition:/* @__PURE__ */ e(()=>i,`getPosition`),scan:n?y:_,getToken:/* @__PURE__ */ e(()=>s,`getToken`),getTokenValue:/* @__PURE__ */ e(()=>a,`getTokenValue`),getTokenOffset:/* @__PURE__ */ e(()=>o,`getTokenOffset`),getTokenLength:/* @__PURE__ */ e(()=>i-o,`getTokenLength`),getTokenStartLine:/* @__PURE__ */ e(()=>l,`getTokenStartLine`),getTokenStartCharacter:/* @__PURE__ */ e(()=>o-d,`getTokenStartCharacter`),getTokenError:/* @__PURE__ */ e(()=>f,`getTokenError`)}}e(te,`createScanner`);function O(e){return e===32||e===9}e(O,`isWhiteSpace`);function k(e){return e===10||e===13}e(k,`isLineBreak`);function A(e){return e>=48&&e<=57}e(A,`isDigit`);var ne;(function(e){e[e.lineFeed=10]=`lineFeed`,e[e.carriageReturn=13]=`carriageReturn`,e[e.space=32]=`space`,e[e._0=48]=`_0`,e[e._1=49]=`_1`,e[e._2=50]=`_2`,e[e._3=51]=`_3`,e[e._4=52]=`_4`,e[e._5=53]=`_5`,e[e._6=54]=`_6`,e[e._7=55]=`_7`,e[e._8=56]=`_8`,e[e._9=57]=`_9`,e[e.a=97]=`a`,e[e.b=98]=`b`,e[e.c=99]=`c`,e[e.d=100]=`d`,e[e.e=101]=`e`,e[e.f=102]=`f`,e[e.g=103]=`g`,e[e.h=104]=`h`,e[e.i=105]=`i`,e[e.j=106]=`j`,e[e.k=107]=`k`,e[e.l=108]=`l`,e[e.m=109]=`m`,e[e.n=110]=`n`,e[e.o=111]=`o`,e[e.p=112]=`p`,e[e.q=113]=`q`,e[e.r=114]=`r`,e[e.s=115]=`s`,e[e.t=116]=`t`,e[e.u=117]=`u`,e[e.v=118]=`v`,e[e.w=119]=`w`,e[e.x=120]=`x`,e[e.y=121]=`y`,e[e.z=122]=`z`,e[e.A=65]=`A`,e[e.B=66]=`B`,e[e.C=67]=`C`,e[e.D=68]=`D`,e[e.E=69]=`E`,e[e.F=70]=`F`,e[e.G=71]=`G`,e[e.H=72]=`H`,e[e.I=73]=`I`,e[e.J=74]=`J`,e[e.K=75]=`K`,e[e.L=76]=`L`,e[e.M=77]=`M`,e[e.N=78]=`N`,e[e.O=79]=`O`,e[e.P=80]=`P`,e[e.Q=81]=`Q`,e[e.R=82]=`R`,e[e.S=83]=`S`,e[e.T=84]=`T`,e[e.U=85]=`U`,e[e.V=86]=`V`,e[e.W=87]=`W`,e[e.X=88]=`X`,e[e.Y=89]=`Y`,e[e.Z=90]=`Z`,e[e.asterisk=42]=`asterisk`,e[e.backslash=92]=`backslash`,e[e.closeBrace=125]=`closeBrace`,e[e.closeBracket=93]=`closeBracket`,e[e.colon=58]=`colon`,e[e.comma=44]=`comma`,e[e.dot=46]=`dot`,e[e.doubleQuote=34]=`doubleQuote`,e[e.minus=45]=`minus`,e[e.openBrace=123]=`openBrace`,e[e.openBracket=91]=`openBracket`,e[e.plus=43]=`plus`,e[e.slash=47]=`slash`,e[e.formFeed=12]=`formFeed`,e[e.tab=9]=`tab`})(ne||={});function re(t,n,r){let i,a,o,s,c;if(n){for(s=n.offset,c=s+n.length,o=s;o>0&&!M(t,o-1);)o--;let e=c;for(;e<t.length&&!M(t,e);)e++;a=t.substring(o,e),i=ie(a,r)}else a=t,i=0,o=0,s=0,c=t.length;let l=ae(r,t),u=0,d=0,f;f=r.insertSpaces?j(` `,r.tabSize||4):` `;let p=te(a,!1),m=!1;function h(){return u>1?j(l,u)+j(f,i+d):l+j(f,i+d)}e(h,`newLinesAndIndent`);function g(){let e=p.scan();for(u=0;e===15||e===14;)e===14&&r.keepLines?u+=1:e===14&&(u=1),e=p.scan();return m=e===16||p.getTokenError()!==0,e}e(g,`scanNext`);let _=[];function v(e,r,i){!m&&(!n||r<c&&i>s)&&t.substring(r,i)!==e&&_.push({offset:r,length:i-r,content:e})}e(v,`addEdit`);let y=g();if(r.keepLines&&u>0&&v(j(l,u),0,0),y!==17){let e=p.getTokenOffset()+o;v(j(f,i),o,e)}for(;y!==17;){let e=p.getTokenOffset()+p.getTokenLength()+o,t=g(),n=``,i=!1;for(;u===0&&(t===12||t===13);){let r=p.getTokenOffset()+o;v(` `,e,r),e=p.getTokenOffset()+p.getTokenLength()+o,i=t===12,n=i?h():``,t=g()}if(t===2)y!==1&&d--,r.keepLines&&u>0||!r.keepLines&&y!==1?n=h():r.keepLines&&(n=` `);else if(t===4)y!==3&&d--,r.keepLines&&u>0||!r.keepLines&&y!==3?n=h():r.keepLines&&(n=` `);else{switch(y){case 3:case 1:d++,n=r.keepLines&&u>0||!r.keepLines?h():` `;break;case 5:n=r.keepLines&&u>0||!r.keepLines?h():` `;break;case 12:n=h();break;case 13:u>0?n=h():i||(n=` `);break;case 6:r.keepLines&&u>0?n=h():i||(n=` `);break;case 10:r.keepLines&&u>0?n=h():t===6&&!i&&(n=``);break;case 7:case 8:case 9:case 11:case 2:case 4:r.keepLines&&u>0?n=h():(t===12||t===13)&&!i?n=` `:t!==5&&t!==17&&(m=!0);break;case 16:m=!0}u>0&&(t===12||t===13)&&(n=h())}t===17&&(n=r.keepLines&&u>0?h():r.insertFinalNewline?l:``);let a=p.getTokenOffset()+o;v(n,e,a),y=t}return _}e(re,`format`);function j(e,t){let n=``;for(let r=0;r<t;r++)n+=e;return n}e(j,`repeat`);function ie(e,t){let n=0,r=0,i=t.tabSize||4;for(;n<e.length;){let t=e.charAt(n);if(t===` `)r++;else if(t===` `)r+=i;else break;n++}return Math.floor(r/i)}e(ie,`computeIndentLevel`);function ae(e,t){for(let e=0;e<t.length;e++){let n=t.charAt(e);if(n===`\r`)return e+1<t.length&&t.charAt(e+1)===`
|
|
11
|
+
`?`\r
|
|
12
|
+
`:`\r`;if(n===`
|
|
13
|
+
`)return`
|
|
14
|
+
`}return e&&e.eol||`
|
|
15
|
+
`}e(ae,`getEOL`);function M(e,t){return`\r
|
|
16
|
+
`.indexOf(e.charAt(t))!==-1}e(M,`isEOL`);var N;(function(e){e.DEFAULT={allowTrailingComma:!1}})(N||={});function oe(t,n=[],r=N.DEFAULT){let i=null,a=[],o=[];function s(e){Array.isArray(a)?a.push(e):i!==null&&(a[i]=e)}return e(s,`onValue`),le(t,{onObjectBegin:/* @__PURE__ */ e(()=>{let e={};s(e),o.push(a),a=e,i=null},`onObjectBegin`),onObjectProperty:/* @__PURE__ */ e(e=>{i=e},`onObjectProperty`),onObjectEnd:/* @__PURE__ */ e(()=>{a=o.pop()},`onObjectEnd`),onArrayBegin:/* @__PURE__ */ e(()=>{let e=[];s(e),o.push(a),a=e,i=null},`onArrayBegin`),onArrayEnd:/* @__PURE__ */ e(()=>{a=o.pop()},`onArrayEnd`),onLiteralValue:s,onError:/* @__PURE__ */ e((e,t,r)=>{n.push({error:e,offset:t,length:r})},`onError`)},r),a[0]}e(oe,`parse`);function se(t,n=[],r=N.DEFAULT){let i={type:`array`,offset:-1,length:-1,children:[],parent:void 0};function a(e){i.type===`property`&&(i.length=e-i.offset,i=i.parent)}e(a,`ensurePropertyComplete`);function o(e){return i.children.push(e),e}e(o,`onValue`),le(t,{onObjectBegin:/* @__PURE__ */ e(e=>{i=o({type:`object`,offset:e,length:-1,parent:i,children:[]})},`onObjectBegin`),onObjectProperty:/* @__PURE__ */ e((e,t,n)=>{i=o({type:`property`,offset:t,length:-1,parent:i,children:[]}),i.children.push({type:`string`,value:e,offset:t,length:n,parent:i})},`onObjectProperty`),onObjectEnd:/* @__PURE__ */ e((e,t)=>{a(e+t),i.length=e+t-i.offset,i=i.parent,a(e+t)},`onObjectEnd`),onArrayBegin:/* @__PURE__ */ e((e,t)=>{i=o({type:`array`,offset:e,length:-1,parent:i,children:[]})},`onArrayBegin`),onArrayEnd:/* @__PURE__ */ e((e,t)=>{i.length=e+t-i.offset,i=i.parent,a(e+t)},`onArrayEnd`),onLiteralValue:/* @__PURE__ */ e((e,t,n)=>{o({type:ue(e),offset:t,length:n,parent:i,value:e}),a(t+n)},`onLiteralValue`),onSeparator:/* @__PURE__ */ e((e,t,n)=>{i.type===`property`&&(e===`:`?i.colonOffset=t:e===`,`&&a(t))},`onSeparator`),onError:/* @__PURE__ */ e((e,t,r)=>{n.push({error:e,offset:t,length:r})},`onError`)},r);let s=i.children[0];return s&&delete s.parent,s}e(se,`parseTree`);function ce(e,t){if(!e)return;let n=e;for(let e of t)if(typeof e==`string`){if(n.type!==`object`||!Array.isArray(n.children))return;let t=!1;for(let r of n.children)if(Array.isArray(r.children)&&r.children[0].value===e&&r.children.length===2){n=r.children[1],t=!0;break}if(!t)return}else{let t=e;if(n.type!==`array`||t<0||!Array.isArray(n.children)||t>=n.children.length)return;n=n.children[t]}return n}e(ce,`findNodeAtLocation`);function le(t,n,r=N.DEFAULT){let i=te(t,!1),a=[];function o(e){return e?()=>e(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter()):()=>!0}e(o,`toNoArgVisit`);function s(e){return e?()=>e(i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter(),()=>a.slice()):()=>!0}e(s,`toNoArgVisitWithPath`);function c(e){return e?t=>e(t,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter()):()=>!0}e(c,`toOneArgVisit`);function l(e){return e?t=>e(t,i.getTokenOffset(),i.getTokenLength(),i.getTokenStartLine(),i.getTokenStartCharacter(),()=>a.slice()):()=>!0}e(l,`toOneArgVisitWithPath`);let u=s(n.onObjectBegin),d=l(n.onObjectProperty),f=o(n.onObjectEnd),p=s(n.onArrayBegin),m=o(n.onArrayEnd),h=l(n.onLiteralValue),g=c(n.onSeparator),_=o(n.onComment),v=c(n.onError),y=r&&r.disallowComments,b=r&&r.allowTrailingComma;function x(){for(;;){let e=i.scan();switch(i.getTokenError()){case 4:S(14);break;case 5:S(15);break;case 3:S(13);break;case 1:y||S(11);break;case 2:S(12);break;case 6:S(16)}switch(e){case 12:case 13:y?S(10):_();break;case 16:S(1);break;case 15:case 14:break;default:return e}}}e(x,`scanNext`);function S(e,t=[],n=[]){if(v(e),t.length+n.length>0){let e=i.getToken();for(;e!==17;){if(t.indexOf(e)!==-1){x();break}if(n.indexOf(e)!==-1)break;e=x()}}}e(S,`handleError`);function C(e){let t=i.getTokenValue();return e?h(t):(d(t),a.push(t)),x(),!0}e(C,`parseString`);function w(){switch(i.getToken()){case 11:let e=i.getTokenValue(),t=Number(e);isNaN(t)&&(S(2),t=0),h(t);break;case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return x(),!0}e(w,`parseLiteral`);function T(){return i.getToken()===10?(C(!1),i.getToken()===6?(g(`:`),x(),D()||S(4,[],[2,5])):S(5,[],[2,5]),a.pop(),!0):(S(3,[],[2,5]),!1)}e(T,`parseProperty`);function ee(){u(),x();let e=!1;for(;i.getToken()!==2&&i.getToken()!==17;){if(i.getToken()===5){if(e||S(4,[],[]),g(`,`),x(),i.getToken()===2&&b)break}else e&&S(6,[],[]);T()||S(4,[],[2,5]),e=!0}return f(),i.getToken()===2?x():S(7,[2],[]),!0}e(ee,`parseObject`);function E(){p(),x();let e=!0,t=!1;for(;i.getToken()!==4&&i.getToken()!==17;){if(i.getToken()===5){if(t||S(4,[],[]),g(`,`),x(),i.getToken()===4&&b)break}else t&&S(6,[],[]);e?(a.push(0),e=!1):a[a.length-1]++,D()||S(4,[],[4,5]),t=!0}return m(),e||a.pop(),i.getToken()===4?x():S(8,[4],[]),!0}e(E,`parseArray`);function D(){switch(i.getToken()){case 3:return E();case 1:return ee();case 10:return C(!0);default:return w()}}return e(D,`parseValue`),x(),i.getToken()===17?r.allowEmptyContent?!0:(S(4,[],[]),!1):D()?(i.getToken()!==17&&S(9,[],[]),!0):(S(4,[],[]),!1)}e(le,`visit`);function ue(e){switch(typeof e){case`boolean`:return`boolean`;case`number`:return`number`;case`string`:return`string`;case`object`:return e?Array.isArray(e)?`array`:`object`:`null`;default:return`null`}}e(ue,`getNodeType`);function de(e,t,n,r){let i=t.slice(),a=se(e,[]),o,s;for(;i.length>0&&(s=i.pop(),o=ce(a,i),o===void 0&&n!==void 0);)n=typeof s==`string`?{[s]:n}:[n];if(!o){if(n===void 0)throw Error(`Can not delete in empty document`);return P(e,{offset:a?a.offset:0,length:a?a.length:0,content:JSON.stringify(n)},r)}if(o.type===`object`&&typeof s==`string`&&Array.isArray(o.children)){let t=ce(o,[s]);if(t!==void 0){if(n===void 0){if(!t.parent)throw Error(`Malformed AST`);let n=o.children.indexOf(t.parent),i,a=t.parent.offset+t.parent.length;if(n>0){let e=o.children[n-1];i=e.offset+e.length}else i=o.offset+1,o.children.length>1&&(a=o.children[1].offset);return P(e,{offset:i,length:a-i,content:``},r)}return P(e,{offset:t.offset,length:t.length,content:JSON.stringify(n)},r)}{if(n===void 0)return[];let t=`${JSON.stringify(s)}: ${JSON.stringify(n)}`,i=r.getInsertionIndex?r.getInsertionIndex(o.children.map(e=>e.children[0].value)):o.children.length,a;if(i>0){let e=o.children[i-1];a={offset:e.offset+e.length,length:0,content:`,`+t}}else a=o.children.length===0?{offset:o.offset+1,length:0,content:t}:{offset:o.offset+1,length:0,content:t+`,`};return P(e,a,r)}}if(o.type===`array`&&typeof s==`number`&&Array.isArray(o.children)){let t=s;if(t===-1){let t=`${JSON.stringify(n)}`,i;if(o.children.length===0)i={offset:o.offset+1,length:0,content:t};else{let e=o.children[o.children.length-1];i={offset:e.offset+e.length,length:0,content:`,`+t}}return P(e,i,r)}if(n===void 0&&o.children.length>=0){let t=s,n=o.children[t],i;if(o.children.length===1)i={offset:o.offset+1,length:o.length-2,content:``};else if(o.children.length-1===t){let e=o.children[t-1],n=e.offset+e.length;i={offset:n,length:o.offset+o.length-2-n,content:``}}else i={offset:n.offset,length:o.children[t+1].offset-n.offset,content:``};return P(e,i,r)}if(n!==void 0){let t,i=`${JSON.stringify(n)}`;if(!r.isArrayInsertion&&o.children.length>s){let e=o.children[s];t={offset:e.offset,length:e.length,content:i}}else if(o.children.length===0||s===0)t={offset:o.offset+1,length:0,content:o.children.length===0?i:i+`,`};else{let e=s>o.children.length?o.children.length:s,n=o.children[e-1];t={offset:n.offset+n.length,length:0,content:`,`+i}}return P(e,t,r)}throw Error(`Can not ${n===void 0?`remove`:r.isArrayInsertion?`insert`:`modify`} Array index ${t} as length is not sufficient`)}throw Error(`Can not add ${typeof s==`number`?`property`:`index`} to parent of type ${o.type}`)}e(de,`setProperty`);function P(e,t,n){if(!n.formattingOptions)return[t];let r=F(e,t),i=t.offset,a=t.offset+t.content.length;if(t.length===0||t.content.length===0){for(;i>0&&!M(r,i-1);)i--;for(;a<r.length&&!M(r,a);)a++}let o=re(r,{offset:i,length:a-i},{...n.formattingOptions,keepLines:!1});for(let e=o.length-1;e>=0;e--){let t=o[e];r=F(r,t),i=Math.min(i,t.offset),a=Math.max(a,t.offset+t.length),a+=t.content.length-t.length}let s=e.length-(r.length-a)-i;return[{offset:i,length:s,content:r.substring(i,a)}]}e(P,`withFormatting`);function F(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}e(F,`applyEdit`);var fe;(function(e){e[e.None=0]=`None`,e[e.UnexpectedEndOfComment=1]=`UnexpectedEndOfComment`,e[e.UnexpectedEndOfString=2]=`UnexpectedEndOfString`,e[e.UnexpectedEndOfNumber=3]=`UnexpectedEndOfNumber`,e[e.InvalidUnicode=4]=`InvalidUnicode`,e[e.InvalidEscapeCharacter=5]=`InvalidEscapeCharacter`,e[e.InvalidCharacter=6]=`InvalidCharacter`})(fe||={});var pe;(function(e){e[e.OpenBraceToken=1]=`OpenBraceToken`,e[e.CloseBraceToken=2]=`CloseBraceToken`,e[e.OpenBracketToken=3]=`OpenBracketToken`,e[e.CloseBracketToken=4]=`CloseBracketToken`,e[e.CommaToken=5]=`CommaToken`,e[e.ColonToken=6]=`ColonToken`,e[e.NullKeyword=7]=`NullKeyword`,e[e.TrueKeyword=8]=`TrueKeyword`,e[e.FalseKeyword=9]=`FalseKeyword`,e[e.StringLiteral=10]=`StringLiteral`,e[e.NumericLiteral=11]=`NumericLiteral`,e[e.LineCommentTrivia=12]=`LineCommentTrivia`,e[e.BlockCommentTrivia=13]=`BlockCommentTrivia`,e[e.LineBreakTrivia=14]=`LineBreakTrivia`,e[e.Trivia=15]=`Trivia`,e[e.Unknown=16]=`Unknown`,e[e.EOF=17]=`EOF`})(pe||={});var me=oe,he;(function(e){e[e.InvalidSymbol=1]=`InvalidSymbol`,e[e.InvalidNumberFormat=2]=`InvalidNumberFormat`,e[e.PropertyNameExpected=3]=`PropertyNameExpected`,e[e.ValueExpected=4]=`ValueExpected`,e[e.ColonExpected=5]=`ColonExpected`,e[e.CommaExpected=6]=`CommaExpected`,e[e.CloseBraceExpected=7]=`CloseBraceExpected`,e[e.CloseBracketExpected=8]=`CloseBracketExpected`,e[e.EndOfFileExpected=9]=`EndOfFileExpected`,e[e.InvalidCommentToken=10]=`InvalidCommentToken`,e[e.UnexpectedEndOfComment=11]=`UnexpectedEndOfComment`,e[e.UnexpectedEndOfString=12]=`UnexpectedEndOfString`,e[e.UnexpectedEndOfNumber=13]=`UnexpectedEndOfNumber`,e[e.InvalidUnicode=14]=`InvalidUnicode`,e[e.InvalidEscapeCharacter=15]=`InvalidEscapeCharacter`,e[e.InvalidCharacter=16]=`InvalidCharacter`})(he||={});function ge(e){switch(e){case 1:return`InvalidSymbol`;case 2:return`InvalidNumberFormat`;case 3:return`PropertyNameExpected`;case 4:return`ValueExpected`;case 5:return`ColonExpected`;case 6:return`CommaExpected`;case 7:return`CloseBraceExpected`;case 8:return`CloseBracketExpected`;case 9:return`EndOfFileExpected`;case 10:return`InvalidCommentToken`;case 11:return`UnexpectedEndOfComment`;case 12:return`UnexpectedEndOfString`;case 13:return`UnexpectedEndOfNumber`;case 14:return`InvalidUnicode`;case 15:return`InvalidEscapeCharacter`;case 16:return`InvalidCharacter`}return`<unknown ParseErrorCode>`}e(ge,`printParseErrorCode`);function _e(e,t,n){return re(e,t,n)}e(_e,`format`);function ve(e,t,n,r){return de(e,t,n,r)}e(ve,`modify`);function ye(e,t){let n=t.slice(0).sort((e,t)=>{let n=e.offset-t.offset;return n===0?e.length-t.length:n}),r=e.length;for(let t=n.length-1;t>=0;t--){let i=n[t];if(i.offset+i.length<=r)e=F(e,i);else throw Error(`Overlapping edit`);r=i.offset}return e}e(ye,`applyEdits`);function be(e,t){let n=e.slice(0,t).split(/\r?\n/);return[n.length,n.pop().length+1]}e(be,`getLineColFromPtr`);function xe(e,t,n){let r=e.split(/\r?\n/),i=``,a=(Math.log10(t+1)|0)+1;for(let e=t-1;e<=t+1;e++){let o=r[e-1];o&&(i+=e.toString().padEnd(a,` `),i+=`: `,i+=o,i+=`
|
|
17
|
+
`,e===t&&(i+=` `.repeat(a+n+2),i+=`^
|
|
18
|
+
`))}return i}e(xe,`makeCodeBlock`);var I=class t extends Error{static{e(this,`TomlError`)}line;column;codeblock;constructor(e,t){let[n,r]=be(t.toml,t.ptr),i=xe(t.toml,n,r);super(`Invalid TOML document: ${e}
|
|
19
|
+
|
|
20
|
+
${i}`,t),this.line=n,this.column=r,this.codeblock=i}static x(e,n,r){throw new t(e,{toml:n.s,ptr:r??n.p})}};function Se(e){let t=e.p,n=e.s.charCodeAt(e.p++),r=n,i=n===39,a=n===e.s.charCodeAt(e.p)&&n===e.s.charCodeAt(e.p+1);a&&((n=e.s.charCodeAt(e.p+=2))===10?e.p++:n===13&&e.s.charCodeAt(e.p+1)===10&&(e.p+=2));let o=``,s=e.p,c=0;for(;e.p<e.s.length;e.p++)if(n=e.s.charCodeAt(e.p),a&&(n===10||n===13&&e.s.charCodeAt(e.p+1)===10))c&&=3;else if(n<32&&n!==9||n===127)I.x(`control characters are not allowed in strings`,e);else if((!c||c===3)&&n===r&&(!a||e.s.charCodeAt(e.p+1)===r&&e.s.charCodeAt(e.p+2)===r)){if(a&&(e.s.charCodeAt(e.p+3)===r&&e.p++,e.s.charCodeAt(e.p+3)===r&&e.p++),!c){let t=e.s.slice(s,e.p);o=o?o+t:t}return e.p+=a?3:1,o}else if(!c)!i&&n===92&&(o+=e.s.slice(s,s=e.p),c=1);else if(c===1){if(n===120||n===117||n===85){let t=e.p++-1,r=0,i=n===120?2:n===117?4:8;for(let t=0;t<i;t++,e.p++){let t=e.s.charCodeAt(e.p),n=t>=48&&t<=57?t-48:t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:-1;n<0&&I.x(`invalid non-hex character in unicode escape`,e),r=r<<4|n}(r<0||r>1114111||r>=55296&&r<=57343)&&I.x(`invalid unicode escape`,e,t),o+=String.fromCodePoint(r),s=e.p--,c=0}else a&&(n===32||n===9)?c=2:(n===98?o+=`\b`:n===116?o+=` `:n===110?o+=`
|
|
21
|
+
`:n===102?o+=`\f`:n===114?o+=`\r`:n===101?o+=`\x1B`:n===34?o+=`"`:n===92?o+=`\\`:I.x(`unrecognised escape sequence`,e),s=e.p+1,c=0)}else n!==32&&n!==9&&(c===2&&I.x(`invalid escape: only line-ending whitespace may be escaped`,e,s),c=+(!i&&n===92),s=e.p);I.x(`unfinished string`,e,t)}e(Se,`parseString`);var Ce=/^(\d{4}-\d{2}-\d{2})?[Tt ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|z|[-+]\d{2}:\d{2})?$/i,we=class t extends Date{static{e(this,`TomlDate`)}#e=!1;#t=!1;#n=null;constructor(e,t,n){let r=!0,i=!0,a=`Z`,o;if(typeof e==`string`){if(t)prep:{if(t<3){if(+e.slice(11,13)>23){e=``;break prep}t===2?(a=null,e+=`Z`):(o=e.charCodeAt(e.length-1))!==90&&o!==122&&(a=e.slice(e.length-6)),n&&(e=e.slice(0,10)+`T`+e.slice(11))}else t===4&&(e=+e.slice(0,2)>23?``:`0000-01-01T${e}Z`);r=t!==4,i=t!==3}else{let t=e.match(Ce);t?(t[1]||(r=!1,e=`0000-01-01T${e}`),i=!!t[2],i&&e[10]===` `&&(e=e.replace(` `,`T`)),t[2]&&+t[2]>23?e=``:(a=t[3]||null,!a&&i&&(e+=`Z`))):e=``}}super(e),isNaN(this.getTime())||(this.#e=r,this.#t=i,this.#n=a)}isDateTime(){return this.#e&&this.#t}isLocal(){return!this.#e||!this.#t||!this.#n}isDate(){return this.#e&&!this.#t}isTime(){return this.#t&&!this.#e}isValid(){return this.#e||this.#t}toISOString(){let e=super.toISOString();if(this.isDate())return e.slice(0,10);if(this.isTime())return e.slice(11,23);if(this.#n===null)return e.slice(0,-1);if(this.#n===`Z`||this.#n===`z`)return e;let t=this.#n.slice(1,3)*60+ +this.#n.slice(4,6);return t=this.#n[0]===`-`?t:-t,(/* @__PURE__ */ new Date(this.getTime()-t*6e4)).toISOString().slice(0,-1)+this.#n}static wrapAsOffsetDateTime(e,n=`Z`){let r=new t(e);return r.#n=n,r}static wrapAsLocalDateTime(e){let n=new t(e);return n.#n=null,n}static wrapAsLocalDate(e){let n=new t(e);return n.#t=!1,n.#n=null,n}static wrapAsLocalTime(e){let n=new t(e);return n.#e=!1,n.#n=null,n}};function L(e,t=10){return t===16?e>47&&e<58||e>64&&e<71||e>96&&e<103:e>47&&e<48+t}e(L,`isDigit`);function R(e,t){return e===32||e===9||e===10||e===13||t&&(e===t||e===44)||e===35}e(R,`isEndOfValue`);function z(e,t){let n=e.p,r=e.s.charCodeAt(e.p);if(r===91||r===123){e.d--||I.x(`document contains excessively nested structures. aborting.`,e);let t=r===91?ke(e):Oe(e);return e.d++,t}return r===34||r===39?Se(e):r===116?((e.s.charCodeAt(++e.p)!==114||e.s.charCodeAt(++e.p)!==117||e.s.charCodeAt(++e.p)!==101)&&I.x(`invalid value`,e,n),e.p++,!0):r===102?((e.s.charCodeAt(++e.p)!==97||e.s.charCodeAt(++e.p)!==108||e.s.charCodeAt(++e.p)!==115||e.s.charCodeAt(++e.p)!==101)&&I.x(`invalid value`,e,n),e.p++,!1):r===43||r===45?B(e,e.p,e.s.charCodeAt(++e.p),44-r,t):e.s.charCodeAt(e.p+4)===45&&e.s.charCodeAt(e.p+7)===45?Te(e,r,t):e.s.charCodeAt(e.p+2)===58?Ee(e,r,t):B(e,e.p,r,0,t)}e(z,`extractValue`);function B(e,t,n,r,i){let a=n,o=0,s=!1;if(a===105)return(e.s.charCodeAt(++e.p)!==110||e.s.charCodeAt(++e.p)!==102)&&I.x(`invalid value`,e,t),e.p++,(r||1)/0;if(a===110)return(e.s.charCodeAt(++e.p)!==97||e.s.charCodeAt(++e.p)!==110)&&I.x(`invalid value`,e,t),e.p++,NaN;if(a===48){if(++e.p>=e.s.length||R(a=e.s.charCodeAt(e.p),i))return e.bi===!0?0n:0;if(!r){if(a===120)return V(e,t,16,i);if(a===98)return V(e,t,2,i);if(a===111)return V(e,t,8,i)}a===46?o=2:a===101||a===69?o=4:I.x(`illegal leading zero`,e,t)}else L(a)||I.x(`invalid value`,e,t);for(;++e.p<e.s.length&&(a=e.s.charCodeAt(e.p),!R(a,i));)o||=1,a===95?(o&1||I.x(`illegal underscore`,e),o+=11,s=!0):o===1&&a===46?o=2:(o===1||o===3)&&(a===101||a===69)?o=4:o===4&&(a===43||a===45)||(L(a)?o>9?o-=11:o&1||o++:I.x(`illegal character in numeric literal`,e));if(!o){let t=(n-48)*(r||1);return e.bi===!0?BigInt(t):t}o&1||I.x(`unfinished numeric value`,e,t);let c=e.s.slice(t,e.p);return s&&(c=c.replaceAll(`_`,``)),o>1?parseFloat(c):H(e,c,10,t)}e(B,`parseNumber`);function V(e,t,n,r){let i,a=1;for(;++e.p<e.s.length&&(i=e.s.charCodeAt(e.p),!R(i,r));)i===95?(a&1&&I.x(`illegal underscore`,e),a=3):L(i,n)?a&1&&a--:I.x(`illegal character in numeric literal`,e);a&1&&I.x(`unfinished numeric value`,e);let o=e.s.slice(t+2,e.p);return a&&(o=o.replaceAll(`_`,``)),H(e,o,n,t)}e(V,`parseIntegerBaseN`);function H(e,t,n,r){if(e.bi!==!0)int:{let i=parseInt(t,n);if(!Number.isSafeInteger(i)){if(e.bi)break int;I.x(`integer value cannot be represented losslessly`,e,r)}return i}return BigInt(n===10?t:(n===2?`0b`:n===8?`0o`:`0x`)+t)}e(H,`parseInteger`);function Te(e,t,n){let r=e.p++,i;if(!L(t)||!L(e.s.charCodeAt(e.p++))||!L(e.s.charCodeAt(e.p++))||!L(e.s.charCodeAt(e.p++)))return B(e,e.p=r,t,0,n);if(e.p+=5,L(e.s.charCodeAt(e.p++))||I.x(`invalid date-time: date part is malformed`,e,r),e.p>=e.s.length||((t=e.s.charCodeAt(e.p))!==32||(i=!0,!L(e.s.charCodeAt(e.p+1))))&&t!==84&&t!==116)return U(e,e.s.slice(r,e.p),3,!1,r);if(e.s.charCodeAt(e.p+=3)!==58&&I.x(`invalid date-time: time part is malformed`,e,r),e.s.charCodeAt(e.p+=3)===58&&(e.p+=3),e.s.charCodeAt(e.p)===46)for(;L(e.s.charCodeAt(++e.p)););if(t=e.s.charCodeAt(e.p)){if(t===90||t===122)return U(e,e.s.slice(r,++e.p),1,i,r,`[+00:00]`);if(t===43||t===45)return U(e,e.s.slice(r,e.p+=6),1,i,r,!e.ld&&`[`+e.s.slice(e.p-6,e.p)+`]`)}return U(e,e.s.slice(r,e.p),2,i,r)}e(Te,`parseDate`);function Ee(e,t,n){let r=e.p;if(!L(t)||!L(e.s.charCodeAt(++e.p)))return B(e,--e.p,t,0,n);if(e.s.charCodeAt(e.p+=4)===58&&(e.p+=3),e.s.charCodeAt(e.p)===46)for(;L(e.s.charCodeAt(++e.p)););return U(e,e.s.slice(r,e.p),4,!1,r)}e(Ee,`parseTime`);function U(e,t,n,r,i,a){if(e.ld){let a=new we(t,n,r);return a.isValid()||I.x(`invalid date`,e,i),a}try{switch(a&&(t+=a),n){case 1:return Temporal.ZonedDateTime.from(t);case 2:return Temporal.PlainDateTime.from(t);case 3:return Temporal.PlainDate.from(t);case 4:return Temporal.PlainTime.from(t)}}catch(t){I.x(t instanceof Error?t.message:``+t,e,i)}}e(U,`readDate`);function De(e){for(;e.p<e.s.length;e.p++){let t=e.s.charCodeAt(e.p);if(t===10)break;if(t===13&&e.s.charCodeAt(e.p+1)===10){e.p++;break}(t<32&&t!==9||t===127)&&I.x(`control characters are not allowed in comments`,e)}}e(De,`skipComment`);function W(e,t,n){let r;for(;e.p<e.s.length;){for(;e.p<e.s.length&&((r=e.s.charCodeAt(e.p))===32||r===9||!t&&(r===10||r===13&&e.s.charCodeAt(e.p+1)===10));)e.p++;if(n||r!==35)break;De(e)}}e(W,`skipVoid`);function G(e,t=61){let n,r=0,i=[],a,o=e.s.charCodeAt(n=e.p);do if(o===t)return r||I.x(`unexpected end of key`,e),r===1&&i.push(e.s.slice(a,e.p)),e.p++,i;else o===46?(r||I.x(`illegal empty bare key`,e),r===1&&i.push(e.s.slice(a,e.p)),r=0):!r&&(o===34||o===39)?(o===e.s.charCodeAt(e.p+1)&&o===e.s.charCodeAt(e.p+2)&&I.x(`illegal quoted key: multiline strings are not allowed`,e),i.push(Se(e)),r=2,e.p--):o===32||o===9?r===1&&(i.push(e.s.slice(a,e.p)),r=2):r===2||o<48&&o!==45||o>57&&o<65||o>90&&o<97&&o!==95||o>122?I.x(`illegal character in key`,e):r||(r=1,a=e.p);while(o=e.s.charCodeAt(++e.p));I.x(`incomplete key-value: cannot find end of key`,e,n)}e(G,`parseKey`);function Oe(e){let t=e.p++,n=/* @__PURE__ */ Object.create(null),r=/* @__PURE__ */ new Set,i;for(;e.p<e.s.length;){if(W(e),(i=e.s.charCodeAt(e.p))===125)return e.p++,n;let t,a=n,o=!1,s=e.p,c=G(e);for(let n=0;n<c.length;n++){n&&(a=o?a[t]:a[t]=/* @__PURE__ */ Object.create(null)),t=c[n],(o=Object.hasOwn(a,t))&&(typeof a[t]!=`object`||r.has(a[t]))&&I.x(`trying to redefine an already defined value`,e,s);let i=t===`__proto__`;if(e.uk&&(i||t===`constructor`)){a=e.uk!==1&&I.x(`document contains an unsafe property`,e,s);break}!o&&i&&Object.defineProperty(a,t,{enumerable:!0,configurable:!0,writable:!0})}o&&I.x(`trying to redefine an already defined value`,e,s),W(e,!0,!0);let l=z(e,125);if(a&&typeof(a[t]=l)==`object`&&r.add(l),W(e),(i=e.s.charCodeAt(e.p++))===125)return n;i!==44&&I.x(`expected comma or end of structure`,e,e.p-1)}I.x(`unfinished table`,e,t)}e(Oe,`parseInlineTable`);function ke(e){let t=e.p++,n=[],r;for(;e.p<e.s.length;){if(W(e),(r=e.s.charCodeAt(e.p))===93)return e.p++,n;if(n.push(z(e,93)),W(e),(r=e.s.charCodeAt(e.p++))===93)return n;r!==44&&I.x(`expected comma or end of structure`,e,e.p-1)}I.x(`unfinished array`,e,t)}e(ke,`parseArray`);function Ae(e,t,n,r,i){let a=n,o=r,s,c=!1,l;for(let n=0;n<t.length;n++){if(n){if(a=c?a[s]:a[s]=/* @__PURE__ */ Object.create(null),o=(l=o[s]).c,i===0&&(l.t===1||l.t===2))return null;if(l.t===2){let e=a.length-1;a=a[e],o=o[e].c}}if(s=t[n],(c=Object.hasOwn(a,s))&&o[s]?.t===0&&o[s]?.d)return null;if(!c){let r=s===`__proto__`;if(e.uk&&(r||s===`constructor`))return!1;r&&(Object.defineProperty(a,s,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(o,s,{enumerable:!0,configurable:!0,writable:!0})),o[s]={t:n<t.length-1&&i===2?3:i,d:!1,i:0,c:/* @__PURE__ */ Object.create(null)}}}if(l=o[s],l.t!==i&&(i!==1||l.t!==3)||(i===2&&(l.d||(l.d=!0,a[s]=[]),a[s].push(a=/* @__PURE__ */ Object.create(null)),l.c[l.i++]=l={t:1,d:!1,i:0,c:/* @__PURE__ */ Object.create(null)}),l.d))return null;if(l.d=!0,i===1)a=c?a[s]:a[s]=/* @__PURE__ */ Object.create(null);else if(i===0&&c)return null;return[s,a,l.c]}e(Ae,`peekTable`);function je(e,t,n){(t===null||e.uk===2)&&I.x(t===null?`trying to redefine an already defined table or value`:`document contains an unsafe property`,e,n)}e(je,`validateTablePeek`);function Me(e,t={}){let n={s:e,p:0,d:t.maxDepth??1e3,bi:t.integersAsBigInt??!1,ld:t.useLegacyDate??!0,uk:t.unsafeKeyBehaviour===`throw`?2:+(t.unsafeKeyBehaviour===`drop`)},r=/* @__PURE__ */ Object.create(null),i=/* @__PURE__ */ Object.create(null),a,o=!1,s=r,c=i;for(e.charCodeAt(0)===65279&&n.p++,W(n);n.p<e.length;){if(e.charCodeAt(n.p)===91){let t=e.charCodeAt(++n.p)===91;a=n.p+=+t,o=!1;let l=G(n,93);t&&(e.charCodeAt(n.p)!==93&&I.x(`expected end of table array declaration`,n),n.p++);let u=Ae(n,l,r,i,t?2:1);u?(c=u[2],s=u[1]):(je(n,u,a),o=!0)}else{a=n.p;let e=Ae(n,G(n),s,c,0);!e&&!o&&je(n,e,a),W(n,!0,!0);let t=z(n,void 0);e&&!o&&(e[1][e[0]]=t)}W(n,!0),n.p<e.length&&(a=e.charCodeAt(n.p))!==10&&(a!==13||e.charCodeAt(n.p+1)!==10)&&I.x(`each key-value declaration must be followed by an end-of-line`,n),W(n)}return r}e(Me,`parse`);var Ne=/^[a-z0-9-_]+$/i,Pe=!!``.isWellFormed;function K(e){let t=typeof e;if(t===`object`){if(Array.isArray(e))return`array`;if(typeof e.getUTCDate==`function`&&e instanceof Date)return`date`;if(globalThis.Temporal){if(e.until){if(e instanceof Temporal.ZonedDateTime)return`temporal/tz+uc`;if(e instanceof Temporal.PlainDateTime||e instanceof Temporal.PlainDate)return`temporal/uc`;if(e instanceof Temporal.PlainTime||e instanceof Temporal.Instant)return`temporal`;if(e instanceof Temporal.PlainYearMonth)return`temporal/x`}else if(e.toPlainDate&&e instanceof Temporal.PlainMonthDay||e.negated&&e instanceof Temporal.Duration)return`temporal/x`}}return t}e(K,`extendedTypeOf`);function Fe(e){for(let t=0;t<e.length;t++)if(K(e[t])!==`object`)return!1;return e.length!=0}e(Fe,`isArrayOfTables`);function Ie(e){return JSON.stringify(e).replaceAll(``,`\\u007f`)}e(Ie,`formatWellFormedStringUnchecked`);function Le(e){return Ie(Pe?e.toWellFormed():e)}e(Le,`formatString`);function Re(e){if(Ne.test(e))return e;if(Pe&&!e.isWellFormed())throw RangeError(`key contains illegal lone surrogates`);return Ie(e)}e(Re,`formatKey`);function q(e,t,n,r,i){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);switch(t){case`number`:if(isNaN(e))return`nan`;if(e===1/0)return`inf`;if(e===-1/0)return`-inf`;if(Number.isInteger(e)&&(r||!Number.isSafeInteger(e)))return e.toFixed(1);case`bigint`:case`boolean`:case`temporal`:return e.toString();case`string`:return Le(e);case`date`:if(isNaN(e.getTime()))throw TypeError(`cannot serialize invalid date`);return e.toISOString();case`object`:return ze(e,n,r,i);case`array`:return Be(e,n,r,i);case`temporal/tz+uc`:if(i){let t=e.timeZoneId,n=t.charCodeAt(0);if(n!==43&&n!==45&&(n!==85&&n!==71&&n!==90&&n!==69||t!==`UTC`&&t!==`UCT`&&t!==`Universal`&&t!==`Zulu`&&!t.startsWith(`GMT`)&&t!==`Greenwich`&&!t.startsWith(`Etc/`)))throw TypeError(`Temporal objects with an IANA timezone are not allowed in Temporal strict mode`)}case`temporal/uc`:if(i&&e.calendarId!==`iso8601`)throw TypeError(`Temporal objects with a non-default calendar are not allowed in Temporal strict mode`);return e.toString({calendarName:`never`,timeZoneName:`never`});case`temporal/x`:throw TypeError(`Unsupported `+e[Symbol.toStringTag])}}e(q,`stringifyValue`);function ze(e,t,n,r){let i=Object.keys(e);if(i.length===0)return`{}`;let a=`{ `;for(let o=0;o<i.length;o++){let s=i[o];o&&(a+=`, `),a+=Re(s)+` = `+q(e[s],K(e[s]),t-1,n,r)}return a+` }`}e(ze,`stringifyInlineTable`);function Be(e,t,n,r){if(e.length===0)return`[]`;let i=`[ `;for(let a=0;a<e.length;a++){if(a&&(i+=`, `),e[a]===null||e[a]===void 0)throw TypeError(`arrays cannot contain null or undefined values`);i+=q(e[a],K(e[a]),t-1,n,r)}return i+` ]`}e(Be,`stringifyArray`);function Ve(e,t,n,r,i){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let a=``;for(let o=0;o<e.length;o++)a+=`${a&&`
|
|
22
|
+
`}[[${t}]]
|
|
23
|
+
`,a+=J(0,e[o],t,n,r,i);return a}e(Ve,`stringifyArrayTable`);function J(e,t,n,r,i,a){if(r===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let o=``,s=``,c=Object.keys(t);for(let e=0;e<c.length;e++){let l=c[e];if(t[l]!==null&&t[l]!==void 0){let e=K(t[l]);if(e===`symbol`||e===`function`)throw TypeError(`cannot serialize values of type '${e}'`);let c=Re(l);if(e===`array`&&Fe(t[l]))s+=(s&&`
|
|
24
|
+
`)+Ve(t[l],n?`${n}.${c}`:c,r-1,i,a);else if(e===`object`){let e=n?`${n}.${c}`:c;s+=(s&&`
|
|
25
|
+
`)+J(e,t[l],e,r-1,i,a)}else o+=c,o+=` = `,o+=q(t[l],e,r,i,a),o+=`
|
|
26
|
+
`}}return e&&(o||!s)&&(o=o?`[${e}]
|
|
27
|
+
${o}`:`[${e}]`),o&&s?`${o}
|
|
28
|
+
${s}`:o||s}e(J,`stringifyTable`);function He(e,{maxDepth:t=1e3,numbersAsFloat:n=!1,strictTemporal:r=!1}={}){if(K(e)!==`object`)throw TypeError(`stringify can only be called with an object`);let i=J(0,e,``,t,n,r);return i[i.length-1]===`
|
|
29
|
+
`?i:i+`
|
|
30
|
+
`}e(He,`stringify`);var Y=class extends f{static{e(this,`ParseError`)}text;notes;location;kind;constructor({text:e,notes:t,location:n,kind:r,telemetryMessage:i}){super(e,{telemetryMessage:i}),this.name=this.constructor.name,this.text=e,this.notes=t??[],this.location=n,this.kind=r??`error`}},Ue=class extends Y{static{e(this,`APIError`)}#e;code;accountTag;meta;retryAfterMs;constructor({status:e,retryAfterMs:t,...n}){super(n),this.name=this.constructor.name,this.#e=e,this.retryAfterMs=t}get status(){return this.#e}isGatewayError(){return this.#e!==void 0&&[502,503,504,524].includes(this.#e)}isRetryable(){return String(this.#e).startsWith(`5`)}#t=!0;get reportable(){return this.#t}preventReport(){this.#t=!1}};function We(e,t){try{return Me(e)}catch(n){if(!(n instanceof I))throw n;let r={lineText:e.split(`
|
|
31
|
+
`)[n.line-1],line:n.line,column:n.column-1,file:t,fileText:e};throw new Y({text:n.message.substring(0,n.message.indexOf(`
|
|
32
|
+
`)),location:r,telemetryMessage:`TOML parse error`})}}e(We,`parseTOML`);function Ge(e,t){return Ke(e,t)}e(Ge,`parsePackageJSON`);function Ke(e,t){return X(e,t,{allowEmptyContent:!1,allowTrailingComma:!1,disallowComments:!0})}e(Ke,`parseJSON`);function X(e,t,n={allowTrailingComma:!0}){let r=[],i=me(e,r,n);if(r.length)throw new Y({text:ge(r[0].error),location:{...Je({file:t,fileText:e},r[0].offset+1),length:r[0].length},telemetryMessage:`JSON(C) parse error`});return i}e(X,`parseJSONC`);function qe(e){try{return r(e)}catch(t){let{message:n}=t;throw new Y({text:`Could not read file: ${e}`,notes:[{text:n.replace(e,l(e))}],telemetryMessage:!1})}}e(qe,`readFileSyncToBuffer`);function Z(e){try{return tt(r(e),e)}catch(t){if(t instanceof Y)throw t;let{message:n}=t;throw new Y({text:`Could not read file: ${e}`,notes:[{text:n.replace(e,l(e))}],telemetryMessage:`Could not read file`})}}e(Z,`readFileSync`);function Je(e,t){let n,r=0,i=0,a=0,{fileText:o=``}=e;for(let e of o.split(`
|
|
33
|
+
`))if(r++,a+=e.length+1,a>=t){n=e,i=e.length-(a-t);break}return{lineText:n,line:r,column:i,...e}}e(Je,`indexLocation`);function Ye(e,t){let n,r,i=0,a=0,o=String(t),{fileText:s=``}=e;for(let e of s.split(`
|
|
34
|
+
`)){i++;let t=e.indexOf(o);if(t>=0){n=e,a=t,r=o.length;break}}return{lineText:n,line:i,column:a,length:r,...e}}e(Ye,`searchLocation`);var Xe={nanoseconds:1e-9,nanosecond:1e-9,microseconds:1e-6,microsecond:1e-6,milliseconds:.001,millisecond:.001,seconds:1,second:1,minutes:60,minute:60,hours:3600,hour:3600,days:86400,day:86400,weeks:604800,week:604800,month:18144e3,year:220752e3,nsecs:1e-9,nsec:1e-9,usecs:1e-6,usec:1e-6,msecs:.001,msec:.001,secs:1,sec:1,mins:60,min:60,ns:1e-9,us:1e-6,ms:.001,mo:18144e3,yr:220752e3,s:1,m:60,h:3600,d:86400,w:604800,y:220752e3};function Ze(e){let t=new Map(Object.entries(Xe));e=e.trim().toLowerCase();let n=1;for(let[r,i]of t)if(e.endsWith(r)){e=e.substring(0,e.length-r.length),n=t.get(r)||1;break}return Number(e)*n}e(Ze,`parseHumanDuration`);function Qe(e){if(e==null||e.includes(`-`))return e;if(e.length!=32)return null;let t=[];t.push(e.slice(0,8)),t.push(e.slice(8,12)),t.push(e.slice(12,16)),t.push(e.slice(16,20)),t.push(e.slice(20));let n=``;return t.forEach(e=>n+=e+`-`),n.slice(0,36)}e(Qe,`parseNonHyphenedUuid`);function $e(e,t=void 0){let n=e.match(/^(\d*\.*\d*)\s*([kKmMgGtTpP]{0,1})([i]{0,1}[bB]{0,1})$/);if(!n)return NaN;let r=n[1];if(r.length===0||isNaN(Number(r)))return NaN;let i=n[2].toLowerCase(),a={k:1,m:2,g:3,t:4,p:5};if(i.length!==0&&!(i in a))return NaN;let o=n[3].toLowerCase()==`ib`;if(o&&i.length===0)return NaN;let s=a[i]||0;return Math.floor(Number(r)*(t??(o?1024:1e3))**+s)}e($e,`parseByteSize`);var et=[{buffer:Buffer.from([0,0,254,255]),encoding:`UTF-32 BE`},{buffer:Buffer.from([255,254,0,0]),encoding:`UTF-32 LE`},{buffer:Buffer.from([254,255]),encoding:`UTF-16 BE`},{buffer:Buffer.from([255,254]),encoding:`UTF-16 LE`}];function tt(e,t){for(let n of et)if(e.length>=n.buffer.length&&e.subarray(0,n.buffer.length).equals(n.buffer))throw new Y({text:`Configuration file contains ${n.encoding} byte order marker`,notes:[{text:`The file "${t}" appears to be encoded as ${n.encoding}. Please save the file as UTF-8 without BOM.`}],location:{file:t,line:1,column:0},telemetryMessage:`${n.encoding} BOM detected`});let n=e.toString(`utf-8`);return n.charCodeAt(0)===65279?n.slice(1):n}e(tt,`removeBOMAndValidate`);var nt=Symbol.for(`inherit_binding`),rt=`cf:service=`,it=`cf:environment=`,at=`.wrangler/deploy/config.json`;function ot(e,t){return s(e)?e:l(t||`.`,e)}e(ot,`absolute`);function st(e,t){let{last:n,cwd:r}=t||{},i=ot(e,r),a=ot(n||`/`,r),s,c=[];for(;s!==a&&(c.push(i),i=o(s=i),i!==s););return c}e(st,`up`);function Q(e,t){let n,r;for(n of st(t&&t.cwd||``,t))try{if(r=c(n,e),i(r).isFile())return r}catch{}}e(Q,`file`);function ct(e,t){let n,r;for(n of st(t&&t.cwd||``,t))try{if(r=c(n,e),i(r).isDirectory())return r}catch{}}e(ct,`dir`);function lt({config:e,script:t},n){return e===void 0?ut(t===void 0?process.cwd():a.dirname(t),n):{userConfigPath:e,configPath:e,deployConfigPath:void 0,redirected:!1}}e(lt,`resolveWranglerConfigPath`);function ut(e=process.cwd(),{useRedirectIfAvailable:t=!1}={}){let n=Q(`wrangler.json`,{cwd:e})??Q(`wrangler.jsonc`,{cwd:e})??Q(`wrangler.toml`,{cwd:e});if(!t)return{userConfigPath:n,configPath:n,deployConfigPath:void 0,redirected:!1};let{configPath:r,deployConfigPath:i,redirected:a}=dt(e,n);return{userConfigPath:n,configPath:r,deployConfigPath:i,redirected:a}}e(ut,`findWranglerConfig`);function dt(e,t){let r=Q(at,{cwd:e});if(r===void 0)return{configPath:t,deployConfigPath:r,redirected:!1};let i,o=Z(r);try{let e=X(o,r);i=e.configPath&&a.resolve(a.dirname(r),e.configPath)}catch(e){throw new f(`Failed to parse the deploy configuration file at ${a.relative(`.`,r)}`,{cause:e,telemetryMessage:!1})}if(!i)throw new f(d`
|
|
35
|
+
A deploy configuration file was found at "${a.relative(`.`,r)}".
|
|
36
|
+
But this is not valid - the required "configPath" property was not found.
|
|
37
|
+
Instead this file contains:
|
|
38
|
+
\`\`\`
|
|
39
|
+
${o}
|
|
40
|
+
\`\`\`
|
|
41
|
+
`,{telemetryMessage:!1});if(!n(i))throw new f(d`
|
|
42
|
+
There is a deploy configuration at "${a.relative(`.`,r)}".
|
|
43
|
+
But the redirected configuration path it points to, "${a.relative(`.`,i)}", does not exist.
|
|
44
|
+
`,{telemetryMessage:!1});if(t){let e=a.join(a.dirname(t),at);if(e!==r)throw new f(d`
|
|
45
|
+
Found both a user configuration file at "${a.relative(`.`,t)}"
|
|
46
|
+
and a deploy configuration file at "${a.relative(`.`,r)}".
|
|
47
|
+
But these do not share the same base path so it is not clear which should be used.
|
|
48
|
+
|
|
49
|
+
A deploy configuration file is generated by a build tool to redirect Wrangler to the configuration it generated.
|
|
50
|
+
It is only applied when it sits alongside the user configuration file, which here would be "${a.relative(`.`,e)}".
|
|
51
|
+
|
|
52
|
+
Please either delete "${a.relative(`.`,r)}" if it is left over from a previous build,
|
|
53
|
+
or try running this command from the directory containing the configuration you want to use.
|
|
54
|
+
See https://developers.cloudflare.com/workers/wrangler/configuration/#generated-wrangler-configuration
|
|
55
|
+
`,{telemetryMessage:!1})}return{configPath:i,deployConfigPath:r,redirected:!0}}e(dt,`findRedirectedWranglerConfig`);function ft(e){return e.configPath!==void 0&&e.configPath!==e.userConfigPath}e(ft,`isRedirectedConfig`);function pt(e,t,n){return ft({configPath:t,userConfigPath:n})}e(pt,`isRedirectedRawConfig`);function $(e){return e?.endsWith(`toml`)?`toml`:e?.endsWith(`jsonc`)?`jsonc`:e?.endsWith(`json`)?`json`:`none`}e($,`configFormat`);function mt(e){switch($(e)){case`toml`:return`wrangler.toml`;case`json`:return`wrangler.json`;case`jsonc`:return`wrangler.jsonc`;default:return`Wrangler configuration`}}e(mt,`configFileName`);function ht(e,t,n=!0){return $(t)===`toml`?He(e):n?JSON.stringify(e,null,2):JSON.stringify(e)}e(ht,`formatConfigSnippet`);var gt=/* @__PURE__ */ e(e=>e.endsWith(`.toml`)?We(Z(e),e):e.endsWith(`.json`)||e.endsWith(`.jsonc`)?X(Z(e),e):{},`parseRawConfigFile`),_t=/* @__PURE__ */ e((e,t={})=>{let{configPath:n,userConfigPath:r,deployConfigPath:i,redirected:a}=lt(e,t);return{rawConfig:gt(n??``),configPath:n,userConfigPath:r,deployConfigPath:i,redirected:a}},`experimental_readRawConfig`);
|
|
56
|
+
/*! Bundled license information:
|
|
57
|
+
|
|
58
|
+
smol-toml/dist/error.js:
|
|
59
|
+
(*!
|
|
60
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
61
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
62
|
+
*
|
|
63
|
+
* Redistribution and use in source and binary forms, with or without
|
|
64
|
+
* modification, are permitted provided that the following conditions are met:
|
|
65
|
+
*
|
|
66
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
67
|
+
* list of conditions and the following disclaimer.
|
|
68
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
69
|
+
* this list of conditions and the following disclaimer in the
|
|
70
|
+
* documentation and/or other materials provided with the distribution.
|
|
71
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
72
|
+
* may be used to endorse or promote products derived from this software without
|
|
73
|
+
* specific prior written permission.
|
|
74
|
+
*
|
|
75
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
76
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
77
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
78
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
79
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
80
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
81
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
82
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
83
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
84
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
85
|
+
*)
|
|
86
|
+
|
|
87
|
+
smol-toml/dist/primitive.js:
|
|
88
|
+
(*!
|
|
89
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
90
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
91
|
+
*
|
|
92
|
+
* Redistribution and use in source and binary forms, with or without
|
|
93
|
+
* modification, are permitted provided that the following conditions are met:
|
|
94
|
+
*
|
|
95
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
96
|
+
* list of conditions and the following disclaimer.
|
|
97
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
98
|
+
* this list of conditions and the following disclaimer in the
|
|
99
|
+
* documentation and/or other materials provided with the distribution.
|
|
100
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
101
|
+
* may be used to endorse or promote products derived from this software without
|
|
102
|
+
* specific prior written permission.
|
|
103
|
+
*
|
|
104
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
105
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
106
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
107
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
108
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
109
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
110
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
111
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
112
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
113
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
114
|
+
*)
|
|
115
|
+
|
|
116
|
+
smol-toml/dist/date.js:
|
|
117
|
+
(*!
|
|
118
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
119
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
120
|
+
*
|
|
121
|
+
* Redistribution and use in source and binary forms, with or without
|
|
122
|
+
* modification, are permitted provided that the following conditions are met:
|
|
123
|
+
*
|
|
124
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
125
|
+
* list of conditions and the following disclaimer.
|
|
126
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
127
|
+
* this list of conditions and the following disclaimer in the
|
|
128
|
+
* documentation and/or other materials provided with the distribution.
|
|
129
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
130
|
+
* may be used to endorse or promote products derived from this software without
|
|
131
|
+
* specific prior written permission.
|
|
132
|
+
*
|
|
133
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
134
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
135
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
136
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
137
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
138
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
139
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
140
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
141
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
142
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
143
|
+
*)
|
|
144
|
+
|
|
145
|
+
smol-toml/dist/extract.js:
|
|
146
|
+
(*!
|
|
147
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
148
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
149
|
+
*
|
|
150
|
+
* Redistribution and use in source and binary forms, with or without
|
|
151
|
+
* modification, are permitted provided that the following conditions are met:
|
|
152
|
+
*
|
|
153
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
154
|
+
* list of conditions and the following disclaimer.
|
|
155
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
156
|
+
* this list of conditions and the following disclaimer in the
|
|
157
|
+
* documentation and/or other materials provided with the distribution.
|
|
158
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
159
|
+
* may be used to endorse or promote products derived from this software without
|
|
160
|
+
* specific prior written permission.
|
|
161
|
+
*
|
|
162
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
163
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
164
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
165
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
166
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
167
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
168
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
169
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
170
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
171
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
172
|
+
*)
|
|
173
|
+
|
|
174
|
+
smol-toml/dist/util.js:
|
|
175
|
+
(*!
|
|
176
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
177
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
178
|
+
*
|
|
179
|
+
* Redistribution and use in source and binary forms, with or without
|
|
180
|
+
* modification, are permitted provided that the following conditions are met:
|
|
181
|
+
*
|
|
182
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
183
|
+
* list of conditions and the following disclaimer.
|
|
184
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
185
|
+
* this list of conditions and the following disclaimer in the
|
|
186
|
+
* documentation and/or other materials provided with the distribution.
|
|
187
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
188
|
+
* may be used to endorse or promote products derived from this software without
|
|
189
|
+
* specific prior written permission.
|
|
190
|
+
*
|
|
191
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
192
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
193
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
194
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
195
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
196
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
197
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
198
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
199
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
200
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
201
|
+
*)
|
|
202
|
+
|
|
203
|
+
smol-toml/dist/struct.js:
|
|
204
|
+
(*!
|
|
205
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
206
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
207
|
+
*
|
|
208
|
+
* Redistribution and use in source and binary forms, with or without
|
|
209
|
+
* modification, are permitted provided that the following conditions are met:
|
|
210
|
+
*
|
|
211
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
212
|
+
* list of conditions and the following disclaimer.
|
|
213
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
214
|
+
* this list of conditions and the following disclaimer in the
|
|
215
|
+
* documentation and/or other materials provided with the distribution.
|
|
216
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
217
|
+
* may be used to endorse or promote products derived from this software without
|
|
218
|
+
* specific prior written permission.
|
|
219
|
+
*
|
|
220
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
221
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
222
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
223
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
224
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
225
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
226
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
227
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
228
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
229
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
230
|
+
*)
|
|
231
|
+
|
|
232
|
+
smol-toml/dist/parse.js:
|
|
233
|
+
(*!
|
|
234
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
235
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
236
|
+
*
|
|
237
|
+
* Redistribution and use in source and binary forms, with or without
|
|
238
|
+
* modification, are permitted provided that the following conditions are met:
|
|
239
|
+
*
|
|
240
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
241
|
+
* list of conditions and the following disclaimer.
|
|
242
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
243
|
+
* this list of conditions and the following disclaimer in the
|
|
244
|
+
* documentation and/or other materials provided with the distribution.
|
|
245
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
246
|
+
* may be used to endorse or promote products derived from this software without
|
|
247
|
+
* specific prior written permission.
|
|
248
|
+
*
|
|
249
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
250
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
251
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
252
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
253
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
254
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
255
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
256
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
257
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
258
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
259
|
+
*)
|
|
260
|
+
|
|
261
|
+
smol-toml/dist/stringify.js:
|
|
262
|
+
(*!
|
|
263
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
264
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
265
|
+
*
|
|
266
|
+
* Redistribution and use in source and binary forms, with or without
|
|
267
|
+
* modification, are permitted provided that the following conditions are met:
|
|
268
|
+
*
|
|
269
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
270
|
+
* list of conditions and the following disclaimer.
|
|
271
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
272
|
+
* this list of conditions and the following disclaimer in the
|
|
273
|
+
* documentation and/or other materials provided with the distribution.
|
|
274
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
275
|
+
* may be used to endorse or promote products derived from this software without
|
|
276
|
+
* specific prior written permission.
|
|
277
|
+
*
|
|
278
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
279
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
280
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
281
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
282
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
283
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
284
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
285
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
286
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
287
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
288
|
+
*)
|
|
289
|
+
|
|
290
|
+
smol-toml/dist/index.js:
|
|
291
|
+
(*!
|
|
292
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
293
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
294
|
+
*
|
|
295
|
+
* Redistribution and use in source and binary forms, with or without
|
|
296
|
+
* modification, are permitted provided that the following conditions are met:
|
|
297
|
+
*
|
|
298
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
299
|
+
* list of conditions and the following disclaimer.
|
|
300
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
301
|
+
* this list of conditions and the following disclaimer in the
|
|
302
|
+
* documentation and/or other materials provided with the distribution.
|
|
303
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
304
|
+
* may be used to endorse or promote products derived from this software without
|
|
305
|
+
* specific prior written permission.
|
|
306
|
+
*
|
|
307
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
308
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
309
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
310
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
311
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
312
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
313
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
314
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
315
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
316
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
317
|
+
*)
|
|
318
|
+
*/
|
|
319
|
+
export{He as A,X as C,_ as D,We as E,p as M,f as N,Z as O,u as P,Ke as S,Ge as T,b as _,rt as a,pt as b,ct as c,ht as d,w as f,C as g,y as h,Y as i,D as j,T as k,_t as l,S as m,it as n,ye as o,E as p,nt as r,mt as s,Ue as t,_e as u,x as v,Qe as w,ve as x,v as y};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{createRequire as e}from"node:module";const t=e(import.meta.url||(typeof __filename==`string`?__filename:`/`));var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t)=>r(e,`name`,{value:t,configurable:!0}),l=/* @__PURE__ */ (e=>t===void 0?typeof Proxy<`u`?new Proxy(e,{get:(e,n)=>(t===void 0?e:t)[n]}):e:t)(function(e){if(t!==void 0)return t.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)}),u=(e,t)=>function(){return t||(0,e[a(e)[0]])((t={exports:{}}).exports,t),t.exports},d=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},f=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of a(t))!s.call(e,c)&&c!==n&&r(e,c,{get:()=>t[c],enumerable:!(o=i(t,c))||o.enumerable});return e},p=(e,t,i)=>(i=e==null?{}:n(o(e)),f(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e));export{p as a,l as i,d as n,c as r,u as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{createRequire as e}from"node:module";const t=e(import.meta.url||(typeof __filename==`string`?__filename:`/`));var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t)=>r(e,`name`,{value:t,configurable:!0}),l=/* @__PURE__ */ (e=>t===void 0?typeof Proxy<`u`?new Proxy(e,{get:(e,n)=>(t===void 0?e:t)[n]}):e:t)(function(e){if(t!==void 0)return t.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)}),u=(e,t)=>function(){return e&&(t=(0,e[a(e)[0]])(e=0)),t},d=(e,t)=>function(){return t||(0,e[a(e)[0]])((t={exports:{}}).exports,t),t.exports},f=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},p=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of a(t))!s.call(e,c)&&c!==n&&r(e,c,{get:()=>t[c],enumerable:!(o=i(t,c))||o.enumerable});return e},m=(e,t,i)=>(i=e==null?{}:n(o(e)),p(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)),h=e=>p(r({},`__esModule`,{value:!0}),e);export{l as a,c as i,u as n,h as o,f as r,m as s,d as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e,t}from"./metadata-
|
|
2
|
+
import{n as e,t}from"./metadata-Df5kCWJv.mjs";import{r as n}from"./theme-CQ_TYifs.mjs";import{t as r}from"./cli-exit-CstFZ1eJ.mjs";import"./ui-YmjF66Ct.mjs";import{t as i}from"./output-BOe-3AQG.mjs";import{a,f as o,m as s,t as c,u as l}from"./run-BvHwWWUX.mjs";import u from"minisearch";function d({enabled:e,source:t}){let r=e?n.success(`Enabled`):n.error(`Disabled`),i=l(t);return`Status: ${r}${i?` (set by ${i})`:``}\n`}const f={command:`disable`,describe:`Disable cf telemetry collection`,handler:()=>{s(!1);let{enabled:e,source:t}=o();console.log(d({enabled:e,source:t})),console.log(e?`cf is collecting usage telemetry because ${l(t)}=true overrides this setting.\n`:`cf is no longer collecting usage telemetry.
|
|
3
3
|
`)}},p={command:`enable`,describe:`Enable cf telemetry collection`,handler:()=>{s(!0);let{enabled:e,source:t}=o();console.log(d({enabled:e,source:t})),console.log(e?`cf is now collecting anonymous usage telemetry. Thank you for helping make cf better.
|
|
4
4
|
`:`cf is not collecting usage telemetry because ${l(t)}${t===`env`||t===`wrangler-env`?`=false`:``} overrides this setting.\n`)}},m={command:`status`,describe:`Check whether cf telemetry collection is enabled`,handler:()=>{console.log(d(o())),console.log(n.muted(`Configure on this machine: \`cf cli telemetry enable\` / \`cf cli telemetry disable\`.
|
|
5
5
|
Override per invocation with ${a}=true/false. DO_NOT_TRACK is also honored.\nLearn more: https://github.com/cloudflare/cf/blob/main/packages/cli/telemetry.md`))}},h={command:`telemetry`,describe:`Configure whether cf collects anonymous usage telemetry`,builder:e=>e.command(m).command(p).command(f).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function g(e,t){let n=e.fullPath.slice(0,-1).map((t,n)=>e.fullPath.slice(0,n+1).join(` `));return{command:e.command,summary:e.summary||e.description.split(`
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e}from"./auth-
|
|
2
|
+
import{n as e}from"./auth-CGLsxbc6.mjs";import{i as t}from"./context-q7UaYK69.mjs";import{t as n}from"./output-BOe-3AQG.mjs";import{t as r}from"./dry-run-DRj2_uV3.mjs";import{t as i}from"./progress-BtkTVcHI.mjs";import{t as a}from"./run-BvHwWWUX.mjs";import"./telemetry-BsYO3nxG.mjs";import{n as o,t as s}from"./body-parser-DkHKPkJ7.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";import{a as l,n as u}from"./prompt-RlgRrmbm.mjs";import{t as d}from"./cli-types-9oYmRTHJ.mjs";function f(e){return e.usage(`$0 client-certificates create
|
|
3
3
|
|
|
4
|
-
Create a new API Shield mTLS Client Certificate.`).option(`csr`,{type:`string`,description:`The Certificate Signing Request (CSR). Must be newline-encoded.`}).option(`validity-days`,{type:`number`,description:`The number of days the Client Certificate will be valid after the issued_on date.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const p={command:`create`,describe:`Create Client Certificate`,builder:f,handler:async u=>a({command:`client-certificates create`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf client-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/client_certificates`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({csr:c(u.csr,`csr`,`text`),validity_days:u[`validity-days`]}):o(u.body)});return}let a=await e(u),d=await t({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body)
|
|
4
|
+
Create a new API Shield mTLS Client Certificate.`).option(`csr`,{type:`string`,description:`The Certificate Signing Request (CSR). Must be newline-encoded.`}).option(`validity-days`,{type:`number`,description:`The number of days the Client Certificate will be valid after the issued_on date.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const p={command:`create`,describe:`Create Client Certificate`,builder:f,handler:async u=>a({command:`client-certificates create`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf client-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/client_certificates`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({csr:c(u.csr,`csr`,`text`),validity_days:u[`validity-days`]}):o(u.body)});return}let a=await e(u),d=await t({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body),t=await i(`Creating`,async()=>a.clientCertificates.create({...e,zone_id:d}));n(t,{successLabel:`Created`});return}if(u.csr===void 0&&(u.csr=await l(`csr`,`The Certificate Signing Request (CSR). Must be newline-encoded.`)),u[`validity-days`]===void 0)throw Error(`--validity-days is required (or pass --body with this field set).`);let f=s({csr:c(u.csr,`csr`,`text`),validity_days:u[`validity-days`]}),p=await i(`Creating`,async()=>a.clientCertificates.create({...f,zone_id:d}));n(p,{successLabel:`Created`})})};function m(e){return e.usage(`$0 client-certificates delete <client-certificate-id>
|
|
5
5
|
|
|
6
6
|
Set a API Shield mTLS Client Certificate to pending_revocation status for processing to revoked status.`).positional(`client-certificate-id`,{type:`string`,description:`Client Certificate Tag`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const h={command:`delete <client-certificate-id>`,describe:`Revoke Client Certificate`,builder:m,handler:async o=>a({command:`client-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf client-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/client_certificates/${o[`client-certificate-id`]==null?`<client-certificate-id>`:encodeURIComponent(String(o[`client-certificate-id`]))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),"client-certificate-id":String(o[`client-certificate-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await u({force:!!o.force})){process.stderr.write(`Aborted.
|
|
7
|
-
`);return}
|
|
7
|
+
`);return}let c=await i(`Deleting`,async()=>a.clientCertificates.delete({zone_id:s,client_certificate_id:o[`client-certificate-id`]}));n(c,{successLabel:`Deleted`})})};function g(e){return e.usage(`$0 client-certificates edit <client-certificate-id>
|
|
8
8
|
|
|
9
|
-
If a API Shield mTLS Client Certificate is in a pending_revocation state, you may reactivate it with this endpoint.`).positional(`client-certificate-id`,{type:`string`,description:`Client Certificate Tag`,demandOption:!0}).option(`reactivate`,{type:`boolean`,description:`The reactivate field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const _={command:`edit <client-certificate-id>`,describe:`Reactivate Client Certificate`,builder:g,handler:async c=>a({command:`client-certificates edit`,classification:{safeFlags:[`reactivate`,`dry-run`]}},c,async()=>{if(c.dryRun){r({command:`cf client-certificates edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/client_certificates/${c[`client-certificate-id`]==null?`<client-certificate-id>`:encodeURIComponent(String(c[`client-certificate-id`]))}`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``),"client-certificate-id":String(c[`client-certificate-id`]??``)},bodyKind:`json`,body:c.body===void 0?s({reactivate:c.reactivate}):o(c.body)});return}let a=await e(c),l=await t({zone:c.zone},a,{quiet:c.quiet});if(c.zoneId=l,c.body){let e=o(c.body)
|
|
9
|
+
If a API Shield mTLS Client Certificate is in a pending_revocation state, you may reactivate it with this endpoint.`).positional(`client-certificate-id`,{type:`string`,description:`Client Certificate Tag`,demandOption:!0}).option(`reactivate`,{type:`boolean`,description:`The reactivate field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const _={command:`edit <client-certificate-id>`,describe:`Reactivate Client Certificate`,builder:g,handler:async c=>a({command:`client-certificates edit`,classification:{safeFlags:[`reactivate`,`dry-run`]}},c,async()=>{if(c.dryRun){r({command:`cf client-certificates edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/client_certificates/${c[`client-certificate-id`]==null?`<client-certificate-id>`:encodeURIComponent(String(c[`client-certificate-id`]))}`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``),"client-certificate-id":String(c[`client-certificate-id`]??``)},bodyKind:`json`,body:c.body===void 0?s({reactivate:c.reactivate}):o(c.body)});return}let a=await e(c),l=await t({zone:c.zone},a,{quiet:c.quiet});if(c.zoneId=l,c.body){let e=o(c.body),t=await i(`Updating`,async()=>a.clientCertificates.edit({...e,zone_id:l,client_certificate_id:c[`client-certificate-id`]}));n(t,{successLabel:`Updated`});return}let u=s({reactivate:c.reactivate}),d=await i(`Updating`,async()=>a.clientCertificates.edit({...u,zone_id:l,client_certificate_id:c[`client-certificate-id`]}));n(d,{successLabel:`Updated`})})};function v(e){return e.usage(`$0 client-certificates get <client-certificate-id>
|
|
10
10
|
|
|
11
|
-
Get Details for a single mTLS API Shield Client Certificate.`).positional(`client-certificate-id`,{type:`string`,description:`Client Certificate Tag`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get <client-certificate-id>`,describe:`Client Certificate Details`,builder:v,handler:async o=>a({command:`client-certificates get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf client-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/client_certificates/${o[`client-certificate-id`]==null?`<client-certificate-id>`:encodeURIComponent(String(o[`client-certificate-id`]))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),"client-certificate-id":String(o[`client-certificate-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s
|
|
11
|
+
Get Details for a single mTLS API Shield Client Certificate.`).positional(`client-certificate-id`,{type:`string`,description:`Client Certificate Tag`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get <client-certificate-id>`,describe:`Client Certificate Details`,builder:v,handler:async o=>a({command:`client-certificates get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf client-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/client_certificates/${o[`client-certificate-id`]==null?`<client-certificate-id>`:encodeURIComponent(String(o[`client-certificate-id`]))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),"client-certificate-id":String(o[`client-certificate-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.clientCertificates.get({zone_id:s,client_certificate_id:o[`client-certificate-id`]}));n(c,{successLabel:`Loaded`})})};function b(e){return e.usage(`$0 client-certificates list
|
|
12
12
|
|
|
13
|
-
List all of your Zone's API Shield mTLS Client Certificates by Status and/or using Pagination.`).option(`status`,{type:`string`,description:`Client Certitifcate Status to filter results by.`,choices:[`all`,`active`,`pending_reactivation`,`pending_revocation`,`revoked`]}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of records per page.`}).option(`limit`,{type:`number`,description:`Limit to the number of records returned.`}).option(`offset`,{type:`number`,description:`Offset the results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`list`,describe:`List Client Certificates`,builder:d(b),handler:async o=>a({command:`client-certificates list`,classification:{safeFlags:[`status`,`dry-run`]}},o,async()=>{let a={status:o.status,page:o.page,per_page:o[`per-page`],limit:o.limit,offset:o.offset};if(o.dryRun){r({command:`cf client-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/client_certificates`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await e(o),c=await t({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c
|
|
13
|
+
List all of your Zone's API Shield mTLS Client Certificates by Status and/or using Pagination.`).option(`status`,{type:`string`,description:`Client Certitifcate Status to filter results by.`,choices:[`all`,`active`,`pending_reactivation`,`pending_revocation`,`revoked`]}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of records per page.`}).option(`limit`,{type:`number`,description:`Limit to the number of records returned.`}).option(`offset`,{type:`number`,description:`Offset the results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`list`,describe:`List Client Certificates`,builder:d(b),handler:async o=>a({command:`client-certificates list`,classification:{safeFlags:[`status`,`dry-run`]}},o,async()=>{let a={status:o.status,page:o.page,per_page:o[`per-page`],limit:o.limit,offset:o.offset};if(o.dryRun){r({command:`cf client-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/client_certificates`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await e(o),c=await t({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c;let l=await i(`Loading`,async()=>s.clientCertificates.list({zone_id:c,...a}));n(l,{successLabel:`Loaded`})})},S={command:`client-certificates`,describe:`client-certificates`,builder:e=>e.command(p).command(h).command(_).command(y).command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{S as default};
|