cf 0.0.6 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -4
- package/bin/cf +11 -0
- package/dist/_meta/agent-context.json +7 -7
- package/dist/_meta/commands.json +9051 -1085
- package/dist/abuse-reports-ChV_yD7f.mjs +8 -0
- package/dist/accounts-BCYecXFh.mjs +21 -0
- package/dist/acm-DD8zSds2.mjs +3 -0
- package/dist/addressing-D4Eqw5Bi.mjs +13 -0
- package/dist/{agent-context-BBJnI_Q7.mjs → agent-context-D26woB9J.mjs} +1 -1
- package/dist/ai-DfXMOMx_.mjs +2 -0
- package/dist/ai-gateway-DdRFthMo.mjs +8 -0
- package/dist/ai-search-C_68CDj1.mjs +7 -0
- package/dist/alerting-DbhqhVCp.mjs +6 -0
- package/dist/analytics-BSBBc7ep.mjs +20 -0
- package/dist/api-gateway-CZ4swbkQ.mjs +33 -0
- package/dist/argo-tms9ZwHO.mjs +2 -0
- package/dist/audit-logs-24qyW8cl.mjs +2 -0
- package/dist/auth-BlSmtIKd.mjs +112 -0
- package/dist/auth-DQ8miey6.mjs +6 -0
- package/dist/autorag-kgNt06GD.mjs +2 -0
- package/dist/billing-lwBHNTXC.mjs +2 -0
- package/dist/body-parser-Br-BoYk-.mjs +2 -0
- package/dist/bot-management-LKf7BqUr.mjs +5 -0
- package/dist/botnet-feed-nQ-gErTS.mjs +3 -0
- package/dist/brand-protection-DOKv9GRr.mjs +3 -0
- package/dist/browser-rendering-CBExtgGt.mjs +4 -0
- package/dist/build-C_48VvoK.mjs +1056 -0
- package/dist/{builds-B5sC8Gh_.mjs → builds-C_ySULja.mjs} +1 -1
- package/dist/cache-BBiiNZHP.mjs +5 -0
- package/dist/calls-DA5Xzwev.mjs +4 -0
- package/dist/certificate-authorities-sXyR_yGp.mjs +2 -0
- package/dist/chunk-DH-VkVmc.mjs +2 -0
- package/dist/client-certificates-tV0aCLQJ.mjs +3 -0
- package/dist/cloud-connector-DZfHcSso.mjs +2 -0
- package/dist/cloudforce-one-y1PgQmI9.mjs +21 -0
- package/dist/{completions-BSRqbcrz.mjs → completions-BKrxcfhN.mjs} +1 -1
- package/dist/config-BIfdEY0E.mjs +2 -0
- package/dist/connectivity-8SOqaFDn.mjs +3 -0
- package/dist/content-scanning-B9y6K_G5.mjs +4 -0
- package/dist/context-DTIbtQn5.mjs +2 -0
- package/dist/custom-certificates-sWksR8Ys.mjs +5 -0
- package/dist/custom-hostnames-91QZkdqN.mjs +5 -0
- package/dist/custom-nameservers-DajZaZvE.mjs +3 -0
- package/dist/custom-pages-Cu7gmwzT.mjs +4 -0
- package/dist/d1-H_VRsVmF.mjs +3 -0
- package/dist/dcv-delegation-C-qhEYEZ.mjs +2 -0
- package/dist/delegate.mjs +2 -0
- package/dist/deploy--9wYOkHg.mjs +2 -0
- package/dist/dev-BfKYB-R_.mjs +6 -0
- package/dist/diagnostics-D2B2LPZZ.mjs +3 -0
- package/dist/dispatch-namespaces-CyrXBU_w.mjs +7 -0
- package/dist/dist-C_bu5HwZ.mjs +82 -0
- package/dist/dist-DvKjT2TT.mjs +303 -0
- package/dist/dns-Bn9Uz_Nj.mjs +29 -0
- package/dist/dns-firewall-BslP4p-j.mjs +57 -0
- package/dist/durable-objects-BN1ZnHhm.mjs +2 -0
- package/dist/email-routing-n2TnTaRR.mjs +10 -0
- package/dist/email-security-C9SEx0kh.mjs +60 -0
- package/dist/email-sending-DayZ7u3I.mjs +3 -0
- package/dist/filters-CI_XTgfQ.mjs +4 -0
- package/dist/firewall-CcaayGig.mjs +11 -0
- package/dist/fraud-Cr7aPCV8.mjs +8 -0
- package/dist/google-tag-gateway-B3GpYgQ4.mjs +2 -0
- package/dist/healthchecks-CVTsR_OC.mjs +4 -0
- package/dist/hostnames-Bd_Wa5l6.mjs +3 -0
- package/dist/hyperdrive-BBJhEDZd.mjs +18 -0
- package/dist/iam-D_FN0pDF.mjs +6 -0
- package/dist/images-CAP2hAlZ.mjs +5 -0
- package/dist/index.mjs +1 -1
- package/dist/input-validation-zEO81MWN.mjs +2 -0
- package/dist/intel-CkxfzqmJ.mjs +3 -0
- package/dist/ips-B0cK7D0_.mjs +2 -0
- package/dist/keyless-certificates-LcLmHZsX.mjs +3 -0
- package/dist/kv-_TkUQ6fs.mjs +5 -0
- package/dist/leaked-credential-checks-Dhvaen22.mjs +3 -0
- package/dist/lib-Eu1wXxuh.mjs +68 -0
- package/dist/load-balancers-Ckr0UIpk.mjs +6 -0
- package/dist/local-VJaJ3BZ1.mjs +2 -0
- package/dist/logpush-Cj946hxT.mjs +4 -0
- package/dist/logs-DgC9hjvJ.mjs +3 -0
- package/dist/magic-cloud-networking-WbDvPzuG.mjs +5 -0
- package/dist/magic-network-monitoring-BcHShvGQ.mjs +4 -0
- package/dist/magic-transit-B8sCOkt_.mjs +89 -0
- package/dist/managed-transforms-BpOr-8HY.mjs +3 -0
- package/dist/mtls-certificates-fOul8D5g.mjs +3 -0
- package/dist/network-interconnects-BSW65xlh.mjs +36 -0
- package/dist/organizations-T4vKGFAb.mjs +41 -0
- package/dist/origin-ca-certificates-ChM0lZ64.mjs +3 -0
- package/dist/origin-post-quantum-encryption-C7o26ARh.mjs +2 -0
- package/dist/origin-tls-client-auth-D32dpZk_.mjs +5 -0
- package/dist/{output-CqGQp2r6.mjs → output-D7_yAFVR.mjs} +1 -1
- package/dist/page-rules-RFoj8CjN.mjs +18 -0
- package/dist/page-shield-VTktzKDN.mjs +37 -0
- package/dist/pages-L1ITjXDZ.mjs +10 -0
- package/dist/pipelines-BPO0Lnil.mjs +6 -0
- package/dist/progress-DZfTxbrx.mjs +2 -0
- package/dist/queues-B0C06L9r.mjs +6 -0
- package/dist/r2-DP020Tmq.mjs +21 -0
- package/dist/r2-data-catalog-Dmipvz5F.mjs +14 -0
- package/dist/radar-DR3VMknH.mjs +2 -0
- package/dist/rate-limits-DnHPBPgU.mjs +5 -0
- package/dist/raw-fetch-DlXYwVA8.mjs +2 -0
- package/dist/realtime-kit-C430aq2d.mjs +6 -0
- package/dist/registrar-7Qy50zbW.mjs +46 -0
- package/dist/request-tracers-sv99NDIl.mjs +2 -0
- package/dist/resolve-BuJRWSk0.mjs +2 -0
- package/dist/resource-sharing-uEjC7lnQ.mjs +5 -0
- package/dist/resource-tagging-CiODdP3N.mjs +16 -0
- package/dist/rules-FXAyTrwk.mjs +4 -0
- package/dist/rulesets-B6aUsFFB.mjs +8 -0
- package/dist/rum-CyyGJhp5.mjs +4 -0
- package/dist/{schema-qJlCfmo8.mjs → schema-D0_cbcDt.mjs} +1 -1
- package/dist/schema-validation-ByU49h--.mjs +4 -0
- package/dist/scim-DdTS65_C.mjs +3 -0
- package/dist/{scm-C872x0C2.mjs → scm-CilfPOue.mjs} +1 -1
- package/dist/secrets-store-ClOUVhBJ.mjs +18 -0
- package/dist/security-center-4iSBqTrf.mjs +2 -0
- package/dist/security-txt-kGxdkDY6.mjs +3 -0
- package/dist/session-mW-s8ghP.mjs +2 -0
- package/dist/smart-shield-B-SQd2Qp.mjs +3 -0
- package/dist/snippets-Aq58ojqw.mjs +4 -0
- package/dist/spawn-D_cjG87Z.mjs +10 -0
- package/dist/spectrum-0gFvGI6y.mjs +59 -0
- package/dist/speed-DAZU8w3T.mjs +4 -0
- package/dist/src-C5qivNKH.mjs +108 -0
- package/dist/ssl-BRlXa-5w.mjs +15 -0
- package/dist/stream-BAxsVeBX.mjs +14 -0
- package/dist/tenants-Df6xDqoA.mjs +2 -0
- package/dist/{theme-BKCxTQTe.mjs → theme-BklJDrb2.mjs} +2 -2
- package/dist/token-validation-pO4dCjCy.mjs +4 -0
- package/dist/{tools-CawscCBu.mjs → tools-CtKbk6VS.mjs} +1 -1
- package/dist/turnstile-B1dmO8wE.mjs +23 -0
- package/dist/{ui-Dj3No2vN.mjs → ui-mP_arYIg.mjs} +1 -1
- package/dist/url-normalization-sUDVmrUt.mjs +3 -0
- package/dist/url-scanner-CwOKRkYo.mjs +2 -0
- package/dist/user-D_UrIdNq.mjs +10 -0
- package/dist/vectorize-BEbBn9G9.mjs +4 -0
- package/dist/{vuln-scanner-B1VwCIko.mjs → vuln-scanner-Br_2lQp1.mjs} +1 -1
- package/dist/waiting-rooms-BQC-urV4.mjs +11 -0
- package/dist/web3-CIH2iQeX.mjs +4 -0
- package/dist/workers-B9EvrpH3.mjs +16 -0
- package/dist/workers-builds-DzWSiRd2.mjs +7 -0
- package/dist/workflows-aD81gA4k.mjs +4 -0
- package/dist/zaraz-Cg1dsvrZ.mjs +2 -0
- package/dist/zero-trust-D-xQXWcy.mjs +119 -0
- package/dist/zones-DQzucJDd.mjs +28 -0
- package/package.json +13 -3
- package/dist/abuse-reports-DR0yMg-Q.mjs +0 -2
- package/dist/accounts-BjGtCB8T.mjs +0 -6
- package/dist/acm-h4YPDN7k.mjs +0 -3
- package/dist/addressing-BiEnQ1o1.mjs +0 -11
- package/dist/ai-BPln2Yka.mjs +0 -2
- package/dist/ai-gateway-DgD9nKyd.mjs +0 -8
- package/dist/ai-search-EjrONI5a.mjs +0 -7
- package/dist/alerting-CPWMKr-m.mjs +0 -6
- package/dist/analytics-3dX9-scQ.mjs +0 -2
- package/dist/api-gateway-7FKFHdI-.mjs +0 -9
- package/dist/argo-Dxz9P37E.mjs +0 -2
- package/dist/audit-logs-D_Xw5x8Y.mjs +0 -2
- package/dist/auth-BHD_B2p9.mjs +0 -277
- package/dist/auth-caVo2j1K.mjs +0 -6
- package/dist/autorag-D7nMweNF.mjs +0 -2
- package/dist/billing-yaIBp1Xq.mjs +0 -2
- package/dist/body-parser-iA3vRFmh.mjs +0 -2
- package/dist/bot-management-C0H6U0t4.mjs +0 -2
- package/dist/botnet-feed-BXV9GVwF.mjs +0 -3
- package/dist/brand-protection-CI0NQa_l.mjs +0 -3
- package/dist/browser-rendering-DnKNRJJe.mjs +0 -4
- package/dist/cache-B6M_pm_D.mjs +0 -5
- package/dist/calls-C5XCC0i1.mjs +0 -4
- package/dist/certificate-authorities-BQuHL4dm.mjs +0 -2
- package/dist/client-certificates-CwpzEnCT.mjs +0 -3
- package/dist/cloud-connector-CU3PLNLe.mjs +0 -2
- package/dist/cloudforce-one-DzrArr1o.mjs +0 -21
- package/dist/config-BmTd_qeU.mjs +0 -2
- package/dist/connectivity-C4tXPkW_.mjs +0 -3
- package/dist/content-scanning-CH_YXdlZ.mjs +0 -4
- package/dist/context-6lBIck1r.mjs +0 -2
- package/dist/custom-certificates-pllRyU2y.mjs +0 -3
- package/dist/custom-hostnames-GmF0DfYA.mjs +0 -5
- package/dist/custom-nameservers-DPVHUlUQ.mjs +0 -3
- package/dist/custom-pages-XWwfn7hV.mjs +0 -4
- package/dist/d1-c_zhZGWf.mjs +0 -3
- package/dist/dcv-delegation-pXpU48A8.mjs +0 -2
- package/dist/dev-Bu26u5Jm.mjs +0 -14
- package/dist/diagnostics-BU07Jnku.mjs +0 -3
- package/dist/dispatch-namespaces-D_Kq_2gX.mjs +0 -7
- package/dist/dns-CrvIxztB.mjs +0 -11
- package/dist/dns-firewall-CLtGAQ9x.mjs +0 -3
- package/dist/dry-run-FV0pZwdg.mjs +0 -2
- package/dist/durable-objects-Y5rLFSQX.mjs +0 -2
- package/dist/email-routing-CxU5JlXT.mjs +0 -10
- package/dist/email-security-CnpAHWpj.mjs +0 -8
- package/dist/email-sending-MeCKsktR.mjs +0 -3
- package/dist/filters-Sx2Po1UP.mjs +0 -4
- package/dist/firewall-B0_012XO.mjs +0 -9
- package/dist/fraud-CG0G_VG-.mjs +0 -2
- package/dist/google-tag-gateway-BLbj1y3h.mjs +0 -2
- package/dist/healthchecks-C0LgExxa.mjs +0 -4
- package/dist/hostnames-D4K6s9EX.mjs +0 -3
- package/dist/hyperdrive-D7XvTRys.mjs +0 -3
- package/dist/iam-4LhJianW.mjs +0 -6
- package/dist/images-BqXyIycX.mjs +0 -5
- package/dist/input-validation-BpVQi9rR.mjs +0 -2
- package/dist/intel-CiO3Sy4x.mjs +0 -3
- package/dist/ips-DLuGN7Mr.mjs +0 -2
- package/dist/keyless-certificates-x-87T5SM.mjs +0 -3
- package/dist/kv-CVYCrk7L.mjs +0 -5
- package/dist/leaked-credential-checks-FvhVCL23.mjs +0 -3
- package/dist/load-balancers-cxodJuI2.mjs +0 -6
- package/dist/local-OqhVQbv0.mjs +0 -2
- package/dist/logpush-BX7z2xWz.mjs +0 -4
- package/dist/logs-C7vxr6Kp.mjs +0 -3
- package/dist/magic-cloud-networking-C3grROf-.mjs +0 -5
- package/dist/magic-network-monitoring-DiZ5ZXxh.mjs +0 -4
- package/dist/magic-transit-troGMFb9.mjs +0 -30
- package/dist/managed-transforms-B5w_LlVN.mjs +0 -3
- package/dist/mtls-certificates-C1S9MciH.mjs +0 -3
- package/dist/network-interconnects-CVSiv1fF.mjs +0 -4
- package/dist/organizations-BtlEchi-.mjs +0 -4
- package/dist/origin-ca-certificates-0XCi4dO6.mjs +0 -3
- package/dist/origin-post-quantum-encryption-CTvkdYDG.mjs +0 -2
- package/dist/origin-tls-client-auth-qAvRD1BQ.mjs +0 -5
- package/dist/page-rules-CcMmrvY4.mjs +0 -3
- package/dist/page-shield-Dxh4bJ-w.mjs +0 -3
- package/dist/pages-F1vdzqgC.mjs +0 -6
- package/dist/pipelines-DsF1HHMY.mjs +0 -6
- package/dist/progress-5sHFvwez.mjs +0 -2
- package/dist/queues-BuvkxFPX.mjs +0 -6
- package/dist/r2-Du-fgHiT.mjs +0 -9
- package/dist/r2-data-catalog-BUiMNSwc.mjs +0 -3
- package/dist/radar-C0eqNmWR.mjs +0 -2
- package/dist/rate-limits-CUv2cxXV.mjs +0 -3
- package/dist/raw-fetch-CxFs4i0R.mjs +0 -2
- package/dist/realtime-kit-C-jix3I_.mjs +0 -6
- package/dist/registrar-B7V7i89n.mjs +0 -2
- package/dist/request-tracers-D2V7QUrC.mjs +0 -2
- package/dist/resolve-GtphSYWh.mjs +0 -2
- package/dist/resource-sharing-BgH0w9wm.mjs +0 -5
- package/dist/resource-tagging-BOknFugv.mjs +0 -4
- package/dist/rolldown-runtime-CR7SCCRW.mjs +0 -2
- package/dist/rules-DzJFHGW1.mjs +0 -4
- package/dist/rulesets-BzI1dUiq.mjs +0 -8
- package/dist/rum-CQ_rJ96u.mjs +0 -4
- package/dist/schema-validation-TmikfxS9.mjs +0 -4
- package/dist/scim-ByZ5kqXS.mjs +0 -3
- package/dist/secrets-store-D7HL4VXw.mjs +0 -8
- package/dist/security-center-OUrILUnx.mjs +0 -2
- package/dist/security-txt-Ca13oCJ8.mjs +0 -3
- package/dist/session-Dxi_LbAk.mjs +0 -2
- package/dist/smart-shield-foPT0J9L.mjs +0 -3
- package/dist/snippets-FDPiBMWc.mjs +0 -4
- package/dist/spectrum-DPoh_BPx.mjs +0 -3
- package/dist/speed-BuEappVX.mjs +0 -4
- package/dist/src-D8_cWUwt.mjs +0 -104
- package/dist/ssl-bJbzEoRv.mjs +0 -3
- package/dist/stream-DuYGiGk6.mjs +0 -13
- package/dist/tenants-BYqEutrr.mjs +0 -2
- package/dist/token-validation-DwmtbWUB.mjs +0 -4
- package/dist/turnstile-Dy91RVTn.mjs +0 -3
- package/dist/url-normalization-DoD9iHWH.mjs +0 -3
- package/dist/url-scanner-qwL64FIo.mjs +0 -2
- package/dist/user-Cduf3VRi.mjs +0 -7
- package/dist/vectorize-CMLobU9V.mjs +0 -4
- package/dist/waiting-rooms-B4-IAJeT.mjs +0 -5
- package/dist/web3-Bcx68Kq3.mjs +0 -4
- package/dist/workers-D5fOQsUA.mjs +0 -16
- package/dist/workers-builds-2kdzxjlN.mjs +0 -7
- package/dist/workflows-qFD80noW.mjs +0 -4
- package/dist/zaraz-C0iJimA4.mjs +0 -2
- package/dist/zero-trust-Btix6zOy.mjs +0 -73
- package/dist/zones-Nu3wMtds.mjs +0 -5
- /package/dist/{metadata-DhSO1vle.mjs → metadata-DGdCpUxn.mjs} +0 -0
package/dist/auth-BHD_B2p9.mjs
DELETED
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{i as e,r as t,t as n}from"./rolldown-runtime-CR7SCCRW.mjs";import{a as r,c as i,i as a,l as o,o as s,r as c,s as l,t as u}from"./session-Dxi_LbAk.mjs";import{n as d,o as f,t as p}from"./theme-BKCxTQTe.mjs";import{i as m,n as h,r as g}from"./config-BmTd_qeU.mjs";import{n as _,t as v}from"./resolve-GtphSYWh.mjs";import{createRequire as y}from"node:module";import b,{chmodSync as x,closeSync as ee,existsSync as S,mkdirSync as C,openSync as te,readFileSync as ne,statSync as re,unlinkSync as ie,writeFileSync as ae}from"node:fs";import{stripVTControlCharacters as oe,styleText as w}from"node:util";import T,{stdin as se,stdout as ce}from"node:process";import le,{homedir as ue,platform as de}from"node:os";import{ReadStream as fe}from"node:tty";import E,{dirname as pe,isAbsolute as me,join as he,resolve as ge}from"node:path";import{exec as _e}from"node:child_process";import*as ve from"node:readline";import ye from"node:readline";import be from"node:assert";import xe from"os";import{execSync as Se}from"child_process";import{createHash as Ce,randomBytes as we}from"node:crypto";import{createServer as Te}from"node:http";import{createConnection as Ee}from"node:net";var De=class{apiToken;baseURL;timeout;apiVersion;userAgent;_fetch;_defaultHeaders;constructor(e){if(!e.apiToken)throw new r(`apiToken is required`);this.apiToken=e.apiToken,this.baseURL=e.baseURL??`https://api.cloudflare.com/client/v4`,this.timeout=e.timeout??6e4,this.apiVersion=e.apiVersion,this.userAgent=e.userAgent??`cloudflare-sdk/typescript`,this._fetch=e.fetch??globalThis.fetch,this._defaultHeaders=e.defaultHeaders??{}}async get(e,t){return this._request({method:`GET`,path:e,query:t?.query,...t})}async post(e,t){return this._request({method:`POST`,path:e,body:t?.body,query:t?.query,...t})}async put(e,t){return this._request({method:`PUT`,path:e,...t})}async patch(e,t){return this._request({method:`PATCH`,path:e,...t})}async delete(e,t){return this._request({method:`DELETE`,path:e,query:t?.query,...t})}async _request(e){let t=this._buildURL(e.path,e.query),n=e.timeout??this.timeout,r=new AbortController,i=setTimeout(()=>r.abort(),n),a=e.signal?AbortSignal.any([e.signal,r.signal]):r.signal;try{let n=e.body instanceof FormData||e.body instanceof Blob||e.body instanceof ArrayBuffer||ArrayBuffer.isView(e.body)||e.body instanceof ReadableStream||e.body instanceof URLSearchParams||typeof e.body==`string`,r={Authorization:`Bearer ${this.apiToken}`,...n?{}:{"Content-Type":`application/json`},...this.apiVersion?{"api-version":this.apiVersion}:{},"User-Agent":this.userAgent,...this._defaultHeaders,...e.headers},o=null;e.body!=null&&(o=n?e.body:JSON.stringify(e.body));let s=await this._fetch(t,{method:e.method,headers:r,body:o,signal:a});return clearTimeout(i),this._handleResponse(s,{method:e.method,url:t})}catch(e){throw clearTimeout(i),e instanceof s?e:e instanceof Error?e.name===`AbortError`?new s(`Request timed out after ${n}ms`):new s(`Request failed: ${e.message}`):new s(`Unknown error occurred`)}}_buildURL(e,t){let n=this.baseURL.endsWith(`/`)?this.baseURL:`${this.baseURL}/`,r=e.startsWith(`/`)?e.slice(1):e,i=new URL(r,n);if(t)for(let[e,n]of Object.entries(t))n!=null&&n!==``&&i.searchParams.set(e,String(n));return i.toString()}async _handleResponse(e,t){let n=e.headers.get(`content-type`)?.includes(`application/json`);if(!e.ok){let i;try{i=n?await e.json():await e.text()}catch{i=null}throw e.status===401?new r(`Invalid API token`,e.status,i,t):e.status===429?new l(`Rate limit exceeded`,e.status,i,t):new a(`API request failed with status ${e.status}`,e.status,i,t)}if(!n)return await e.text();let i=await e.json();if(i.success===!1&&i.errors&&i.errors.length>0)throw new a(`API error: ${i.errors.map(e=>e.message).join(`, `)}`,e.status,i,t);return`result`in i?i.result:i}},D=class{_client;constructor(e){this._client=e}},Oe=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/abuse-reports/${encodeURIComponent(t)}/emails`,{query:n})}},ke=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/abuse-reports/${encodeURIComponent(t)}/mitigations`,{query:n})}async review(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/abuse-reports/${encodeURIComponent(t)}/mitigations/appeal`)}},Ae=class extends D{emails;mitigations;constructor(e){super(e),this.emails=new Oe(e),this.mitigations=new ke(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/abuse-reports/${encodeURIComponent(t)}`,{body:{...n}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/abuse-reports/${encodeURIComponent(t)}`)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/abuse-reports`,{query:t})}},je=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/move`,{body:{...t}})}},Me=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/profile`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/profile`,{body:{...t}})}},Ne=class extends D{constructor(e){super(e)}async id(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/resource-library/applications/${encodeURIComponent(t)}`)}},Pe=class extends D{by;constructor(e){super(e),this.by=new Ne(e)}async applications(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/resource-library/applications`,{query:t})}},Fe=class extends D{get;constructor(e){super(e),this.get=new Pe(e)}},Ie=class extends D{constructor(e){super(e)}async id(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/resource-library/categories/${encodeURIComponent(t)}`)}},Le=class extends D{by;constructor(e){super(e),this.by=new Ie(e)}async categories(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/resource-library/categories`,{query:t})}},Re=class extends D{get;constructor(e){super(e),this.get=new Le(e)}},ze=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/logs/audit`,{query:t})}},Be=class extends D{audit;constructor(e){super(e),this.audit=new ze(e)}},Ve=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/members`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/members/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/members`,{body:{...t}})}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(t)}/members/${encodeURIComponent(e)}`)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/members/${encodeURIComponent(e)}`)}},He=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/roles`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/roles/${encodeURIComponent(e)}`)}},Ue=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/subscriptions`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/subscriptions`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/subscriptions/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/subscriptions/${encodeURIComponent(e)}`)}},We=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/tokens/permission_groups`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/tokens/permission_groups`,{query:t})}},Ge=class extends D{constructor(e){super(e)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/tokens/${encodeURIComponent(t)}/value`)}},Ke=class extends D{permissionGroups;value;constructor(e){super(e),this.permissionGroups=new We(e),this.value=new Ge(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/tokens`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/tokens/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/tokens`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/tokens/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/tokens/${encodeURIComponent(t)}`)}async verify(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/tokens/verify`)}},qe=class extends D{accountOrganizations;accountProfile;applications;categories;logs;members;roles;subscriptions;tokens;constructor(e){super(e),this.accountOrganizations=new je(e),this.accountProfile=new Me(e),this.applications=new Fe(e),this.categories=new Re(e),this.logs=new Be(e),this.members=new Ve(e),this.roles=new He(e),this.subscriptions=new Ue(e),this.tokens=new Ke(e)}async list(e){return this._client.get(`/accounts`,{query:e})}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}`)}async create(e){return this._client.post(`/accounts`,{body:{...e}})}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}`,{body:{...t}})}async delete(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}`)}async move(e){return this._client.post(`/accounts/move`,{body:{...e}})}},Je=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/acm/custom_trust_store`,{query:t})}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/acm/custom_trust_store`,{body:{...t}})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/acm/custom_trust_store/${encodeURIComponent(e)}`)}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/acm/custom_trust_store/${encodeURIComponent(e)}`)}},Ye=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/acm/total_tls`)}async update(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/acm/total_tls`,{body:{...t}})}async edit(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/acm/total_tls`,{body:{...t}})}},Xe=class extends D{customTrustStore;totalTLS;constructor(e){super(e),this.customTrustStore=new Je(e),this.totalTLS=new Ye(e)}},Ze=class extends D{constructor(e){super(e)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/addressing/address_maps/${encodeURIComponent(t)}/accounts/${encodeURIComponent(e)}`)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/addressing/address_maps/${encodeURIComponent(t)}/accounts/${encodeURIComponent(e)}`)}},Qe=class extends D{constructor(e){super(e)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(n)}/addressing/address_maps/${encodeURIComponent(t)}/ips/${encodeURIComponent(e)}`)}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(n)}/addressing/address_maps/${encodeURIComponent(t)}/ips/${encodeURIComponent(e)}`)}},$e=class extends D{constructor(e){super(e)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(n)}/addressing/address_maps/${encodeURIComponent(t)}/zones/${encodeURIComponent(e)}`)}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(n)}/addressing/address_maps/${encodeURIComponent(t)}/zones/${encodeURIComponent(e)}`)}},et=class extends D{accounts;ips;zones;constructor(e){super(e),this.accounts=new Ze(e),this.ips=new Qe(e),this.zones=new $e(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/addressing/address_maps`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/addressing/address_maps/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/addressing/address_maps`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/addressing/address_maps/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/addressing/address_maps/${encodeURIComponent(e)}`)}},tt=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/addressing/leases`)}},nt=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/addressing/loa_documents/${encodeURIComponent(e)}/download`)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/addressing/loa_documents`)}},rt=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/addressing/prefixes/${encodeURIComponent(e)}/bgp/status`)}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/addressing/prefixes/${encodeURIComponent(e)}/bgp/status`,{body:{...n}})}},it=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/addressing/prefixes/${encodeURIComponent(t)}/bgp/prefixes`)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/addressing/prefixes/${encodeURIComponent(t)}/bgp/prefixes/${encodeURIComponent(n)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/addressing/prefixes/${encodeURIComponent(t)}/bgp/prefixes`,{body:{...n}})}async edit(e,t,n,r){return this._client.patch(`/accounts/${encodeURIComponent(e)}/addressing/prefixes/${encodeURIComponent(t)}/bgp/prefixes/${encodeURIComponent(n)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/addressing/prefixes/${encodeURIComponent(t)}/bgp/prefixes/${encodeURIComponent(n)}`)}},at=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/addressing/prefixes/${encodeURIComponent(e)}/delegations`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/addressing/prefixes/${encodeURIComponent(e)}/delegations`,{body:{...n}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(n)}/addressing/prefixes/${encodeURIComponent(t)}/delegations/${encodeURIComponent(e)}`)}},ot=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/addressing/prefixes/${encodeURIComponent(t)}/bindings`)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/addressing/prefixes/${encodeURIComponent(t)}/bindings/${encodeURIComponent(n)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/addressing/prefixes/${encodeURIComponent(t)}/bindings`,{body:{...n}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/addressing/prefixes/${encodeURIComponent(t)}/bindings/${encodeURIComponent(n)}`)}},st=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(t)}/addressing/prefixes/${encodeURIComponent(e)}/validate`)}},ct=class extends D{advertisementStatus;bgpPrefixes;delegations;serviceBindings;validate;constructor(e){super(e),this.advertisementStatus=new rt(e),this.bgpPrefixes=new it(e),this.delegations=new at(e),this.serviceBindings=new ot(e),this.validate=new st(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/addressing/prefixes`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/addressing/prefixes/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/addressing/prefixes`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/addressing/prefixes/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/addressing/prefixes/${encodeURIComponent(e)}`)}},lt=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/addressing/regional_hostnames/regions`)}},ut=class extends D{regions;constructor(e){super(e),this.regions=new lt(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/addressing/regional_hostnames`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/addressing/regional_hostnames/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/addressing/regional_hostnames`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(e)}/addressing/regional_hostnames/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/addressing/regional_hostnames/${encodeURIComponent(t)}`)}},dt=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/addressing/services`)}},ft=class extends D{addressMaps;leases;loaDocuments;prefixes;regionalHostnames;services;constructor(e){super(e),this.addressMaps=new et(e),this.leases=new tt(e),this.loaDocuments=new nt(e),this.prefixes=new ct(e),this.regionalHostnames=new ut(e),this.services=new dt(e)}},pt=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/authors/search`)}},mt=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/finetunes/${encodeURIComponent(t)}/finetune-assets`)}},ht=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/finetunes/public`,{query:t})}},gt=class extends D{assets;public;constructor(e){super(e),this.assets=new mt(e),this.public=new ht(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/finetunes`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/finetunes`,{body:{...t}})}},_t=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/firewall-for-ai/custom-topics`)}async update(e){return this._client.put(`/zones/${encodeURIComponent(e)}/firewall-for-ai/custom-topics`)}},vt=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/ai4bharat/indictrans2-en-indic-1B`,{body:{...t}})}},yt=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/ai4bharat/nonomni-indictrans2-en-indic-1b`,{body:{...t}})}},bt=class extends D{indictrans2EnIndic1b;nonomniIndictrans2EnIndic1b;constructor(e){super(e),this.indictrans2EnIndic1b=new vt(e),this.nonomniIndictrans2EnIndic1b=new yt(e)}},xt=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/aisingapore/gemma-sea-lion-v4-27b-it`,{body:{...t}})}},St=class extends D{gemmaSeaLionV427bIt;constructor(e){super(e),this.gemmaSeaLionV427bIt=new xt(e)}},Ct=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/baai/bge-base-en-v1.5`,{body:{...t}})}},wt=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/baai/bge-large-en-v1.5`,{body:{...t}})}},Tt=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/baai/bge-m3`,{body:{...t}})}},Et=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/baai/bge-reranker-base`,{body:{...t}})}},Dt=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/baai/bge-small-en-v1.5`,{body:{...t}})}},Ot=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/baai/nonomni-bge-base-en-v1.5`,{body:{...t}})}},kt=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/baai/nonomni-bge-large-en-v1.5`,{body:{...t}})}},At=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/baai/nonomni-bge-m3`,{body:{...t}})}},jt=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/baai/nonomni-bge-small-en-v1.5`,{body:{...t}})}},Mt=class extends D{bgeBaseEnV15;bgeLargeEnV15;bgeM3;bgeRerankerBase;bgeSmallEnV15;nonomniBgeBaseEnV15;nonomniBgeLargeEnV15;nonomniBgeM3;nonomniBgeSmallEnV15;constructor(e){super(e),this.bgeBaseEnV15=new Ct(e),this.bgeLargeEnV15=new wt(e),this.bgeM3=new Tt(e),this.bgeRerankerBase=new Et(e),this.bgeSmallEnV15=new Dt(e),this.nonomniBgeBaseEnV15=new Ot(e),this.nonomniBgeLargeEnV15=new kt(e),this.nonomniBgeM3=new At(e),this.nonomniBgeSmallEnV15=new jt(e)}},Nt=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/black-forest-labs/flux-1-schnell`,{body:{...t}})}},Pt=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/black-forest-labs/flux-2-dev`,{body:{...t}})}},Ft=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/black-forest-labs/flux-2-klein-4b`,{body:{...t}})}},It=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/black-forest-labs/flux-2-klein-9b`,{body:{...t}})}},Lt=class extends D{flux1Schnell;flux2Dev;flux2Klein4b;flux2Klein9b;constructor(e){super(e),this.flux1Schnell=new Nt(e),this.flux2Dev=new Pt(e),this.flux2Klein4b=new Ft(e),this.flux2Klein9b=new It(e)}},Rt=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/bytedance/stable-diffusion-xl-lightning`,{body:{...t}})}},zt=class extends D{stableDiffusionXlLightning;constructor(e){super(e),this.stableDiffusionXlLightning=new Rt(e)}},Bt=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/deepgram/aura`)}},Vt=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/deepgram/aura-1`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/deepgram/aura-1`,{body:{...t}})}},Ht=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/deepgram/aura-1-internal`)}},Ut=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/deepgram/aura-2`)}},Wt=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/deepgram/aura-2-en`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/deepgram/aura-2-en`,{body:{...t}})}},Gt=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/deepgram/aura-2-es`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/deepgram/aura-2-es`,{body:{...t}})}},Kt=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/deepgram/flux`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/deepgram/flux`,{body:{...t}})}},qt=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/deepgram/nova-3`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/deepgram/nova-3`,{body:{...t}})}},Jt=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/deepgram/nova-3-internal`)}},Yt=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/deepgram/nova-3-ws`)}},Xt=class extends D{aura;aura1;aura1Internal;aura2;aura2En;aura2Es;flux;nova3;nova3Internal;nova3Ws;constructor(e){super(e),this.aura=new Bt(e),this.aura1=new Vt(e),this.aura1Internal=new Ht(e),this.aura2=new Ut(e),this.aura2En=new Wt(e),this.aura2Es=new Gt(e),this.flux=new Kt(e),this.nova3=new qt(e),this.nova3Internal=new Jt(e),this.nova3Ws=new Yt(e)}},Zt=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/deepseek-ai/deepseek-math-7b-instruct`,{body:{...t}})}},Qt=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/deepseek-ai/deepseek-r1-distill-qwen-32b`,{body:{...t}})}},$t=class extends D{deepseekMath7bInstruct;deepseekR1DistillQwen32b;constructor(e){super(e),this.deepseekMath7bInstruct=new Zt(e),this.deepseekR1DistillQwen32b=new Qt(e)}},en=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/defog/sqlcoder-7b-2`,{body:{...t}})}},tn=class extends D{sqlcoder7b2;constructor(e){super(e),this.sqlcoder7b2=new en(e)}},nn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/facebook/bart-large-cnn`,{body:{...t}})}},rn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/facebook/nonomni-bart-large-cnn`,{body:{...t}})}},an=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/facebook/nonomni-detr-resnet-50`,{body:{...t}})}},on=class extends D{bartLargeCnn;nonomniBartLargeCnn;nonomniDetrResnet50;constructor(e){super(e),this.bartLargeCnn=new nn(e),this.nonomniBartLargeCnn=new rn(e),this.nonomniDetrResnet50=new an(e)}},sn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/fblgit/una-cybertron-7b-v2-bf16`,{body:{...t}})}},cn=class extends D{unaCybertron7bV2Bf16;constructor(e){super(e),this.unaCybertron7bV2Bf16=new sn(e)}},ln=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/google/embeddinggemma-300m`,{body:{...t}})}},un=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/google/gemma-2b-it-lora`,{body:{...t}})}},dn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/google/gemma-3-12b-it`,{body:{...t}})}},fn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@hf/google/gemma-7b-it`,{body:{...t}})}},pn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/google/gemma-7b-it-lora`,{body:{...t}})}},mn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/google/nonomni-embeddinggemma-300m`,{body:{...t}})}},hn=class extends D{embeddinggemma300m;gemma2bItLora;gemma312bIt;gemma7bIt;gemma7bItLora;nonomniEmbeddinggemma300m;constructor(e){super(e),this.embeddinggemma300m=new ln(e),this.gemma2bItLora=new un(e),this.gemma312bIt=new dn(e),this.gemma7bIt=new fn(e),this.gemma7bItLora=new pn(e),this.nonomniEmbeddinggemma300m=new mn(e)}},gn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/huggingface/distilbert-sst-2-int8`,{body:{...t}})}},_n=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/huggingface/nonomni-distilbert-sst-2-int8`,{body:{...t}})}},vn=class extends D{distilbertSst2Int8;nonomniDistilbertSst2Int8;constructor(e){super(e),this.distilbertSst2Int8=new gn(e),this.nonomniDistilbertSst2Int8=new _n(e)}},yn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/ibm-granite/granite-4.0-h-micro`,{body:{...t}})}},bn=class extends D{graniteGranite40HMicro;constructor(e){super(e),this.graniteGranite40HMicro=new yn(e)}},xn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/leonardo/lucid-origin`,{body:{...t}})}},Sn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/leonardo/phoenix-1.0`,{body:{...t}})}},Cn=class extends D{lucidOrigin;phoenix10;constructor(e){super(e),this.lucidOrigin=new xn(e),this.phoenix10=new Sn(e)}},wn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/lykon/dreamshaper-8-lcm`,{body:{...t}})}},Tn=class extends D{dreamshaper8Lcm;constructor(e){super(e),this.dreamshaper8Lcm=new wn(e)}},En=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/meta/llama-2-7b-chat-fp16`,{body:{...t}})}},Dn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/meta/llama-2-7b-chat-int8`,{body:{...t}})}},On=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/meta/llama-3.1-70b-instruct-fp8-fast`,{body:{...t}})}},kn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/meta/llama-3.1-8b-instruct-awq`,{body:{...t}})}},An=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/meta/llama-3.1-8b-instruct-fp8`,{body:{...t}})}},jn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/meta/llama-3.1-8b-instruct-fp8-fast`,{body:{...t}})}},Mn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/meta/llama-3.2-11b-vision-instruct`,{body:{...t}})}},Nn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/meta/llama-3.2-1b-instruct`,{body:{...t}})}},Pn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/meta/llama-3.2-3b-instruct`,{body:{...t}})}},Fn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/meta/llama-3.3-70b-instruct-fp8-fast`,{body:{...t}})}},In=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/meta/llama-3-8b-instruct`,{body:{...t}})}},Ln=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/meta/llama-3-8b-instruct-awq`,{body:{...t}})}},Rn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/meta/llama-4-scout-17b-16e-instruct`,{body:{...t}})}},zn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/meta/llama-guard-3-8b`,{body:{...t}})}},Bn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/meta-llama/llama-2-7b-chat-hf-lora`,{body:{...t}})}},Vn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/meta/m2m100-1.2b`,{body:{...t}})}},Hn=class extends D{llama27bChatFp16;llama27bChatInt8;llama3170bInstructFp8Fast;llama318bInstructAwq;llama318bInstructFp8;llama318bInstructFp8Fast;llama3211bVisionInstruct;llama321bInstruct;llama323bInstruct;llama3370bInstructFp8Fast;llama38bInstruct;llama38bInstructAwq;llama4Scout17b16eInstruct;llamaGuard38b;llamaLlama27bChatHfLora;m2m10012b;constructor(e){super(e),this.llama27bChatFp16=new En(e),this.llama27bChatInt8=new Dn(e),this.llama3170bInstructFp8Fast=new On(e),this.llama318bInstructAwq=new kn(e),this.llama318bInstructFp8=new An(e),this.llama318bInstructFp8Fast=new jn(e),this.llama3211bVisionInstruct=new Mn(e),this.llama321bInstruct=new Nn(e),this.llama323bInstruct=new Pn(e),this.llama3370bInstructFp8Fast=new Fn(e),this.llama38bInstruct=new In(e),this.llama38bInstructAwq=new Ln(e),this.llama4Scout17b16eInstruct=new Rn(e),this.llamaGuard38b=new zn(e),this.llamaLlama27bChatHfLora=new Bn(e),this.m2m10012b=new Vn(e)}},Un=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/microsoft/nonomni-resnet-50`,{body:{...t}})}},Wn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/microsoft/phi-2`,{body:{...t}})}},Gn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/microsoft/resnet-50`,{body:{...t}})}},Kn=class extends D{nonomniResnet50;phi2;resnet50;constructor(e){super(e),this.nonomniResnet50=new Un(e),this.phi2=new Wn(e),this.resnet50=new Gn(e)}},qn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/mistral/mistral-7b-instruct-v0.1`,{body:{...t}})}},Jn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@hf/mistral/mistral-7b-instruct-v0.2`,{body:{...t}})}},Yn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/mistral/mistral-7b-instruct-v0.2-lora`,{body:{...t}})}},Xn=class extends D{mistral7bInstructV01;mistral7bInstructV02;mistral7bInstructV02Lora;constructor(e){super(e),this.mistral7bInstructV01=new qn(e),this.mistral7bInstructV02=new Jn(e),this.mistral7bInstructV02Lora=new Yn(e)}},Zn=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/mistralai/mistral-small-3.1-24b-instruct`,{body:{...t}})}},Qn=class extends D{mistralSmall3124bInstruct;constructor(e){super(e),this.mistralSmall3124bInstruct=new Zn(e)}},$n=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/moonshotai/kimi-k2.5`,{body:{...t}})}},er=class extends D{kimiK25;constructor(e){super(e),this.kimiK25=new $n(e)}},tr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/myshell-ai/melotts`,{body:{...t}})}},nr=class extends D{melotts;constructor(e){super(e),this.melotts=new tr(e)}},rr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@hf/nexusflow/starling-lm-7b-beta`,{body:{...t}})}},ir=class extends D{starlingLm7bBeta;constructor(e){super(e),this.starlingLm7bBeta=new rr(e)}},ar=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@hf/nousresearch/hermes-2-pro-mistral-7b`,{body:{...t}})}},or=class extends D{hermes2ProMistral7b;constructor(e){super(e),this.hermes2ProMistral7b=new ar(e)}},sr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/nvidia/nemotron-3-120b-a12b`,{body:{...t}})}},cr=class extends D{nemotron3120bA12b;constructor(e){super(e),this.nemotron3120bA12b=new sr(e)}},lr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/openai/gpt-oss-120b`,{body:{...t}})}},ur=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/openai/gpt-oss-20b`,{body:{...t}})}},dr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/openai/whisper`,{body:{...t}})}},fr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/openai/whisper-large-v3-turbo`,{body:{...t}})}},pr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/openai/whisper-tiny-en`,{body:{...t}})}},mr=class extends D{gptOss120b;gptOss20b;whisper;whisperLargeV3Turbo;whisperTinyEn;constructor(e){super(e),this.gptOss120b=new lr(e),this.gptOss20b=new ur(e),this.whisper=new dr(e),this.whisperLargeV3Turbo=new fr(e),this.whisperTinyEn=new pr(e)}},hr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/openchat/openchat-3.5-0106`,{body:{...t}})}},gr=class extends D{openchat350106;constructor(e){super(e),this.openchat350106=new hr(e)}},_r=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/pfnet/plamo-embedding-1b`,{body:{...t}})}},vr=class extends D{plamoEmbedding1b;constructor(e){super(e),this.plamoEmbedding1b=new _r(e)}},yr=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/pipecat-ai/smart-turn-v2`)}},br=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/pipecat-ai/smart-turn-v3`)}},xr=class extends D{smartTurnV2;smartTurnV3;constructor(e){super(e),this.smartTurnV2=new yr(e),this.smartTurnV3=new br(e)}},Sr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/qwen/qwen1.5-0.5b-chat`,{body:{...t}})}},Cr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/qwen/qwen1.5-1.8b-chat`,{body:{...t}})}},wr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/qwen/qwen1.5-14b-chat-awq`,{body:{...t}})}},Tr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/qwen/qwen1.5-7b-chat-awq`,{body:{...t}})}},Er=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/qwen/qwen2.5-coder-32b-instruct`,{body:{...t}})}},Dr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/qwen/qwen3-30b-a3b-fp8`,{body:{...t}})}},Or=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/qwen/qwen3-embedding-0.6b`,{body:{...t}})}},kr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/qwen/qwq-32b`,{body:{...t}})}},Ar=class extends D{qwen1505bChat;qwen1518bChat;qwen1514bChatAwq;qwen157bChatAwq;qwen25Coder32bInstruct;qwen330bA3bFp8;qwen3Embedding06b;qwq32b;constructor(e){super(e),this.qwen1505bChat=new Sr(e),this.qwen1518bChat=new Cr(e),this.qwen1514bChatAwq=new wr(e),this.qwen157bChatAwq=new Tr(e),this.qwen25Coder32bInstruct=new Er(e),this.qwen330bA3bFp8=new Dr(e),this.qwen3Embedding06b=new Or(e),this.qwq32b=new kr(e)}},jr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/runwayml/stable-diffusion-v1-5-img2img`,{body:{...t}})}},Mr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/runwayml/stable-diffusion-v1-5-inpainting`,{body:{...t}})}},Nr=class extends D{stableDiffusionV15Img2img;stableDiffusionV15Inpainting;constructor(e){super(e),this.stableDiffusionV15Img2img=new jr(e),this.stableDiffusionV15Inpainting=new Mr(e)}},Pr=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/models/schema`,{query:t})}},Fr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/stabilityai/stable-diffusion-xl-base-1.0`,{body:{...t}})}},Ir=class extends D{stableDiffusionXlBase10;constructor(e){super(e),this.stableDiffusionXlBase10=new Fr(e)}},Lr=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/sven/test-pipe-http`)}},Rr=class extends D{testPipeHTTP;constructor(e){super(e),this.testPipeHTTP=new Lr(e)}},zr=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/test/hello-world-cog`)}},Br=class extends D{helloWorldCog;constructor(e){super(e),this.helloWorldCog=new zr(e)}},Vr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@hf/thebloke/deepseek-coder-6.7b-base-awq`,{body:{...t}})}},Hr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@hf/thebloke/deepseek-coder-6.7b-instruct-awq`,{body:{...t}})}},Ur=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/thebloke/discolm-german-7b-v1-awq`,{body:{...t}})}},Wr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@hf/thebloke/llama-2-13b-chat-awq`,{body:{...t}})}},Gr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@hf/thebloke/mistral-7b-instruct-v0.1-awq`,{body:{...t}})}},Kr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@hf/thebloke/neural-chat-7b-v3-1-awq`,{body:{...t}})}},qr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@hf/thebloke/openhermes-2.5-mistral-7b-awq`,{body:{...t}})}},Jr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@hf/thebloke/zephyr-7b-beta-awq`,{body:{...t}})}},Yr=class extends D{deepseekCoder67bBaseAwq;deepseekCoder67bInstructAwq;discolmGerman7bV1Awq;llama213bChatAwq;mistral7bInstructV01Awq;neuralChat7bV31Awq;openhermes25Mistral7bAwq;zephyr7bBetaAwq;constructor(e){super(e),this.deepseekCoder67bBaseAwq=new Vr(e),this.deepseekCoder67bInstructAwq=new Hr(e),this.discolmGerman7bV1Awq=new Ur(e),this.llama213bChatAwq=new Wr(e),this.mistral7bInstructV01Awq=new Gr(e),this.neuralChat7bV31Awq=new Kr(e),this.openhermes25Mistral7bAwq=new qr(e),this.zephyr7bBetaAwq=new Jr(e)}},Xr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/tiiuae/falcon-7b-instruct`,{body:{...t}})}},Zr=class extends D{falcon7bInstruct;constructor(e){super(e),this.falcon7bInstruct=new Xr(e)}},Qr=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/tinyllama/tinyllama-1.1b-chat-v1.0`,{body:{...t}})}},$r=class extends D{tinyllama11bChatV10;constructor(e){super(e),this.tinyllama11bChatV10=new Qr(e)}},ei=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/@cf/zai-org/glm-4.7-flash`,{body:{...t}})}},ti=class extends D{glm47Flash;constructor(e){super(e),this.glm47Flash=new ei(e)}},ni=class extends D{ai4bharat;aisingapore;baai;blackForestLabs;bytedance;deepgram;deepseekAI;defog;facebook;fblgit;google;huggingface;ibm;leonardo;lykon;meta;microsoft;mistral;mistralai;moonshotai;myshellAI;nexusflow;nousresearch;nvidia;openai;openchat;pfnet;pipecatAI;qwen;runwayml;schema;stabilityai;sven;test;thebloke;tiiuae;tinyllama;zaiOrg;constructor(e){super(e),this.ai4bharat=new bt(e),this.aisingapore=new St(e),this.baai=new Mt(e),this.blackForestLabs=new Lt(e),this.bytedance=new zt(e),this.deepgram=new Xt(e),this.deepseekAI=new $t(e),this.defog=new tn(e),this.facebook=new on(e),this.fblgit=new cn(e),this.google=new hn(e),this.huggingface=new vn(e),this.ibm=new bn(e),this.leonardo=new Cn(e),this.lykon=new Tn(e),this.meta=new Hn(e),this.microsoft=new Kn(e),this.mistral=new Xn(e),this.mistralai=new Qn(e),this.moonshotai=new er(e),this.myshellAI=new nr(e),this.nexusflow=new ir(e),this.nousresearch=new or(e),this.nvidia=new cr(e),this.openai=new mr(e),this.openchat=new gr(e),this.pfnet=new vr(e),this.pipecatAI=new xr(e),this.qwen=new Ar(e),this.runwayml=new Nr(e),this.schema=new Pr(e),this.stabilityai=new Ir(e),this.sven=new Rr(e),this.test=new Br(e),this.thebloke=new Yr(e),this.tiiuae=new Zr(e),this.tinyllama=new $r(e),this.zaiOrg=new ti(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/models/search`,{query:t})}},ri=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/firewall-for-ai/settings`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/firewall-for-ai/settings`,{body:{...t}})}},ii=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/tasks/search`)}},ai=class extends D{constructor(e){super(e)}async transform(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/tomarkdown`)}async supported(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai/tomarkdown/supported`)}},oi=class extends D{authors;finetunes;firewallCustomTopics;models;settings;tasks;toMarkdown;constructor(e){super(e),this.authors=new pt(e),this.finetunes=new gt(e),this.firewallCustomTopics=new _t(e),this.models=new ni(e),this.settings=new ri(e),this.tasks=new ii(e),this.toMarkdown=new ai(e)}async run(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/run/${encodeURIComponent(t)}`,{body:{...n}})}},si=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/datasets`,{query:n})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/datasets/${encodeURIComponent(n)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/ai-gateway/gateways/${encodeURIComponent(e)}/datasets`,{body:{...n}})}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/datasets/${encodeURIComponent(n)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/datasets/${encodeURIComponent(n)}`)}},ci=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/routes`)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/routes/${encodeURIComponent(n)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/routes`,{body:{...n}})}async update(e,t,n,r){return this._client.patch(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/routes/${encodeURIComponent(n)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/routes/${encodeURIComponent(n)}`)}async listDeployments(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/routes/${encodeURIComponent(n)}/deployments`)}async createDeployment(e,t,n,r){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/routes/${encodeURIComponent(n)}/deployments`,{body:{...r}})}async listVersions(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/routes/${encodeURIComponent(n)}/versions`)}async createVersion(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/routes/${encodeURIComponent(n)}/versions`)}async getVersion(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/routes/${encodeURIComponent(n)}/versions/${encodeURIComponent(r)}`)}},li=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-gateway/evaluation-types`,{query:t})}},ui=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/evaluations`,{query:n})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/evaluations/${encodeURIComponent(n)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/ai-gateway/gateways/${encodeURIComponent(e)}/evaluations`,{body:{...n}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/evaluations/${encodeURIComponent(n)}`)}},di=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/logs`,{query:n})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/ai-gateway/gateways/${encodeURIComponent(t)}/logs/${encodeURIComponent(e)}`)}async edit(e,t,n,r){return this._client.patch(`/accounts/${encodeURIComponent(n)}/ai-gateway/gateways/${encodeURIComponent(t)}/logs/${encodeURIComponent(e)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/logs`,{query:n})}async request(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/ai-gateway/gateways/${encodeURIComponent(t)}/logs/${encodeURIComponent(e)}/request`)}async response(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/ai-gateway/gateways/${encodeURIComponent(t)}/logs/${encodeURIComponent(e)}/response`)}},fi=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/provider_configs`,{query:n})}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/provider_configs`,{body:{...n}})}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/provider_configs/${encodeURIComponent(n)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}/provider_configs/${encodeURIComponent(n)}`)}},pi=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/ai-gateway/gateways/${encodeURIComponent(e)}/url/${encodeURIComponent(n)}`)}},mi=class extends D{datasets;dynamicRouting;evaluationTypes;evaluations;logs;providerConfigs;urls;constructor(e){super(e),this.datasets=new si(e),this.dynamicRouting=new ci(e),this.evaluationTypes=new li(e),this.evaluations=new ui(e),this.logs=new di(e),this.providerConfigs=new fi(e),this.urls=new pi(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/ai-gateway/gateways/${encodeURIComponent(t)}`)}},hi=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/ai-search/instances/${encodeURIComponent(e)}/jobs`,{query:n})}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/ai-search/instances/${encodeURIComponent(e)}/jobs`,{body:{...n}})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/ai-search/instances/${encodeURIComponent(e)}/jobs/${encodeURIComponent(t)}`)}async edit(e,t,n,r){return this._client.patch(`/accounts/${encodeURIComponent(n)}/ai-search/instances/${encodeURIComponent(e)}/jobs/${encodeURIComponent(t)}`,{body:{...r}})}async logs(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(n)}/ai-search/instances/${encodeURIComponent(e)}/jobs/${encodeURIComponent(t)}/logs`,{query:r})}},gi=class extends D{constructor(e){super(e)}async completions(e,t,n,r){return this._client.post(`/accounts/${encodeURIComponent(t)}/ai-search/namespaces/${encodeURIComponent(n)}/instances/${encodeURIComponent(e)}/chat/completions`,{body:{...r}})}},_i=class extends D{constructor(e){super(e)}async list(e,t,n,r,i){return this._client.get(`/accounts/${encodeURIComponent(n)}/ai-search/namespaces/${encodeURIComponent(r)}/instances/${encodeURIComponent(e)}/items/${encodeURIComponent(t)}/chunks`,{query:i})}},vi=class extends D{constructor(e){super(e)}async get(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(n)}/ai-search/namespaces/${encodeURIComponent(r)}/instances/${encodeURIComponent(e)}/items/${encodeURIComponent(t)}/download`)}},yi=class extends D{constructor(e){super(e)}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(t)}/ai-search/namespaces/${encodeURIComponent(n)}/instances/${encodeURIComponent(e)}/items`,{body:{...r}})}},bi=class extends D{or;constructor(e){super(e),this.or=new yi(e)}},xi=class extends D{chunks;content;create;constructor(e){super(e),this.chunks=new _i(e),this.content=new vi(e),this.create=new bi(e)}async list(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(t)}/ai-search/namespaces/${encodeURIComponent(n)}/instances/${encodeURIComponent(e)}/items`,{query:r})}async upload(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/ai-search/namespaces/${encodeURIComponent(n)}/instances/${encodeURIComponent(e)}/items`)}async delete(e,t,n,r){return this._client.delete(`/accounts/${encodeURIComponent(n)}/ai-search/namespaces/${encodeURIComponent(r)}/instances/${encodeURIComponent(e)}/items/${encodeURIComponent(t)}`)}async get(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(n)}/ai-search/namespaces/${encodeURIComponent(r)}/instances/${encodeURIComponent(e)}/items/${encodeURIComponent(t)}`)}async sync(e,t,n,r,i){return this._client.patch(`/accounts/${encodeURIComponent(n)}/ai-search/namespaces/${encodeURIComponent(r)}/instances/${encodeURIComponent(e)}/items/${encodeURIComponent(t)}`,{body:{...i}})}async logs(e,t,n,r,i){return this._client.get(`/accounts/${encodeURIComponent(n)}/ai-search/namespaces/${encodeURIComponent(r)}/instances/${encodeURIComponent(e)}/items/${encodeURIComponent(t)}/logs`,{query:i})}},Si=class extends D{constructor(e){super(e)}async list(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(t)}/ai-search/namespaces/${encodeURIComponent(n)}/instances/${encodeURIComponent(e)}/jobs`,{query:r})}async create(e,t,n,r){return this._client.post(`/accounts/${encodeURIComponent(t)}/ai-search/namespaces/${encodeURIComponent(n)}/instances/${encodeURIComponent(e)}/jobs`,{body:{...r}})}async get(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(n)}/ai-search/namespaces/${encodeURIComponent(r)}/instances/${encodeURIComponent(e)}/jobs/${encodeURIComponent(t)}`)}async edit(e,t,n,r,i){return this._client.patch(`/accounts/${encodeURIComponent(n)}/ai-search/namespaces/${encodeURIComponent(r)}/instances/${encodeURIComponent(e)}/jobs/${encodeURIComponent(t)}`,{body:{...i}})}async logs(e,t,n,r,i){return this._client.get(`/accounts/${encodeURIComponent(n)}/ai-search/namespaces/${encodeURIComponent(r)}/instances/${encodeURIComponent(e)}/jobs/${encodeURIComponent(t)}/logs`,{query:i})}},Ci=class extends D{chat;items;jobs;constructor(e){super(e),this.chat=new gi(e),this.items=new xi(e),this.jobs=new Si(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-search/namespaces/${encodeURIComponent(t)}/instances`,{query:n})}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai-search/namespaces/${encodeURIComponent(t)}/instances`,{body:{...n}})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/ai-search/namespaces/${encodeURIComponent(n)}/instances/${encodeURIComponent(e)}`)}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(e)}/ai-search/namespaces/${encodeURIComponent(n)}/instances/${encodeURIComponent(t)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(t)}/ai-search/namespaces/${encodeURIComponent(n)}/instances/${encodeURIComponent(e)}`)}async search(e,t,n,r){return this._client.post(`/accounts/${encodeURIComponent(t)}/ai-search/namespaces/${encodeURIComponent(n)}/instances/${encodeURIComponent(e)}/search`,{body:{...r}})}},wi=class extends D{constructor(e){super(e)}async instance(e,t,n,r){return this._client.patch(`/accounts/${encodeURIComponent(e)}/ai-search/namespaces/${encodeURIComponent(t)}/instances/${encodeURIComponent(n)}`,{body:{...r}})}},Ti=class extends D{constructor(e){super(e)}async completions(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai-search/namespaces/${encodeURIComponent(t)}/chat/completions`,{body:{...n}})}},Ei=class extends D{chat;constructor(e){super(e),this.chat=new Ti(e)}async search(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai-search/namespaces/${encodeURIComponent(t)}/search`,{body:{...n}})}},Di=class extends D{instance;constructor(e){super(e),this.instance=new Ei(e)}},Oi=class extends D{instances;move;multi;constructor(e){super(e),this.instances=new Ci(e),this.move=new wi(e),this.multi=new Di(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-search/namespaces`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai-search/namespaces`,{body:{...t}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-search/namespaces/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/ai-search/namespaces/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/ai-search/namespaces/${encodeURIComponent(t)}`)}async stats(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/ai-search/namespaces/${encodeURIComponent(n)}/instances/${encodeURIComponent(e)}/stats`)}},ki=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-search/tokens`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai-search/tokens`,{body:{...t}})}async read(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-search/tokens/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/ai-search/tokens/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/ai-search/tokens/${encodeURIComponent(t)}`)}},Ai=class extends D{jobs;namespaces;tokens;constructor(e){super(e),this.jobs=new hi(e),this.namespaces=new Oi(e),this.tokens=new ki(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/ai-search/instances`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai-search/instances`,{body:{...t}})}async read(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/ai-search/instances/${encodeURIComponent(e)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/ai-search/instances/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/ai-search/instances/${encodeURIComponent(e)}`)}async stats(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/ai-search/instances/${encodeURIComponent(e)}/stats`)}async search(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/ai-search/instances/${encodeURIComponent(e)}/search`,{body:{...n}})}async chatCompletions(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/ai-search/instances/${encodeURIComponent(e)}/chat/completions`,{body:{...n}})}},ji=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/alerting/v3/available_alerts`)}},Mi=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/alerting/v3/destinations/eligible`)}},Ni=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/alerting/v3/destinations/pagerduty`)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/alerting/v3/destinations/pagerduty/connect`)}async delete(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/alerting/v3/destinations/pagerduty`)}async link(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/alerting/v3/destinations/pagerduty/connect/${encodeURIComponent(t)}`)}},Pi=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/alerting/v3/destinations/webhooks`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/alerting/v3/destinations/webhooks/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/alerting/v3/destinations/webhooks`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/alerting/v3/destinations/webhooks/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/alerting/v3/destinations/webhooks/${encodeURIComponent(e)}`)}},Fi=class extends D{eligible;pagerduty;webhooks;constructor(e){super(e),this.eligible=new Mi(e),this.pagerduty=new Ni(e),this.webhooks=new Pi(e)}},Ii=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/alerting/v3/history`,{query:t})}},Li=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/alerting/v3/policies`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/alerting/v3/policies/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/alerting/v3/policies`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/alerting/v3/policies/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/alerting/v3/policies/${encodeURIComponent(t)}`)}},Ri=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/alerting/v3/silences`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/alerting/v3/silences/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/alerting/v3/silences`,{body:t})}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/alerting/v3/silences`,{body:t})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/alerting/v3/silences/${encodeURIComponent(t)}`)}},zi=class extends D{availableAlerts;destinations;history;policies;silences;constructor(e){super(e),this.availableAlerts=new ji(e),this.destinations=new Fi(e),this.history=new Ii(e),this.policies=new Li(e),this.silences=new Ri(e)}},Bi=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/analytics/colos`,{query:t})}},Vi=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/analytics/dashboard`,{query:t})}},Hi=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/analytics/latency/colos`)}},Ui=class extends D{colos;constructor(e){super(e),this.colos=new Hi(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/analytics/latency`,{query:t})}},Wi=class extends D{colo;dashboard;latency;constructor(e){super(e),this.colo=new Bi(e),this.dashboard=new Vi(e),this.latency=new Ui(e)}},Gi=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/api_gateway/configuration`)}async update(e){return this._client.put(`/zones/${encodeURIComponent(e)}/api_gateway/configuration`)}},Ki=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/api_gateway/discovery/operations`,{query:t})}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/api_gateway/discovery/operations/${encodeURIComponent(t)}`)}async bulkEdit(e){return this._client.patch(`/zones/${encodeURIComponent(e)}/api_gateway/discovery/operations`)}},qi=class extends D{operations;constructor(e){super(e),this.operations=new Ki(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/api_gateway/discovery`)}},Ji=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/api_gateway/expression-template/fallthrough`,{body:{...t}})}},Yi=class extends D{fallthrough;constructor(e){super(e),this.fallthrough=new Ji(e)}},Xi=class extends D{constructor(e){super(e)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/api_gateway/labels/managed/${encodeURIComponent(t)}/resources/operation`)}},Zi=class extends D{operation;constructor(e){super(e),this.operation=new Xi(e)}},Qi=class extends D{resources;constructor(e){super(e),this.resources=new Zi(e)}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(e)}/api_gateway/labels/managed/${encodeURIComponent(t)}`,{query:n})}},$i=class extends D{constructor(e){super(e)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/api_gateway/labels/user/${encodeURIComponent(t)}/resources/operation`)}},ea=class extends D{operation;constructor(e){super(e),this.operation=new $i(e)}},ta=class extends D{resources;constructor(e){super(e),this.resources=new ea(e)}async bulkDelete(e){return this._client.delete(`/zones/${encodeURIComponent(e)}/api_gateway/labels/user`)}async bulkCreate(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/api_gateway/labels/user`,{body:t})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/api_gateway/labels/user/${encodeURIComponent(t)}`)}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(e)}/api_gateway/labels/user/${encodeURIComponent(t)}`,{query:n})}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(e)}/api_gateway/labels/user/${encodeURIComponent(t)}`,{body:{...n}})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(e)}/api_gateway/labels/user/${encodeURIComponent(t)}`,{body:{...n}})}},na=class extends D{managed;user;constructor(e){super(e),this.managed=new Qi(e),this.user=new ta(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/api_gateway/labels`,{query:t})}},ra=class extends D{constructor(e){super(e)}async bulkDelete(e){return this._client.delete(`/zones/${encodeURIComponent(e)}/api_gateway/operations/labels`)}async bulkCreate(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/api_gateway/operations/labels`,{body:{...t}})}async bulkUpdate(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/api_gateway/operations/labels`,{body:{...t}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/api_gateway/operations/${encodeURIComponent(t)}/labels`)}async create(e,t,n){return this._client.post(`/zones/${encodeURIComponent(e)}/api_gateway/operations/${encodeURIComponent(t)}/labels`,{body:{...n}})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(e)}/api_gateway/operations/${encodeURIComponent(t)}/labels`,{body:{...n}})}},ia=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/api_gateway/operations/${encodeURIComponent(t)}/schema_validation`)}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(e)}/api_gateway/operations/${encodeURIComponent(t)}/schema_validation`,{body:{...n}})}async edit(e){return this._client.patch(`/zones/${encodeURIComponent(e)}/api_gateway/operations/schema_validation`)}},aa=class extends D{labels;schemaValidation;constructor(e){super(e),this.labels=new ra(e),this.schemaValidation=new ia(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/api_gateway/operations`,{query:t})}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(e)}/api_gateway/operations/${encodeURIComponent(t)}`,{query:n})}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/api_gateway/operations/item`,{body:{...t}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/api_gateway/operations/${encodeURIComponent(t)}`)}async bulkCreate(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/api_gateway/operations`,{body:t})}async bulkDelete(e){return this._client.delete(`/zones/${encodeURIComponent(e)}/api_gateway/operations`)}},oa=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/api_gateway/schemas`,{query:t})}},sa=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/api_gateway/settings/schema_validation`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/api_gateway/settings/schema_validation`,{body:{...t}})}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/api_gateway/settings/schema_validation`,{body:{...t}})}},ca=class extends D{schemaValidation;constructor(e){super(e),this.schemaValidation=new sa(e)}},la=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/api_gateway/user_schemas/hosts`)}},ua=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/zones/${encodeURIComponent(e)}/api_gateway/user_schemas/${encodeURIComponent(t)}/operations`,{query:n})}},da=class extends D{hosts;operations;constructor(e){super(e),this.hosts=new la(e),this.operations=new ua(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/api_gateway/user_schemas`,{query:t})}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(e)}/api_gateway/user_schemas/${encodeURIComponent(t)}`,{query:n})}async create(e){return this._client.post(`/zones/${encodeURIComponent(e)}/api_gateway/user_schemas`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/api_gateway/user_schemas/${encodeURIComponent(t)}`)}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/api_gateway/user_schemas/${encodeURIComponent(t)}`)}},fa=class extends D{configurations;discovery;expressionTemplate;labels;operations;schemas;settings;userSchemas;constructor(e){super(e),this.configurations=new Gi(e),this.discovery=new qi(e),this.expressionTemplate=new Yi(e),this.labels=new na(e),this.operations=new aa(e),this.schemas=new oa(e),this.settings=new ca(e),this.userSchemas=new da(e)}},pa=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/argo/smart_routing`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/argo/smart_routing`,{body:{...t}})}},ma=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/argo/tiered_caching`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/argo/tiered_caching`,{body:{...t}})}},ha=class extends D{smartRouting;tieredCaching;constructor(e){super(e),this.smartRouting=new pa(e),this.tieredCaching=new ma(e)}},ga=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/audit_logs`,{query:t})}},_a=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/autorag/rags/${encodeURIComponent(e)}/jobs/${encodeURIComponent(t)}`)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/autorag/rags/${encodeURIComponent(e)}/jobs`,{query:n})}async logs(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(n)}/autorag/rags/${encodeURIComponent(e)}/jobs/${encodeURIComponent(t)}/logs`,{query:r})}},va=class extends D{jobs;constructor(e){super(e),this.jobs=new _a(e)}async aiSearch(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/autorag/rags/${encodeURIComponent(e)}/ai-search`,{body:{...n}})}async files(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/autorag/rags/${encodeURIComponent(e)}/files`,{query:n})}async search(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/autorag/rags/${encodeURIComponent(e)}/search`,{body:{...n}})}async sync(e,t){return this._client.patch(`/accounts/${encodeURIComponent(t)}/autorag/rags/${encodeURIComponent(e)}/sync`)}},ya=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/billing/profile`)}},ba=class extends D{constructor(e){super(e)}async paygo(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/billing/usage/paygo`,{query:t})}},xa=class extends D{profiles;usage;constructor(e){super(e),this.profiles=new ya(e),this.usage=new ba(e)}},Sa=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/bot_management/feedback`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/bot_management/feedback`,{body:{...t}})}},Ca=class extends D{feedback;constructor(e){super(e),this.feedback=new Sa(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/bot_management`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/bot_management`,{body:{...t}})}},wa=class extends D{constructor(e){super(e)}async dayReport(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/botnet_feed/asn/${encodeURIComponent(t)}/day_report`,{query:n})}async fullReport(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/botnet_feed/asn/${encodeURIComponent(t)}/full_report`)}},Ta=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/botnet_feed/configs/asn`)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/botnet_feed/configs/asn/${encodeURIComponent(t)}`)}},Ea=class extends D{asn;constructor(e){super(e),this.asn=new Ta(e)}},Da=class extends D{asn;configs;constructor(e){super(e),this.asn=new wa(e),this.configs=new Ea(e)}},Oa=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/v2/brand-protection/logo/matches`,{query:t})}},ka=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/v2/brand-protection/logo/queries`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/v2/brand-protection/logo/queries/${encodeURIComponent(t)}`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/v2/brand-protection/logo/queries`,{query:t})}},Aa=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/v2/brand-protection/domain/matches`,{query:t})}},ja=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/v2/brand-protection/domain/queries`,{query:t})}},Ma=class extends D{logoMatches;logos;matches;queries;constructor(e){super(e),this.logoMatches=new Oa(e),this.logos=new ka(e),this.matches=new Aa(e),this.queries=new ja(e)}},Na=class extends D{v2;constructor(e){super(e),this.v2=new Ma(e)}async submit(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/v2/brand-protection/logo/search`,{body:{...t}})}async urlInfo(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/v2/brand-protection/total-queries`)}},Pa=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/browser-rendering/content`,{body:{...t}})}},Fa=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/browser-rendering/crawl`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/browser-rendering/crawl/${encodeURIComponent(t)}`)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/browser-rendering/crawl/${encodeURIComponent(t)}`,{query:n})}},Ia=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/browser-rendering/devtools/browser/${encodeURIComponent(t)}/page/${encodeURIComponent(n)}`)}},La=class extends D{constructor(e){super(e)}async activate(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/browser-rendering/devtools/browser/${encodeURIComponent(e)}/json/activate/${encodeURIComponent(n)}`)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/browser-rendering/devtools/browser/${encodeURIComponent(t)}/json/list`)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/browser-rendering/devtools/browser/${encodeURIComponent(t)}/json/list/${encodeURIComponent(n)}`)}async create(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/browser-rendering/devtools/browser/${encodeURIComponent(t)}/json/new`,{query:n})}},Ra=class extends D{page;targets;constructor(e){super(e),this.page=new Ia(e),this.targets=new La(e)}async launch(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/browser-rendering/devtools/browser`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/browser-rendering/devtools/browser`,{query:t})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/browser-rendering/devtools/browser/${encodeURIComponent(t)}`)}async connect(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/browser-rendering/devtools/browser/${encodeURIComponent(t)}`,{query:n})}async protocol(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/browser-rendering/devtools/browser/${encodeURIComponent(t)}/json/protocol`)}async version(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/browser-rendering/devtools/browser/${encodeURIComponent(t)}/json/version`)}},za=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/browser-rendering/devtools/browser/${encodeURIComponent(t)}/json`)}},Ba=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/browser-rendering/devtools/session`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/browser-rendering/devtools/session/${encodeURIComponent(t)}`)}},Va=class extends D{browser;json;session;constructor(e){super(e),this.browser=new Ra(e),this.json=new za(e),this.session=new Ba(e)}},Ha=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/browser-rendering/json`,{body:{...t}})}},Ua=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/browser-rendering/links`,{body:{...t}})}},Wa=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/browser-rendering/markdown`,{body:{...t}})}},Ga=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/browser-rendering/pdf`,{body:{...t}})}},Ka=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/browser-rendering/scrape`,{body:{...t}})}},qa=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/browser-rendering/screenshot`,{body:{...t}})}},Ja=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/browser-rendering/snapshot`,{body:{...t}})}},Ya=class extends D{content;crawl;devtools;json;links;markdown;pdf;scrape;screenshot;snapshot;constructor(e){super(e),this.content=new Pa(e),this.crawl=new Fa(e),this.devtools=new Va(e),this.json=new Ha(e),this.links=new Ua(e),this.markdown=new Wa(e),this.pdf=new Ga(e),this.scrape=new Ka(e),this.screenshot=new qa(e),this.snapshot=new Ja(e)}},Xa=class extends D{constructor(e){super(e)}},Za=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/cache/cache_reserve`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/cache/cache_reserve`,{body:{...t}})}async status(e){return this._client.get(`/zones/${encodeURIComponent(e)}/cache/cache_reserve_clear`)}async clear(e){return this._client.post(`/zones/${encodeURIComponent(e)}/cache/cache_reserve_clear`)}},Qa=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/cache/regional_tiered_cache`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/cache/regional_tiered_cache`,{body:{...t}})}},$a=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/cache/tiered_cache_smart_topology_enable`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/cache/tiered_cache_smart_topology_enable`,{body:{...t}})}async delete(e){return this._client.delete(`/zones/${encodeURIComponent(e)}/cache/tiered_cache_smart_topology_enable`)}},eo=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/cache/variants`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/cache/variants`,{body:{...t}})}async delete(e){return this._client.delete(`/zones/${encodeURIComponent(e)}/cache/variants`)}},to=class extends D{cacheReserve;regionalTieredCache;smartTieredCache;variants;constructor(e){super(e),this.cacheReserve=new Za(e),this.regionalTieredCache=new Qa(e),this.smartTieredCache=new $a(e),this.variants=new eo(e)}async purge(e){return this._client.post(`/zones/${encodeURIComponent(e)}/purge_cache`)}},no=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/calls/apps`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/calls/apps/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/calls/apps`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/calls/apps/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/calls/apps/${encodeURIComponent(e)}`)}},ro=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/calls/turn_keys`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/calls/turn_keys/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/calls/turn_keys`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/calls/turn_keys/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/calls/turn_keys/${encodeURIComponent(e)}`)}},io=class extends D{sfu;turn;constructor(e){super(e),this.sfu=new no(e),this.turn=new ro(e)}},ao=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/certificate_authorities/hostname_associations`,{query:t})}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/certificate_authorities/hostname_associations`,{body:{...t}})}},oo=class extends D{hostnameAssociations;constructor(e){super(e),this.hostnameAssociations=new ao(e)}},so=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/client_certificates`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/client_certificates/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/client_certificates`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(e)}/client_certificates/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/client_certificates/${encodeURIComponent(t)}`)}},co=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/cloud_connector/rules`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/cloud_connector/rules`,{body:t})}},lo=class extends D{rules;constructor(e){super(e),this.rules=new co(e)}},uo=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/binary/${encodeURIComponent(t)}`)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/binary`)}},fo=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/aggregate`,{query:t})}},po=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/categories/catalog`)}},mo=class extends D{catalog;constructor(e){super(e),this.catalog=new po(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/categories/${encodeURIComponent(t)}`,{body:{...n}})}},ho=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/create/bulk/relationships`,{body:{...t}})}},go=class extends D{relationships;constructor(e){super(e),this.relationships=new ho(e)}},_o=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}/copy`,{body:{...n}})}},vo=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}/events/${encodeURIComponent(n)}`)}},yo=class extends D{constructor(e){super(e)}async group(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/-/groups`)}async v2(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/-/groups/${encodeURIComponent(t)}`)}},bo=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/-/groups/${encodeURIComponent(t)}/members`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/-/groups/${encodeURIComponent(t)}/members`,{body:{...n}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/-/groups/${encodeURIComponent(t)}/members/${encodeURIComponent(n)}`)}},xo=class extends D{get;members;constructor(e){super(e),this.get=new yo(e),this.members=new bo(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/-/groups`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/-/groups/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/-/groups/${encodeURIComponent(t)}`,{body:{...n}})}},So=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}/indicatorTypes/create`,{body:{...n}})}},Co=class extends D{create;constructor(e){super(e),this.create=new So(e)}},wo=class extends D{types;constructor(e){super(e),this.types=new Co(e)}},To=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}/indicators/bulk`,{body:{...n}})}},Eo=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}/indicators/create`,{body:{...n}})}},Do=class extends D{constructor(e){super(e)}async indicatorLegacy(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}/indicators`,{query:n})}async indicator(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}/indicators/${encodeURIComponent(n)}`)}},Oo=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}/indicators/tags`)}},ko=class extends D{bulk;create;get;tags;constructor(e){super(e),this.bulk=new To(e),this.create=new Eo(e),this.get=new Do(e),this.tags=new Oo(e)}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}/indicators/${encodeURIComponent(n)}`)}async patch(e,t,n,r){return this._client.patch(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}/indicators/${encodeURIComponent(n)}`,{body:{...r}})}},Ao=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}/move`,{body:{...n}})}},jo=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}/permissions`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}/permissions`,{body:{...n}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}/permissions/${encodeURIComponent(n)}`)}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}/permissions/${encodeURIComponent(n)}`,{body:{...r}})}},Mo=class extends D{constructor(e){super(e)}async get(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(n)}/tags/${encodeURIComponent(t)}/indicators`,{query:r})}},No=class extends D{indicators;constructor(e){super(e),this.indicators=new Mo(e)}},Po=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}/targetIndustries`)}},Fo=class extends D{industries;constructor(e){super(e),this.industries=new Po(e)}},Io=class extends D{copy;events;groups;indicator;indicators;move;permissions;tags;target;constructor(e){super(e),this.copy=new _o(e),this.events=new vo(e),this.groups=new xo(e),this.indicator=new wo(e),this.indicators=new ko(e),this.move=new Ao(e),this.permissions=new jo(e),this.tags=new No(e),this.target=new Fo(e)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}`,{body:{...n}})}},Lo=class extends D{constructor(e){super(e)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/datasets/populate`)}},Ro=class extends D{populate;constructor(e){super(e),this.populate=new Lo(e)}},zo=class extends D{constructor(e){super(e)}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/${encodeURIComponent(t)}/delete`,{query:n})}},Bo=class extends D{constructor(e){super(e)}async ql(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/graphql`)}async qlv2(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/v2/events/graphql`)}},Vo=class extends D{graph;constructor(e){super(e),this.graph=new Bo(e)}},Ho=class extends D{create;constructor(e){super(e),this.create=new Vo(e)}},Uo=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/indicator-types`,{query:t})}},Wo=class extends D{types;constructor(e){super(e),this.types=new Uo(e)}},Go=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/indicators`,{query:t})}},Ko=class extends D{constructor(e){super(e)}async event(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/queries`)}async v2(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/queries/${encodeURIComponent(t)}`)}},qo=class extends D{get;constructor(e){super(e),this.get=new Ko(e)}async createCreate(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/queries/create`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/queries/${encodeURIComponent(t)}`)}async patch(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/queries/${encodeURIComponent(t)}`,{body:{...n}})}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/queries/${encodeURIComponent(t)}`,{body:{...n}})}},Jo=class extends D{constructor(e){super(e)}async create(e,t,n,r){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/${encodeURIComponent(t)}/raw/${encodeURIComponent(n)}`,{body:{...r}})}},Yo=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/relate/${encodeURIComponent(t)}/create`,{body:{...n}})}},Xo=class extends D{create;constructor(e){super(e),this.create=new Yo(e)}},Zo=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/relationships/create`,{body:{...t}})}},Qo=class extends D{create;constructor(e){super(e),this.create=new Zo(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/${encodeURIComponent(t)}/relationships`,{query:n})}},$o=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/tags/categories/create`,{body:{...t}})}},es=class extends D{create;constructor(e){super(e),this.create=new $o(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/tags/categories`,{query:t})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/tags/categories/${encodeURIComponent(t)}`)}async patch(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/tags/categories/${encodeURIComponent(t)}`,{body:{...n}})}},ts=class extends D{categories;constructor(e){super(e),this.categories=new es(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/tags`,{query:t})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/tags/${encodeURIComponent(t)}`)}async patch(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/tags/${encodeURIComponent(t)}`,{body:{...n}})}},ns=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/targetIndustries/catalog`)}},rs=class extends D{catalog;constructor(e){super(e),this.catalog=new ns(e)}},is=class extends D{industries;constructor(e){super(e),this.industries=new rs(e)}},as=class extends D{constructor(e){super(e)}async patch(e,t){return this._client.patch(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/update/bulk`,{body:{...t}})}},os=class extends D{bulk;constructor(e){super(e),this.bulk=new as(e)}},ss=class extends D{aggregate;categories;createBulk;dataset;datasets;delete;graphql;indicator;indicators;queries;raw;relate;relationships;tags;target;update;constructor(e){super(e),this.aggregate=new fo(e),this.categories=new mo(e),this.createBulk=new go(e),this.dataset=new Io(e),this.datasets=new Ro(e),this.delete=new zo(e),this.graphql=new Ho(e),this.indicator=new Wo(e),this.indicators=new Go(e),this.queries=new qo(e),this.raw=new Jo(e),this.relate=new Xo(e),this.relationships=new Qo(e),this.tags=new ts(e),this.target=new is(e),this.update=new os(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/${encodeURIComponent(t)}`,{body:{...n}})}},cs=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/${encodeURIComponent(t)}/asset/new`)}},ls=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/${encodeURIComponent(t)}/asset/${encodeURIComponent(n)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/${encodeURIComponent(t)}/asset`,{body:{...n}})}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/${encodeURIComponent(t)}/asset/${encodeURIComponent(n)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/${encodeURIComponent(t)}/asset/${encodeURIComponent(n)}`)}},us=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/${encodeURIComponent(t)}/message`,{body:{...n}})}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/${encodeURIComponent(t)}/message/new`,{body:{...n}})}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/${encodeURIComponent(t)}/message/${encodeURIComponent(n)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/${encodeURIComponent(t)}/message/${encodeURIComponent(n)}`)}},ds=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/priority/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/priority/new`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/priority/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/priority/${encodeURIComponent(t)}`)}async quota(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/priority/quota`)}async list(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/priority`,{body:{...t}})}},fs=class extends D{assetNew;assets;message;priority;constructor(e){super(e),this.assetNew=new cs(e),this.assets=new ls(e),this.message=new us(e),this.priority=new ds(e)}async list(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests`,{body:{...t}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/new`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/${encodeURIComponent(t)}`)}async quota(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/quota`)}async types(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/types`)}async constants(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/requests/constants`)}},ps=class extends D{constructor(e){super(e)}async rules(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/rules`)}},ms=class extends D{constructor(e){super(e)}async rule(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/rules/${encodeURIComponent(t)}`)}},hs=class extends D{all;one;constructor(e){super(e),this.all=new ps(e),this.one=new ms(e)}},gs=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/rules/stats`)}},_s=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/rules/tree`)}},vs=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/rules/validate`,{body:{...t}})}},ys=class extends D{delete;stats;tree;validate;constructor(e){super(e),this.delete=new hs(e),this.stats=new gs(e),this.tree=new _s(e),this.validate=new vs(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/rules`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/rules`,{body:{...t}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/rules/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/cloudforce-one/rules/${encodeURIComponent(t)}`,{body:{...n}})}},bs=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/scans/config`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/scans/config`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/cloudforce-one/scans/config/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/scans/config/${encodeURIComponent(t)}`)}},xs=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/scans/results/${encodeURIComponent(t)}`)}},Ss=class extends D{config;results;constructor(e){super(e),this.config=new bs(e),this.results=new xs(e)}},Cs=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/attackers`,{query:t})}},ws=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/categories`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/categories/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/categories/create`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/categories/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/categories/${encodeURIComponent(t)}`)}},Ts=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/countries`)}},Es=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/create`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/dataset/${encodeURIComponent(t)}`,{body:{...n}})}async raw(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/raw/${encodeURIComponent(n)}/${encodeURIComponent(t)}`)}},Ds=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/event_tag/${encodeURIComponent(t)}/create`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/event_tag/${encodeURIComponent(t)}`)}},Os=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/indicatorTypes`)}},ks=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/${encodeURIComponent(t)}/raw/${encodeURIComponent(n)}`)}async edit(e,t,n,r){return this._client.patch(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/${encodeURIComponent(t)}/raw/${encodeURIComponent(n)}`,{body:{...r}})}},As=class extends D{constructor(e){super(e)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/relate/${encodeURIComponent(t)}`)}},js=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/tags/create`,{body:{...t}})}},Ms=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/targetIndustries`,{query:t})}},Ns=class extends D{attackers;categories;countries;datasets;eventTags;indicatorTypes;raw;relate;tags;targetIndustries;constructor(e){super(e),this.attackers=new Cs(e),this.categories=new ws(e),this.countries=new Ts(e),this.datasets=new Es(e),this.eventTags=new Ds(e),this.indicatorTypes=new Os(e),this.raw=new ks(e),this.relate=new As(e),this.tags=new js(e),this.targetIndustries=new Ms(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/create`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/${encodeURIComponent(t)}`,{body:{...n}})}async bulkCreate(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cloudforce-one/events/create/bulk`,{body:{...t}})}},Ps=class extends D{binaryStorage;events;requests;rules;scans;threatEvents;constructor(e){super(e),this.binaryStorage=new uo(e),this.events=new ss(e),this.requests=new fs(e),this.rules=new ys(e),this.scans=new Ss(e),this.threatEvents=new Ns(e)}},Fs=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/connectivity/directory/services`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/connectivity/directory/services`,{body:{...t}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/connectivity/directory/services/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/connectivity/directory/services/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/connectivity/directory/services/${encodeURIComponent(t)}`)}},Is=class extends D{services;constructor(e){super(e),this.services=new Fs(e)}},Ls=class extends D{directory;constructor(e){super(e),this.directory=new Is(e)}},Rs=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/content-upload-scan/payloads`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/content-upload-scan/payloads`,{body:t})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/content-upload-scan/payloads/${encodeURIComponent(t)}`)}},zs=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/content-upload-scan/settings`)}},Bs=class extends D{payloads;settings;constructor(e){super(e),this.payloads=new Rs(e),this.settings=new zs(e)}async enable(e){return this._client.post(`/zones/${encodeURIComponent(e)}/content-upload-scan/enable`)}async disable(e){return this._client.post(`/zones/${encodeURIComponent(e)}/content-upload-scan/disable`)}async create(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/content-upload-scan/settings`,{body:{...t}})}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/content-upload-scan/settings`,{body:{...t}})}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/content-upload-scan/settings`)}},Vs=class extends D{constructor(e){super(e)}async update(e){return this._client.put(`/zones/${encodeURIComponent(e)}/custom_certificates/prioritize`)}},Hs=class extends D{prioritize;constructor(e){super(e),this.prioritize=new Vs(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/custom_certificates`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/custom_certificates/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/custom_certificates`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(t)}/custom_certificates/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/custom_certificates/${encodeURIComponent(e)}`)}},Us=class extends D{constructor(e){super(e)}async update(e,t,n,r,i){return this._client.put(`/zones/${encodeURIComponent(r)}/custom_hostnames/${encodeURIComponent(e)}/certificate_pack/${encodeURIComponent(t)}/certificates/${encodeURIComponent(n)}`,{body:{...i}})}async delete(e,t,n,r){return this._client.delete(`/zones/${encodeURIComponent(r)}/custom_hostnames/${encodeURIComponent(e)}/certificate_pack/${encodeURIComponent(t)}/certificates/${encodeURIComponent(n)}`)}},Ws=class extends D{certificates;constructor(e){super(e),this.certificates=new Us(e)}},Gs=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/custom_hostnames/fallback_origin`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/custom_hostnames/fallback_origin`,{body:{...t}})}async delete(e){return this._client.delete(`/zones/${encodeURIComponent(e)}/custom_hostnames/fallback_origin`)}},Ks=class extends D{certificatePack;fallbackOrigin;constructor(e){super(e),this.certificatePack=new Ws(e),this.fallbackOrigin=new Gs(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/custom_hostnames`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/custom_hostnames/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/custom_hostnames`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(t)}/custom_hostnames/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/custom_hostnames/${encodeURIComponent(e)}`)}},qs=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/custom_ns`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/custom_ns`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/custom_ns/${encodeURIComponent(e)}`)}},Js=class extends D{constructor(e){super(e)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/custom_pages/${encodeURIComponent(e)}`,{body:{...n}})}},Ys=class extends D{constructor(e){super(e)}async asset(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/custom_pages/assets`,{body:{...t}})}},Xs=class extends D{custom;constructor(e){super(e),this.custom=new Ys(e)}async v2(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/custom_pages/assets`,{body:{...t}})}},Zs=class extends D{constructor(e){super(e)}async asset(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/custom_pages/assets/${encodeURIComponent(e)}`)}},Qs=class extends D{custom;constructor(e){super(e),this.custom=new Zs(e)}async v2(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/custom_pages/assets/${encodeURIComponent(e)}`)}},$s=class extends D{constructor(e){super(e)}async asset(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/custom_pages/assets/${encodeURIComponent(e)}`)}},ec=class extends D{custom;constructor(e){super(e),this.custom=new $s(e)}async v2(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/custom_pages/assets/${encodeURIComponent(e)}`)}},tc=class extends D{constructor(e){super(e)}async assets(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/custom_pages/assets`,{query:t})}},nc=class extends D{custom;constructor(e){super(e),this.custom=new tc(e)}async v2(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/custom_pages/assets`,{query:t})}},rc=class extends D{constructor(e){super(e)}async asset(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/custom_pages/assets/${encodeURIComponent(e)}`,{body:{...n}})}},ic=class extends D{custom;constructor(e){super(e),this.custom=new rc(e)}async v2(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/custom_pages/assets/${encodeURIComponent(e)}`,{body:{...n}})}},ac=class extends D{create;delete;get;list;update;constructor(e){super(e),this.create=new Xs(e),this.delete=new Qs(e),this.get=new ec(e),this.list=new nc(e),this.update=new ic(e)}},oc=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/custom_pages`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/custom_pages/${encodeURIComponent(e)}`)}},sc=class extends D{accountCustomPages;assets;zoneCustomPages;constructor(e){super(e),this.accountCustomPages=new Js(e),this.assets=new ac(e),this.zoneCustomPages=new oc(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/custom_pages`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/custom_pages/${encodeURIComponent(e)}`)}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/custom_pages/${encodeURIComponent(e)}`,{body:{...n}})}},cc=class extends D{constructor(e){super(e)}async getBookmark(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/d1/database/${encodeURIComponent(t)}/time_travel/bookmark`,{query:n})}async restore(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/d1/database/${encodeURIComponent(t)}/time_travel/restore`,{query:n})}},lc=class extends D{timeTravel;constructor(e){super(e),this.timeTravel=new cc(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/d1/database`,{body:{...t}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/d1/database/${encodeURIComponent(t)}`)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/d1/database`,{query:t})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/d1/database/${encodeURIComponent(t)}`)}async query(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/d1/database/${encodeURIComponent(t)}/query`,{body:{...n}})}async export(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/d1/database/${encodeURIComponent(t)}/export`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/d1/database/${encodeURIComponent(t)}`,{body:{...n}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/d1/database/${encodeURIComponent(t)}`,{body:{...n}})}async import(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/d1/database/${encodeURIComponent(t)}/import`,{body:{...n}})}async raw(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/d1/database/${encodeURIComponent(t)}/raw`,{body:{...n}})}},uc=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/dcv_delegation/uuid`)}},dc=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/diagnostics/endpoint-healthchecks`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/diagnostics/endpoint-healthchecks`,{body:{...t}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/diagnostics/endpoint-healthchecks/${encodeURIComponent(t)}`)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/diagnostics/endpoint-healthchecks/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/diagnostics/endpoint-healthchecks/${encodeURIComponent(t)}`,{body:{...n}})}},fc=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/diagnostics/traceroute`,{body:{...t}})}},pc=class extends D{endpointHealthchecks;traceroutes;constructor(e){super(e),this.endpointHealthchecks=new dc(e),this.traceroutes=new fc(e)}},mc=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts/${encodeURIComponent(n)}/assets-upload-session`)}},hc=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts/${encodeURIComponent(n)}/bindings`)}},gc=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts/${encodeURIComponent(n)}/content`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts/${encodeURIComponent(n)}/content`)}},_c=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts/${encodeURIComponent(n)}/secrets`)}async get(e,t,n,r,i){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts/${encodeURIComponent(n)}/secrets/${encodeURIComponent(r)}`,{query:i})}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts/${encodeURIComponent(n)}/secrets`,{body:{...r}})}async delete(e,t,n,r,i){return this._client.delete(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts/${encodeURIComponent(n)}/secrets/${encodeURIComponent(r)}`,{query:i})}},vc=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts/${encodeURIComponent(n)}/settings`)}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts/${encodeURIComponent(n)}/settings`)}},yc=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts/${encodeURIComponent(n)}/tags`)}async create(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts/${encodeURIComponent(n)}/tags/${encodeURIComponent(r)}`)}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts/${encodeURIComponent(n)}/tags`,{body:r})}async delete(e,t,n,r){return this._client.delete(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts/${encodeURIComponent(n)}/tags/${encodeURIComponent(r)}`)}},bc=class extends D{assetUpload;bindings;content;secrets;settings;tags;constructor(e){super(e),this.assetUpload=new mc(e),this.bindings=new hc(e),this.content=new gc(e),this.secrets=new _c(e),this.settings=new vc(e),this.tags=new yc(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts`,{query:n})}async bulkDelete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts`,{query:n})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts/${encodeURIComponent(n)}`)}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts/${encodeURIComponent(n)}`,{body:{...r}})}async delete(e,t,n,r){return this._client.delete(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}/scripts/${encodeURIComponent(n)}`,{query:r})}},xc=class extends D{scripts;constructor(e){super(e),this.scripts=new bc(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/workers/dispatch/namespaces/${encodeURIComponent(t)}`,{body:{...n}})}},Sc=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/dns_analytics/report/bytime`,{query:t})}},Cc=class extends D{bytimes;constructor(e){super(e),this.bytimes=new Sc(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/dns_analytics/report`,{query:t})}},wc=class extends D{reports;constructor(e){super(e),this.reports=new Cc(e)}},Tc=class extends D{constructor(e){super(e)}async zsks(e){return this._client.get(`/zones/${encodeURIComponent(e)}/dnssec/zsk`)}},Ec=class extends D{list;constructor(e){super(e),this.list=new Tc(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/dnssec`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/dnssec`,{body:{...t}})}async delete(e){return this._client.delete(`/zones/${encodeURIComponent(e)}/dnssec`)}},Dc=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/dns_records`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/dns_records/${encodeURIComponent(e)}`)}async create(e){return this._client.post(`/zones/${encodeURIComponent(e)}/dns_records`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(t)}/dns_records/${encodeURIComponent(e)}`)}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/dns_records/${encodeURIComponent(e)}`)}async export(e){return this._client.get(`/zones/${encodeURIComponent(e)}/dns_records/export`)}async import(e){return this._client.post(`/zones/${encodeURIComponent(e)}/dns_records/import`)}async scan(e){return this._client.post(`/zones/${encodeURIComponent(e)}/dns_records/scan`)}async batch(e){return this._client.post(`/zones/${encodeURIComponent(e)}/dns_records/batch`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(t)}/dns_records/${encodeURIComponent(e)}`)}async scanList(e){return this._client.get(`/zones/${encodeURIComponent(e)}/dns_records/scan/review`)}async scanReview(e){return this._client.post(`/zones/${encodeURIComponent(e)}/dns_records/scan/review`)}async scanTrigger(e){return this._client.post(`/zones/${encodeURIComponent(e)}/dns_records/scan/trigger`)}},Oc=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dns_settings/views`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/dns_settings/views`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/dns_settings/views/${encodeURIComponent(t)}`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dns_settings/views/${encodeURIComponent(t)}`)}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/dns_settings/views/${encodeURIComponent(t)}`,{body:{...n}})}},kc=class extends D{views;constructor(e){super(e),this.views=new Oc(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/dns_settings`)}async edit(e,t){return this._client.patch(`/accounts/${encodeURIComponent(e)}/dns_settings`,{body:{...t}})}},Ac=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/dns_settings`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/dns_settings`,{body:{...t}})}},jc=class extends D{account;zone;constructor(e){super(e),this.account=new kc(e),this.zone=new Ac(e)}},Mc=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/dns_records/usage`)}},Nc=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/dns_records/usage`)}},Pc=class extends D{account;zone;constructor(e){super(e),this.account=new Mc(e),this.zone=new Nc(e)}},Fc=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/secondary_dns/acls`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/secondary_dns/acls/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/secondary_dns/acls`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/secondary_dns/acls/${encodeURIComponent(e)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/secondary_dns/acls/${encodeURIComponent(e)}`,{body:{...n}})}},Ic=class extends D{constructor(e){super(e)}async create(e){return this._client.post(`/zones/${encodeURIComponent(e)}/secondary_dns/force_axfr`)}},Lc=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/secondary_dns/incoming`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/secondary_dns/incoming`,{body:{...t}})}async delete(e){return this._client.delete(`/zones/${encodeURIComponent(e)}/secondary_dns/incoming`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/secondary_dns/incoming`,{body:{...t}})}},Rc=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/secondary_dns/outgoing/status`)}},zc=class extends D{status;constructor(e){super(e),this.status=new Rc(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/secondary_dns/outgoing`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/secondary_dns/outgoing`,{body:{...t}})}async delete(e){return this._client.delete(`/zones/${encodeURIComponent(e)}/secondary_dns/outgoing`)}async disable(e){return this._client.post(`/zones/${encodeURIComponent(e)}/secondary_dns/outgoing/disable`)}async enable(e){return this._client.post(`/zones/${encodeURIComponent(e)}/secondary_dns/outgoing/enable`)}async forceNotify(e){return this._client.post(`/zones/${encodeURIComponent(e)}/secondary_dns/outgoing/force_notify`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/secondary_dns/outgoing`,{body:{...t}})}},Bc=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/secondary_dns/peers`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/secondary_dns/peers/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/secondary_dns/peers`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/secondary_dns/peers/${encodeURIComponent(e)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/secondary_dns/peers/${encodeURIComponent(e)}`,{body:{...n}})}},Vc=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/secondary_dns/tsigs`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/secondary_dns/tsigs/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/secondary_dns/tsigs`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/secondary_dns/tsigs/${encodeURIComponent(e)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/secondary_dns/tsigs/${encodeURIComponent(e)}`,{body:{...n}})}},Hc=class extends D{acls;forceAxfr;incoming;outgoing;peers;tsigs;constructor(e){super(e),this.acls=new Fc(e),this.forceAxfr=new Ic(e),this.incoming=new Lc(e),this.outgoing=new zc(e),this.peers=new Bc(e),this.tsigs=new Vc(e)}},Uc=class extends D{analytics;dnssec;records;settings;usage;zoneTransfers;constructor(e){super(e),this.analytics=new wc(e),this.dnssec=new Ec(e),this.records=new Dc(e),this.settings=new jc(e),this.usage=new Pc(e),this.zoneTransfers=new Hc(e)}},Wc=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/dns_firewall/${encodeURIComponent(e)}/dns_analytics/report/bytime`,{query:n})}},Gc=class extends D{bytimes;constructor(e){super(e),this.bytimes=new Wc(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/dns_firewall/${encodeURIComponent(e)}/dns_analytics/report`,{query:n})}},Kc=class extends D{reports;constructor(e){super(e),this.reports=new Gc(e)}},qc=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/dns_firewall/${encodeURIComponent(e)}/reverse_dns`)}async edit(e,t){return this._client.patch(`/accounts/${encodeURIComponent(t)}/dns_firewall/${encodeURIComponent(e)}/reverse_dns`)}},Jc=class extends D{analytics;reverseDNS;constructor(e){super(e),this.analytics=new Kc(e),this.reverseDNS=new qc(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dns_firewall`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/dns_firewall/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/dns_firewall`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/dns_firewall/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/dns_firewall/${encodeURIComponent(e)}`)}},Yc=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/durable_objects/namespaces/${encodeURIComponent(t)}/objects`,{query:n})}},Xc=class extends D{objects;constructor(e){super(e),this.objects=new Yc(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/durable_objects/namespaces`,{query:t})}},Zc=class extends D{namespaces;constructor(e){super(e),this.namespaces=new Xc(e)}},Qc=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email/routing/addresses`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/email/routing/addresses/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/email/routing/addresses`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/email/routing/addresses/${encodeURIComponent(e)}`)}},$c=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/email/routing/dns`,{query:t})}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/email/routing/dns`,{body:{...t}})}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/email/routing/dns`,{body:{...t}})}async delete(e){return this._client.delete(`/zones/${encodeURIComponent(e)}/email/routing/dns`)}},el=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/email/routing/rules/catch_all`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/email/routing/rules/catch_all`,{body:{...t}})}},tl=class extends D{catchAlls;constructor(e){super(e),this.catchAlls=new el(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/email/routing/rules`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/email/routing/rules/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/email/routing/rules`,{body:{...t}})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/email/routing/rules/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/email/routing/rules/${encodeURIComponent(e)}`)}},nl=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email/routing/suppression`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/email/routing/suppression`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/email/routing/suppression/${encodeURIComponent(t)}`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email/routing/suppression/${encodeURIComponent(t)}`)}},rl=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email/sending/suppression`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/email/sending/suppression`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/email/sending/suppression/${encodeURIComponent(t)}`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email/sending/suppression/${encodeURIComponent(t)}`)}},il=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/email/routing/suppression`,{query:t})}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/email/routing/suppression`,{body:{...t}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/email/routing/suppression/${encodeURIComponent(t)}`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/email/routing/suppression/${encodeURIComponent(t)}`)}},al=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/email/sending/suppression`,{query:t})}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/email/sending/suppression`,{body:{...t}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/email/sending/suppression/${encodeURIComponent(t)}`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/email/sending/suppression/${encodeURIComponent(t)}`)}},ol=class extends D{routing;sending;constructor(e){super(e),this.routing=new il(e),this.sending=new al(e)}},sl=class extends D{routing;sending;zone;constructor(e){super(e),this.routing=new nl(e),this.sending=new rl(e),this.zone=new ol(e)}},cl=class extends D{addresses;dns;rules;suppression;constructor(e){super(e),this.addresses=new Qc(e),this.dns=new $c(e),this.rules=new tl(e),this.suppression=new sl(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/email/routing`)}async disable(e){return this._client.post(`/zones/${encodeURIComponent(e)}/email/routing/disable`)}async enable(e){return this._client.post(`/zones/${encodeURIComponent(e)}/email/routing/enable`)}},ll=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/investigate/${encodeURIComponent(t)}/detections`)}},ul=class extends D{constructor(e){super(e)}async log(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/investigate/${encodeURIComponent(t)}/action_log`)}},dl=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/email-security/investigate/${encodeURIComponent(t)}/move`,{body:{...n}})}async bulk(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/email-security/investigate/move`,{body:{...t}})}},fl=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/investigate/${encodeURIComponent(t)}/preview`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/email-security/investigate/preview`,{body:{...t}})}},pl=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/investigate/${encodeURIComponent(t)}/raw`)}},ml=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/email-security/investigate/${encodeURIComponent(t)}/reclassify`,{body:{...n}})}},hl=class extends D{constructor(e){super(e)}async bulk(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/email-security/investigate/release`,{body:t})}},gl=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/investigate/${encodeURIComponent(t)}/trace`,{query:n})}},_l=class extends D{detections;getAction;move;preview;raw;reclassify;release;trace;constructor(e){super(e),this.detections=new ll(e),this.getAction=new ul(e),this.move=new dl(e),this.preview=new fl(e),this.raw=new pl(e),this.reclassify=new ml(e),this.release=new hl(e),this.trace=new gl(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/investigate`,{query:t})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/investigate/${encodeURIComponent(t)}`,{query:n})}},vl=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/phishguard/reports`,{query:t})}},yl=class extends D{reports;constructor(e){super(e),this.reports=new vl(e)}},bl=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/settings/allow_policies`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/settings/allow_policies/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/email-security/settings/allow_policies`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/email-security/settings/allow_policies/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/email-security/settings/allow_policies/${encodeURIComponent(t)}`)}},xl=class extends D{constructor(e){super(e)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/email-security/settings/allow_policies/batch`)}},Sl=class extends D{batch;constructor(e){super(e),this.batch=new xl(e)}},Cl=class extends D{policies;constructor(e){super(e),this.policies=new Sl(e)}},wl=class extends D{constructor(e){super(e)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/email-security/settings/block_senders/batch`)}},Tl=class extends D{batch;constructor(e){super(e),this.batch=new wl(e)}},El=class extends D{senders;constructor(e){super(e),this.senders=new Tl(e)}},Dl=class extends D{constructor(e){super(e)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/email-security/settings/sending_domain_restrictions/batch`)}},Ol=class extends D{batch;constructor(e){super(e),this.batch=new Dl(e)}},kl=class extends D{restrictions;constructor(e){super(e),this.restrictions=new Ol(e)}},Al=class extends D{domain;constructor(e){super(e),this.domain=new kl(e)}},jl=class extends D{constructor(e){super(e)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/email-security/settings/trusted_domains/batch`)}},Ml=class extends D{batch;constructor(e){super(e),this.batch=new jl(e)}},Nl=class extends D{domains;constructor(e){super(e),this.domains=new Ml(e)}},Pl=class extends D{allow;block;sending;trusted;constructor(e){super(e),this.allow=new Cl(e),this.block=new El(e),this.sending=new Al(e),this.trusted=new Nl(e)}},Fl=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/settings/block_senders`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/settings/block_senders/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/email-security/settings/block_senders`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/email-security/settings/block_senders/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/email-security/settings/block_senders/${encodeURIComponent(t)}`)}},Il=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/settings/domains`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/settings/domains/${encodeURIComponent(t)}`)}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/email-security/settings/domains/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/email-security/settings/domains/${encodeURIComponent(t)}`)}async bulkDelete(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/email-security/settings/domains`)}},Ll=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/settings/impersonation_registry`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/settings/impersonation_registry/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/email-security/settings/impersonation_registry`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/email-security/settings/impersonation_registry/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/email-security/settings/impersonation_registry/${encodeURIComponent(t)}`)}},Rl=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/settings/trusted_domains`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/settings/trusted_domains/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/email-security/settings/trusted_domains`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/email-security/settings/trusted_domains/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/email-security/settings/trusted_domains/${encodeURIComponent(t)}`)}},zl=class extends D{allowPolicies;batch;blockSenders;domains;impersonationRegistry;trustedDomains;constructor(e){super(e),this.allowPolicies=new bl(e),this.batch=new Pl(e),this.blockSenders=new Fl(e),this.domains=new Il(e),this.impersonationRegistry=new Ll(e),this.trustedDomains=new Rl(e)}},Bl=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/email-security/submissions`,{query:t})}},Vl=class extends D{investigate;phishguard;settings;submissions;constructor(e){super(e),this.investigate=new _l(e),this.phishguard=new yl(e),this.settings=new zl(e),this.submissions=new Bl(e)}},Hl=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/email/sending/limits`)}},Ul=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/email/sending/subdomains/${encodeURIComponent(e)}/dns`)}},Wl=class extends D{dns;constructor(e){super(e),this.dns=new Ul(e)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/email/sending/subdomains`,{body:{...t}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/email/sending/subdomains/${encodeURIComponent(e)}`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/email/sending/subdomains/${encodeURIComponent(e)}`)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/email/sending/subdomains`)}async preview(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/email/sending/subdomains/preview`,{body:{...t}})}},Gl=class extends D{limits;subdomains;constructor(e){super(e),this.limits=new Hl(e),this.subdomains=new Wl(e)}async send(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/email/sending/send`,{body:{...t}})}async sendRaw(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/email/sending/send_raw`,{body:{...t}})}},Kl=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/filters`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/filters/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/filters`,{body:t})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/filters/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/filters/${encodeURIComponent(e)}`)}async bulkUpdate(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/filters`,{body:t})}async bulkDelete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/filters`,{query:t})}},ql=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/firewall/access_rules/rules`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/firewall/access_rules/rules/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/firewall/access_rules/rules`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/firewall/access_rules/rules/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/firewall/access_rules/rules/${encodeURIComponent(e)}`)}},Jl=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/firewall/lockdowns`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/firewall/lockdowns/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/firewall/lockdowns`,{body:{...t}})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/firewall/lockdowns/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/firewall/lockdowns/${encodeURIComponent(e)}`)}},Yl=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/firewall/rules`,{query:t})}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(t)}/firewall/rules/${encodeURIComponent(e)}`,{query:n})}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/firewall/rules`,{body:{...t}})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/firewall/rules/${encodeURIComponent(e)}`,{body:{...n}})}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(t)}/firewall/rules/${encodeURIComponent(e)}`)}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/firewall/rules/${encodeURIComponent(e)}`)}async bulkUpdate(e){return this._client.put(`/zones/${encodeURIComponent(e)}/firewall/rules`)}async bulkEdit(e){return this._client.patch(`/zones/${encodeURIComponent(e)}/firewall/rules`)}async bulkDelete(e){return this._client.delete(`/zones/${encodeURIComponent(e)}/firewall/rules`)}},Xl=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/firewall/ua_rules`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/firewall/ua_rules/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/firewall/ua_rules`,{body:{...t}})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/firewall/ua_rules/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/firewall/ua_rules/${encodeURIComponent(e)}`)}},Zl=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/firewall/waf/overrides`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/firewall/waf/overrides/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/firewall/waf/overrides`,{body:{...t}})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/firewall/waf/overrides/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/firewall/waf/overrides/${encodeURIComponent(e)}`)}},Ql=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/zones/${encodeURIComponent(t)}/firewall/waf/packages/${encodeURIComponent(e)}/groups`,{query:n})}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(n)}/firewall/waf/packages/${encodeURIComponent(t)}/groups/${encodeURIComponent(e)}`)}async edit(e,t,n,r){return this._client.patch(`/zones/${encodeURIComponent(n)}/firewall/waf/packages/${encodeURIComponent(t)}/groups/${encodeURIComponent(e)}`,{body:{...r}})}},$l=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/zones/${encodeURIComponent(t)}/firewall/waf/packages/${encodeURIComponent(e)}/rules`,{query:n})}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(n)}/firewall/waf/packages/${encodeURIComponent(t)}/rules/${encodeURIComponent(e)}`)}async edit(e,t,n,r){return this._client.patch(`/zones/${encodeURIComponent(n)}/firewall/waf/packages/${encodeURIComponent(t)}/rules/${encodeURIComponent(e)}`,{body:{...r}})}},eu=class extends D{groups;rules;constructor(e){super(e),this.groups=new Ql(e),this.rules=new $l(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/firewall/waf/packages`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/firewall/waf/packages/${encodeURIComponent(e)}`)}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(t)}/firewall/waf/packages/${encodeURIComponent(e)}`,{body:{...n}})}},tu=class extends D{overrides;packages;constructor(e){super(e),this.overrides=new Zl(e),this.packages=new eu(e)}},nu=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/firewall/access_rules/rules`,{query:t})}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/firewall/access_rules/rules`,{body:{...t}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/firewall/access_rules/rules/${encodeURIComponent(t)}`)}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(e)}/firewall/access_rules/rules/${encodeURIComponent(t)}`,{body:{...n}})}},ru=class extends D{accessRules;lockdowns;rules;uaRules;waf;zoneAccessRules;constructor(e){super(e),this.accessRules=new ql(e),this.lockdowns=new Jl(e),this.rules=new Yl(e),this.uaRules=new Xl(e),this.waf=new tu(e),this.zoneAccessRules=new nu(e)}},iu=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/fraud_detection/settings`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/fraud_detection/settings`,{body:{...t}})}},au=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/settings/google-tag-gateway/config`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/settings/google-tag-gateway/config`,{body:{...t}})}},ou=class extends D{config;constructor(e){super(e),this.config=new au(e)}},su=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/healthchecks/preview/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/healthchecks/preview`,{body:{...t}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/healthchecks/preview/${encodeURIComponent(e)}`)}},cu=class extends D{previews;constructor(e){super(e),this.previews=new su(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/healthchecks`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/healthchecks/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/healthchecks`,{body:{...t}})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/healthchecks/${encodeURIComponent(e)}`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(t)}/healthchecks/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/healthchecks/${encodeURIComponent(e)}`)}},lu=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/hostnames/settings/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(e)}/hostnames/settings/${encodeURIComponent(t)}/${encodeURIComponent(n)}`)}async delete(e,t,n){return this._client.delete(`/zones/${encodeURIComponent(e)}/hostnames/settings/${encodeURIComponent(t)}/${encodeURIComponent(n)}`)}},uu=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(e)}/hostnames/settings/${encodeURIComponent(t)}/${encodeURIComponent(n)}`)}},du=class extends D{tls;tlsSingle;constructor(e){super(e),this.tls=new lu(e),this.tlsSingle=new uu(e)}},fu=class extends D{settings;constructor(e){super(e),this.settings=new du(e)}},pu=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/hyperdrive/configs`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/hyperdrive/configs/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/hyperdrive/configs`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/hyperdrive/configs/${encodeURIComponent(t)}`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/hyperdrive/configs/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/hyperdrive/configs/${encodeURIComponent(t)}`)}},mu=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/iam/permission_groups`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/iam/permission_groups/${encodeURIComponent(t)}`)}},hu=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/iam/resource_groups`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/iam/resource_groups/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/iam/resource_groups`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/iam/resource_groups/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/iam/resource_groups/${encodeURIComponent(t)}`)}},gu=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/sso_connectors`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/sso_connectors/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/sso_connectors`,{body:{...t}})}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/sso_connectors/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/sso_connectors/${encodeURIComponent(t)}`)}async beginVerification(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/sso_connectors/${encodeURIComponent(t)}/begin_verification`)}},_u=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/iam/user_groups/${encodeURIComponent(t)}/members`,{query:n})}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/iam/user_groups/${encodeURIComponent(t)}/members`,{body:n})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/iam/user_groups/${encodeURIComponent(t)}/members`,{body:n})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/iam/user_groups/${encodeURIComponent(t)}/members/${encodeURIComponent(n)}`)}},vu=class extends D{members;constructor(e){super(e),this.members=new _u(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/iam/user_groups`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/iam/user_groups/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/iam/user_groups`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/iam/user_groups/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/iam/user_groups/${encodeURIComponent(t)}`)}},yu=class extends D{permissionGroups;resourceGroups;sso;userGroups;constructor(e){super(e),this.permissionGroups=new mu(e),this.resourceGroups=new hu(e),this.sso=new gu(e),this.userGroups=new vu(e)}},bu=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/images/v1/${encodeURIComponent(e)}/blob`)}},xu=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/images/v1/keys`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(t)}/images/v1/keys/${encodeURIComponent(e)}`)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/images/v1/keys/${encodeURIComponent(e)}`)}},Su=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/images/v1/stats`)}},Cu=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/images/v1/variants`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/images/v1/variants/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/images/v1/variants`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/images/v1/variants/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/images/v1/variants/${encodeURIComponent(e)}`)}},wu=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/images/v1/variants/${encodeURIComponent(e)}/flat`)}},Tu=class extends D{blobs;keys;stats;variants;variantsFlat;constructor(e){super(e),this.blobs=new bu(e),this.keys=new xu(e),this.stats=new Su(e),this.variants=new Cu(e),this.variantsFlat=new wu(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/images/v1`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/images/v1/${encodeURIComponent(e)}`)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/images/v1`)}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/images/v1/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/images/v1/${encodeURIComponent(e)}`)}},Eu=class extends D{constructor(e){super(e)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/images/v2/direct_upload`)}},Du=class extends D{directUploads;constructor(e){super(e),this.directUploads=new Eu(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/images/v2`,{query:t})}},Ou=class extends D{v1;v2;constructor(e){super(e),this.v1=new Tu(e),this.v2=new Du(e)}},ku=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/intel/asn/${encodeURIComponent(e)}/subnets`)}},Au=class extends D{subnets;constructor(e){super(e),this.subnets=new ku(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/intel/asn/${encodeURIComponent(e)}`)}},ju=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/intel/attack-surface-report/issue-types`)}},Mu=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/intel/attack-surface-report/issues`,{query:t})}async class(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/intel/attack-surface-report/issues/class`,{query:t})}async severity(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/intel/attack-surface-report/issues/severity`,{query:t})}async type(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/intel/attack-surface-report/issues/type`,{query:t})}async dismiss(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/intel/attack-surface-report/${encodeURIComponent(t)}/dismiss`,{body:{...n}})}},Nu=class extends D{issueTypes;issues;constructor(e){super(e),this.issueTypes=new ju(e),this.issues=new Mu(e)}},Pu=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/intel/dns`,{query:t})}},Fu=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/intel/domain-history`,{query:t})}},Iu=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/intel/domain/bulk`,{query:t})}},Lu=class extends D{bulks;constructor(e){super(e),this.bulks=new Iu(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/intel/domain`,{query:t})}},Ru=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/intel/indicator-feeds/${encodeURIComponent(t)}/download`)}},zu=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/intel/indicator-feeds/permissions/view`)}async create(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/intel/indicator-feeds/permissions/add`,{body:{...t}})}async delete(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/intel/indicator-feeds/permissions/remove`,{body:{...t}})}},Bu=class extends D{constructor(e){super(e)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/intel/indicator-feeds/${encodeURIComponent(t)}/snapshot`)}},Vu=class extends D{downloads;permissions;snapshots;constructor(e){super(e),this.downloads=new Ru(e),this.permissions=new zu(e),this.snapshots=new Bu(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/intel/indicator-feeds`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/intel/indicator-feeds/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/intel/indicator-feeds`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/intel/indicator-feeds/${encodeURIComponent(t)}`,{body:{...n}})}async data(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/intel/indicator-feeds/${encodeURIComponent(t)}/data`)}},Hu=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/intel/ip-lists`)}},Uu=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/intel/ip`,{query:t})}},Wu=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/intel/miscategorization`,{body:{...t}})}},Gu=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/intel/sinkholes`)}},Ku=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/intel/whois`,{query:t})}},qu=class extends D{asn;attackSurfaceReport;dns;domainHistory;domains;indicatorFeeds;ipLists;ips;miscategorizations;sinkholes;whois;constructor(e){super(e),this.asn=new Au(e),this.attackSurfaceReport=new Nu(e),this.dns=new Pu(e),this.domainHistory=new Fu(e),this.domains=new Lu(e),this.indicatorFeeds=new Vu(e),this.ipLists=new Hu(e),this.ips=new Uu(e),this.miscategorizations=new Wu(e),this.sinkholes=new Gu(e),this.whois=new Ku(e)}},Ju=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/ips`,{query:e})}},Yu=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/keyless_certificates`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/keyless_certificates/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/keyless_certificates`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(t)}/keyless_certificates/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/keyless_certificates/${encodeURIComponent(e)}`)}},Xu=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/storage/kv/namespaces/${encodeURIComponent(e)}/bulk/get`,{body:{...n}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/storage/kv/namespaces/${encodeURIComponent(e)}/bulk`,{body:n})}async delete(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/storage/kv/namespaces/${encodeURIComponent(e)}/bulk/delete`,{body:n})}},Zu=class extends D{constructor(e){super(e)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/storage/kv/namespaces/${encodeURIComponent(e)}/bulk`)}},Qu=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/storage/kv/namespaces/${encodeURIComponent(e)}/keys`,{query:n})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/storage/kv/namespaces/${encodeURIComponent(t)}/values/${encodeURIComponent(e)}`)}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(n)}/storage/kv/namespaces/${encodeURIComponent(t)}/values/${encodeURIComponent(e)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(n)}/storage/kv/namespaces/${encodeURIComponent(t)}/values/${encodeURIComponent(e)}`)}},$u=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/storage/kv/namespaces/${encodeURIComponent(t)}/metadata/${encodeURIComponent(e)}`)}},ed=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/storage/kv/namespaces`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/storage/kv/namespaces/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/storage/kv/namespaces`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/storage/kv/namespaces/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/storage/kv/namespaces/${encodeURIComponent(e)}`)}},td=class extends D{bulk;bulkDeprecated;keys;metadata;namespaces;constructor(e){super(e),this.bulk=new Xu(e),this.bulkDeprecated=new Zu(e),this.keys=new Qu(e),this.metadata=new $u(e),this.namespaces=new ed(e)}},nd=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/leaked-credential-checks/detections`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/leaked-credential-checks/detections`,{body:{...t}})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/leaked-credential-checks/detections/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(e)}/leaked-credential-checks/detections/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/leaked-credential-checks/detections/${encodeURIComponent(t)}`)}},rd=class extends D{detections;constructor(e){super(e),this.detections=new nd(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/leaked-credential-checks`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/leaked-credential-checks`,{body:{...t}})}},id=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/load_balancers/monitor_groups/${encodeURIComponent(e)}/references`)}},ad=class extends D{references;constructor(e){super(e),this.references=new id(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/load_balancers/monitor_groups`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/load_balancers/monitor_groups/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/load_balancers/monitor_groups`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/load_balancers/monitor_groups/${encodeURIComponent(e)}`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/load_balancers/monitor_groups/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/load_balancers/monitor_groups/${encodeURIComponent(e)}`)}},od=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/load_balancers/monitors/${encodeURIComponent(e)}/preview`,{body:{...n}})}},sd=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/load_balancers/monitors/${encodeURIComponent(e)}/references`)}},cd=class extends D{previews;references;constructor(e){super(e),this.previews=new od(e),this.references=new sd(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/load_balancers/monitors`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/load_balancers/monitors/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/load_balancers/monitors`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/load_balancers/monitors/${encodeURIComponent(e)}`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/load_balancers/monitors/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/load_balancers/monitors/${encodeURIComponent(e)}`)}},ld=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/load_balancers/pools/${encodeURIComponent(e)}/health`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/load_balancers/pools/${encodeURIComponent(e)}/preview`,{body:{...n}})}},ud=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/load_balancers/pools/${encodeURIComponent(e)}/references`)}},dd=class extends D{health;references;constructor(e){super(e),this.health=new ld(e),this.references=new ud(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/load_balancers/pools`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/load_balancers/pools/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/load_balancers/pools`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/load_balancers/pools/${encodeURIComponent(e)}`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/load_balancers/pools/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/load_balancers/pools/${encodeURIComponent(e)}`)}async bulkEdit(e,t){return this._client.patch(`/accounts/${encodeURIComponent(e)}/load_balancers/pools`,{body:{...t}})}},fd=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/load_balancers/preview/${encodeURIComponent(e)}`)}},pd=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/load_balancers/regions`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/load_balancers/regions/${encodeURIComponent(e)}`)}},md=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/load_balancers/search`,{query:t})}},hd=class extends D{monitorGroups;monitors;pools;previews;regions;searches;constructor(e){super(e),this.monitorGroups=new ad(e),this.monitors=new cd(e),this.pools=new dd(e),this.previews=new fd(e),this.regions=new pd(e),this.searches=new md(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/load_balancers`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/load_balancers/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/load_balancers`,{body:{...t}})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(e)}/load_balancers/${encodeURIComponent(t)}`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(e)}/load_balancers/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/load_balancers/${encodeURIComponent(t)}`)}},gd=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/logpush/datasets/${encodeURIComponent(e)}/fields`)}},_d=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/logpush/datasets/${encodeURIComponent(e)}/jobs`)}},vd=class extends D{fields;jobs;constructor(e){super(e),this.fields=new gd(e),this.jobs=new _d(e)}},yd=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/logpush/jobs`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/logpush/jobs`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/logpush/jobs/${encodeURIComponent(e)}`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/logpush/jobs/${encodeURIComponent(e)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/logpush/jobs/${encodeURIComponent(e)}`,{body:{...n}})}},bd=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/logpush/ownership/validate`,{body:{...t}})}},xd=class extends D{validate;constructor(e){super(e),this.validate=new bd(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/logpush/ownership`,{body:{...t}})}},Sd=class extends D{constructor(e){super(e)}async delete(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/logpush/validate/destination`,{body:{...t}})}},Cd=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/logpush/validate/origin`,{body:{...t}})}},wd=class extends D{destination;origin;constructor(e){super(e),this.destination=new Sd(e),this.origin=new Cd(e)}async destinationExistsDelete(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/logpush/validate/destination/exists`,{body:{...t}})}},Td=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/logpush/datasets/${encodeURIComponent(e)}/fields`)}},Ed=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/logpush/datasets/${encodeURIComponent(e)}/jobs`)}},Dd=class extends D{fields;jobs;constructor(e){super(e),this.fields=new Td(e),this.jobs=new Ed(e)}},Od=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/logpush/edge/jobs`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/logpush/edge/jobs`,{body:{...t}})}},kd=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/logpush/jobs`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/logpush/jobs/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/logpush/jobs`,{body:{...t}})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/logpush/jobs/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/logpush/jobs/${encodeURIComponent(e)}`)}},Ad=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/logs/explorer/datasets/available`)}},jd=class extends D{available;constructor(e){super(e),this.available=new Ad(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/logs/explorer/datasets`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/logs/explorer/datasets`,{body:{...t}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/logs/explorer/datasets/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/logs/explorer/datasets/${encodeURIComponent(t)}`,{body:{...n}})}},Md=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/logs/explorer/datasets/available`)}},Nd=class extends D{available;constructor(e){super(e),this.available=new Md(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/logs/explorer/datasets`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/logs/explorer/datasets`,{body:{...t}})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/logs/explorer/datasets/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(e)}/logs/explorer/datasets/${encodeURIComponent(t)}`,{body:{...n}})}},Pd=class extends D{accounts;zones;constructor(e){super(e),this.accounts=new jd(e),this.zones=new Nd(e)}},Fd=class extends D{constructor(e){super(e)}async query(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/logs/explorer/query/sql`)}},Id=class extends D{constructor(e){super(e)}async query(e){return this._client.post(`/zones/${encodeURIComponent(e)}/logs/explorer/query/sql`)}},Ld=class extends D{accounts;zones;constructor(e){super(e),this.accounts=new Fd(e),this.zones=new Id(e)}},Rd=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/logpush/ownership`,{body:{...t}})}async validate(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/logpush/ownership/validate`,{body:{...t}})}},zd=class extends D{constructor(e){super(e)}async destination(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/logpush/validate/destination`,{body:{...t}})}async destinationExists(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/logpush/validate/destination/exists`,{body:{...t}})}async origin(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/logpush/validate/origin`,{body:{...t}})}},Bd=class extends D{accountDatasets;accountJobs;accountOwnership;accountValidate;datasets;edge;jobs;logExplorerDatasets;logExplorerQuery;ownership;validate;constructor(e){super(e),this.accountDatasets=new vd(e),this.accountJobs=new yd(e),this.accountOwnership=new xd(e),this.accountValidate=new wd(e),this.datasets=new Dd(e),this.edge=new Od(e),this.jobs=new kd(e),this.logExplorerDatasets=new Pd(e),this.logExplorerQuery=new Ld(e),this.ownership=new Rd(e),this.validate=new zd(e)}},Vd=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/logs/control/cmb/config`,{body:{...t}})}async delete(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/logs/control/cmb/config`)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/logs/control/cmb/config`)}},Hd=class extends D{config;constructor(e){super(e),this.config=new Vd(e)}},Ud=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/logs/control/retention/flag`,{body:{...t}})}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/logs/control/retention/flag`)}},Wd=class extends D{cmb;retention;constructor(e){super(e),this.cmb=new Hd(e),this.retention=new Ud(e)}},Gd=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(e)}/logs/rayids/${encodeURIComponent(t)}`,{query:n})}},Kd=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/logs/received/fields`)}},qd=class extends D{fields;constructor(e){super(e),this.fields=new Kd(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/logs/received`,{query:t})}},Jd=class extends D{control;rayid;received;constructor(e){super(e),this.control=new Wd(e),this.rayid=new Gd(e),this.received=new qd(e)}},Yd=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/cloud/catalog-syncs/prebuilt-policies`,{query:t})}},Xd=class extends D{prebuiltPolicies;constructor(e){super(e),this.prebuiltPolicies=new Yd(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/cloud/catalog-syncs`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/cloud/catalog-syncs/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/cloud/catalog-syncs`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/magic/cloud/catalog-syncs/${encodeURIComponent(t)}`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/magic/cloud/catalog-syncs/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/cloud/catalog-syncs/${encodeURIComponent(t)}`,{query:n})}async refresh(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/cloud/catalog-syncs/${encodeURIComponent(t)}/refresh`)}},Zd=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/cloud/providers`,{query:t})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/cloud/providers/${encodeURIComponent(t)}`,{query:n})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/cloud/providers`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/magic/cloud/providers/${encodeURIComponent(t)}`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/magic/cloud/providers/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/cloud/providers/${encodeURIComponent(t)}`)}async discoverAll(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/cloud/providers/discover`)}async discover(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/cloud/providers/${encodeURIComponent(t)}/discover`,{query:n})}async initialSetup(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/cloud/providers/${encodeURIComponent(t)}/initial_setup`)}},Qd=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/cloud/onramps/magic_wan_address_space`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/magic/cloud/onramps/magic_wan_address_space`,{body:{...t}})}async edit(e,t){return this._client.patch(`/accounts/${encodeURIComponent(e)}/magic/cloud/onramps/magic_wan_address_space`,{body:{...t}})}},$d=class extends D{addressSpaces;constructor(e){super(e),this.addressSpaces=new Qd(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/cloud/onramps`,{query:t})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/cloud/onramps/${encodeURIComponent(t)}`,{query:n})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/cloud/onramps`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/magic/cloud/onramps/${encodeURIComponent(t)}`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/magic/cloud/onramps/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/cloud/onramps/${encodeURIComponent(t)}`,{query:n})}async apply(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/cloud/onramps/${encodeURIComponent(t)}/apply`)}async export(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/cloud/onramps/${encodeURIComponent(t)}/export`)}async plan(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/cloud/onramps/${encodeURIComponent(t)}/plan`)}},ef=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/cloud/resources`,{query:t})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/cloud/resources/${encodeURIComponent(t)}`,{query:n})}async export(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/cloud/resources/export`,{query:t})}async policyPreview(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/cloud/resources/policy-preview`,{body:{...t}})}},tf=class extends D{catalogSyncs;cloudIntegrations;onRamps;resources;constructor(e){super(e),this.catalogSyncs=new Xd(e),this.cloudIntegrations=new Zd(e),this.onRamps=new $d(e),this.resources=new ef(e)}},nf=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/mnm/config/full`)}},rf=class extends D{full;constructor(e){super(e),this.full=new nf(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/mnm/config`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/mnm/config`,{body:{...t}})}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/mnm/config`,{body:{...t}})}async edit(e,t){return this._client.patch(`/accounts/${encodeURIComponent(e)}/mnm/config`,{body:{...t}})}async delete(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/mnm/config`)}},af=class extends D{constructor(e){super(e)}async edit(e,t){return this._client.patch(`/accounts/${encodeURIComponent(t)}/mnm/rules/${encodeURIComponent(e)}/advertisement`)}},of=class extends D{advertisements;constructor(e){super(e),this.advertisements=new af(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/mnm/rules`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/mnm/rules/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/mnm/rules`,{body:{...t}})}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/mnm/rules`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/mnm/rules/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/mnm/rules/${encodeURIComponent(e)}`)}},sf=class extends D{constructor(e){super(e)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/mnm/vpc-flows/token`)}},cf=class extends D{tokens;constructor(e){super(e),this.tokens=new sf(e)}},lf=class extends D{configs;rules;vpcFlows;constructor(e){super(e),this.configs=new rf(e),this.rules=new of(e),this.vpcFlows=new cf(e)}},uf=class extends D{constructor(e){super(e)}async account(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/advanced_dns_protection/configs/dns_protection/rules`)}},df=class extends D{constructor(e){super(e)}async rule(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/advanced_dns_protection/configs/dns_protection/rules/${encodeURIComponent(t)}`)}},ff=class extends D{for;protection;constructor(e){super(e),this.for=new uf(e),this.protection=new df(e)}},pf=class extends D{delete;constructor(e){super(e),this.delete=new ff(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/advanced_dns_protection/configs/dns_protection/rules`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/advanced_dns_protection/configs/dns_protection/rules`,{body:{...t}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/advanced_dns_protection/configs/dns_protection/rules/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/magic/advanced_dns_protection/configs/dns_protection/rules/${encodeURIComponent(t)}`,{body:{...n}})}},mf=class extends D{rules;constructor(e){super(e),this.rules=new pf(e)}},hf=class extends D{protection;constructor(e){super(e),this.protection=new mf(e)}},gf=class extends D{dns;constructor(e){super(e),this.dns=new hf(e)}},_f=class extends D{configs;constructor(e){super(e),this.configs=new gf(e)}},vf=class extends D{constructor(e){super(e)}async prefix(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/allowlist/${encodeURIComponent(t)}`)}},yf=class extends D{constructor(e){super(e)}async account(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/allowlist`)}},bf=class extends D{allowlist;for;constructor(e){super(e),this.allowlist=new vf(e),this.for=new yf(e)}},xf=class extends D{delete;constructor(e){super(e),this.delete=new bf(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/allowlist`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/allowlist`,{body:{...t}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/allowlist/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/allowlist/${encodeURIComponent(t)}`,{body:{...n}})}},Sf=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/prefixes/bulk`,{body:t})}},Cf=class extends D{constructor(e){super(e)}async account(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/prefixes`)}},wf=class extends D{for;constructor(e){super(e),this.for=new Cf(e)}async prefix(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/prefixes/${encodeURIComponent(t)}`)}},Tf=class extends D{bulk;delete;constructor(e){super(e),this.bulk=new Sf(e),this.delete=new wf(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/prefixes`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/prefixes`,{body:{...t}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/prefixes/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/prefixes/${encodeURIComponent(t)}`,{body:{...n}})}},Ef=class extends D{constructor(e){super(e)}async account(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/syn_protection/filters`)}},Df=class extends D{constructor(e){super(e)}async filter(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/syn_protection/filters/${encodeURIComponent(t)}`)}},Of=class extends D{for;protection;constructor(e){super(e),this.for=new Ef(e),this.protection=new Df(e)}},kf=class extends D{delete;constructor(e){super(e),this.delete=new Of(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/syn_protection/filters`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/syn_protection/filters`,{body:{...t}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/syn_protection/filters/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/syn_protection/filters/${encodeURIComponent(t)}`,{body:{...n}})}},Af=class extends D{constructor(e){super(e)}async account(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/syn_protection/rules`)}},jf=class extends D{constructor(e){super(e)}async rule(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/syn_protection/rules/${encodeURIComponent(t)}`)}},Mf=class extends D{for;protection;constructor(e){super(e),this.for=new Af(e),this.protection=new jf(e)}},Nf=class extends D{delete;constructor(e){super(e),this.delete=new Mf(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/syn_protection/rules`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/syn_protection/rules`,{body:{...t}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/syn_protection/rules/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/syn_protection/rules/${encodeURIComponent(t)}`,{body:{...n}})}},Pf=class extends D{filters;rules;constructor(e){super(e),this.filters=new kf(e),this.rules=new Nf(e)}},Ff=class extends D{protection;constructor(e){super(e),this.protection=new Pf(e)}},If=class extends D{constructor(e){super(e)}async account(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/tcp_flow_protection/filters`)}},Lf=class extends D{constructor(e){super(e)}async filter(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/tcp_flow_protection/filters/${encodeURIComponent(t)}`)}},Rf=class extends D{for;protection;constructor(e){super(e),this.for=new If(e),this.protection=new Lf(e)}},zf=class extends D{delete;constructor(e){super(e),this.delete=new Rf(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/tcp_flow_protection/filters`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/tcp_flow_protection/filters`,{body:{...t}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/tcp_flow_protection/filters/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/tcp_flow_protection/filters/${encodeURIComponent(t)}`,{body:{...n}})}},Bf=class extends D{constructor(e){super(e)}async account(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/tcp_flow_protection/rules`)}},Vf=class extends D{constructor(e){super(e)}async rule(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/tcp_flow_protection/rules/${encodeURIComponent(t)}`)}},Hf=class extends D{for;protection;constructor(e){super(e),this.for=new Bf(e),this.protection=new Vf(e)}},Uf=class extends D{delete;constructor(e){super(e),this.delete=new Hf(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/tcp_flow_protection/rules`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/tcp_flow_protection/rules`,{body:{...t}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/tcp_flow_protection/rules/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/tcp_flow_protection/rules/${encodeURIComponent(t)}`,{body:{...n}})}},Wf=class extends D{filters;rules;constructor(e){super(e),this.filters=new zf(e),this.rules=new Uf(e)}},Gf=class extends D{protection;constructor(e){super(e),this.protection=new Wf(e)}},Kf=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/tcp_protection_status`)}async update(e,t){return this._client.patch(`/accounts/${encodeURIComponent(e)}/magic/advanced_tcp_protection/configs/tcp_protection_status`,{body:{...t}})}},qf=class extends D{status;constructor(e){super(e),this.status=new Kf(e)}},Jf=class extends D{flow;protection;constructor(e){super(e),this.flow=new Gf(e),this.protection=new qf(e)}},Yf=class extends D{allowlist;prefixes;syn;tcp;constructor(e){super(e),this.allowlist=new xf(e),this.prefixes=new Tf(e),this.syn=new Ff(e),this.tcp=new Jf(e)}},Xf=class extends D{configs;constructor(e){super(e),this.configs=new Yf(e)}},Zf=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/apps`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/apps`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/magic/apps/${encodeURIComponent(t)}`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/magic/apps/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/apps/${encodeURIComponent(t)}`)}},Qf=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/cf_interconnects`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/magic/cf_interconnects/${encodeURIComponent(e)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/magic/cf_interconnects/${encodeURIComponent(e)}`,{body:{...n}})}async bulkUpdate(e){return this._client.put(`/accounts/${encodeURIComponent(e)}/magic/cf_interconnects`)}},$f=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/connectors/${encodeURIComponent(t)}/telemetry/events/latest`)}},ep=class extends D{latest;constructor(e){super(e),this.latest=new $f(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/connectors/${encodeURIComponent(t)}/telemetry/events`,{query:n})}async get(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/connectors/${encodeURIComponent(t)}/telemetry/events/${encodeURIComponent(n)}.${encodeURIComponent(r)}`)}},tp=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/connectors/${encodeURIComponent(t)}/telemetry/snapshots/latest`)}},np=class extends D{latest;constructor(e){super(e),this.latest=new tp(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/connectors/${encodeURIComponent(t)}/telemetry/snapshots`,{query:n})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/connectors/${encodeURIComponent(t)}/telemetry/snapshots/${encodeURIComponent(n)}`)}},rp=class extends D{events;snapshots;constructor(e){super(e),this.events=new ep(e),this.snapshots=new np(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/connectors`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/connectors/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/connectors`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/magic/connectors/${encodeURIComponent(t)}`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/magic/connectors/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/connectors/${encodeURIComponent(t)}`)}},ip=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/gre_tunnels`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/magic/gre_tunnels/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/gre_tunnels`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/magic/gre_tunnels/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/magic/gre_tunnels/${encodeURIComponent(e)}`)}async bulkUpdate(e){return this._client.put(`/accounts/${encodeURIComponent(e)}/magic/gre_tunnels`)}},ap=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/ipsec_tunnels`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/magic/ipsec_tunnels/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/ipsec_tunnels`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/magic/ipsec_tunnels/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/magic/ipsec_tunnels/${encodeURIComponent(e)}`)}async bulkUpdate(e){return this._client.put(`/accounts/${encodeURIComponent(e)}/magic/ipsec_tunnels`)}async pskGenerate(e,t){return this._client.post(`/accounts/${encodeURIComponent(t)}/magic/ipsec_tunnels/${encodeURIComponent(e)}/psk_generate`)}},op=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/pcaps/${encodeURIComponent(e)}/download`)}},sp=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/pcaps/ownership`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/pcaps/ownership`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/pcaps/ownership/${encodeURIComponent(e)}`)}async validate(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/pcaps/ownership/validate`,{body:{...t}})}},cp=class extends D{download;ownership;constructor(e){super(e),this.download=new op(e),this.ownership=new sp(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/pcaps`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/pcaps/${encodeURIComponent(e)}`)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/pcaps`)}async stop(e,t){return this._client.put(`/accounts/${encodeURIComponent(t)}/pcaps/${encodeURIComponent(e)}/stop`)}},lp=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/routes`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/magic/routes/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/routes`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/magic/routes/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/magic/routes/${encodeURIComponent(e)}`)}async bulkUpdate(e){return this._client.put(`/accounts/${encodeURIComponent(e)}/magic/routes`)}async empty(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/routes`)}},up=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/sites/${encodeURIComponent(t)}/acls`)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/magic/sites/${encodeURIComponent(e)}/acls/${encodeURIComponent(n)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/sites/${encodeURIComponent(t)}/acls`,{body:{...n}})}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(t)}/magic/sites/${encodeURIComponent(e)}/acls/${encodeURIComponent(n)}`,{body:{...r}})}async edit(e,t,n,r){return this._client.patch(`/accounts/${encodeURIComponent(t)}/magic/sites/${encodeURIComponent(e)}/acls/${encodeURIComponent(n)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(t)}/magic/sites/${encodeURIComponent(e)}/acls/${encodeURIComponent(n)}`)}},dp=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/sites/${encodeURIComponent(t)}/app_configs`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/sites/${encodeURIComponent(t)}/app_configs`,{body:{...n}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/sites/${encodeURIComponent(t)}/app_configs/${encodeURIComponent(n)}`)}async edit(e,t,n,r){return this._client.patch(`/accounts/${encodeURIComponent(e)}/magic/sites/${encodeURIComponent(t)}/app_configs/${encodeURIComponent(n)}`,{body:{...r}})}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(e)}/magic/sites/${encodeURIComponent(t)}/app_configs/${encodeURIComponent(n)}`,{body:{...r}})}},fp=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/sites/${encodeURIComponent(t)}/lans`)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/magic/sites/${encodeURIComponent(e)}/lans/${encodeURIComponent(n)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/sites/${encodeURIComponent(t)}/lans`,{body:{...n}})}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(t)}/magic/sites/${encodeURIComponent(e)}/lans/${encodeURIComponent(n)}`,{body:{...r}})}async edit(e,t,n,r){return this._client.patch(`/accounts/${encodeURIComponent(t)}/magic/sites/${encodeURIComponent(e)}/lans/${encodeURIComponent(n)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(t)}/magic/sites/${encodeURIComponent(e)}/lans/${encodeURIComponent(n)}`)}},pp=class extends D{constructor(e){super(e)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/magic/sites/${encodeURIComponent(t)}/netflow_config`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/sites/${encodeURIComponent(t)}/netflow_config`)}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/magic/sites/${encodeURIComponent(t)}/netflow_config`,{body:{...n}})}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/sites/${encodeURIComponent(t)}/netflow_config`,{body:{...n}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/magic/sites/${encodeURIComponent(t)}/netflow_config`,{body:{...n}})}},mp=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/sites/${encodeURIComponent(t)}/wans`)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/magic/sites/${encodeURIComponent(e)}/wans/${encodeURIComponent(n)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/sites/${encodeURIComponent(t)}/wans`,{body:{...n}})}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(t)}/magic/sites/${encodeURIComponent(e)}/wans/${encodeURIComponent(n)}`,{body:{...r}})}async edit(e,t,n,r){return this._client.patch(`/accounts/${encodeURIComponent(t)}/magic/sites/${encodeURIComponent(e)}/wans/${encodeURIComponent(n)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(t)}/magic/sites/${encodeURIComponent(e)}/wans/${encodeURIComponent(n)}`)}},hp=class extends D{acls;appConfiguration;lans;netflowConfig;wans;constructor(e){super(e),this.acls=new up(e),this.appConfiguration=new dp(e),this.lans=new fp(e),this.netflowConfig=new pp(e),this.wans=new mp(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/magic/sites`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/magic/sites/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/magic/sites`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/magic/sites/${encodeURIComponent(e)}`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/magic/sites/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/magic/sites/${encodeURIComponent(e)}`)}},gp=class extends D{advancedDNSProtection;advancedTCPProtection;apps;cfInterconnects;connectors;greTunnels;ipsecTunnels;pcaps;routes;sites;constructor(e){super(e),this.advancedDNSProtection=new _f(e),this.advancedTCPProtection=new Xf(e),this.apps=new Zf(e),this.cfInterconnects=new Qf(e),this.connectors=new rp(e),this.greTunnels=new ip(e),this.ipsecTunnels=new ap(e),this.pcaps=new cp(e),this.routes=new lp(e),this.sites=new hp(e)}},_p=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/managed_headers`)}async edit(e){return this._client.patch(`/zones/${encodeURIComponent(e)}/managed_headers`)}async delete(e){return this._client.delete(`/zones/${encodeURIComponent(e)}/managed_headers`)}},vp=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/mtls_certificates/${encodeURIComponent(e)}/associations`)}},yp=class extends D{associations;constructor(e){super(e),this.associations=new vp(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/mtls_certificates`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/mtls_certificates/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/mtls_certificates`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/mtls_certificates/${encodeURIComponent(e)}`)}},bp=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cni/cnis`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/cni/cnis/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cni/cnis`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/cni/cnis/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/cni/cnis/${encodeURIComponent(e)}`)}},xp=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cni/interconnects`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/cni/interconnects/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cni/interconnects`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/cni/interconnects/${encodeURIComponent(e)}`)}async loa(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/cni/interconnects/${encodeURIComponent(e)}/loa`)}async status(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/cni/interconnects/${encodeURIComponent(e)}/status`)}},Sp=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/cni/settings`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/cni/settings`,{body:{...t}})}},Cp=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cni/slots`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/cni/slots/${encodeURIComponent(e)}`)}},wp=class extends D{cnis;interconnects;settings;slots;constructor(e){super(e),this.cnis=new bp(e),this.interconnects=new xp(e),this.settings=new Sp(e),this.slots=new Cp(e)}},Tp=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/organizations`)}},Ep=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/organizations/${encodeURIComponent(e)}/logs/audit`,{query:t})}},Dp=class extends D{audit;constructor(e){super(e),this.audit=new Ep(e)}},Op=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/organizations/${encodeURIComponent(e)}/members`,{query:t})}async create(e,t){return this._client.post(`/organizations/${encodeURIComponent(e)}/members`,{body:{...t}})}async delete(e,t){return this._client.delete(`/organizations/${encodeURIComponent(e)}/members/${encodeURIComponent(t)}`)}async get(e,t){return this._client.get(`/organizations/${encodeURIComponent(e)}/members/${encodeURIComponent(t)}`)}},kp=class extends D{constructor(e){super(e)}async create(e){return this._client.post(`/organizations/${encodeURIComponent(e)}/members:batchCreate`)}},Ap=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/organizations/${encodeURIComponent(e)}/accounts`,{query:t})}},jp=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/organizations/${encodeURIComponent(e)}/profile`)}async update(e,t){return this._client.put(`/organizations/${encodeURIComponent(e)}/profile`,{body:{...t}})}},Mp=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/organizations/${encodeURIComponent(e)}/shares`,{query:t})}},Np=class extends D{accountOrganizations;logs;members;membersBatchCreate;organizationAccounts;organizationProfile;shares;constructor(e){super(e),this.accountOrganizations=new Tp(e),this.logs=new Dp(e),this.members=new Op(e),this.membersBatchCreate=new kp(e),this.organizationAccounts=new Ap(e),this.organizationProfile=new jp(e),this.shares=new Mp(e)}async list(e){return this._client.get(`/organizations`,{query:e})}async get(e){return this._client.get(`/organizations/${encodeURIComponent(e)}`)}async create(e){return this._client.post(`/organizations`,{body:{...e}})}async update(e,t){return this._client.put(`/organizations/${encodeURIComponent(e)}`,{body:{...t}})}async delete(e){return this._client.delete(`/organizations/${encodeURIComponent(e)}`)}},Pp=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/certificates`,{query:e})}async get(e){return this._client.get(`/certificates/${encodeURIComponent(e)}`)}async create(e){return this._client.post(`/certificates`,{body:{...e}})}async delete(e){return this._client.delete(`/certificates/${encodeURIComponent(e)}`)}},Fp=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/cache/origin_post_quantum_encryption`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/cache/origin_post_quantum_encryption`,{body:{...t}})}},Ip=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/origin_tls_client_auth/hostnames`,{query:t})}},Lp=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/origin_tls_client_auth/hostnames/certificates`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/origin_tls_client_auth/hostnames/certificates/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/origin_tls_client_auth/hostnames/certificates`,{body:{...t}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/origin_tls_client_auth/hostnames/certificates/${encodeURIComponent(e)}`)}},Rp=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/origin_tls_client_auth/hostnames/${encodeURIComponent(e)}`)}async update(e){return this._client.put(`/zones/${encodeURIComponent(e)}/origin_tls_client_auth/hostnames`)}},zp=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/origin_tls_client_auth/settings`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/origin_tls_client_auth/settings`,{body:{...t}})}},Bp=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/origin_tls_client_auth`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/origin_tls_client_auth/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/origin_tls_client_auth`,{body:{...t}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/origin_tls_client_auth/${encodeURIComponent(e)}`)}},Vp=class extends D{hostnameAssociations;hostnameCertificates;hostnames;settings;zoneCertificates;constructor(e){super(e),this.hostnameAssociations=new Ip(e),this.hostnameCertificates=new Lp(e),this.hostnames=new Rp(e),this.settings=new zp(e),this.zoneCertificates=new Bp(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/origin_tls_client_auth`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/origin_tls_client_auth/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/origin_tls_client_auth`,{body:{...t}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/origin_tls_client_auth/${encodeURIComponent(e)}`)}},Hp=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/pagerules/settings`)}},Up=class extends D{settings;constructor(e){super(e),this.settings=new Hp(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/pagerules`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/pagerules/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/pagerules`,{body:{...t}})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/pagerules/${encodeURIComponent(e)}`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(t)}/pagerules/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/pagerules/${encodeURIComponent(e)}`)}},Wp=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/page_shield/connections`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/page_shield/connections/${encodeURIComponent(t)}`)}},Gp=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/page_shield/cookies`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/page_shield/cookies/${encodeURIComponent(t)}`)}},Kp=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/page_shield/policies`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/page_shield/policies/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/page_shield/policies`,{body:{...t}})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(e)}/page_shield/policies/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/page_shield/policies/${encodeURIComponent(t)}`)}},qp=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/page_shield/scripts`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/page_shield/scripts/${encodeURIComponent(t)}`)}},Jp=class extends D{connections;cookies;policies;scripts;constructor(e){super(e),this.connections=new Wp(e),this.cookies=new Gp(e),this.policies=new Kp(e),this.scripts=new qp(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/page_shield`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/page_shield`,{body:{...t}})}},Yp=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/pages/projects/${encodeURIComponent(t)}/deployments/${encodeURIComponent(e)}/history/logs`)}},Xp=class extends D{logs;constructor(e){super(e),this.logs=new Yp(e)}},Zp=class extends D{history;constructor(e){super(e),this.history=new Xp(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/pages/projects/${encodeURIComponent(e)}/deployments`,{query:n})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/pages/projects/${encodeURIComponent(t)}/deployments/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(t)}/pages/projects/${encodeURIComponent(e)}/deployments`)}async delete(e,t,n,r){return this._client.delete(`/accounts/${encodeURIComponent(n)}/pages/projects/${encodeURIComponent(t)}/deployments/${encodeURIComponent(e)}`,{query:r})}async retry(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(n)}/pages/projects/${encodeURIComponent(t)}/deployments/${encodeURIComponent(e)}/retry`)}async rollback(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(n)}/pages/projects/${encodeURIComponent(t)}/deployments/${encodeURIComponent(e)}/rollback`)}},Qp=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/pages/projects/${encodeURIComponent(e)}/domains`)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/pages/projects/${encodeURIComponent(t)}/domains/${encodeURIComponent(e)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/pages/projects/${encodeURIComponent(e)}/domains`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(n)}/pages/projects/${encodeURIComponent(t)}/domains/${encodeURIComponent(e)}`)}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(n)}/pages/projects/${encodeURIComponent(t)}/domains/${encodeURIComponent(e)}`)}},$p=class extends D{deployments;domains;constructor(e){super(e),this.deployments=new Zp(e),this.domains=new Qp(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/pages/projects`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/pages/projects/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/pages/projects`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/pages/projects/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/pages/projects/${encodeURIComponent(e)}`)}async purgeBuildCache(e,t){return this._client.post(`/accounts/${encodeURIComponent(t)}/pages/projects/${encodeURIComponent(e)}/purge_build_cache`)}},em=class extends D{projects;constructor(e){super(e),this.projects=new $p(e)}},tm=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/pipelines/v1/sinks`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/pipelines/v1/sinks/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/pipelines/v1/sinks`,{body:{...t}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/pipelines/v1/sinks/${encodeURIComponent(t)}`,{query:n})}},nm=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/pipelines/v1/streams`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/pipelines/v1/streams/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/pipelines/v1/streams`,{body:{...t}})}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/pipelines/v1/streams/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/pipelines/v1/streams/${encodeURIComponent(t)}`,{query:n})}},rm=class extends D{sinks;streams;constructor(e){super(e),this.sinks=new tm(e),this.streams=new nm(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/pipelines`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/pipelines/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/pipelines`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/pipelines/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/pipelines/${encodeURIComponent(t)}`)}async listV1(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/pipelines/v1/pipelines`,{query:t})}async getV1(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/pipelines/v1/pipelines/${encodeURIComponent(t)}`)}async createV1(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/pipelines/v1/pipelines`,{body:{...t}})}async deleteV1(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/pipelines/v1/pipelines/${encodeURIComponent(t)}`)}async validateSql(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/pipelines/v1/validate_sql`,{body:{...t}})}},im=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/queues/${encodeURIComponent(e)}/consumers`)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/queues/${encodeURIComponent(t)}/consumers/${encodeURIComponent(e)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/queues/${encodeURIComponent(e)}/consumers`,{body:{...n}})}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(n)}/queues/${encodeURIComponent(t)}/consumers/${encodeURIComponent(e)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(n)}/queues/${encodeURIComponent(t)}/consumers/${encodeURIComponent(e)}`)}},am=class extends D{constructor(e){super(e)}async ack(e,t){return this._client.post(`/accounts/${encodeURIComponent(t)}/queues/${encodeURIComponent(e)}/messages/ack`)}async pull(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/queues/${encodeURIComponent(e)}/messages/pull`,{body:{...n}})}async push(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/queues/${encodeURIComponent(e)}/messages`,{body:{...n}})}async bulkPush(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/queues/${encodeURIComponent(e)}/messages/batch`,{body:{...n}})}async preview(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/queues/${encodeURIComponent(e)}/messages/preview`,{body:{...n}})}async ackPreview(e,t){return this._client.post(`/accounts/${encodeURIComponent(t)}/queues/${encodeURIComponent(e)}/messages/preview/ack`)}},om=class extends D{constructor(e){super(e)}async status(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/queues/${encodeURIComponent(e)}/purge`)}async start(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/queues/${encodeURIComponent(e)}/purge`,{body:{...n}})}},sm=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/event_subscriptions/subscriptions`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/event_subscriptions/subscriptions/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/event_subscriptions/subscriptions`,{body:{...t}})}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/event_subscriptions/subscriptions/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/event_subscriptions/subscriptions/${encodeURIComponent(t)}`)}},cm=class extends D{consumers;messages;purge;subscriptions;constructor(e){super(e),this.consumers=new im(e),this.messages=new am(e),this.purge=new om(e),this.subscriptions=new sm(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/queues`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/queues/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/queues`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/queues/${encodeURIComponent(e)}`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/queues/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/queues/${encodeURIComponent(e)}`)}},lm=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/r2/buckets/${encodeURIComponent(e)}/cors`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(t)}/r2/buckets/${encodeURIComponent(e)}/cors`)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/r2/buckets/${encodeURIComponent(e)}/cors`)}},um=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/r2/buckets/${encodeURIComponent(t)}/domains/custom`)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/r2/buckets/${encodeURIComponent(t)}/domains/custom/${encodeURIComponent(n)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/r2/buckets/${encodeURIComponent(t)}/domains/custom`,{body:{...n}})}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(e)}/r2/buckets/${encodeURIComponent(t)}/domains/custom/${encodeURIComponent(n)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(t)}/r2/buckets/${encodeURIComponent(e)}/domains/custom/${encodeURIComponent(n)}`)}},dm=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/r2/buckets/${encodeURIComponent(t)}/domains/managed`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/r2/buckets/${encodeURIComponent(t)}/domains/managed`,{body:{...n}})}},fm=class extends D{custom;managed;constructor(e){super(e),this.custom=new um(e),this.managed=new dm(e)}},pm=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/event_notifications/r2/${encodeURIComponent(e)}/configuration`)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/event_notifications/r2/${encodeURIComponent(t)}/configuration/queues/${encodeURIComponent(e)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(n)}/event_notifications/r2/${encodeURIComponent(t)}/configuration/queues/${encodeURIComponent(e)}`)}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(n)}/event_notifications/r2/${encodeURIComponent(t)}/configuration/queues/${encodeURIComponent(e)}`)}},mm=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/r2/buckets/${encodeURIComponent(e)}/lifecycle`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(t)}/r2/buckets/${encodeURIComponent(e)}/lifecycle`)}},hm=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/r2/buckets/${encodeURIComponent(e)}/local-uploads`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/r2/buckets/${encodeURIComponent(e)}/local-uploads`,{body:{...n}})}},gm=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/r2/buckets/${encodeURIComponent(e)}/lock`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(t)}/r2/buckets/${encodeURIComponent(e)}/lock`)}},_m=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/r2/metrics`)}},vm=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/r2/buckets/${encodeURIComponent(t)}/sippy`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/r2/buckets/${encodeURIComponent(t)}/sippy`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/r2/buckets/${encodeURIComponent(e)}/sippy`)}},ym=class extends D{cors;domains;eventNotifications;lifecycle;localUploads;locks;metrics;sippy;constructor(e){super(e),this.cors=new lm(e),this.domains=new fm(e),this.eventNotifications=new pm(e),this.lifecycle=new mm(e),this.localUploads=new hm(e),this.locks=new gm(e),this.metrics=new _m(e),this.sippy=new vm(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/r2/buckets`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/r2/buckets/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/r2/buckets`,{body:{...t}})}async edit(e,t){return this._client.patch(`/accounts/${encodeURIComponent(e)}/r2/buckets/${encodeURIComponent(t)}`)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/r2/buckets/${encodeURIComponent(e)}`)}},bm=class extends D{constructor(e){super(e)}async source(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/slurper/source/connectivity-precheck`,{body:{...t}})}async target(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/slurper/target/connectivity-precheck`,{body:{...t}})}},xm=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/slurper/jobs/${encodeURIComponent(t)}/logs`,{query:n})}},Sm=class extends D{logs;constructor(e){super(e),this.logs=new xm(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/slurper/jobs`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/slurper/jobs/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/slurper/jobs`,{body:{...t}})}async abortAll(e){return this._client.put(`/accounts/${encodeURIComponent(e)}/slurper/jobs/abortAll`)}async abort(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/slurper/jobs/${encodeURIComponent(t)}/abort`)}async pause(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/slurper/jobs/${encodeURIComponent(t)}/pause`)}async progress(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/slurper/jobs/${encodeURIComponent(t)}/progress`)}async resume(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/slurper/jobs/${encodeURIComponent(t)}/resume`)}},Cm=class extends D{connectivityPrecheck;jobs;constructor(e){super(e),this.connectivityPrecheck=new bm(e),this.jobs=new Sm(e)}},wm=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/r2/temp-access-credentials`,{body:{...t}})}},Tm=class extends D{buckets;superSlurper;temporaryCredentials;constructor(e){super(e),this.buckets=new ym(e),this.superSlurper=new Cm(e),this.temporaryCredentials=new wm(e)}},Em=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/r2-catalog/${encodeURIComponent(t)}/credential`,{body:{...n}})}},Dm=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/r2-catalog/${encodeURIComponent(t)}/maintenance-configs`)}async update(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/r2-catalog/${encodeURIComponent(t)}/maintenance-configs`,{body:{...n}})}},Om=class extends D{constructor(e){super(e)}async get(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(e)}/r2-catalog/${encodeURIComponent(t)}/namespaces/${encodeURIComponent(n)}/tables/${encodeURIComponent(r)}/maintenance-configs`)}async update(e,t,n,r,i){return this._client.post(`/accounts/${encodeURIComponent(e)}/r2-catalog/${encodeURIComponent(t)}/namespaces/${encodeURIComponent(n)}/tables/${encodeURIComponent(r)}/maintenance-configs`,{body:{...i}})}},km=class extends D{maintenanceConfigs;constructor(e){super(e),this.maintenanceConfigs=new Om(e)}async list(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(e)}/r2-catalog/${encodeURIComponent(t)}/namespaces/${encodeURIComponent(n)}/tables`,{query:r})}},Am=class extends D{tables;constructor(e){super(e),this.tables=new km(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/r2-catalog/${encodeURIComponent(t)}/namespaces`,{query:n})}},jm=class extends D{credentials;maintenanceConfigs;namespaces;constructor(e){super(e),this.credentials=new Em(e),this.maintenanceConfigs=new Dm(e),this.namespaces=new Am(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/r2-catalog`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/r2-catalog/${encodeURIComponent(t)}`)}async enable(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/r2-catalog/${encodeURIComponent(t)}/enable`)}async disable(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/r2-catalog/${encodeURIComponent(t)}/disable`)}},Mm=class extends D{constructor(e){super(e)}async summary(e,t){return this._client.get(`/radar/agent_readiness/summary/${encodeURIComponent(e)}`,{query:t})}},Nm=class extends D{constructor(e){super(e)}async userAgent(e){return this._client.get(`/radar/ai/bots/summary/user_agent`,{query:e})}},Pm=class extends D{summary;constructor(e){super(e),this.summary=new Nm(e)}async summaryV2(e,t){return this._client.get(`/radar/ai/bots/summary/${encodeURIComponent(e)}`,{query:t})}async timeseries(e){return this._client.get(`/radar/ai/bots/timeseries`,{query:e})}async timeseriesGroups(e,t){return this._client.get(`/radar/ai/bots/timeseries_groups/${encodeURIComponent(e)}`,{query:t})}},Fm=class extends D{constructor(e){super(e)}async model(e){return this._client.get(`/radar/ai/inference/summary/model`,{query:e})}async task(e){return this._client.get(`/radar/ai/inference/summary/task`,{query:e})}},Im=class extends D{constructor(e){super(e)}async model(e){return this._client.get(`/radar/ai/inference/timeseries_groups/model`,{query:e})}async task(e){return this._client.get(`/radar/ai/inference/timeseries_groups/task`,{query:e})}},Lm=class extends D{summary;constructor(e){super(e),this.summary=new Im(e)}},Rm=class extends D{summary;timeseriesGroups;constructor(e){super(e),this.summary=new Fm(e),this.timeseriesGroups=new Lm(e)}async summaryV2(e,t){return this._client.get(`/radar/ai/inference/summary/${encodeURIComponent(e)}`,{query:t})}async timeseriesGroupsV2(e,t){return this._client.get(`/radar/ai/inference/timeseries_groups/${encodeURIComponent(e)}`,{query:t})}},zm=class extends D{constructor(e){super(e)}async summary(e){return this._client.get(`/radar/ai/markdown_for_agents/summary`,{query:e})}async timeseries(e){return this._client.get(`/radar/ai/markdown_for_agents/timeseries`,{query:e})}},Bm=class extends D{constructor(e){super(e)}async summary(e,t){return this._client.get(`/radar/ai/bots/summary/${encodeURIComponent(e)}`,{query:t})}async timeseries(e){return this._client.get(`/radar/ai/bots/timeseries`,{query:e})}async timeseriesGroups(e,t){return this._client.get(`/radar/ai/bots/timeseries_groups/${encodeURIComponent(e)}`,{query:t})}async userAgent(e){return this._client.get(`/radar/ai/bots/timeseries_groups/user_agent`,{query:e})}},Vm=class extends D{constructor(e){super(e)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/ai/tomarkdown`)}},Hm=class extends D{bots;inference;markdownForAgents;timeseriesGroups;toMarkdown;constructor(e){super(e),this.bots=new Pm(e),this.inference=new Rm(e),this.markdownForAgents=new zm(e),this.timeseriesGroups=new Bm(e),this.toMarkdown=new Vm(e)}},Um=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/radar/annotations/outages`,{query:e})}async locations(e){return this._client.get(`/radar/annotations/outages/locations`,{query:e})}},Wm=class extends D{outages;constructor(e){super(e),this.outages=new Um(e)}async list(e){return this._client.get(`/radar/annotations`,{query:e})}},Gm=class extends D{constructor(e){super(e)}async dnssec(e){return this._client.get(`/radar/as112/summary/dnssec`,{query:e})}async edns(e){return this._client.get(`/radar/as112/summary/edns`,{query:e})}async ipVersion(e){return this._client.get(`/radar/as112/summary/ip_version`,{query:e})}async protocol(e){return this._client.get(`/radar/as112/summary/protocol`,{query:e})}async queryType(e){return this._client.get(`/radar/as112/summary/query_type`,{query:e})}async responseCodes(e){return this._client.get(`/radar/as112/summary/response_codes`,{query:e})}},Km=class extends D{constructor(e){super(e)}async protocol(e){return this._client.get(`/radar/as112/timeseries_groups/protocol`,{query:e})}async queryType(e){return this._client.get(`/radar/as112/timeseries_groups/query_type`,{query:e})}async responseCodes(e){return this._client.get(`/radar/as112/timeseries_groups/response_codes`,{query:e})}async dnssec(e){return this._client.get(`/radar/as112/timeseries_groups/dnssec`,{query:e})}async edns(e){return this._client.get(`/radar/as112/timeseries_groups/edns`,{query:e})}async ipVersion(e){return this._client.get(`/radar/as112/timeseries_groups/ip_version`,{query:e})}},qm=class extends D{constructor(e){super(e)}async locations(e){return this._client.get(`/radar/as112/top/locations`,{query:e})}async dnssec(e,t){return this._client.get(`/radar/as112/top/locations/dnssec/${encodeURIComponent(e)}`,{query:t})}async edns(e,t){return this._client.get(`/radar/as112/top/locations/edns/${encodeURIComponent(e)}`,{query:t})}async ipVersion(e,t){return this._client.get(`/radar/as112/top/locations/ip_version/${encodeURIComponent(e)}`,{query:t})}},Jm=class extends D{summary;timeseriesGroups;top;constructor(e){super(e),this.summary=new Gm(e),this.timeseriesGroups=new Km(e),this.top=new qm(e)}async timeseries(e){return this._client.get(`/radar/as112/timeseries`,{query:e})}async summaryV2(e,t){return this._client.get(`/radar/as112/summary/${encodeURIComponent(e)}`,{query:t})}async timeseriesGroupsV2(e,t){return this._client.get(`/radar/as112/timeseries_groups/${encodeURIComponent(e)}`,{query:t})}},Ym=class extends D{constructor(e){super(e)}async bitrate(e){return this._client.get(`/radar/attacks/layer3/summary/bitrate`,{query:e})}async duration(e){return this._client.get(`/radar/attacks/layer3/summary/duration`,{query:e})}async ipVersion(e){return this._client.get(`/radar/attacks/layer3/summary/ip_version`,{query:e})}async protocol(e){return this._client.get(`/radar/attacks/layer3/summary/protocol`,{query:e})}async vector(e){return this._client.get(`/radar/attacks/layer3/summary/vector`,{query:e})}async industry(e){return this._client.get(`/radar/attacks/layer3/summary/industry`,{query:e})}async vertical(e){return this._client.get(`/radar/attacks/layer3/summary/vertical`,{query:e})}},Xm=class extends D{constructor(e){super(e)}async industry(e){return this._client.get(`/radar/attacks/layer3/timeseries_groups/industry`,{query:e})}async ipVersion(e){return this._client.get(`/radar/attacks/layer3/timeseries_groups/ip_version`,{query:e})}async protocol(e){return this._client.get(`/radar/attacks/layer3/timeseries_groups/protocol`,{query:e})}async vector(e){return this._client.get(`/radar/attacks/layer3/timeseries_groups/vector`,{query:e})}async vertical(e){return this._client.get(`/radar/attacks/layer3/timeseries_groups/vertical`,{query:e})}async bitrate(e){return this._client.get(`/radar/attacks/layer3/timeseries_groups/bitrate`,{query:e})}async duration(e){return this._client.get(`/radar/attacks/layer3/timeseries_groups/duration`,{query:e})}},Zm=class extends D{constructor(e){super(e)}async origin(e){return this._client.get(`/radar/attacks/layer3/top/locations/origin`,{query:e})}async target(e){return this._client.get(`/radar/attacks/layer3/top/locations/target`,{query:e})}},Qm=class extends D{locations;constructor(e){super(e),this.locations=new Zm(e)}async attacks(e){return this._client.get(`/radar/attacks/layer3/top/attacks`,{query:e})}async industry(e){return this._client.get(`/radar/attacks/layer3/top/industry`,{query:e})}async vertical(e){return this._client.get(`/radar/attacks/layer3/top/vertical`,{query:e})}},$m=class extends D{summary;timeseriesGroups;top;constructor(e){super(e),this.summary=new Ym(e),this.timeseriesGroups=new Xm(e),this.top=new Qm(e)}async summaryV2(e,t){return this._client.get(`/radar/attacks/layer3/summary/${encodeURIComponent(e)}`,{query:t})}async timeseries(e){return this._client.get(`/radar/attacks/layer3/timeseries`,{query:e})}async timeseriesGroupsV2(e,t){return this._client.get(`/radar/attacks/layer3/timeseries_groups/${encodeURIComponent(e)}`,{query:t})}},eh=class extends D{constructor(e){super(e)}async ipVersion(e){return this._client.get(`/radar/attacks/layer7/summary/ip_version`,{query:e})}async httpMethod(e){return this._client.get(`/radar/attacks/layer7/summary/http_method`,{query:e})}async httpVersion(e){return this._client.get(`/radar/attacks/layer7/summary/http_version`,{query:e})}async managedRules(e){return this._client.get(`/radar/attacks/layer7/summary/managed_rules`,{query:e})}async mitigationProduct(e){return this._client.get(`/radar/attacks/layer7/summary/mitigation_product`,{query:e})}async industry(e){return this._client.get(`/radar/attacks/layer7/summary/industry`,{query:e})}async vertical(e){return this._client.get(`/radar/attacks/layer7/summary/vertical`,{query:e})}},th=class extends D{constructor(e){super(e)}async industry(e){return this._client.get(`/radar/attacks/layer7/timeseries_groups/industry`,{query:e})}async ipVersion(e){return this._client.get(`/radar/attacks/layer7/timeseries_groups/ip_version`,{query:e})}async vertical(e){return this._client.get(`/radar/attacks/layer7/timeseries_groups/vertical`,{query:e})}async httpMethod(e){return this._client.get(`/radar/attacks/layer7/timeseries_groups/http_method`,{query:e})}async httpVersion(e){return this._client.get(`/radar/attacks/layer7/timeseries_groups/http_version`,{query:e})}async managedRules(e){return this._client.get(`/radar/attacks/layer7/timeseries_groups/managed_rules`,{query:e})}async mitigationProduct(e){return this._client.get(`/radar/attacks/layer7/timeseries_groups/mitigation_product`,{query:e})}},nh=class extends D{constructor(e){super(e)}async origin(e){return this._client.get(`/radar/attacks/layer7/top/ases/origin`,{query:e})}},rh=class extends D{constructor(e){super(e)}async origin(e){return this._client.get(`/radar/attacks/layer7/top/locations/origin`,{query:e})}async target(e){return this._client.get(`/radar/attacks/layer7/top/locations/target`,{query:e})}},ih=class extends D{ases;locations;constructor(e){super(e),this.ases=new nh(e),this.locations=new rh(e)}async attacks(e){return this._client.get(`/radar/attacks/layer7/top/attacks`,{query:e})}async industry(e){return this._client.get(`/radar/attacks/layer7/top/industry`,{query:e})}async vertical(e){return this._client.get(`/radar/attacks/layer7/top/vertical`,{query:e})}},ah=class extends D{summary;timeseriesGroups;top;constructor(e){super(e),this.summary=new eh(e),this.timeseriesGroups=new th(e),this.top=new ih(e)}async summaryV2(e,t){return this._client.get(`/radar/attacks/layer7/summary/${encodeURIComponent(e)}`,{query:t})}async timeseries(e){return this._client.get(`/radar/attacks/layer7/timeseries`,{query:e})}async timeseriesGroupsV2(e,t){return this._client.get(`/radar/attacks/layer7/timeseries_groups/${encodeURIComponent(e)}`,{query:t})}},oh=class extends D{layer3;layer7;constructor(e){super(e),this.layer3=new $m(e),this.layer7=new ah(e)}},sh=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/radar/bgp/hijacks/events`,{query:e})}},ch=class extends D{events;constructor(e){super(e),this.events=new sh(e)}},lh=class extends D{constructor(e){super(e)}async timeseries(e){return this._client.get(`/radar/bgp/ips/timeseries`,{query:e})}},uh=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/radar/bgp/leaks/events`,{query:e})}},dh=class extends D{events;constructor(e){super(e),this.events=new uh(e)}},fh=class extends D{constructor(e){super(e)}async moas(e){return this._client.get(`/radar/bgp/routes/moas`,{query:e})}async pfx2as(e){return this._client.get(`/radar/bgp/routes/pfx2as`,{query:e})}async stats(e){return this._client.get(`/radar/bgp/routes/stats`,{query:e})}async ases(e){return this._client.get(`/radar/bgp/routes/ases`,{query:e})}async realtime(e){return this._client.get(`/radar/bgp/routes/realtime`,{query:e})}},ph=class extends D{constructor(e){super(e)}async snapshot(e){return this._client.get(`/radar/bgp/rpki/aspa/snapshot`,{query:e})}async changes(e){return this._client.get(`/radar/bgp/rpki/aspa/changes`,{query:e})}async timeseries(e){return this._client.get(`/radar/bgp/rpki/aspa/timeseries`,{query:e})}},mh=class extends D{aspa;constructor(e){super(e),this.aspa=new ph(e)}},hh=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/radar/bgp/top/ases`,{query:e})}async prefixes(e){return this._client.get(`/radar/bgp/top/ases/prefixes`,{query:e})}},gh=class extends D{ases;constructor(e){super(e),this.ases=new hh(e)}async prefixes(e){return this._client.get(`/radar/bgp/top/prefixes`,{query:e})}},_h=class extends D{hijacks;ips;leaks;routes;rpki;top;constructor(e){super(e),this.hijacks=new ch(e),this.ips=new lh(e),this.leaks=new dh(e),this.routes=new fh(e),this.rpki=new mh(e),this.top=new gh(e)}async timeseries(e){return this._client.get(`/radar/bgp/timeseries`,{query:e})}},vh=class extends D{constructor(e){super(e)}async summary(e,t){return this._client.get(`/radar/bots/crawlers/summary/${encodeURIComponent(e)}`,{query:t})}async timeseriesGroups(e,t){return this._client.get(`/radar/bots/crawlers/timeseries_groups/${encodeURIComponent(e)}`,{query:t})}},yh=class extends D{webCrawlers;constructor(e){super(e),this.webCrawlers=new vh(e)}async list(e){return this._client.get(`/radar/bots`,{query:e})}async get(e,t){return this._client.get(`/radar/bots/${encodeURIComponent(e)}`,{query:t})}async summary(e,t){return this._client.get(`/radar/bots/summary/${encodeURIComponent(e)}`,{query:t})}async timeseries(e){return this._client.get(`/radar/bots/timeseries`,{query:e})}async timeseriesGroups(e,t){return this._client.get(`/radar/bots/timeseries_groups/${encodeURIComponent(e)}`,{query:t})}},bh=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/ct/authorities/${encodeURIComponent(e)}`,{query:t})}async list(e){return this._client.get(`/radar/ct/authorities`,{query:e})}},xh=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/ct/logs/${encodeURIComponent(e)}`,{query:t})}async list(e){return this._client.get(`/radar/ct/logs`,{query:e})}},Sh=class extends D{authorities;logs;constructor(e){super(e),this.authorities=new bh(e),this.logs=new xh(e)}async summary(e,t){return this._client.get(`/radar/ct/summary/${encodeURIComponent(e)}`,{query:t})}async timeseries(e){return this._client.get(`/radar/ct/timeseries`,{query:e})}async timeseriesGroups(e,t){return this._client.get(`/radar/ct/timeseries_groups/${encodeURIComponent(e)}`,{query:t})}},Ch=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/radar/datasets`,{query:e})}async get(e){return this._client.get(`/radar/datasets/${encodeURIComponent(e)}`)}async download(e){return this._client.post(`/radar/datasets/download`,{body:{...e}})}},wh=class extends D{constructor(e){super(e)}async cacheHit(e){return this._client.get(`/radar/dns/summary/cache_hit`,{query:e})}async dnssec(e){return this._client.get(`/radar/dns/summary/dnssec`,{query:e})}async dnssecAware(e){return this._client.get(`/radar/dns/summary/dnssec_aware`,{query:e})}async dnssecE2e(e){return this._client.get(`/radar/dns/summary/dnssec_e2e`,{query:e})}async ipVersion(e){return this._client.get(`/radar/dns/summary/ip_version`,{query:e})}async matchingAnswer(e){return this._client.get(`/radar/dns/summary/matching_answer`,{query:e})}async protocol(e){return this._client.get(`/radar/dns/summary/protocol`,{query:e})}async queryType(e){return this._client.get(`/radar/dns/summary/query_type`,{query:e})}async responseCode(e){return this._client.get(`/radar/dns/summary/response_code`,{query:e})}async responseTtl(e){return this._client.get(`/radar/dns/summary/response_ttl`,{query:e})}},Th=class extends D{constructor(e){super(e)}async cacheHit(e){return this._client.get(`/radar/dns/timeseries_groups/cache_hit`,{query:e})}async dnssec(e){return this._client.get(`/radar/dns/timeseries_groups/dnssec`,{query:e})}async dnssecAware(e){return this._client.get(`/radar/dns/timeseries_groups/dnssec_aware`,{query:e})}async dnssecE2e(e){return this._client.get(`/radar/dns/timeseries_groups/dnssec_e2e`,{query:e})}async ipVersion(e){return this._client.get(`/radar/dns/timeseries_groups/ip_version`,{query:e})}async matchingAnswer(e){return this._client.get(`/radar/dns/timeseries_groups/matching_answer`,{query:e})}async protocol(e){return this._client.get(`/radar/dns/timeseries_groups/protocol`,{query:e})}async queryType(e){return this._client.get(`/radar/dns/timeseries_groups/query_type`,{query:e})}async responseCode(e){return this._client.get(`/radar/dns/timeseries_groups/response_code`,{query:e})}async responseTtl(e){return this._client.get(`/radar/dns/timeseries_groups/response_ttl`,{query:e})}},Eh=class extends D{constructor(e){super(e)}async ases(e){return this._client.get(`/radar/dns/top/ases`,{query:e})}async locations(e){return this._client.get(`/radar/dns/top/locations`,{query:e})}},Dh=class extends D{summary;timeseriesGroups;top;constructor(e){super(e),this.summary=new wh(e),this.timeseriesGroups=new Th(e),this.top=new Eh(e)}async summaryV2(e,t){return this._client.get(`/radar/dns/summary/${encodeURIComponent(e)}`,{query:t})}async timeseries(e){return this._client.get(`/radar/dns/timeseries`,{query:e})}async timeseriesGroupsV2(e,t){return this._client.get(`/radar/dns/timeseries_groups/${encodeURIComponent(e)}`,{query:t})}},Oh=class extends D{constructor(e){super(e)}async arc(e){return this._client.get(`/radar/email/routing/summary/arc`,{query:e})}async dkim(e){return this._client.get(`/radar/email/routing/summary/dkim`,{query:e})}async dmarc(e){return this._client.get(`/radar/email/routing/summary/dmarc`,{query:e})}async encrypted(e){return this._client.get(`/radar/email/routing/summary/encrypted`,{query:e})}async ipVersion(e){return this._client.get(`/radar/email/routing/summary/ip_version`,{query:e})}async spf(e){return this._client.get(`/radar/email/routing/summary/spf`,{query:e})}},kh=class extends D{constructor(e){super(e)}async arc(e){return this._client.get(`/radar/email/routing/timeseries_groups/arc`,{query:e})}async dkim(e){return this._client.get(`/radar/email/routing/timeseries_groups/dkim`,{query:e})}async dmarc(e){return this._client.get(`/radar/email/routing/timeseries_groups/dmarc`,{query:e})}async encrypted(e){return this._client.get(`/radar/email/routing/timeseries_groups/encrypted`,{query:e})}async ipVersion(e){return this._client.get(`/radar/email/routing/timeseries_groups/ip_version`,{query:e})}async spf(e){return this._client.get(`/radar/email/routing/timeseries_groups/spf`,{query:e})}},Ah=class extends D{summary;timeseriesGroups;constructor(e){super(e),this.summary=new Oh(e),this.timeseriesGroups=new kh(e)}async summaryV2(e,t){return this._client.get(`/radar/email/routing/summary/${encodeURIComponent(e)}`,{query:t})}async timeseriesGroupsV2(e,t){return this._client.get(`/radar/email/routing/timeseries_groups/${encodeURIComponent(e)}`,{query:t})}},jh=class extends D{constructor(e){super(e)}async arc(e){return this._client.get(`/radar/email/security/summary/arc`,{query:e})}async dkim(e){return this._client.get(`/radar/email/security/summary/dkim`,{query:e})}async dmarc(e){return this._client.get(`/radar/email/security/summary/dmarc`,{query:e})}async malicious(e){return this._client.get(`/radar/email/security/summary/malicious`,{query:e})}async spam(e){return this._client.get(`/radar/email/security/summary/spam`,{query:e})}async spf(e){return this._client.get(`/radar/email/security/summary/spf`,{query:e})}async threatCategory(e){return this._client.get(`/radar/email/security/summary/threat_category`,{query:e})}async spoof(e){return this._client.get(`/radar/email/security/summary/spoof`,{query:e})}async tlsVersion(e){return this._client.get(`/radar/email/security/summary/tls_version`,{query:e})}},Mh=class extends D{constructor(e){super(e)}async arc(e){return this._client.get(`/radar/email/security/timeseries_groups/arc`,{query:e})}async dkim(e){return this._client.get(`/radar/email/security/timeseries_groups/dkim`,{query:e})}async dmarc(e){return this._client.get(`/radar/email/security/timeseries_groups/dmarc`,{query:e})}async malicious(e){return this._client.get(`/radar/email/security/timeseries_groups/malicious`,{query:e})}async spam(e){return this._client.get(`/radar/email/security/timeseries_groups/spam`,{query:e})}async spf(e){return this._client.get(`/radar/email/security/timeseries_groups/spf`,{query:e})}async threatCategory(e){return this._client.get(`/radar/email/security/timeseries_groups/threat_category`,{query:e})}async spoof(e){return this._client.get(`/radar/email/security/timeseries_groups/spoof`,{query:e})}async tlsVersion(e){return this._client.get(`/radar/email/security/timeseries_groups/tls_version`,{query:e})}},Nh=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/email/security/top/tlds/malicious/${encodeURIComponent(e)}`,{query:t})}},Ph=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/email/security/top/tlds/spam/${encodeURIComponent(e)}`,{query:t})}},Fh=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/email/security/top/tlds/spoof/${encodeURIComponent(e)}`,{query:t})}},Ih=class extends D{malicious;spam;spoof;constructor(e){super(e),this.malicious=new Nh(e),this.spam=new Ph(e),this.spoof=new Fh(e)}async get(e){return this._client.get(`/radar/email/security/top/tlds`,{query:e})}},Lh=class extends D{tlds;constructor(e){super(e),this.tlds=new Ih(e)}},Rh=class extends D{summary;timeseriesGroups;top;constructor(e){super(e),this.summary=new jh(e),this.timeseriesGroups=new Mh(e),this.top=new Lh(e)}async summaryV2(e,t){return this._client.get(`/radar/email/security/summary/${encodeURIComponent(e)}`,{query:t})}async timeseriesGroupsV2(e,t){return this._client.get(`/radar/email/security/timeseries_groups/${encodeURIComponent(e)}`,{query:t})}},zh=class extends D{routing;security;constructor(e){super(e),this.routing=new Ah(e),this.security=new Rh(e)}},Bh=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/radar/entities/asns`,{query:e})}async get(e,t){return this._client.get(`/radar/entities/asns/${encodeURIComponent(e)}`,{query:t})}async rel(e,t){return this._client.get(`/radar/entities/asns/${encodeURIComponent(e)}/rel`,{query:t})}async asSet(e,t){return this._client.get(`/radar/entities/asns/${encodeURIComponent(e)}/as_set`,{query:t})}async ip(e){return this._client.get(`/radar/entities/asns/ip`,{query:e})}async botnetThreatFeed(e){return this._client.get(`/radar/entities/asns/botnet_threat_feed`,{query:e})}},Vh=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/radar/entities/locations`,{query:e})}async get(e,t){return this._client.get(`/radar/entities/locations/${encodeURIComponent(e)}`,{query:t})}},Hh=class extends D{asns;locations;constructor(e){super(e),this.asns=new Bh(e),this.locations=new Vh(e)}async get(e){return this._client.get(`/radar/entities/ip`,{query:e})}},Uh=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/radar/geolocations`,{query:e})}async get(e,t){return this._client.get(`/radar/geolocations/${encodeURIComponent(e)}`,{query:t})}},Wh=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/http/top/ases/bot_class/${encodeURIComponent(e)}`,{query:t})}},Gh=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/http/top/ases/browser_family/${encodeURIComponent(e)}`,{query:t})}},Kh=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/http/top/ases/device_type/${encodeURIComponent(e)}`,{query:t})}},qh=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/http/top/ases/http_version/${encodeURIComponent(e)}`,{query:t})}},Jh=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/http/top/ases/http_protocol/${encodeURIComponent(e)}`,{query:t})}},Yh=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/http/top/ases/ip_version/${encodeURIComponent(e)}`,{query:t})}},Xh=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/http/top/ases/os/${encodeURIComponent(e)}`,{query:t})}},Zh=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/http/top/ases/tls_version/${encodeURIComponent(e)}`,{query:t})}},Qh=class extends D{botClass;browserFamily;deviceType;httpMethod;httpProtocol;ipVersion;os;tlsVersion;constructor(e){super(e),this.botClass=new Wh(e),this.browserFamily=new Gh(e),this.deviceType=new Kh(e),this.httpMethod=new qh(e),this.httpProtocol=new Jh(e),this.ipVersion=new Yh(e),this.os=new Xh(e),this.tlsVersion=new Zh(e)}async get(e){return this._client.get(`/radar/http/top/ases`,{query:e})}},$h=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/http/top/locations/bot_class/${encodeURIComponent(e)}`,{query:t})}},eg=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/http/top/locations/browser_family/${encodeURIComponent(e)}`,{query:t})}},tg=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/http/top/locations/device_type/${encodeURIComponent(e)}`,{query:t})}},ng=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/http/top/locations/http_version/${encodeURIComponent(e)}`,{query:t})}},rg=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/http/top/locations/http_protocol/${encodeURIComponent(e)}`,{query:t})}},ig=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/http/top/locations/ip_version/${encodeURIComponent(e)}`,{query:t})}},ag=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/http/top/locations/os/${encodeURIComponent(e)}`,{query:t})}},og=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/http/top/locations/tls_version/${encodeURIComponent(e)}`,{query:t})}},sg=class extends D{botClass;browserFamily;deviceType;httpMethod;httpProtocol;ipVersion;os;tlsVersion;constructor(e){super(e),this.botClass=new $h(e),this.browserFamily=new eg(e),this.deviceType=new tg(e),this.httpMethod=new ng(e),this.httpProtocol=new rg(e),this.ipVersion=new ig(e),this.os=new ag(e),this.tlsVersion=new og(e)}async get(e){return this._client.get(`/radar/http/top/locations`,{query:e})}},cg=class extends D{constructor(e){super(e)}async botClass(e){return this._client.get(`/radar/http/summary/bot_class`,{query:e})}async deviceType(e){return this._client.get(`/radar/http/summary/device_type`,{query:e})}async httpProtocol(e){return this._client.get(`/radar/http/summary/http_protocol`,{query:e})}async httpVersion(e){return this._client.get(`/radar/http/summary/http_version`,{query:e})}async ipVersion(e){return this._client.get(`/radar/http/summary/ip_version`,{query:e})}async os(e){return this._client.get(`/radar/http/summary/os`,{query:e})}async tlsVersion(e){return this._client.get(`/radar/http/summary/tls_version`,{query:e})}async postQuantum(e){return this._client.get(`/radar/http/summary/post_quantum`,{query:e})}},lg=class extends D{constructor(e){super(e)}async tlsVersion(e){return this._client.get(`/radar/http/timeseries_groups/tls_version`,{query:e})}async botClass(e){return this._client.get(`/radar/http/timeseries_groups/bot_class`,{query:e})}async browser(e){return this._client.get(`/radar/http/timeseries_groups/browser`,{query:e})}async browserFamily(e){return this._client.get(`/radar/http/timeseries_groups/browser_family`,{query:e})}async deviceType(e){return this._client.get(`/radar/http/timeseries_groups/device_type`,{query:e})}async httpProtocol(e){return this._client.get(`/radar/http/timeseries_groups/http_protocol`,{query:e})}async httpVersion(e){return this._client.get(`/radar/http/timeseries_groups/http_version`,{query:e})}async ipVersion(e){return this._client.get(`/radar/http/timeseries_groups/ip_version`,{query:e})}async os(e){return this._client.get(`/radar/http/timeseries_groups/os`,{query:e})}async postQuantum(e){return this._client.get(`/radar/http/timeseries_groups/post_quantum`,{query:e})}},ug=class extends D{constructor(e){super(e)}async browser(e){return this._client.get(`/radar/http/top/browser`,{query:e})}async browserFamily(e){return this._client.get(`/radar/http/top/browser_family`,{query:e})}},dg=class extends D{ases;locations;summary;timeseriesGroups;top;constructor(e){super(e),this.ases=new Qh(e),this.locations=new sg(e),this.summary=new cg(e),this.timeseriesGroups=new lg(e),this.top=new ug(e)}async summaryV2(e,t){return this._client.get(`/radar/http/summary/${encodeURIComponent(e)}`,{query:t})}async timeseries(e){return this._client.get(`/radar/http/timeseries`,{query:e})}async timeseriesGroupsV2(e,t){return this._client.get(`/radar/http/timeseries_groups/${encodeURIComponent(e)}`,{query:t})}},fg=class extends D{constructor(e){super(e)}async botClass(e){return this._client.get(`/radar/leaked_credential_checks/summary/bot_class`,{query:e})}async compromised(e){return this._client.get(`/radar/leaked_credential_checks/summary/compromised`,{query:e})}},pg=class extends D{constructor(e){super(e)}async botClass(e){return this._client.get(`/radar/leaked_credential_checks/timeseries_groups/bot_class`,{query:e})}async compromised(e){return this._client.get(`/radar/leaked_credential_checks/timeseries_groups/compromised`,{query:e})}},mg=class extends D{summary;timeseriesGroups;constructor(e){super(e),this.summary=new fg(e),this.timeseriesGroups=new pg(e)}async summaryV2(e,t){return this._client.get(`/radar/leaked_credential_checks/summary/${encodeURIComponent(e)}`,{query:t})}async timeseriesGroupsV2(e,t){return this._client.get(`/radar/leaked_credential_checks/timeseries_groups/${encodeURIComponent(e)}`,{query:t})}},hg=class extends D{constructor(e){super(e)}async ases(e){return this._client.get(`/radar/netflows/top/ases`,{query:e})}async locations(e){return this._client.get(`/radar/netflows/top/locations`,{query:e})}},gg=class extends D{top;constructor(e){super(e),this.top=new hg(e)}async timeseries(e){return this._client.get(`/radar/netflows/timeseries`,{query:e})}async summary(e){return this._client.get(`/radar/netflows/summary`,{query:e})}async summaryV2(e,t){return this._client.get(`/radar/netflows/summary/${encodeURIComponent(e)}`,{query:t})}async timeseriesGroups(e,t){return this._client.get(`/radar/netflows/timeseries_groups/${encodeURIComponent(e)}`,{query:t})}},_g=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/radar/origins`,{query:e})}async summary(e,t){return this._client.get(`/radar/origins/summary/${encodeURIComponent(e)}`,{query:t})}async timeseries(e){return this._client.get(`/radar/origins/timeseries`,{query:e})}async timeseriesGroups(e,t){return this._client.get(`/radar/origins/timeseries_groups/${encodeURIComponent(e)}`,{query:t})}async get(e,t){return this._client.get(`/radar/origins/${encodeURIComponent(e)}`,{query:t})}},vg=class extends D{constructor(e){super(e)}async summary(e,t){return this._client.get(`/radar/post_quantum/origin/summary/${encodeURIComponent(e)}`,{query:t})}async timeseriesGroups(e,t){return this._client.get(`/radar/post_quantum/origin/timeseries_groups/${encodeURIComponent(e)}`,{query:t})}},yg=class extends D{constructor(e){super(e)}async support(e){return this._client.get(`/radar/post_quantum/tls/support`,{query:e})}},bg=class extends D{origin;tls;constructor(e){super(e),this.origin=new vg(e),this.tls=new yg(e)}},xg=class extends D{constructor(e){super(e)}async summary(e){return this._client.get(`/radar/quality/iqi/summary`,{query:e})}async timeseriesGroups(e){return this._client.get(`/radar/quality/iqi/timeseries_groups`,{query:e})}},Sg=class extends D{constructor(e){super(e)}async ases(e){return this._client.get(`/radar/quality/speed/top/ases`,{query:e})}async locations(e){return this._client.get(`/radar/quality/speed/top/locations`,{query:e})}},Cg=class extends D{top;constructor(e){super(e),this.top=new Sg(e)}async summary(e){return this._client.get(`/radar/quality/speed/summary`,{query:e})}async histogram(e){return this._client.get(`/radar/quality/speed/histogram`,{query:e})}},wg=class extends D{iqi;speed;constructor(e){super(e),this.iqi=new xg(e),this.speed=new Cg(e)}},Tg=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/radar/ranking/domain/${encodeURIComponent(e)}`,{query:t})}},Eg=class extends D{constructor(e){super(e)}async timeseriesGroups(e){return this._client.get(`/radar/ranking/internet_services/timeseries_groups`,{query:e})}async top(e){return this._client.get(`/radar/ranking/internet_services/top`,{query:e})}async categories(e){return this._client.get(`/radar/ranking/internet_services/categories`,{query:e})}},Dg=class extends D{domain;internetServices;constructor(e){super(e),this.domain=new Tg(e),this.internetServices=new Eg(e)}async timeseriesGroups(e){return this._client.get(`/radar/ranking/timeseries_groups`,{query:e})}async top(e){return this._client.get(`/radar/ranking/top`,{query:e})}},Og=class extends D{constructor(e){super(e)}async directive(e){return this._client.get(`/radar/robots_txt/top/user_agents/directive`,{query:e})}},kg=class extends D{userAgents;constructor(e){super(e),this.userAgents=new Og(e)}async domainCategories(e){return this._client.get(`/radar/robots_txt/top/domain_categories`,{query:e})}},Ag=class extends D{top;constructor(e){super(e),this.top=new kg(e)}},jg=class extends D{constructor(e){super(e)}async global(e){return this._client.get(`/radar/search/global`,{query:e})}},Mg=class extends D{constructor(e){super(e)}async summary(e){return this._client.get(`/radar/tcp_resets_timeouts/summary`,{query:e})}async timeseriesGroups(e){return this._client.get(`/radar/tcp_resets_timeouts/timeseries_groups`,{query:e})}},Ng=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/radar/tlds`,{query:e})}async get(e,t){return this._client.get(`/radar/tlds/${encodeURIComponent(e)}`,{query:t})}},Pg=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/radar/traffic_anomalies/locations`,{query:e})}},Fg=class extends D{locations;constructor(e){super(e),this.locations=new Pg(e)}async get(e){return this._client.get(`/radar/traffic_anomalies`,{query:e})}},Ig=class extends D{constructor(e){super(e)}async bots(e){return this._client.get(`/radar/verified_bots/top/bots`,{query:e})}async categories(e){return this._client.get(`/radar/verified_bots/top/categories`,{query:e})}},Lg=class extends D{top;constructor(e){super(e),this.top=new Ig(e)}},Rg=class extends D{agentReadiness;ai;annotations;as112;attacks;bgp;bots;ct;datasets;dns;email;entities;geolocations;http;leakedCredentials;netflows;origins;postQuantum;quality;ranking;robotsTxt;search;tcpResetsTimeouts;tlds;trafficAnomalies;verifiedBots;constructor(e){super(e),this.agentReadiness=new Mm(e),this.ai=new Hm(e),this.annotations=new Wm(e),this.as112=new Jm(e),this.attacks=new oh(e),this.bgp=new _h(e),this.bots=new yh(e),this.ct=new Sh(e),this.datasets=new Ch(e),this.dns=new Dh(e),this.email=new zh(e),this.entities=new Hh(e),this.geolocations=new Uh(e),this.http=new dg(e),this.leakedCredentials=new mg(e),this.netflows=new gg(e),this.origins=new _g(e),this.postQuantum=new bg(e),this.quality=new wg(e),this.ranking=new Dg(e),this.robotsTxt=new Ag(e),this.search=new jg(e),this.tcpResetsTimeouts=new Mg(e),this.tlds=new Ng(e),this.trafficAnomalies=new Fg(e),this.verifiedBots=new Lg(e)}},zg=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/rate_limits`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/rate_limits/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/rate_limits`,{body:{...t}})}async edit(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/rate_limits/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/rate_limits/${encodeURIComponent(e)}`)}},Bg=class extends D{constructor(e){super(e)}async getActiveSession(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/realtime/kit/${encodeURIComponent(n)}/meetings/${encodeURIComponent(e)}/active-session`)}async kickParticipants(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/meetings/${encodeURIComponent(n)}/active-session/kick`)}async kickAllParticipants(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/meetings/${encodeURIComponent(n)}/active-session/kick-all`)}async createPoll(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/meetings/${encodeURIComponent(n)}/active-session/poll`)}},Vg=class extends D{constructor(e){super(e)}async getOrgAnalytics(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/analytics/daywise`,{query:n})}},Hg=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/apps`)}async post(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/realtime/kit/apps`)}},Ug=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/meetings/${encodeURIComponent(n)}/active-session/mute`)}},Wg=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/meetings/${encodeURIComponent(n)}/active-session/mute-all`)}},Gg=class extends D{mute;muteAll;constructor(e){super(e),this.mute=new Ug(e),this.muteAll=new Wg(e)}},Kg=class extends D{constructor(e){super(e)}async get(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(t)}/realtime/kit/${encodeURIComponent(n)}/meetings/${encodeURIComponent(e)}/livestream`,{query:r})}},qg=class extends D{activeSession;livestream;constructor(e){super(e),this.activeSession=new Gg(e),this.livestream=new Kg(e)}},Jg=class extends D{constructor(e){super(e)}async get(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/sessions/${encodeURIComponent(n)}/livestream-sessions`,{query:r})}},Yg=class extends D{sessions;constructor(e){super(e),this.sessions=new Jg(e)}},Xg=class extends D{livestream;constructor(e){super(e),this.livestream=new Yg(e)}},Zg=class extends D{meetings;sessions;constructor(e){super(e),this.meetings=new qg(e),this.sessions=new Xg(e)}},Qg=class extends D{constructor(e){super(e)}async getAllLivestreams(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/livestreams`,{query:n})}async stopLivestreamingAMeeting(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/realtime/kit/${encodeURIComponent(n)}/meetings/${encodeURIComponent(e)}/active-livestream/stop`)}async startLivestreamingAMeeting(e,t,n,r){return this._client.post(`/accounts/${encodeURIComponent(t)}/realtime/kit/${encodeURIComponent(n)}/meetings/${encodeURIComponent(e)}/livestreams`,{body:{...r}})}async getLivestreamAnalyticsComplete(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/analytics/livestreams/overall`,{query:n})}async getOrgAnalytics(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/analytics/daywise`,{query:n})}async getMeetingActiveLivestreams(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/realtime/kit/${encodeURIComponent(n)}/meetings/${encodeURIComponent(e)}/active-livestream`)}async getLivestreamSessionDetailsForSessionId(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/livestreams/sessions/${encodeURIComponent(n)}`)}async getActiveLivestreamsForLivestreamId(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/livestreams/${encodeURIComponent(n)}/active-livestream-session`)}async getLivestreamSessionForLivestreamId(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/livestreams/${encodeURIComponent(n)}`,{query:r})}},$g=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/meetings`,{query:n})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/meetings`)}async getMeetingById(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(t)}/realtime/kit/${encodeURIComponent(n)}/meetings/${encodeURIComponent(e)}`,{query:r})}async updateMeetingById(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/realtime/kit/${encodeURIComponent(n)}/meetings/${encodeURIComponent(e)}`)}async replaceMeetingById(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/realtime/kit/${encodeURIComponent(n)}/meetings/${encodeURIComponent(e)}`)}async getMeetingParticipants(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/meetings/${encodeURIComponent(n)}/participants`,{query:r})}async addParticipant(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/meetings/${encodeURIComponent(n)}/participants`)}async getMeetingParticipant(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(n)}/realtime/kit/${encodeURIComponent(r)}/meetings/${encodeURIComponent(e)}/participants/${encodeURIComponent(t)}`)}async editParticipant(e,t,n,r){return this._client.patch(`/accounts/${encodeURIComponent(n)}/realtime/kit/${encodeURIComponent(r)}/meetings/${encodeURIComponent(e)}/participants/${encodeURIComponent(t)}`)}async deleteMeetingParticipant(e,t,n,r){return this._client.delete(`/accounts/${encodeURIComponent(n)}/realtime/kit/${encodeURIComponent(r)}/meetings/${encodeURIComponent(e)}/participants/${encodeURIComponent(t)}`)}async refreshParticipantToken(e,t,n,r){return this._client.post(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/meetings/${encodeURIComponent(n)}/participants/${encodeURIComponent(r)}/token`)}},e_=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/presets`,{query:n})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/presets`)}async getPresetById(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/presets/${encodeURIComponent(n)}`)}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/presets/${encodeURIComponent(n)}`)}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/presets/${encodeURIComponent(n)}`)}},t_=class extends D{constructor(e){super(e)}async getRecordings(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/recordings`,{query:n})}async startRecordings(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/recordings`)}async getActiveRecordings(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/recordings/active-recording/${encodeURIComponent(n)}`)}async getOneRecording(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/recordings/${encodeURIComponent(n)}`)}async pauseResumeStopRecording(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/recordings/${encodeURIComponent(n)}`,{body:{...r}})}async startTrackRecording(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/recordings/track`)}},n_=class extends D{constructor(e){super(e)}async getSessions(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/sessions`,{query:n})}async getSessionDetails(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/sessions/${encodeURIComponent(n)}`,{query:r})}async getSessionParticipants(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/sessions/${encodeURIComponent(n)}/participants`,{query:r})}async getSessionParticipantDetails(e,t,n,r,i){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/sessions/${encodeURIComponent(r)}/participants/${encodeURIComponent(n)}`,{query:i})}async getSessionChat(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/sessions/${encodeURIComponent(n)}/chat`)}async getSessionTranscripts(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/sessions/${encodeURIComponent(n)}/transcript`)}async getSessionSummary(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/sessions/${encodeURIComponent(n)}/summary`)}async generateSummaryOfTranscripts(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/sessions/${encodeURIComponent(n)}/summary`)}async getParticipantDataFromPeerId(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/sessions/peer-report/${encodeURIComponent(n)}`,{query:r})}},r_=class extends D{constructor(e){super(e)}async getWebhooks(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/webhooks`)}async createWebhook(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/webhooks`,{body:{...n}})}async getWebhookById(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/webhooks/${encodeURIComponent(n)}`)}async replaceWebhook(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/webhooks/${encodeURIComponent(n)}`,{body:{...r}})}async editWebhook(e,t,n,r){return this._client.patch(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/webhooks/${encodeURIComponent(n)}`,{body:{...r}})}async deleteWebhook(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/realtime/kit/${encodeURIComponent(t)}/webhooks/${encodeURIComponent(n)}`)}},i_=class extends D{activeSession;analytics;apps;kit;livestreams;meetings;presets;recordings;sessions;webhooks;constructor(e){super(e),this.activeSession=new Bg(e),this.analytics=new Vg(e),this.apps=new Hg(e),this.kit=new Zg(e),this.livestreams=new Qg(e),this.meetings=new $g(e),this.presets=new e_(e),this.recordings=new t_(e),this.sessions=new n_(e),this.webhooks=new r_(e)}},a_=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/registrar/domains`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/registrar/domains/${encodeURIComponent(e)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/registrar/domains/${encodeURIComponent(e)}`,{body:{...n}})}},o_=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/registrar/registrations`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/registrar/registrations`,{body:{...t}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/registrar/registrations/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/registrar/registrations/${encodeURIComponent(t)}`,{body:{...n}})}async getStatus(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/registrar/registrations/${encodeURIComponent(t)}/registration-status`)}async getUpdateStatus(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/registrar/registrations/${encodeURIComponent(t)}/update-status`)}},s_=class extends D{domains;registrations;constructor(e){super(e),this.domains=new a_(e),this.registrations=new o_(e)}async domainSearch(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/registrar/domain-search`,{query:t})}async domainCheck(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/registrar/domain-check`,{body:{...t}})}},c_=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/request-tracer/trace`,{body:{...t}})}},l_=class extends D{traces;constructor(e){super(e),this.traces=new c_(e)}},u_=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/shares/${encodeURIComponent(t)}/recipients`,{query:n})}async get(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(e)}/shares/${encodeURIComponent(t)}/recipients/${encodeURIComponent(n)}`,{query:r})}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/shares/${encodeURIComponent(t)}/recipients`,{body:{...n}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/shares/${encodeURIComponent(t)}/recipients/${encodeURIComponent(n)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/shares/${encodeURIComponent(t)}/recipients`,{body:n})}},d_=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/shares/${encodeURIComponent(t)}/resources`,{query:n})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/shares/${encodeURIComponent(t)}/resources/${encodeURIComponent(n)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/shares/${encodeURIComponent(t)}/resources`,{body:{...n}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/shares/${encodeURIComponent(t)}/resources/${encodeURIComponent(n)}`)}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/shares/${encodeURIComponent(t)}/resources/${encodeURIComponent(n)}`)}},f_=class extends D{recipients;resources;constructor(e){super(e),this.recipients=new u_(e),this.resources=new d_(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/shares`,{query:t})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/shares/${encodeURIComponent(t)}`,{query:n})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/shares`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/shares/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/shares/${encodeURIComponent(t)}`)}},p_=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/tags`,{query:t})}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/tags`,{body:{...t}})}async delete(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/tags`)}},m_=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/tags/keys`,{query:t})}},h_=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/tags/values/${encodeURIComponent(t)}`,{query:n})}},g_=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/tags`,{query:t})}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/tags`,{body:{...t}})}async delete(e){return this._client.delete(`/zones/${encodeURIComponent(e)}/tags`)}},__=class extends D{accountTags;keys;values;zoneTags;constructor(e){super(e),this.accountTags=new p_(e),this.keys=new m_(e),this.values=new h_(e),this.zoneTags=new g_(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/tags/resources`,{query:t})}},v_=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/rules/lists/bulk_operations/${encodeURIComponent(e)}`)}},y_=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/rules/lists/${encodeURIComponent(e)}/items`,{query:n})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/rules/lists/${encodeURIComponent(t)}/items/${encodeURIComponent(e)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/rules/lists/${encodeURIComponent(e)}/items`,{body:n})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/rules/lists/${encodeURIComponent(e)}/items`,{body:n})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/rules/lists/${encodeURIComponent(e)}/items`)}},b_=class extends D{bulkOperations;items;constructor(e){super(e),this.bulkOperations=new v_(e),this.items=new y_(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/rules/lists`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/rules/lists/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/rules/lists`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/rules/lists/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/rules/lists/${encodeURIComponent(e)}`)}},x_=class extends D{lists;constructor(e){super(e),this.lists=new b_(e)}},S_=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/rulesets/phases/${encodeURIComponent(e)}/entrypoint/versions`)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/rulesets/phases/${encodeURIComponent(t)}/entrypoint/versions/${encodeURIComponent(e)}`)}},C_=class extends D{versions;constructor(e){super(e),this.versions=new S_(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/rulesets/phases/${encodeURIComponent(e)}/entrypoint`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(t)}/rulesets/phases/${encodeURIComponent(e)}/entrypoint`)}},w_=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(t)}/rulesets/${encodeURIComponent(e)}/rules`)}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(n)}/rulesets/${encodeURIComponent(t)}/rules/${encodeURIComponent(e)}`)}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(n)}/rulesets/${encodeURIComponent(t)}/rules/${encodeURIComponent(e)}`)}},T_=class extends D{constructor(e){super(e)}async tag(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(r)}/rulesets/${encodeURIComponent(n)}/versions/${encodeURIComponent(t)}/by_tag/${encodeURIComponent(e)}`)}},E_=class extends D{constructor(e){super(e)}async tag(e,t,n,r){return this._client.get(`/zones/${encodeURIComponent(r)}/rulesets/${encodeURIComponent(n)}/versions/${encodeURIComponent(t)}/by_tag/${encodeURIComponent(e)}`)}},D_=class extends D{byTag;zoneByTag;constructor(e){super(e),this.byTag=new T_(e),this.zoneByTag=new E_(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/rulesets/${encodeURIComponent(e)}/versions`)}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(n)}/rulesets/${encodeURIComponent(t)}/versions/${encodeURIComponent(e)}`)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/rulesets/${encodeURIComponent(t)}/versions/${encodeURIComponent(e)}`)}},O_=class extends D{phases;rules;versions;constructor(e){super(e),this.phases=new C_(e),this.rules=new w_(e),this.versions=new D_(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/rulesets`,{query:t})}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/rulesets`)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/rulesets/${encodeURIComponent(e)}`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/rulesets/${encodeURIComponent(e)}`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(t)}/rulesets/${encodeURIComponent(e)}`)}},k_=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/rulesets/phases/${encodeURIComponent(e)}/entrypoint/versions`)}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(n)}/rulesets/phases/${encodeURIComponent(t)}/entrypoint/versions/${encodeURIComponent(e)}`)}},A_=class extends D{versions;constructor(e){super(e),this.versions=new k_(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/rulesets/phases/${encodeURIComponent(e)}/entrypoint`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(t)}/rulesets/phases/${encodeURIComponent(e)}/entrypoint`)}},j_=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(t)}/rulesets/${encodeURIComponent(e)}/rules`)}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(n)}/rulesets/${encodeURIComponent(t)}/rules/${encodeURIComponent(e)}`)}async delete(e,t,n){return this._client.delete(`/zones/${encodeURIComponent(n)}/rulesets/${encodeURIComponent(t)}/rules/${encodeURIComponent(e)}`)}},M_=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/rulesets/${encodeURIComponent(e)}/versions`)}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(n)}/rulesets/${encodeURIComponent(t)}/versions/${encodeURIComponent(e)}`)}async delete(e,t,n){return this._client.delete(`/zones/${encodeURIComponent(n)}/rulesets/${encodeURIComponent(t)}/versions/${encodeURIComponent(e)}`)}},N_=class extends D{accountRulesets;phases;rules;versions;constructor(e){super(e),this.accountRulesets=new O_(e),this.phases=new A_(e),this.rules=new j_(e),this.versions=new M_(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/rulesets`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/rulesets/${encodeURIComponent(e)}`)}async create(e){return this._client.post(`/zones/${encodeURIComponent(e)}/rulesets`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(t)}/rulesets/${encodeURIComponent(e)}`)}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/rulesets/${encodeURIComponent(e)}`)}},P_=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/rum/v2/${encodeURIComponent(t)}/rules`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/rum/v2/${encodeURIComponent(t)}/rule`,{body:{...n}})}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(e)}/rum/v2/${encodeURIComponent(t)}/rule/${encodeURIComponent(n)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/rum/v2/${encodeURIComponent(t)}/rule/${encodeURIComponent(n)}`)}async bulkCreate(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/rum/v2/${encodeURIComponent(t)}/rules`,{body:{...n}})}},F_=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/rum/site_info/list`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/rum/site_info/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/rum/site_info`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/rum/site_info/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/rum/site_info/${encodeURIComponent(t)}`)}},I_=class extends D{rules;siteInfo;constructor(e){super(e),this.rules=new P_(e),this.siteInfo=new F_(e)}},L_=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/schema_validation/schemas/hosts`,{query:t})}},R_=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(e)}/schema_validation/schemas/${encodeURIComponent(t)}/operations`,{query:n})}},z_=class extends D{hosts;operations;constructor(e){super(e),this.hosts=new L_(e),this.operations=new R_(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/schema_validation/schemas`,{query:t})}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(e)}/schema_validation/schemas/${encodeURIComponent(t)}`,{query:n})}async create(e){return this._client.post(`/zones/${encodeURIComponent(e)}/schema_validation/schemas`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/schema_validation/schemas/${encodeURIComponent(t)}`)}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/schema_validation/schemas/${encodeURIComponent(t)}`)}},B_=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/schema_validation/settings/operations`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/schema_validation/settings/operations/${encodeURIComponent(t)}`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/schema_validation/settings/operations/${encodeURIComponent(t)}`)}async bulkEdit(e){return this._client.patch(`/zones/${encodeURIComponent(e)}/schema_validation/settings/operations`)}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/schema_validation/settings/operations/${encodeURIComponent(t)}`)}},V_=class extends D{operations;constructor(e){super(e),this.operations=new B_(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/schema_validation/settings`)}async update(e){return this._client.put(`/zones/${encodeURIComponent(e)}/schema_validation/settings`)}async edit(e){return this._client.patch(`/zones/${encodeURIComponent(e)}/schema_validation/settings`)}},H_=class extends D{schemas;settings;constructor(e){super(e),this.schemas=new z_(e),this.settings=new V_(e)}},U_=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/scim/v2/Groups`,{query:t})}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/scim/v2/Groups`)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/scim/v2/Groups/${encodeURIComponent(t)}`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/scim/v2/Groups/${encodeURIComponent(t)}`)}async edit(e,t){return this._client.patch(`/accounts/${encodeURIComponent(e)}/scim/v2/Groups/${encodeURIComponent(t)}`)}},W_=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/scim/v2/ResourceTypes`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/scim/v2/ResourceTypes/${encodeURIComponent(t)}`)}},G_=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/scim/v2/Schemas`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/scim/v2/Schemas/${encodeURIComponent(t)}`)}},K_=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/scim/v2/ServiceProviderConfig`)}},q_=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/scim/v2/Users`,{query:t})}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/scim/v2/Users`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/scim/v2/Users/${encodeURIComponent(t)}`)}async edit(e,t){return this._client.patch(`/accounts/${encodeURIComponent(e)}/scim/v2/Users/${encodeURIComponent(t)}`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/scim/v2/Users/${encodeURIComponent(t)}`)}},J_=class extends D{groups;resourceTypes;schemas;serviceProviderConfig;users;constructor(e){super(e),this.groups=new U_(e),this.resourceTypes=new W_(e),this.schemas=new G_(e),this.serviceProviderConfig=new K_(e),this.users=new q_(e)}},Y_=class extends D{constructor(e){super(e)}},X_=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/secrets_store/quota`)}},Z_=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/secrets_store/stores/${encodeURIComponent(t)}/secrets`,{body:n})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/secrets_store/stores/${encodeURIComponent(t)}/secrets`)}},Q_=class extends D{bulk;constructor(e){super(e),this.bulk=new Z_(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/secrets_store/stores/${encodeURIComponent(t)}/secrets`,{query:n})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/secrets_store/stores/${encodeURIComponent(t)}/secrets/${encodeURIComponent(n)}`)}async edit(e,t,n,r){return this._client.patch(`/accounts/${encodeURIComponent(e)}/secrets_store/stores/${encodeURIComponent(t)}/secrets/${encodeURIComponent(n)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/secrets_store/stores/${encodeURIComponent(t)}/secrets/${encodeURIComponent(n)}`)}async duplicate(e,t,n,r){return this._client.post(`/accounts/${encodeURIComponent(e)}/secrets_store/stores/${encodeURIComponent(t)}/secrets/${encodeURIComponent(n)}/duplicate`,{body:{...r}})}},$_=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/secrets_store/stores`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/secrets_store/stores`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/secrets_store/stores/${encodeURIComponent(t)}`)}},ev=class extends D{constructor(e){super(e)}async id(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/secrets_store/stores/${encodeURIComponent(t)}`)}},tv=class extends D{by;constructor(e){super(e),this.by=new ev(e)}async v2(e,t){return this._client.get(`/system/accounts/${encodeURIComponent(e)}/stores/${encodeURIComponent(t)}`)}},nv=class extends D{constructor(e){super(e)}async id(e,t,n){return this._client.delete(`/system/accounts/${encodeURIComponent(e)}/stores/${encodeURIComponent(t)}/secrets/${encodeURIComponent(n)}`)}},rv=class extends D{constructor(e){super(e)}async bulk(e,t){return this._client.delete(`/system/accounts/${encodeURIComponent(e)}/stores/${encodeURIComponent(t)}/secrets`)}},iv=class extends D{by;system;constructor(e){super(e),this.by=new nv(e),this.system=new rv(e)}},av=class extends D{constructor(e){super(e)}async create(e,t,n,r){return this._client.post(`/system/accounts/${encodeURIComponent(e)}/stores/${encodeURIComponent(t)}/secrets/${encodeURIComponent(n)}/duplicate`,{body:{...r}})}},ov=class extends D{delete;duplicate;constructor(e){super(e),this.delete=new iv(e),this.duplicate=new av(e)}async list(e,t,n){return this._client.get(`/system/accounts/${encodeURIComponent(e)}/stores/${encodeURIComponent(t)}/secrets`,{query:n})}async create(e,t,n){return this._client.post(`/system/accounts/${encodeURIComponent(e)}/stores/${encodeURIComponent(t)}/secrets`,{body:n})}async get(e,t,n){return this._client.get(`/system/accounts/${encodeURIComponent(e)}/stores/${encodeURIComponent(t)}/secrets/${encodeURIComponent(n)}`)}async edit(e,t,n,r){return this._client.patch(`/system/accounts/${encodeURIComponent(e)}/stores/${encodeURIComponent(t)}/secrets/${encodeURIComponent(n)}`,{body:{...r}})}},sv=class extends D{get;secrets;constructor(e){super(e),this.get=new tv(e),this.secrets=new ov(e)}async list(e,t){return this._client.get(`/system/accounts/${encodeURIComponent(e)}/stores`,{query:t})}async create(e,t){return this._client.post(`/system/accounts/${encodeURIComponent(e)}/stores`,{body:{...t}})}async delete(e,t){return this._client.delete(`/system/accounts/${encodeURIComponent(e)}/stores/${encodeURIComponent(t)}`)}},cv=class extends D{quota;secrets;stores;systemStores;constructor(e){super(e),this.quota=new X_(e),this.secrets=new Q_(e),this.stores=new $_(e),this.systemStores=new sv(e)}},lv=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/security-center/insights/class`,{query:t})}},uv=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/security-center/insights/severity`,{query:t})}},dv=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/security-center/insights/type`,{query:t})}},fv=class extends D{class;severity;type;constructor(e){super(e),this.class=new lv(e),this.severity=new uv(e),this.type=new dv(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/security-center/insights`,{query:t})}async dismiss(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/security-center/insights/${encodeURIComponent(t)}/dismiss`,{body:{...n}})}},pv=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/security-center/insights/class`,{query:t})}},mv=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/security-center/insights/${encodeURIComponent(t)}/context`)}},hv=class extends D{constructor(e){super(e)}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(e)}/security-center/insights/${encodeURIComponent(t)}/dismiss`,{body:{...n}})}},gv=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/security-center/insights/severity`,{query:t})}},_v=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/security-center/insights/type`,{query:t})}},vv=class extends D{class;context;dismiss;severity;type;constructor(e){super(e),this.class=new pv(e),this.context=new mv(e),this.dismiss=new hv(e),this.severity=new gv(e),this.type=new _v(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/security-center/insights`,{query:t})}},yv=class extends D{insights;zoneInsights;constructor(e){super(e),this.insights=new fv(e),this.zoneInsights=new vv(e)}},bv=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/security-center/securitytxt`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/security-center/securitytxt`,{body:{...t}})}async delete(e){return this._client.delete(`/zones/${encodeURIComponent(e)}/security-center/securitytxt`)}},xv=class extends D{constructor(e){super(e)}async status(e){return this._client.get(`/zones/${encodeURIComponent(e)}/smart_shield/cache_reserve_clear`)}async clear(e){return this._client.post(`/zones/${encodeURIComponent(e)}/smart_shield/cache_reserve_clear`)}},Sv=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/smart_shield/healthchecks`,{body:{...t}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/smart_shield/healthchecks/${encodeURIComponent(e)}`)}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(t)}/smart_shield/healthchecks/${encodeURIComponent(e)}`,{body:{...n}})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/smart_shield/healthchecks/${encodeURIComponent(e)}`)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/smart_shield/healthchecks`,{query:t})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/smart_shield/healthchecks/${encodeURIComponent(e)}`,{body:{...n}})}},Cv=class extends D{cacheReserveClear;healthChecks;constructor(e){super(e),this.cacheReserveClear=new xv(e),this.healthChecks=new Sv(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/smart_shield`)}async update(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/smart_shield`,{body:{...t}})}},wv=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/snippets/${encodeURIComponent(t)}/content`)}},Tv=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/snippets/snippet_rules`)}async update(e){return this._client.put(`/zones/${encodeURIComponent(e)}/snippets/snippet_rules`)}async delete(e){return this._client.delete(`/zones/${encodeURIComponent(e)}/snippets/snippet_rules`)}},Ev=class extends D{content;rules;constructor(e){super(e),this.content=new wv(e),this.rules=new Tv(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/snippets`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/snippets/${encodeURIComponent(t)}`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/snippets/${encodeURIComponent(t)}`)}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/snippets/${encodeURIComponent(t)}`)}},Dv=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/spectrum/analytics/aggregate/current`,{query:t})}},Ov=class extends D{currents;constructor(e){super(e),this.currents=new Dv(e)}},kv=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/spectrum/analytics/events/bytime`,{query:t})}},Av=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/spectrum/analytics/events/summary`,{query:t})}},jv=class extends D{bytimes;summaries;constructor(e){super(e),this.bytimes=new kv(e),this.summaries=new Av(e)}},Mv=class extends D{aggregates;events;constructor(e){super(e),this.aggregates=new Ov(e),this.events=new jv(e)}},Nv=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/spectrum/apps`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/spectrum/apps/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/spectrum/apps`,{body:{...t}})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/spectrum/apps/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/spectrum/apps/${encodeURIComponent(e)}`)}},Pv=class extends D{analytics;apps;constructor(e){super(e),this.analytics=new Mv(e),this.apps=new Nv(e)}},Fv=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/speed_api/availabilities`)}},Iv=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/zones/${encodeURIComponent(e)}/speed_api/pages/${encodeURIComponent(t)}/tests`,{query:n})}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(e)}/speed_api/pages/${encodeURIComponent(t)}/tests/${encodeURIComponent(n)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/speed_api/pages/${encodeURIComponent(t)}/tests`)}async delete(e,t,n){return this._client.delete(`/zones/${encodeURIComponent(e)}/speed_api/pages/${encodeURIComponent(t)}/tests`,{query:n})}},Lv=class extends D{tests;constructor(e){super(e),this.tests=new Iv(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/speed_api/pages`)}async trend(e,t,n){return this._client.get(`/zones/${encodeURIComponent(e)}/speed_api/pages/${encodeURIComponent(t)}/trend`,{query:n})}},Rv=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(e)}/speed_api/schedule/${encodeURIComponent(t)}`,{query:n})}async create(e,t,n){return this._client.post(`/zones/${encodeURIComponent(e)}/speed_api/schedule/${encodeURIComponent(t)}`,{query:n})}async delete(e,t,n){return this._client.delete(`/zones/${encodeURIComponent(e)}/speed_api/schedule/${encodeURIComponent(t)}`,{query:n})}},zv=class extends D{availabilities;pages;schedule;constructor(e){super(e),this.availabilities=new Fv(e),this.pages=new Lv(e),this.schedule=new Rv(e)}},Bv=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/ssl/analyze`,{body:{...t}})}},Vv=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/settings/ssl_automatic_mode`)}async patch(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/settings/ssl_automatic_mode`,{body:{...t}})}},Hv=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/ssl/certificate_packs/quota`)}},Uv=class extends D{quota;constructor(e){super(e),this.quota=new Hv(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/ssl/certificate_packs`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/ssl/certificate_packs/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/ssl/certificate_packs/order`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(t)}/ssl/certificate_packs/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/ssl/certificate_packs/${encodeURIComponent(e)}`)}},Wv=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/ssl/recommendation`)}},Gv=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/ssl/universal/settings`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/ssl/universal/settings`,{body:{...t}})}},Kv=class extends D{settings;constructor(e){super(e),this.settings=new Gv(e)}},qv=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/ssl/verification`,{query:t})}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(t)}/ssl/verification/${encodeURIComponent(e)}`,{body:{...n}})}},Jv=class extends D{analyze;automaticUpgrader;certificatePacks;recommendations;universal;verification;constructor(e){super(e),this.analyze=new Bv(e),this.automaticUpgrader=new Vv(e),this.certificatePacks=new Uv(e),this.recommendations=new Wv(e),this.universal=new Kv(e),this.verification=new qv(e)}},Yv=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/stream/${encodeURIComponent(t)}/audio`)}async edit(e,t,n,r){return this._client.patch(`/accounts/${encodeURIComponent(e)}/stream/${encodeURIComponent(t)}/audio/${encodeURIComponent(n)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/stream/${encodeURIComponent(t)}/audio/${encodeURIComponent(n)}`)}async copy(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/stream/${encodeURIComponent(t)}/audio/copy`,{body:{...n}})}},Xv=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/stream/${encodeURIComponent(t)}/captions/${encodeURIComponent(e)}/vtt`)}},Zv=class extends D{vtt;constructor(e){super(e),this.vtt=new Xv(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/stream/${encodeURIComponent(t)}/captions/${encodeURIComponent(e)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(n)}/stream/${encodeURIComponent(t)}/captions/${encodeURIComponent(e)}/generate`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(n)}/stream/${encodeURIComponent(t)}/captions/${encodeURIComponent(e)}`)}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(n)}/stream/${encodeURIComponent(t)}/captions/${encodeURIComponent(e)}`)}},Qv=class extends D{language;constructor(e){super(e),this.language=new Zv(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/stream/${encodeURIComponent(e)}/captions`)}},$v=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/stream/clip`,{body:{...t}})}},ey=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/stream/copy`,{body:{...t}})}},ty=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/stream/direct_upload`,{body:{...t}})}},ny=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/stream/${encodeURIComponent(e)}/downloads`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(t)}/stream/${encodeURIComponent(e)}/downloads`)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/stream/${encodeURIComponent(e)}/downloads`)}},ry=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/stream/${encodeURIComponent(e)}/embed`)}},iy=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/stream/keys`)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/stream/keys`)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/stream/keys/${encodeURIComponent(e)}`)}},ay=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(t)}/stream/live_inputs/${encodeURIComponent(e)}/disable`)}},oy=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(t)}/stream/live_inputs/${encodeURIComponent(e)}/enable`)}},sy=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/stream/live_inputs/${encodeURIComponent(e)}/outputs`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/stream/live_inputs/${encodeURIComponent(e)}/outputs`,{body:{...n}})}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(n)}/stream/live_inputs/${encodeURIComponent(t)}/outputs/${encodeURIComponent(e)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(n)}/stream/live_inputs/${encodeURIComponent(t)}/outputs/${encodeURIComponent(e)}`)}},cy=class extends D{disable;enable;outputs;constructor(e){super(e),this.disable=new ay(e),this.enable=new oy(e),this.outputs=new sy(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/stream/live_inputs`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/stream/live_inputs/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/stream/live_inputs`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/stream/live_inputs/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/stream/live_inputs/${encodeURIComponent(e)}`)}},ly=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/stream/${encodeURIComponent(e)}/token`,{body:{...n}})}},uy=class extends D{constructor(e){super(e)}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(t)}/stream/${encodeURIComponent(e)}/downloads/${encodeURIComponent(n)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/stream/${encodeURIComponent(e)}/downloads/${encodeURIComponent(n)}`)}},dy=class extends D{constructor(e){super(e)}async storageUsage(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/stream/storage-usage`,{query:t})}},fy=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/stream/watermarks`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/stream/watermarks/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/stream/watermarks`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/stream/watermarks/${encodeURIComponent(e)}`)}},py=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/stream/webhook`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/stream/webhook`,{body:{...t}})}async delete(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/stream/webhook`)}},my=class extends D{audioTracks;captions;clip;copy;directUpload;downloads;embed;keys;liveInputs;token;typedDownloads;videos;watermarks;webhooks;constructor(e){super(e),this.audioTracks=new Yv(e),this.captions=new Qv(e),this.clip=new $v(e),this.copy=new ey(e),this.directUpload=new ty(e),this.downloads=new ny(e),this.embed=new ry(e),this.keys=new iy(e),this.liveInputs=new cy(e),this.token=new ly(e),this.typedDownloads=new uy(e),this.videos=new dy(e),this.watermarks=new fy(e),this.webhooks=new py(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/stream`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/stream/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/stream`,{query:t})}async edit(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/stream/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/stream/${encodeURIComponent(e)}`)}},hy=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/tenants/${encodeURIComponent(e)}/account_types`)}},gy=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/tenants/${encodeURIComponent(e)}/accounts`)}},_y=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/tenants/${encodeURIComponent(e)}/entitlements`)}},vy=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/tenants/${encodeURIComponent(e)}/memberships`)}},yy=class extends D{accountTypes;accounts;entitlements;memberships;constructor(e){super(e),this.accountTypes=new hy(e),this.accounts=new gy(e),this.entitlements=new _y(e),this.memberships=new vy(e)}async get(e){return this._client.get(`/tenants/${encodeURIComponent(e)}`)}},by=class extends D{constructor(e){super(e)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/token_validation/config/${encodeURIComponent(t)}/credentials`)}},xy=class extends D{credentials;constructor(e){super(e),this.credentials=new by(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/token_validation/config`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/token_validation/config/${encodeURIComponent(t)}`)}async create(e){return this._client.post(`/zones/${encodeURIComponent(e)}/token_validation/config`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/token_validation/config/${encodeURIComponent(t)}`)}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/token_validation/config/${encodeURIComponent(t)}`)}},Sy=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/token_validation/rules/preview`,{body:{...t}})}},Cy=class extends D{preview;constructor(e){super(e),this.preview=new Sy(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/token_validation/rules`,{query:t})}async create(e){return this._client.post(`/zones/${encodeURIComponent(e)}/token_validation/rules`)}async bulkCreate(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/token_validation/rules/bulk`,{body:t})}async bulkEdit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/token_validation/rules/bulk`,{body:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/token_validation/rules/${encodeURIComponent(t)}`)}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/token_validation/rules/${encodeURIComponent(t)}`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/token_validation/rules/${encodeURIComponent(t)}`)}},wy=class extends D{configuration;rules;constructor(e){super(e),this.configuration=new xy(e),this.rules=new Cy(e)}},Ty=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/challenges/widgets`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/challenges/widgets/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/challenges/widgets`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/challenges/widgets/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/challenges/widgets/${encodeURIComponent(t)}`)}async rotateSecret(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/challenges/widgets/${encodeURIComponent(t)}/rotate_secret`,{body:{...n}})}},Ey=class extends D{widgets;constructor(e){super(e),this.widgets=new Ty(e)}},Dy=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/url_normalization`)}async update(e){return this._client.put(`/zones/${encodeURIComponent(e)}/url_normalization`)}async delete(e){return this._client.delete(`/zones/${encodeURIComponent(e)}/url_normalization`)}},Oy=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/urlscanner/response/${encodeURIComponent(e)}`)}},ky=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/urlscanner/v2/responses/${encodeURIComponent(e)}`)}},Ay=class extends D{constructor(e){super(e)}async scans(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/urlscanner/scan`,{query:t})}async scan(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/urlscanner/scan/${encodeURIComponent(e)}`,{query:n})}},jy=class extends D{urlscanner;constructor(e){super(e),this.urlscanner=new Ay(e)}},My=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/urlscanner/scan/${encodeURIComponent(e)}/har`)}},Ny=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/urlscanner/scan/${encodeURIComponent(e)}/screenshot`,{query:n})}},Py=class extends D{get;har;screenshot;constructor(e){super(e),this.get=new jy(e),this.har=new My(e),this.screenshot=new Ny(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/urlscanner/scan`,{body:{...t}})}},Fy=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/urlscanner/v2/search`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/urlscanner/v2/result/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/urlscanner/v2/scan`,{body:{...t}})}async bulkCreate(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/urlscanner/v2/bulk`,{body:t})}async har(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/urlscanner/v2/har/${encodeURIComponent(e)}`)}async screenshot(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/urlscanner/v2/screenshots/${encodeURIComponent(e)}.png`,{query:n})}async dom(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/urlscanner/v2/dom/${encodeURIComponent(e)}`)}},Iy=class extends D{response;responses;scan;scans;constructor(e){super(e),this.response=new Oy(e),this.responses=new ky(e),this.scan=new Py(e),this.scans=new Fy(e)}},Ly=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/user/audit_logs`,{query:e})}},Ry=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/user/billing/history`,{query:e})}},zy=class extends D{constructor(e){super(e)}async get(){return this._client.get(`/user/billing/profile`)}},By=class extends D{history;profile;constructor(e){super(e),this.history=new Ry(e),this.profile=new zy(e)}},Vy=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/user/firewall/access_rules/rules`,{query:e})}async create(e){return this._client.post(`/user/firewall/access_rules/rules`,{body:{...e}})}async delete(e){return this._client.delete(`/user/firewall/access_rules/rules/${encodeURIComponent(e)}`)}async edit(e,t){return this._client.patch(`/user/firewall/access_rules/rules/${encodeURIComponent(e)}`,{body:{...t}})}},Hy=class extends D{accessRules;constructor(e){super(e),this.accessRules=new Vy(e)}},Uy=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/user/load_balancers/monitors/${encodeURIComponent(e)}/preview`,{body:{...t}})}},Wy=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/user/load_balancers/monitors/${encodeURIComponent(e)}/references`)}},Gy=class extends D{preview;references;constructor(e){super(e),this.preview=new Uy(e),this.references=new Wy(e)}async list(){return this._client.get(`/user/load_balancers/monitors`)}async create(e){return this._client.post(`/user/load_balancers/monitors`,{body:{...e}})}async delete(e){return this._client.delete(`/user/load_balancers/monitors/${encodeURIComponent(e)}`)}async get(e){return this._client.get(`/user/load_balancers/monitors/${encodeURIComponent(e)}`)}async edit(e,t){return this._client.patch(`/user/load_balancers/monitors/${encodeURIComponent(e)}`,{body:{...t}})}async update(e,t){return this._client.put(`/user/load_balancers/monitors/${encodeURIComponent(e)}`,{body:{...t}})}},Ky=class extends D{constructor(e){super(e)}async pools(e){return this._client.patch(`/user/load_balancers/pools`,{body:{...e}})}async pool(e,t){return this._client.patch(`/user/load_balancers/pools/${encodeURIComponent(e)}`,{body:{...t}})}},qy=class extends D{pools;constructor(e){super(e),this.pools=new Ky(e)}},Jy=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/user/load_balancers/pools/${encodeURIComponent(e)}/health`)}},Yy=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/user/load_balancers/pools/${encodeURIComponent(e)}/preview`,{body:{...t}})}},Xy=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/user/load_balancers/pools/${encodeURIComponent(e)}/references`)}},Zy=class extends D{edit;health;preview;references;constructor(e){super(e),this.edit=new qy(e),this.health=new Jy(e),this.preview=new Yy(e),this.references=new Xy(e)}async list(e){return this._client.get(`/user/load_balancers/pools`,{query:e})}async create(e){return this._client.post(`/user/load_balancers/pools`,{body:{...e}})}async delete(e){return this._client.delete(`/user/load_balancers/pools/${encodeURIComponent(e)}`)}async get(e){return this._client.get(`/user/load_balancers/pools/${encodeURIComponent(e)}`)}async update(e,t){return this._client.put(`/user/load_balancers/pools/${encodeURIComponent(e)}`,{body:{...t}})}},Qy=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/user/load_balancers/preview/${encodeURIComponent(e)}`)}},$y=class extends D{monitors;pools;preview;constructor(e){super(e),this.monitors=new Gy(e),this.pools=new Zy(e),this.preview=new Qy(e)}},eb=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/user/load_balancing_analytics/events`,{query:e})}},tb=class extends D{events;constructor(e){super(e),this.events=new eb(e)}},nb=class extends D{constructor(e){super(e)}async get(){return this._client.get(`/user/subscriptions`)}async update(e,t){return this._client.put(`/user/subscriptions/${encodeURIComponent(e)}`,{body:{...t}})}async delete(e){return this._client.delete(`/user/subscriptions/${encodeURIComponent(e)}`)}},rb=class extends D{constructor(e){super(e)}async list(){return this._client.get(`/users/tenants`)}},ib=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/user/tokens/permission_groups`,{query:e})}},ab=class extends D{constructor(e){super(e)}async update(e){return this._client.put(`/user/tokens/${encodeURIComponent(e)}/value`)}},ob=class extends D{permissionGroups;value;constructor(e){super(e),this.permissionGroups=new ib(e),this.value=new ab(e)}async list(e){return this._client.get(`/user/tokens`,{query:e})}async get(e){return this._client.get(`/user/tokens/${encodeURIComponent(e)}`)}async create(e){return this._client.post(`/user/tokens`,{body:{...e}})}async update(e,t){return this._client.put(`/user/tokens/${encodeURIComponent(e)}`,{body:{...t}})}async delete(e){return this._client.delete(`/user/tokens/${encodeURIComponent(e)}`)}async verify(){return this._client.get(`/user/tokens/verify`)}},sb=class extends D{auditLogs;billing;firewall;loadBalancers;loadBalancingAnalytics;subscriptions;tenants;tokens;constructor(e){super(e),this.auditLogs=new Ly(e),this.billing=new By(e),this.firewall=new Hy(e),this.loadBalancers=new $y(e),this.loadBalancingAnalytics=new tb(e),this.subscriptions=new nb(e),this.tenants=new rb(e),this.tokens=new ob(e)}async get(){return this._client.get(`/user`)}async edit(e){return this._client.patch(`/user`,{body:{...e}})}},cb=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/vectorize/indexes/${encodeURIComponent(t)}/delete-by-ids`,{body:{...n}})}},lb=class extends D{ids;constructor(e){super(e),this.ids=new cb(e)}},ub=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/vectorize/indexes/${encodeURIComponent(t)}/get-by-ids`,{body:{...n}})}},db=class extends D{ids;constructor(e){super(e),this.ids=new ub(e)}},fb=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/vectorize/indexes/${encodeURIComponent(t)}/insert`)}},pb=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/vectorize/indexes/${encodeURIComponent(t)}/query`,{body:{...n}})}},mb=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/vectorize/indexes/${encodeURIComponent(t)}/upsert`)}},hb=class extends D{deleteBy;getBy;insert;query;upsert;constructor(e){super(e),this.deleteBy=new lb(e),this.getBy=new db(e),this.insert=new fb(e),this.query=new pb(e),this.upsert=new mb(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/vectorize/indexes`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/vectorize/indexes`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/vectorize/indexes/${encodeURIComponent(t)}`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/vectorize/indexes/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/vectorize/indexes/${encodeURIComponent(t)}`,{body:{...n}})}},gb=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/vectorize/v2/indexes/${encodeURIComponent(t)}/metadata_index/list`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/vectorize/v2/indexes/${encodeURIComponent(t)}/metadata_index/create`,{body:{...n}})}async delete(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/vectorize/v2/indexes/${encodeURIComponent(t)}/metadata_index/delete`,{body:{...n}})}},_b=class extends D{deprecatedIndexes;metadataIndex;constructor(e){super(e),this.deprecatedIndexes=new hb(e),this.metadataIndex=new gb(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/vectorize/v2/indexes`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/vectorize/v2/indexes/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/vectorize/v2/indexes`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/vectorize/v2/indexes/${encodeURIComponent(t)}`)}async insert(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/vectorize/v2/indexes/${encodeURIComponent(t)}/insert`,{body:{...n}})}async query(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/vectorize/v2/indexes/${encodeURIComponent(t)}/query`,{body:{...n}})}async upsert(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/vectorize/v2/indexes/${encodeURIComponent(t)}/upsert`,{body:{...n}})}async deleteByIds(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/vectorize/v2/indexes/${encodeURIComponent(t)}/delete_by_ids`,{body:{...n}})}async getByIds(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/vectorize/v2/indexes/${encodeURIComponent(t)}/get_by_ids`,{body:{...n}})}async info(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/vectorize/v2/indexes/${encodeURIComponent(t)}/info`)}async listVectors(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/vectorize/v2/indexes/${encodeURIComponent(t)}/list`,{query:n})}},vb=class extends D{constructor(e){super(e)}},yb=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/waiting_rooms`,{query:t})}},bb=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(n)}/waiting_rooms/${encodeURIComponent(t)}/events/${encodeURIComponent(e)}/details`)}},xb=class extends D{details;constructor(e){super(e),this.details=new bb(e)}async list(e,t,n){return this._client.get(`/zones/${encodeURIComponent(t)}/waiting_rooms/${encodeURIComponent(e)}/events`,{query:n})}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(n)}/waiting_rooms/${encodeURIComponent(t)}/events/${encodeURIComponent(e)}`)}async create(e,t,n){return this._client.post(`/zones/${encodeURIComponent(t)}/waiting_rooms/${encodeURIComponent(e)}/events`,{body:{...n}})}async update(e,t,n,r){return this._client.put(`/zones/${encodeURIComponent(n)}/waiting_rooms/${encodeURIComponent(t)}/events/${encodeURIComponent(e)}`,{body:{...r}})}async edit(e,t,n,r){return this._client.patch(`/zones/${encodeURIComponent(n)}/waiting_rooms/${encodeURIComponent(t)}/events/${encodeURIComponent(e)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/zones/${encodeURIComponent(n)}/waiting_rooms/${encodeURIComponent(t)}/events/${encodeURIComponent(e)}`)}},Sb=class extends D{constructor(e){super(e)}async preview(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/waiting_rooms/preview`,{body:{...t}})}},Cb=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/waiting_rooms/${encodeURIComponent(e)}/rules`)}async create(e,t,n){return this._client.post(`/zones/${encodeURIComponent(t)}/waiting_rooms/${encodeURIComponent(e)}/rules`,{body:{...n}})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/waiting_rooms/${encodeURIComponent(e)}/rules`,{body:n})}async edit(e,t,n,r){return this._client.patch(`/zones/${encodeURIComponent(n)}/waiting_rooms/${encodeURIComponent(t)}/rules/${encodeURIComponent(e)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/zones/${encodeURIComponent(n)}/waiting_rooms/${encodeURIComponent(t)}/rules/${encodeURIComponent(e)}`)}},wb=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/waiting_rooms/settings`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/waiting_rooms/settings`,{body:{...t}})}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/waiting_rooms/settings`,{body:{...t}})}},Tb=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/waiting_rooms/${encodeURIComponent(e)}/status`)}},Eb=class extends D{accountWaitingRooms;events;page;rules;settings;statuses;constructor(e){super(e),this.accountWaitingRooms=new yb(e),this.events=new xb(e),this.page=new Sb(e),this.rules=new Cb(e),this.settings=new wb(e),this.statuses=new Tb(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/waiting_rooms`,{query:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/waiting_rooms/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/waiting_rooms`,{body:{...t}})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/waiting_rooms/${encodeURIComponent(e)}`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(t)}/waiting_rooms/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/waiting_rooms/${encodeURIComponent(e)}`)}},Db=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/web3/hostnames/${encodeURIComponent(e)}/ipfs_universal_path/content_list/entries`)}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(n)}/web3/hostnames/${encodeURIComponent(t)}/ipfs_universal_path/content_list/entries/${encodeURIComponent(e)}`)}async create(e,t,n){return this._client.post(`/zones/${encodeURIComponent(t)}/web3/hostnames/${encodeURIComponent(e)}/ipfs_universal_path/content_list/entries`,{body:{...n}})}async update(e,t,n,r){return this._client.put(`/zones/${encodeURIComponent(n)}/web3/hostnames/${encodeURIComponent(t)}/ipfs_universal_path/content_list/entries/${encodeURIComponent(e)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/zones/${encodeURIComponent(n)}/web3/hostnames/${encodeURIComponent(t)}/ipfs_universal_path/content_list/entries/${encodeURIComponent(e)}`)}},Ob=class extends D{entries;constructor(e){super(e),this.entries=new Db(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/web3/hostnames/${encodeURIComponent(e)}/ipfs_universal_path/content_list`)}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/web3/hostnames/${encodeURIComponent(e)}/ipfs_universal_path/content_list`,{body:{...n}})}},kb=class extends D{contentLists;constructor(e){super(e),this.contentLists=new Ob(e)}},Ab=class extends D{ipfsUniversalPaths;constructor(e){super(e),this.ipfsUniversalPaths=new kb(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/web3/hostnames`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/web3/hostnames/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/web3/hostnames`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(t)}/web3/hostnames/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/web3/hostnames/${encodeURIComponent(e)}`)}},jb=class extends D{hostnames;constructor(e){super(e),this.hostnames=new Ab(e)}},Mb=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/account-settings`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/workers/account-settings`,{body:{...t}})}},Nb=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/containers`,{query:t})}},Pb=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/workers/assets/upload`,{body:{...t}})}},Fb=class extends D{upload;constructor(e){super(e),this.upload=new Pb(e)}},Ib=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/workers/${encodeURIComponent(t)}/versions`,{query:n})}async get(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/workers/${encodeURIComponent(t)}/versions/${encodeURIComponent(n)}`,{query:r})}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/workers/workers/${encodeURIComponent(t)}/versions`,{body:{...n}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/workers/workers/${encodeURIComponent(t)}/versions/${encodeURIComponent(n)}`)}},Lb=class extends D{versions;constructor(e){super(e),this.versions=new Ib(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/workers`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/workers/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/workers/workers`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/workers/workers/${encodeURIComponent(t)}`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/workers/workers/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/workers/workers/${encodeURIComponent(t)}`)}},Rb=class extends D{workers;constructor(e){super(e),this.workers=new Lb(e)}},zb=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/pay-per-crawl/configuration`)}async edit(e){return this._client.patch(`/zones/${encodeURIComponent(e)}/pay-per-crawl/configuration`)}async create(e){return this._client.post(`/zones/${encodeURIComponent(e)}/pay-per-crawl/configuration`)}},Bb=class extends D{constructor(e){super(e)}async delete(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/pay-per-crawl/crawler/stripe`)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/pay-per-crawl/crawler/stripe`)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/pay-per-crawl/crawler/stripe`)}},Vb=class extends D{stripe;constructor(e){super(e),this.stripe=new Bb(e)}},Hb=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/deployments`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/deployments`,{body:{...n}})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/deployments/${encodeURIComponent(n)}`)}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/deployments/${encodeURIComponent(n)}`)}},Ub=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/domains`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/domains/${encodeURIComponent(t)}`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/workers/domains`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/workers/domains/${encodeURIComponent(t)}`)}},Wb=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/observability/destinations`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/workers/observability/destinations`,{body:{...t}})}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/workers/observability/destinations/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/workers/observability/destinations/${encodeURIComponent(e)}`)}},Gb=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/observability/queries`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/workers/observability/queries`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/workers/observability/queries/${encodeURIComponent(e)}`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/workers/observability/queries/${encodeURIComponent(e)}`)}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/workers/observability/queries/${encodeURIComponent(e)}`,{body:{...n}})}},Kb=class extends D{constructor(e){super(e)}async keys(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/workers/observability/telemetry/keys`,{body:{...t}})}async query(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/workers/observability/telemetry/query`,{body:{...t}})}async values(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/workers/observability/telemetry/values`,{body:{...t}})}},qb=class extends D{destinations;queries;telemetry;constructor(e){super(e),this.destinations=new Wb(e),this.queries=new Gb(e),this.telemetry=new Kb(e)}},Jb=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/placement/regions`)}},Yb=class extends D{regions;constructor(e){super(e),this.regions=new Jb(e)}},Xb=class extends D{constructor(e){super(e)}async delete(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/pay-per-crawl/publisher/stripe`)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/pay-per-crawl/publisher/stripe`)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/pay-per-crawl/publisher/stripe`)}},Zb=class extends D{stripe;constructor(e){super(e),this.stripe=new Xb(e)}},Qb=class extends D{constructor(e){super(e)}async generate(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/containers/registries/${encodeURIComponent(e)}/credentials`,{body:{...n}})}},$b=class extends D{credentials;constructor(e){super(e),this.credentials=new Qb(e)}},ex=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/workers/routes`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/workers/routes/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/workers/routes`,{body:{...t}})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/workers/routes/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/workers/routes/${encodeURIComponent(e)}`)}},tx=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/assets-upload-session`)}},nx=class extends D{upload;constructor(e){super(e),this.upload=new tx(e)}},rx=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/content/v2`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/content`)}},ix=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/schedules`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/schedules`,{body:n})}},ax=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/settings`)}async edit(e,t){return this._client.patch(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/settings`)}},ox=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/script-settings`)}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/script-settings`,{body:{...n}})}},sx=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/subdomain`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/subdomain`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/subdomain`)}},cx=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/tails`)}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/tails/${encodeURIComponent(n)}`)}},lx=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/usage-model`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/usage-model`,{body:{...n}})}},ux=class extends D{assets;content;schedules;scriptAndVersionSettings;settings;subdomain;tail;usageModel;constructor(e){super(e),this.assets=new nx(e),this.content=new rx(e),this.schedules=new ix(e),this.scriptAndVersionSettings=new ax(e),this.settings=new ox(e),this.subdomain=new sx(e),this.tail=new cx(e),this.usageModel=new lx(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/scripts`,{query:t})}async search(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/scripts-search`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}`,{query:n})}},dx=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/secrets`)}async get(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/secrets/${encodeURIComponent(n)}`,{query:r})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/secrets`,{body:{...n}})}async delete(e,t,n,r){return this._client.delete(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/secrets/${encodeURIComponent(n)}`,{query:r})}},fx=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/services/${encodeURIComponent(t)}/environments/${encodeURIComponent(n)}/content`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/workers/services/${encodeURIComponent(t)}/environments/${encodeURIComponent(n)}/content`)}},px=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/services/${encodeURIComponent(t)}/environments/${encodeURIComponent(n)}/settings`)}async edit(e,t,n,r){return this._client.patch(`/accounts/${encodeURIComponent(e)}/workers/services/${encodeURIComponent(t)}/environments/${encodeURIComponent(n)}/settings`,{body:{...r}})}},mx=class extends D{content;settings;constructor(e){super(e),this.content=new fx(e),this.settings=new px(e)}},hx=class extends D{environments;constructor(e){super(e),this.environments=new mx(e)}},gx=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/subdomain`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/workers/subdomain`,{body:{...t}})}async delete(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/workers/subdomain`)}},_x=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/versions`,{query:n})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/versions/${encodeURIComponent(n)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/workers/scripts/${encodeURIComponent(t)}/versions`,{body:{...n}})}},vx=class extends D{constructor(e){super(e)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/pay-per-crawl/zones_can_be_enabled/query`)}},yx=class extends D{query;constructor(e){super(e),this.query=new vx(e)}async edit(e){return this._client.patch(`/accounts/${encodeURIComponent(e)}/pay-per-crawl/zones_can_be_enabled`)}},bx=class extends D{accountSettings;applications;assets;beta;configuration;crawler;deployments;domains;observability;placement;publisher;registries;routes;scripts;secrets;services;subdomains;versions;zonesCanBeEnabled;constructor(e){super(e),this.accountSettings=new Mb(e),this.applications=new Nb(e),this.assets=new Fb(e),this.beta=new Rb(e),this.configuration=new zb(e),this.crawler=new Vb(e),this.deployments=new Hb(e),this.domains=new Ub(e),this.observability=new qb(e),this.placement=new Yb(e),this.publisher=new Zb(e),this.registries=new $b(e),this.routes=new ex(e),this.scripts=new ux(e),this.secrets=new dx(e),this.services=new hx(e),this.subdomains=new gx(e),this.versions=new _x(e),this.zonesCanBeEnabled=new yx(e)}},xx=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/builds/builds/${encodeURIComponent(t)}/logs`,{query:n})}},Sx=class extends D{logs;constructor(e){super(e),this.logs=new xx(e)}async cancel(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/builds/builds/${encodeURIComponent(t)}/cancel`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/builds/builds/${encodeURIComponent(t)}`)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/builds/workers/${encodeURIComponent(t)}/builds`,{query:n})}},Cx=class extends D{constructor(e){super(e)}async get(e,t,n,r,i){return this._client.get(`/accounts/${encodeURIComponent(e)}/builds/repos/${encodeURIComponent(t)}/${encodeURIComponent(n)}/${encodeURIComponent(r)}/config_autofill`,{query:i})}},wx=class extends D{constructor(e){super(e)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/builds/repos/connections/${encodeURIComponent(t)}`)}async upsert(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/builds/repos/connections`,{body:{...t}})}},Tx=class extends D{configAutofill;connections;constructor(e){super(e),this.configAutofill=new Cx(e),this.connections=new wx(e)}},Ex=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/builds/tokens`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/builds/tokens/${encodeURIComponent(t)}`)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/builds/tokens`,{query:t})}},Dx=class extends D{constructor(e){super(e)}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/builds/triggers/${encodeURIComponent(t)}/environment_variables/${encodeURIComponent(n)}`)}async upsert(e,t){return this._client.patch(`/accounts/${encodeURIComponent(e)}/builds/triggers/${encodeURIComponent(t)}/environment_variables`)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/builds/triggers/${encodeURIComponent(t)}/environment_variables`)}},Ox=class extends D{environmentVariables;constructor(e){super(e),this.environmentVariables=new Dx(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/builds/triggers`,{body:{...t}})}async createBuild(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/builds/triggers/${encodeURIComponent(t)}/builds`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/builds/triggers/${encodeURIComponent(t)}`)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/builds/workers/${encodeURIComponent(t)}/triggers`)}async purgeCache(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/builds/triggers/${encodeURIComponent(t)}/purge_build_cache`)}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/builds/triggers/${encodeURIComponent(t)}`,{body:{...n}})}},kx=class extends D{builds;repos;tokens;triggers;constructor(e){super(e),this.builds=new Sx(e),this.repos=new Tx(e),this.tokens=new Ex(e),this.triggers=new Ox(e)}async getAccountLimits(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/builds/account/limits`)}async getBuildsByVersion(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/builds/builds`,{query:t})}async getLatestBuilds(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/builds/builds/latest`,{query:t})}},Ax=class extends D{constructor(e){super(e)}async create(e,t,n,r){return this._client.post(`/accounts/${encodeURIComponent(r)}/workflows/${encodeURIComponent(e)}/instances/${encodeURIComponent(t)}/events/${encodeURIComponent(n)}`)}},jx=class extends D{constructor(e){super(e)}async edit(e,t,n,r){return this._client.patch(`/accounts/${encodeURIComponent(n)}/workflows/${encodeURIComponent(e)}/instances/${encodeURIComponent(t)}/status`,{body:{...r}})}},Mx=class extends D{events;status;constructor(e){super(e),this.events=new Ax(e),this.status=new jx(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/workflows/${encodeURIComponent(e)}/instances`,{body:{...n}})}async get(e,t,n,r){return this._client.get(`/accounts/${encodeURIComponent(n)}/workflows/${encodeURIComponent(e)}/instances/${encodeURIComponent(t)}`,{query:r})}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/workflows/${encodeURIComponent(e)}/instances`,{query:n})}async bulk(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/workflows/${encodeURIComponent(e)}/instances/batch`,{body:n})}async batchTerminate(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/workflows/${encodeURIComponent(e)}/instances/batch/terminate`,{body:n})}async statusTerminate(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/workflows/${encodeURIComponent(e)}/instances/terminate`)}},Nx=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/workflows/${encodeURIComponent(e)}/versions/${encodeURIComponent(t)}`)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/workflows/${encodeURIComponent(e)}/versions`,{query:n})}async dag(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/workflows/${encodeURIComponent(e)}/versions/${encodeURIComponent(t)}/dag`)}async graph(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/workflows/${encodeURIComponent(e)}/versions/${encodeURIComponent(t)}/graph`)}},Px=class extends D{instances;versions;constructor(e){super(e),this.instances=new Mx(e),this.versions=new Nx(e)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/workflows/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/workflows/${encodeURIComponent(e)}`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/workflows/${encodeURIComponent(e)}`)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/workflows`,{query:t})}},Fx=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/settings/zaraz/config`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/settings/zaraz/config`,{body:{...t}})}},Ix=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/settings/zaraz/default`)}},Lx=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/settings/zaraz/export`)}},Rx=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/settings/zaraz/history/configs`,{query:t})}},zx=class extends D{configs;constructor(e){super(e),this.configs=new Rx(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/settings/zaraz/history`,{query:t})}async update(e){return this._client.put(`/zones/${encodeURIComponent(e)}/settings/zaraz/history`)}},Bx=class extends D{constructor(e){super(e)}async create(e){return this._client.post(`/zones/${encodeURIComponent(e)}/settings/zaraz/publish`)}},Vx=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/settings/zaraz/workflow`)}},Hx=class extends D{config;default;export;history;publish;workflow;constructor(e){super(e),this.config=new Fx(e),this.default=new Ix(e),this.export=new Lx(e),this.history=new zx(e),this.publish=new Bx(e),this.workflow=new Vx(e)}async update(e){return this._client.put(`/zones/${encodeURIComponent(e)}/settings/zaraz/workflow`)}},Ux=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/ai-controls/mcp/portals`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/access/ai-controls/mcp/portals`,{body:{...t}})}async read(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/access/ai-controls/mcp/portals/${encodeURIComponent(e)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/access/ai-controls/mcp/portals/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/access/ai-controls/mcp/portals/${encodeURIComponent(t)}`)}},Wx=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/ai-controls/mcp/servers`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/access/ai-controls/mcp/servers`,{body:{...t}})}async read(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/ai-controls/mcp/servers/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/access/ai-controls/mcp/servers/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/access/ai-controls/mcp/servers/${encodeURIComponent(t)}`)}async sync(e,t){return this._client.post(`/accounts/${encodeURIComponent(t)}/access/ai-controls/mcp/servers/${encodeURIComponent(e)}/sync`)}},Gx=class extends D{portals;servers;constructor(e){super(e),this.portals=new Ux(e),this.servers=new Wx(e)}},Kx=class extends D{mcp;constructor(e){super(e),this.mcp=new Gx(e)}},qx=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/apps/ca`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}/ca`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}/ca`)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}/ca`)}},Jx=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}/policies`,{query:n})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(n)}/access/apps/${encodeURIComponent(e)}/policies/${encodeURIComponent(t)}`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}/policies`,{body:{...n}})}async update(e,t,n,r){return this._client.put(`/accounts/${encodeURIComponent(n)}/access/apps/${encodeURIComponent(e)}/policies/${encodeURIComponent(t)}`,{body:{...r}})}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(n)}/access/apps/${encodeURIComponent(e)}/policies/${encodeURIComponent(t)}`)}},Yx=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/policy-tests/${encodeURIComponent(t)}/users`,{query:n})}},Xx=class extends D{users;constructor(e){super(e),this.users=new Yx(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/policy-tests/${encodeURIComponent(t)}`)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/access/policy-tests`)}},Zx=class extends D{constructor(e){super(e)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}/settings`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}/settings`,{body:{...n}})}},Qx=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}/user_policy_checks`)}},$x=class extends D{cas;policies;policyTests;settings;userPolicyChecks;constructor(e){super(e),this.cas=new qx(e),this.policies=new Jx(e),this.policyTests=new Xx(e),this.settings=new Zx(e),this.userPolicyChecks=new Qx(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/apps`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}`)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/access/apps`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}`)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}`)}async revokeTokens(e,t){return this._client.post(`/accounts/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}/revoke_tokens`)}},eS=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/bookmarks`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/access/bookmarks/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(t)}/access/bookmarks/${encodeURIComponent(e)}`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(t)}/access/bookmarks/${encodeURIComponent(e)}`)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/access/bookmarks/${encodeURIComponent(e)}`)}},tS=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/certificates/settings`)}async update(e){return this._client.put(`/accounts/${encodeURIComponent(e)}/access/certificates/settings`)}},nS=class extends D{settings;constructor(e){super(e),this.settings=new tS(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/certificates`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/access/certificates/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/access/certificates`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/access/certificates/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/access/certificates/${encodeURIComponent(e)}`)}},rS=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/custom_pages`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/access/custom_pages/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/access/custom_pages`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/access/custom_pages/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/access/custom_pages/${encodeURIComponent(e)}`)}},iS=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/gateway_ca`)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/access/gateway_ca`)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/access/gateway_ca/${encodeURIComponent(e)}`)}},aS=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/groups`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/access/groups/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/access/groups`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/access/groups/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/access/groups/${encodeURIComponent(e)}`)}},oS=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/infrastructure/targets`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/infrastructure/targets/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/infrastructure/targets`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/infrastructure/targets/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/infrastructure/targets/${encodeURIComponent(t)}`)}async bulkUpdate(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/infrastructure/targets/batch`,{body:t})}async bulkDelete(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/infrastructure/targets/batch`)}async bulkDeleteV2(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/infrastructure/targets/batch_delete`,{body:{...t}})}},sS=class extends D{targets;constructor(e){super(e),this.targets=new oS(e)}},cS=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/keys`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/access/keys`,{body:{...t}})}async rotate(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/access/keys/rotate`)}},lS=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/logs/access_requests`,{query:t})}},uS=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/logs/scim/updates`,{query:t})}},dS=class extends D{updates;constructor(e){super(e),this.updates=new uS(e)}},fS=class extends D{accessRequests;scim;constructor(e){super(e),this.accessRequests=new lS(e),this.scim=new dS(e)}},pS=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/policies`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/policies/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/access/policies`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/access/policies/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/access/policies/${encodeURIComponent(t)}`)}},mS=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/service_tokens`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/access/service_tokens/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/access/service_tokens`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/access/service_tokens/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/access/service_tokens/${encodeURIComponent(e)}`)}async refresh(e,t){return this._client.post(`/accounts/${encodeURIComponent(t)}/access/service_tokens/${encodeURIComponent(e)}/refresh`)}async rotate(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/access/service_tokens/${encodeURIComponent(e)}/rotate`,{body:{...n}})}},hS=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/tags`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/tags/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/access/tags`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/access/tags/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/access/tags/${encodeURIComponent(t)}`)}},gS=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/access/users/${encodeURIComponent(e)}/active_sessions`)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/access/users/${encodeURIComponent(e)}/active_sessions/${encodeURIComponent(n)}`)}},_S=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/access/users/${encodeURIComponent(e)}/failed_logins`)}},vS=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/access/users/${encodeURIComponent(e)}/last_seen_identity`)}},yS=class extends D{activeSessions;failedLogins;lastSeenIdentity;constructor(e){super(e),this.activeSessions=new gS(e),this.failedLogins=new _S(e),this.lastSeenIdentity=new vS(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/users`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/access/users/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/access/users`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/access/users/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/access/users/${encodeURIComponent(e)}`)}},bS=class extends D{aiControls;applications;bookmarks;certificates;customPages;gatewayCa;groups;infrastructure;keys;logs;policies;serviceTokens;tags;users;constructor(e){super(e),this.aiControls=new Kx(e),this.applications=new $x(e),this.bookmarks=new eS(e),this.certificates=new nS(e),this.customPages=new rS(e),this.gatewayCa=new iS(e),this.groups=new aS(e),this.infrastructure=new sS(e),this.keys=new cS(e),this.logs=new fS(e),this.policies=new pS(e),this.serviceTokens=new mS(e),this.tags=new hS(e),this.users=new yS(e)}},xS=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/access/apps/ca`)}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}/ca`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}/ca`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}/ca`)}},SS=class extends D{constructor(e){super(e)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(n)}/access/apps/${encodeURIComponent(e)}/policies/${encodeURIComponent(t)}/make_reusable`)}},CS=class extends D{reusable;constructor(e){super(e),this.reusable=new SS(e)}},wS=class extends D{make;constructor(e){super(e),this.make=new CS(e)}async list(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}/policies`)}async create(e,t,n){return this._client.post(`/zones/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}/policies`,{body:{...n}})}async delete(e,t,n){return this._client.delete(`/zones/${encodeURIComponent(n)}/access/apps/${encodeURIComponent(t)}/policies/${encodeURIComponent(e)}`)}async get(e,t,n){return this._client.get(`/zones/${encodeURIComponent(n)}/access/apps/${encodeURIComponent(t)}/policies/${encodeURIComponent(e)}`)}async update(e,t,n,r){return this._client.put(`/zones/${encodeURIComponent(n)}/access/apps/${encodeURIComponent(t)}/policies/${encodeURIComponent(e)}`,{body:{...r}})}},TS=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/gateway/apps/review_status`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/gateway/apps/review_status`,{body:{...t}})}},ES=class extends D{status;constructor(e){super(e),this.status=new TS(e)}},DS=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}/revoke_tokens`)}},OS=class extends D{tokens;constructor(e){super(e),this.tokens=new DS(e)}},kS=class extends D{constructor(e){super(e)}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}/settings`,{body:{...n}})}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}/settings`,{body:{...n}})}},AS=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}/user_policy_checks`)}},jS=class extends D{checks;constructor(e){super(e),this.checks=new AS(e)}},MS=class extends D{policy;constructor(e){super(e),this.policy=new jS(e)}},NS=class extends D{ca;policies;review;revoke;settings;user;constructor(e){super(e),this.ca=new xS(e),this.policies=new wS(e),this.review=new ES(e),this.revoke=new OS(e),this.settings=new kS(e),this.user=new MS(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/access/apps`)}async create(e){return this._client.post(`/zones/${encodeURIComponent(e)}/access/apps`)}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(t)}/access/apps/${encodeURIComponent(e)}`)}},PS=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/access/certificates/settings`)}async update(e){return this._client.put(`/zones/${encodeURIComponent(e)}/access/certificates/settings`)}},FS=class extends D{settings;constructor(e){super(e),this.settings=new PS(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/access/certificates`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/access/certificates`,{body:{...t}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/access/certificates/${encodeURIComponent(e)}`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/access/certificates/${encodeURIComponent(e)}`)}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/access/certificates/${encodeURIComponent(e)}`,{body:{...n}})}},IS=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/zerotrust/connectivity_settings`)}async edit(e,t){return this._client.patch(`/accounts/${encodeURIComponent(e)}/zerotrust/connectivity_settings`,{body:{...t}})}},LS=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/client-versions/target-environments`)}},RS=class extends D{environments;constructor(e){super(e),this.environments=new LS(e)}},zS=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/client-versions`,{query:t})}},BS=class extends D{target;versions;constructor(e){super(e),this.target=new RS(e),this.versions=new zS(e)}},VS=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/deployment-groups`,{query:t})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/devices/deployment-groups`,{body:{...t}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/deployment-groups/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/devices/deployment-groups/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/devices/deployment-groups/${encodeURIComponent(t)}`)}},HS=class extends D{groups;constructor(e){super(e),this.groups=new VS(e)}},US=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/physical-devices`,{query:t})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/devices/physical-devices/${encodeURIComponent(e)}`,{query:n})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/devices/physical-devices/${encodeURIComponent(e)}`)}async revoke(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/devices/physical-devices/${encodeURIComponent(t)}/revoke`)}},WS=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/devices/dex_tests`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/devices/dex_tests/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/dex/devices/dex_tests`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/dex/devices/dex_tests/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/dex/devices/dex_tests/${encodeURIComponent(t)}`)}},GS=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/devices/${encodeURIComponent(t)}/fleet-status/live`,{query:n})}},KS=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/ip-profiles`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/ip-profiles/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/devices/ip-profiles`,{body:{...t}})}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/devices/ip-profiles/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/devices/ip-profiles/${encodeURIComponent(t)}`)}},qS=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/networks`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/devices/networks/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/devices/networks`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/devices/networks/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/devices/networks/${encodeURIComponent(e)}`)}},JS=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/devices/${encodeURIComponent(e)}/override_codes`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/registrations/${encodeURIComponent(t)}/override_codes`)}},YS=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/devices/policy/${encodeURIComponent(e)}/exclude`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/devices/policy/${encodeURIComponent(e)}/exclude`,{body:n})}},XS=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/devices/policy/${encodeURIComponent(e)}/fallback_domains`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/devices/policy/${encodeURIComponent(e)}/fallback_domains`,{body:n})}},ZS=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/devices/policy/${encodeURIComponent(e)}/include`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/devices/policy/${encodeURIComponent(e)}/include`,{body:n})}},QS=class extends D{excludes;fallbackDomains;includes;constructor(e){super(e),this.excludes=new YS(e),this.fallbackDomains=new XS(e),this.includes=new ZS(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/policies`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/devices/policy/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/devices/policy`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/devices/policy/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/devices/policy/${encodeURIComponent(e)}`)}},$S=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/devices/policy/certificates`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/devices/policy/certificates`,{body:{...t}})}},eC=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/policy/exclude`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/devices/policy/exclude`,{body:t})}},tC=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/policy/fallback_domains`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/devices/policy/fallback_domains`,{body:t})}},nC=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/policy/include`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/devices/policy/include`,{body:t})}},rC=class extends D{certificates;excludes;fallbackDomains;includes;constructor(e){super(e),this.certificates=new $S(e),this.excludes=new eC(e),this.fallbackDomains=new tC(e),this.includes=new nC(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/policy`)}async edit(e,t){return this._client.patch(`/accounts/${encodeURIComponent(e)}/devices/policy`,{body:{...t}})}},iC=class extends D{custom;default;constructor(e){super(e),this.custom=new QS(e),this.default=new rC(e)}},aC=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/posture/integration`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/devices/posture/integration/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/devices/posture/integration`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/devices/posture/integration/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/devices/posture/integration/${encodeURIComponent(e)}`)}},oC=class extends D{integrations;constructor(e){super(e),this.integrations=new aC(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/posture`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/devices/posture/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/devices/posture`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/devices/posture/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/devices/posture/${encodeURIComponent(e)}`)}},sC=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/registrations`,{query:t})}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/devices/registrations/${encodeURIComponent(e)}`,{query:n})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/devices/registrations/${encodeURIComponent(e)}`)}async bulkDelete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/devices/registrations`,{query:t})}async revoke(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/devices/registrations/revoke`,{query:t})}async unrevoke(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/devices/registrations/unrevoke`,{query:t})}},cC=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/resilience/disconnect`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/devices/resilience/disconnect`,{body:{...t}})}},lC=class extends D{globalWarpOverride;constructor(e){super(e),this.globalWarpOverride=new cC(e)}},uC=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/devices/revoke`,{body:t})}},dC=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices/settings`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/devices/settings`,{body:{...t}})}async edit(e,t){return this._client.patch(`/accounts/${encodeURIComponent(e)}/devices/settings`,{body:{...t}})}async delete(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/devices/settings`)}},fC=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/devices/unrevoke`,{body:t})}},pC=class extends D{client;deployment;devices;dexTests;fleetStatus;ipProfiles;networks;overrideCodes;policies;posture;registrations;resilience;revoke;settings;unrevoke;constructor(e){super(e),this.client=new BS(e),this.deployment=new HS(e),this.devices=new US(e),this.dexTests=new WS(e),this.fleetStatus=new GS(e),this.ipProfiles=new KS(e),this.networks=new qS(e),this.overrideCodes=new JS(e),this.policies=new iC(e),this.posture=new oC(e),this.registrations=new sC(e),this.resilience=new lC(e),this.revoke=new uC(e),this.settings=new dC(e),this.unrevoke=new fC(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/devices`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/devices/${encodeURIComponent(e)}`)}},mC=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/colos`,{query:t})}},hC=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/commands/devices`,{query:t})}},gC=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/commands/${encodeURIComponent(t)}/downloads/${encodeURIComponent(n)}`)}},_C=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/commands/quota`)}},vC=class extends D{devices;downloads;quota;constructor(e){super(e),this.devices=new hC(e),this.downloads=new gC(e),this.quota=new _C(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/commands`,{query:t})}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/dex/commands`)}},yC=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/fleet-status/devices`,{query:t})}},bC=class extends D{devices;constructor(e){super(e),this.devices=new yC(e)}async live(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/fleet-status/live`,{query:t})}async overTime(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/fleet-status/over-time`,{query:t})}},xC=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/http-tests/${encodeURIComponent(t)}/percentiles`,{query:n})}},SC=class extends D{percentiles;constructor(e){super(e),this.percentiles=new xC(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/http-tests/${encodeURIComponent(t)}`,{query:n})}},CC=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/rules/${encodeURIComponent(t)}`)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/dex/rules/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/dex/rules/${encodeURIComponent(t)}`,{body:{...n}})}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/dex/rules`,{body:{...t}})}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/rules`,{query:t})}},wC=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/tests/unique-devices`,{query:t})}},TC=class extends D{uniqueDevices;constructor(e){super(e),this.uniqueDevices=new wC(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/tests/overview`,{query:t})}},EC=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/traceroute-test-results/${encodeURIComponent(t)}/network-path`)}},DC=class extends D{networkPath;constructor(e){super(e),this.networkPath=new EC(e)}},OC=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/traceroute-tests/${encodeURIComponent(t)}`,{query:n})}async percentiles(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/traceroute-tests/${encodeURIComponent(t)}/percentiles`,{query:n})}async networkPath(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/traceroute-tests/${encodeURIComponent(t)}/network-path`,{query:n})}},kC=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dex/warp-change-events`,{query:t})}},AC=class extends D{colos;commands;fleetStatus;httpTests;rules;tests;tracerouteTestResults;tracerouteTests;warpChangeEvents;constructor(e){super(e),this.colos=new mC(e),this.commands=new vC(e),this.fleetStatus=new bC(e),this.httpTests=new SC(e),this.rules=new CC(e),this.tests=new TC(e),this.tracerouteTestResults=new DC(e),this.tracerouteTests=new OC(e),this.warpChangeEvents=new kC(e)}},jC=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/dlp/datasets/${encodeURIComponent(t)}/upload`)}async edit(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/dlp/datasets/${encodeURIComponent(t)}/upload/${encodeURIComponent(n)}`)}},MC=class extends D{constructor(e){super(e)}async create(e,t,n,r){return this._client.post(`/accounts/${encodeURIComponent(e)}/dlp/datasets/${encodeURIComponent(t)}/versions/${encodeURIComponent(n)}/entries/${encodeURIComponent(r)}`)}},NC=class extends D{entries;constructor(e){super(e),this.entries=new MC(e)}async create(e,t,n,r){return this._client.post(`/accounts/${encodeURIComponent(e)}/dlp/datasets/${encodeURIComponent(t)}/versions/${encodeURIComponent(n)}`,{body:r})}},PC=class extends D{upload;versions;constructor(e){super(e),this.upload=new jC(e),this.versions=new NC(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/datasets`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/datasets/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/dlp/datasets`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/dlp/datasets/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/dlp/datasets/${encodeURIComponent(t)}`)}},FC=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/email/account_mapping`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/dlp/email/account_mapping`,{body:{...t}})}},IC=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/email/rules`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/email/rules/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/dlp/email/rules`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/dlp/email/rules/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/dlp/email/rules/${encodeURIComponent(t)}`)}async bulkEdit(e){return this._client.patch(`/accounts/${encodeURIComponent(e)}/dlp/email/rules`)}},LC=class extends D{accountMapping;rules;constructor(e){super(e),this.accountMapping=new FC(e),this.rules=new IC(e)}},RC=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/entries`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/entries/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/dlp/entries`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/dlp/entries/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/dlp/entries/custom/${encodeURIComponent(t)}`,{body:{...n}})}},zC=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/entries`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/entries/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/dlp/entries/integration`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/dlp/entries/integration/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/dlp/entries/integration/${encodeURIComponent(t)}`)}},BC=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/entries`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/entries/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/dlp/entries/predefined`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/dlp/entries/predefined/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/dlp/entries/predefined/${encodeURIComponent(t)}`)}},VC=class extends D{custom;integration;predefined;constructor(e){super(e),this.custom=new RC(e),this.integration=new zC(e),this.predefined=new BC(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/entries`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/entries/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/dlp/entries`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/dlp/entries/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/dlp/entries/${encodeURIComponent(t)}`)}},HC=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/limits`)}},UC=class extends D{constructor(e){super(e)}async validate(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/dlp/patterns/validate`,{body:{...t}})}},WC=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/payload_log`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/dlp/payload_log`,{body:{...t}})}},GC=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/profiles/custom/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/dlp/profiles/custom`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/dlp/profiles/custom/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/dlp/profiles/custom/${encodeURIComponent(t)}`)}},KC=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/profiles/predefined/${encodeURIComponent(t)}/config`)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/dlp/profiles/predefined/${encodeURIComponent(t)}/config`,{body:{...n}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/dlp/profiles/predefined/${encodeURIComponent(t)}/config`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/dlp/profiles/predefined/${encodeURIComponent(t)}`)}},qC=class extends D{custom;predefined;constructor(e){super(e),this.custom=new GC(e),this.predefined=new KC(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/profiles`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/profiles/${encodeURIComponent(t)}`)}},JC=class extends D{datasets;email;entries;limits;patterns;payloadLogs;profiles;constructor(e){super(e),this.datasets=new PC(e),this.email=new LC(e),this.entries=new VC(e),this.limits=new HC(e),this.patterns=new UC(e),this.payloadLogs=new WC(e),this.profiles=new qC(e)}},YC=class extends D{constructor(e){super(e)}async fingerprints(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/dlp/document_fingerprints`,{body:{...t}})}},XC=class extends D{document;constructor(e){super(e),this.document=new YC(e)}async v2(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/dlp/document_fingerprints/${encodeURIComponent(t)}`,{body:{...n}})}},ZC=class extends D{constructor(e){super(e)}async fingerprints(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/document_fingerprints/${encodeURIComponent(t)}`)}},QC=class extends D{constructor(e){super(e)}async all(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/document_fingerprints`)}},$C=class extends D{document;fingerprints;constructor(e){super(e),this.document=new ZC(e),this.fingerprints=new QC(e)}},ew=class extends D{create;get;constructor(e){super(e),this.create=new XC(e),this.get=new $C(e)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/dlp/document_fingerprints/${encodeURIComponent(t)}`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/dlp/document_fingerprints/${encodeURIComponent(t)}`)}},tw=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/gateway/app_types`)}},nw=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/gateway/audit_ssh_settings`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/gateway/audit_ssh_settings`,{body:{...t}})}async rotateSeed(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/gateway/audit_ssh_settings/rotate_seed`)}},rw=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/gateway/categories`)}},iw=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/gateway/certificates`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/gateway/certificates/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/gateway/certificates`,{body:{...t}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/gateway/certificates/${encodeURIComponent(e)}`)}async activate(e,t){return this._client.post(`/accounts/${encodeURIComponent(t)}/gateway/certificates/${encodeURIComponent(e)}/activate`)}async deactivate(e,t){return this._client.post(`/accounts/${encodeURIComponent(t)}/gateway/certificates/${encodeURIComponent(e)}/deactivate`)}},aw=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/gateway/configuration/custom_certificate`)}},ow=class extends D{customCertificate;constructor(e){super(e),this.customCertificate=new aw(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/gateway/configuration`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/gateway/configuration`,{body:{...t}})}async edit(e,t){return this._client.patch(`/accounts/${encodeURIComponent(e)}/gateway/configuration`,{body:{...t}})}},sw=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/gateway/lists/${encodeURIComponent(e)}/items`)}},cw=class extends D{items;constructor(e){super(e),this.items=new sw(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/gateway/lists`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/gateway/lists/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/gateway/lists`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/gateway/lists/${encodeURIComponent(e)}`,{body:{...n}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/gateway/lists/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/gateway/lists/${encodeURIComponent(e)}`)}},lw=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/gateway/locations`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/gateway/locations/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/gateway/locations`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/gateway/locations/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/gateway/locations/${encodeURIComponent(e)}`)}},uw=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/gateway/logging`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/gateway/logging`,{body:{...t}})}},dw=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/gateway/pacfiles`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/gateway/pacfiles/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/gateway/pacfiles`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/gateway/pacfiles/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/gateway/pacfiles/${encodeURIComponent(e)}`)}},fw=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/gateway/proxy_endpoints`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/gateway/proxy_endpoints/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/gateway/proxy_endpoints`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/gateway/proxy_endpoints/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/gateway/proxy_endpoints/${encodeURIComponent(e)}`)}},pw=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/gateway/rules`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/gateway/rules/${encodeURIComponent(e)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/gateway/rules`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(t)}/gateway/rules/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/gateway/rules/${encodeURIComponent(e)}`)}async listTenant(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/gateway/rules/tenant`)}async resetExpiration(e,t){return this._client.post(`/accounts/${encodeURIComponent(t)}/gateway/rules/${encodeURIComponent(e)}/reset_expiration`)}},mw=class extends D{appTypes;auditSshSettings;categories;certificates;configurations;lists;locations;logging;pacfiles;proxyEndpoints;rules;constructor(e){super(e),this.appTypes=new tw(e),this.auditSshSettings=new nw(e),this.categories=new rw(e),this.certificates=new iw(e),this.configurations=new ow(e),this.lists=new cw(e),this.locations=new lw(e),this.logging=new uw(e),this.pacfiles=new dw(e),this.proxyEndpoints=new fw(e),this.rules=new pw(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/gateway`)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/gateway`)}},hw=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/access/groups`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/access/groups`,{body:{...t}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/access/groups/${encodeURIComponent(e)}`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/access/groups/${encodeURIComponent(e)}`)}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/access/groups/${encodeURIComponent(e)}`,{body:{...n}})}},gw=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/access/identity_providers/${encodeURIComponent(e)}/scim/groups`,{query:n})}},_w=class extends D{constructor(e){super(e)}async list(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/access/identity_providers/${encodeURIComponent(e)}/scim/users`,{query:n})}},vw=class extends D{groups;users;constructor(e){super(e),this.groups=new gw(e),this.users=new _w(e)}},yw=class extends D{scim;constructor(e){super(e),this.scim=new vw(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/identity_providers`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(t)}/access/identity_providers/${encodeURIComponent(e)}`)}async create(e){return this._client.post(`/accounts/${encodeURIComponent(e)}/access/identity_providers`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(t)}/access/identity_providers/${encodeURIComponent(e)}`)}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/access/identity_providers/${encodeURIComponent(e)}`)}},bw=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/zerotrust/routes/hostname`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/zerotrust/routes/hostname/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/zerotrust/routes/hostname`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/zerotrust/routes/hostname/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/zerotrust/routes/hostname/${encodeURIComponent(t)}`)}},xw=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(t)}/teamnet/routes/ip/${encodeURIComponent(e)}`,{query:n})}},Sw=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(t)}/teamnet/routes/network/${encodeURIComponent(e)}`,{body:{...n}})}async edit(e,t){return this._client.patch(`/accounts/${encodeURIComponent(t)}/teamnet/routes/network/${encodeURIComponent(e)}`)}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(t)}/teamnet/routes/network/${encodeURIComponent(e)}`,{query:n})}},Cw=class extends D{ips;networks;constructor(e){super(e),this.ips=new xw(e),this.networks=new Sw(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/teamnet/routes`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/teamnet/routes/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/teamnet/routes`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/teamnet/routes/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/teamnet/routes/${encodeURIComponent(e)}`)}},ww=class extends D{constructor(e){super(e)}async update(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/zerotrust/subnets/cloudflare_source/${encodeURIComponent(t)}`,{body:{...n}})}},Tw=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/zerotrust/subnets/warp`,{body:{...t}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/zerotrust/subnets/warp/${encodeURIComponent(t)}`)}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/zerotrust/subnets/warp/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/zerotrust/subnets/warp/${encodeURIComponent(t)}`)}},Ew=class extends D{cloudflareSource;warp;constructor(e){super(e),this.cloudflareSource=new ww(e),this.warp=new Tw(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/zerotrust/subnets`,{query:t})}},Dw=class extends D{constructor(e){super(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/teamnet/virtual_networks`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/teamnet/virtual_networks/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/teamnet/virtual_networks`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/teamnet/virtual_networks/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(t)}/teamnet/virtual_networks/${encodeURIComponent(e)}`)}},Ow=class extends D{hostnameRoutes;routes;subnets;virtualNetworks;constructor(e){super(e),this.hostnameRoutes=new bw(e),this.routes=new Cw(e),this.subnets=new Ew(e),this.virtualNetworks=new Dw(e)}},kw=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/organizations/doh`)}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/access/organizations/doh`,{body:{...t}})}},Aw=class extends D{doh;constructor(e){super(e),this.doh=new kw(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/access/organizations`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/access/organizations`,{body:{...t}})}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/access/organizations`,{body:{...t}})}async revokeUsers(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/access/organizations/revoke_user`,{body:{...t}})}},jw=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/profiles/custom`)}},Mw=class extends D{constructor(e){super(e)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/dlp/profiles/predefined`,{body:{...t}})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/profiles/predefined/${encodeURIComponent(t)}`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/dlp/profiles/predefined/${encodeURIComponent(t)}`,{body:{...n}})}},Nw=class extends D{custom;predefined;constructor(e){super(e),this.custom=new jw(e),this.predefined=new Mw(e)}},Pw=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/zt_risk_scoring/behaviors`)}async update(e){return this._client.put(`/accounts/${encodeURIComponent(e)}/zt_risk_scoring/behaviors`)}},Fw=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/zt_risk_scoring/integrations/reference_id/${encodeURIComponent(t)}`)}},Iw=class extends D{references;constructor(e){super(e),this.references=new Fw(e)}async list(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/zt_risk_scoring/integrations`)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/zt_risk_scoring/integrations/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/zt_risk_scoring/integrations`,{body:{...t}})}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/zt_risk_scoring/integrations/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/zt_risk_scoring/integrations/${encodeURIComponent(t)}`)}},Lw=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/zt_risk_scoring/summary`)}},Rw=class extends D{behaviours;integrations;summary;constructor(e){super(e),this.behaviours=new Pw(e),this.integrations=new Iw(e),this.summary=new Lw(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/zt_risk_scoring/${encodeURIComponent(t)}`)}async reset(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/zt_risk_scoring/${encodeURIComponent(t)}/reset`)}},zw=class extends D{constructor(e){super(e)}async edit(e,t){return this._client.patch(`/accounts/${encodeURIComponent(e)}/access/seats`,{body:t})}},Bw=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/access/service_tokens`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/access/service_tokens`,{body:{...t}})}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/access/service_tokens/${encodeURIComponent(e)}`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/access/service_tokens/${encodeURIComponent(e)}`)}async update(e,t,n){return this._client.put(`/zones/${encodeURIComponent(t)}/access/service_tokens/${encodeURIComponent(e)}`,{body:{...n}})}},Vw=class extends D{constructor(e){super(e)}async delete(e){return this._client.delete(`/accounts/${encodeURIComponent(e)}/dlp/settings`)}async get(e){return this._client.get(`/accounts/${encodeURIComponent(e)}/dlp/settings`)}async edit(e,t){return this._client.patch(`/accounts/${encodeURIComponent(e)}/dlp/settings`,{body:{...t}})}async update(e,t){return this._client.put(`/accounts/${encodeURIComponent(e)}/dlp/settings`,{body:{...t}})}},Hw=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cfd_tunnel/${encodeURIComponent(t)}/configurations`)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/cfd_tunnel/${encodeURIComponent(t)}/configurations`,{body:{...n}})}},Uw=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cfd_tunnel/${encodeURIComponent(t)}/connections`)}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cfd_tunnel/${encodeURIComponent(t)}/connections`,{query:n})}},Ww=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/cfd_tunnel/${encodeURIComponent(t)}/connectors/${encodeURIComponent(n)}`)}},Gw=class extends D{constructor(e){super(e)}async create(e,t,n){return this._client.post(`/accounts/${encodeURIComponent(e)}/cfd_tunnel/${encodeURIComponent(t)}/management`,{body:{...n}})}},Kw=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cfd_tunnel/${encodeURIComponent(t)}/token`)}},qw=class extends D{configurations;connections;connectors;management;token;constructor(e){super(e),this.configurations=new Hw(e),this.connections=new Uw(e),this.connectors=new Ww(e),this.management=new Gw(e),this.token=new Kw(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cfd_tunnel`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/cfd_tunnel/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/cfd_tunnel`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(t)}/cfd_tunnel/${encodeURIComponent(e)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/cfd_tunnel/${encodeURIComponent(t)}`)}},Jw=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/warp_connector/${encodeURIComponent(t)}/connections`)}},Yw=class extends D{constructor(e){super(e)}async get(e,t,n){return this._client.get(`/accounts/${encodeURIComponent(e)}/warp_connector/${encodeURIComponent(t)}/connectors/${encodeURIComponent(n)}`)}},Xw=class extends D{constructor(e){super(e)}async update(e,t,n){return this._client.put(`/accounts/${encodeURIComponent(e)}/warp_connector/${encodeURIComponent(t)}/failover`,{body:{...n}})}},Zw=class extends D{constructor(e){super(e)}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/warp_connector/${encodeURIComponent(t)}/token`)}},Qw=class extends D{connections;connectors;failover;token;constructor(e){super(e),this.connections=new Jw(e),this.connectors=new Yw(e),this.failover=new Xw(e),this.token=new Zw(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/warp_connector`,{query:t})}async get(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/warp_connector/${encodeURIComponent(t)}`)}async create(e,t){return this._client.post(`/accounts/${encodeURIComponent(e)}/warp_connector`,{body:{...t}})}async edit(e,t,n){return this._client.patch(`/accounts/${encodeURIComponent(e)}/warp_connector/${encodeURIComponent(t)}`,{body:{...n}})}async delete(e,t){return this._client.delete(`/accounts/${encodeURIComponent(e)}/warp_connector/${encodeURIComponent(t)}`)}},$w=class extends D{cloudflared;warpConnector;constructor(e){super(e),this.cloudflared=new qw(e),this.warpConnector=new Qw(e)}async list(e,t){return this._client.get(`/accounts/${encodeURIComponent(e)}/tunnels`,{query:t})}},eT=class extends D{constructor(e){super(e)}async delete(e,t,n){return this._client.delete(`/accounts/${encodeURIComponent(t)}/access/users/${encodeURIComponent(e)}/mfa_authenticators/${encodeURIComponent(n)}`)}},tT=class extends D{authenticators;constructor(e){super(e),this.authenticators=new eT(e)}},nT=class extends D{mfa;constructor(e){super(e),this.mfa=new tT(e)}},rT=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/access/identity_providers`)}async create(e){return this._client.post(`/zones/${encodeURIComponent(e)}/access/identity_providers`)}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(t)}/access/identity_providers/${encodeURIComponent(e)}`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/access/identity_providers/${encodeURIComponent(e)}`)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(t)}/access/identity_providers/${encodeURIComponent(e)}`)}},iT=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/access/organizations`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/access/organizations`,{body:{...t}})}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/access/organizations`,{body:{...t}})}async revokeUserCreate(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/access/organizations/revoke_user`,{body:{...t}})}},aT=class extends D{access;apps;certificates;connectivitySettings;devices;dex;dlp;documentFingerprints;gateway;groups;identityProviders;networks;organizations;profiles;riskScoring;seats;serviceTokens;settings;tunnels;users;zoneIdentityProviders;zoneOrganizations;constructor(e){super(e),this.access=new bS(e),this.apps=new NS(e),this.certificates=new FS(e),this.connectivitySettings=new IS(e),this.devices=new pC(e),this.dex=new AC(e),this.dlp=new JC(e),this.documentFingerprints=new ew(e),this.gateway=new mw(e),this.groups=new hw(e),this.identityProviders=new yw(e),this.networks=new Ow(e),this.organizations=new Aw(e),this.profiles=new Nw(e),this.riskScoring=new Rw(e),this.seats=new zw(e),this.serviceTokens=new Bw(e),this.settings=new Vw(e),this.tunnels=new $w(e),this.users=new nT(e),this.zoneIdentityProviders=new rT(e),this.zoneOrganizations=new iT(e)}},oT=class extends D{constructor(e){super(e)}async trigger(e){return this._client.put(`/zones/${encodeURIComponent(e)}/activation_check`)}},sT=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/settings/aegis`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/settings/aegis`,{body:{...t}})}},cT=class extends D{constructor(e){super(e)}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/custom_ns`,{body:{...t}})}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/custom_ns`)}},lT=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/environments`)}async edit(e){return this._client.patch(`/zones/${encodeURIComponent(e)}/environments`)}async create(e){return this._client.post(`/zones/${encodeURIComponent(e)}/environments`)}async update(e){return this._client.put(`/zones/${encodeURIComponent(e)}/environments`)}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/environments/${encodeURIComponent(t)}`)}async rollback(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/environments/${encodeURIComponent(t)}/rollback`)}},uT=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/settings/fonts`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/settings/fonts`,{body:{...t}})}},dT=class extends D{constructor(e){super(e)}async delete(e,t){return this._client.delete(`/zones/${encodeURIComponent(e)}/hold`,{query:t})}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/hold`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/hold`,{body:{...t}})}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/hold`,{query:t})}},fT=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/settings/origin_h2_max_streams`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/settings/origin_h2_max_streams`,{body:{...t}})}},pT=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/settings/origin_max_http_version`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/settings/origin_max_http_version`,{body:{...t}})}},mT=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/available_plans`)}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(t)}/available_plans/${encodeURIComponent(e)}`)}},hT=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/available_rate_plans`)}},gT=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/settings/rum`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/settings/rum`,{body:{...t}})}},_T=class extends D{constructor(e){super(e)}async list(e){return this._client.get(`/zones/${encodeURIComponent(e)}/settings`)}async bulkEdit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/settings`,{body:t})}async get(e,t){return this._client.get(`/zones/${encodeURIComponent(e)}/settings/${encodeURIComponent(t)}`)}async edit(e,t,n){return this._client.patch(`/zones/${encodeURIComponent(e)}/settings/${encodeURIComponent(t)}`,{body:{...n}})}},vT=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/settings/speed_brain`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}/settings/speed_brain`,{body:{...t}})}},yT=class extends D{constructor(e){super(e)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}/subscription`)}async create(e,t){return this._client.post(`/zones/${encodeURIComponent(e)}/subscription`,{body:{...t}})}async update(e,t){return this._client.put(`/zones/${encodeURIComponent(e)}/subscription`,{body:{...t}})}},bT=class extends D{activationCheck;aegis;customNameservers;environments;fonts;holds;originH2MaxStreams;originMaxHTTPVersion;plans;ratePlans;rum;settings;speedBrain;subscriptions;constructor(e){super(e),this.activationCheck=new oT(e),this.aegis=new sT(e),this.customNameservers=new cT(e),this.environments=new lT(e),this.fonts=new uT(e),this.holds=new dT(e),this.originH2MaxStreams=new fT(e),this.originMaxHTTPVersion=new pT(e),this.plans=new mT(e),this.ratePlans=new hT(e),this.rum=new gT(e),this.settings=new _T(e),this.speedBrain=new vT(e),this.subscriptions=new yT(e)}async list(e){return this._client.get(`/zones`,{query:e})}async create(e){return this._client.post(`/zones`,{body:{...e}})}async delete(e){return this._client.delete(`/zones/${encodeURIComponent(e)}`)}async get(e){return this._client.get(`/zones/${encodeURIComponent(e)}`)}async edit(e,t){return this._client.patch(`/zones/${encodeURIComponent(e)}`,{body:{...t}})}},xT=class extends De{abuseReports;accounts;acm;addressing;ai;aiGateway;aiSearch;alerting;analytics;apiGateway;argo;auditLogs;autorag;billing;botManagement;botnetFeed;brandProtection;browserRendering;builds;cache;calls;certificateAuthorities;clientCertificates;cloudConnector;cloudforceOne;connectivity;contentScanning;customCertificates;customHostnames;customNameservers;customPages;d1;dcvDelegation;diagnostics;dispatchNamespaces;dns;dnsFirewall;durableObjects;emailRouting;emailSecurity;emailSending;filters;firewall;fraud;googleTagGateway;healthchecks;hostnames;hyperdrive;iam;images;intel;ips;keylessCertificates;kv;leakedCredentialChecks;loadBalancers;logpush;logs;magicCloudNetworking;magicNetworkMonitoring;magicTransit;managedTransforms;mtlsCertificates;networkInterconnects;organizations;originCaCertificates;originPostQuantumEncryption;originTLSClientAuth;pageRules;pageShield;pages;pipelines;queues;r2;r2DataCatalog;radar;rateLimits;realtimeKit;registrar;requestTracers;resourceSharing;resourceTagging;rules;rulesets;rum;schemaValidation;scim;scm;secretsStore;securityCenter;securityTxt;smartShield;snippets;spectrum;speed;ssl;stream;tenants;tokenValidation;turnstile;urlNormalization;urlScanner;user;vectorize;vulnScanner;waitingRooms;web3;workers;workersBuilds;workflows;zaraz;zeroTrust;zones;constructor(e){super({apiVersion:`2026-05-12`,...e}),this.abuseReports=new Ae(this),this.accounts=new qe(this),this.acm=new Xe(this),this.addressing=new ft(this),this.ai=new oi(this),this.aiGateway=new mi(this),this.aiSearch=new Ai(this),this.alerting=new zi(this),this.analytics=new Wi(this),this.apiGateway=new fa(this),this.argo=new ha(this),this.auditLogs=new ga(this),this.autorag=new va(this),this.billing=new xa(this),this.botManagement=new Ca(this),this.botnetFeed=new Da(this),this.brandProtection=new Na(this),this.browserRendering=new Ya(this),this.builds=new Xa(this),this.cache=new to(this),this.calls=new io(this),this.certificateAuthorities=new oo(this),this.clientCertificates=new so(this),this.cloudConnector=new lo(this),this.cloudforceOne=new Ps(this),this.connectivity=new Ls(this),this.contentScanning=new Bs(this),this.customCertificates=new Hs(this),this.customHostnames=new Ks(this),this.customNameservers=new qs(this),this.customPages=new sc(this),this.d1=new lc(this),this.dcvDelegation=new uc(this),this.diagnostics=new pc(this),this.dispatchNamespaces=new xc(this),this.dns=new Uc(this),this.dnsFirewall=new Jc(this),this.durableObjects=new Zc(this),this.emailRouting=new cl(this),this.emailSecurity=new Vl(this),this.emailSending=new Gl(this),this.filters=new Kl(this),this.firewall=new ru(this),this.fraud=new iu(this),this.googleTagGateway=new ou(this),this.healthchecks=new cu(this),this.hostnames=new fu(this),this.hyperdrive=new pu(this),this.iam=new yu(this),this.images=new Ou(this),this.intel=new qu(this),this.ips=new Ju(this),this.keylessCertificates=new Yu(this),this.kv=new td(this),this.leakedCredentialChecks=new rd(this),this.loadBalancers=new hd(this),this.logpush=new Bd(this),this.logs=new Jd(this),this.magicCloudNetworking=new tf(this),this.magicNetworkMonitoring=new lf(this),this.magicTransit=new gp(this),this.managedTransforms=new _p(this),this.mtlsCertificates=new yp(this),this.networkInterconnects=new wp(this),this.organizations=new Np(this),this.originCaCertificates=new Pp(this),this.originPostQuantumEncryption=new Fp(this),this.originTLSClientAuth=new Vp(this),this.pageRules=new Up(this),this.pageShield=new Jp(this),this.pages=new em(this),this.pipelines=new rm(this),this.queues=new cm(this),this.r2=new Tm(this),this.r2DataCatalog=new jm(this),this.radar=new Rg(this),this.rateLimits=new zg(this),this.realtimeKit=new i_(this),this.registrar=new s_(this),this.requestTracers=new l_(this),this.resourceSharing=new f_(this),this.resourceTagging=new __(this),this.rules=new x_(this),this.rulesets=new N_(this),this.rum=new I_(this),this.schemaValidation=new H_(this),this.scim=new J_(this),this.scm=new Y_(this),this.secretsStore=new cv(this),this.securityCenter=new yv(this),this.securityTxt=new bv(this),this.smartShield=new Cv(this),this.snippets=new Ev(this),this.spectrum=new Pv(this),this.speed=new zv(this),this.ssl=new Jv(this),this.stream=new my(this),this.tenants=new yy(this),this.tokenValidation=new wy(this),this.turnstile=new Ey(this),this.urlNormalization=new Dy(this),this.urlScanner=new Iy(this),this.user=new sb(this),this.vectorize=new _b(this),this.vulnScanner=new vb(this),this.waitingRooms=new Eb(this),this.web3=new jb(this),this.workers=new bx(this),this.workersBuilds=new kx(this),this.workflows=new Px(this),this.zaraz=new Hx(this),this.zeroTrust=new aT(this),this.zones=new bT(this)}};const{white:ST,gray:CT,dim:wT,hidden:TT,bold:ET,cyanBright:DT,bgCyan:OT}=f;f.hex(`#BD5B08`);const kT=f.hex(`#111`);f.hex(`#0E838F`);const AT=kT.bgHex(`#0E838F`);f.hex(`#AB2526`);const jT=kT.bgHex(`#AB2526`);f.hex(`#218529`);const MT=kT.bgHex(`#218529`);f.hex(`#7F7322`);const NT=kT.bgHex(`#7F7322`),PT=e=>e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109,FT=e=>e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510,IT=e=>e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141,LT=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y,RT=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,zT=/\t{1,1000}/y,BT=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/uy,VT=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,HT=/\p{M}+/gu,UT={limit:1/0,ellipsis:``},WT=(e,t={},n={})=>{let r=t.limit??1/0,i=t.ellipsis??``,a=t?.ellipsisWidth??(i?WT(i,UT,n).width:0),o=n.ansiWidth??0,s=n.controlWidth??0,c=n.tabWidth??8,l=n.ambiguousWidth??1,u=n.emojiWidth??2,d=n.fullWidthWidth??2,f=n.regularWidth??1,p=n.wideWidth??2,m=0,h=0,g=e.length,_=0,v=!1,y=g,b=Math.max(0,r-a),x=0,ee=0,S=0,C=0;outer:for(;;){if(ee>x||h>=g&&h>m){let t=e.slice(x,ee)||e.slice(m,h);_=0;for(let e of t.replaceAll(HT,``)){let t=e.codePointAt(0)||0;if(C=FT(t)?d:IT(t)?p:l!==f&&PT(t)?l:f,S+C>b&&(y=Math.min(y,Math.max(x,m)+_)),S+C>r){v=!0;break outer}_+=e.length,S+=C}x=ee=0}if(h>=g)break;if(VT.lastIndex=h,VT.test(e)){if(_=VT.lastIndex-h,C=_*f,S+C>b&&(y=Math.min(y,h+Math.floor((b-S)/f))),S+C>r){v=!0;break}S+=C,x=m,ee=h,h=m=VT.lastIndex;continue}if(LT.lastIndex=h,LT.test(e)){if(S+o>b&&(y=Math.min(y,h)),S+o>r){v=!0;break}S+=o,x=m,ee=h,h=m=LT.lastIndex;continue}if(RT.lastIndex=h,RT.test(e)){if(_=RT.lastIndex-h,C=_*s,S+C>b&&(y=Math.min(y,h+Math.floor((b-S)/s))),S+C>r){v=!0;break}S+=C,x=m,ee=h,h=m=RT.lastIndex;continue}if(zT.lastIndex=h,zT.test(e)){if(_=zT.lastIndex-h,C=_*c,S+C>b&&(y=Math.min(y,h+Math.floor((b-S)/c))),S+C>r){v=!0;break}S+=C,x=m,ee=h,h=m=zT.lastIndex;continue}if(BT.lastIndex=h,BT.test(e)){if(S+u>b&&(y=Math.min(y,h)),S+u>r){v=!0;break}S+=u,x=m,ee=h,h=m=BT.lastIndex;continue}h+=1}return{width:v?b:S,index:v?y:g,truncated:v,ellipsed:v&&r>=a}},GT={limit:1/0,ellipsis:``,ellipsisWidth:0},KT=(e,t={})=>WT(e,GT,t).width,qT=`]8;;`,JT=RegExp(`(?:\\[(?<code>\\d+)m|\\${qT}(?<uri>.*))`,`y`),YT=e=>{if(e>=30&&e<=37||e>=90&&e<=97)return 39;if(e>=40&&e<=47||e>=100&&e<=107)return 49;if(e===1||e===2)return 22;if(e===3)return 23;if(e===4)return 24;if(e===7)return 27;if(e===8)return 28;if(e===9)return 29;if(e===0)return 0},XT=e=>`[${e}m`,ZT=e=>`${qT}${e}`,QT=(e,t,n)=>{let r=t[Symbol.iterator](),i=!1,a=!1,o=e.at(-1),s=o===void 0?0:KT(o),c=r.next(),l=r.next(),u=0;for(;!c.done;){let o=c.value,d=KT(o);s+d<=n?e[e.length-1]+=o:(e.push(o),s=0),(o===`\x1B`||o===``)&&(i=!0,a=t.startsWith(qT,u+1)),i?a?o===`\x07`&&(i=!1,a=!1):o===`m`&&(i=!1):(s+=d,s===n&&!l.done&&(e.push(``),s=0)),c=l,l=r.next(),u+=o.length}o=e.at(-1),!s&&o!==void 0&&o.length&&e.length>1&&(e[e.length-2]+=e.pop())},$T=e=>{let t=e.split(` `),n=t.length;for(;n&&!KT(t[n-1]);)n--;return n===t.length?e:t.slice(0,n).join(` `)+t.slice(n).join(``)},eE=(e,t,n={})=>{if(n.trim!==!1&&e.trim()===``)return``;let r=``,i,a,o=e.split(` `),s=[``],c=0;for(let e=0;e<o.length;e++){let r=o[e];if(n.trim!==!1){let e=s.at(-1)??``,t=e.trimStart();e.length!==t.length&&(s[s.length-1]=t,c=KT(t))}e!==0&&(c>=t&&(n.wordWrap===!1||n.trim===!1)&&(s.push(``),c=0),(c||n.trim===!1)&&(s[s.length-1]+=` `,c++));let i=KT(r);if(n.hard&&i>t){let e=t-c,n=1+Math.floor((i-e-1)/t);Math.floor((i-1)/t)<n&&s.push(``),QT(s,r,t),c=KT(s.at(-1)??``);continue}if(c+i>t&&c&&i){if(n.wordWrap===!1&&c<t){QT(s,r,t),c=KT(s.at(-1)??``);continue}s.push(``),c=0}if(c+i>t&&n.wordWrap===!1){QT(s,r,t),c=KT(s.at(-1)??``);continue}s[s.length-1]+=r,c+=i}n.trim!==!1&&(s=s.map(e=>$T(e)));let l=s.join(`
|
|
3
|
-
`),u=!1;for(let e=0;e<l.length;e++){let t=l[e];if(r+=t,!u)u=t>=`\ud800`&&t<=`\udbff`;else continue;if(t===`\x1B`||t===``){JT.lastIndex=e+1;let t=JT.exec(l)?.groups;if(t?.code!==void 0){let e=Number.parseFloat(t.code);i=e===39?void 0:e}else t?.uri!==void 0&&(a=t.uri.length===0?void 0:t.uri)}if(l[e+1]===`
|
|
4
|
-
`){a&&(r+=ZT(``));let e=i?YT(i):void 0;i&&e&&(r+=XT(e))}else t===`
|
|
5
|
-
`&&(i&&YT(i)&&(r+=XT(i)),a&&(r+=ZT(a)))}return r},tE=/\r?\n/;function nE(e,t,n){return String(e).normalize().split(tE).map(e=>eE(e,t,n)).join(`
|
|
6
|
-
`)}var O=n(((e,t)=>{let n={to(e,t){return t?`[${t+1};${e+1}H`:`[${e+1}G`},move(e,t){let n=``;return e<0?n+=`[${-e}D`:e>0&&(n+=`[${e}C`),t<0?n+=`[${-t}A`:t>0&&(n+=`[${t}B`),n},up:(e=1)=>`[${e}A`,down:(e=1)=>`[${e}B`,forward:(e=1)=>`[${e}C`,backward:(e=1)=>`[${e}D`,nextLine:(e=1)=>`\x1B[E`.repeat(e),prevLine:(e=1)=>`\x1B[F`.repeat(e),left:`\x1B[G`,hide:`\x1B[?25l`,show:`\x1B[?25h`,save:`\x1B7`,restore:`\x1B8`};t.exports={cursor:n,scroll:{up:(e=1)=>`\x1B[S`.repeat(e),down:(e=1)=>`\x1B[T`.repeat(e)},erase:{screen:`\x1B[2J`,up:(e=1)=>`\x1B[1J`.repeat(e),down:(e=1)=>`\x1B[J`.repeat(e),line:`\x1B[2K`,lineEnd:`\x1B[K`,lineStart:`\x1B[1K`,lines(e){let t=``;for(let r=0;r<e;r++)t+=this.line+(r<e-1?n.up():``);return e&&(t+=n.left),t}},beep:`\x07`}}))();function rE(e,t,n){if(!n.some(e=>!e.disabled))return e;let r=e+t,i=Math.max(n.length-1,0),a=r<0?i:r>i?0:r;return n[a].disabled?rE(a,t<0?-1:1,n):a}const iE={actions:new Set([`up`,`down`,`left`,`right`,`space`,`enter`,`cancel`]),aliases:new Map([[`k`,`up`],[`j`,`down`],[`h`,`left`],[`l`,`right`],[``,`cancel`],[`escape`,`cancel`]]),messages:{cancel:`Canceled`,error:`Something went wrong`},withGuide:!0,date:{monthNames:[...[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]],messages:{required:`Please enter a valid date`,invalidMonth:`There are only 12 months in a year`,invalidDay:(e,t)=>`There are only ${e} days in ${t}`,afterMin:e=>`Date must be on or after ${e.toISOString().slice(0,10)}`,beforeMax:e=>`Date must be on or before ${e.toISOString().slice(0,10)}`}}};function aE(e,t){if(typeof e==`string`)return iE.aliases.get(e)===t;for(let n of e)if(n!==void 0&&aE(n,t))return!0;return!1}function oE(e,t){if(e===t)return;let n=e.split(`
|
|
7
|
-
`),r=t.split(`
|
|
8
|
-
`),i=Math.max(n.length,r.length),a=[];for(let e=0;e<i;e++)n[e]!==r[e]&&a.push(e);return{lines:a,numLinesBefore:n.length,numLinesAfter:r.length,numLines:i}}const sE=globalThis.process.platform.startsWith(`win`),cE=Symbol(`clack:cancel`);function lE(e){return e===cE}function uE(e,t){let n=e;n.isTTY&&n.setRawMode(t)}function dE({input:e=se,output:t=ce,overwrite:n=!0,hideCursor:r=!0}={}){let i=ve.createInterface({input:e,output:t,prompt:``,tabSize:1});ve.emitKeypressEvents(e,i),e instanceof fe&&e.isTTY&&e.setRawMode(!0);let a=(i,{name:o,sequence:s})=>{if(aE([String(i),o,s],`cancel`)){r&&t.write(O.cursor.show),process.exit(0);return}if(!n)return;let c=o===`return`?0:-1,l=o===`return`?-1:0;ve.moveCursor(t,c,l,()=>{ve.clearLine(t,1,()=>{e.once(`keypress`,a)})})};return r&&t.write(O.cursor.hide),e.once(`keypress`,a),()=>{e.off(`keypress`,a),r&&t.write(O.cursor.show),e instanceof fe&&e.isTTY&&!sE&&e.setRawMode(!1),i.terminal=!1,i.close()}}const fE=e=>`columns`in e&&typeof e.columns==`number`?e.columns:80,pE=e=>`rows`in e&&typeof e.rows==`number`?e.rows:20;function mE(e,t,n,r=n){return nE(t,fE(e??ce)-n.length,{hard:!0,trim:!1}).split(`
|
|
9
|
-
`).map((e,t)=>`${t===0?r:n}${e}`).join(`
|
|
10
|
-
`)}let hE=class{input;output;_abortSignal;rl;opts;_render;_track=!1;_prevFrame=``;_subscribers=new Map;_cursor=0;state=`initial`;error=``;value;userInput=``;constructor(e,t=!0){let{input:n=se,output:r=ce,render:i,signal:a,...o}=e;this.opts=o,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=i.bind(this),this._track=t,this._abortSignal=a,this.input=n,this.output=r}unsubscribe(){this._subscribers.clear()}setSubscriber(e,t){let n=this._subscribers.get(e)??[];n.push(t),this._subscribers.set(e,n)}on(e,t){this.setSubscriber(e,{cb:t})}once(e,t){this.setSubscriber(e,{cb:t,once:!0})}emit(e,...t){let n=this._subscribers.get(e)??[],r=[];for(let e of n)e.cb(...t),e.once&&r.push(()=>n.splice(n.indexOf(e),1));for(let e of r)e()}prompt(){return new Promise(e=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state=`cancel`,this.close(),e(cE);this._abortSignal.addEventListener(`abort`,()=>{this.state=`cancel`,this.close()},{once:!0})}this.rl=ye.createInterface({input:this.input,tabSize:2,prompt:``,escapeCodeTimeout:50,terminal:!0}),this.rl.prompt(),this.opts.initialUserInput!==void 0&&this._setUserInput(this.opts.initialUserInput,!0),this.input.on(`keypress`,this.onKeypress),uE(this.input,!0),this.output.on(`resize`,this.render),this.render(),this.once(`submit`,()=>{this.output.write(O.cursor.show),this.output.off(`resize`,this.render),uE(this.input,!1),e(this.value)}),this.once(`cancel`,()=>{this.output.write(O.cursor.show),this.output.off(`resize`,this.render),uE(this.input,!1),e(cE)})})}_isActionKey(e,t){return e===` `}_setValue(e){this.value=e,this.emit(`value`,this.value)}_setUserInput(e,t){this.userInput=e??``,this.emit(`userInput`,this.userInput),t&&this._track&&this.rl&&(this.rl.write(this.userInput),this._cursor=this.rl.cursor)}_clearUserInput(){this.rl?.write(null,{ctrl:!0,name:`u`}),this._setUserInput(``)}onKeypress(e,t){if(this._track&&t.name!==`return`&&(t.name&&this._isActionKey(e,t)&&this.rl?.write(null,{ctrl:!0,name:`h`}),this._cursor=this.rl?.cursor??0,this._setUserInput(this.rl?.line)),this.state===`error`&&(this.state=`active`),t?.name&&(!this._track&&iE.aliases.has(t.name)&&this.emit(`cursor`,iE.aliases.get(t.name)),iE.actions.has(t.name)&&this.emit(`cursor`,t.name)),e&&(e.toLowerCase()===`y`||e.toLowerCase()===`n`)&&this.emit(`confirm`,e.toLowerCase()===`y`),this.emit(`key`,e?.toLowerCase(),t),t?.name===`return`){if(this.opts.validate){let e=this.opts.validate(this.value);e&&(this.error=e instanceof Error?e.message:e,this.state=`error`,this.rl?.write(this.userInput))}this.state!==`error`&&(this.state=`submit`)}aE([e,t?.name,t?.sequence],`cancel`)&&(this.state=`cancel`),(this.state===`submit`||this.state===`cancel`)&&this.emit(`finalize`),this.render(),(this.state===`submit`||this.state===`cancel`)&&this.close()}close(){this.input.unpipe(),this.input.removeListener(`keypress`,this.onKeypress),this.output.write(`
|
|
11
|
-
`),uE(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let e=nE(this._prevFrame,process.stdout.columns,{hard:!0,trim:!1}).split(`
|
|
12
|
-
`).length-1;this.output.write(O.cursor.move(-999,e*-1))}render(){let e=nE(this._render(this)??``,process.stdout.columns,{hard:!0,trim:!1});if(e!==this._prevFrame){if(this.state===`initial`)this.output.write(O.cursor.hide);else{let t=oE(this._prevFrame,e),n=pE(this.output);if(this.restoreCursor(),t){let r=Math.max(0,t.numLinesAfter-n),i=Math.max(0,t.numLinesBefore-n),a=t.lines.find(e=>e>=r);if(a===void 0){this._prevFrame=e;return}if(t.lines.length===1){this.output.write(O.cursor.move(0,a-i)),this.output.write(O.erase.lines(1));let t=e.split(`
|
|
13
|
-
`);this.output.write(t[a]),this._prevFrame=e,this.output.write(O.cursor.move(0,t.length-a-1));return}else if(t.lines.length>1){if(r<i)a=r;else{let e=a-i;e>0&&this.output.write(O.cursor.move(0,e))}this.output.write(O.erase.down());let t=e.split(`
|
|
14
|
-
`).slice(a);this.output.write(t.join(`
|
|
15
|
-
`)),this._prevFrame=e;return}}this.output.write(O.erase.down())}this.output.write(e),this.state===`initial`&&(this.state=`active`),this._prevFrame=e}}};var gE=class extends hE{get cursor(){return+!this.value}get _value(){return this.cursor===0}constructor(e){super(e,!1),this.value=!!e.initialValue,this.on(`userInput`,()=>{this.value=this._value}),this.on(`confirm`,e=>{this.output.write(O.cursor.move(0,-1)),this.value=e,this.state=`submit`,this.close()}),this.on(`cursor`,()=>{this.value=!this.value})}},_E=class extends hE{_mask=`•`;get cursor(){return this._cursor}get masked(){return this.userInput.replaceAll(/./g,this._mask)}get userInputWithCursor(){if(this.state===`submit`||this.state===`cancel`)return this.masked;let e=this.userInput;if(this.cursor>=e.length)return`${this.masked}${w([`inverse`,`hidden`],`_`)}`;let t=this.masked,n=t.slice(0,this.cursor),r=t.slice(this.cursor);return`${n}${w(`inverse`,r[0])}${r.slice(1)}`}clear(){this._clearUserInput()}constructor({mask:e,...t}){super(t),this._mask=e??`•`,this.on(`userInput`,e=>{this._setValue(e)})}},vE=class extends hE{options;cursor=0;get _selectedValue(){return this.options[this.cursor]}changeValue(){this.value=this._selectedValue.value}constructor(e){super(e,!1),this.options=e.options;let t=this.options.findIndex(({value:t})=>t===e.initialValue),n=t===-1?0:t;this.cursor=this.options[n].disabled?rE(n,1,this.options):n,this.changeValue(),this.on(`cursor`,e=>{switch(e){case`left`:case`up`:this.cursor=rE(this.cursor,-1,this.options);break;case`down`:case`right`:this.cursor=rE(this.cursor,1,this.options);break}this.changeValue()})}},yE=class extends hE{get userInputWithCursor(){if(this.state===`submit`)return this.userInput;let e=this.userInput;if(this.cursor>=e.length)return`${this.userInput}\u2588`;let t=e.slice(0,this.cursor),[n,...r]=e.slice(this.cursor);return`${t}${w(`inverse`,n)}${r.join(``)}`}get cursor(){return this._cursor}constructor(e){super({...e,initialUserInput:e.initialUserInput??e.initialValue}),this.on(`userInput`,e=>{this._setValue(e)}),this.on(`finalize`,()=>{this.value||=e.defaultValue,this.value===void 0&&(this.value=``)})}};const bE=process.stdout;process.stderr;var xE=`cf:service=`,SE=`cf:environment=`,CE=`.wrangler/deploy/config.json`,wE=Object.create,TE=Object.defineProperty,EE=Object.getOwnPropertyDescriptor,DE=Object.getOwnPropertyNames,OE=Object.getPrototypeOf,kE=Object.prototype.hasOwnProperty,k=(e,t)=>TE(e,`name`,{value:t,configurable:!0}),AE=t===void 0?y(import.meta.url):t,jE=(e,t)=>function(){return t||(0,e[DE(e)[0]])((t={exports:{}}).exports,t),t.exports},ME=(e,t)=>{for(var n in t)TE(e,n,{get:t[n],enumerable:!0})},NE=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of DE(t))!kE.call(e,i)&&i!==n&&TE(e,i,{get:()=>t[i],enumerable:!(r=EE(t,i))||r.enumerable});return e},PE=(e,t,n)=>(NE(e,t,`default`),n&&NE(n,t,`default`)),FE=(e,t,n)=>(n=e==null?{}:wE(OE(e)),NE(t||!e||!e.__esModule?TE(n,`default`,{value:e,enumerable:!0}):n,e));function IE(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)}k(IE,`isCompatDate`);function LE(e){let t=e.toISOString().slice(0,10);return be(IE(t)),t}k(LE,`formatCompatibilityDate`);function RE(){return LE(new Date)}k(RE,`getTodaysCompatDate`);function zE(e){}k(zE,`assertNever`);function BE(e){return e.filter(e=>e.type!==`secret_text`).reduce((e,t)=>{switch(t.type){case`plain_text`:e.vars={...e.vars??{},[t.name]:t.text};break;case`json`:e.vars={...e.vars??{},name:t.name,json:t.json};break;case`kv_namespace`:e.kv_namespaces=[...e.kv_namespaces??[],{id:t.namespace_id,binding:t.name}];break;case`durable_object_namespace`:e.durable_objects={bindings:[...e.durable_objects?.bindings??[],{name:t.name,class_name:t.class_name,script_name:t.script_name,environment:t.environment}]};break;case`d1`:e.d1_databases=[...e.d1_databases??[],{binding:t.name,database_id:t.id}];break;case`browser`:e.browser={binding:t.name};break;case`ai`:e.ai={binding:t.name};break;case`images`:e.images={binding:t.name};break;case`stream`:e.stream={binding:t.name};break;case`media`:e.media={binding:t.name};break;case`r2_bucket`:e.r2_buckets=[...e.r2_buckets??[],{binding:t.name,bucket_name:t.bucket_name,jurisdiction:t.jurisdiction}];break;case`secrets_store_secret`:e.secrets_store_secrets=[...e.secrets_store_secrets??[],{binding:t.name,store_id:t.store_id,secret_name:t.secret_name}];break;case`artifacts`:e.artifacts=[...e.artifacts??[],{binding:t.name,namespace:t.namespace}];break;case`unsafe_hello_world`:e.unsafe_hello_world=[...e.unsafe_hello_world??[],{binding:t.name,enable_timer:t.enable_timer}];break;case`flagship`:e.flagship=[...e.flagship??[],{binding:t.name,app_id:t.app_id}];break;case`service`:e.services=[...e.services??[],{binding:t.name,service:t.service,environment:t.environment,entrypoint:t.entrypoint}];break;case`analytics_engine`:e.analytics_engine_datasets=[...e.analytics_engine_datasets??[],{binding:t.name,dataset:t.dataset}];break;case`dispatch_namespace`:e.dispatch_namespaces=[...e.dispatch_namespaces??[],{binding:t.name,namespace:t.namespace,...t.outbound&&{outbound:{service:t.outbound.worker.service,environment:t.outbound.worker.environment,parameters:t.outbound.params?.map(e=>e.name)??[]}}}];break;case`logfwdr`:e.logfwdr={bindings:[...e.logfwdr?.bindings??[],{name:t.name,destination:t.destination}]};break;case`wasm_module`:e.wasm_modules={...e.wasm_modules??{},[t.name]:t.part};break;case`text_blob`:e.text_blobs={...e.text_blobs??{},[t.name]:t.part};break;case`data_blob`:e.data_blobs={...e.data_blobs??{},[t.name]:t.part};break;case`secret_text`:break;case`version_metadata`:e.version_metadata={binding:t.name};break;case`send_email`:e.send_email=[...e.send_email??[],{name:t.name,destination_address:t.destination_address,allowed_destination_addresses:t.allowed_destination_addresses,allowed_sender_addresses:t.allowed_sender_addresses}];break;case`queue`:e.queues??={producers:[]},e.queues.producers=[...e.queues.producers??[],{binding:t.name,queue:t.queue_name,delivery_delay:t.delivery_delay}];break;case`vectorize`:e.vectorize=[...e.vectorize??[],{binding:t.name,index_name:t.index_name}];break;case`ai_search_namespace`:e.ai_search_namespaces=[...e.ai_search_namespaces??[],{binding:t.name,namespace:t.namespace}];break;case`ai_search`:e.ai_search=[...e.ai_search??[],{binding:t.name,instance_name:t.instance_name}];break;case`hyperdrive`:e.hyperdrive=[...e.hyperdrive??[],{binding:t.name,id:t.id}];break;case`mtls_certificate`:e.mtls_certificates=[...e.mtls_certificates??[],{binding:t.name,certificate_id:t.certificate_id}];break;case`pipelines`:e.pipelines=[...e.pipelines??[],{binding:t.name,pipeline:t.pipeline}];break;case`assets`:e.assets={binding:t.name};break;case`inherit`:e.unsafe={bindings:[...e.unsafe?.bindings??[],t],metadata:e.unsafe?.metadata??void 0};break;case`workflow`:e.workflows=[...e.workflows??[],{binding:t.name,name:t.workflow_name,class_name:t.class_name,script_name:t.script_name}];break;case`worker_loader`:e.worker_loaders=[...e.worker_loaders??[],{binding:t.name}];break;case`ratelimit`:e.ratelimits=[...e.ratelimits??[],{name:t.name,namespace_id:t.namespace_id,simple:{limit:t.simple.limit,period:t.simple.period}}];break;case`vpc_service`:e.vpc_services=[...e.vpc_services??[],{binding:t.name,service_id:t.service_id}];break;case`vpc_network`:t.tunnel_id===void 0?t.network_id!==void 0&&(e.vpc_networks=[...e.vpc_networks??[],{binding:t.name,network_id:t.network_id}]):e.vpc_networks=[...e.vpc_networks??[],{binding:t.name,tunnel_id:t.tunnel_id}];break;default:e.unsafe={bindings:[...e.unsafe?.bindings??[],t],metadata:e.unsafe?.metadata??void 0}}return e},{})}k(BE,`mapWorkerMetadataBindings`);function VE(e){let t=BE(e.bindings),n=e.bindings.filter(t=>t.type===`durable_object_namespace`&&t.script_name===e.name).map(e=>e.class_name),r=[...e.routes.map(e=>({pattern:e.pattern,zone_name:e.zone_name})),...e.domains.map(e=>({pattern:e.hostname,zone_name:e.zone_name,custom_domain:!0,enabled:e.enabled,previews_enabled:e.previews_enabled}))];return{name:e.name,main:e.entrypoint,workers_dev:e.subdomain.enabled,preview_urls:e.subdomain.previews_enabled,compatibility_date:e.compatibility_date??RE(),compatibility_flags:e.compatibility_flags,...r.length?{routes:r}:{},placement:e.placement?.mode===`smart`?{mode:`smart`}:void 0,limits:e.limits,...n.length&&e.migration_tag?{migrations:[{tag:e.migration_tag,new_classes:n}]}:{},...e.schedules.length?{triggers:{crons:e.schedules.map(e=>e.cron)}}:{},tail_consumers:e.tail_consumers??void 0,observability:e.observability,...t}}k(VE,`convertWorkerToWranglerConfig`);function HE(e){let t;t=Array.isArray(e)?e:[e];let n=t.find(e=>!e.tags?.some(e=>e.startsWith(SE))),r=n?.name??t[0].name,i=n?.entrypoint??t[0].entrypoint,a;a=n?VE(n):{name:r,main:i};for(let e of t){let t=e.tags?.find(e=>e===`${xE}${r}`),n=e.tags?.find(e=>e.startsWith(SE));if(t!==`cf:service=${r}`||n===void 0)continue;let[i,o]=n.split(`=`);a.env??={},a.env[o]=VE(e)}return a}k(HE,`constructWranglerConfig`),class{static{k(this,`MetricsRegistry`)}counters=[];createCounter(e,t){let n={name:e,help:t,value:0};return this.counters.push(n),{inc:k(()=>{n.value++},`inc`),add:k(e=>{if(e<0)throw Error(`Counter value cannot decrease`);n.value+=e},`add`)}}metrics(){return this.counters.map(e=>{let t=``;return e.help.length>0&&(t+=`# HELP ${e.name} ${e.help}
|
|
16
|
-
`),t+=`# TYPE ${e.name} counter
|
|
17
|
-
`,t+=`${e.name} ${e.value}
|
|
18
|
-
`,t}).join(``)}};var A=class extends Error{static{k(this,`UserError`)}telemetryMessage;constructor(e,t){super(e,t),Object.setPrototypeOf(this,new.target.prototype),this.telemetryMessage=t?.telemetryMessage===!0?e:t?.telemetryMessage}};(class extends A{static{k(this,`DeprecationError`)}constructor(e,t){super(`Deprecation:
|
|
19
|
-
${e}`,t)}});var UE=class extends A{constructor(e,t,n){super(e,n),this.code=t}static{k(this,`FatalError`)}};(class extends A{static{k(this,`CommandLineArgsError`)}});var WE=class extends UE{constructor(e,t,n){super(e,t,n),this.code=t}static{k(this,`JsonFriendlyFatalError`)}};(class extends Error{static{k(this,`MissingConfigError`)}telemetryMessage;constructor(e){super(`Missing config value for ${e}`),this.telemetryMessage=`Missing config value for ${e}`}});function GE(e,t,n,r){return t?new WE(JSON.stringify(e),n,r):new UE(`${e}`,n,r)}k(GE,`createFatalError`);function KE(e,t=!1){let n=e.length,r=0,i=``,a=0,o=16,s=0,c=0,l=0,u=0,d=0;function f(t,n){let i=0,a=0;for(;i<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)a=a*16+t-48;else if(t>=65&&t<=70)a=a*16+t-65+10;else if(t>=97&&t<=102)a=a*16+t-97+10;else break;r++,i++}return i<t&&(a=-1),a}k(f,`scanHexDigits`);function p(e){r=e,i=``,a=0,o=16,d=0}k(p,`setPosition`);function m(){let t=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&YE(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&YE(e.charCodeAt(r)))for(r++;r<e.length&&YE(e.charCodeAt(r));)r++;else return d=3,e.substring(t,r);let n=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&YE(e.charCodeAt(r))){for(r++;r<e.length&&YE(e.charCodeAt(r));)r++;n=r}else d=3;return e.substring(t,n)}k(m,`scanNumber`);function h(){let t=``,i=r;for(;;){if(r>=n){t+=e.substring(i,r),d=2;break}let a=e.charCodeAt(r);if(a===34){t+=e.substring(i,r),r++;break}if(a===92){if(t+=e.substring(i,r),r++,r>=n){d=2;break}switch(e.charCodeAt(r++)){case 34:t+=`"`;break;case 92:t+=`\\`;break;case 47:t+=`/`;break;case 98:t+=`\b`;break;case 102:t+=`\f`;break;case 110:t+=`
|
|
20
|
-
`;break;case 114:t+=`\r`;break;case 116:t+=` `;break;case 117:let e=f(4,!0);e>=0?t+=String.fromCharCode(e):d=4;break;default:d=5}i=r;continue}if(a>=0&&a<=31)if(JE(a)){t+=e.substring(i,r),d=2;break}else d=6;r++}return t}k(h,`scanString`);function g(){if(i=``,d=0,a=r,c=s,u=l,r>=n)return a=n,o=17;let t=e.charCodeAt(r);if(qE(t)){do r++,i+=String.fromCharCode(t),t=e.charCodeAt(r);while(qE(t));return o=15}if(JE(t))return r++,i+=String.fromCharCode(t),t===13&&e.charCodeAt(r)===10&&(r++,i+=`
|
|
21
|
-
`),s++,l=r,o=14;switch(t){case 123:return r++,o=1;case 125:return r++,o=2;case 91:return r++,o=3;case 93:return r++,o=4;case 58:return r++,o=6;case 44:return r++,o=5;case 34:return r++,i=h(),o=10;case 47:let c=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!JE(e.charCodeAt(r));)r++;return i=e.substring(c,r),o=12}if(e.charCodeAt(r+1)===42){r+=2;let t=n-1,a=!1;for(;r<t;){let t=e.charCodeAt(r);if(t===42&&e.charCodeAt(r+1)===47){r+=2,a=!0;break}r++,JE(t)&&(t===13&&e.charCodeAt(r)===10&&r++,s++,l=r)}return a||(r++,d=1),i=e.substring(c,r),o=13}return i+=String.fromCharCode(t),r++,o=16;case 45:if(i+=String.fromCharCode(t),r++,r===n||!YE(e.charCodeAt(r)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=m(),o=11;default:for(;r<n&&_(t);)r++,t=e.charCodeAt(r);if(a!==r){switch(i=e.substring(a,r),i){case`true`:return o=8;case`false`:return o=9;case`null`:return o=7}return o=16}return i+=String.fromCharCode(t),r++,o=16}}k(g,`scanNext`);function _(e){if(qE(e)||JE(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}k(_,`isUnknownContentCharacter`);function v(){let e;do e=g();while(e>=12&&e<=15);return e}return k(v,`scanNextNonTrivia`),{setPosition:p,getPosition:k(()=>r,`getPosition`),scan:t?v:g,getToken:k(()=>o,`getToken`),getTokenValue:k(()=>i,`getTokenValue`),getTokenOffset:k(()=>a,`getTokenOffset`),getTokenLength:k(()=>r-a,`getTokenLength`),getTokenStartLine:k(()=>c,`getTokenStartLine`),getTokenStartCharacter:k(()=>a-u,`getTokenStartCharacter`),getTokenError:k(()=>d,`getTokenError`)}}k(KE,`createScanner`);function qE(e){return e===32||e===9}k(qE,`isWhiteSpace`);function JE(e){return e===10||e===13}k(JE,`isLineBreak`);function YE(e){return e>=48&&e<=57}k(YE,`isDigit`);var XE;(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`})(XE||={});function ZE(e,t,n){let r,i,a,o,s;if(t){for(o=t.offset,s=o+t.length,a=o;a>0&&!tD(e,a-1);)a--;let c=s;for(;c<e.length&&!tD(e,c);)c++;i=e.substring(a,c),r=$E(i,n)}else i=e,r=0,a=0,o=0,s=e.length;let c=eD(n,e),l=0,u=0,d;d=n.insertSpaces?QE(` `,n.tabSize||4):` `;let f=KE(i,!1),p=!1;function m(){return l>1?QE(c,l)+QE(d,r+u):c+QE(d,r+u)}k(m,`newLinesAndIndent`);function h(){let e=f.scan();for(l=0;e===15||e===14;)e===14&&n.keepLines?l+=1:e===14&&(l=1),e=f.scan();return p=e===16||f.getTokenError()!==0,e}k(h,`scanNext`);let g=[];function _(n,r,i){!p&&(!t||r<s&&i>o)&&e.substring(r,i)!==n&&g.push({offset:r,length:i-r,content:n})}k(_,`addEdit`);let v=h();if(n.keepLines&&l>0&&_(QE(c,l),0,0),v!==17){let e=f.getTokenOffset()+a;_(QE(d,r),a,e)}for(;v!==17;){let e=f.getTokenOffset()+f.getTokenLength()+a,t=h(),r=``,i=!1;for(;l===0&&(t===12||t===13);){let n=f.getTokenOffset()+a;_(` `,e,n),e=f.getTokenOffset()+f.getTokenLength()+a,i=t===12,r=i?m():``,t=h()}if(t===2)v!==1&&u--,n.keepLines&&l>0||!n.keepLines&&v!==1?r=m():n.keepLines&&(r=` `);else if(t===4)v!==3&&u--,n.keepLines&&l>0||!n.keepLines&&v!==3?r=m():n.keepLines&&(r=` `);else{switch(v){case 3:case 1:u++,r=n.keepLines&&l>0||!n.keepLines?m():` `;break;case 5:r=n.keepLines&&l>0||!n.keepLines?m():` `;break;case 12:r=m();break;case 13:l>0?r=m():i||(r=` `);break;case 6:n.keepLines&&l>0?r=m():i||(r=` `);break;case 10:n.keepLines&&l>0?r=m():t===6&&!i&&(r=``);break;case 7:case 8:case 9:case 11:case 2:case 4:n.keepLines&&l>0?r=m():(t===12||t===13)&&!i?r=` `:t!==5&&t!==17&&(p=!0);break;case 16:p=!0;break}l>0&&(t===12||t===13)&&(r=m())}t===17&&(r=n.keepLines&&l>0?m():n.insertFinalNewline?c:``);let o=f.getTokenOffset()+a;_(r,e,o),v=t}return g}k(ZE,`format`);function QE(e,t){let n=``;for(let r=0;r<t;r++)n+=e;return n}k(QE,`repeat`);function $E(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)}k($E,`computeIndentLevel`);function eD(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)===`
|
|
22
|
-
`?`\r
|
|
23
|
-
`:`\r`;if(n===`
|
|
24
|
-
`)return`
|
|
25
|
-
`}return e&&e.eol||`
|
|
26
|
-
`}k(eD,`getEOL`);function tD(e,t){return`\r
|
|
27
|
-
`.indexOf(e.charAt(t))!==-1}k(tD,`isEOL`);var nD;(function(e){e.DEFAULT={allowTrailingComma:!1}})(nD||={});function rD(e,t=[],n=nD.DEFAULT){let r=null,i=[],a=[];function o(e){Array.isArray(i)?i.push(e):r!==null&&(i[r]=e)}return k(o,`onValue`),oD(e,{onObjectBegin:k(()=>{let e={};o(e),a.push(i),i=e,r=null},`onObjectBegin`),onObjectProperty:k(e=>{r=e},`onObjectProperty`),onObjectEnd:k(()=>{i=a.pop()},`onObjectEnd`),onArrayBegin:k(()=>{let e=[];o(e),a.push(i),i=e,r=null},`onArrayBegin`),onArrayEnd:k(()=>{i=a.pop()},`onArrayEnd`),onLiteralValue:o,onError:k((e,n,r)=>{t.push({error:e,offset:n,length:r})},`onError`)},n),i[0]}k(rD,`parse`);function iD(e,t=[],n=nD.DEFAULT){let r={type:`array`,offset:-1,length:-1,children:[],parent:void 0};function i(e){r.type===`property`&&(r.length=e-r.offset,r=r.parent)}k(i,`ensurePropertyComplete`);function a(e){return r.children.push(e),e}k(a,`onValue`),oD(e,{onObjectBegin:k(e=>{r=a({type:`object`,offset:e,length:-1,parent:r,children:[]})},`onObjectBegin`),onObjectProperty:k((e,t,n)=>{r=a({type:`property`,offset:t,length:-1,parent:r,children:[]}),r.children.push({type:`string`,value:e,offset:t,length:n,parent:r})},`onObjectProperty`),onObjectEnd:k((e,t)=>{i(e+t),r.length=e+t-r.offset,r=r.parent,i(e+t)},`onObjectEnd`),onArrayBegin:k((e,t)=>{r=a({type:`array`,offset:e,length:-1,parent:r,children:[]})},`onArrayBegin`),onArrayEnd:k((e,t)=>{r.length=e+t-r.offset,r=r.parent,i(e+t)},`onArrayEnd`),onLiteralValue:k((e,t,n)=>{a({type:sD(e),offset:t,length:n,parent:r,value:e}),i(t+n)},`onLiteralValue`),onSeparator:k((e,t,n)=>{r.type===`property`&&(e===`:`?r.colonOffset=t:e===`,`&&i(t))},`onSeparator`),onError:k((e,n,r)=>{t.push({error:e,offset:n,length:r})},`onError`)},n);let o=r.children[0];return o&&delete o.parent,o}k(iD,`parseTree`);function aD(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}k(aD,`findNodeAtLocation`);function oD(e,t,n=nD.DEFAULT){let r=KE(e,!1),i=[];function a(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}k(a,`toNoArgVisit`);function o(e){return e?()=>e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}k(o,`toNoArgVisitWithPath`);function s(e){return e?t=>e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}k(s,`toOneArgVisit`);function c(e){return e?t=>e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}k(c,`toOneArgVisitWithPath`);let l=o(t.onObjectBegin),u=c(t.onObjectProperty),d=a(t.onObjectEnd),f=o(t.onArrayBegin),p=a(t.onArrayEnd),m=c(t.onLiteralValue),h=s(t.onSeparator),g=a(t.onComment),_=s(t.onError),v=n&&n.disallowComments,y=n&&n.allowTrailingComma;function b(){for(;;){let e=r.scan();switch(r.getTokenError()){case 4:x(14);break;case 5:x(15);break;case 3:x(13);break;case 1:v||x(11);break;case 2:x(12);break;case 6:x(16);break}switch(e){case 12:case 13:v?x(10):g();break;case 16:x(1);break;case 15:case 14:break;default:return e}}}k(b,`scanNext`);function x(e,t=[],n=[]){if(_(e),t.length+n.length>0){let e=r.getToken();for(;e!==17;){if(t.indexOf(e)!==-1){b();break}else if(n.indexOf(e)!==-1)break;e=b()}}}k(x,`handleError`);function ee(e){let t=r.getTokenValue();return e?m(t):(u(t),i.push(t)),b(),!0}k(ee,`parseString`);function S(){switch(r.getToken()){case 11:let e=r.getTokenValue(),t=Number(e);isNaN(t)&&(x(2),t=0),m(t);break;case 7:m(null);break;case 8:m(!0);break;case 9:m(!1);break;default:return!1}return b(),!0}k(S,`parseLiteral`);function C(){return r.getToken()===10?(ee(!1),r.getToken()===6?(h(`:`),b(),re()||x(4,[],[2,5])):x(5,[],[2,5]),i.pop(),!0):(x(3,[],[2,5]),!1)}k(C,`parseProperty`);function te(){l(),b();let e=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(e||x(4,[],[]),h(`,`),b(),r.getToken()===2&&y)break}else e&&x(6,[],[]);C()||x(4,[],[2,5]),e=!0}return d(),r.getToken()===2?b():x(7,[2],[]),!0}k(te,`parseObject`);function ne(){f(),b();let e=!0,t=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(t||x(4,[],[]),h(`,`),b(),r.getToken()===4&&y)break}else t&&x(6,[],[]);e?(i.push(0),e=!1):i[i.length-1]++,re()||x(4,[],[4,5]),t=!0}return p(),e||i.pop(),r.getToken()===4?b():x(8,[4],[]),!0}k(ne,`parseArray`);function re(){switch(r.getToken()){case 3:return ne();case 1:return te();case 10:return ee(!0);default:return S()}}return k(re,`parseValue`),b(),r.getToken()===17?n.allowEmptyContent?!0:(x(4,[],[]),!1):re()?(r.getToken()!==17&&x(9,[],[]),!0):(x(4,[],[]),!1)}k(oD,`visit`);function sD(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`}}k(sD,`getNodeType`);function cD(e,t,n,r){let i=t.slice(),a=iD(e,[]),o,s;for(;i.length>0&&(s=i.pop(),o=aD(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 lD(e,{offset:a?a.offset:0,length:a?a.length:0,content:JSON.stringify(n)},r)}else if(o.type===`object`&&typeof s==`string`&&Array.isArray(o.children)){let t=aD(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 lD(e,{offset:i,length:a-i,content:``},r)}else return lD(e,{offset:t.offset,length:t.length,content:JSON.stringify(n)},r);else{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 lD(e,a,r)}}else 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 lD(e,i,r)}else 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 lD(e,i,r)}else 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 lD(e,t,r)}else throw Error(`Can not ${n===void 0?`remove`:r.isArrayInsertion?`insert`:`modify`} Array index ${t} as length is not sufficient`)}else throw Error(`Can not add ${typeof s==`number`?`property`:`index`} to parent of type ${o.type}`)}k(cD,`setProperty`);function lD(e,t,n){if(!n.formattingOptions)return[t];let r=uD(e,t),i=t.offset,a=t.offset+t.content.length;if(t.length===0||t.content.length===0){for(;i>0&&!tD(r,i-1);)i--;for(;a<r.length&&!tD(r,a);)a++}let o=ZE(r,{offset:i,length:a-i},{...n.formattingOptions,keepLines:!1});for(let e=o.length-1;e>=0;e--){let t=o[e];r=uD(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)}]}k(lD,`withFormatting`);function uD(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}k(uD,`applyEdit`);var dD;(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`})(dD||={});var fD;(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`})(fD||={});var pD=rD,mD;(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`})(mD||={});function hD(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>`}k(hD,`printParseErrorCode`);function gD(e,t,n){return ZE(e,t,n)}k(gD,`format`);function _D(e,t,n,r){return cD(e,t,n,r)}k(_D,`modify`);function vD(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=uD(e,i);else throw Error(`Overlapping edit`);r=i.offset}return e}k(vD,`applyEdits`);function yD(e,t){let n=e.slice(0,t).split(/\r\n|\n|\r/g);return[n.length,n.pop().length+1]}k(yD,`getLineColFromPtr`);function bD(e,t,n){let r=e.split(/\r\n|\n|\r/g),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+=`
|
|
28
|
-
`,e===t&&(i+=` `.repeat(a+n+2),i+=`^
|
|
29
|
-
`))}return i}k(bD,`makeCodeBlock`);var j=class extends Error{static{k(this,`TomlError`)}line;column;codeblock;constructor(e,t){let[n,r]=yD(t.toml,t.ptr),i=bD(t.toml,n,r);super(`Invalid TOML document: ${e}
|
|
30
|
-
|
|
31
|
-
${i}`,t),this.line=n,this.column=r,this.codeblock=i}};function xD(e,t){let n=0;for(;e[t-++n]===`\\`;);return--n&&n%2}k(xD,`isEscaped`);function SD(e,t=0,n=e.length){let r=e.indexOf(`
|
|
32
|
-
`,t);return e[r-1]===`\r`&&r--,r<=n?r:-1}k(SD,`indexOfNewline`);function CD(e,t){for(let n=t;n<e.length;n++){let r=e[n];if(r===`
|
|
33
|
-
`)return n;if(r===`\r`&&e[n+1]===`
|
|
34
|
-
`)return n+1;if(r<` `&&r!==` `||r===``)throw new j(`control characters are not allowed in comments`,{toml:e,ptr:t})}return e.length}k(CD,`skipComment`);function wD(e,t,n,r){let i;for(;(i=e[t])===` `||i===` `||!n&&(i===`
|
|
35
|
-
`||i===`\r`&&e[t+1]===`
|
|
36
|
-
`);)t++;return r||i!==`#`?t:wD(e,CD(e,t),n)}k(wD,`skipVoid`);function TD(e,t,n,r,i=!1){if(!r)return t=SD(e,t),t<0?e.length:t;for(let a=t;a<e.length;a++){let t=e[a];if(t===`#`)a=SD(e,a);else if(t===n)return a+1;else if(t===r||i&&(t===`
|
|
37
|
-
`||t===`\r`&&e[a+1]===`
|
|
38
|
-
`))return a}throw new j(`cannot find end of structure`,{toml:e,ptr:t})}k(TD,`skipUntil`);function ED(e,t){let n=e[t],r=n===e[t+1]&&e[t+1]===e[t+2]?e.slice(t,t+3):n;t+=r.length-1;do t=e.indexOf(r,++t);while(t>-1&&n!==`'`&&xD(e,t));return t>-1&&(t+=r.length,r.length>1&&(e[t]===n&&t++,e[t]===n&&t++)),t}k(ED,`getStringEnd`);var DD=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i,OD=class e extends Date{static{k(this,`TomlDate`)}#e=!1;#t=!1;#n=null;constructor(e){let t=!0,n=!0,r=`Z`;if(typeof e==`string`){let i=e.match(DD);i?(i[1]||(t=!1,e=`0000-01-01T${e}`),n=!!i[2],n&&e[10]===` `&&(e=e.replace(` `,`T`)),i[2]&&+i[2]>23?e=``:(r=i[3]||null,e=e.toUpperCase(),!r&&n&&(e+=`Z`))):e=``}super(e),isNaN(this.getTime())||(this.#e=t,this.#t=n,this.#n=r)}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`)return e;let t=this.#n.slice(1,3)*60+ +this.#n.slice(4,6);return t=this.#n[0]===`-`?t:-t,new Date(this.getTime()-t*6e4).toISOString().slice(0,-1)+this.#n}static wrapAsOffsetDateTime(t,n=`Z`){let r=new e(t);return r.#n=n,r}static wrapAsLocalDateTime(t){let n=new e(t);return n.#n=null,n}static wrapAsLocalDate(t){let n=new e(t);return n.#t=!1,n.#n=null,n}static wrapAsLocalTime(t){let n=new e(t);return n.#e=!1,n.#n=null,n}},kD=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,AD=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,jD=/^[+-]?0[0-9_]/,MD=/^[0-9a-f]{4,8}$/i,ND={b:`\b`,t:` `,n:`
|
|
39
|
-
`,f:`\f`,r:`\r`,'"':`"`,"\\":`\\`};function PD(e,t=0,n=e.length){let r=e[t]===`'`,i=e[t++]===e[t]&&e[t]===e[t+1];i&&(n-=2,e[t+=2]===`\r`&&t++,e[t]===`
|
|
40
|
-
`&&t++);let a=0,o,s=``,c=t;for(;t<n-1;){let n=e[t++];if(n===`
|
|
41
|
-
`||n===`\r`&&e[t]===`
|
|
42
|
-
`){if(!i)throw new j(`newlines are not allowed in strings`,{toml:e,ptr:t-1})}else if(n<` `&&n!==` `||n===``)throw new j(`control characters are not allowed in strings`,{toml:e,ptr:t-1});if(o){if(o=!1,n===`u`||n===`U`){let r=e.slice(t,t+=n===`u`?4:8);if(!MD.test(r))throw new j(`invalid unicode escape`,{toml:e,ptr:a});try{s+=String.fromCodePoint(parseInt(r,16))}catch{throw new j(`invalid unicode escape`,{toml:e,ptr:a})}}else if(i&&(n===`
|
|
43
|
-
`||n===` `||n===` `||n===`\r`)){if(t=wD(e,t-1,!0),e[t]!==`
|
|
44
|
-
`&&e[t]!==`\r`)throw new j(`invalid escape: only line-ending whitespace may be escaped`,{toml:e,ptr:a});t=wD(e,t)}else if(n in ND)s+=ND[n];else throw new j(`unrecognized escape sequence`,{toml:e,ptr:a});c=t}else !r&&n===`\\`&&(a=t-1,o=!0,s+=e.slice(c,a))}return s+e.slice(c,n-1)}k(PD,`parseString`);function FD(e,t,n,r){if(e===`true`)return!0;if(e===`false`)return!1;if(e===`-inf`)return-1/0;if(e===`inf`||e===`+inf`)return 1/0;if(e===`nan`||e===`+nan`||e===`-nan`)return NaN;if(e===`-0`)return r?0n:0;let i=kD.test(e);if(i||AD.test(e)){if(jD.test(e))throw new j(`leading zeroes are not allowed`,{toml:t,ptr:n});e=e.replace(/_/g,``);let a=+e;if(isNaN(a))throw new j(`invalid number`,{toml:t,ptr:n});if(i){if((i=!Number.isSafeInteger(a))&&!r)throw new j(`integer value cannot be represented losslessly`,{toml:t,ptr:n});(i||r===!0)&&(a=BigInt(e))}return a}let a=new OD(e);if(!a.isValid())throw new j(`invalid value`,{toml:t,ptr:n});return a}k(FD,`parseValue`);function ID(e,t,n,r){let i=e.slice(t,n),a=i.indexOf(`#`);a>-1&&(CD(e,a),i=i.slice(0,a));let o=i.trimEnd();if(!r){let n=i.indexOf(`
|
|
45
|
-
`,o.length);if(n>-1)throw new j(`newlines are not allowed in inline tables`,{toml:e,ptr:t+n})}return[o,a]}k(ID,`sliceAndTrimEndOf`);function LD(e,t,n,r,i){if(r===0)throw new j(`document contains excessively nested structures. aborting.`,{toml:e,ptr:t});let a=e[t];if(a===`[`||a===`{`){let[o,s]=a===`[`?VD(e,t,r,i):BD(e,t,r,i),c=n?TD(e,s,`,`,n):s;if(s-c&&n===`}`){let t=SD(e,s,c);if(t>-1)throw new j(`newlines are not allowed in inline tables`,{toml:e,ptr:t})}return[o,c]}let o;if(a===`"`||a===`'`){o=ED(e,t);let r=PD(e,t,o);if(n){if(o=wD(e,o,n!==`]`),e[o]&&e[o]!==`,`&&e[o]!==n&&e[o]!==`
|
|
46
|
-
`&&e[o]!==`\r`)throw new j(`unexpected character encountered`,{toml:e,ptr:o});o+=+(e[o]===`,`)}return[r,o]}o=TD(e,t,`,`,n);let s=ID(e,t,o-+(e[o-1]===`,`),n===`]`);if(!s[0])throw new j(`incomplete key-value declaration: no value specified`,{toml:e,ptr:t});return n&&s[1]>-1&&(o=wD(e,t+s[1]),o+=+(e[o]===`,`)),[FD(s[0],e,t,i),o]}k(LD,`extractValue`);var RD=/^[a-zA-Z0-9-_]+[ \t]*$/;function zD(e,t,n=`=`){let r=t-1,i=[],a=e.indexOf(n,t);if(a<0)throw new j(`incomplete key-value: cannot find end of key`,{toml:e,ptr:t});do{let o=e[t=++r];if(o!==` `&&o!==` `)if(o===`"`||o===`'`){if(o===e[t+1]&&o===e[t+2])throw new j(`multiline strings are not allowed in keys`,{toml:e,ptr:t});let s=ED(e,t);if(s<0)throw new j(`unfinished string encountered`,{toml:e,ptr:t});r=e.indexOf(`.`,s);let c=e.slice(s,r<0||r>a?a:r),l=SD(c);if(l>-1)throw new j(`newlines are not allowed in keys`,{toml:e,ptr:t+r+l});if(c.trimStart())throw new j(`found extra tokens after the string part`,{toml:e,ptr:s});if(a<s&&(a=e.indexOf(n,s),a<0))throw new j(`incomplete key-value: cannot find end of key`,{toml:e,ptr:t});i.push(PD(e,t,s))}else{r=e.indexOf(`.`,t);let n=e.slice(t,r<0||r>a?a:r);if(!RD.test(n))throw new j(`only letter, numbers, dashes and underscores are allowed in keys`,{toml:e,ptr:t});i.push(n.trimEnd())}}while(r+1&&r<a);return[i,wD(e,a+1,!0,!0)]}k(zD,`parseKey`);function BD(e,t,n,r){let i={},a=new Set,o,s=0;for(t++;(o=e[t++])!==`}`&&o;){let c={toml:e,ptr:t-1};if(o===`
|
|
47
|
-
`)throw new j(`newlines are not allowed in inline tables`,c);if(o===`#`)throw new j(`inline tables cannot contain comments`,c);if(o===`,`)throw new j(`expected key-value, found comma`,c);if(o!==` `&&o!==` `){let o,c=i,l=!1,[u,d]=zD(e,t-1);for(let n=0;n<u.length;n++){if(n&&(c=l?c[o]:c[o]={}),o=u[n],(l=Object.hasOwn(c,o))&&(typeof c[o]!=`object`||a.has(c[o])))throw new j(`trying to redefine an already defined value`,{toml:e,ptr:t});!l&&o===`__proto__`&&Object.defineProperty(c,o,{enumerable:!0,configurable:!0,writable:!0})}if(l)throw new j(`trying to redefine an already defined value`,{toml:e,ptr:t});let[f,p]=LD(e,d,`}`,n-1,r);a.add(f),c[o]=f,t=p,s=e[t-1]===`,`?t-1:0}}if(s)throw new j(`trailing commas are not allowed in inline tables`,{toml:e,ptr:s});if(!o)throw new j(`unfinished table encountered`,{toml:e,ptr:t});return[i,t]}k(BD,`parseInlineTable`);function VD(e,t,n,r){let i=[],a;for(t++;(a=e[t++])!==`]`&&a;)if(a===`,`)throw new j(`expected value, found comma`,{toml:e,ptr:t-1});else if(a===`#`)t=CD(e,t);else if(a!==` `&&a!==` `&&a!==`
|
|
48
|
-
`&&a!==`\r`){let a=LD(e,t-1,`]`,n-1,r);i.push(a[0]),t=a[1]}if(!a)throw new j(`unfinished array encountered`,{toml:e,ptr:t});return[i,t]}k(VD,`parseArray`);function HD(e,t,n,r){let i=t,a=n,o,s=!1,c;for(let t=0;t<e.length;t++){if(t){if(i=s?i[o]:i[o]={},a=(c=a[o]).c,r===0&&(c.t===1||c.t===2))return null;if(c.t===2){let e=i.length-1;i=i[e],a=a[e].c}}if(o=e[t],(s=Object.hasOwn(i,o))&&a[o]?.t===0&&a[o]?.d)return null;s||(o===`__proto__`&&(Object.defineProperty(i,o,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(a,o,{enumerable:!0,configurable:!0,writable:!0})),a[o]={t:t<e.length-1&&r===2?3:r,d:!1,i:0,c:{}})}if(c=a[o],c.t!==r&&!(r===1&&c.t===3)||(r===2&&(c.d||(c.d=!0,i[o]=[]),i[o].push(i={}),c.c[c.i++]=c={t:1,d:!1,i:0,c:{}}),c.d))return null;if(c.d=!0,r===1)i=s?i[o]:i[o]={};else if(r===0&&s)return null;return[o,i,c.c]}k(HD,`peekTable`);function UD(e,{maxDepth:t=1e3,integersAsBigInt:n}={}){let r={},i={},a=r,o=i;for(let s=wD(e,0);s<e.length;){if(e[s]===`[`){let t=e[++s]===`[`,n=zD(e,s+=+t,`]`);if(t){if(e[n[1]-1]!==`]`)throw new j(`expected end of table declaration`,{toml:e,ptr:n[1]-1});n[1]++}let c=HD(n[0],r,i,t?2:1);if(!c)throw new j(`trying to redefine an already defined table or value`,{toml:e,ptr:s});o=c[2],a=c[1],s=n[1]}else{let r=zD(e,s),i=HD(r[0],a,o,0);if(!i)throw new j(`trying to redefine an already defined table or value`,{toml:e,ptr:s});let c=LD(e,r[1],void 0,t,n);i[1][i[0]]=c[0],s=c[1]}if(s=wD(e,s,!0),e[s]&&e[s]!==`
|
|
49
|
-
`&&e[s]!==`\r`)throw new j(`each key-value declaration must be followed by an end-of-line`,{toml:e,ptr:s});s=wD(e,s)}return r}k(UD,`parse`);var WD=/^[a-z0-9-_]+$/i;function GD(e){let t=typeof e;if(t===`object`){if(Array.isArray(e))return`array`;if(e instanceof Date)return`date`}return t}k(GD,`extendedTypeOf`);function KD(e){for(let t=0;t<e.length;t++)if(GD(e[t])!==`object`)return!1;return e.length!=0}k(KD,`isArrayOfTables`);function qD(e){return JSON.stringify(e).replace(/\x7f/g,`\\u007f`)}k(qD,`formatString`);function JD(e,t,n,r){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);if(t===`number`)return isNaN(e)?`nan`:e===1/0?`inf`:e===-1/0?`-inf`:r&&Number.isInteger(e)?e.toFixed(1):e.toString();if(t===`bigint`||t===`boolean`)return e.toString();if(t===`string`)return qD(e);if(t===`date`){if(isNaN(e.getTime()))throw TypeError(`cannot serialize invalid date`);return e.toISOString()}if(t===`object`)return YD(e,n,r);if(t===`array`)return XD(e,n,r)}k(JD,`stringifyValue`);function YD(e,t,n){let r=Object.keys(e);if(r.length===0)return`{}`;let i=`{ `;for(let a=0;a<r.length;a++){let o=r[a];a&&(i+=`, `),i+=WD.test(o)?o:qD(o),i+=` = `,i+=JD(e[o],GD(e[o]),t-1,n)}return i+` }`}k(YD,`stringifyInlineTable`);function XD(e,t,n){if(e.length===0)return`[]`;let r=`[ `;for(let i=0;i<e.length;i++){if(i&&(r+=`, `),e[i]===null||e[i]===void 0)throw TypeError(`arrays cannot contain null or undefined values`);r+=JD(e[i],GD(e[i]),t-1,n)}return r+` ]`}k(XD,`stringifyArray`);function ZD(e,t,n,r){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let i=``;for(let a=0;a<e.length;a++)i+=`${i&&`
|
|
50
|
-
`}[[${t}]]
|
|
51
|
-
`,i+=QD(0,e[a],t,n,r);return i}k(ZD,`stringifyArrayTable`);function QD(e,t,n,r,i){if(r===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let a=``,o=``,s=Object.keys(t);for(let e=0;e<s.length;e++){let c=s[e];if(t[c]!==null&&t[c]!==void 0){let e=GD(t[c]);if(e===`symbol`||e===`function`)throw TypeError(`cannot serialize values of type '${e}'`);let s=WD.test(c)?c:qD(c);if(e===`array`&&KD(t[c]))o+=(o&&`
|
|
52
|
-
`)+ZD(t[c],n?`${n}.${s}`:s,r-1,i);else if(e===`object`){let e=n?`${n}.${s}`:s;o+=(o&&`
|
|
53
|
-
`)+QD(e,t[c],e,r-1,i)}else a+=s,a+=` = `,a+=JD(t[c],e,r,i),a+=`
|
|
54
|
-
`}}return e&&(a||!o)&&(a=a?`[${e}]
|
|
55
|
-
${a}`:`[${e}]`),a&&o?`${a}
|
|
56
|
-
${o}`:a||o}k(QD,`stringifyTable`);function $D(e,{maxDepth:t=1e3,numbersAsFloat:n=!1}={}){if(GD(e)!==`object`)throw TypeError(`stringify can only be called with an object`);let r=QD(0,e,``,t,n);return r[r.length-1]===`
|
|
57
|
-
`?r:r+`
|
|
58
|
-
`}k($D,`stringify`);var eO={parse:UD,stringify:$D,TomlDate:OD,TomlError:j},tO=class extends A{static{k(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`}};(class extends tO{static{k(this,`APIError`)}#e;code;accountTag;constructor({status:e,...t}){super(t),this.name=this.constructor.name,this.#e=e}get status(){return this.#e}isGatewayError(){return this.#e===void 0?!1:[524].includes(this.#e)}isRetryable(){return String(this.#e).startsWith(`5`)}#t=!0;get reportable(){return this.#t}preventReport(){this.#t=!1}});function nO(e,t){try{return eO.parse(e)}catch(n){if(!(n instanceof j))throw n;let r={lineText:e.split(`
|
|
59
|
-
`)[n.line-1],line:n.line,column:n.column-1,file:t,fileText:e};throw new tO({text:n.message.substring(0,n.message.indexOf(`
|
|
60
|
-
`)),location:r,telemetryMessage:`TOML parse error`})}}k(nO,`parseTOML`);function rO(e,t){return iO(e,t)}k(rO,`parsePackageJSON`);function iO(e,t){return aO(e,t,{allowEmptyContent:!1,allowTrailingComma:!1,disallowComments:!0})}k(iO,`parseJSON`);function aO(e,t,n={allowTrailingComma:!0}){let r=[],i=pD(e,r,n);if(r.length)throw new tO({text:hD(r[0].error),location:{...cO({file:t,fileText:e},r[0].offset+1),length:r[0].length},telemetryMessage:`JSON(C) parse error`});return i}k(aO,`parseJSONC`);function oO(e){try{return ne(e)}catch(t){let{message:n}=t;throw new tO({text:`Could not read file: ${e}`,notes:[{text:n.replace(e,ge(e))}]})}}k(oO,`readFileSyncToBuffer`);function sO(e){try{return hO(ne(e),e)}catch(t){if(t instanceof tO)throw t;let{message:n}=t;throw new tO({text:`Could not read file: ${e}`,notes:[{text:n.replace(e,ge(e))}],telemetryMessage:`Could not read file`})}}k(sO,`readFileSync`);function cO(e,t){let n,r=0,i=0,a=0,{fileText:o=``}=e;for(let e of o.split(`
|
|
61
|
-
`))if(r++,a+=e.length+1,a>=t){n=e,i=e.length-(a-t);break}return{lineText:n,line:r,column:i,...e}}k(cO,`indexLocation`);function lO(e,t){let n,r,i=0,a=0,o=String(t),{fileText:s=``}=e;for(let e of s.split(`
|
|
62
|
-
`)){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}}k(lO,`searchLocation`);var uO={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 dO(e){let t=new Map(Object.entries(uO));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}k(dO,`parseHumanDuration`);function fO(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)}k(fO,`parseNonHyphenedUuid`);function pO(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)}k(pO,`parseByteSize`);var mO=[{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 hO(e,t){for(let n of mO)if(e.length>=n.buffer.length&&e.subarray(0,n.buffer.length).equals(n.buffer))throw new tO({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}k(hO,`removeBOMAndValidate`);function gO(e,t){return me(e)?e:ge(t||`.`,e)}k(gO,`absolute`);function _O(e,t){let{last:n,cwd:r}=t||{},i=gO(e,r),a=gO(n||`/`,r),o,s=[];for(;o!==a&&(s.push(i),i=pe(o=i),i!==o););return s}k(_O,`up`);function vO(e,t){let n,r;for(n of _O(t&&t.cwd||``,t))try{if(r=he(n,e),re(r).isFile())return r}catch{}}k(vO,`file`);function yO(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(`
|
|
63
|
-
[ ]{`+Math.min.apply(Math,r)+`}`,`g`);n=n.map(function(e){return e.replace(i,`
|
|
64
|
-
`)})}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(`
|
|
65
|
-
`)&&(o=String(e).split(`
|
|
66
|
-
`).map(function(e,t){return t===0?e:``+i+e}).join(`
|
|
67
|
-
`)),a+=o+n[t+1]}),a}k(yO,`dedent`);var bO=yO;function xO({config:e,script:t},n){return e===void 0?SO(t===void 0?process.cwd():E.dirname(t),n):{userConfigPath:e,configPath:e,deployConfigPath:void 0,redirected:!1}}k(xO,`resolveWranglerConfigPath`);function SO(e=process.cwd(),{useRedirectIfAvailable:t=!1}={}){let n=vO(`wrangler.json`,{cwd:e})??vO(`wrangler.jsonc`,{cwd:e})??vO(`wrangler.toml`,{cwd:e});if(!t)return{userConfigPath:n,configPath:n,deployConfigPath:void 0,redirected:!1};let{configPath:r,deployConfigPath:i,redirected:a}=CO(e,n);return{userConfigPath:n,configPath:r,deployConfigPath:i,redirected:a}}k(SO,`findWranglerConfig`);function CO(e,t){let n=vO(CE,{cwd:e});if(n===void 0)return{configPath:t,deployConfigPath:n,redirected:!1};let r,i=sO(n);try{let e=aO(i,n);r=e.configPath&&E.resolve(E.dirname(n),e.configPath)}catch(e){throw new A(`Failed to parse the deploy configuration file at ${E.relative(`.`,n)}`,{cause:e})}if(!r)throw new A(bO`
|
|
68
|
-
A deploy configuration file was found at "${E.relative(`.`,n)}".
|
|
69
|
-
But this is not valid - the required "configPath" property was not found.
|
|
70
|
-
Instead this file contains:
|
|
71
|
-
\`\`\`
|
|
72
|
-
${i}
|
|
73
|
-
\`\`\`
|
|
74
|
-
`);if(!S(r))throw new A(bO`
|
|
75
|
-
There is a deploy configuration at "${E.relative(`.`,n)}".
|
|
76
|
-
But the redirected configuration path it points to, "${E.relative(`.`,r)}", does not exist.
|
|
77
|
-
`);if(t&&E.join(E.dirname(t),`.wrangler/deploy/config.json`)!==n)throw new A(bO`
|
|
78
|
-
Found both a user configuration file at "${E.relative(`.`,t)}"
|
|
79
|
-
and a deploy configuration file at "${E.relative(`.`,n)}".
|
|
80
|
-
But these do not share the same base path so it is not clear which should be used.
|
|
81
|
-
`);return{configPath:r,deployConfigPath:n,redirected:!0}}k(CO,`findRedirectedWranglerConfig`);function wO(e,t,n){return t!==void 0&&t!==n}k(wO,`isRedirectedRawConfig`);function TO(e){return e?.endsWith(`toml`)?`toml`:e?.endsWith(`jsonc`)?`jsonc`:e?.endsWith(`json`)?`json`:`none`}k(TO,`configFormat`);function EO(e){switch(TO(e)){case`toml`:return`wrangler.toml`;case`json`:return`wrangler.json`;case`jsonc`:return`wrangler.jsonc`;default:return`Wrangler configuration`}}k(EO,`configFileName`);function DO(e,t,n=!0){return TO(t)===`toml`?eO.stringify(e):n?JSON.stringify(e,null,2):JSON.stringify(e)}k(DO,`formatConfigSnippet`);function OO(e){return b.statSync(e,{throwIfNoEntry:!1})?.isDirectory()??!1}k(OO,`isDirectory`);function kO(e,{fireAndForget:t=!1}={}){let n=b.promises.rm(e,{recursive:!0,force:!0,maxRetries:5,retryDelay:100});if(t)n.catch(()=>{});else return n}k(kO,`removeDir`);function AO(e){b.rmSync(e,{recursive:!0,force:!0,maxRetries:5,retryDelay:100})}k(AO,`removeDirSync`);var jO=jE({"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/lib/XDGAppPaths.js"(e){e.__esModule=!0,e.Adapt=void 0;function t(e){return i(e)===`boolean`}k(t,`isBoolean`);function n(e){return i(e)===`object`}k(n,`isObject`);function r(e){return i(e)===`string`}k(r,`isString`);function i(e){return typeof e}k(i,`typeOf`);function a(e){var i=e.meta,a=e.path,o=e.xdg;return{XDGAppPaths:new(function(){function e(s){s===void 0&&(s={});function c(t){return t===void 0&&(t={}),new e(t)}k(c,`XDGAppPaths`);var l=n(s)?s:{name:s},u=l.suffix??``,d=l.isolated??!0,f=[l.name,i.pkgMainFilename(),i.mainFilename()],p=a.parse((f.find(function(e){return r(e)})??`$eval`)+u).name;c.$name=k(function(){return p},`$name`),c.$isolated=k(function(){return d},`$isolated`);function m(e){return e??={isolated:d},t(e)?e:e.isolated??d}k(m,`isIsolated`);function h(e){return m(e)?p:``}return k(h,`finalPathSegment`),c.cache=k(function(e){return a.join(o.cache(),h(e))},`cache`),c.config=k(function(e){return a.join(o.config(),h(e))},`config`),c.data=k(function(e){return a.join(o.data(),h(e))},`data`),c.runtime=k(function(e){return o.runtime()?a.join(o.runtime(),h(e)):void 0},`runtime`),c.state=k(function(e){return a.join(o.state(),h(e))},`state`),c.configDirs=k(function(e){return o.configDirs().map(function(t){return a.join(t,h(e))})},`configDirs`),c.dataDirs=k(function(e){return o.dataDirs().map(function(t){return a.join(t,h(e))})},`dataDirs`),c}return k(e,`XDGAppPaths_`),e}())}}k(a,`Adapt`),e.Adapt=a}}),MO=jE({"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/lib/XDG.js"(e){var t=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};e.__esModule=!0,e.Adapt=void 0;function n(e){var n=e.env,r=e.osPaths,i=e.path,a=/^darwin$/i.test(e.process.platform),o=/^win/i.test(e.process.platform);function s(){return r.home()||r.temp()}k(s,`baseDir`);function c(e,t){return e||i.join.apply(i,t)}k(c,`valOrPath`);var l=k(function(){return{cache:k(function(){return c(n.get(`XDG_CACHE_HOME`),[s(),`.cache`])},`cache`),config:k(function(){return c(n.get(`XDG_CONFIG_HOME`),[s(),`.config`])},`config`),data:k(function(){return c(n.get(`XDG_DATA_HOME`),[s(),`.local`,`share`])},`data`),runtime:k(function(){return n.get(`XDG_RUNTIME_DIR`)||void 0},`runtime`),state:k(function(){return c(n.get(`XDG_STATE_HOME`),[s(),`.local`,`state`])},`state`)}},`linux`),u=k(function(){return{cache:k(function(){return c(n.get(`XDG_CACHE_HOME`),[s(),`Library`,`Caches`])},`cache`),config:k(function(){return c(n.get(`XDG_CONFIG_HOME`),[s(),`Library`,`Preferences`])},`config`),data:k(function(){return c(n.get(`XDG_DATA_HOME`),[s(),`Library`,`Application Support`])},`data`),runtime:k(function(){return n.get(`XDG_RUNTIME_DIR`)||void 0},`runtime`),state:k(function(){return c(n.get(`XDG_STATE_HOME`),[s(),`Library`,`State`])},`state`)}},`macos`),d=k(function(){function e(){return c(n.get(`APPDATA`),[s(),`AppData`,`Roaming`])}k(e,`appData`);function t(){return c(n.get(`LOCALAPPDATA`),[s(),`AppData`,`Local`])}return k(t,`localAppData`),{cache:k(function(){return c(n.get(`XDG_CACHE_HOME`),[t(),`xdg.cache`])},`cache`),config:k(function(){return c(n.get(`XDG_CONFIG_HOME`),[e(),`xdg.config`])},`config`),data:k(function(){return c(n.get(`XDG_DATA_HOME`),[e(),`xdg.data`])},`data`),runtime:k(function(){return n.get(`XDG_RUNTIME_DIR`)||void 0},`runtime`),state:k(function(){return c(n.get(`XDG_STATE_HOME`),[t(),`xdg.state`])},`state`)}},`windows`);return{XDG:new(function(){function e(){function r(){return new e}k(r,`XDG`);var s=a?u():o?d():l();return r.cache=s.cache,r.config=s.config,r.data=s.data,r.runtime=s.runtime,r.state=s.state,r.configDirs=k(function(){var e=n.get(`XDG_CONFIG_DIRS`);return t([s.config()],e?e.split(i.delimiter):[])},`configDirs`),r.dataDirs=k(function(){var e=n.get(`XDG_DATA_DIRS`);return t([s.data()],e?e.split(i.delimiter):[])},`dataDirs`),r}return k(e,`XDG_`),e}())}}k(n,`Adapt`),e.Adapt=n}}),NO=jE({"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/lib/OSPaths.js"(e){var t=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};e.__esModule=!0,e.Adapt=void 0;function n(e){return!e}k(n,`isEmpty`);function r(e){var r=e.env,i=e.os,a=e.path,o=/^win/i.test(e.process.platform);function s(t){return t?e.path.normalize(e.path.join(t,`.`)):void 0}k(s,`normalizePath`);function c(){return o?k(function(){return s([typeof i.homedir==`function`?i.homedir():void 0,r.get(`USERPROFILE`),r.get(`HOME`),r.get(`HOMEDRIVE`)||r.get(`HOMEPATH`)?a.join(r.get(`HOMEDRIVE`)||``,r.get(`HOMEPATH`)||``):void 0].find(function(e){return!n(e)}))},`windows`)():k(function(){return s((typeof i.homedir==`function`?i.homedir():void 0)||r.get(`HOME`))},`posix`)()}k(c,`home`);function l(){function e(e,n){return e?a.join.apply(a,t([e],n)):void 0}k(e,`joinPathToBase`);function l(){return s([typeof i.tmpdir==`function`?i.tmpdir():void 0,r.get(`TMPDIR`),r.get(`TEMP`),r.get(`TMP`)].find(function(e){return!n(e)}))||`/tmp`}k(l,`posix`);function u(){var t=`C:\\Temp`,a=[typeof i.tmpdir==`function`?i.tmpdir:function(){},function(){return r.get(`TEMP`)},function(){return r.get(`TMP`)},function(){return e(r.get(`LOCALAPPDATA`),[`Temp`])},function(){return e(c(),[`AppData`,`Local`,`Temp`])},function(){return e(r.get(`ALLUSERSPROFILE`),[`Temp`])},function(){return e(r.get(`SystemRoot`),[`Temp`])},function(){return e(r.get(`windir`),[`Temp`])},function(){return e(r.get(`SystemDrive`),[`\\`,`Temp`])}].find(function(e){return e&&!n(e())});return a&&s(a())||t}return k(u,`windows`),o?u():l()}return k(l,`temp`),{OSPaths:new(function(){function e(){function t(){return new e}return k(t,`OSPaths`),t.home=c,t.temp=l,t}return k(e,`OSPaths_`),e}())}}k(r,`Adapt`),e.Adapt=r}}),PO=jE({"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js"(e){var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:k(function(){return t[n]},`get`)})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),n=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};e.__esModule=!0,e.adapter=void 0;var i=r(AE(`os`)),a=r(AE(`path`));e.adapter={atImportPermissions:{env:!0},env:{get:k(function(e){return process.env[e]},`get`)},os:i,path:a,process}}}),FO=jE({"../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/mod.cjs.js"(e,t){var n=NO(),r=PO();t.exports=n.Adapt(r.adapter).OSPaths}}),IO=jE({"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js"(e){var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:k(function(){return t[n]},`get`)})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),n=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};e.__esModule=!0,e.adapter=void 0;var a=r(AE(`path`)),o=i(FO());e.adapter={atImportPermissions:{env:!0},env:{get:k(function(e){return process.env[e]},`get`)},osPaths:o.default,path:a,process}}}),LO=jE({"../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/mod.cjs.js"(e,t){var n=MO(),r=IO();t.exports=n.Adapt(r.adapter).XDG}}),RO=jE({"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js"(e){var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:k(function(){return t[n]},`get`)})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),n=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};e.__esModule=!0,e.adapter=void 0;var a=r(AE(`path`)),o=i(LO());e.adapter={atImportPermissions:{env:!0,read:!0},meta:{mainFilename:k(function(){var e=(AE!=null&&AE.main?AE.main:{filename:void 0}).filename;return(e===process.execArgv[0]?void 0:e)||(process._eval===void 0?process.argv[1]:void 0)},`mainFilename`),pkgMainFilename:k(function(){return process.pkg?process.execPath:void 0},`pkgMainFilename`)},path:a,process,xdg:o.default}}}),zO=jE({"../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/mod.cjs.js"(e,t){var n=jO(),r=RO();t.exports=n.Adapt(r.adapter).XDGAppPaths}}),BO={configPath:void 0,userConfigPath:void 0,topLevelName:void 0,definedEnvironments:void 0,targetEnvironment:void 0,pages_build_output_dir:void 0,send_metrics:void 0,dev:{ip:process.platform===`win32`?`127.0.0.1`:`localhost`,port:void 0,inspector_port:void 0,inspector_ip:void 0,local_protocol:`http`,upstream_protocol:`http`,host:void 0,enable_containers:!0,container_engine:void 0,generate_types:!1},name:void 0,compatibility_date:void 0,compatibility_flags:[],limits:void 0,placement:void 0,vars:{},durable_objects:{bindings:[]},kv_namespaces:[],queues:{producers:[],consumers:[]},r2_buckets:[],d1_databases:[],vectorize:[],ai_search_namespaces:[],ai_search:[],hyperdrive:[],workflows:[],secrets_store_secrets:[],artifacts:[],services:[],analytics_engine_datasets:[],ai:void 0,images:void 0,stream:void 0,media:void 0,version_metadata:void 0,unsafe_hello_world:[],flagship:[],ratelimits:[],worker_loaders:[],legacy_env:!0,site:void 0,wasm_modules:void 0,text_blobs:void 0,data_blobs:void 0,keep_vars:void 0,alias:void 0,account_id:void 0,main:void 0,find_additional_modules:void 0,preserve_file_names:void 0,base_dir:void 0,workers_dev:void 0,preview_urls:void 0,route:void 0,routes:void 0,tsconfig:void 0,jsx_factory:`React.createElement`,jsx_fragment:`React.Fragment`,migrations:[],triggers:{crons:void 0},rules:[],build:{command:void 0,watch_dir:`./src`,cwd:void 0},no_bundle:void 0,minify:void 0,keep_names:void 0,dispatch_namespaces:[],first_party_worker:void 0,logfwdr:{bindings:[]},logpush:void 0,upload_source_maps:void 0,assets:void 0,observability:{enabled:!0},cache:void 0,compliance_region:void 0,python_modules:{exclude:[`**/*.pyc`]},previews:void 0,define:{},cloudchamber:{},containers:void 0,send_email:[],browser:void 0,unsafe:{},mtls_certificates:[],tail_consumers:void 0,streaming_tail_consumers:void 0,pipelines:[],vpc_services:[],vpc_networks:[]};(class extends Error{static{k(this,`PatchConfigError`)}});var M;(function(e){e.assertEqual=e=>e;function t(e){}k(t,`assertIs`),e.assertIs=t;function n(e){throw Error()}k(n,`assertNever`),e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}k(r,`joinValues`),e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(M||={});var VO;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(VO||={});var N=M.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),HO=k(e=>{switch(typeof e){case`undefined`:return N.undefined;case`string`:return N.string;case`number`:return isNaN(e)?N.nan:N.number;case`boolean`:return N.boolean;case`function`:return N.function;case`bigint`:return N.bigint;case`symbol`:return N.symbol;case`object`:return Array.isArray(e)?N.array:e===null?N.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?N.promise:typeof Map<`u`&&e instanceof Map?N.map:typeof Set<`u`&&e instanceof Set?N.set:typeof Date<`u`&&e instanceof Date?N.date:N.object;default:return N.unknown}},`getParsedType`),P=M.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]),UO=k(e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,`$1:`),`quotelessJson`),WO=class extends Error{static{k(this,`ZodError`)}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=k(e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}},`processError`);return r(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,M.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};WO.create=e=>new WO(e);var GO=k((e,t)=>{let n;switch(e.code){case P.invalid_type:n=e.received===N.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case P.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,M.jsonStringifyReplacer)}`;break;case P.unrecognized_keys:n=`Unrecognized key(s) in object: ${M.joinValues(e.keys,`, `)}`;break;case P.invalid_union:n=`Invalid input`;break;case P.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${M.joinValues(e.options)}`;break;case P.invalid_enum_value:n=`Invalid enum value. Expected ${M.joinValues(e.options)}, received '${e.received}'`;break;case P.invalid_arguments:n=`Invalid function arguments`;break;case P.invalid_return_type:n=`Invalid function return type`;break;case P.invalid_date:n=`Invalid date`;break;case P.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:M.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case P.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case P.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case P.custom:n=`Invalid input`;break;case P.invalid_intersection_types:n=`Intersection results could not be merged`;break;case P.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case P.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,M.assertNever(e)}return{message:n}},`errorMap`),KO=GO;function qO(e){KO=e}k(qO,`setErrorMap`);function JO(){return KO}k(JO,`getErrorMap`);var YO=k(e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a},s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:i.message||s}},`makeIssue`),XO=[];function F(e,t){let n=YO({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,JO(),GO].filter(e=>!!e)});e.common.issues.push(n)}k(F,`addIssueToContext`);var ZO=class e{static{k(this,`ParseStatus`)}constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return I;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n)r.push({key:await e.key,value:await e.value});return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return I;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},I=Object.freeze({status:`aborted`}),QO=k(e=>({status:`dirty`,value:e}),`DIRTY`),L=k(e=>({status:`valid`,value:e}),`OK`),$O=k(e=>e.status===`aborted`,`isAborted`),ek=k(e=>e.status===`dirty`,`isDirty`),tk=k(e=>e.status===`valid`,`isValid`),nk=k(e=>typeof Promise<`u`&&e instanceof Promise,`isAsync`),R;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(R||={});var rk=class{static{k(this,`ParseInputLazyPath`)}constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},ik=k((e,t)=>{if(tk(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new WO(e.common.issues);return this._error=t,this._error}}},`handleResult`);function z(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:k((e,t)=>e.code===`invalid_type`?t.data===void 0?{message:r??t.defaultError}:{message:n??t.defaultError}:{message:t.defaultError},`customMap`),description:i}}k(z,`processCreateParams`);var B=class{static{k(this,`ZodType`)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return HO(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:HO(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ZO,ctx:{common:e.parent.common,data:e.data,parsedType:HO(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(nk(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:HO(e)};return ik(n,this._parseSync({data:e,path:n.path,parent:n}))}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:HO(e)},r=this._parse({data:e,path:n.path,parent:n});return ik(n,await(nk(r)?r:Promise.resolve(r)))}refine(e,t){let n=k(e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t,`getIssueProperties`);return this._refinement((t,r)=>{let i=e(t),a=k(()=>r.addIssue({code:P.custom,...n(t)}),`setError`);return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new qk({schema:this,typeName:V.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Jk.create(this,this._def)}nullable(){return Yk.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ok.create(this,this._def)}promise(){return Kk.create(this,this._def)}or(e){return jk.create([this,e],this._def)}and(e){return Fk.create(this,e,this._def)}transform(e){return new qk({...z(this._def),schema:this,typeName:V.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new Xk({...z(this._def),innerType:this,defaultValue:t,typeName:V.ZodDefault})}brand(){return new eA({typeName:V.ZodBranded,type:this,...z(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new Zk({...z(this._def),innerType:this,catchValue:t,typeName:V.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return tA.create(this,e)}readonly(){return nA.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},ak=/^c[^\s-]{8,}$/i,ok=/^[a-z][a-z0-9]*$/,sk=/[0-9A-HJKMNP-TV-Z]{26}/,ck=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,lk=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,uk=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,dk=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,fk=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,pk=k(e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):e.precision===0?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$`):e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$`),`datetimeRegex`);function mk(e,t){return!!((t===`v4`||!t)&&dk.test(e)||(t===`v6`||!t)&&fk.test(e))}k(mk,`isValidIP`);var hk=class e extends B{static{k(this,`ZodString`)}constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(t=>e.test(t),{validation:t,code:P.invalid_string,...R.errToObj(n)}),this.nonempty=e=>this.min(1,R.errToObj(e)),this.trim=()=>new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]}),this.toLowerCase=()=>new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]}),this.toUpperCase=()=>new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==N.string){let t=this._getOrReturnCtx(e);return F(t,{code:P.invalid_type,expected:N.string,received:t.parsedType}),I}let t=new ZO,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.length<r.value&&(n=this._getOrReturnCtx(e,n),F(n,{code:P.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`max`)e.data.length>r.value&&(n=this._getOrReturnCtx(e,n),F(n,{code:P.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.length<r.value;(i||a)&&(n=this._getOrReturnCtx(e,n),i?F(n,{code:P.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}):a&&F(n,{code:P.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}),t.dirty())}else if(r.kind===`email`)lk.test(e.data)||(n=this._getOrReturnCtx(e,n),F(n,{validation:`email`,code:P.invalid_string,message:r.message}),t.dirty());else if(r.kind===`emoji`)uk.test(e.data)||(n=this._getOrReturnCtx(e,n),F(n,{validation:`emoji`,code:P.invalid_string,message:r.message}),t.dirty());else if(r.kind===`uuid`)ck.test(e.data)||(n=this._getOrReturnCtx(e,n),F(n,{validation:`uuid`,code:P.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid`)ak.test(e.data)||(n=this._getOrReturnCtx(e,n),F(n,{validation:`cuid`,code:P.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid2`)ok.test(e.data)||(n=this._getOrReturnCtx(e,n),F(n,{validation:`cuid2`,code:P.invalid_string,message:r.message}),t.dirty());else if(r.kind===`ulid`)sk.test(e.data)||(n=this._getOrReturnCtx(e,n),F(n,{validation:`ulid`,code:P.invalid_string,message:r.message}),t.dirty());else if(r.kind===`url`)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),F(n,{validation:`url`,code:P.invalid_string,message:r.message}),t.dirty()}else r.kind===`regex`?(r.regex.lastIndex=0,r.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),F(n,{validation:`regex`,code:P.invalid_string,message:r.message}),t.dirty())):r.kind===`trim`?e.data=e.data.trim():r.kind===`includes`?e.data.includes(r.value,r.position)||(n=this._getOrReturnCtx(e,n),F(n,{code:P.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),t.dirty()):r.kind===`toLowerCase`?e.data=e.data.toLowerCase():r.kind===`toUpperCase`?e.data=e.data.toUpperCase():r.kind===`startsWith`?e.data.startsWith(r.value)||(n=this._getOrReturnCtx(e,n),F(n,{code:P.invalid_string,validation:{startsWith:r.value},message:r.message}),t.dirty()):r.kind===`endsWith`?e.data.endsWith(r.value)||(n=this._getOrReturnCtx(e,n),F(n,{code:P.invalid_string,validation:{endsWith:r.value},message:r.message}),t.dirty()):r.kind===`datetime`?pk(r).test(e.data)||(n=this._getOrReturnCtx(e,n),F(n,{code:P.invalid_string,validation:`datetime`,message:r.message}),t.dirty()):r.kind===`ip`?mk(e.data,r.version)||(n=this._getOrReturnCtx(e,n),F(n,{validation:`ip`,code:P.invalid_string,message:r.message}),t.dirty()):M.assertNever(r);return{status:t.value,value:e.data}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...R.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...R.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...R.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...R.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...R.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...R.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...R.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...R.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,...R.errToObj(e?.message)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...R.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...R.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...R.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...R.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...R.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...R.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...R.errToObj(t)})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}};hk.create=e=>new hk({checks:[],typeName:V.ZodString,coerce:e?.coerce??!1,...z(e)});function gk(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return parseInt(e.toFixed(i).replace(`.`,``))%parseInt(t.toFixed(i).replace(`.`,``))/10**i}k(gk,`floatSafeRemainder`);var _k=class e extends B{static{k(this,`ZodNumber`)}constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==N.number){let t=this._getOrReturnCtx(e);return F(t,{code:P.invalid_type,expected:N.number,received:t.parsedType}),I}let t,n=new ZO;for(let r of this._def.checks)r.kind===`int`?M.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),F(t,{code:P.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),F(t,{code:P.too_small,minimum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`max`?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),F(t,{code:P.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?gk(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),F(t,{code:P.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),F(t,{code:P.not_finite,message:r.message}),n.dirty()):M.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,R.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,R.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,R.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,R.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:R.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:R.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:R.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:R.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:R.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:R.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:R.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:R.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:R.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:R.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind===`int`||e.kind===`multipleOf`&&M.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.value<e)&&(e=n.value);return Number.isFinite(t)&&Number.isFinite(e)}};_k.create=e=>new _k({checks:[],typeName:V.ZodNumber,coerce:e?.coerce||!1,...z(e)});var vk=class e extends B{static{k(this,`ZodBigInt`)}constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==N.bigint){let t=this._getOrReturnCtx(e);return F(t,{code:P.invalid_type,expected:N.bigint,received:t.parsedType}),I}let t,n=new ZO;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),F(t,{code:P.too_small,type:`bigint`,minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`max`?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),F(t,{code:P.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),F(t,{code:P.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):M.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,R.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,R.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,R.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,R.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:R.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:R.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:R.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:R.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:R.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:R.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}};vk.create=e=>new vk({checks:[],typeName:V.ZodBigInt,coerce:e?.coerce??!1,...z(e)});var yk=class extends B{static{k(this,`ZodBoolean`)}_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==N.boolean){let t=this._getOrReturnCtx(e);return F(t,{code:P.invalid_type,expected:N.boolean,received:t.parsedType}),I}return L(e.data)}};yk.create=e=>new yk({typeName:V.ZodBoolean,coerce:e?.coerce||!1,...z(e)});var bk=class e extends B{static{k(this,`ZodDate`)}_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==N.date){let t=this._getOrReturnCtx(e);return F(t,{code:P.invalid_type,expected:N.date,received:t.parsedType}),I}if(isNaN(e.data.getTime()))return F(this._getOrReturnCtx(e),{code:P.invalid_date}),I;let t=new ZO,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),F(n,{code:P.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:`date`}),t.dirty()):r.kind===`max`?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),F(n,{code:P.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):M.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:R.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:R.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e==null?null:new Date(e)}};bk.create=e=>new bk({checks:[],coerce:e?.coerce||!1,typeName:V.ZodDate,...z(e)});var xk=class extends B{static{k(this,`ZodSymbol`)}_parse(e){if(this._getType(e)!==N.symbol){let t=this._getOrReturnCtx(e);return F(t,{code:P.invalid_type,expected:N.symbol,received:t.parsedType}),I}return L(e.data)}};xk.create=e=>new xk({typeName:V.ZodSymbol,...z(e)});var Sk=class extends B{static{k(this,`ZodUndefined`)}_parse(e){if(this._getType(e)!==N.undefined){let t=this._getOrReturnCtx(e);return F(t,{code:P.invalid_type,expected:N.undefined,received:t.parsedType}),I}return L(e.data)}};Sk.create=e=>new Sk({typeName:V.ZodUndefined,...z(e)});var Ck=class extends B{static{k(this,`ZodNull`)}_parse(e){if(this._getType(e)!==N.null){let t=this._getOrReturnCtx(e);return F(t,{code:P.invalid_type,expected:N.null,received:t.parsedType}),I}return L(e.data)}};Ck.create=e=>new Ck({typeName:V.ZodNull,...z(e)});var wk=class extends B{static{k(this,`ZodAny`)}constructor(){super(...arguments),this._any=!0}_parse(e){return L(e.data)}};wk.create=e=>new wk({typeName:V.ZodAny,...z(e)});var Tk=class extends B{static{k(this,`ZodUnknown`)}constructor(){super(...arguments),this._unknown=!0}_parse(e){return L(e.data)}};Tk.create=e=>new Tk({typeName:V.ZodUnknown,...z(e)});var Ek=class extends B{static{k(this,`ZodNever`)}_parse(e){let t=this._getOrReturnCtx(e);return F(t,{code:P.invalid_type,expected:N.never,received:t.parsedType}),I}};Ek.create=e=>new Ek({typeName:V.ZodNever,...z(e)});var Dk=class extends B{static{k(this,`ZodVoid`)}_parse(e){if(this._getType(e)!==N.undefined){let t=this._getOrReturnCtx(e);return F(t,{code:P.invalid_type,expected:N.void,received:t.parsedType}),I}return L(e.data)}};Dk.create=e=>new Dk({typeName:V.ZodVoid,...z(e)});var Ok=class e extends B{static{k(this,`ZodArray`)}_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==N.array)return F(t,{code:P.invalid_type,expected:N.array,received:t.parsedType}),I;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(F(t,{code:e?P.too_big:P.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:`array`,inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(r.minLength!==null&&t.data.length<r.minLength.value&&(F(t,{code:P.too_small,minimum:r.minLength.value,type:`array`,inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),r.maxLength!==null&&t.data.length>r.maxLength.value&&(F(t,{code:P.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new rk(t,e,t.path,n)))).then(e=>ZO.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new rk(t,e,t.path,n)));return ZO.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:R.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:R.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:R.toString(n)}})}nonempty(e){return this.min(1,e)}};Ok.create=(e,t)=>new Ok({type:e,minLength:null,maxLength:null,exactLength:null,typeName:V.ZodArray,...z(t)});function kk(e){if(e instanceof Ak){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Jk.create(kk(r))}return new Ak({...e._def,shape:k(()=>t,`shape`)})}else if(e instanceof Ok)return new Ok({...e._def,type:kk(e.element)});else if(e instanceof Jk)return Jk.create(kk(e.unwrap()));else if(e instanceof Yk)return Yk.create(kk(e.unwrap()));else if(e instanceof Ik)return Ik.create(e.items.map(e=>kk(e)));else return e}k(kk,`deepPartialify`);var Ak=class e extends B{static{k(this,`ZodObject`)}constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=M.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==N.object){let t=this._getOrReturnCtx(e);return F(t,{code:P.invalid_type,expected:N.object,received:t.parsedType}),I}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Ek&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new rk(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof Ek){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(F(n,{code:P.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new rk(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>ZO.mergeObjectSync(t,e)):ZO.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return R.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:k((e,n)=>{var r;let i=(r=this._def).errorMap?.call(r,e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:R.errToObj(t).message??i}:{message:i}},`errorMap`)}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:k(()=>({...this._def.shape(),...t}),`shape`)})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:k(()=>({...this._def.shape(),...t._def.shape()}),`shape`),typeName:V.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};return M.objectKeys(t).forEach(e=>{t[e]&&this.shape[e]&&(n[e]=this.shape[e])}),new e({...this._def,shape:k(()=>n,`shape`)})}omit(t){let n={};return M.objectKeys(this.shape).forEach(e=>{t[e]||(n[e]=this.shape[e])}),new e({...this._def,shape:k(()=>n,`shape`)})}deepPartial(){return kk(this)}partial(t){let n={};return M.objectKeys(this.shape).forEach(e=>{let r=this.shape[e];t&&!t[e]?n[e]=r:n[e]=r.optional()}),new e({...this._def,shape:k(()=>n,`shape`)})}required(t){let n={};return M.objectKeys(this.shape).forEach(e=>{if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof Jk;)t=t._def.innerType;n[e]=t}}),new e({...this._def,shape:k(()=>n,`shape`)})}keyof(){return Uk(M.objectKeys(this.shape))}};Ak.create=(e,t)=>new Ak({shape:k(()=>e,`shape`),unknownKeys:`strip`,catchall:Ek.create(),typeName:V.ZodObject,...z(t)}),Ak.strictCreate=(e,t)=>new Ak({shape:k(()=>e,`shape`),unknownKeys:`strict`,catchall:Ek.create(),typeName:V.ZodObject,...z(t)}),Ak.lazycreate=(e,t)=>new Ak({shape:e,unknownKeys:`strip`,catchall:Ek.create(),typeName:V.ZodObject,...z(t)});var jk=class extends B{static{k(this,`ZodUnion`)}_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new WO(e.ctx.common.issues));return F(t,{code:P.invalid_union,unionErrors:n}),I}if(k(r,`handleResults`),t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new WO(e));return F(t,{code:P.invalid_union,unionErrors:i}),I}}get options(){return this._def.options}};jk.create=(e,t)=>new jk({options:e,typeName:V.ZodUnion,...z(t)});var Mk=k(e=>e instanceof Vk?Mk(e.schema):e instanceof qk?Mk(e.innerType()):e instanceof Hk?[e.value]:e instanceof Wk?e.options:e instanceof Gk?Object.keys(e.enum):e instanceof Xk?Mk(e._def.innerType):e instanceof Sk?[void 0]:e instanceof Ck?[null]:null,`getDiscriminator`),Nk=class e extends B{static{k(this,`ZodDiscriminatedUnion`)}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==N.object)return F(t,{code:P.invalid_type,expected:N.object,received:t.parsedType}),I;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(F(t,{code:P.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),I)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=Mk(e.shape[t]);if(!n)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:V.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...z(r)})}};function Pk(e,t){let n=HO(e),r=HO(t);if(e===t)return{valid:!0,data:e};if(n===N.object&&r===N.object){let n=M.objectKeys(t),r=M.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Pk(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}else if(n===N.array&&r===N.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Pk(i,a);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}else if(n===N.date&&r===N.date&&+e==+t)return{valid:!0,data:e};else return{valid:!1}}k(Pk,`mergeValues`);var Fk=class extends B{static{k(this,`ZodIntersection`)}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=k((e,r)=>{if($O(e)||$O(r))return I;let i=Pk(e.value,r.value);return i.valid?((ek(e)||ek(r))&&t.dirty(),{status:t.value,value:i.data}):(F(n,{code:P.invalid_intersection_types}),I)},`handleParsed`);return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Fk.create=(e,t,n)=>new Fk({left:e,right:t,typeName:V.ZodIntersection,...z(n)});var Ik=class e extends B{static{k(this,`ZodTuple`)}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==N.array)return F(n,{code:P.invalid_type,expected:N.array,received:n.parsedType}),I;if(n.data.length<this._def.items.length)return F(n,{code:P.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),I;!this._def.rest&&n.data.length>this._def.items.length&&(F(n,{code:P.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new rk(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>ZO.mergeArray(t,e)):ZO.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Ik.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new Ik({items:e,typeName:V.ZodTuple,rest:null,...z(t)})};var Lk=class e extends B{static{k(this,`ZodRecord`)}get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==N.object)return F(n,{code:P.invalid_type,expected:N.object,received:n.parsedType}),I;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new rk(n,e,n.path,e)),value:a._parse(new rk(n,n.data[e],n.path,e))});return n.common.async?ZO.mergeObjectAsync(t,r):ZO.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof B?new e({keyType:t,valueType:n,typeName:V.ZodRecord,...z(r)}):new e({keyType:hk.create(),valueType:t,typeName:V.ZodRecord,...z(n)})}},Rk=class extends B{static{k(this,`ZodMap`)}get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==N.map)return F(n,{code:P.invalid_type,expected:N.map,received:n.parsedType}),I;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new rk(n,e,n.path,[a,`key`])),value:i._parse(new rk(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return I;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}else{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return I;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};Rk.create=(e,t,n)=>new Rk({valueType:t,keyType:e,typeName:V.ZodMap,...z(n)});var zk=class e extends B{static{k(this,`ZodSet`)}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==N.set)return F(n,{code:P.invalid_type,expected:N.set,received:n.parsedType}),I;let r=this._def;r.minSize!==null&&n.data.size<r.minSize.value&&(F(n,{code:P.too_small,minimum:r.minSize.value,type:`set`,inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),r.maxSize!==null&&n.data.size>r.maxSize.value&&(F(n,{code:P.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return I;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}k(a,`finalizeSet`);let o=[...n.data.values()].map((e,t)=>i._parse(new rk(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:R.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:R.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};zk.create=(e,t)=>new zk({valueType:e,minSize:null,maxSize:null,typeName:V.ZodSet,...z(t)});var Bk=class e extends B{static{k(this,`ZodFunction`)}constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==N.function)return F(t,{code:P.invalid_type,expected:N.function,received:t.parsedType}),I;function n(e,n){return YO({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,JO(),GO].filter(e=>!!e),issueData:{code:P.invalid_arguments,argumentsError:n}})}k(n,`makeArgsIssue`);function r(e,n){return YO({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,JO(),GO].filter(e=>!!e),issueData:{code:P.invalid_return_type,returnTypeError:n}})}k(r,`makeReturnsIssue`);let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Kk){let e=this;return L(async function(...t){let o=new WO([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}else{let e=this;return L(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new WO([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new WO([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Ik.create(t).rest(Tk.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||Ik.create([]).rest(Tk.create()),returns:n||Tk.create(),typeName:V.ZodFunction,...z(r)})}},Vk=class extends B{static{k(this,`ZodLazy`)}get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};Vk.create=(e,t)=>new Vk({getter:e,typeName:V.ZodLazy,...z(t)});var Hk=class extends B{static{k(this,`ZodLiteral`)}_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return F(t,{received:t.data,code:P.invalid_literal,expected:this._def.value}),I}return{status:`valid`,value:e.data}}get value(){return this._def.value}};Hk.create=(e,t)=>new Hk({value:e,typeName:V.ZodLiteral,...z(t)});function Uk(e,t){return new Wk({values:e,typeName:V.ZodEnum,...z(t)})}k(Uk,`createZodEnum`);var Wk=class e extends B{static{k(this,`ZodEnum`)}_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return F(t,{expected:M.joinValues(n),received:t.parsedType,code:P.invalid_type}),I}if(this._def.values.indexOf(e.data)===-1){let t=this._getOrReturnCtx(e),n=this._def.values;return F(t,{received:t.data,code:P.invalid_enum_value,options:n}),I}return L(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t){return e.create(t)}exclude(t){return e.create(this.options.filter(e=>!t.includes(e)))}};Wk.create=Uk;var Gk=class extends B{static{k(this,`ZodNativeEnum`)}_parse(e){let t=M.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==N.string&&n.parsedType!==N.number){let e=M.objectValues(t);return F(n,{expected:M.joinValues(e),received:n.parsedType,code:P.invalid_type}),I}if(t.indexOf(e.data)===-1){let e=M.objectValues(t);return F(n,{received:n.data,code:P.invalid_enum_value,options:e}),I}return L(e.data)}get enum(){return this._def.values}};Gk.create=(e,t)=>new Gk({values:e,typeName:V.ZodNativeEnum,...z(t)});var Kk=class extends B{static{k(this,`ZodPromise`)}unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==N.promise&&t.common.async===!1?(F(t,{code:P.invalid_type,expected:N.promise,received:t.parsedType}),I):L((t.parsedType===N.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};Kk.create=(e,t)=>new Kk({type:e,typeName:V.ZodPromise,...z(t)});var qk=class extends B{static{k(this,`ZodEffects`)}innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===V.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:k(e=>{F(n,e),e.fatal?t.abort():t.dirty()},`addIssue`),get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);return n.common.issues.length?{status:`dirty`,value:n.data}:n.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n})):this._def.schema._parseSync({data:e,path:n.path,parent:n})}if(r.type===`refinement`){let e=k(e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e},`executeRefinement`);if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?I:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?I:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`)if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!tk(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>tk(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);M.assertNever(r)}};qk.create=(e,t,n)=>new qk({schema:e,typeName:V.ZodEffects,effect:t,...z(n)}),qk.createWithPreprocess=(e,t,n)=>new qk({schema:t,effect:{type:`preprocess`,transform:e},typeName:V.ZodEffects,...z(n)});var Jk=class extends B{static{k(this,`ZodOptional`)}_parse(e){return this._getType(e)===N.undefined?L(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Jk.create=(e,t)=>new Jk({innerType:e,typeName:V.ZodOptional,...z(t)});var Yk=class extends B{static{k(this,`ZodNullable`)}_parse(e){return this._getType(e)===N.null?L(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Yk.create=(e,t)=>new Yk({innerType:e,typeName:V.ZodNullable,...z(t)});var Xk=class extends B{static{k(this,`ZodDefault`)}_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===N.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};Xk.create=(e,t)=>new Xk({innerType:e,typeName:V.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...z(t)});var Zk=class extends B{static{k(this,`ZodCatch`)}_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return nk(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new WO(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new WO(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Zk.create=(e,t)=>new Zk({innerType:e,typeName:V.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...z(t)});var Qk=class extends B{static{k(this,`ZodNaN`)}_parse(e){if(this._getType(e)!==N.nan){let t=this._getOrReturnCtx(e);return F(t,{code:P.invalid_type,expected:N.nan,received:t.parsedType}),I}return{status:`valid`,value:e.data}}};Qk.create=e=>new Qk({typeName:V.ZodNaN,...z(e)});var $k=Symbol(`zod_brand`),eA=class extends B{static{k(this,`ZodBranded`)}_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},tA=class e extends B{static{k(this,`ZodPipeline`)}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return k(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?I:e.status===`dirty`?(t.dirty(),QO(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})},`handleAsync`)();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?I:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:V.ZodPipeline})}},nA=class extends B{static{k(this,`ZodReadonly`)}_parse(e){let t=this._def.innerType._parse(e);return tk(t)&&(t.value=Object.freeze(t.value)),t}};nA.create=(e,t)=>new nA({innerType:e,typeName:V.ZodReadonly,...z(t)});var rA=k((e,t={},n)=>e?wk.create().superRefine((r,i)=>{if(!e(r)){let e=typeof t==`function`?t(r):typeof t==`string`?{message:t}:t,a=e.fatal??n??!0,o=typeof e==`string`?{message:e}:e;i.addIssue({code:`custom`,...o,fatal:a})}}):wk.create(),`custom`),iA={object:Ak.lazycreate},V;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(V||={});var aA=k((e,t={message:`Input not instance of ${e.name}`})=>rA(t=>t instanceof e,t),`instanceOfType`),oA=hk.create,sA=_k.create,cA=Qk.create,lA=vk.create,uA=yk.create,dA=bk.create,fA=xk.create,pA=Sk.create,mA=Ck.create,hA=wk.create,gA=Tk.create,_A=Ek.create,vA=Dk.create,yA=Ok.create,bA=Ak.create,xA=Ak.strictCreate,SA=jk.create,CA=Nk.create,wA=Fk.create,TA=Ik.create,EA=Lk.create,DA=Rk.create,OA=zk.create,kA=Bk.create,AA=Vk.create,jA=Hk.create,MA=Wk.create,NA=Gk.create,PA=Kk.create,FA=qk.create,IA=Jk.create,LA=Yk.create,RA=qk.createWithPreprocess,zA=tA.create,BA=Object.freeze({__proto__:null,defaultErrorMap:GO,setErrorMap:qO,getErrorMap:JO,makeIssue:YO,EMPTY_PATH:XO,addIssueToContext:F,ParseStatus:ZO,INVALID:I,DIRTY:QO,OK:L,isAborted:$O,isDirty:ek,isValid:tk,isAsync:nk,get util(){return M},get objectUtil(){return VO},ZodParsedType:N,getParsedType:HO,ZodType:B,ZodString:hk,ZodNumber:_k,ZodBigInt:vk,ZodBoolean:yk,ZodDate:bk,ZodSymbol:xk,ZodUndefined:Sk,ZodNull:Ck,ZodAny:wk,ZodUnknown:Tk,ZodNever:Ek,ZodVoid:Dk,ZodArray:Ok,ZodObject:Ak,ZodUnion:jk,ZodDiscriminatedUnion:Nk,ZodIntersection:Fk,ZodTuple:Ik,ZodRecord:Lk,ZodMap:Rk,ZodSet:zk,ZodFunction:Bk,ZodLazy:Vk,ZodLiteral:Hk,ZodEnum:Wk,ZodNativeEnum:Gk,ZodPromise:Kk,ZodEffects:qk,ZodTransformer:qk,ZodOptional:Jk,ZodNullable:Yk,ZodDefault:Xk,ZodCatch:Zk,ZodNaN:Qk,BRAND:$k,ZodBranded:eA,ZodPipeline:tA,ZodReadonly:nA,custom:rA,Schema:B,ZodSchema:B,late:iA,get ZodFirstPartyTypeKind(){return V},coerce:{string:k(e=>hk.create({...e,coerce:!0}),`string`),number:k(e=>_k.create({...e,coerce:!0}),`number`),boolean:k(e=>yk.create({...e,coerce:!0}),`boolean`),bigint:k(e=>vk.create({...e,coerce:!0}),`bigint`),date:k(e=>bk.create({...e,coerce:!0}),`date`)},any:hA,array:yA,bigint:lA,boolean:uA,date:dA,discriminatedUnion:CA,effect:FA,enum:MA,function:kA,instanceof:aA,intersection:wA,lazy:AA,literal:jA,map:DA,nan:cA,nativeEnum:NA,never:_A,null:mA,nullable:LA,number:sA,object:bA,oboolean:k(()=>uA().optional(),`oboolean`),onumber:k(()=>sA().optional(),`onumber`),optional:IA,ostring:k(()=>oA().optional(),`ostring`),pipeline:zA,preprocess:RA,promise:PA,record:EA,set:OA,strictObject:xA,string:oA,symbol:fA,transformer:FA,tuple:TA,undefined:pA,union:SA,unknown:gA,void:vA,NEVER:I,ZodIssueCode:P,quotelessJson:UO,ZodError:WO}),VA=64,HA=RegExp(`^[a-zA-Z0-9_][a-zA-Z0-9-_]*$`);function UA(e){return typeof e!=`string`||e.length>VA?!1:HA.test(e)}k(UA,`isValidWorkflowName`),BA.object({retries:BA.object({delay:BA.number().gte(0).or(BA.string()),limit:BA.number().gte(0),backoff:BA.enum([`constant`,`linear`,`exponential`]).optional()}).strict().optional(),timeout:BA.number().gte(0).or(BA.string()).optional()}).strict();var WA={};ME(WA,{default:()=>KA});var GA=FE(zO(),1);PE(WA,FE(zO(),1));var KA=GA.default;function qA(){let e=KA(`.wrangler`).config(),t=E.join(le.homedir(),`.wrangler`);return OO(t)?t:e}k(qA,`getGlobalWranglerConfigPath`);function JA(e){return()=>{if(!(e.variableName in process.env)||process.env[e.variableName]===void 0)return typeof e.defaultValue==`function`?e.defaultValue():e.defaultValue;switch(process.env[e.variableName]?.toLowerCase()){case`true`:return!0;case`false`:return!1;default:throw new A(`Expected ${e.variableName} to be "true" or "false", but got ${JSON.stringify(process.env[e.variableName])}`)}}}k(JA,`getBooleanEnvironmentVariableFactory`);function H({variableName:e,deprecatedName:t,choices:n,defaultValue:r}){let i=!1;return()=>e in process.env?YA(e,n):t&&t in process.env?(i||(i=!0,console.warn(`Using "${t}" environment variable. This is deprecated. Please use "${e}", instead.`)),YA(t,n)):r?.()}k(H,`getEnvironmentVariableFactory`);function YA(e,t){return XA(t,process.env[e]),process.env[e]}k(YA,`getProcessEnv`);function XA(e,t){if(Array.isArray(e)&&!e.includes(t))throw new A(`Expected ${JSON.stringify(t)} to be one of ${JSON.stringify(e)}`)}k(XA,`assertOneOf`),H({variableName:`WRANGLER_C3_COMMAND`,defaultValue:k(()=>`create cloudflare`,`defaultValue`)});var ZA=H({variableName:`WRANGLER_API_ENVIRONMENT`,defaultValue:k(()=>`production`,`defaultValue`),choices:[`production`,`staging`]}),QA=H({variableName:`CLOUDFLARE_COMPLIANCE_REGION`,choices:[`public`,`fedramp_high`]}),$A=k(e=>{let t=QA();if(t!==void 0&&e?.compliance_region!==void 0&&t!==e.compliance_region)throw new A(yO`
|
|
82
|
-
The compliance region has been set to different values in two places:
|
|
83
|
-
- \`CLOUDFLARE_COMPLIANCE_REGION\` environment variable: \`${t}\`
|
|
84
|
-
- \`compliance_region\` configuration property: \`${e.compliance_region}\`
|
|
85
|
-
`);return t||e?.compliance_region||`public`},`getCloudflareComplianceRegion`);H({variableName:`CLOUDFLARE_API_BASE_URL`,deprecatedName:`CF_API_BASE_URL`});function ej(e){return $A(e)===`fedramp_high`?`.fed`:``}k(ej,`getComplianceRegionSubdomain`);function tj(){return ZA()===`staging`?`.staging`:``}k(tj,`getStagingSubdomain`),H({variableName:`WRANGLER_OUTPUT_FILE_DIRECTORY`}),H({variableName:`WRANGLER_OUTPUT_FILE_PATH`}),H({variableName:`WRANGLER_CI_MATCH_TAG`}),H({variableName:`WRANGLER_CI_OVERRIDE_NAME`}),H({variableName:`WRANGLER_CI_OVERRIDE_NETWORK_MODE_HOST`}),H({variableName:`WRANGLER_CI_GENERATE_PREVIEW_ALIAS`,defaultValue:k(()=>`false`,`defaultValue`),choices:[`true`,`false`]}),H({variableName:`WORKERS_CI_BRANCH`}),H({variableName:`WRANGLER_BUILD_CONDITIONS`}),H({variableName:`WRANGLER_BUILD_PLATFORM`}),H({variableName:`WRANGLER_REGISTRY_PATH`,defaultValue(){return E.join(qA(),`registry`)}}),H({variableName:`WRANGLER_D1_EXTRA_LOCATION_CHOICES`}),H({variableName:`WRANGLER_DOCKER_BIN`,defaultValue(){return`docker`}}),H({variableName:`WRANGLER_TRACE_ID`});var nj=H({variableName:`CLOUDFLARE_ENV`});H({variableName:`OPEN_NEXT_DEPLOY`}),H({variableName:`CLOUDFLARE_CF_FETCH_PATH`}),H({variableName:`WRANGLER_CACHE_DIR`}),H({variableName:`CLOUDFLARED_PATH`});var rj=class{constructor(e){this.description=e}static{k(this,`Diagnostics`)}errors=[];warnings=[];children=[];hasUnexpectedFields=!1;addChild(e){(e.hasErrors()||e.hasWarnings())&&this.children.push(e)}hasErrors(){return this.errors.length>0?!0:this.children.some(e=>e.hasErrors())}hasUnexpectedFieldsInTree(){return this.hasUnexpectedFields?!0:this.children.some(e=>e.hasUnexpectedFieldsInTree())}renderErrors(){return this.render(`errors`)}hasWarnings(){return this.warnings.length>0?!0:this.children.some(e=>e.hasWarnings())}renderWarnings(){return this.render(`warnings`)}render(e){let t=e===`errors`?`hasErrors`:`hasWarnings`;return ij(`${this.description}
|
|
86
|
-
`+this[e].map(e=>`- ${ij(e)}`).join(`
|
|
87
|
-
`)+this.children.map(n=>n[t]()?`
|
|
88
|
-
- `+n.render(e):``).filter(e=>e!==``).join(`
|
|
89
|
-
`))}};function ij(e){return e.split(`
|
|
90
|
-
`).map((e,t)=>(t===0?e:` ${e}`).replace(/^\s*$/,``)).join(`
|
|
91
|
-
`)}k(ij,`indentText`);function aj(e,t,n,r,i,a=`Deprecation`,o=`warning`){let s=`[1m${a}[0m: "${n}":
|
|
92
|
-
${r}`,c=uj(t,n);c!==void 0&&c.field in c.container&&(e[`${o}s`].push(s),i&&delete c.container[c.field])}k(aj,`deprecated`);function oj(e,t,n){let r=uj(t,n);r!==void 0&&r.field in r.container&&!(`WRANGLER_DISABLE_EXPERIMENTAL_WARNING`in process.env)&&e.warnings.push(`"${n}" fields are experimental and may change or break at any time.`)}k(oj,`experimental`);function U(e,t,n,r,i,a,o=e=>e){return i(e,r,n[r],t),(n===t?void 0:n[r])??o(t?.[r])??a}k(U,`inheritable`);function sj(e,t,n,r,i,a,o=e=>e,s){return t&&n!==void 0?lj(e,n,r,i):U(e,n,r,i,a,s,o)}k(sj,`inheritableInWranglerEnvironments`);var cj=k(e=>t=>t?`${t}-${e}`:void 0,`appendEnvName`);function lj(e,t,n,r){return r in n&&e.errors.push(`The "${r}" field is not allowed in named service environments.
|
|
93
|
-
Please remove the field from this environment.`),t[r]}k(lj,`notAllowedInNamedServiceEnvironment`);function W(e,t,n,r,i,a,o,s){return r[a]===void 0?n?.[a]!==void 0&&e.warnings.push(`"${a}" exists at the top level, but not on "env.${i}".
|
|
94
|
-
This is not what you probably want, since "${a}" is not inherited by environments.
|
|
95
|
-
Please add "${a}" to "env.${i}".`):o(e,a,r[a],t),r[a]??s}k(W,`notInheritable`);function uj(e,t){let n=e,r=t.split(`.`);for(let e=0;e<r.length-1;e++){if(!J(n,r[e]))return;n=n[r[e]]}return{container:n,field:r[r.length-1]}}k(uj,`unwindPropertyPath`);var dj=k((e,t,n)=>n!==void 0&&typeof n!=`string`?(e.errors.push(`Expected "${t}" to be of type string but got ${JSON.stringify(n)}.`),!1):!0,`isString`),fj=k((e,t,n)=>typeof n==`string`&&/^$|^[a-z0-9_][a-z0-9-_]*$/.test(n)||n===void 0?!0:(e.errors.push(`Expected "${t}" to be of type string, alphanumeric and lowercase with dashes only but got ${JSON.stringify(n)}.`),!1),`isValidName`),pj=k((e,t,n)=>{let r=!0;(n.includes(`–`)||n.includes(`—`))&&(e.errors.push(`"${t}" field should use ISO-8601 accepted hyphens (-) rather than en-dashes (\u2013) or em-dashes (\u2014).`),r=!1);let i=new Date(n.replaceAll(/–|—/g,`-`));return isNaN(i.getTime())&&(e.errors.push(`"${t}" field should be a valid ISO-8601 date (YYYY-MM-DD), but got ${JSON.stringify(n)}.`),r=!1),r},`isValidDateTimeStringFormat`),mj=k((e,t,n)=>n!==void 0&&(!Array.isArray(n)||n.some(e=>typeof e!=`string`))?(e.errors.push(`Expected "${t}" to be of type string array but got ${JSON.stringify(n)}.`),!1):!0,`isStringArray`),hj=k((...e)=>(t,n,r)=>r!==void 0&&!e.some(e=>r===e)?(t.errors.push(`Expected "${n}" field to be one of ${JSON.stringify(e)} but got ${JSON.stringify(r)}.`),!1):!0,`isOneOf`),gj=k((...e)=>(t,n,r,i)=>{let a=!0;for(let o of e)o(t,n,r,i)||(a=!1);return a},`all`),_j=k((e,...t)=>(n,r,i)=>{if(i===void 0)return!0;for(let i of t)if(e[i]!==void 0)return n.errors.push(`Expected exactly one of the following fields ${JSON.stringify([r,...t])}.`),!1;return!0},`isMutuallyExclusiveWith`),vj=k((e,t,n)=>n!==void 0&&typeof n!=`boolean`?(e.errors.push(`Expected "${t}" to be of type boolean but got ${JSON.stringify(n)}.`),!1):!0,`isBoolean`),yj=k((e,t,n,r,i,a)=>(t&&(t+=`.`),r===void 0?(e.errors.push(`"${t}${n}" is a required field.`),!1):typeof r===i?!(a&&!hj(...a)(e,`${t}${n}`,r,void 0)):(e.errors.push(`Expected "${t}${n}" to be of type ${i} but got ${JSON.stringify(r)}.`),!1)),`validateRequiredProperty`),bj=k((e,t,n)=>{let r=t?`${t}.`:``;if(n.every(e=>e.value===void 0))return e.errors.push(`${n.map(({key:e})=>`"${r}${e}"`).join(` or `)} is required.`),!1;let i=[];for(let e of n){if(typeof e.value===e.type)return!0;i.push(`Expected "${r}${e.key}" to be of type ${e.type} but got ${JSON.stringify(e.value)}.`)}return e.errors.push(...i),!1},`validateAtLeastOnePropertyRequired`),G=k((e,t,n,r,i,a)=>r===void 0?!0:yj(e,t,n,r,i,a),`validateOptionalProperty`),xj=k((e,t,n,r)=>{let i=!0;if(!Array.isArray(n))e.errors.push(`Expected "${t}" to be an array of ${r}s but got ${JSON.stringify(n)}`),i=!1;else for(let a=0;a<n.length;a++)i=yj(e,t,`[${a}]`,n[a],r)&&i;return i},`validateTypedArray`),Sj=k((e,t,n,r)=>n===void 0?!0:xj(e,t,n,r),`validateOptionalTypedArray`),K=k((e,t,n,r)=>J(e,t)&&typeof e[t]===n&&(r===void 0||r.includes(e[t])),`isRequiredProperty`),q=k((e,t,n)=>!J(e,t)||typeof e[t]===n,`isOptionalProperty`),J=k((e,t)=>t in e,`hasProperty`),Y=k((e,t,n,r)=>{let i=new Set(n);for(let e of r)i.delete(e);if(i.size>0){let n=Array.from(i.keys()).map(e=>`"${e}"`);return e.warnings.push(`Unexpected fields found in ${t} field: ${n}`),e.hasUnexpectedFields=!0,!1}return!0},`validateAdditionalProperties`),Cj=k(e=>typeof e!=`object`||!e?[]:wj(e)?e.bindings.map(({name:e})=>e):Tj(e)?e.map(({binding:e})=>e):Ej(e)?e.binding===void 0?Object.keys(e).filter(t=>e[t]!==void 0):[e.binding]:[],`getBindingNames`),wj=k(e=>Ej(e)&&`bindings`in e&&Array.isArray(e.bindings)&&e.bindings.every(e=>Ej(e)&&`name`in e&&typeof e.name==`string`),`isBindingList`),Tj=k(e=>Array.isArray(e)&&e.every(e=>Ej(e)&&`binding`in e&&typeof e.binding==`string`),`isNamespaceList`),Ej=k(e=>typeof e==`object`&&!!e&&!Array.isArray(e),`isRecord`),Dj=k((e,t,n)=>{if(Array.isArray(n)){let r=new Map;Object.entries(n).forEach(([e,t])=>{r.set(t.name,(r.get(t.name)??0)+1)});let i=Array.from(r.entries()).filter(([e,t])=>t>1).map(([e])=>e);if(i.length>0){let n=i.join(`", "`);return e.errors.push(`"${t}" bindings must have unique "name" values; duplicate(s) found: "${n}"`),!1}}return!0},`validateUniqueNameProperty`);function Oj(e){return typeof e==`string`&&/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/.test(e)}k(Oj,`isValidR2BucketName`);var kj=`Bucket names must begin and end with an alphanumeric character, only contain lowercase letters, numbers, and hyphens, and be between 3 and 63 characters long.`,Aj={data_blobs:`Data Blob`,durable_objects:`Durable Object`,kv_namespaces:`KV Namespace`,send_email:`Send Email`,queues:`Queue`,d1_databases:`D1 Database`,vectorize:`Vectorize Index`,ai_search_namespaces:`AI Search Namespace`,ai_search:`AI Search Instance`,hyperdrive:`Hyperdrive Config`,r2_buckets:`R2 Bucket`,logfwdr:`logfwdr`,services:`Worker`,analytics_engine_datasets:`Analytics Engine Dataset`,text_blobs:`Text Blob`,browser:`Browser Run`,ai:`AI`,images:`Images`,stream:`Stream`,media:`Media`,version_metadata:`Worker Version Metadata`,unsafe:`Unsafe Metadata`,vars:`Environment Variable`,wasm_modules:`Wasm Module`,dispatch_namespaces:`Dispatch Namespace`,mtls_certificates:`mTLS Certificate`,workflows:`Workflow`,pipelines:`Pipeline`,secrets_store_secrets:`Secrets Store Secret`,artifacts:`Artifacts`,ratelimits:`Rate Limit`,assets:`Assets`,unsafe_hello_world:`Hello World`,flagship:`Flagship`,worker_loaders:`Worker Loader`,vpc_services:`VPC Service`,vpc_networks:`VPC Network`},jj={plain_text:`Environment Variable`,secret_text:`Environment Variable`,json:`Environment Variable`,kv_namespace:`KV Namespace`,send_email:`Send Email`,wasm_module:`Wasm Module`,text_blob:`Text Blob`,browser:`Browser Run`,ai:`AI`,images:`Images`,stream:`Stream`,version_metadata:`Worker Version Metadata`,data_blob:`Data Blob`,durable_object_namespace:`Durable Object`,workflow:`Workflow`,queue:`Queue`,r2_bucket:`R2 Bucket`,d1:`D1 Database`,vectorize:`Vectorize Index`,ai_search_namespace:`AI Search Namespace`,ai_search:`AI Search Instance`,hyperdrive:`Hyperdrive Config`,service:`Worker`,fetcher:`Service Binding`,analytics_engine:`Analytics Engine Dataset`,dispatch_namespace:`Dispatch Namespace`,mtls_certificate:`mTLS Certificate`,pipeline:`Pipeline`,secrets_store_secret:`Secrets Store Secret`,artifacts:`Artifacts`,logfwdr:`logfwdr`,unsafe_hello_world:`Hello World`,flagship:`Flagship`,ratelimit:`Rate Limit`,worker_loader:`Worker Loader`,vpc_service:`VPC Service`,vpc_network:`VPC Network`,media:`Media`,assets:`Assets`,inherit:`Inherited`};function Mj(e){return e in jj?jj[e]:e.startsWith(`unsafe_`)?`Unsafe Metadata`:e}k(Mj,`getBindingTypeFriendlyName`);var Nj=new Intl.ListFormat(`en-US`),Pj=[`lite`,`basic`,`standard-1`,`standard-2`,`standard-3`,`standard-4`,`dev`,`standard`];function Fj(e){return e.pages_build_output_dir!==void 0}k(Fj,`isPagesConfig`);function Ij(e,t,n,r,i=!1){let a=new rj(`Processing ${t?E.relative(process.cwd(),t):`wrangler`} configuration:`);G(a,``,`legacy_env`,e.legacy_env,`boolean`),G(a,``,`send_metrics`,e.send_metrics,`boolean`),G(a,``,`keep_vars`,e.keep_vars,`boolean`),G(a,``,`pages_build_output_dir`,e.pages_build_output_dir,`string`),G(a,``,`$schema`,e.$schema,`string`);let o=!(r[`legacy-env`]??e.legacy_env??!0);o&&a.warnings.push(`Service environments are deprecated, and will be removed in the future. DO NOT USE IN PRODUCTION.`);let s=typeof r[`dispatch-namespace`]==`string`&&r[`dispatch-namespace`].trim()!==``,c=aM(a,t,e,s,i),l=wO(e,t,n),u=Object.keys(e.env??{});l&&u.length>0&&a.errors.push(yO`
|
|
96
|
-
Redirected configurations cannot include environments but the following have been found:\n${u.map(e=>` - ${e}`).join(`
|
|
97
|
-
`)}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
Such configurations are generated by tools, meaning that one of the tools
|
|
101
|
-
your application is using is generating the incorrect configuration.
|
|
102
|
-
Report this issue to the tool's author so that this can be fixed there.
|
|
103
|
-
`);let d=r.env??nj();be(d===void 0||typeof d==`string`);let f=c;if(d)if(l){if(!Fj(e)&&e.targetEnvironment&&e.targetEnvironment!==d){let t=r.env===void 0?`via the CLOUDFLARE_ENV environment variable`:"via the `--env/-e` CLI argument";throw Error(yO`
|
|
104
|
-
You have specified the environment "${d}" ${t}.
|
|
105
|
-
This does not match the target environment "${e.targetEnvironment}" that was used when building the application.
|
|
106
|
-
Perhaps you need to re-run the custom build of the project with "${d}" as the selected environment?
|
|
107
|
-
`)}}else{let n=new rj(`"env.${d}" environment configuration`),r=e.env?.[d];if(r!==void 0)f=aM(n,t,r,s,i,d,c,o,e),a.addChild(n);else if(!Fj(e)){f=aM(n,t,c,s,i,d,c,o,e);let r=e.env?`The available configured environment names are: ${JSON.stringify(Object.keys(e.env))}
|
|
108
|
-
`:``,l=`No environment found in configuration with name "${d}".
|
|
109
|
-
Before using \`--env=${d}\` there should be an equivalent environment section in the configuration.
|
|
110
|
-
${r}
|
|
111
|
-
Consider adding an environment configuration section to the ${EO(t)} file:
|
|
112
|
-
\`\`\`
|
|
113
|
-
[env.`+d+"]\n```\n";r.length>0?a.errors.push(l):a.warnings.push(l)}}let p={configPath:t,userConfigPath:n,topLevelName:l?e.topLevelName:e.name,definedEnvironments:l?e.definedEnvironments:u,targetEnvironment:l?e.targetEnvironment:d,pages_build_output_dir:Vj(t,e.pages_build_output_dir),legacy_env:!o,send_metrics:e.send_metrics,keep_vars:e.keep_vars,...f,dev:Hj(a,e.dev??{},r),site:Wj(a,t,e,f.main),alias:Gj(a,t,e),wasm_modules:Kj(a,t,`wasm_modules`,e.wasm_modules),text_blobs:Kj(a,t,`text_blobs`,e.text_blobs),data_blobs:Kj(a,t,`data_blobs`,e.data_blobs)};return zM(a,p),Y(a,`top-level`,Object.keys(e),[...Object.keys(p),`env`,`$schema`]),Lj(p,r),{config:p,diagnostics:a}}k(Ij,`normalizeAndValidateConfig`);function Lj(e,t){let n=t.script??e.main;if(typeof n==`string`&&n.endsWith(`.py`)&&(e.no_bundle=!0,e.rules.some(e=>e.type===`PythonModule`)||e.rules.push({type:`PythonModule`,globs:[`**/*.py`]}),!e.compatibility_flags.includes(`python_workers`)))throw new A("The `python_workers` compatibility flag is required to use Python.")}k(Lj,`applyPythonConfig`);function Rj(e,t,n,r){let{command:i,cwd:a,watch_dir:o=`./src`,...s}=n;return Y(e,`build`,Object.keys(s),[]),G(e,`build`,`command`,i,`string`),G(e,`build`,`cwd`,a,`string`),Array.isArray(o)?xj(e,`build.watch_dir`,o,`string`):G(e,`build`,`watch_dir`,o,`string`),{command:i,watch_dir:i&&r?Array.isArray(o)?o.map(e=>E.relative(process.cwd(),E.join(E.dirname(r),`${e}`))):E.relative(process.cwd(),E.join(E.dirname(r),`${o}`)):o,cwd:a}}k(Rj,`normalizeAndValidateBuild`);function zj(e,t){let n=E.dirname(e??`wrangler.toml`);if(t!==void 0)if(typeof t==`string`){let e=E.resolve(n);return E.resolve(e,t)}else return t;else return}k(zj,`normalizeAndValidateMainField`);function Bj(e,t){let n=E.dirname(e??`wrangler.toml`);if(t!==void 0)if(typeof t==`string`){let e=E.resolve(n);return E.resolve(e,t)}else return t;else return}k(Bj,`normalizeAndValidateBaseDirField`);function Vj(e,t){let n=E.dirname(e??`wrangler.toml`);if(t!==void 0)if(typeof t==`string`){let e=E.resolve(n);return E.resolve(e,t)}else return t;else return}k(Vj,`normalizeAndValidatePagesBuildOutputDir`);function Hj(e,t,n){be(typeof n==`object`&&!!n&&!Array.isArray(n));let{localProtocol:r,upstreamProtocol:i,remote:a,enableContainers:o,generateTypes:s}=n;be(r===void 0||r===`http`||r===`https`),be(i===void 0||i===`http`||i===`https`),be(a===void 0||typeof a==`boolean`),be(o===void 0||typeof o==`boolean`),be(s===void 0||typeof s==`boolean`);let{ip:c=process.platform===`win32`?`127.0.0.1`:`localhost`,port:l,inspector_port:u,inspector_ip:d,local_protocol:f=r??`http`,upstream_protocol:p=i??a?`https`:f,host:m,enable_containers:h=o??!0,container_engine:g,generate_types:_=s??!1,...v}=t;return Y(e,`dev`,Object.keys(v),[]),G(e,`dev`,`ip`,c,`string`),G(e,`dev`,`port`,l,`number`),G(e,`dev`,`inspector_port`,u,`number`),G(e,`dev`,`inspector_ip`,d,`string`),G(e,`dev`,`local_protocol`,f,`string`,[`http`,`https`]),G(e,`dev`,`upstream_protocol`,p,`string`,[`http`,`https`]),G(e,`dev`,`host`,m,`string`),G(e,`dev`,`enable_containers`,h,`boolean`),G(e,`dev`,`container_engine`,g,`string`),G(e,`dev`,`generate_types`,_,`boolean`),{ip:c,port:l,inspector_port:u,inspector_ip:d,local_protocol:f,upstream_protocol:p,host:m,enable_containers:h,container_engine:g,generate_types:_}}k(Hj,`normalizeAndValidateDev`);function Uj(e,t,n){return U(e,t,n,`assets`,xM,void 0)}k(Uj,`normalizeAndValidateAssets`);function Wj(e,t,n,r){if(n?.site!==void 0){let{bucket:i,include:a=[],exclude:o=[],...s}=n.site;Y(e,`site`,Object.keys(s),[`entry-point`]),yj(e,`site`,`bucket`,i,`string`),xj(e,`sites.include`,a,`string`),xj(e,`sites.exclude`,o,`string`),G(e,`site`,`entry-point`,n.site[`entry-point`],`string`),aj(e,n,`site.entry-point`,`Delete the \`site.entry-point\` field, then add the top level \`main\` field to your configuration file:
|
|
114
|
-
\`\`\`
|
|
115
|
-
main = "${E.join(String(n.site[`entry-point`])||`workers-site`,E.extname(String(n.site[`entry-point`])||`workers-site`)?``:`index.js`)}"
|
|
116
|
-
\`\`\``,!1,void 0,`warning`);let c=n.site[`entry-point`];return!r&&!c?(e.warnings.push('Because you\'ve defined a [site] configuration, we\'re defaulting to "workers-site" for the deprecated `site.entry-point`field.\nAdd the top level `main` field to your configuration file:\n```\nmain = "workers-site/index.js"\n```'),c=`workers-site`):r&&c&&e.errors.push("Don't define both the `main` and `site.entry-point` fields in your configuration.\nThey serve the same purpose: to point to the entry-point of your worker.\nDelete the deprecated `site.entry-point` field from your config."),t&&c&&(c=E.relative(process.cwd(),E.join(E.dirname(t),c))),{bucket:i,"entry-point":c,include:a,exclude:o}}}k(Wj,`normalizeAndValidateSite`);function Gj(e,t,n){if(n?.alias===void 0)return;if([`string`,`boolean`,`number`].includes(typeof n?.alias)||typeof n?.alias!=`object`){e.errors.push(`Expected alias to be an object, but got ${typeof n?.alias}`);return}let r=!0;for(let[t,i]of Object.entries(n?.alias))typeof i!=`string`&&(e.errors.push(`Expected alias["${t}"] to be a string, but got ${typeof i}`),r=!1);if(r)return n.alias}k(Gj,`normalizeAndValidateAliases`);function Kj(e,t,n,r){if(r===void 0)return;let i={};for(let[a,o]of Object.entries(r))dj(e,`${n}['${a}']`,o,void 0)&&t&&(i[a]=t?E.relative(process.cwd(),E.join(E.dirname(t),o)):o);return i}k(Kj,`normalizeAndValidateModulePaths`);function qj(e){if(!e)return!1;if(typeof e==`string`)return!0;if(typeof e==`object`){if(!J(e,`pattern`)||typeof e.pattern!=`string`)return!1;let t=J(e,`zone_id`)&&typeof e.zone_id==`string`,n=J(e,`zone_name`)&&typeof e.zone_name==`string`,r=J(e,`custom_domain`)&&typeof e.custom_domain==`boolean`,i=J(e,`enabled`)&&typeof e.enabled==`boolean`,a=J(e,`previews_enabled`)&&typeof e.previews_enabled==`boolean`;if([t,n,r,i,a].filter(Boolean).length!==Object.keys(e).length-1||t&&n||(i||a)&&!r)return!1;if(t||n||r)return!0}return!1}k(qj,`isValidRouteValue`);function Jj(e,t){return t.account_id===``&&(e.warnings.push(`The "account_id" field in your configuration is an empty string and will be ignored.
|
|
117
|
-
Please remove the "account_id" field from your configuration.`),t.account_id=void 0),t}k(Jj,`mutateEmptyStringAccountIDValue`);function Yj(e,t){return t.route===``&&(e.warnings.push(`The "route" field in your configuration is an empty string and will be ignored.
|
|
118
|
-
Please remove the "route" field from your configuration.`),t.route=void 0),t}k(Yj,`mutateEmptyStringRouteValue`);var Xj=k((e,t,n)=>n!==void 0&&!qj(n)?(e.errors.push(`Expected "${t}" to be either a string, or an object with shape { pattern, custom_domain, zone_id | zone_name, enabled, previews_enabled }, but got ${JSON.stringify(n)}.`),!1):!0,`isRoute`),Zj=k((e,t,n)=>{if(n===void 0)return!0;if(!Array.isArray(n))return e.errors.push(`Expected "${t}" to be an array but got ${JSON.stringify(n)}.`),!1;let r=[];for(let e of n)qj(e)||r.push(e);return r.length>0&&e.errors.push(`Expected "${t}" to be an array of either strings or objects with the shape { pattern, custom_domain, zone_id | zone_name, enabled, previews_enabled }, but these weren't valid: ${JSON.stringify(r,null,2)}.`),r.length===0},`isRouteArray`);function Qj(e,t,n){return U(e,t,Yj(e,n),`route`,Xj,void 0)}k(Qj,`normalizeAndValidateRoute`);function $j(e,t,n){return U(e,t,n,`routes`,gj(Zj,_j(n,`route`)),void 0)}k($j,`validateRoutes`);function eM(e,t,n){if(n.placement){let r=n.placement,i=`hint`in r,a=`region`in r,o=`host`in r,s=`hostname`in r,c=a||o||s;if(i&&c)return e.errors.push(`"placement" cannot have both "hint" (smart format) and "region"/"host"/"hostname" (targeted format) fields`),U(e,t,n,`placement`,()=>!0,void 0);if(i){yj(e,`placement`,`mode`,r.mode,`string`,[`off`,`smart`]);let t=r.mode,n=r.hint;n!==void 0&&typeof n!=`string`&&e.errors.push(`"placement.hint" must be a string when "placement.mode" is "${t}"`),n&&t!==`smart`&&e.errors.push(`"placement.hint" can only be set when "placement.mode" is "smart"`)}else if(c){if(G(e,`placement`,`mode`,r.mode,`string`,[`off`,`targeted`]),a&&G(e,`placement`,`region`,r.region,`string`),o&&G(e,`placement`,`host`,r.host,`string`),s&&G(e,`placement`,`hostname`,r.hostname,`string`),[a,o,s].filter(Boolean).length>1){let t=[];a&&t.push(`region`),o&&t.push(`host`),s&&t.push(`hostname`),e.errors.push(`"placement" fields ${t.map(e=>`"${e}"`).join(`, `)} are mutually exclusive. Only one can be specified.`)}}else yj(e,`placement`,`mode`,r.mode,`string`,[`off`,`smart`,`targeted`])}return U(e,t,n,`placement`,()=>!0,void 0)}k(eM,`normalizeAndValidatePlacement`);function tM(e,t,n){if(typeof n!=`object`||!n)return e.errors.push(`"${t}" should be an object but got ${JSON.stringify(n)}.`),!1;let r=!0;return r&&=yj(e,t,`service`,n.service,`string`),r&&=G(e,t,`environment`,n.environment,`string`),r}k(tM,`validateTailConsumer`);var nM=k((e,t,n)=>{if(!n)return!0;if(!Array.isArray(n))return e.errors.push(`Expected "${t}" to be an array but got ${JSON.stringify(n)}.`),!1;let r=!0;for(let i=0;i<n.length;i++)r=tM(e,`${t}[${i}]`,n[i])&&r;return r},`validateTailConsumers`);function rM(e,t,n){return typeof n!=`object`||!n||Array.isArray(n)?(e.errors.push(`"${t}" should be an object but got ${JSON.stringify(n)}.`),!1):yj(e,t,`service`,n.service,`string`)}k(rM,`validateStreamingTailConsumer`);var iM=k((e,t,n)=>{if(!n)return!0;if(!Array.isArray(n))return e.errors.push(`Expected "${t}" to be an array but got ${JSON.stringify(n)}.`),!1;let r=!0;for(let i=0;i<n.length;i++)r=rM(e,`${t}[${i}]`,n[i])&&r;return r},`validateStreamingTailConsumers`);function aM(e,t,n,r,i,a=`top level`,o,s,c){aj(e,n,`node_compat`,'The "node_compat" field is no longer supported as of Wrangler v4. Instead, use the `nodejs_compat` compatibility flag. This includes the functionality from legacy `node_compat` polyfills and natively implemented Node.js APIs. See https://developers.cloudflare.com/workers/runtime-apis/nodejs for more information.',!0,`Removed`,`error`),oj(e,n,`unsafe`),oj(e,n,`secrets`);let l=Qj(e,o,n),u=sj(e,s,o,Jj(e,n),`account_id`,dj,void 0,void 0),d=$j(e,o,n),f=U(e,o,n,`workers_dev`,vj,void 0),p=U(e,o,n,`preview_urls`,vj,void 0),m=Rj(e,n,n.build??o?.build??{},t),h={account_id:u,compatibility_date:U(e,o,n,`compatibility_date`,qM,void 0),compatibility_flags:U(e,o,n,`compatibility_flags`,mj,[]),jsx_factory:U(e,o,n,`jsx_factory`,dj,`React.createElement`),jsx_fragment:U(e,o,n,`jsx_fragment`,dj,`React.Fragment`),tsconfig:oM(e,o,n,t),rules:sM(e,o,n,a),name:sj(e,s,o,n,`name`,r?dj:fj,cj(a),void 0),main:i?U(e,o,n,`main`,dj,void 0):zj(t,U(e,o,n,`main`,dj,void 0)),find_additional_modules:U(e,o,n,`find_additional_modules`,vj,void 0),preserve_file_names:U(e,o,n,`preserve_file_names`,vj,void 0),base_dir:Bj(t,U(e,o,n,`base_dir`,dj,void 0)),route:l,routes:d,triggers:U(e,o,n,`triggers`,cM,{crons:void 0}),assets:Uj(e,o,n),limits:tN(e,o,n),placement:eM(e,o,n),build:m,workers_dev:f,preview_urls:p,vars:W(e,o,c,n,a,`vars`,fM(a),{}),secrets:W(e,o,c,n,a,`secrets`,pM(a),void 0),define:W(e,o,c,n,a,`define`,dM(a),{}),durable_objects:W(e,o,c,n,a,`durable_objects`,mM(a,gM),{bindings:[]}),workflows:W(e,o,c,n,a,`workflows`,gj(X(a,vM),Dj),[]),migrations:U(e,o,n,`migrations`,rN,[]),kv_namespaces:W(e,o,c,n,a,`kv_namespaces`,X(a,OM),[]),cloudchamber:W(e,o,c,n,a,`cloudchamber`,DM,{}),containers:W(e,o,c,n,a,`containers`,EM(a,n.name,t),void 0),send_email:W(e,o,c,n,a,`send_email`,X(a,kM),[]),queues:W(e,o,c,n,a,`queues`,GM(a),{producers:[],consumers:[]}),r2_buckets:W(e,o,c,n,a,`r2_buckets`,X(a,jM),[]),d1_databases:W(e,o,c,n,a,`d1_databases`,X(a,MM),[]),vectorize:W(e,o,c,n,a,`vectorize`,X(a,NM),[]),ai_search_namespaces:W(e,o,c,n,a,`ai_search_namespaces`,X(a,PM),[]),ai_search:W(e,o,c,n,a,`ai_search`,X(a,FM),[]),hyperdrive:W(e,o,c,n,a,`hyperdrive`,X(a,IM),[]),services:W(e,o,c,n,a,`services`,X(a,BM),[]),analytics_engine_datasets:W(e,o,c,n,a,`analytics_engine_datasets`,X(a,VM),[]),dispatch_namespaces:W(e,o,c,n,a,`dispatch_namespaces`,X(a,HM),[]),mtls_certificates:W(e,o,c,n,a,`mtls_certificates`,X(a,WM),[]),tail_consumers:W(e,o,c,n,a,`tail_consumers`,nM,void 0),streaming_tail_consumers:W(e,o,c,n,a,`streaming_tail_consumers`,iM,void 0),unsafe:W(e,o,c,n,a,`unsafe`,hM(a),{}),browser:W(e,o,c,n,a,`browser`,SM(a),void 0),ai:W(e,o,c,n,a,`ai`,CM(a),void 0),images:W(e,o,c,n,a,`images`,SM(a),void 0),stream:W(e,o,c,n,a,`stream`,SM(a),void 0),media:W(e,o,c,n,a,`media`,SM(a),void 0),pipelines:W(e,o,c,n,a,`pipelines`,X(a,JM),[]),secrets_store_secrets:W(e,o,c,n,a,`secrets_store_secrets`,X(a,YM),[]),artifacts:W(e,o,c,n,a,`artifacts`,X(a,XM),[]),unsafe_hello_world:W(e,o,c,n,a,`unsafe_hello_world`,X(a,ZM),[]),flagship:W(e,o,c,n,a,`flagship`,X(a,QM),[]),worker_loaders:W(e,o,c,n,a,`worker_loaders`,X(a,$M),[]),ratelimits:W(e,o,c,n,a,`ratelimits`,X(a,eN),[]),vpc_services:W(e,o,c,n,a,`vpc_services`,X(a,LM),[]),vpc_networks:W(e,o,c,n,a,`vpc_networks`,X(a,RM),[]),version_metadata:W(e,o,c,n,a,`version_metadata`,wM(a),void 0),logfwdr:U(e,o,n,`logfwdr`,yM(a),{bindings:[]}),no_bundle:U(e,o,n,`no_bundle`,vj,void 0),minify:U(e,o,n,`minify`,vj,void 0),keep_names:U(e,o,n,`keep_names`,vj,void 0),first_party_worker:U(e,o,n,`first_party_worker`,vj,void 0),logpush:U(e,o,n,`logpush`,vj,void 0),upload_source_maps:U(e,o,n,`upload_source_maps`,vj,void 0),observability:U(e,o,n,`observability`,iN,void 0),cache:U(e,o,n,`cache`,aN,void 0),compliance_region:U(e,o,n,`compliance_region`,hj(`public`,`fedramp_high`),void 0),python_modules:U(e,o,n,`python_modules`,sN,{exclude:[`**/*.pyc`]}),previews:U(e,o,n,`previews`,nN(a),void 0)};return oN(e,h.durable_objects,h.migrations,t),a!==`top level`&&Y(e,`env.`+a,Object.keys(n),Object.keys(h)),h}k(aM,`normalizeAndValidateEnvironment`);function oM(e,t,n,r){let i=U(e,t,n,`tsconfig`,dj,void 0);return r&&i?E.relative(process.cwd(),E.join(E.dirname(r),i)):i}k(oM,`validateAndNormalizeTsconfig`);var sM=k((e,t,n,r)=>U(e,t,n,`rules`,lM(r),[]),`validateAndNormalizeRules`),cM=k((e,t,n)=>{if(n==null)return!0;if(typeof n!=`object`)return e.errors.push(`Expected "${t}" to be of type object but got ${JSON.stringify(n)}.`),!1;let r=!0;return`crons`in n&&!Array.isArray(n.crons)&&(e.errors.push(`Expected "${t}.crons" to be of type array, but got ${JSON.stringify(n)}.`),r=!1),r=Y(e,t,Object.keys(n),[`crons`])&&r,r},`validateTriggers`),lM=k(e=>(t,n,r,i)=>{if(!r)return!0;let a=i===void 0?`${n}`:`env.${e}.${n}`;if(!Array.isArray(r))return t.errors.push(`The field "${a}" should be an array but got ${JSON.stringify(r)}.`),!1;let o=!0;for(let e=0;e<r.length;e++)o=uM(t,`${a}[${e}]`,r[e],i)&&o;return o},`validateRules`),uM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"${t}" should be an object but got ${JSON.stringify(n)}.`),!1;let r=!0,i=n;return K(i,`type`,`string`,[`ESModule`,`CommonJS`,`CompiledWasm`,`Text`,`Data`])||(e.errors.push(`bindings should have a string "type" field, which contains one of "ESModule", "CommonJS", "CompiledWasm", "Text", or "Data".`),r=!1),r=xj(e,`${t}.globs`,i.globs,`string`)&&r,q(i,`fallthrough`,`boolean`)||(e.errors.push(`the field "fallthrough", when present, should be a boolean.`),r=!1),r},`validateRule`),dM=k(e=>(t,n,r,i)=>{let a=!0,o=i===void 0?`${n}`:`env.${e}.${n}`;if(typeof r==`object`&&r)for(let e in r)typeof r[e]!=`string`&&(t.errors.push(`The field "${o}.${e}" should be a string but got ${JSON.stringify(r[e])}.`),a=!1);else r!==void 0&&(t.errors.push(`The field "${o}" should be an object but got ${JSON.stringify(r)}.
|
|
119
|
-
`),a=!1);let s=Object.keys(i?.define??{});if(s.length>0&&typeof r==`object`&&r){let n=i===void 0?[]:Object.keys(r);for(let n of s)n in r||t.warnings.push(`"define.${n}" exists at the top level, but not on "${o}".
|
|
120
|
-
This is not what you probably want, since "define" configuration is not inherited by environments.
|
|
121
|
-
Please add "define.${n}" to "env.${e}".`);for(let r of n)s.includes(r)||t.warnings.push(`"${r}" exists on "env.${e}", but not on the top level.
|
|
122
|
-
This is not what you probably want, since "define" configuration within environments can only override existing top level "define" configuration
|
|
123
|
-
Please remove "${o}.${r}", or add "define.${r}".`)}return a},`validateDefines`),fM=k(e=>(t,n,r,i)=>{let a=!0,o=i===void 0?`${n}`:`env.${e}.${n}`;if(r!==void 0)if(typeof r!=`object`||!r)t.errors.push(`The field "${o}" should be an object but got ${JSON.stringify(r)}.
|
|
124
|
-
`),a=!1;else for(let[e,n]of Object.entries(r))n instanceof Date&&(t.errors.push(`The field "${o}.${e}" is a TOML date, which is not supported. Please use a string instead, e.g. ${e} = "2025-12-19".`),a=!1);let s=Object.keys(i?.vars??{});if(s.length>0&&typeof r==`object`&&r)for(let n of s)n in r||t.warnings.push(`"vars.${n}" exists at the top level, but not on "${o}".
|
|
125
|
-
This is not what you probably want, since "vars" configuration is not inherited by environments.
|
|
126
|
-
Please add "vars.${n}" to "env.${e}".`);return a},`validateVars`),pM=k(e=>(t,n,r,i)=>{let a=i===void 0?`${n}`:`env.${e}.${n}`;if(r===void 0)return!0;if(typeof r!=`object`||!r||Array.isArray(r))return t.errors.push(`The field "${a}" should be an object but got ${JSON.stringify(r)}.`),!1;let o=!0;return Y(t,a,Object.keys(r),[`required`]),o=Sj(t,`${a}.required`,r.required,`string`)&&o,o},`validateSecrets`),mM=k((e,t)=>(n,r,i,a)=>{let o=!0,s=a===void 0?`${r}`:`env.${e}.${r}`;if(i!==void 0){if(typeof i!=`object`||!i||Array.isArray(i))n.errors.push(`The field "${s}" should be an object but got ${JSON.stringify(i)}.`),o=!1;else if(!J(i,`bindings`))n.errors.push(`The field "${s}" is missing the required "bindings" property.`),o=!1;else if(!Array.isArray(i.bindings))n.errors.push(`The field "${s}.bindings" should be an array but got ${JSON.stringify(i.bindings)}.`),o=!1;else for(let e=0;e<i.bindings.length;e++){let r=i.bindings[e],c=new rj(`"${s}.bindings[${e}]": ${JSON.stringify(r)}`);o=t(c,`${s}.bindings[${e}]`,r,a)&&o,n.addChild(c)}let c=Cj(a?.[r]);if(o&&c.length>0){let t=new Set(Cj(i)),a=c.filter(e=>!t.has(e));a.length>0&&n.warnings.push(`The following bindings are at the top level, but not on "env.${e}".
|
|
127
|
-
This is not what you probably want, since "${r}" configuration is not inherited by environments.
|
|
128
|
-
Please add a binding for each to "${s}.bindings":
|
|
129
|
-
`+a.map(e=>`- ${e}`).join(`
|
|
130
|
-
`))}}return o},`validateBindingsProperty`),hM=k(e=>(t,n,r,i)=>{let a=i===void 0?`${n}`:`env.${e}.${n}`;if(typeof r!=`object`||!r||Array.isArray(r))return t.errors.push(`The field "${a}" should be an object but got ${JSON.stringify(r)}.`),!1;if(J(r,`bindings`)&&r.bindings!==void 0&&!mM(e,TM)(t,n,r,i))return!1;if(J(r,`metadata`)&&r.metadata!==void 0&&(typeof r.metadata!=`object`||r.metadata===null||Array.isArray(r.metadata)))return t.errors.push(`The field "${a}.metadata" should be an object but got ${JSON.stringify(r.metadata)}.`),!1;if(J(r,`capnp`)&&r.capnp!==void 0){if(typeof r.capnp!=`object`||r.capnp===null||Array.isArray(r.capnp))return t.errors.push(`The field "${a}.capnp" should be an object but got ${JSON.stringify(r.capnp)}.`),!1;if(J(r.capnp,`compiled_schema`)){if(J(r.capnp,`base_path`)||J(r.capnp,`source_schemas`))return t.errors.push(`The field "${a}.capnp" cannot contain both "compiled_schema" and one of "base_path" or "source_schemas".`),!1;if(typeof r.capnp.compiled_schema!=`string`)return t.errors.push(`The field "${a}.capnp.compiled_schema", when present, should be a string but got ${JSON.stringify(r.capnp.compiled_schema)}.`),!1}else if(K(r.capnp,`base_path`,`string`)||t.errors.push(`The field "${a}.capnp.base_path", when present, should be a string but got ${JSON.stringify(r.capnp.base_path)}`),!xj(t,`${a}.capnp.source_schemas`,r.capnp.source_schemas,`string`))return!1}return Y(t,n,Object.keys(r),[`bindings`,`metadata`,`capnp`]),!0},`validateUnsafeSettings`),gM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`Expected "${t}" to be an object but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`name`,`string`)||(e.errors.push(`binding should have a string "name" field.`),r=!1),K(n,`class_name`,`string`)||(e.errors.push(`binding should have a string "class_name" field.`),r=!1),q(n,`script_name`,`string`)||(e.errors.push(`the field "script_name", when present, should be a string.`),r=!1),q(n,`environment`,`string`)||(e.errors.push(`the field "environment", when present, should be a string.`),r=!1),`environment`in n&&!(`script_name`in n)&&(e.errors.push(`binding should have a "script_name" field if "environment" is present.`),r=!1),Z(n,t,e)||(r=!1),Y(e,t,Object.keys(n),[`class_name`,`environment`,`name`,`script_name`]),r},`validateDurableObjectBinding`),_M=`Workflow names must be 1-64 characters long, start with a letter, number, or underscore, and may only contain letters, numbers, underscores, or hyphens.`,vM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"workflows" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;if(K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings should have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),K(n,`name`,`string`)?UA(n.name)||(e.errors.push(`"${t}" binding "name" field is invalid. ${_M}`),r=!1):(e.errors.push(`"${t}" bindings should have a string "name" field but got ${JSON.stringify(n)}.`),r=!1),K(n,`class_name`,`string`)||(e.errors.push(`"${t}" bindings should have a string "class_name" field but got ${JSON.stringify(n)}.`),r=!1),q(n,`script_name`,`string`)||(e.errors.push(`"${t}" bindings should, optionally, have a string "script_name" field but got ${JSON.stringify(n)}.`),r=!1),q(n,`remote`,`boolean`)||(e.errors.push(`"${t}" bindings should, optionally, have a boolean "remote" field but got ${JSON.stringify(n)}.`),r=!1),J(n,`limits`)&&n.limits!==void 0)if(typeof n.limits!=`object`||n.limits===null||Array.isArray(n.limits))e.errors.push(`"${t}" bindings should, optionally, have an object "limits" field but got ${JSON.stringify(n)}.`),r=!1;else{let i=n.limits;i.steps!==void 0&&(typeof i.steps!=`number`||!Number.isInteger(i.steps)||i.steps<1?(e.errors.push(`"${t}" bindings "limits.steps" field must be a positive integer but got ${JSON.stringify(i.steps)}.`),r=!1):i.steps>25e3&&e.warnings.push(`"${t}" has a step limit of ${i.steps}, which exceeds the production maximum of 25,000. This configuration may not work when deployed.`)),Y(e,`${t}.limits`,Object.keys(i),[`steps`])}return Y(e,t,Object.keys(n),[`binding`,`name`,`class_name`,`script_name`,`remote`,`limits`]),r},`validateWorkflowBinding`),yM=k(e=>(t,n,r,i)=>mM(e,bM)(t,n,r,i)?r?.schema===void 0?!0:(t.errors.push(`"${n}" binding "schema" property has been replaced with the "unsafe.capnp" object, which expects a "base_path" and an array of "source_schemas" to compile, or a "compiled_schema" property.`),!1):!1,`validateCflogfwdrObject`),bM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`Expected "${t}" to be an object but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`name`,`string`)||(e.errors.push(`binding should have a string "name" field.`),r=!1),K(n,`destination`,`string`)||(e.errors.push(`binding should have a string "destination" field.`),r=!1),Y(e,t,Object.keys(n),[`destination`,`name`]),r},`validateCflogfwdrBinding`),xM=k((e,t,n)=>{if(n===void 0)return!0;if(typeof n!=`object`||!n)return e.errors.push(`"${t}" should be an object, but got value ${JSON.stringify(t)} of type ${typeof n}`),!1;let r=!0;return r=G(e,t,`directory`,n.directory,`string`)&&r,r=G(e,t,`binding`,n.binding,`string`)&&r,r=G(e,t,`html_handling`,n.html_handling,`string`,[`auto-trailing-slash`,`force-trailing-slash`,`drop-trailing-slash`,`none`])&&r,r=G(e,t,`not_found_handling`,n.not_found_handling,`string`,[`single-page-application`,`404-page`,`none`])&&r,n.run_worker_first!==void 0&&(typeof n.run_worker_first==`boolean`?r=G(e,t,`run_worker_first`,n.run_worker_first,`boolean`)&&r:Array.isArray(n.run_worker_first)?r=Sj(e,`assets.run_worker_first`,n.run_worker_first,`string`)&&r:(e.errors.push(`The field "${t}.run_worker_first" should be an array of strings or a boolean, but got ${JSON.stringify(n.run_worker_first)}.`),r=!1)),r=Y(e,t,Object.keys(n),[`directory`,`binding`,`html_handling`,`not_found_handling`,`run_worker_first`])&&r,r},`validateAssetsConfig`),SM=k(e=>(t,n,r,i)=>{let a=i===void 0?`${n}`:`env.${e}.${n}`;if(typeof r!=`object`||!r||Array.isArray(r))return t.errors.push(`The field "${a}" should be an object but got ${JSON.stringify(r)}.`),!1;let o=!0;return K(r,`binding`,`string`)||(t.errors.push(`binding should have a string "binding" field.`),o=!1),Z(r,n,t)||(o=!1),Y(t,n,Object.keys(r),[`binding`,`remote`]),o},`validateNamedSimpleBinding`),CM=k(e=>(t,n,r,i)=>{let a=i===void 0?`${n}`:`env.${e}.${n}`;if(typeof r!=`object`||!r||Array.isArray(r))return t.errors.push(`The field "${a}" should be an object but got ${JSON.stringify(r)}.`),!1;let o=!0;return K(r,`binding`,`string`)||(t.errors.push(`binding should have a string "binding" field.`),o=!1),Z(r,n,t)||(o=!1),o},`validateAIBinding`),wM=k(e=>(t,n,r,i)=>{let a=i===void 0?`${n}`:`env.${e}.${n}`;if(typeof r!=`object`||!r||Array.isArray(r))return t.errors.push(`The field "${a}" should be an object but got ${JSON.stringify(r)}.`),!1;let o=!0;return K(r,`binding`,`string`)||(t.errors.push(`binding should have a string "binding" field.`),o=!1),o},`validateVersionMetadataBinding`),TM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`Expected ${t} to be an object but got ${JSON.stringify(n)}.`),!1;let r=!0;return K(n,`name`,`string`)||(e.errors.push(`binding should have a string "name" field.`),r=!1),K(n,`type`,`string`)?([`plain_text`,`secret_text`,`json`,`wasm_module`,`data_blob`,`text_blob`,`browser`,`ai`,`ai_search_namespace`,`ai_search`,`kv_namespace`,`durable_object_namespace`,`d1_database`,`r2_bucket`,`service`,`logfwdr`,`mtls_certificate`,`pipeline`,`worker_loader`,`vpc_service`,`flagship`,`vpc_network`,`stream`,`media`,`artifacts`].includes(n.type)&&e.warnings.push(`The binding type "${n.type}" is directly supported by wrangler.
|
|
131
|
-
Consider migrating this unsafe binding to a format for '${n.type}' bindings that is supported by wrangler for optimal support.
|
|
132
|
-
For more details, see https://developers.cloudflare.com/workers/cli-wrangler/configuration`),n.type===`metadata`&&K(n,`name`,`string`)&&e.warnings.push(`The deployment object in the metadata binding is now deprecated. Please switch using the version_metadata binding for access to version specific fields: https://developers.cloudflare.com/workers/runtime-apis/bindings/version-metadata`)):(e.errors.push(`binding should have a string "type" field.`),r=!1),r},`validateUnsafeBinding`),X=k((e,t)=>(n,r,i,a)=>{if(i===void 0)return!0;let o=a===void 0?`${r}`:`env.${e}.${r}`;if(!Array.isArray(i))return n.errors.push(`The field "${o}" should be an array but got ${JSON.stringify(i)}.`),!1;let s=!0;for(let e=0;e<i.length;e++)s=t(n,`${o}[${e}]`,i[e],a)&&s;let c=a?.[r];if(Array.isArray(c)){let t=c.map(e=>e.binding);if(t.length>0){let a=new Set(i.map(e=>e.binding));for(let i of t)a.has(i)||n.warnings.push(`There is a ${r} binding with name "${i}" at the top level, but not on "env.${e}".
|
|
133
|
-
This is not what you probably want, since "${r}" configuration is not inherited by environments.
|
|
134
|
-
Please add a binding for "${i}" to "env.${e}.${r}.bindings".`)}}return s},`validateBindingArray`);function EM(e,t,n){return(r,i,a,o)=>{if(!a)return!0;if(!Array.isArray(a))return r.errors.push(`"containers" field should be an array, but got ${JSON.stringify(a)}`),!1;for(let s of a){if(q(a,`name`,`string`)||r.errors.push(`Field "name", when present, should be a string, but got ${JSON.stringify(a)}`),yj(r,i,`class_name`,s.class_name,`string`),G(r,i,`name`,s.name,`string`),!s.name){(!t||!q(s,`class_name`,`string`))&&r.errors.push(`Must have either a top level "name" and "containers.class_name" field defined, or have field "containers.name" defined.`);let n=`${t}-${s.class_name}`;n+=o===void 0?``:`-${e}`,s.name=n.toLowerCase().replace(/ /g,`-`)}!s.configuration?.image&&!s.image&&r.errors.push(`"containers.image" field must be defined for each container app. This should be the path to your Dockerfile or an image URI pointing to the Cloudflare registry.`),`configuration`in s&&(r.warnings.push(`"containers.configuration" is deprecated. Use top level "containers" fields instead. "configuration.image" should be "image", limits should be set via "instance_type".`),(typeof s.configuration!=`object`||Array.isArray(s.configuration))&&r.errors.push(`"containers.configuration" should be an object`),s.instance_type&&(s.configuration.disk!==void 0||s.configuration.vcpu!==void 0||s.configuration.memory_mib!==void 0)&&r.errors.push(`Cannot set custom limits via "containers.configuration" and use preset "instance_type" limits at the same time.`)),G(r,i,`image_build_context`,s.image_build_context,`string`);let c=s.image??s.configuration?.image,l;try{if(cN(c,n)){let e=n?E.dirname(n):process.cwd();c=E.resolve(e,c),l=s.image_build_context?E.resolve(e,s.image_build_context):E.dirname(c)}}catch(e){if(e instanceof Error&&e.message)r.errors.push(e.message);else throw e}if(s.image=c,s.image_build_context=l,s.rollout_step_percentage!==void 0){let e=s.rollout_step_percentage;if(typeof e==`number`)[5,10,20,25,50,100].includes(e)||r.errors.push(`"containers.rollout_step_percentage" must be one of [5, 10, 20, 25, 50, 100], but got ${e}`);else if(Array.isArray(e)){let t=[],n=[],i=0,a=!0;for(let o of e)typeof o==`number`?((o<10||o>100)&&n.push(o),a&&i>0&&o<e[i-1]&&(r.errors.push(`"containers.rollout_step_percentage" array elements must be in ascending order, but got "${e}"`),a=!1),i===e.length-1&&o!==100&&r.errors.push(`The final step in "containers.rollout_step_percentage" must be 100, but got "${o}"`),i++):t.push(o);t.length&&r.errors.push(`"containers.rollout_step_percentage" array elements must be numbers, but got "${t.join(`, `)}"`),n.length&&r.errors.push(`"containers.rollout_step_percentage" array elements must be between 10 and 100, but got "${n.join(`, `)}"`)}else r.errors.push(`"containers.rollout_step_percentage" must be a number or array of numbers, but got "${e}"`)}if(G(r,i,`rollout_kind`,s.rollout_kind,`string`,[`full_auto`,`full_manual`,`none`]),(!q(s,`rollout_active_grace_period`,`number`)||s.rollout_active_grace_period<0)&&r.errors.push(`"containers.rollout_active_grace_period" field should be a positive number but got "${s.rollout_active_grace_period}"`),G(r,i,`max_instances`,s.max_instances,`number`),s.max_instances!==void 0&&s.max_instances<0&&r.errors.push(`"containers.max_instances" field should be a positive number, but got ${s.max_instances}`),s.rollout_step_percentage!==void 0&&s.max_instances!==void 0&&Array.isArray(s.rollout_step_percentage)){let e=s.rollout_step_percentage.length;e>s.max_instances&&r.errors.push(`"containers.rollout_step_percentage" cannot have more steps (${e}) than "max_instances" (${s.max_instances})`)}G(r,i,`image_vars`,s.image_vars,`object`),G(r,i,`scheduling_policy`,s.scheduling_policy,`string`,[`regional`,`moon`,`default`]),`instances`in s&&r.warnings.push(`"containers.instances" is deprecated. Use "containers.max_instances" instead.`),`durable_objects`in s&&r.warnings.push(`"containers.durable_objects" is deprecated. Use the "class_name" field instead.`),`wrangler_ssh`in s&&r.warnings.push(`"containers.wrangler_ssh" is deprecated. Use "containers.ssh" instead.`),`unsafe`in s&&(s.unsafe&&typeof s.unsafe!=`object`||Array.isArray(s.unsafe))&&r.errors.push(`The field "containers.unsafe" should be an object but got ${JSON.stringify(typeof s.unsafe)}.`),Y(r,i,Object.keys(s),[`name`,`instances`,`max_instances`,`image`,`image_build_context`,`image_vars`,`class_name`,`scheduling_policy`,`instance_type`,`ssh`,`wrangler_ssh`,`authorized_keys`,`trusted_user_ca_keys`,`configuration`,`constraints`,`affinities`,`rollout_step_percentage`,`rollout_kind`,`durable_objects`,`rollout_active_grace_period`,`unsafe`]),`configuration`in s&&Y(r,`${i}.configuration`,Object.keys(s.configuration),[`image`,`secrets`,`labels`,`disk`,`vcpu`,`memory_mib`]);let u,d;if(`ssh`in s?(u=`ssh`,d=s.ssh,s.wrangler_ssh=s.ssh,delete s.ssh):`wrangler_ssh`in s&&(u=`wrangler_ssh`,d=s.wrangler_ssh),u!==void 0){let e=typeof d==`object`&&d?d:{};K(e,`enabled`,`boolean`)||r.errors.push(`${i}.${u}.enabled must be a boolean`);let t=`port`in e?e.port:void 0;(!q(e,`port`,`number`)||typeof t==`number`&&(t<1||t>65535))&&r.errors.push(`${i}.${u}.port must be a number between 1 and 65535 inclusive`)}if(`authorized_keys`in s)if(!Array.isArray(s.authorized_keys))r.errors.push(`${i}.authorized_keys must be an array`);else for(let e in s.authorized_keys){let t=`${i}.authorized_keys[${e}]`,n=s.authorized_keys[e];K(n,`name`,`string`)||r.errors.push(`${t}.name must be a string`),K(n,`public_key`,`string`)||r.errors.push(`${t}.public_key must be a string`),n.public_key.toLowerCase().startsWith(`ssh-ed25519`)||r.errors.push(`${t}.public_key is a unsupported key type. Please provide a ED25519 public key.`)}if(`trusted_user_ca_keys`in s)if(!Array.isArray(s.trusted_user_ca_keys))r.errors.push(`${i}.trusted_user_ca_keys must be an array`);else for(let e in s.trusted_user_ca_keys){let t=`${i}.trusted_user_ca_keys[${e}]`,n=s.trusted_user_ca_keys[e];q(n,`name`,`string`)||r.errors.push(`${t}.name must be a string`),K(n,`public_key`,`string`)||r.errors.push(`${t}.public_key must be a string`),n.public_key.toLowerCase().startsWith(`ssh-ed25519`)||r.errors.push(`${t}.public_key is a unsupported key type. Please provide a ED25519 public key.`)}if(G(r,i,`constraints`,s.constraints,`object`)&&s.constraints){let e=s.constraints;if(`tier`in e&&(r.warnings.push(`"constraints.tier" has been deprecated in favor of "constraints.tiers". Please update your configuration to use "constraints.tiers" instead.`),`tiers`in e&&r.errors.push(`${i}.constraints.tier and ${i}.constraints.tiers cannot both be set`)),Sj(r,`${i}.constraints.tiers`,e.tiers,`number`),G(r,`${i}.constraints`,`jurisdiction`,e.jurisdiction,`string`),e.jurisdiction&&![`eu`,`fedramp`].includes(e.jurisdiction)&&r.errors.push(`${i}.constraints.jurisdiction must be one of: "eu", "fedramp"`),Sj(r,`${i}.constraints.regions`,e.regions,`string`)&&e.regions&&Array.isArray(e.regions)){let t=[`ENAM`,`WNAM`,`EEUR`,`WEUR`,`APAC`,`SAM`,`ME`,`OC`,`AFR`];for(let n of e.regions)typeof n==`string`&&!t.includes(n.toUpperCase())&&r.errors.push(`${i}.constraints.regions contains invalid region "${n}". Valid regions are: ${t.join(`, `)}`)}}if(typeof s.instance_type==`string`)G(r,i,`instance_type`,s.instance_type,`string`,Pj),s.instance_type===`dev`&&r.warnings.push(`The "dev" instance_type has been renamed to "lite" and will be removed in a subsequent version. Please update your configuration to use "lite" instead.`),s.instance_type===`standard`&&r.warnings.push(`The "standard" instance_type has been renamed to "standard-1" and will be removed in a subsequent version. Please update your configuration to use "standard-1" instead.`);else if(G(r,i,`instance_type`,s.instance_type,`object`)&&s.instance_type){let e=[`vcpu`,`memory_mib`,`disk_mb`];e.forEach(e=>{q(s.instance_type,e,`number`)||r.errors.push(`"containers.instance_type.${e}", when present, should be a number.`)}),Y(r,`${i}.instance_type`,Object.keys(s.instance_type),e)}}return!(r.errors.length>0)}}k(EM,`validateContainerApp`);var DM=k((e,t,n)=>{if(typeof n!=`object`||!n||Array.isArray(n))return e.errors.push(`"cloudchamber" should be an object, but got ${JSON.stringify(n)}`),!1;let r={string:[`memory`,`image`,`location`],boolean:[`ipv4`],number:[`vcpu`]},i=!0;return Object.entries(r).forEach(([r,a])=>{a.forEach(a=>{q(n,a,r)||(e.errors.push(`"${t}" bindings should, optionally, have a ${r} "${a}" field but got ${JSON.stringify(n)}.`),i=!1)})}),`instance_type`in n&&n.instance_type!==void 0&&((typeof n.instance_type!=`string`||!Pj.includes(n.instance_type))&&e.errors.push(`"instance_type" should be one of 'lite', 'basic', 'standard-1', 'standard-2', 'standard-3', or 'standard-4', but got ${n.instance_type}`),(`memory`in n&&n.memory!==void 0||`vcpu`in n&&n.vcpu!==void 0)&&e.errors.push(`"${t}" configuration should not set either "memory" or "vcpu" with "instance_type"`)),i},`validateCloudchamberConfig`),OM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"kv_namespaces" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings should have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),(!q(n,`id`,`string`)||n.id!==void 0&&n.id.length===0)&&(e.errors.push(`"${t}" bindings should have a string "id" field but got ${JSON.stringify(n)}.`),r=!1),q(n,`preview_id`,`string`)||(e.errors.push(`"${t}" bindings should, optionally, have a string "preview_id" field but got ${JSON.stringify(n)}.`),r=!1),Z(n,t,e)||(r=!1),Y(e,t,Object.keys(n),[`binding`,`id`,`preview_id`,`remote`]),r},`validateKVBinding`),kM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"send_email" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`name`,`string`)||(e.errors.push(`"${t}" bindings should have a string "name" field but got ${JSON.stringify(n)}.`),r=!1),q(n,`destination_address`,`string`)||(e.errors.push(`"${t}" bindings should, optionally, have a string "destination_address" field but got ${JSON.stringify(n)}.`),r=!1),q(n,`allowed_destination_addresses`,`object`)||(e.errors.push(`"${t}" bindings should, optionally, have a []string "allowed_destination_addresses" field but got ${JSON.stringify(n)}.`),r=!1),q(n,`allowed_sender_addresses`,`object`)||(e.errors.push(`"${t}" bindings should, optionally, have a []string "allowed_sender_addresses" field but got ${JSON.stringify(n)}.`),r=!1),`destination_address`in n&&`allowed_destination_addresses`in n&&(e.errors.push(`"${t}" bindings should have either a "destination_address" or "allowed_destination_addresses" field, but not both.`),r=!1),Z(n,t,e)||(r=!1),Y(e,t,Object.keys(n),[`allowed_sender_addresses`,`allowed_destination_addresses`,`destination_address`,`name`,`binding`,`remote`]),r},`validateSendEmailBinding`),AM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"queue" bindings should be objects, but got ${JSON.stringify(n)}`),!1;if(!Y(e,t,Object.keys(n),[`binding`,`queue`,`delivery_delay`,`remote`]))return!1;let r=!0;K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings should have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),(!K(n,`queue`,`string`)||n.queue.length===0)&&(e.errors.push(`"${t}" bindings should have a string "queue" field but got ${JSON.stringify(n)}.`),r=!1);for(let i of[{key:`delivery_delay`,type:`number`}])q(n,i.key,i.type)||(e.errors.push(`"${t}" should, optionally, have a ${i.type} "${i.key}" field but got ${JSON.stringify(n)}.`),r=!1);return Z(n,t,e)||(r=!1),r},`validateQueueBinding`),jM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"r2_buckets" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings should have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),(!q(n,`bucket_name`,`string`)||n.bucket_name!==void 0&&n.bucket_name.length===0)&&(e.errors.push(`"${t}" bindings should have a string "bucket_name" field but got ${JSON.stringify(n)}.`),r=!1),r&&J(n,`bucket_name`)&&!Oj(n.bucket_name)&&(e.errors.push(`${t}.bucket_name=${JSON.stringify(n.bucket_name)} is invalid. ${kj}`),r=!1),q(n,`preview_bucket_name`,`string`)||(e.errors.push(`"${t}" bindings should, optionally, have a string "preview_bucket_name" field but got ${JSON.stringify(n)}.`),r=!1),r&&J(n,`preview_bucket_name`)&&!Oj(n.preview_bucket_name)&&(e.errors.push(`${t}.preview_bucket_name= ${JSON.stringify(n.preview_bucket_name)} is invalid. ${kj}`),r=!1),q(n,`jurisdiction`,`string`)||(e.errors.push(`"${t}" bindings should, optionally, have a string "jurisdiction" field but got ${JSON.stringify(n)}.`),r=!1),Z(n,t,e)||(r=!1),Y(e,t,Object.keys(n),[`binding`,`bucket_name`,`preview_bucket_name`,`jurisdiction`,`remote`]),r},`validateR2Binding`),MM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"d1_databases" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings should have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),q(n,`database_id`,`string`)||(e.errors.push(`"${t}" bindings must have a "database_id" field but got ${JSON.stringify(n)}.`),r=!1),q(n,`preview_database_id`,`string`)||(e.errors.push(`"${t}" bindings should, optionally, have a string "preview_database_id" field but got ${JSON.stringify(n)}.`),r=!1),Z(n,t,e)||(r=!1),Y(e,t,Object.keys(n),[`binding`,`database_id`,`database_internal_env`,`database_name`,`migrations_dir`,`migrations_table`,`preview_database_id`,`remote`]),r},`validateD1Binding`),NM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"vectorize" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings should have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),K(n,`index_name`,`string`)||(e.errors.push(`"${t}" bindings must have an "index_name" field but got ${JSON.stringify(n)}.`),r=!1),Z(n,t,e)||(r=!1),Y(e,t,Object.keys(n),[`binding`,`index_name`,`remote`]),r},`validateVectorizeBinding`),PM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"ai_search_namespaces" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings should have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),K(n,`namespace`,`string`)||(e.errors.push(`"${t}" bindings must have a "namespace" field but got ${JSON.stringify(n)}.`),r=!1),Z(n,t,e)||(r=!1),Y(e,t,Object.keys(n),[`binding`,`namespace`,`remote`]),r},`validateAISearchNamespaceBinding`),FM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"ai_search" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings should have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),K(n,`instance_name`,`string`)||(e.errors.push(`"${t}" bindings must have an "instance_name" field but got ${JSON.stringify(n)}.`),r=!1),Z(n,t,e)||(r=!1),Y(e,t,Object.keys(n),[`binding`,`instance_name`,`remote`]),r},`validateAISearchBinding`),IM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"hyperdrive" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings should have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),K(n,`id`,`string`)||(e.errors.push(`"${t}" bindings must have a "id" field but got ${JSON.stringify(n)}.`),r=!1),Y(e,t,Object.keys(n),[`binding`,`id`,`localConnectionString`]),r},`validateHyperdriveBinding`),LM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"vpc_services" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings should have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),K(n,`service_id`,`string`)||(e.errors.push(`"${t}" bindings must have a "service_id" field but got ${JSON.stringify(n)}.`),r=!1),Y(e,t,Object.keys(n),[`binding`,`service_id`,`remote`]),r},`validateVpcServiceBinding`),RM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"vpc_networks" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings should have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1);let i=J(n,`tunnel_id`),a=J(n,`network_id`);return i&&a?(e.errors.push(`"${t}" bindings must have either a "tunnel_id" or "network_id", but not both.`),r=!1):!i&&!a?(e.errors.push(`"${t}" bindings must have either a "tunnel_id" or "network_id" field but got ${JSON.stringify(n)}.`),r=!1):i&&typeof n.tunnel_id!=`string`?(e.errors.push(`"${t}" bindings must have a string "tunnel_id" field but got ${JSON.stringify(n)}.`),r=!1):a&&typeof n.network_id!=`string`&&(e.errors.push(`"${t}" bindings must have a string "network_id" field but got ${JSON.stringify(n)}.`),r=!1),Y(e,t,Object.keys(n),[`binding`,`tunnel_id`,`network_id`,`remote`]),r},`validateVpcNetworkBinding`),zM=k((e,t)=>{let n=!1,r=Object.entries(Aj),i=Object.fromEntries(r.map(([e,n])=>[n,Cj(e===`queues`?t[e]?.producers:t[e])]));i.Secret=t.secrets?.required??[];let a={};for(let n in i){let r=i[n];for(let i of r)i in a||(a[i]=[]),i===`ASSETS`&&Fj(t)&&e.errors.push(`The name 'ASSETS' is reserved in Pages projects. Please use a different name for your ${n} binding.`),a[i].push(n)}for(let t in a){let r=a[t];if(r.length<2)continue;n=!0;let i=r.filter((e,t)=>r.indexOf(e)!==t).filter((e,t,n)=>n.indexOf(e)===t),o=r.filter((e,t)=>r.indexOf(e)===t);o.length>1&&e.errors.push(`${t} assigned to ${Nj.format(o)} bindings.`),i.forEach(n=>{e.errors.push(`${t} assigned to multiple ${n} bindings.`)})}return n&&e.errors.push(`Bindings must have unique names, so that they can all be referenced in the worker.
|
|
135
|
-
Please change your bindings to have unique names.`),!n},`validateBindingsHaveUniqueNames`),BM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"services" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings should have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),K(n,`service`,`string`)||(e.errors.push(`"${t}" bindings should have a string "service" field but got ${JSON.stringify(n)}.`),r=!1),q(n,`environment`,`string`)||(e.errors.push(`"${t}" bindings should have a string "environment" field but got ${JSON.stringify(n)}.`),r=!1),q(n,`entrypoint`,`string`)||(e.errors.push(`"${t}" bindings should have a string "entrypoint" field but got ${JSON.stringify(n)}.`),r=!1),Z(n,t,e)||(r=!1),r},`validateServiceBinding`),VM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"analytics_engine" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings should have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),(!q(n,`dataset`,`string`)||n.dataset?.length===0)&&(e.errors.push(`"${t}" bindings should, optionally, have a string "dataset" field but got ${JSON.stringify(n)}.`),r=!1),Y(e,t,Object.keys(n),[`binding`,`dataset`]),r},`validateAnalyticsEngineBinding`),HM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"${t}" binding should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`binding`,`string`)||(e.errors.push(`"${t}" should have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),K(n,`namespace`,`string`)||(e.errors.push(`"${t}" should have a string "namespace" field but got ${JSON.stringify(n)}.`),r=!1),J(n,`outbound`)&&(UM(e,`${t}.outbound`,n.outbound??{})||(e.errors.push(`"${t}" has an invalid outbound definition.`),r=!1)),Z(n,t,e)||(r=!1),r},`validateWorkerNamespaceBinding`);function UM(e,t,n){if(typeof n!=`object`||!n)return e.errors.push(`"${t}" should be an object, but got ${JSON.stringify(n)}`),!1;let r=!0;return r&&=yj(e,t,`service`,n.service,`string`),r&&=G(e,t,`environment`,n.environment,`string`),r&&=Sj(e,`${t}.parameters`,n.parameters,`string`),r}k(UM,`validateWorkerNamespaceOutbound`);var WM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"mtls_certificates" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings should have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),(!K(n,`certificate_id`,`string`)||n.certificate_id.length===0)&&(e.errors.push(`"${t}" bindings should have a string "certificate_id" field but got ${JSON.stringify(n)}.`),r=!1),Y(e,t,Object.keys(n),[`binding`,`certificate_id`,`remote`]),Z(n,t,e)||(r=!1),r},`validateMTlsCertificateBinding`);function GM(e){return(t,n,r,i)=>{if(r===void 0)return!0;let a=i===void 0?`${n}`:`env.${e}.${n}`;if(typeof r!=`object`||Array.isArray(r)||r===null)return t.errors.push(`The field "${a}" should be an object but got ${JSON.stringify(r)}.`),!1;let o=!0;if(Y(t,a,Object.keys(r),[`consumers`,`producers`])||(o=!1),J(r,`consumers`)){let e=r.consumers;Array.isArray(e)||(t.errors.push(`The field "${a}.consumers" should be an array but got ${JSON.stringify(e)}.`),o=!1);for(let n=0;n<e.length;n++){let r=e[n];KM(t,`${a}.consumers[${n}]`,r,i)||(o=!1)}}return J(r,`producers`)&&(X(e,AM)(t,`${n}.producers`,r.producers,i)||(o=!1)),o}}k(GM,`validateQueues`);var KM=k((e,t,n,r)=>{if(typeof n!=`object`||!n)return e.errors.push(`"${t}" should be a objects, but got ${JSON.stringify(n)}`),!1;let i=!0;Y(e,t,Object.keys(n),[`queue`,`type`,`max_batch_size`,`max_batch_timeout`,`max_retries`,`dead_letter_queue`,`max_concurrency`,`visibility_timeout_ms`,`retry_delay`])||(i=!1),K(n,`queue`,`string`)||e.errors.push(`"${t}" should have a string "queue" field but got ${JSON.stringify(n)}.`),`type`in n&&n.type!==void 0&&n.type!==`worker`&&(e.errors.push(`"${t}.type" has an invalid value "${n.type}". Only "worker" consumers can be configured in your Wrangler configuration.`),i=!1);for(let r of[{key:`type`,type:`string`},{key:`max_batch_size`,type:`number`},{key:`max_batch_timeout`,type:`number`},{key:`max_retries`,type:`number`},{key:`dead_letter_queue`,type:`string`},{key:`max_concurrency`,type:`number`},{key:`visibility_timeout_ms`,type:`number`},{key:`retry_delay`,type:`number`}])q(n,r.key,r.type)||(e.errors.push(`"${t}" should, optionally, have a ${r.type} "${r.key}" field but got ${JSON.stringify(n)}.`),i=!1);return i},`validateConsumer`),qM=k((e,t,n)=>n===void 0?!0:typeof n==`string`?pj(e,t,n):(e.errors.push(`Expected "${t}" to be of type string but got ${JSON.stringify(n)}.`),!1),`validateCompatibilityDate`),JM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"pipeline" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings must have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),K(n,`pipeline`,`string`)||(e.errors.push(`"${t}" bindings must have a string "pipeline" field but got ${JSON.stringify(n)}.`),r=!1),Z(n,t,e)||(r=!1),Y(e,t,Object.keys(n),[`binding`,`pipeline`,`remote`]),r},`validatePipelineBinding`),YM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"secrets_store_secrets" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings must have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),K(n,`store_id`,`string`)||(e.errors.push(`"${t}" bindings must have a string "store_id" field but got ${JSON.stringify(n)}.`),r=!1),K(n,`secret_name`,`string`)||(e.errors.push(`"${t}" bindings must have a string "secret_name" field but got ${JSON.stringify(n)}.`),r=!1),Y(e,t,Object.keys(n),[`binding`,`store_id`,`secret_name`]),r},`validateSecretsStoreSecretBinding`),XM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"artifacts" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings must have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),K(n,`namespace`,`string`)||(e.errors.push(`"${t}" bindings must have a string "namespace" field but got ${JSON.stringify(n)}.`),r=!1),Y(e,t,Object.keys(n),[`binding`,`namespace`,`remote`]),Z(n,t,e)||(r=!1),r},`validateArtifactsBinding`),ZM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"unsafe_hello_world" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings must have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),q(n,`enable_timer`,`boolean`)||(e.errors.push(`"${t}" bindings must have a boolean "enable_timer" field but got ${JSON.stringify(n)}.`),r=!1),Y(e,t,Object.keys(n),[`binding`,`enable_timer`]),r},`validateHelloWorldBinding`),QM=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"flagship" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings must have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),K(n,`app_id`,`string`)||(e.errors.push(`"${t}" bindings must have a string "app_id" field but got ${JSON.stringify(n)}.`),r=!1),Y(e,t,Object.keys(n),[`binding`,`app_id`,`remote`]),Z(n,t,e)||(r=!1),r},`validateFlagshipBinding`),$M=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"worker_loader" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`binding`,`string`)||(e.errors.push(`"${t}" bindings must have a string "binding" field but got ${JSON.stringify(n)}.`),r=!1),Y(e,t,Object.keys(n),[`binding`]),r},`validateWorkerLoaderBinding`),eN=k((e,t,n)=>{if(typeof n!=`object`||!n)return e.errors.push(`"ratelimits" bindings should be objects, but got ${JSON.stringify(n)}`),!1;let r=!0;return K(n,`name`,`string`)||(e.errors.push(`"${t}" bindings must have a string "name" field but got ${JSON.stringify(n)}.`),r=!1),K(n,`namespace_id`,`string`)||(e.errors.push(`"${t}" bindings must have a string "namespace_id" field but got ${JSON.stringify(n)}.`),r=!1),!J(n,`simple`)||typeof n.simple!=`object`||n.simple===null?(e.errors.push(`"${t}" bindings must have a "simple" configuration object but got ${JSON.stringify(n)}.`),r=!1):(K(n.simple,`limit`,`number`)||(e.errors.push(`"${t}" bindings "simple.limit" must be a number but got ${JSON.stringify(n.simple)}.`),r=!1),K(n.simple,`period`,`number`)?[10,60].includes(n.simple.period)||(e.errors.push(`"${t}" bindings "simple.period" must be either 10 or 60 but got ${JSON.stringify(n.simple.period)}.`),r=!1):(e.errors.push(`"${t}" bindings "simple.period" is required and must be a number but got ${JSON.stringify(n.simple)}.`),r=!1),Y(e,`${t}.simple`,Object.keys(n.simple),[`limit`,`period`])),Y(e,t,Object.keys(n),[`name`,`namespace_id`,`simple`]),r},`validateRateLimitBinding`);function tN(e,t,n){return n.limits&&(G(e,`limits`,`cpu_ms`,n.limits.cpu_ms,`number`),G(e,`limits`,`subrequests`,n.limits.subrequests,`number`)),U(e,t,n,`limits`,()=>!0,void 0)}k(tN,`normalizeAndValidateLimits`);var nN=k(e=>(t,n,r)=>{if(r===void 0)return!0;if(typeof r!=`object`||!r||Array.isArray(r))return t.errors.push(`The field "${n}" should be an object but got ${JSON.stringify(r)}.`),!1;let i=r,a=!0;return a=Y(t,n,Object.keys(i),`vars.define.durable_objects.workflows.kv_namespaces.send_email.queues.d1_databases.r2_buckets.vectorize.hyperdrive.services.analytics_engine_datasets.dispatch_namespaces.mtls_certificates.tail_consumers.streaming_tail_consumers.unsafe.browser.ai.images.stream.media.pipelines.secrets_store_secrets.artifacts.unsafe_hello_world.worker_loaders.ratelimits.vpc_services.version_metadata.logpush.observability.limits`.split(`.`))&&a,a=fM(e)(t,`${n}.vars`,i.vars,void 0)&&a,a=dM(e)(t,`${n}.define`,i.define,void 0)&&a,a=mM(e,gM)(t,`${n}.durable_objects`,i.durable_objects,void 0)&&a,a=gj(X(e,vM),Dj)(t,`${n}.workflows`,i.workflows,void 0)&&a,a=X(e,OM)(t,`${n}.kv_namespaces`,i.kv_namespaces,void 0)&&a,a=X(e,kM)(t,`${n}.send_email`,i.send_email,void 0)&&a,a=GM(e)(t,`${n}.queues`,i.queues,void 0)&&a,a=X(e,MM)(t,`${n}.d1_databases`,i.d1_databases,void 0)&&a,a=X(e,jM)(t,`${n}.r2_buckets`,i.r2_buckets,void 0)&&a,a=X(e,NM)(t,`${n}.vectorize`,i.vectorize,void 0)&&a,a=X(e,IM)(t,`${n}.hyperdrive`,i.hyperdrive,void 0)&&a,a=X(e,BM)(t,`${n}.services`,i.services,void 0)&&a,a=X(e,VM)(t,`${n}.analytics_engine_datasets`,i.analytics_engine_datasets,void 0)&&a,a=X(e,HM)(t,`${n}.dispatch_namespaces`,i.dispatch_namespaces,void 0)&&a,a=X(e,WM)(t,`${n}.mtls_certificates`,i.mtls_certificates,void 0)&&a,a=nM(t,`${n}.tail_consumers`,i.tail_consumers,void 0)&&a,a=iM(t,`${n}.streaming_tail_consumers`,i.streaming_tail_consumers,void 0)&&a,i.unsafe!==void 0&&(a=hM(e)(t,`${n}.unsafe`,i.unsafe,void 0)&&a),i.browser!==void 0&&(a=SM(e)(t,`${n}.browser`,i.browser,void 0)&&a),i.ai!==void 0&&(a=CM(e)(t,`${n}.ai`,i.ai,void 0)&&a),i.images!==void 0&&(a=SM(e)(t,`${n}.images`,i.images,void 0)&&a),i.stream!==void 0&&(a=SM(e)(t,`${n}.stream`,i.stream,void 0)&&a),i.media!==void 0&&(a=SM(e)(t,`${n}.media`,i.media,void 0)&&a),a=X(e,JM)(t,`${n}.pipelines`,i.pipelines,void 0)&&a,a=X(e,YM)(t,`${n}.secrets_store_secrets`,i.secrets_store_secrets,void 0)&&a,a=X(e,XM)(t,`${n}.artifacts`,i.artifacts,void 0)&&a,a=X(e,ZM)(t,`${n}.unsafe_hello_world`,i.unsafe_hello_world,void 0)&&a,a=X(e,$M)(t,`${n}.worker_loaders`,i.worker_loaders,void 0)&&a,a=X(e,eN)(t,`${n}.ratelimits`,i.ratelimits,void 0)&&a,a=X(e,LM)(t,`${n}.vpc_services`,i.vpc_services,void 0)&&a,i.version_metadata!==void 0&&(a=wM(e)(t,`${n}.version_metadata`,i.version_metadata,void 0)&&a),a=vj(t,`${n}.logpush`,i.logpush,void 0)&&a,a=iN(t,`${n}.observability`,i.observability,void 0)&&a,i.limits&&(a=G(t,`${n}.limits`,`cpu_ms`,i.limits.cpu_ms,`number`)&&a,a=G(t,`${n}.limits`,`subrequests`,i.limits.subrequests,`number`)&&a),a},`validatePreviewsConfig`),rN=k((e,t,n)=>{let r=n??[];if(!Array.isArray(r))return e.errors.push(`The optional "${t}" field should be an array, but got ${JSON.stringify(r)}`),!1;let i=!0;for(let t=0;t<r.length;t++){let{tag:n,new_classes:a,new_sqlite_classes:o,renamed_classes:s,deleted_classes:c,transferred_classes:l,...u}=r[t];i=Y(e,`migrations`,Object.keys(u),[])&&i,i=yj(e,`migrations[${t}]`,`tag`,n,`string`)&&i,i=Sj(e,`migrations[${t}].new_classes`,a,`string`)&&i,i=Sj(e,`migrations[${t}].new_sqlite_classes`,o,`string`)&&i,s!==void 0&&(Array.isArray(s)?s.some(e=>typeof e!=`object`||!K(e,`from`,`string`)||!K(e,`to`,`string`))&&(e.errors.push(`Expected "migrations[${t}].renamed_classes" to be an array of "{from: string, to: string}" objects but got ${JSON.stringify(s)}.`),i=!1):(e.errors.push(`Expected "migrations[${t}].renamed_classes" to be an array of "{from: string, to: string}" objects but got ${JSON.stringify(s)}.`),i=!1)),l!==void 0&&(Array.isArray(l)?l.some(e=>typeof e!=`object`||!K(e,`from`,`string`)||!K(e,`from_script`,`string`)||!K(e,`to`,`string`))&&(e.errors.push(`Expected "migrations[${t}].transferred_classes" to be an array of "{from: string, from_script: string, to: string}" objects but got ${JSON.stringify(l)}.`),i=!1):(e.errors.push(`Expected "migrations[${t}].transferred_classes" to be an array of "{from: string, from_script: string, to: string}" objects but got ${JSON.stringify(l)}.`),i=!1)),i=Sj(e,`migrations[${t}].deleted_classes`,c,`string`)&&i}return i},`validateMigrations`),iN=k((e,t,n)=>{if(n===void 0)return!0;if(typeof n!=`object`)return e.errors.push(`"${t}" should be an object but got ${JSON.stringify(n)}.`),!1;let r=n,i=!0;i=bj(e,t,[{key:`enabled`,value:r.enabled,type:`boolean`},{key:`logs.enabled`,value:r.logs?.enabled,type:`boolean`},{key:`traces.enabled`,value:r.traces?.enabled,type:`boolean`}])&&i,i=G(e,t,`head_sampling_rate`,r.head_sampling_rate,`number`)&&i,i=G(e,t,`logs`,r.logs,`object`)&&i,i=G(e,t,`traces`,r.traces,`object`)&&i,i=Y(e,t,Object.keys(r),[`enabled`,`head_sampling_rate`,`logs`,`traces`])&&i,typeof r.logs==`object`&&(i=G(e,t,`logs.enabled`,r.logs.enabled,`boolean`)&&i,i=G(e,t,`logs.head_sampling_rate`,r.logs.head_sampling_rate,`number`)&&i,i=G(e,t,`logs.invocation_logs`,r.logs.invocation_logs,`boolean`)&&i,i=Sj(e,`logs.destinations`,r.logs?.destinations,`string`)&&i,i=G(e,t,`logs.persist`,r.logs.persist,`boolean`)&&i,i=Y(e,t,Object.keys(r.logs),[`enabled`,`head_sampling_rate`,`invocation_logs`,`destinations`,`persist`])&&i),typeof r.traces==`object`&&(i=G(e,t,`traces.enabled`,r.traces.enabled,`boolean`)&&i,i=G(e,t,`traces.head_sampling_rate`,r.traces.head_sampling_rate,`number`)&&i,i=Sj(e,`traces.destinations`,r.traces?.destinations,`string`)&&i,i=G(e,t,`traces.persist`,r.traces.persist,`boolean`)&&i,i=Y(e,t,Object.keys(r.traces),[`enabled`,`head_sampling_rate`,`destinations`,`persist`])&&i);let a=r?.head_sampling_rate;return a&&(a<0||a>1)&&e.errors.push(`"${t}.head_sampling_rate" must be a value between 0 and 1.`),i},`validateObservability`),aN=k((e,t,n)=>{if(n===void 0)return!0;if(typeof n!=`object`||!n)return e.errors.push(`"${t}" should be an object but got ${JSON.stringify(n)}.`),!1;let r=n,i=!0;return i=yj(e,t,`enabled`,r.enabled,`boolean`)&&i,i=Y(e,t,Object.keys(r),[`enabled`])&&i,i},`validateCache`);function oN(e,t,n,r){if(Array.isArray(t.bindings)&&t.bindings.length>0){let i=(t.bindings||[]).filter(e=>!e.script_name);if(i.length>0&&n.length===0&&!i.some(e=>typeof e.class_name!=`string`)){let t=i.map(e=>e.class_name);e.warnings.push(yO`
|
|
136
|
-
In your ${EO(r)} file, you have configured \`durable_objects\` exported by this Worker (${t.join(`, `)}), but no \`migrations\` for them. This may not work as expected until you add a \`migrations\` section to your ${EO(r)} file. Add the following configuration:
|
|
137
|
-
|
|
138
|
-
\`\`\`
|
|
139
|
-
${DO({migrations:[{tag:`v1`,new_sqlite_classes:t}]},r)}
|
|
140
|
-
\`\`\`
|
|
141
|
-
|
|
142
|
-
Refer to https://developers.cloudflare.com/durable-objects/reference/durable-objects-migrations/ for more details.`)}}}k(oN,`warnIfDurableObjectsHaveNoMigrations`);var sN=k((e,t,n,r)=>{if(n===void 0)return!0;if(typeof n!=`object`||!n||Array.isArray(n))return e.errors.push(`"${t}" should be an object but got ${JSON.stringify(n)}.`),!1;let i=n;return!(!(`exclude`in i)||!mj(e,`${t}.exclude`,i.exclude,r))},`validatePythonModules`);function Z(e,t,n){return q(e,`remote`,`boolean`)?!0:(n.errors.push(`"${t}" should, optionally, have a boolean "remote" field but got ${JSON.stringify(e)}.`),!1)}k(Z,`isRemoteValid`);function cN(e,t){let n=t?E.dirname(t):process.cwd(),r=E.resolve(n,e);if(b.existsSync(r)){if(OO(r))throw new A(`${e} is a directory, you should specify a path to the Dockerfile`);return!0}let i=`The image "${e}" does not appear to be a valid path to a Dockerfile, or a valid image registry path:
|
|
143
|
-
`;try{new URL(`https://${e}`)}catch(e){throw e instanceof Error?new A(i+e.message):e}let a=e.split(`/`);if(!a[a.length-1]?.includes(`:`))throw new A(i+`If this is an image registry path, it needs to include at least a tag ':' (e.g: docker.io/httpd:1)`);if(e.includes(`://`))throw new A(i+`Image reference should not include the protocol part (e.g: docker.io/httpd:1, not https://docker.io/httpd:1)`);return!1}k(cN,`isDockerfile`);var lN=`pages_build_output_dir.name.compatibility_date.compatibility_flags.send_metrics.no_bundle.limits.placement.vars.durable_objects.kv_namespaces.queues.r2_buckets.d1_databases.vectorize.hyperdrive.services.analytics_engine_datasets.ai.version_metadata.dev.mtls_certificates.browser.upload_source_maps.configPath.userConfigPath.topLevelName.definedEnvironments.targetEnvironment`.split(`.`);function uN(e,t,n){if(!e.pages_build_output_dir)throw new UE(`Attempting to validate Pages configuration file, but "pages_build_output_dir" field was not found.
|
|
144
|
-
"pages_build_output_dir" is required for Pages projects.`);let r=new rj(`Running configuration file validation for Pages:`);return dN(e,r),fN(n,r),pN(t,r),mN(e,r),hN(e,r),r}k(uN,`validatePagesConfig`);function dN(e,t){e.main!==void 0&&t.errors.push(`Configuration file cannot contain both both "main" and "pages_build_output_dir" configuration keys.
|
|
145
|
-
Please use "main" if you are deploying a Worker, or "pages_build_output_dir" if you are deploying a Pages project.`)}k(dN,`validateMainField`);function fN(e,t){(e===void 0||e.trim()===``)&&t.errors.push(`Missing top-level field "name" in configuration file.
|
|
146
|
-
Pages requires the name of your project to be configured at the top-level of your Wrangler configuration file. This is because, in Pages, environments target the same project.`)}k(fN,`validateProjectName`);function pN(e,t){if(!e?.length)return;let n=e.filter(e=>e!==`preview`&&e!==`production`);n.length>0&&t.errors.push(`Configuration file contains the following environment names that are not supported by Pages projects:
|
|
147
|
-
${n.map(e=>`"${e}"`).join()}.
|
|
148
|
-
The supported named-environments for Pages are "preview" and "production".`)}k(pN,`validatePagesEnvironmentNames`);function mN(e,t){let n=new Set(Object.keys(e));for(let t of lN)t===`queues`&&e.queues?.consumers?.length||n.delete(t);for(let t of n)(e[t]===void 0||JSON.stringify(e[t])===JSON.stringify(BO[t]))&&n.delete(t);n.size>0&&Array.from(n.keys()).forEach(n=>{n===`queues`&&e.queues?.consumers?.length?t.errors.push(`Configuration file for Pages projects does not support "queues.consumers"`):t.errors.push(`Configuration file for Pages projects does not support "${n}"`)})}k(mN,`validateUnsupportedFields`);function hN(e,t){e.durable_objects.bindings.length>0&&e.durable_objects.bindings.filter(e=>!K(e,`script_name`,`string`)).length>0&&t.errors.push(`Durable Objects bindings should specify a "script_name".
|
|
149
|
-
Pages requires Durable Object bindings to specify the name of the Worker where the Durable Object is defined.`)}k(hN,`validateDurableObjectBinding`);var gN=n(((e,t)=>{t.exports=[{name:`Agola CI`,constant:`AGOLA`,env:`AGOLA_GIT_REF`,pr:`AGOLA_PULL_REQUEST_ID`},{name:`Alpic`,constant:`ALPIC`,env:`ALPIC_HOST`},{name:`Appcircle`,constant:`APPCIRCLE`,env:`AC_APPCIRCLE`,pr:{env:`AC_GIT_PR`,ne:`false`}},{name:`AppVeyor`,constant:`APPVEYOR`,env:`APPVEYOR`,pr:`APPVEYOR_PULL_REQUEST_NUMBER`},{name:`AWS CodeBuild`,constant:`CODEBUILD`,env:`CODEBUILD_BUILD_ARN`,pr:{env:`CODEBUILD_WEBHOOK_EVENT`,any:[`PULL_REQUEST_CREATED`,`PULL_REQUEST_UPDATED`,`PULL_REQUEST_REOPENED`]}},{name:`Azure Pipelines`,constant:`AZURE_PIPELINES`,env:`TF_BUILD`,pr:{BUILD_REASON:`PullRequest`}},{name:`Bamboo`,constant:`BAMBOO`,env:`bamboo_planKey`},{name:`Bitbucket Pipelines`,constant:`BITBUCKET`,env:`BITBUCKET_COMMIT`,pr:`BITBUCKET_PR_ID`},{name:`Bitrise`,constant:`BITRISE`,env:`BITRISE_IO`,pr:`BITRISE_PULL_REQUEST`},{name:`Buddy`,constant:`BUDDY`,env:`BUDDY_WORKSPACE_ID`,pr:`BUDDY_EXECUTION_PULL_REQUEST_ID`},{name:`Buildkite`,constant:`BUILDKITE`,env:`BUILDKITE`,pr:{env:`BUILDKITE_PULL_REQUEST`,ne:`false`}},{name:`CircleCI`,constant:`CIRCLE`,env:`CIRCLECI`,pr:`CIRCLE_PULL_REQUEST`},{name:`Cirrus CI`,constant:`CIRRUS`,env:`CIRRUS_CI`,pr:`CIRRUS_PR`},{name:`Cloudflare Pages`,constant:`CLOUDFLARE_PAGES`,env:`CF_PAGES`},{name:`Cloudflare Workers`,constant:`CLOUDFLARE_WORKERS`,env:`WORKERS_CI`},{name:`Codefresh`,constant:`CODEFRESH`,env:`CF_BUILD_ID`,pr:{any:[`CF_PULL_REQUEST_NUMBER`,`CF_PULL_REQUEST_ID`]}},{name:`Codemagic`,constant:`CODEMAGIC`,env:`CM_BUILD_ID`,pr:`CM_PULL_REQUEST`},{name:`Codeship`,constant:`CODESHIP`,env:{CI_NAME:`codeship`}},{name:`Drone`,constant:`DRONE`,env:`DRONE`,pr:{DRONE_BUILD_EVENT:`pull_request`}},{name:`dsari`,constant:`DSARI`,env:`DSARI`},{name:`Earthly`,constant:`EARTHLY`,env:`EARTHLY_CI`},{name:`Expo Application Services`,constant:`EAS`,env:`EAS_BUILD`},{name:`Gerrit`,constant:`GERRIT`,env:`GERRIT_PROJECT`},{name:`Gitea Actions`,constant:`GITEA_ACTIONS`,env:`GITEA_ACTIONS`},{name:`GitHub Actions`,constant:`GITHUB_ACTIONS`,env:`GITHUB_ACTIONS`,pr:{GITHUB_EVENT_NAME:`pull_request`}},{name:`GitLab CI`,constant:`GITLAB`,env:`GITLAB_CI`,pr:`CI_MERGE_REQUEST_ID`},{name:`GoCD`,constant:`GOCD`,env:`GO_PIPELINE_LABEL`},{name:`Google Cloud Build`,constant:`GOOGLE_CLOUD_BUILD`,env:`BUILDER_OUTPUT`},{name:`Harness CI`,constant:`HARNESS`,env:`HARNESS_BUILD_ID`},{name:`Heroku`,constant:`HEROKU`,env:{env:`NODE`,includes:`/app/.heroku/node/bin/node`}},{name:`Hudson`,constant:`HUDSON`,env:`HUDSON_URL`},{name:`Jenkins`,constant:`JENKINS`,env:[`JENKINS_URL`,`BUILD_ID`],pr:{any:[`ghprbPullId`,`CHANGE_ID`]}},{name:`LayerCI`,constant:`LAYERCI`,env:`LAYERCI`,pr:`LAYERCI_PULL_REQUEST`},{name:`Magnum CI`,constant:`MAGNUM`,env:`MAGNUM`},{name:`Netlify CI`,constant:`NETLIFY`,env:`NETLIFY`,pr:{env:`PULL_REQUEST`,ne:`false`}},{name:`Nevercode`,constant:`NEVERCODE`,env:`NEVERCODE`,pr:{env:`NEVERCODE_PULL_REQUEST`,ne:`false`}},{name:`Prow`,constant:`PROW`,env:`PROW_JOB_ID`},{name:`ReleaseHub`,constant:`RELEASEHUB`,env:`RELEASE_BUILD_ID`},{name:`Render`,constant:`RENDER`,env:`RENDER`,pr:{IS_PULL_REQUEST:`true`}},{name:`Sail CI`,constant:`SAIL`,env:`SAILCI`,pr:`SAIL_PULL_REQUEST_NUMBER`},{name:`Screwdriver`,constant:`SCREWDRIVER`,env:`SCREWDRIVER`,pr:{env:`SD_PULL_REQUEST`,ne:`false`}},{name:`Semaphore`,constant:`SEMAPHORE`,env:`SEMAPHORE`,pr:`PULL_REQUEST_NUMBER`},{name:`Sourcehut`,constant:`SOURCEHUT`,env:{CI_NAME:`sourcehut`}},{name:`Strider CD`,constant:`STRIDER`,env:`STRIDER`},{name:`TaskCluster`,constant:`TASKCLUSTER`,env:[`TASK_ID`,`RUN_ID`]},{name:`TeamCity`,constant:`TEAMCITY`,env:`TEAMCITY_VERSION`},{name:`Travis CI`,constant:`TRAVIS`,env:`TRAVIS`,pr:{env:`TRAVIS_PULL_REQUEST`,ne:`false`}},{name:`Vela`,constant:`VELA`,env:`VELA`,pr:{VELA_PULL_REQUEST:`1`}},{name:`Vercel`,constant:`VERCEL`,env:{any:[`NOW_BUILDER`,`VERCEL`]},pr:`VERCEL_GIT_PULL_REQUEST_ID`},{name:`Visual Studio App Center`,constant:`APPCENTER`,env:`APPCENTER_BUILD_ID`},{name:`Woodpecker`,constant:`WOODPECKER`,env:{CI:`woodpecker`},pr:{CI_BUILD_EVENT:`pull_request`}},{name:`Xcode Cloud`,constant:`XCODE_CLOUD`,env:`CI_XCODE_PROJECT`,pr:`CI_PULL_REQUEST_NUMBER`},{name:`Xcode Server`,constant:`XCODE_SERVER`,env:`XCS`}]})),_N=e(n((e=>{let t=gN(),n=process.env;Object.defineProperty(e,`_vendors`,{value:t.map(function(e){return e.constant})}),e.name=null,e.isPR=null,e.id=null,n.CI!==`false`&&t.forEach(function(t){let n=(Array.isArray(t.env)?t.env:[t.env]).every(function(e){return r(e)});e[t.constant]=n,n&&(e.name=t.name,e.isPR=i(t),e.id=t.constant)}),e.isCI=!!(n.CI!==`false`&&(n.BUILD_ID||n.BUILD_NUMBER||n.CI||n.CI_APP_ID||n.CI_BUILD_ID||n.CI_BUILD_NUMBER||n.CI_NAME||n.CONTINUOUS_INTEGRATION||n.RUN_ID||e.name));function r(e){return typeof e==`string`?!!n[e]:`env`in e?n[e.env]&&n[e.env].includes(e.includes):`any`in e?e.any.some(function(e){return!!n[e]}):Object.keys(e).every(function(t){return n[t]===e[t]})}function i(e){switch(typeof e.pr){case`string`:return!!n[e.pr];case`object`:return`env`in e.pr?`any`in e.pr?e.pr.any.some(function(t){return n[e.pr.env]===t}):e.pr.env in n&&n[e.pr.env]!==e.pr.ne:`any`in e.pr?e.pr.any.some(function(e){return!!n[e]}):r(e.pr);default:return null}}}))(),1);const vN={diamond:`◇`,dash:`─`,radioInactive:`○`,radioActive:`●`,backActive:`◀`,backInactive:`◁`,bar:`│`,leftT:`├`,rigthT:`┤`,arrows:{left:`‹`,right:`›`},corners:{tl:`╭`,bl:`╰`,tr:`╮`,br:`╯`}};jT(` ERROR `),NT(` WARNING `),AT(` INFO `),MT(` SUCCESS `),ST.bgRed(` X `);const yN=process.env.TERM_PROGRAM===`Apple_Terminal`,Q={};Q.cursorTo=(e,t)=>{if(typeof e!=`number`)throw TypeError("The `x` argument is required");return typeof t==`number`?`\x1B[`+(t+1)+`;`+(e+1)+`H`:`\x1B[`+(e+1)+`G`},Q.cursorMove=(e,t)=>{if(typeof e!=`number`)throw TypeError("The `x` argument is required");let n=``;return e<0?n+=`\x1B[`+-e+`D`:e>0&&(n+=`\x1B[`+e+`C`),t<0?n+=`\x1B[`+-t+`A`:t>0&&(n+=`\x1B[`+t+`B`),n},Q.cursorUp=(e=1)=>`\x1B[`+e+`A`,Q.cursorDown=(e=1)=>`\x1B[`+e+`B`,Q.cursorForward=(e=1)=>`\x1B[`+e+`C`,Q.cursorBackward=(e=1)=>`\x1B[`+e+`D`,Q.cursorLeft=`\x1B[G`,Q.cursorSavePosition=yN?`\x1B7`:`\x1B[s`,Q.cursorRestorePosition=yN?`\x1B8`:`\x1B[u`,Q.cursorGetPosition=`\x1B[6n`,Q.cursorNextLine=`\x1B[E`,Q.cursorPrevLine=`\x1B[F`,Q.cursorHide=`\x1B[?25l`,Q.cursorShow=`\x1B[?25h`,Q.eraseLines=e=>{let t=``;for(let n=0;n<e;n++)t+=Q.eraseLine+(n<e-1?Q.cursorUp():``);return e&&(t+=Q.cursorLeft),t},Q.eraseEndLine=`\x1B[K`,Q.eraseStartLine=`\x1B[1K`,Q.eraseLine=`\x1B[2K`,Q.eraseDown=`\x1B[J`,Q.eraseUp=`\x1B[1J`,Q.eraseScreen=`\x1B[2J`,Q.scrollUp=`\x1B[S`,Q.scrollDown=`\x1B[T`,Q.clearScreen=`\x1Bc`,Q.clearTerminal=process.platform===`win32`?`${Q.eraseScreen}[0f`:`${Q.eraseScreen}[3J[H`,Q.beep=`\x07`,Q.link=(e,t)=>[`\x1B]`,`8`,`;`,`;`,t,`\x07`,e,`\x1B]`,`8`,`;`,`;`,`\x07`].join(``),Q.image=(e,t={})=>{let n=`\x1B]1337;File=inline=1`;return t.width&&(n+=`;width=${t.width}`),t.height&&(n+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(n+=`;preserveAspectRatio=0`),n+`:`+e.toString(`base64`)+`\x07`},Q.iTerm={setCwd:(e=process.cwd())=>`]50;CurrentDir=${e}`,annotation:(e,t={})=>{let n=`\x1B]1337;`,r=t.x!==void 0,i=t.y!==void 0;if((r||i)&&!(r&&i&&t.length!==void 0))throw Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,``),n+=t.isHidden?`AddHiddenAnnotation=`:`AddAnnotation=`,t.length>0?n+=(r?[e,t.length,t.x,t.y]:[t.length,e]).join(`|`):n+=e,n+`\x07`}};var bN=n(((e,t)=>{let n=(e,t)=>{for(let n of Reflect.ownKeys(t))Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n));return e};t.exports=n,t.exports.default=n})),xN=n(((e,t)=>{let n=bN(),r=new WeakMap,i=(e,t={})=>{if(typeof e!=`function`)throw TypeError(`Expected a function`);let i,a=0,o=e.displayName||e.name||`<anonymous>`,s=function(...n){if(r.set(s,++a),a===1)i=e.apply(this,n),e=null;else if(t.throw===!0)throw Error(`Function \`${o}\` can only be called once`);return i};return n(s,e),r.set(s,a),s};t.exports=i,t.exports.default=i,t.exports.callCount=e=>{if(!r.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return r.get(e)}})),SN=n(((e,t)=>{t.exports=[`SIGABRT`,`SIGALRM`,`SIGHUP`,`SIGINT`,`SIGTERM`],process.platform!==`win32`&&t.exports.push(`SIGVTALRM`,`SIGXCPU`,`SIGXFSZ`,`SIGUSR2`,`SIGTRAP`,`SIGSYS`,`SIGQUIT`,`SIGIOT`),process.platform===`linux`&&t.exports.push(`SIGIO`,`SIGPOLL`,`SIGPWR`,`SIGSTKFLT`,`SIGUNUSED`)})),CN=n(((e,n)=>{var r=global.process;let i=function(e){return e&&typeof e==`object`&&typeof e.removeListener==`function`&&typeof e.emit==`function`&&typeof e.reallyExit==`function`&&typeof e.listeners==`function`&&typeof e.kill==`function`&&typeof e.pid==`number`&&typeof e.on==`function`};if(!i(r))n.exports=function(){return function(){}};else{var a=t(`assert`),o=SN(),s=/^win/i.test(r.platform),c=t(`events`);typeof c!=`function`&&(c=c.EventEmitter);var l;r.__signal_exit_emitter__?l=r.__signal_exit_emitter__:(l=r.__signal_exit_emitter__=new c,l.count=0,l.emitted={}),l.infinite||(l.setMaxListeners(1/0),l.infinite=!0),n.exports=function(e,t){if(!i(global.process))return function(){};a.equal(typeof e,`function`,`a callback must be provided for exit handler`),p===!1&&m();var n=`exit`;return t&&t.alwaysLast&&(n=`afterexit`),l.on(n,e),function(){l.removeListener(n,e),l.listeners(`exit`).length===0&&l.listeners(`afterexit`).length===0&&u()}};var u=function(){!p||!i(global.process)||(p=!1,o.forEach(function(e){try{r.removeListener(e,f[e])}catch{}}),r.emit=_,r.reallyExit=h,--l.count)};n.exports.unload=u;var d=function(e,t,n){l.emitted[e]||(l.emitted[e]=!0,l.emit(e,t,n))},f={};o.forEach(function(e){f[e]=function(){i(global.process)&&r.listeners(e).length===l.count&&(u(),d(`exit`,null,e),d(`afterexit`,null,e),s&&e===`SIGHUP`&&(e=`SIGINT`),r.kill(r.pid,e))}}),n.exports.signals=function(){return o};var p=!1,m=function(){p||!i(global.process)||(p=!0,l.count+=1,o=o.filter(function(e){try{return r.on(e,f[e]),!0}catch{return!1}}),r.emit=v,r.reallyExit=g)};n.exports.load=m;var h=r.reallyExit,g=function(e){i(global.process)&&(r.exitCode=e||0,d(`exit`,r.exitCode,null),d(`afterexit`,r.exitCode,null),h.call(r,r.exitCode))},_=r.emit,v=function(e,t){if(e===`exit`&&i(global.process)){t!==void 0&&(r.exitCode=t);var n=_.apply(this,arguments);return d(`exit`,r.exitCode,null),d(`afterexit`,r.exitCode,null),n}else return _.apply(this,arguments)}}})),wN=e(xN(),1),TN=e(CN(),1);const EN=(0,wN.default)(()=>{(0,TN.default)(()=>{T.stderr.write(`\x1B[?25h`)},{alwaysLast:!0})});let DN=!1;const ON={};ON.show=(e=T.stderr)=>{e.isTTY&&(DN=!1,e.write(`\x1B[?25h`))},ON.hide=(e=T.stderr)=>{e.isTTY&&(EN(),DN=!0,e.write(`\x1B[?25l`))},ON.toggle=(e,t)=>{e!==void 0&&(DN=e),DN?ON.show(t):ON.hide(t)};var kN=n(((e,t)=>{var n={};t===void 0?window.eastasianwidth=n:t.exports=n,n.eastAsianWidth=function(e){var t=e.charCodeAt(0),n=e.length==2?e.charCodeAt(1):0,r=t;return 55296<=t&&t<=56319&&56320<=n&&n<=57343&&(t&=1023,n&=1023,r=t<<10|n,r+=65536),r==12288||65281<=r&&r<=65376||65504<=r&&r<=65510?`F`:r==8361||65377<=r&&r<=65470||65474<=r&&r<=65479||65482<=r&&r<=65487||65490<=r&&r<=65495||65498<=r&&r<=65500||65512<=r&&r<=65518?`H`:4352<=r&&r<=4447||4515<=r&&r<=4519||4602<=r&&r<=4607||9001<=r&&r<=9002||11904<=r&&r<=11929||11931<=r&&r<=12019||12032<=r&&r<=12245||12272<=r&&r<=12283||12289<=r&&r<=12350||12353<=r&&r<=12438||12441<=r&&r<=12543||12549<=r&&r<=12589||12593<=r&&r<=12686||12688<=r&&r<=12730||12736<=r&&r<=12771||12784<=r&&r<=12830||12832<=r&&r<=12871||12880<=r&&r<=13054||13056<=r&&r<=19903||19968<=r&&r<=42124||42128<=r&&r<=42182||43360<=r&&r<=43388||44032<=r&&r<=55203||55216<=r&&r<=55238||55243<=r&&r<=55291||63744<=r&&r<=64255||65040<=r&&r<=65049||65072<=r&&r<=65106||65108<=r&&r<=65126||65128<=r&&r<=65131||110592<=r&&r<=110593||127488<=r&&r<=127490||127504<=r&&r<=127546||127552<=r&&r<=127560||127568<=r&&r<=127569||131072<=r&&r<=194367||177984<=r&&r<=196605||196608<=r&&r<=262141?`W`:32<=r&&r<=126||162<=r&&r<=163||165<=r&&r<=166||r==172||r==175||10214<=r&&r<=10221||10629<=r&&r<=10630?`Na`:r==161||r==164||167<=r&&r<=168||r==170||173<=r&&r<=174||176<=r&&r<=180||182<=r&&r<=186||188<=r&&r<=191||r==198||r==208||215<=r&&r<=216||222<=r&&r<=225||r==230||232<=r&&r<=234||236<=r&&r<=237||r==240||242<=r&&r<=243||247<=r&&r<=250||r==252||r==254||r==257||r==273||r==275||r==283||294<=r&&r<=295||r==299||305<=r&&r<=307||r==312||319<=r&&r<=322||r==324||328<=r&&r<=331||r==333||338<=r&&r<=339||358<=r&&r<=359||r==363||r==462||r==464||r==466||r==468||r==470||r==472||r==474||r==476||r==593||r==609||r==708||r==711||713<=r&&r<=715||r==717||r==720||728<=r&&r<=731||r==733||r==735||768<=r&&r<=879||913<=r&&r<=929||931<=r&&r<=937||945<=r&&r<=961||963<=r&&r<=969||r==1025||1040<=r&&r<=1103||r==1105||r==8208||8211<=r&&r<=8214||8216<=r&&r<=8217||8220<=r&&r<=8221||8224<=r&&r<=8226||8228<=r&&r<=8231||r==8240||8242<=r&&r<=8243||r==8245||r==8251||r==8254||r==8308||r==8319||8321<=r&&r<=8324||r==8364||r==8451||r==8453||r==8457||r==8467||r==8470||8481<=r&&r<=8482||r==8486||r==8491||8531<=r&&r<=8532||8539<=r&&r<=8542||8544<=r&&r<=8555||8560<=r&&r<=8569||r==8585||8592<=r&&r<=8601||8632<=r&&r<=8633||r==8658||r==8660||r==8679||r==8704||8706<=r&&r<=8707||8711<=r&&r<=8712||r==8715||r==8719||r==8721||r==8725||r==8730||8733<=r&&r<=8736||r==8739||r==8741||8743<=r&&r<=8748||r==8750||8756<=r&&r<=8759||8764<=r&&r<=8765||r==8776||r==8780||r==8786||8800<=r&&r<=8801||8804<=r&&r<=8807||8810<=r&&r<=8811||8814<=r&&r<=8815||8834<=r&&r<=8835||8838<=r&&r<=8839||r==8853||r==8857||r==8869||r==8895||r==8978||9312<=r&&r<=9449||9451<=r&&r<=9547||9552<=r&&r<=9587||9600<=r&&r<=9615||9618<=r&&r<=9621||9632<=r&&r<=9633||9635<=r&&r<=9641||9650<=r&&r<=9651||9654<=r&&r<=9655||9660<=r&&r<=9661||9664<=r&&r<=9665||9670<=r&&r<=9672||r==9675||9678<=r&&r<=9681||9698<=r&&r<=9701||r==9711||9733<=r&&r<=9734||r==9737||9742<=r&&r<=9743||9748<=r&&r<=9749||r==9756||r==9758||r==9792||r==9794||9824<=r&&r<=9825||9827<=r&&r<=9829||9831<=r&&r<=9834||9836<=r&&r<=9837||r==9839||9886<=r&&r<=9887||9918<=r&&r<=9919||9924<=r&&r<=9933||9935<=r&&r<=9953||r==9955||9960<=r&&r<=9983||r==10045||r==10071||10102<=r&&r<=10111||11093<=r&&r<=11097||12872<=r&&r<=12879||57344<=r&&r<=63743||65024<=r&&r<=65039||r==65533||127232<=r&&r<=127242||127248<=r&&r<=127277||127280<=r&&r<=127337||127344<=r&&r<=127386||917760<=r&&r<=917999||983040<=r&&r<=1048573||1048576<=r&&r<=1114109?`A`:`N`},n.characterLength=function(e){var t=this.eastAsianWidth(e);return t==`F`||t==`W`||t==`A`?2:1};function r(e){return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}n.length=function(e){for(var t=r(e),n=0,i=0;i<t.length;i++)n+=this.characterLength(t[i]);return n},n.slice=function(e,t,i){textLen=n.length(e),t||=0,i||=1,t<0&&(t=textLen+t),i<0&&(i=textLen+i);for(var a=``,o=0,s=r(e),c=0;c<s.length;c++){var l=s[c],u=n.length(l);if(o>=t-+(u==2))if(o+u<=i)a+=l;else break;o+=u}return a}})),AN=n(((e,t)=>{t.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}})),jN=e(kN(),1),MN=e(AN(),1);function NN(e,t={}){if(typeof e!=`string`||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=o(e),e.length===0))return 0;e=e.replace((0,MN.default)(),` `);let n=t.ambiguousIsNarrow?1:2,r=0;for(let t of e){let e=t.codePointAt(0);if(!(e<=31||e>=127&&e<=159)&&!(e>=768&&e<=879))switch(jN.default.eastAsianWidth(t)){case`F`:case`W`:r+=2;break;case`A`:r+=n;break;default:r+=1}}return r}const PN=new Set([`\x1B`,``]),FN=`]8;;`,IN=e=>`${PN.values().next().value}[${e}m`,LN=e=>`${PN.values().next().value}${FN}${e}`,RN=e=>e.split(` `).map(e=>NN(e)),zN=(e,t,n)=>{let r=[...t],i=!1,a=!1,s=NN(o(e[e.length-1]));for(let[t,o]of r.entries()){let c=NN(o);if(s+c<=n?e[e.length-1]+=o:(e.push(o),s=0),PN.has(o)&&(i=!0,a=r.slice(t+1).join(``).startsWith(FN)),i){a?o===`\x07`&&(i=!1,a=!1):o===`m`&&(i=!1);continue}s+=c,s===n&&t<r.length-1&&(e.push(``),s=0)}!s&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},BN=e=>{let t=e.split(` `),n=t.length;for(;n>0&&!(NN(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(` `)+t.slice(n).join(``)},VN=(e,t,n={})=>{if(n.trim!==!1&&e.trim()===``)return``;let r=``,a,o,s=RN(e),c=[``];for(let[r,i]of e.split(` `).entries()){n.trim!==!1&&(c[c.length-1]=c[c.length-1].trimStart());let e=NN(c[c.length-1]);if(r!==0&&(e>=t&&(n.wordWrap===!1||n.trim===!1)&&(c.push(``),e=0),(e>0||n.trim===!1)&&(c[c.length-1]+=` `,e++)),n.hard&&s[r]>t){let n=t-e,a=1+Math.floor((s[r]-n-1)/t);Math.floor((s[r]-1)/t)<a&&c.push(``),zN(c,i,t);continue}if(e+s[r]>t&&e>0&&s[r]>0){if(n.wordWrap===!1&&e<t){zN(c,i,t);continue}c.push(``)}if(e+s[r]>t&&n.wordWrap===!1){zN(c,i,t);continue}c[c.length-1]+=i}n.trim!==!1&&(c=c.map(e=>BN(e)));let l=[...c.join(`
|
|
150
|
-
`)];for(let[e,t]of l.entries()){if(r+=t,PN.has(t)){let{groups:t}=RegExp(`(?:\\[(?<code>\\d+)m|\\${FN}(?<uri>.*))`).exec(l.slice(e).join(``))||{groups:{}};if(t.code!==void 0){let e=Number.parseFloat(t.code);a=e===39?void 0:e}else t.uri!==void 0&&(o=t.uri.length===0?void 0:t.uri)}let n=i.codes.get(Number(a));l[e+1]===`
|
|
151
|
-
`?(o&&(r+=LN(``)),a&&n&&(r+=IN(n))):t===`
|
|
152
|
-
`&&(a&&n&&(r+=IN(a)),o&&(r+=LN(o)))}return r};function HN(e,t,n){return String(e).normalize().replace(/\r\n/g,`
|
|
153
|
-
`).split(`
|
|
154
|
-
`).map(e=>VN(e,t,n)).join(`
|
|
155
|
-
`)}function UN(e){return Number.isInteger(e)?e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141):!1}const WN=/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/,GN=[`\x1B`,``],KN=e=>`${GN[0]}[${e}m`,qN=(e,t,n)=>{let r=[];e=[...e];for(let n of e){let a=n;n.includes(`;`)&&(n=n.split(`;`)[0][0]+`0`);let o=i.codes.get(Number.parseInt(n,10));if(o){let n=e.indexOf(o.toString());n===-1?r.push(KN(t?o:a)):e.splice(n,1)}else if(t){r.push(KN(0));break}else r.push(KN(a))}if(t&&(r=r.filter((e,t)=>r.indexOf(e)===t),n!==void 0)){let e=KN(i.codes.get(Number.parseInt(n,10)));r=r.reduce((t,n)=>n===e?[n,...t]:[...t,n],[])}return r.join(``)};function JN(e,t,n){let r=[...e],i=[],a=typeof n==`number`?n:r.length,o=!1,s,c=0,l=``;for(let[u,d]of r.entries()){let r=!1;if(GN.includes(d)){let t=/\d[^m]*/.exec(e.slice(u,u+18));s=t&&t.length>0?t[0]:void 0,c<a&&(o=!0,s!==void 0&&i.push(s))}else o&&d===`m`&&(o=!1,r=!0);if(!o&&!r&&c++,!WN.test(d)&&UN(d.codePointAt())&&(c++,typeof n!=`number`&&a++),c>t&&c<=a)l+=d;else if(c===t&&!o&&s!==void 0)l=qN(i);else if(c>=a){l+=qN(i,!0,s);break}}return l}const YN=e=>{let{columns:t}=e;return t||80},XN=(e,t)=>{let n=e.rows||24,r=t.split(`
|
|
156
|
-
`),i=r.length-n;return i<=0?t:JN(t,o(r.slice(0,i).join(`
|
|
157
|
-
`)).length+1)};function ZN(e,{showCursor:t=!1}={}){let n=0,r=YN(e),i=``,a=(...a)=>{t||ON.hide();let o=a.join(` `)+`
|
|
158
|
-
`;o=XN(e,o);let s=YN(e);o===i&&r===s||(i=o,r=s,o=HN(o,s,{trim:!1,hard:!0,wordWrap:!1}),e.write(Q.eraseLines(n)+o),n=o.split(`
|
|
159
|
-
`).length)};return a.clear=()=>{e.write(Q.eraseLines(n)),i=``,r=YN(e),n=0},a.done=()=>{i=``,r=YN(e),n=0,t||ON.show()},a}ZN(T.stdout),ZN(T.stderr),ZN(bE),CT(vN.bar),CT(vN.corners.bl),CT(vN.leftT);function QN(){try{return!!(process.stdin.isTTY&&process.stdout.isTTY)}catch{return!1}}function $N(e){try{let t=Se(`ps -p ${e} -o pid=,ppid=,command=`,{encoding:`utf8`,timeout:5e3}).trim();if(!t)return null;let[n,r,...i]=t.split(/\s+/),a=n?parseInt(n,10):NaN,o=r?parseInt(r,10):NaN;return isNaN(a)||isNaN(o)?null:{pid:a,ppid:o,command:i.join(` `)||void 0}}catch(t){return t instanceof Error&&t.message.includes(`timeout`)&&console.warn(`Process lookup timed out for PID ${e}`),null}}function eP(e){let t=[],n=new Set,r=e,i=1e3;for(;r&&i>0;){if(n.has(r)){console.warn(`Detected cycle in process tree at PID ${r}`);break}n.add(r);let e=$N(r);if(!e||e.ppid===0||e.ppid===1)break;t.push(e),r=e.ppid,i--}return i===0&&console.warn(`Reached maximum depth limit while traversing process tree from PID ${e}`),t}function tP(e){try{let t=Se(`wmic process where (ProcessId=${e}) get ProcessId,ParentProcessId,CommandLine /format:csv`,{encoding:`utf8`,timeout:1e4});if(!t)return null;let n=t.split(`
|
|
160
|
-
`).filter(e=>e.trim()&&!e.startsWith(`Node`)).pop()?.split(`,`);if(!n||n.length<4)return null;let[r,i,a,o]=n,s=o?parseInt(o.trim(),10):NaN,c=a?parseInt(a.trim(),10):NaN;return isNaN(s)||isNaN(c)?null:{pid:s,ppid:c,command:i?.trim()||void 0}}catch(t){return t instanceof Error&&t.message.includes(`timeout`)&&console.warn(`Process lookup timed out for PID ${e}`),null}}function nP(e){let t=[],n=new Set,r=e,i=1e3;for(;r&&i>0;){if(n.has(r)){console.warn(`Detected cycle in process tree at PID ${r}`);break}n.add(r);let e=tP(r);if(!e||e.ppid===0||e.ppid===4)break;t.push(e),r=e.ppid,i--}return i===0&&console.warn(`Reached maximum depth limit while traversing process tree from PID ${e}`),t}function rP(e=process.pid){if(typeof e!=`number`||!Number.isInteger(e)||e<=0)throw Error(`PID must be a positive integer`);return xe.platform()===`win32`?nP(e):eP(e)}const iP=[{id:`opencode`,name:`OpenCode`,type:`agent`,envVars:[{any:[`OPENCODE`,`OPENCODE_BIN_PATH`,`OPENCODE_SERVER`,`OPENCODE_APP_INFO`,`OPENCODE_MODES`]}]},{id:`jules`,name:`Jules`,type:`agent`,envVars:[{all:[[`HOME`,`/home/jules`],[`USER`,`swebot`]]}]},{id:`claude-code`,name:`Claude Code`,type:`agent`,envVars:[`CLAUDECODE`]},{id:`cursor-agent`,name:`Cursor Agent`,type:`agent`,envVars:[{all:[`CURSOR_TRACE_ID`,[`PAGER`,`head -n 10000 | cat`]]}]},{id:`cursor`,name:`Cursor`,type:`interactive`,envVars:[`CURSOR_TRACE_ID`]},{id:`gemini-agent`,name:`Gemini Agent`,type:`agent`,processChecks:[`gemini`]},{id:`codex`,name:`OpenAI Codex`,type:`agent`,processChecks:[`codex`]},{id:`replit`,name:`Replit`,type:`agent`,envVars:[`REPL_ID`]},{id:`aider`,name:`Aider`,type:`agent`,envVars:[`AIDER_API_KEY`],processChecks:[`aider`]},{id:`bolt-agent`,name:`Bolt.new Agent`,type:`agent`,envVars:[{all:[[`SHELL`,`/bin/jsh`],`npm_config_yes`]}]},{id:`bolt`,name:`Bolt.new`,type:`interactive`,envVars:[{all:[[`SHELL`,`/bin/jsh`]],none:[`npm_config_yes`]}]},{id:`zed-agent`,name:`Zed Agent`,type:`agent`,envVars:[{all:[[`TERM_PROGRAM`,`zed`],[`PAGER`,`cat`]]}]},{id:`zed`,name:`Zed`,type:`interactive`,envVars:[{all:[[`TERM_PROGRAM`,`zed`]],none:[[`PAGER`,`cat`]]}]},{id:`replit-assistant`,name:`Replit Assistant`,type:`agent`,envVars:[{all:[`REPL_ID`,[`REPLIT_MODE`,`assistant`]]}]},{id:`replit`,name:`Replit`,type:`interactive`,envVars:[{all:[`REPL_ID`],none:[[`REPLIT_MODE`,`assistant`]]}]},{id:`windsurf`,name:`Windsurf`,type:`agent`,envVars:[`CODEIUM_EDITOR_APP_ROOT`]},{id:`crush`,name:`Crush`,type:`agent`,processChecks:[`crush`]},{id:`vscode-copilot-agent`,name:`GitHub Copilot in VS Code`,type:`agent`,envVars:[{all:[[`TERM_PROGRAM`,`vscode`],[`GIT_PAGER`,`cat`]]}]},{id:`warp`,name:`Warp Terminal`,type:`hybrid`,envVars:[{all:[[`TERM_PROGRAM`,`WarpTerminal`]]}]},{id:`octofriend`,name:`Octofriend`,type:`agent`,processChecks:[`octofriend`]}];function aP(e,t=process.env){let[n,r]=typeof e==`string`?[e,void 0]:e,i=t[n];return!!(i&&(!r||i===r))}function oP(e,t){try{let n=t??rP();for(let t of n)if(t.command?.includes(e))return!0}catch{}return!1}function sP(e,t=process.env){if(typeof e==`string`||Array.isArray(e))return aP(e,t);let{any:n,all:r,none:i}=e,a=!n?.length||n.some(e=>aP(e,t)),o=!r?.length||r.every(e=>aP(e,t)),s=!i?.length||!i.some(e=>aP(e,t));return a&&o&&s}function cP(e){return e.customDetectors?.some(e=>{try{return e()}catch{return!1}})??!1}function lP(e){return{isAgentic:!0,id:e.id,name:e.name,type:e.type}}function uP(e=process.env,t){for(let t of iP)if(t.envVars?.some(t=>sP(t,e)))return lP(t);let n=t,r=()=>{if(n===void 0)try{n=rP()}catch{n=[]}return n};for(let e of iP)if(e.processChecks?.some(e=>oP(e,r())))return lP(e);for(let e of iP)if(cP(e))return lP(e);return{isAgentic:!1,id:null,name:null,type:null}}function dP(){return!QN()||_N.isCI}const fP=_N.isCI;function pP(){return fP?`ci`:QN()?`interactive`:`non-interactive`}function mP(){let e=uP(),t=e.isAgentic&&e.id!==null?{"X-CF-CLI-Agent":e.id}:{};return{"User-Agent":`cf/${c}`,"X-CF-CLI-Mode":pP(),...t}}const hP=`cbca97e7-c331-4cdd-8fd8-e25a451b98bf`,gP={authorize:`https://dash.cloudflare.com/oauth2/auth`,token:`https://dash.cloudflare.com/oauth2/token`,revoke:`https://dash.cloudflare.com/oauth2/revoke`},_P={bindHost:`127.0.0.1`,urlHost:`localhost`,startPort:8877,maxPortAttempts:10,path:`/oauth/callback`};function vP(e){return`http://${_P.urlHost}:${e}${_P.path}`}const yP=`openid.offline.offline_access.user:read.account:read.access:read.access:write.agw:read.agw:run.agw:write.ai:read.ai:write.ai-search:read.ai-search:run.ai-search:write.aiaudit:read.aiaudit:write.aig:read.aig:write.auditlogs:read.browser:read.browser:write.cfone:read.cfone:write.cloudchamber:write.connectivity:admin.connectivity:bind.connectivity:read.constellation:write.containers:write.d1:write.dex:read.dex:write.dns_analytics:read.dns_records:edit.dns_records:read.dns_settings:read.firstpartytags:write.images:read.images:write.lb:edit.lb:read.logpush:read.logpush:write.mcp_portals:read.mcp_portals:write.notebook-examples:read.notification:read.notification:write.pages:read.pages:write.pipelines:read.pipelines:setup.pipelines:write.query_cache:write.queues:write.r2_catalog:write.radar:read.rag:read.rag:write.registrar:read.registrar:write.secrets_store:read.secrets_store:write.sso-connector:read.sso-connector:write.ssl_certs:write.teams:pii.teams:read.teams:secure_location.teams:write.url_scanner:read.url_scanner:write.vectorize:write.workers:read.workers:write.workers_builds:read.workers_builds:write.workers_deployments:read.workers_kv:write.workers_observability:read.workers_observability:write.workers_observability_telemetry:write.workers_routes:write.workers_scripts:write.workers_tail:read.zone:read`.split(`.`);function bP(e){return e.toString(`base64`).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function xP(e){let t=we(e),n=``;for(let r=0;r<e;r++){let e=t[r];e!==void 0&&(n+=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~`[e%66])}return n}function SP(){return xP(96)}function CP(e){return bP(Ce(`sha256`).update(e).digest())}function wP(){return xP(32)}function TP(){let e=SP();return{codeVerifier:e,codeChallenge:CP(e),state:wP()}}function EP(e){return new Promise(t=>{let n=Ee({port:e,host:_P.bindHost});n.once(`connect`,()=>{n.destroy(),t(!1)}),n.once(`error`,()=>{t(!0)})})}async function DP(){for(let e=0;e<_P.maxPortAttempts;e++){let t=_P.startPort+e;if(await EP(t))return t}throw Error(`No available ports found (tried ${_P.startPort}-${_P.startPort+_P.maxPortAttempts-1}). Please close any applications using these ports.`)}function OP(e,t,n){return new Promise((r,i)=>{let a=null,o=null,s=()=>{o&&=(clearTimeout(o),null),a&&=(a.close(),null)};o=setTimeout(()=>{s(),i(Error(`Login timed out after ${n/1e3} seconds. Please try again.`))},n),a=Te((n,a)=>{let o=new URL(n.url||``,`http://${_P.bindHost}:${t}`);if(o.pathname!==_P.path){a.writeHead(404),a.end(`Not Found`);return}let c=o.searchParams.get(`code`),l=o.searchParams.get(`state`),u=o.searchParams.get(`error`),d=o.searchParams.get(`error_description`);if(u){s(),a.writeHead(307,{Location:`https://welcome.developers.workers.dev/cf-oauth-consent-denied`}),a.end(),i(Error(`OAuth error: ${d||u}`));return}if(l!==e){s(),a.writeHead(400,{"Content-Type":`text/html`}),a.end(`
|
|
161
|
-
<html>
|
|
162
|
-
<body>
|
|
163
|
-
<h1>Authentication Failed</h1>
|
|
164
|
-
<p>Invalid state parameter. This could indicate a CSRF attack.</p>
|
|
165
|
-
<p>You can close this window.</p>
|
|
166
|
-
</body>
|
|
167
|
-
</html>
|
|
168
|
-
`),i(Error(`Invalid state parameter - possible CSRF attack`));return}if(!c){s(),a.writeHead(400,{"Content-Type":`text/html`}),a.end(`
|
|
169
|
-
<html>
|
|
170
|
-
<body>
|
|
171
|
-
<h1>Authentication Failed</h1>
|
|
172
|
-
<p>No authorization code received.</p>
|
|
173
|
-
<p>You can close this window.</p>
|
|
174
|
-
</body>
|
|
175
|
-
</html>
|
|
176
|
-
`),i(Error(`No authorization code received`));return}s(),a.writeHead(307,{Location:`https://welcome.developers.workers.dev/cf-oauth-consent-granted`}),a.end(),r({code:c,state:l})}),a.on(`error`,e=>{s(),i(e)}),a.listen(t,_P.bindHost,()=>{})})}const kP=()=>he(ue(),`.cf`),AP=()=>he(kP(),`config.toml`),jP=()=>he(kP(),`config.lock`),MP=1e4;function NP(){let e=kP();S(e)||C(e,{recursive:!0,mode:448})}async function PP(){NP();let e=Date.now();for(;Date.now()-e<MP;){let e=jP();try{return ee(te(e,`wx`)),()=>{try{S(e)&&ie(e)}catch{}}}catch(t){if(t.code===`EEXIST`)try{let t=re(e);if(Date.now()-t.mtimeMs>MP*2){ie(e);continue}}catch{continue}await new Promise(e=>setTimeout(e,100))}}throw Error(`Failed to acquire token lock - another process may be refreshing tokens`)}function FP(e){try{let t=e.match(/access_token\s*=\s*"([^"]+)"/)?.[1],n=e.match(/refresh_token\s*=\s*"([^"]+)"/)?.[1],r=e.match(/expires_at\s*=\s*"([^"]+)"/)?.[1],i=e.match(/scopes\s*=\s*\[([^\]]+)\]/)?.[1];return!t||!n||!r?null:{accessToken:t,refreshToken:n,expiresAt:r,scopes:i?i.split(`,`).map(e=>e.trim().replace(/"/g,``)):[]}}catch{return null}}function IP(e){let t=e.scopes.map(e=>`"${e}"`).join(`, `);return`# CF CLI OAuth Configuration
|
|
177
|
-
# This file is auto-generated. Do not edit manually.
|
|
178
|
-
|
|
179
|
-
access_token = "${e.accessToken}"
|
|
180
|
-
refresh_token = "${e.refreshToken}"
|
|
181
|
-
expires_at = "${e.expiresAt}"
|
|
182
|
-
scopes = [${t}]
|
|
183
|
-
`}function LP(){try{let e=AP();return S(e)?FP(ne(e,`utf-8`)):null}catch{return null}}function RP(e){NP();let t=IP(e),n=AP();ae(n,t,{mode:384}),x(n,384)}function zP(){try{let e=AP();S(e)&&ie(e)}catch{}}function BP(e){let t=new Date(Date.now()+e.expires_in*1e3).toISOString(),n=e.scope?e.scope.split(` `):[];return{accessToken:e.access_token,refreshToken:e.refresh_token,expiresAt:t,scopes:n}}function VP(e){let t=new Date(e.expiresAt);return Date.now()>=t.getTime()-300*1e3}function HP(){return AP()}function UP(e){NP();let t=`# CF CLI API Token Configuration
|
|
184
|
-
# This file is auto-generated. Do not edit manually.
|
|
185
|
-
|
|
186
|
-
api_token = "${e}"
|
|
187
|
-
`,n=AP();ae(n,t,{mode:384}),x(n,384)}function WP(){try{let e=AP();return S(e)?ne(e,`utf-8`).match(/api_token\s*=\s*"([^"]+)"/)?.[1]??null:null}catch{return null}}function GP(e){return new Promise((t,n)=>{let r=de(),i;switch(r){case`darwin`:i=`open "${e}"`;break;case`win32`:i=`start "" "${e}"`;break;default:i=`xdg-open "${e}"`}_e(i,e=>{e?n(Error(`Failed to open browser: ${e.message}`)):t()})})}function KP(e,t,n){let r=new URLSearchParams({response_type:`code`,client_id:hP,redirect_uri:n,scope:yP.join(` `),state:t,code_challenge:e,code_challenge_method:`S256`});return`${gP.authorize}?${r.toString()}`}async function qP(e,t,n){let r=new URLSearchParams({grant_type:`authorization_code`,code:e,redirect_uri:n,client_id:hP,code_verifier:t}),i=await fetch(gP.token,{method:`POST`,body:r.toString(),headers:{...mP(),"Content-Type":`application/x-www-form-urlencoded`},signal:AbortSignal.timeout(1e4)});if(!i.ok){let e=await i.text();throw Error(`Failed to exchange code for tokens: ${e}`)}return i.json()}async function JP(e){let t=new URLSearchParams({grant_type:`refresh_token`,refresh_token:e,client_id:hP}),n=await fetch(gP.token,{method:`POST`,body:t.toString(),headers:{...mP(),"Content-Type":`application/x-www-form-urlencoded`},signal:AbortSignal.timeout(1e4)});if(!n.ok){let e=await n.text();throw Error(`Failed to refresh token: ${e}`)}return n.json()}async function YP(e){let t=new URLSearchParams({client_id:hP,token_type_hint:`refresh_token`,token:e});try{return(await fetch(gP.revoke,{method:`POST`,body:t.toString(),headers:{...mP(),"Content-Type":`application/x-www-form-urlencoded`},signal:AbortSignal.timeout(1e4)})).ok}catch{return!1}}async function XP(){let e=await DP(),t=vP(e),{codeVerifier:n,codeChallenge:r,state:i}=TP(),a=KP(r,i,t),o=OP(i,e,12e4);console.log(`Opening browser for authentication...`),console.log(`If the browser doesn't open, visit: ${a}\n`);try{await GP(a)}catch{console.log(`Could not open browser automatically.`),console.log(`Please visit: ${a}\n`)}console.log(`Waiting for authentication...`);let{code:s}=await o;console.log(`Exchanging code for tokens...`);let c=BP(await qP(s,n,t));return RP(c),c}async function ZP(){let e=LP(),t=!1;return e&&(t=await YP(e.refreshToken)),zP(),t}async function QP(){let e=LP();if(!e)return null;if(VP(e)){let t=null;try{t=await PP();let n=LP();if(n&&!VP(n))return n.accessToken;let r=BP(await JP(e.refreshToken));return RP(r),r.accessToken}catch(e){let t=e instanceof Error?e.message:String(e);return(t.includes(`invalid_grant`)||t.includes(`invalid_token`)||t.includes(`unauthorized`)||t.includes(`401`))&&zP(),null}finally{t&&t()}}return e.accessToken}function $P(){return LP()!==null}function eF(){return LP()!==null||WP()!==null}function tF(){return T.platform===`win32`?!!T.env.CI||!!T.env.WT_SESSION||!!T.env.TERMINUS_SUBLIME||T.env.ConEmuTask===`{cmd::Cmder}`||T.env.TERM_PROGRAM===`Terminus-Sublime`||T.env.TERM_PROGRAM===`vscode`||T.env.TERM===`xterm-256color`||T.env.TERM===`alacritty`||T.env.TERMINAL_EMULATOR===`JetBrains-JediTerm`:T.env.TERM!==`linux`}const nF=tF(),rF=()=>process.env.CI===`true`,iF=(e,t)=>nF?e:t,aF=iF(`◆`,`*`),oF=iF(`■`,`x`),sF=iF(`▲`,`x`),cF=iF(`◇`,`o`),$=iF(`│`,`|`),lF=iF(`└`,`—`),uF=iF(`●`,`>`),dF=iF(`○`,` `),fF=iF(`▪`,`•`),pF=iF(`●`,`•`),mF=iF(`◆`,`*`),hF=iF(`▲`,`!`),gF=iF(`■`,`x`),_F=e=>{switch(e){case`initial`:case`active`:return w(`cyan`,aF);case`cancel`:return w(`red`,oF);case`error`:return w(`yellow`,sF);case`submit`:return w(`green`,cF)}},vF=e=>{switch(e){case`initial`:case`active`:return w(`cyan`,$);case`cancel`:return w(`red`,$);case`error`:return w(`yellow`,$);case`submit`:return w(`green`,$)}},yF=(e,t,n,r,i)=>{let a=t,o=0;for(let t=n;t<r;t++){let n=e[t];if(a-=n.length,o++,a<=i)break}return{lineCount:a,removals:o}},bF=({cursor:e,options:t,style:n,output:r=process.stdout,maxItems:i=1/0,columnPadding:a=0,rowPadding:o=4})=>{let s=fE(r)-a,c=pE(r),l=w(`dim`,`...`),u=Math.max(c-o,0),d=Math.max(Math.min(i,u),5),f=0;e>=d-3&&(f=Math.max(Math.min(e-d+3,t.length-d),0));let p=d<t.length&&f>0,m=d<t.length&&f+d<t.length,h=Math.min(f+d,t.length),g=[],_=0;p&&_++,m&&_++;let v=f+ +!!p,y=h-+!!m;for(let r=v;r<y;r++){let i=nE(n(t[r],r===e),s,{hard:!0,trim:!1}).split(`
|
|
188
|
-
`);g.push(i),_+=i.length}if(_>u){let t=0,n=0,r=_,i=e-v,a=(e,t)=>yF(g,r,e,t,u);p?({lineCount:r,removals:t}=a(0,i),r>u&&({lineCount:r,removals:n}=a(i+1,g.length))):({lineCount:r,removals:n}=a(i+1,g.length),r>u&&({lineCount:r,removals:t}=a(0,i))),t>0&&(p=!0,g.splice(0,t)),n>0&&(m=!0,g.splice(g.length-n,n))}let b=[];p&&b.push(l);for(let e of g)for(let t of e)b.push(t);return m&&b.push(l),b},xF=e=>{let t=e.active??`Yes`,n=e.inactive??`No`;return new gE({active:t,inactive:n,signal:e.signal,input:e.input,output:e.output,initialValue:e.initialValue??!0,render(){let r=e.withGuide??iE.withGuide,i=`${_F(this.state)} `,a=r?`${w(`gray`,$)} `:``,o=mE(e.output,e.message,a,i),s=`${r?`${w(`gray`,$)}
|
|
189
|
-
`:``}${o}
|
|
190
|
-
`,c=this.value?t:n;switch(this.state){case`submit`:return`${s}${r?`${w(`gray`,$)} `:``}${w(`dim`,c)}`;case`cancel`:return`${s}${r?`${w(`gray`,$)} `:``}${w([`strikethrough`,`dim`],c)}${r?`
|
|
191
|
-
${w(`gray`,$)}`:``}`;default:{let i=r?`${w(`cyan`,$)} `:``,a=r?w(`cyan`,lF):``;return`${s}${i}${this.value?`${w(`green`,uF)} ${t}`:`${w(`dim`,dF)} ${w(`dim`,t)}`}${e.vertical?r?`
|
|
192
|
-
${w(`cyan`,$)} `:`
|
|
193
|
-
`:` ${w(`dim`,`/`)} `}${this.value?`${w(`dim`,dF)} ${w(`dim`,n)}`:`${w(`green`,uF)} ${n}`}
|
|
194
|
-
${a}
|
|
195
|
-
`}}}}).prompt()},SF={message:(e=[],{symbol:t=w(`gray`,$),secondarySymbol:n=w(`gray`,$),output:r=process.stdout,spacing:i=1,withGuide:a}={})=>{let o=[],s=a??iE.withGuide,c=s?n:``,l=s?`${t} `:``,u=s?`${n} `:``;for(let e=0;e<i;e++)o.push(c);let d=Array.isArray(e)?e:e.split(`
|
|
196
|
-
`);if(d.length>0){let[e,...r]=d;e.length>0?o.push(`${l}${e}`):o.push(s?t:``);for(let e of r)e.length>0?o.push(`${u}${e}`):o.push(s?n:``)}r.write(`${o.join(`
|
|
197
|
-
`)}
|
|
198
|
-
`)},info:(e,t)=>{SF.message(e,{...t,symbol:w(`blue`,pF)})},success:(e,t)=>{SF.message(e,{...t,symbol:w(`green`,mF)})},step:(e,t)=>{SF.message(e,{...t,symbol:w(`green`,cF)})},warn:(e,t)=>{SF.message(e,{...t,symbol:w(`yellow`,hF)})},warning:(e,t)=>{SF.warn(e,t)},error:(e,t)=>{SF.message(e,{...t,symbol:w(`red`,gF)})}},CF=e=>new _E({validate:e.validate,mask:e.mask??fF,signal:e.signal,input:e.input,output:e.output,render(){let t=e.withGuide??iE.withGuide,n=`${t?`${w(`gray`,$)}
|
|
199
|
-
`:``}${_F(this.state)} ${e.message}
|
|
200
|
-
`,r=this.userInputWithCursor,i=this.masked;switch(this.state){case`error`:{let r=t?`${w(`yellow`,$)} `:``,a=t?`${w(`yellow`,lF)} `:``,o=i??``;return e.clearOnError&&this.clear(),`${n.trim()}
|
|
201
|
-
${r}${o}
|
|
202
|
-
${a}${w(`yellow`,this.error)}
|
|
203
|
-
`}case`submit`:return`${n}${t?`${w(`gray`,$)} `:``}${i?w(`dim`,i):``}`;case`cancel`:return`${n}${t?`${w(`gray`,$)} `:``}${i?w([`strikethrough`,`dim`],i):``}${i&&t?`
|
|
204
|
-
${w(`gray`,$)}`:``}`;default:return`${n}${t?`${w(`cyan`,$)} `:``}${r}
|
|
205
|
-
${t?w(`cyan`,lF):``}
|
|
206
|
-
`}}}).prompt(),wF=e=>w(`magenta`,e),TF=({indicator:e=`dots`,onCancel:t,output:n=process.stdout,cancelMessage:r,errorMessage:i,frames:a=nF?[`◒`,`◐`,`◓`,`◑`]:[`•`,`o`,`O`,`0`],delay:o=nF?80:120,signal:s,...c}={})=>{let l=rF(),u,d,f=!1,p=!1,m=``,h,g=performance.now(),_=fE(n),v=c?.styleFrame??wF,y=e=>{let n=e>1?i??iE.messages.error:r??iE.messages.cancel;p=e===1,f&&(ae(n,e),p&&typeof t==`function`&&t())},b=()=>y(2),x=()=>y(1),ee=()=>{process.on(`uncaughtExceptionMonitor`,b),process.on(`unhandledRejection`,b),process.on(`SIGINT`,x),process.on(`SIGTERM`,x),process.on(`exit`,y),s&&s.addEventListener(`abort`,x)},S=()=>{process.removeListener(`uncaughtExceptionMonitor`,b),process.removeListener(`unhandledRejection`,b),process.removeListener(`SIGINT`,x),process.removeListener(`SIGTERM`,x),process.removeListener(`exit`,y),s&&s.removeEventListener(`abort`,x)},C=()=>{if(h===void 0)return;l&&n.write(`
|
|
207
|
-
`);let e=nE(h,_,{hard:!0,trim:!1}).split(`
|
|
208
|
-
`);e.length>1&&n.write(O.cursor.up(e.length-1)),n.write(O.cursor.to(0)),n.write(O.erase.down())},te=e=>e.replace(/\.+$/,``),ne=e=>{let t=(performance.now()-e)/1e3,n=Math.floor(t/60),r=Math.floor(t%60);return n>0?`[${n}m ${r}s]`:`[${r}s]`},re=c.withGuide??iE.withGuide,ie=(t=``)=>{f=!0,u=dE({output:n}),m=te(t),g=performance.now(),re&&n.write(`${w(`gray`,$)}
|
|
209
|
-
`);let r=0,i=0;ee(),d=setInterval(()=>{if(l&&m===h)return;C(),h=m;let t=v(a[r]),o;if(l)o=`${t} ${m}...`;else if(e===`timer`)o=`${t} ${m} ${ne(g)}`;else{let e=`.`.repeat(Math.floor(i)).slice(0,3);o=`${t} ${m}${e}`}let s=nE(o,_,{hard:!0,trim:!1});n.write(s),r=r+1<a.length?r+1:0,i=i<4?i+.125:0},o)},ae=(t=``,r=0,i=!1)=>{if(!f)return;f=!1,clearInterval(d),C();let a=r===0?w(`green`,cF):r===1?w(`red`,oF):w(`red`,sF);m=t??m,i||(e===`timer`?n.write(`${a} ${m} ${ne(g)}
|
|
210
|
-
`):n.write(`${a} ${m}
|
|
211
|
-
`)),S(),u()};return{start:ie,stop:(e=``)=>ae(e,0),message:(e=``)=>{m=te(e??m)},cancel:(e=``)=>ae(e,1),error:(e=``)=>ae(e,2),clear:()=>ae(``,0,!0),get isCancelled(){return p}}},EF=(e,t)=>e.includes(`
|
|
212
|
-
`)?e.split(`
|
|
213
|
-
`).map(e=>t(e)).join(`
|
|
214
|
-
`):t(e),DF=e=>{let t=(e,t)=>{let n=e.label??String(e.value);switch(t){case`disabled`:return`${w(`gray`,dF)} ${EF(n,e=>w(`gray`,e))}${e.hint?` ${w(`dim`,`(${e.hint??`disabled`})`)}`:``}`;case`selected`:return`${EF(n,e=>w(`dim`,e))}`;case`active`:return`${w(`green`,uF)} ${n}${e.hint?` ${w(`dim`,`(${e.hint})`)}`:``}`;case`cancelled`:return`${EF(n,e=>w([`strikethrough`,`dim`],e))}`;default:return`${w(`dim`,dF)} ${EF(n,e=>w(`dim`,e))}`}};return new vE({options:e.options,signal:e.signal,input:e.input,output:e.output,initialValue:e.initialValue,render(){let n=e.withGuide??iE.withGuide,r=`${_F(this.state)} `,i=`${vF(this.state)} `,a=mE(e.output,e.message,i,r),o=`${n?`${w(`gray`,$)}
|
|
215
|
-
`:``}${a}
|
|
216
|
-
`;switch(this.state){case`submit`:{let r=n?`${w(`gray`,$)} `:``;return`${o}${mE(e.output,t(this.options[this.cursor],`selected`),r)}`}case`cancel`:{let r=n?`${w(`gray`,$)} `:``;return`${o}${mE(e.output,t(this.options[this.cursor],`cancelled`),r)}${n?`
|
|
217
|
-
${w(`gray`,$)}`:``}`}default:{let r=n?`${w(`cyan`,$)} `:``,i=n?w(`cyan`,lF):``,a=o.split(`
|
|
218
|
-
`).length,s=n?2:1;return`${o}${r}${bF({output:e.output,cursor:this.cursor,options:this.options,maxItems:e.maxItems,columnPadding:r.length,rowPadding:a+s,style:(e,n)=>t(e,e.disabled?`disabled`:n?`active`:`inactive`)}).join(`
|
|
219
|
-
${r}`)}
|
|
220
|
-
${i}
|
|
221
|
-
`}}}}).prompt()},OF=`${w(`gray`,$)} `,kF={message:async(e,{symbol:t=w(`gray`,$)}={})=>{process.stdout.write(`${w(`gray`,$)}
|
|
222
|
-
${t} `);let n=3;for await(let t of e){t=t.replace(/\n/g,`
|
|
223
|
-
${OF}`),t.includes(`
|
|
224
|
-
`)&&(n=3+oe(t.slice(t.lastIndexOf(`
|
|
225
|
-
`))).length);let e=oe(t).length;n+e<process.stdout.columns?(n+=e,process.stdout.write(t)):(process.stdout.write(`
|
|
226
|
-
${OF}${t.trimStart()}`),n=3+oe(t.trimStart()).length)}process.stdout.write(`
|
|
227
|
-
`)},info:e=>kF.message(e,{symbol:w(`blue`,pF)}),success:e=>kF.message(e,{symbol:w(`green`,mF)}),step:e=>kF.message(e,{symbol:w(`green`,cF)}),warn:e=>kF.message(e,{symbol:w(`yellow`,hF)}),warning:e=>kF.warn(e),error:e=>kF.message(e,{symbol:w(`red`,gF)})},AF=e=>new yE({validate:e.validate,placeholder:e.placeholder,defaultValue:e.defaultValue,initialValue:e.initialValue,output:e.output,signal:e.signal,input:e.input,render(){let t=e?.withGuide??iE.withGuide,n=`${`${t?`${w(`gray`,$)}
|
|
228
|
-
`:``}${_F(this.state)} `}${e.message}
|
|
229
|
-
`,r=e.placeholder?w(`inverse`,e.placeholder[0])+w(`dim`,e.placeholder.slice(1)):w([`inverse`,`hidden`],`_`),i=this.userInput?this.userInputWithCursor:r,a=this.value??``;switch(this.state){case`error`:{let e=this.error?` ${w(`yellow`,this.error)}`:``,r=t?`${w(`yellow`,$)} `:``,a=t?w(`yellow`,lF):``;return`${n.trim()}
|
|
230
|
-
${r}${i}
|
|
231
|
-
${a}${e}
|
|
232
|
-
`}case`submit`:{let e=a?` ${w(`dim`,a)}`:``;return`${n}${t?w(`gray`,$):``}${e}`}case`cancel`:{let e=a?` ${w([`strikethrough`,`dim`],a)}`:``,r=t?w(`gray`,$):``;return`${n}${r}${e}${a.trim()?`
|
|
233
|
-
${r}`:``}`}default:return`${n}${t?`${w(`cyan`,$)} `:``}${i}
|
|
234
|
-
${t?w(`cyan`,lF):``}
|
|
235
|
-
`}}}).prompt();function jF(){u(c)}async function MF(e){let t=d(),n=e.map(e=>({value:e,label:e.name})),r=await new vE({options:n,initialValue:n[0]?.value,render(){let e=t.bold(`Select an account`),n=this.options.map((e,n)=>{let r=n===this.cursor,i=e.value,a=t.hex(p.muted)(`${i.id.slice(0,12)}...`);return r?` ${t.hex(p.orange)(`>`)} ${t.bold(i.name)} ${a}`:` ${t.dim(i.name)} ${a}`});return`${e} ${t.dim(`(use arrow keys, enter to confirm)`)}\n${n.join(`
|
|
236
|
-
`)}`}}).prompt();return lE(r)||!r?null:r}async function NF(){let e=[];for await(let t of process.stdin)e.push(Buffer.from(t));let t=Buffer.concat(e).toString(`utf-8`);return t.endsWith(`
|
|
237
|
-
`)?t.slice(0,-1):t}async function PF(e,t,n){let r=n?.kind??`text`;if(dP()){if(r===`secret`){let t=await NF();if(t.length>0)return t;throw Error(`--${e} is required. Pipe the value via stdin, pass --${e} <value>, or run interactively.`)}throw Error(`--${e} is required. Pass --${e} <value> or run interactively.`)}let i=`Enter value for --${e}`,a=t||n?.question||i;jF();let o=r===`secret`?await CF({message:a,mask:`•`,validate:e=>e&&e.length>0?void 0:`Value cannot be empty`}):await AF({message:a,validate:e=>e&&e.length>0?void 0:`Value cannot be empty`});return(lE(o)||typeof o!=`string`)&&process.exit(130),o}async function FF(e,t,n){if(dP())throw Error(`--${e} is required (one of: ${n.join(`, `)}). Pass --${e} <value> or run interactively.`);let r=`Select value for --${e}`,i=t||r;jF();let a=await DF({message:i,options:n.map(e=>({value:e,label:e}))});return(lE(a)||typeof a!=`string`)&&process.exit(130),a}async function IF(e,t,n={}){if(n.force===!0)return!0;let r=t?`Delete ${e} '${t}'? This cannot be undone.`:`Delete ${e}? This cannot be undone.`,i=n.message?`${n.message} Continue?`:r;if(dP()){let e=d();return process.stderr.write(`${e.hex(p.warning)(`?`)} ${i}\n ${e.dim(`(non-interactive; pass --force to confirm)`)}\n`),!1}jF();let a=await xF({message:i,initialValue:!1});return lE(a)&&process.exit(130),a===!0}const LF=`.cfrc`;function RF(e){let t=e||process.cwd(),n=pe(t);for(;t!==n;){let e=he(t,LF);if(S(e))try{let t=ne(e,`utf-8`).replace(/^\s*\/\/.*$/gm,``);return{config:JSON.parse(t),path:e}}catch{}t=pe(t)}let r=he(t,LF);if(S(r))try{let e=ne(r,`utf-8`).replace(/^\s*\/\/.*$/gm,``);return{config:JSON.parse(e),path:r}}catch{}return null}function zF(e,t){ae(he(t||process.cwd(),LF),JSON.stringify(e,null,2)+`
|
|
238
|
-
`,{mode:384})}function BF(e){let t=he(e||process.cwd(),LF);return S(t)?(ie(t),!0):!1}async function VF(e){let t={},n=HF(`accountId`,`CLOUDFLARE_ACCOUNT_ID`);n&&(t.accountId=n);let r=HF(`zone`,`CLOUDFLARE_ZONE_ID`,e?.zone);return r&&(t.zone=r),t}function HF(e,t,n){if(n)return{value:n,source:`flag`};let r=process.env[t];if(r)return{value:r,source:`env`};let i=RF(),a=i?.config[e];if(a)return{value:a,source:`project`,path:i.path};let o=g().defaults?.[e];if(o)return{value:o,source:`config`,path:h()}}function UF(){return HF(`accountId`,`CLOUDFLARE_ACCOUNT_ID`)?.value}async function WF(e){let t=HF(`accountId`,`CLOUDFLARE_ACCOUNT_ID`);if(t)return GF(t.value,XF(t,`accountId`)),t.value;if(e){let t=await KF(e);if(t)return t}throw Error(`No account ID found.
|
|
239
|
-
|
|
240
|
-
Please provide one of the following:
|
|
241
|
-
1. CLOUDFLARE_ACCOUNT_ID environment variable
|
|
242
|
-
2. Run 'cf context set account-id <id>' to set a default
|
|
243
|
-
3. Create a .cfrc file in your project
|
|
244
|
-
|
|
245
|
-
You can find your account ID in the Cloudflare dashboard URL:
|
|
246
|
-
https://dash.cloudflare.com/<account-id>/...`)}function GF(e,t){if(!process.env.DEBUG)return;let n=e.length>12?e.slice(0,12)+`…`:e;process.stderr.write(`Using account: ${n} (${t})\n`)}async function KF(e){let t;try{t=await $F(e)}catch{return}if(t.length===0)return;if(t.length===1&&t[0]){let n=t[0],{displayName:r}=await ZF(`accountId`,n.id,`user`,e);return GF(n.id,`auto-selected from token — ${r}`),n.id}if(dP()){let e=t.map(e=>` ${e.id} ${e.name}`).join(`
|
|
247
|
-
`);throw Error(`Multiple accounts available but running non-interactively.
|
|
248
|
-
|
|
249
|
-
Available accounts:
|
|
250
|
-
${e}
|
|
251
|
-
|
|
252
|
-
Set one with CLOUDFLARE_ACCOUNT_ID or 'cf context set account-id'.`)}let n=await MF(t);n||process.exit(130);let{displayName:r}=await ZF(`accountId`,n.id,`user`,e);return GF(n.id,`selected interactively — ${r}`),n.id}async function qF(e,t,n){if(e?.zoneId)return JF(e.zoneId,t);let r=HF(`zone`,`CLOUDFLARE_ZONE_ID`,e?.zone);if(r){if(!n?.quiet&&r.source!==`flag`){let e=XF(r);console.error(`Using zone: ${r.value} (from ${e})`)}return JF(r.value,t)}throw Error(`No zone specified.
|
|
253
|
-
|
|
254
|
-
Please provide one of the following:
|
|
255
|
-
1. Zone as a positional argument: cf dns records list <zone>
|
|
256
|
-
2. --zone flag (or -z): cf dns records list --zone example.com
|
|
257
|
-
3. CLOUDFLARE_ZONE_ID environment variable
|
|
258
|
-
4. Run 'cf context set zone <zone>' to set a default
|
|
259
|
-
5. Create a .cfrc file in your project with {"zone": "example.com"}`)}async function JF(e,t){if(v(e)||!t)return e;let{resolveZoneId:n}=await import(`./resolve-GtphSYWh.mjs`).then(e=>e.r);return n(t,await WF(),e)}function YF(e){if(e?.scriptName)return e.scriptName;throw Error("Required Worker name missing. Please specify the Worker name with `--script-name <worker-name>`.")}function XF(e,t=`zone`){switch(e.source){case`flag`:return t===`accountId`?`(flag)`:`--zone flag`;case`env`:return t===`accountId`?`CLOUDFLARE_ACCOUNT_ID`:`CLOUDFLARE_ZONE_ID`;case`project`:return`.cfrc`;case`config`:return`~/.config/cf/config.json`}}async function ZF(e,t,n,r){let i=t,a=t;if(e===`accountId`){let{id:e,name:n}=await eI(t,r);i=e,a=n?`${e.slice(0,12)}... (${n})`:e}else if(e===`zone`){let e=await tI(t,r);i=t,a=e.name}if(n===`project`){let t=RF()?.config||{};t[e]=i,zF(t)}else{let t=g();t.defaults||={},t.defaults[e]=i,m(t)}return{resolvedValue:i,displayName:a}}function QF(e,t){if(t===`project`)if(e===`all`)BF();else{let t=RF();t&&(delete t.config[e],Object.keys(t.config).length===0?BF(pe(t.path)):zF(t.config,pe(t.path)))}else{let t=g();t.defaults&&(e===`all`?delete t.defaults:(delete t.defaults[e],Object.keys(t.defaults).length===0&&delete t.defaults),m(t))}}async function $F(e){return await e.get(`/accounts`)}async function eI(e,t){let n=await $F(t),r=n.find(t=>t.id===e);if(r)return{id:r.id,name:r.name};let i=n.find(t=>t.name.toLowerCase()===e.toLowerCase());if(i)return{id:i.id,name:i.name};if(v(e))return{id:e};throw Error(`Account not found: "${e}"
|
|
260
|
-
|
|
261
|
-
Available accounts:
|
|
262
|
-
${n.map(e=>` ${e.id.slice(0,12)}... ${e.name}`).join(`
|
|
263
|
-
`)}`)}async function tI(e,t){let n=await t.zones.list(),r=n.find(t=>t.id===e);if(r)return{id:r.id,name:r.name};let i=n.find(t=>t.name.toLowerCase()===e.toLowerCase());if(i)return{id:i.id,name:i.name};throw _(e)?Error(`Zone not found: "${e}"
|
|
264
|
-
|
|
265
|
-
This zone either doesn't exist or you don't have access to it.
|
|
266
|
-
Run 'cf zones list' to see available zones.`):Error(`Invalid zone: "${e}"
|
|
267
|
-
|
|
268
|
-
Please provide a zone ID or domain name.
|
|
269
|
-
Run 'cf zones list' to see available zones.`)}function nI(){return he(process.cwd(),LF)}const rI=()=>he(ue(),`.wrangler`,`config`,`default.toml`),iI=/oauth_token\s*=\s*["']([^"']+)["']/;function aI(){try{let e=ne(rI(),`utf-8`);return iI.test(e)}catch{return!1}}async function oI(){let e=process.env.CLOUDFLARE_API_TOKEN;if(e)return e;let t=WP();if(t)return t;let n=await QP();if(n)return n;try{let e=ne(rI(),`utf-8`).match(iI);if(e?.[1])return e[1]}catch{}throw Error(`No authentication token found.
|
|
270
|
-
|
|
271
|
-
Please set one of the following:
|
|
272
|
-
1. Set the CLOUDFLARE_API_TOKEN environment variable
|
|
273
|
-
2. Run 'cf auth login --token <token>' to save an API token
|
|
274
|
-
3. Run 'cf auth login' to authenticate via OAuth
|
|
275
|
-
4. Run 'wrangler login' to authenticate via Wrangler
|
|
276
|
-
|
|
277
|
-
For API tokens, visit: https://dash.cloudflare.com/profile/api-tokens`)}async function sI(e){if(e.local){if(!e.localEndpoint)throw Error(`--local requires --local-endpoint <url>; this should have been caught by the global middleware.`);let{createLocalFetch:t}=await import(`./local-OqhVQbv0.mjs`).then(e=>e.r);return new xT({apiToken:`cf-local-mode-no-auth`,baseURL:process.env.CLOUDFLARE_BASE_URL,defaultHeaders:mP(),fetch:t({endpoint:e.localEndpoint})})}return new xT({apiToken:await oI(),baseURL:process.env.CLOUDFLARE_BASE_URL,defaultHeaders:mP()})}export{WP as C,xT as D,mP as E,HP as S,UP as T,QP as _,RF as a,XP as b,nI as c,UF as d,ZF as f,TF as g,PF as h,QF as i,YF as l,FF as m,oI as n,WF as o,IF as p,aI as r,VF as s,sI as t,qF as u,eF as v,LP as w,ZP as x,$P as y};
|