@compass-labs/api-sdk 2.2.102 → 2.2.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/lib/encodings.d.ts +10 -9
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +29 -13
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/models/components/accountsummary.d.ts +3 -7
- package/dist/commonjs/models/components/accountsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/accountsummary.js.map +1 -1
- package/dist/commonjs/models/components/builder.d.ts +1 -1
- package/dist/commonjs/models/components/collateralposition.d.ts +3 -7
- package/dist/commonjs/models/components/collateralposition.d.ts.map +1 -1
- package/dist/commonjs/models/components/collateralposition.js.map +1 -1
- package/dist/commonjs/models/components/creditborrowparams.d.ts +3 -7
- package/dist/commonjs/models/components/creditborrowparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditborrowparams.js.map +1 -1
- package/dist/commonjs/models/components/creditborrowrequest.d.ts +3 -7
- package/dist/commonjs/models/components/creditborrowrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditborrowrequest.js.map +1 -1
- package/dist/commonjs/models/components/creditenablecollateralparams.d.ts +3 -7
- package/dist/commonjs/models/components/creditenablecollateralparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditenablecollateralparams.js.map +1 -1
- package/dist/commonjs/models/components/creditloopedpositionsresponse.d.ts +3 -3
- package/dist/commonjs/models/components/creditlooprequest.d.ts +3 -7
- package/dist/commonjs/models/components/creditlooprequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditlooprequest.js.map +1 -1
- package/dist/commonjs/models/components/creditloopresponse.d.ts +5 -5
- package/dist/commonjs/models/components/creditloopresponse.js +3 -3
- package/dist/commonjs/models/components/creditloopresponse.js.map +1 -1
- package/dist/commonjs/models/components/creditprotocol.d.ts +6 -14
- package/dist/commonjs/models/components/creditprotocol.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditprotocol.js +3 -7
- package/dist/commonjs/models/components/creditprotocol.js.map +1 -1
- package/dist/commonjs/models/components/creditrepayparams.d.ts +3 -7
- package/dist/commonjs/models/components/creditrepayparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditrepayparams.js.map +1 -1
- package/dist/commonjs/models/components/creditrepayrequest.d.ts +3 -7
- package/dist/commonjs/models/components/creditrepayrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditrepayrequest.js.map +1 -1
- package/dist/commonjs/models/components/creditsupplyparams.d.ts +3 -7
- package/dist/commonjs/models/components/creditsupplyparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditsupplyparams.js.map +1 -1
- package/dist/commonjs/models/components/creditunlooprequest.d.ts +3 -7
- package/dist/commonjs/models/components/creditunlooprequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditunlooprequest.js.map +1 -1
- package/dist/commonjs/models/components/creditunloopresponse.d.ts +5 -5
- package/dist/commonjs/models/components/creditunloopresponse.js +3 -3
- package/dist/commonjs/models/components/creditunloopresponse.js.map +1 -1
- package/dist/commonjs/models/components/creditwithdrawparams.d.ts +3 -7
- package/dist/commonjs/models/components/creditwithdrawparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/creditwithdrawparams.js.map +1 -1
- package/dist/commonjs/models/components/debtposition.d.ts +3 -7
- package/dist/commonjs/models/components/debtposition.d.ts.map +1 -1
- package/dist/commonjs/models/components/debtposition.js.map +1 -1
- package/dist/commonjs/models/components/loopedposition.d.ts +15 -7
- package/dist/commonjs/models/components/loopedposition.d.ts.map +1 -1
- package/dist/commonjs/models/components/loopedposition.js +6 -0
- package/dist/commonjs/models/components/loopedposition.js.map +1 -1
- package/dist/commonjs/models/components/loopedpositioncurrentstate.d.ts +3 -3
- package/dist/commonjs/models/components/loopedpositioncurrentstate.js +1 -1
- package/dist/commonjs/models/components/rebalancetarget.d.ts +3 -7
- package/dist/commonjs/models/components/rebalancetarget.d.ts.map +1 -1
- package/dist/commonjs/models/components/rebalancetarget.js.map +1 -1
- package/dist/commonjs/models/components/rebalancetargetpreview.d.ts +3 -7
- package/dist/commonjs/models/components/rebalancetargetpreview.d.ts.map +1 -1
- package/dist/commonjs/models/components/rebalancetargetpreview.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/lib/encodings.d.ts +10 -9
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +29 -13
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/models/components/accountsummary.d.ts +3 -7
- package/dist/esm/models/components/accountsummary.d.ts.map +1 -1
- package/dist/esm/models/components/accountsummary.js.map +1 -1
- package/dist/esm/models/components/builder.d.ts +1 -1
- package/dist/esm/models/components/collateralposition.d.ts +3 -7
- package/dist/esm/models/components/collateralposition.d.ts.map +1 -1
- package/dist/esm/models/components/collateralposition.js.map +1 -1
- package/dist/esm/models/components/creditborrowparams.d.ts +3 -7
- package/dist/esm/models/components/creditborrowparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditborrowparams.js.map +1 -1
- package/dist/esm/models/components/creditborrowrequest.d.ts +3 -7
- package/dist/esm/models/components/creditborrowrequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditborrowrequest.js.map +1 -1
- package/dist/esm/models/components/creditenablecollateralparams.d.ts +3 -7
- package/dist/esm/models/components/creditenablecollateralparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditenablecollateralparams.js.map +1 -1
- package/dist/esm/models/components/creditloopedpositionsresponse.d.ts +3 -3
- package/dist/esm/models/components/creditlooprequest.d.ts +3 -7
- package/dist/esm/models/components/creditlooprequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditlooprequest.js.map +1 -1
- package/dist/esm/models/components/creditloopresponse.d.ts +5 -5
- package/dist/esm/models/components/creditloopresponse.js +3 -3
- package/dist/esm/models/components/creditloopresponse.js.map +1 -1
- package/dist/esm/models/components/creditprotocol.d.ts +6 -14
- package/dist/esm/models/components/creditprotocol.d.ts.map +1 -1
- package/dist/esm/models/components/creditprotocol.js +3 -7
- package/dist/esm/models/components/creditprotocol.js.map +1 -1
- package/dist/esm/models/components/creditrepayparams.d.ts +3 -7
- package/dist/esm/models/components/creditrepayparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditrepayparams.js.map +1 -1
- package/dist/esm/models/components/creditrepayrequest.d.ts +3 -7
- package/dist/esm/models/components/creditrepayrequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditrepayrequest.js.map +1 -1
- package/dist/esm/models/components/creditsupplyparams.d.ts +3 -7
- package/dist/esm/models/components/creditsupplyparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditsupplyparams.js.map +1 -1
- package/dist/esm/models/components/creditunlooprequest.d.ts +3 -7
- package/dist/esm/models/components/creditunlooprequest.d.ts.map +1 -1
- package/dist/esm/models/components/creditunlooprequest.js.map +1 -1
- package/dist/esm/models/components/creditunloopresponse.d.ts +5 -5
- package/dist/esm/models/components/creditunloopresponse.js +3 -3
- package/dist/esm/models/components/creditunloopresponse.js.map +1 -1
- package/dist/esm/models/components/creditwithdrawparams.d.ts +3 -7
- package/dist/esm/models/components/creditwithdrawparams.d.ts.map +1 -1
- package/dist/esm/models/components/creditwithdrawparams.js.map +1 -1
- package/dist/esm/models/components/debtposition.d.ts +3 -7
- package/dist/esm/models/components/debtposition.d.ts.map +1 -1
- package/dist/esm/models/components/debtposition.js.map +1 -1
- package/dist/esm/models/components/loopedposition.d.ts +15 -7
- package/dist/esm/models/components/loopedposition.d.ts.map +1 -1
- package/dist/esm/models/components/loopedposition.js +6 -0
- package/dist/esm/models/components/loopedposition.js.map +1 -1
- package/dist/esm/models/components/loopedpositioncurrentstate.d.ts +3 -3
- package/dist/esm/models/components/loopedpositioncurrentstate.js +1 -1
- package/dist/esm/models/components/rebalancetarget.d.ts +3 -7
- package/dist/esm/models/components/rebalancetarget.d.ts.map +1 -1
- package/dist/esm/models/components/rebalancetarget.js.map +1 -1
- package/dist/esm/models/components/rebalancetargetpreview.d.ts +3 -7
- package/dist/esm/models/components/rebalancetargetpreview.d.ts.map +1 -1
- package/dist/esm/models/components/rebalancetargetpreview.js.map +1 -1
- package/docs/models/components/accountsummary.md +11 -11
- package/docs/models/components/builder.md +4 -4
- package/docs/models/components/collateralposition.md +17 -17
- package/docs/models/components/creditborrowparams.md +11 -11
- package/docs/models/components/creditborrowrequest.md +21 -21
- package/docs/models/components/creditenablecollateralparams.md +7 -7
- package/docs/models/components/creditloopedpositionsresponse.md +6 -6
- package/docs/models/components/creditlooprequest.md +19 -19
- package/docs/models/components/creditloopresponse.md +9 -9
- package/docs/models/components/creditloopresponseswapprovider.md +3 -3
- package/docs/models/components/creditprotocol.md +3 -7
- package/docs/models/components/creditrepayparams.md +10 -10
- package/docs/models/components/creditrepayrequest.md +20 -20
- package/docs/models/components/creditsupplyparams.md +9 -9
- package/docs/models/components/creditunlooprequest.md +17 -17
- package/docs/models/components/creditunloopresponse.md +9 -9
- package/docs/models/components/creditunloopresponseswapprovider.md +3 -3
- package/docs/models/components/creditwithdrawparams.md +9 -9
- package/docs/models/components/debtposition.md +16 -16
- package/docs/models/components/loopedposition.md +17 -14
- package/docs/models/components/loopedpositioncurrentstate.md +1 -1
- package/docs/models/components/loopedpositioncurrentstatehealthfactorscope.md +1 -1
- package/docs/models/components/rebalancetarget.md +10 -10
- package/docs/models/components/rebalancetargetpreview.md +16 -16
- package/examples/node_modules/tsx/dist/cjs/api/index.cjs +1 -1
- package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -1
- package/examples/node_modules/tsx/dist/cjs/index.cjs +1 -1
- package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -1
- package/examples/node_modules/tsx/dist/cli.cjs +1 -1
- package/examples/node_modules/tsx/dist/cli.mjs +1 -1
- package/examples/node_modules/tsx/dist/esm/api/index.cjs +1 -1
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -1
- package/examples/node_modules/tsx/dist/esm/index.cjs +1 -1
- package/examples/node_modules/tsx/dist/esm/index.mjs +1 -1
- package/examples/node_modules/tsx/dist/index-D1vYaNWZ.cjs +14 -0
- package/examples/node_modules/tsx/dist/index-DCefr8NP.mjs +14 -0
- package/examples/node_modules/tsx/dist/loader.cjs +1 -1
- package/examples/node_modules/tsx/dist/loader.mjs +1 -1
- package/examples/node_modules/tsx/dist/package-B1lIY_Tn.cjs +1 -0
- package/examples/node_modules/tsx/dist/package-BL7Whz21.mjs +1 -0
- package/examples/node_modules/tsx/dist/{register-C9AniqUt.mjs → register-DHgpdRjs.mjs} +1 -1
- package/examples/node_modules/tsx/dist/{register-Ciecs-Zx.cjs → register-DjPW2kSr.cjs} +2 -2
- package/examples/node_modules/tsx/dist/{register-C557imBs.cjs → register-OY9cqBEN.cjs} +1 -1
- package/examples/node_modules/tsx/dist/{register-C4vWVmug.mjs → register-SoqaU4rg.mjs} +1 -1
- package/examples/node_modules/tsx/dist/repl.cjs +1 -1
- package/examples/node_modules/tsx/dist/repl.mjs +1 -1
- package/examples/node_modules/tsx/dist/{require-DDxgG93A.cjs → require-Blr_8TcJ.cjs} +1 -1
- package/examples/node_modules/tsx/dist/{require-CywAB2e6.mjs → require-Cuv-0BLU.mjs} +1 -1
- package/examples/node_modules/tsx/package.json +1 -1
- package/examples/package-lock.json +3 -3
- package/openapi_prepped_for_speakeasy.json +51 -15
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/lib/encodings.ts +58 -23
- package/src/models/components/accountsummary.ts +3 -7
- package/src/models/components/builder.ts +1 -1
- package/src/models/components/collateralposition.ts +3 -7
- package/src/models/components/creditborrowparams.ts +3 -7
- package/src/models/components/creditborrowrequest.ts +3 -7
- package/src/models/components/creditenablecollateralparams.ts +3 -7
- package/src/models/components/creditloopedpositionsresponse.ts +3 -3
- package/src/models/components/creditlooprequest.ts +3 -7
- package/src/models/components/creditloopresponse.ts +5 -5
- package/src/models/components/creditprotocol.ts +6 -14
- package/src/models/components/creditrepayparams.ts +3 -7
- package/src/models/components/creditrepayrequest.ts +3 -7
- package/src/models/components/creditsupplyparams.ts +3 -7
- package/src/models/components/creditunlooprequest.ts +3 -7
- package/src/models/components/creditunloopresponse.ts +5 -5
- package/src/models/components/creditwithdrawparams.ts +3 -7
- package/src/models/components/debtposition.ts +3 -7
- package/src/models/components/loopedposition.ts +21 -7
- package/src/models/components/loopedpositioncurrentstate.ts +3 -3
- package/src/models/components/rebalancetarget.ts +3 -7
- package/src/models/components/rebalancetargetpreview.ts +3 -7
- package/examples/node_modules/tsx/dist/index-6kqi0x0U.cjs +0 -14
- package/examples/node_modules/tsx/dist/index-DQtFPMc2.mjs +0 -14
- package/examples/node_modules/tsx/dist/package-B13bX4zz.mjs +0 -1
- package/examples/node_modules/tsx/dist/package-sd2gMcZx.cjs +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var Ie=Object.defineProperty;var l=(e,r)=>Ie(e,"name",{value:r,configurable:!0});var je=require("node:crypto"),w=require("node:module"),We=require("node:worker_threads"),R=require("./node-features-CEjg7cMX.cjs"),o=require("./register-
|
|
2
|
-
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);Object.assign(e,se(r)),r.port&&r.port.on("message",t=>{t==="deactivate"&&(e.active=!1,r.port.postMessage({type:"deactivated"}))})},"createInitialize"),$e=l(e=>()=>(e.parsedTsconfig=o.loadTsconfig(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"createGlobalPreload"),Ce=l(e=>{const{pathname:r}=new URL(e),t=S.extname(r);if(t===".mts"||t===".mjs")return"module";if(t===".cts"||t===".cjs")return"commonjs";if(t===".js"||o.tsExtensions.includes(t))return o.getPackageType(e)},"getFormatFromFileUrl"),Je=l(e=>{const{pathname:r}=new URL(e),t=S.extname(r);if(t===".mts"||t===".mjs")return"module";if(t===".cts"||t===".cjs")return"commonjs";if(t===".js"||o.tsExtensions.includes(t))return o.getPackageTypeSync(e)},"getFormatFromFileUrlSync"),ne="tsx-namespace",E=`${ne}=`,I="tsx-commonjs-export-preparse",_e=`${I}=1`,j="tsx-commonjs-virtual-query",W=new Map,Ne=/^data:/i,T=l(e=>Ne.test(e),"isDataUrl"),H=l((e,r)=>e.slice(1).split("&").filter(t=>t&&r.every(s=>!t.startsWith(s))).join("&"),"getQueryWithoutParameters"),_=l((e,r)=>{const t=H(e,r);return t?`?${t}`:""},"getSearchWithoutParameters"),qe=l(e=>e.replaceAll(/\/\*[\s\S]*?\*\/|\/\/[^\n\r]*/g,""),"stripComments"),Ae=l(e=>{const r=qe(e);if(/^\s*export\s*\*/.test(r))return"named";if(/^\s*import\s*\*\s*as\s+[\w$]+/.test(r))return"namespace";const t=r.match(/\{([^}]*)\}/)?.[1];if(t)return t.split(",").some(s=>{const n=s.trim().split(/\s+as\s+/)[0];return!!(n&&n!=="default")})?"named":void 0},"getCommonJsImportBinding"),xe=l((e,r,t)=>{const s=W.get(e);if(!s)return!1;try{const[n]=y.parseEsm(s);return n.some(a=>{if(a.d!==-1||a.n!==r)return!1;const i=Ae(s.slice(a.ss,a.s));return i==="named"||t&&i==="namespace"})}catch{return!1}},"parentImportsCommonJsExports"),v=l(e=>{const r=e.indexOf("?"),t=e.indexOf("#");if(T(e)){if(t===-1)return;const s=e.slice(t+1),n=s.lastIndexOf("&"),a=s.slice(n+1);return a.startsWith(E)?a.slice(E.length):void 0}if(!(r===-1||t!==-1&&t<r))return new URLSearchParams(e.slice(r,t===-1?void 0:t)).get(ne)??void 0},"getNamespace"),oe=R.isFeatureSupported(R.importAttributes)?"importAttributes":"importAssertions",ae=l(e=>e==="commonjs"||e==="commonjs-typescript","isCommonJsFormat"),ie=l(e=>e==="module-typescript"||e==="typescript","isModuleTypeScriptFormat"),Be=R.isFeatureSupported(R.esmLoadReadFile),Qe=[`${j}=`],N=[`${I}=`,`${j}=`],L=l((e,r)=>r.parsedTsconfig&&o.je(r.parsedTsconfig,e)?r.parsedTsconfig.config:void 0,"getTsconfigRaw"),De=l(e=>{if(!e.searchParams.has(j))return;const{pathname:r}=e,t=r.toLowerCase().lastIndexOf("%3f");if(t===-1)return;const s=new URL(e);return s.pathname=r.slice(0,t),s.search="",h.fileURLToPath(s)},"getFilePathFromVirtualQuery"),G=l(e=>{const r=e.startsWith(o.fileUrlPrefix)?new URL(e):void 0,t=r?h.fileURLToPath(r):e,s=r&&De(r),n=s||t,a=r&&s?h.pathToFileURL(n).toString()+_(r.search,Qe):e;return{fileUrl:r,filePath:n,loadUrl:a}},"getFileLoadContext"),ce=l((e,r)=>{if(!r?.search)return e;const t=_(r.search,N);return t?h.pathToFileURL(e).toString()+t:e},"getTransformPath"),le=l((e,r,t)=>{const s=[...r?H(r.search,[E,...N]).split("&").filter(Boolean):[],...t?[`namespace=${encodeURIComponent(t)}`]:[]].join("&");return s?`${e}?${s}`:e},"getFilePathWithQuery"),He=new TextDecoder,me=l(e=>typeof e=="string"?e:He.decode(e),"decodeSource"),Ge=l((e,r)=>{const t=new URL(r),s=r.startsWith(o.fileUrlPrefix)?G(r).filePath:void 0;if(T(r)){if(e.namespace){const a=`${E}${e.namespace}`;t.hash===`#${a}`?t.hash="":t.hash.endsWith(`&${a}`)&&(t.hash=t.hash.slice(0,-a.length-1))}}else t.searchParams.delete("tsx-namespace"),t.searchParams.delete(I),t.searchParams.delete(j);s&&(t.pathname=new URL(h.pathToFileURL(s)).pathname);const n=t.toString();return e.port&&e.port.postMessage({type:"load",url:n}),e.onImport?.(n),n},"notifyLoad"),de=l((e,r)=>{if(!e.active)return!1;const t=v(r);if(e.namespace!==t)return!1;const s=Ge(e,r);return re.parent.send&&re.parent.send({type:"dependency",path:s}),!0},"prepareLoad"),ue=l((e,r)=>{if(!o.isJsonPattern.test(e))return r;const t=r[oe];return t?.type?r:{...r,[oe]:{...t,type:"json"}}},"prepareJsonAttributes"),z=l(({conditions:e})=>e?.includes("require")===!0&&!e.includes("import"),"isCommonJsRequireContext$1"),ze=l(e=>{const r=l(async(t,s,n)=>{if(!de(e,t))return n(t,s);const a=v(t),{fileUrl:i,filePath:c,loadUrl:u}=G(t),f=ue(u,s),m=await n(u,f);o.logEsm(3,"loaded by next loader",{url:t,loadUrl:u,loaded:m});const d=i?.searchParams.has(I)===!0,p=m.format,g=i?new URL(h.pathToFileURL(c)):void 0;if(g&&i&&(g.search=_(i.search,N)),ae(p)&&i&&m.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const P=await be.readFile(h.pathToFileURL(c),"utf8"),C=y.isESM(P);if(p==="commonjs-typescript"||!c.endsWith(".js")||C){if(!Be){if(d&&C&&o.implicitTsExtensionsPattern.test(c)){const J=await y.transform(P,c,{define:{"import.meta.url":JSON.stringify(g.toString())},tsconfigRaw:L(c,e)});return W.set(t,J.code),{format:"module",source:o.inlineSourceMap(J)}}return m}if(!a&&!d&&!c.endsWith(".cts"))return m;const Z=!!(a||d||_(i.search,N)),ee=y.transformSync(P,ce(c,i),{cjsBanner:Z?`require = require("node:module").createRequire(${JSON.stringify(h.pathToFileURL(c).toString())});`:void 0,tsconfigRaw:L(c,e)});if(m.format="commonjs",m.source=o.inlineSourceMap(ee),Z){const J=le(c,i,a);m.responseURL=`data:text/javascript,${encodeURIComponent(ee.code)}?filePath=${encodeURIComponent(J)}`}return o.logEsm(3,"returning CJS export annotation",m),m}}if(!m.source)return m;const U=me(m.source),$=p==="json"&&!z(s);if(p==="commonjs-typescript"){const P=y.transformSync(U,c,{tsconfigRaw:L(c,e)});return{...m,format:"commonjs",source:o.inlineSourceMap(P)}}if($||ie(p)||o.tsExtensionsPattern.test(t)){const P=await y.transform(U,c,{tsconfigRaw:L(c,e)});return W.set(t,P.code),{format:"module",source:o.inlineSourceMap(P)}}if(m.format==="module"){const P=y.transformDynamicImport(c,U);P?(m.source=o.inlineSourceMap(P),W.set(t,P.code)):W.set(t,U)}return m},"load");return o.debugEnabled?async(t,s,n)=>{o.logEsm(2,"load",{url:t,context:s});const a=await r(t,s,n);return o.logEsm(1,"loaded",{url:t,result:a}),a}:r},"createLoad"),Xe=l(e=>{const r=l((t,s,n)=>{if(z(s)&&o.isGlobalCjsLoaderActive()||!de(e,t))return n(t,s);const a=v(t),{fileUrl:i,filePath:c,loadUrl:u}=G(t),f=ue(u,s),m=n(u,f);o.logEsm(3,"loaded by next loader",{url:t,loadUrl:u,loaded:m});const d=m.format;if(ae(d)&&R.isFeatureSupported(R.esmLoadReadFile)&&m.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const U=te.readFileSync(h.pathToFileURL(c),"utf8");if(d==="commonjs-typescript"||!c.endsWith(".js")||y.isESM(U)){const $=y.transformSync(U,ce(c,i),{tsconfigRaw:L(c,e)}),P=!a&&o.isGlobalCjsLoaderActive(),C=le(c,i,a);return m.format="commonjs",m.shouldBeReloadedByCJSLoader=P,m.source=o.inlineSourceMap($),P||(m.responseURL=`data:text/javascript,${encodeURIComponent($.code)}?filePath=${encodeURIComponent(C)}`),o.logEsm(3,"returning CJS export annotation",m),m}}if(!m.source)return m;const p=me(m.source),g=d==="json"&&!z(s);if(d==="commonjs-typescript"){const U=y.transformSync(p,c,{tsconfigRaw:L(c,e)});return{...m,format:"commonjs",shouldBeReloadedByCJSLoader:!1,source:o.inlineSourceMap(U)}}if(g||ie(d)||o.tsExtensionsPattern.test(t)){const U=y.transformEsmSync(p,c,{tsconfigRaw:L(c,e)});return{format:"module",source:o.inlineSourceMap(U)}}if(m.format==="module"){const U=y.transformDynamicImport(c,p);U&&(m.source=o.inlineSourceMap(U))}return m},"load");return o.debugEnabled?(t,s,n)=>{o.logEsm(2,"loadSync",{url:t,context:s});const a=r(t,s,n);return o.logEsm(1,"loadedSync",{url:t,result:a}),a}:r},"createLoadSync"),ke=l(e=>{if(o.isFilePath(e)||e.startsWith("#")||e.includes(":"))return!1;const r=e.split("/"),t=r[0]?.startsWith("@")?2:1;return r.length>t&&r.slice(0,t).every(Boolean)},"isBarePackageSubpath"),Ve=l(e=>{const r=e.lastIndexOf(o.nodeModulesPath);if(r===-1)return;const s=e.slice(r+o.nodeModulesPath.length).split(S.sep),n=s[0]?.startsWith("@")?2:1;if(!(s.length<=n||!s[n-1]))return S.join(e.slice(0,r),"node_modules",...s.slice(0,n))},"getPackageDirectory"),fe=l((e,r)=>{if(!ke(e)||!r.startsWith(o.fileUrlPrefix))return;const t=h.fileURLToPath(r),s=Ve(t);if(!s)return;const a=y.readJsonFile(S.join(s,"package.json"))?.exports;if(a!=null)return{kind:"root-exports"};const i=y.readJsonFile(S.join(t,"package.json"));return typeof i?.main!="string"||!i.main?{kind:"legacy-directory"}:{kind:"legacy-directory",mainUrl:h.pathToFileURL(S.resolve(t,i.main)).toString()}},"getPackageSubpathDirectoryInfo"),Ke=R.isFeatureSupported(R.esmLoadReadFile),pe=/^(?:[a-z][\d+.a-z-]*:\/\/|data:|file:|node:)/i,he=l(e=>!o.isFilePath(e)&&!pe.test(e),"isTsconfigPathAliasSpecifier"),q=l(e=>{if(e.url)return e.url;const r=e.message.match(/^Cannot find module '([^']+)'/);if(r){const[,s]=r;return s}const t=e.message.match(/^Cannot find package '([^']+)'/);if(t){const[,s]=t;if(!S.isAbsolute(s))return;const n=h.pathToFileURL(s);if(n.pathname.endsWith("/")&&(n.pathname+="package.json"),n.pathname.endsWith("/package.json")){const a=y.readJsonFile(n);if(a?.main)return new URL(a.main,n).toString()}else return n.toString()}},"getMissingPathFromNotFound"),b=l(e=>e==="ERR_MODULE_NOT_FOUND"||e==="MODULE_NOT_FOUND","isModuleNotFound"),A=l(e=>e instanceof Error&&(b(e.code)||e.code==="ERR_UNSUPPORTED_DIR_IMPORT"),"isDirectoryEntryMiss"),x=l(e=>e.conditions.includes("require")&&!e.conditions.includes("import"),"isCommonJsRequireContext"),X=l(e=>{const r=e.indexOf("?"),t=e.indexOf("#");return r===-1?t:t===-1?r:Math.min(r,t)},"getUrlMetadataIndex"),ge=l((e,r)=>r||!o.isFilePath(e)&&!pe.test(e)?e.indexOf("?"):X(e),"getSpecifierMetadataIndex"),Pe=l(e=>{if(e?.startsWith(o.fileUrlPrefix))return h.fileURLToPath(new URL(e))},"getParentFilePath"),Ye=l(e=>{if(!e)return!1;const r=Pe(e);if(r)return o.tsExtensionsPattern.test(r);const t=X(e);return o.tsExtensionsPattern.test(t===-1?e:e.slice(0,t))},"isTypeScriptParent"),M=l(e=>{const r=Pe(e);return r!==void 0&&o.isDependencyPath(r)},"isParentDependency"),ye=l(e=>S.extname(new URL(e).pathname)===".js"&&o.isDependencyPath(h.fileURLToPath(e)),"isImplicitJavaScriptDependency"),Ue=l((e,r)=>Ye(e)||r&&!M(e),"resolvesTsExtensions"),Ze=l((e,r)=>{const t=X(e),s=t===-1?e:e.slice(0,t);try{if(s.startsWith(o.fileUrlPrefix))return h.fileURLToPath(s);if(S.isAbsolute(s))return s;if(o.isRelativePath(s)&&r?.startsWith(o.fileUrlPrefix))return h.fileURLToPath(new URL(s,r))}catch{}},"getProbeFilePath"),Se=l((e,r)=>{const t=Ze(e,r);return t!==void 0&&!te.existsSync(t)},"candidateDoesntExist"),B=l(async(e,r,t,s)=>{const n=o.getExtensionResolution(e);if(o.logEsm(3,"resolveExtensions",{url:e,context:r,throwError:s,tryPaths:n}),!n)return;let a;for(const i of n)if(!Se(i,r.parentURL))try{return await t(i,r)}catch(c){const{code:u}=c;if(!b(u)&&u!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c;a=c}if(s){if(a===void 0)return t(n[0],r);throw a}},"resolveExtensions"),O=l((e,r,t,s)=>{const n=o.getExtensionResolution(e);if(o.logEsm(3,"resolveExtensionsSync",{url:e,context:r,throwError:s,tryPaths:n}),!n)return;let a;for(const i of n)if(!Se(i,r.parentURL))try{return t(i,r)}catch(c){const{code:u}=c;if(!b(u)&&u!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c;a=c}if(s){if(a===void 0)return t(n[0],r);throw a}},"resolveExtensionsSync"),et=l(async(e,r,t,s)=>{const n=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1,a=Ue(r.parentURL,n);if(o.logEsm(3,"resolveBase",{specifier:e,context:r,specifierStartsWithFileUrl:e.startsWith(o.fileUrlPrefix),isRelativePath:o.isRelativePath(e),resolveTsExtensions:a,allowJs:n}),(e.startsWith(o.fileUrlPrefix)||o.isRelativePath(e))&&a){const i=await B(e,r,t,void 0);if(o.logEsm(3,"resolveBase resolved",{specifier:e,context:r,resolved:i}),i)return i}try{return await t(e,r)}catch(i){if(o.logEsm(3,"resolveBase error",{specifier:e,context:r,error:i}),i instanceof Error){const c=i;if(b(c.code)){const u=q(c);if(u){const f=await B(u,r,t,void 0);if(f)return f}}}throw i}},"resolveBase"),k=l((e,r,t,s)=>{const n=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1,a=Ue(r.parentURL,n);if(o.logEsm(3,"resolveBaseSync",{specifier:e,context:r,specifierStartsWithFileUrl:e.startsWith(o.fileUrlPrefix),isRelativePath:o.isRelativePath(e),resolveTsExtensions:a,allowJs:n}),(e.startsWith(o.fileUrlPrefix)||o.isRelativePath(e))&&a){const i=O(e,r,t,void 0);if(o.logEsm(3,"resolveBaseSync resolved",{specifier:e,context:r,resolved:i}),i)return i}try{return t(e,r)}catch(i){if(o.logEsm(3,"resolveBaseSync error",{specifier:e,context:r,error:i}),i instanceof Error){const c=i;if(b(c.code)){const u=q(c);if(u){const f=O(u,r,t,void 0);if(f)return f}}}throw i}},"resolveBaseSync"),V=l(async(e,r,t,s)=>{if(o.logEsm(3,"resolveDirectory",{specifier:e,context:r,isDirectory:o.isDirectoryPattern.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),o.isDirectoryPattern.test(e)){const n=new URL(e,r.parentURL);return n.pathname=S.join(n.pathname,"index"),await B(n.toString(),r,t,!0)}try{return await et(e,r,t,s)}catch(n){if(n instanceof Error){o.logEsm(3,"resolveDirectory error",{specifier:e,context:r,error:n});const a=n;if(a.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const i=q(a);if(i){if(e.startsWith("#"))throw n;const c=fe(e,i);if(c?.kind==="root-exports")throw n;if(c?.mainUrl){try{return await t(c.mainUrl,r)}catch(m){if(!A(m))throw m}try{return await V(c.mainUrl,r,t,s)}catch(m){if(!A(m))throw m}}const u=`${i}/index`,f=await B(u,r,t);if(f)return f}}}throw n}},"resolveDirectory"),K=l((e,r,t,s)=>{if(o.logEsm(3,"resolveDirectorySync",{specifier:e,context:r,isDirectory:o.isDirectoryPattern.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),o.isDirectoryPattern.test(e)){const n=x(r);if(n&&!o.isFilePath(e))return k(e,r,t,s);const a=new URL(e,r.parentURL);return a.pathname=S.join(a.pathname,"index"),n?O(h.fileURLToPath(a),r,t,!1)??k(e,r,t,s):O(a.toString(),r,t,!0)}try{return k(e,r,t,s)}catch(n){if(n instanceof Error){o.logEsm(3,"resolveDirectorySync error",{specifier:e,context:r,error:n});const a=n;if(a.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const i=q(a);if(i){if(e.startsWith("#"))throw n;const c=fe(e,i);if(c?.kind==="root-exports")throw n;if(c?.mainUrl){try{return t(c.mainUrl,r)}catch(m){if(!A(m))throw m}try{return K(c.mainUrl,r,t,s)}catch(m){if(!A(m))throw m}}const u=`${i}/index`,f=O(u,r,t);if(f)return f}}}throw n}},"resolveDirectorySync"),tt=l(async(e,r,t,s)=>{const n=he(e);if(o.logEsm(3,"resolveTsPaths",{specifier:e,context:r,tsconfigPathAliasSpecifier:n,tsconfig:s.parsedTsconfig,fromNodeModules:M(r.parentURL)}),n&&s.parsedTsconfig&&!M(r.parentURL)){const a=o.wt(s.parsedTsconfig,e);o.logEsm(3,"resolveTsPaths",{possiblePaths:a});for(const i of a)try{return await V(h.pathToFileURL(i).toString(),r,t,s)}catch{}}return V(e,r,t,s)},"resolveTsPaths"),rt=l((e,r,t,s)=>{const n=he(e);if(o.logEsm(3,"resolveTsPathsSync",{specifier:e,context:r,tsconfigPathAliasSpecifier:n,tsconfig:s.parsedTsconfig,fromNodeModules:M(r.parentURL)}),n&&s.parsedTsconfig&&!M(r.parentURL)){const a=o.wt(s.parsedTsconfig,e);o.logEsm(3,"resolveTsPathsSync",{possiblePaths:a});for(const i of a)try{return K(h.pathToFileURL(i).toString(),r,t,s)}catch{}}return K(e,r,t,s)},"resolveTsPathsSync"),Q="tsx://",Y=l((e,r)=>{const t=e.indexOf("#"),s=t===-1?e:e.slice(0,t),n=t===-1?"":e.slice(t);return`${s}${s.includes("?")?"&":"?"}${r}${n}`},"addQuery"),D=l((e,r)=>T(e)?`${e}${e.includes("#")?"&":"#"}${E}${r}`:Y(e,`${E}${r}`),"addNamespace"),Re=l((e,r)=>{const t=r.indexOf("#"),s=r[0]==="?"?r.slice(1,t===-1?void 0:t):"",n=t===-1?"":r.slice(t),a=e.indexOf("#"),i=a===-1?e:e.slice(0,a),c=a===-1?"":e.slice(a),u=s?Y(i,s):i;return new URL(`${u}${n||c}`).toString()},"mergeUrlMetadata"),ve=l((e,r,t)=>{if(r!=="commonjs"||!e.startsWith(o.fileUrlPrefix)||!o.implicitTsExtensionsPattern.test(e))return e;const s=new URL(e),n=[H(s.search,[E]),...t?[`namespace=${encodeURIComponent(t)}`]:[]].filter(Boolean).join("&");return n?(s.pathname+=`%3F${n}`,s.searchParams.set(j,"1"),s.toString()):e},"preserveCommonJsQueryIdentity"),st=l(e=>{const r=l(async(t,s,n)=>{if(!e.active||t.startsWith("node:"))return n(t,s);const a=s.parentURL&&v(s.parentURL);let i=T(t)?a:v(t)??a;if(e.namespace){let g;if(t.startsWith(Q)){try{g=JSON.parse(t.slice(Q.length))}catch{}g?.namespace&&(i=g.namespace)}if(e.namespace!==i)return n(t,s);g&&(t=g.specifier,s.parentURL=g.parentURL)}if(T(t)){const g=await n(t,s);return e.namespace?{...g,url:D(g.url,e.namespace)}:g}const c=ge(t,x(s)),u=c===-1?t:t.slice(0,c),f=c===-1?"":t.slice(c),m=await tt(u,s,n,e);if(o.logEsm(2,"nextResolve",{resolved:m}),m.format==="builtin")return m;const d={...m};d.url.startsWith(o.fileUrlPrefix)&&(d.format==="module-typescript"?d.format="module":d.format==="commonjs-typescript"?d.format="commonjs":!d.format&&!ye(d.url)&&(d.format=await Ce(d.url),o.logEsm(2,"getFormatFromFileUrl",{resolved:d,format:d.format}))),f&&(d.url=Re(d.url,f));const p=s.parentURL&&d.format==="commonjs"&&o.implicitTsExtensionsPattern.test(d.url)&&(new URL(s.parentURL).searchParams.has(I)||xe(s.parentURL,t,Ke));return i&&v(d.url)===void 0&&(d.url=D(d.url,i)),p&&(d.url=Y(d.url,_e)),(i||p)&&(d.url=ve(d.url,d.format,i)),d},"resolve");return o.debugEnabled?async(t,s,n)=>{o.logEsm(2,"resolve",{specifier:t,context:s});const a=await r(t,s,n);return o.logEsm(1,"resolved",{specifier:t,context:s,result:a}),a}:r},"createResolve"),nt=l(e=>{const r=l((t,s,n)=>{if(!e.active||t.startsWith("node:")||x(s)&&o.isGlobalCjsLoaderActive())return n(t,s);const a=s.parentURL&&v(s.parentURL);let i=T(t)?a:v(t)??a;if(e.namespace){let p;if(t.startsWith(Q)){try{p=JSON.parse(t.slice(Q.length))}catch{}p?.namespace&&(i=p.namespace)}if(e.namespace!==i)return n(t,s);p&&(t=p.specifier,s.parentURL=p.parentURL)}if(T(t)){const p=n(t,s);return e.namespace?{...p,url:D(p.url,e.namespace)}:p}const c=ge(t,x(s)),u=c===-1?t:t.slice(0,c),f=c===-1?"":t.slice(c),m=rt(u,s,n,e);if(o.logEsm(2,"nextResolve",{resolved:m}),m.format==="builtin")return m;const d={...m};return d.url.startsWith(o.fileUrlPrefix)&&(d.format==="module-typescript"?d.format="module":d.format==="commonjs-typescript"?d.format="commonjs":!d.format&&!ye(d.url)&&(d.format=Je(d.url),o.logEsm(2,"getFormatFromFileUrlSync",{resolved:d,format:d.format}))),f&&(d.url=Re(d.url,f)),i&&v(d.url)===void 0&&(d.url=D(d.url,i)),d.url=ve(d.url,d.format,i),d},"resolve");return o.debugEnabled?(t,s,n)=>{o.logEsm(2,"resolveSync",{specifier:t,context:s});const a=r(t,s,n);return o.logEsm(1,"resolvedSync",{specifier:t,context:s,result:a}),a}:r},"createResolveSync"),Ee=l(e=>(r,t)=>{if(!t)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const s=t.startsWith(o.fileUrlPrefix)?t:h.pathToFileURL(t).toString();return import(`tsx://${JSON.stringify({specifier:r,parentURL:s,namespace:e})}`)},"createScopedImport");let Te=!1;const ot=l(e=>{const r=[];for(let t=0;t<e.length;t+=1){const s=e[t];if(s==="--import"){const n=e[t+1];n&&r.push(n),t+=1}else s.startsWith("--import=")&&r.push(s.slice(9))}return r},"collectImportSpecifiers"),at=l(()=>[...(process.env.NODE_OPTIONS??"").matchAll(/(?:^|\s)--import(?:=|\s+)(\S+)/g)].map(([,e])=>e),"collectNodeOptionsImportSpecifiers"),Le=[new URL("loader.mjs",typeof document>"u"?require("url").pathToFileURL(__filename).href:F&&F.src||new URL("register-Ciecs-Zx.cjs",document.baseURI).href).toString(),new URL("esm/index.mjs",typeof document>"u"?require("url").pathToFileURL(__filename).href:F&&F.src||new URL("register-Ciecs-Zx.cjs",document.baseURI).href).toString()],it=new Set(["tsx","tsx/esm",...Le,...Le.map(e=>decodeURI(new URL(e).pathname))]),ct=l(e=>it.has(e),"isTsxImport"),we=l(e=>/\.(?:[cm]?ts|tsx)(?:[?#].*)?$/.test(e),"isTypeScriptImport"),lt=l(()=>{const e=ot(process.execArgv),r=e.findIndex(ct);return r>0&&e.slice(0,r).some(we)},"hasCliTypeScriptPreload"),mt=at().some(we)||lt(),Fe=typeof w.registerHooks=="function"&&R.isFeatureSupported(R.moduleRegisterHooksCjsReload)&&!mt,dt=l(e=>{if(!w.register&&!Fe)throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`);if(!Te){const{_resolveFilename:c}=w;w._resolveFilename=(u,...f)=>c(o.interopCjsExports(u),...f),Te=!0}const{sourceMapsEnabled:r}=process;if(process.setSourceMapsEnabled(!0),Fe){const c=se({namespace:e?.namespace,onImport:e?.onImport,tsconfig:e?.tsconfig}),u=w.registerHooks({load:Xe(c),resolve:nt(c)}),f=l(async()=>{c.active=!1,u.deregister(),r===!1&&process.setSourceMapsEnabled(!1)},"unregister2");return e?.namespace&&(f.import=Ee(e.namespace),f.unregister=f),f}const{port1:t,port2:s}=new We.MessageChannel;w.register(`./esm/index.mjs?${je.randomUUID()}`,{parentURL:typeof document>"u"?require("url").pathToFileURL(__filename).href:F&&F.src||new URL("register-Ciecs-Zx.cjs",document.baseURI).href,data:{port:s,namespace:e?.namespace,tsconfig:e?.tsconfig},transferList:[s]});const n=e?.onImport,a=n&&(c=>{c.type==="load"&&n(c.url)});a&&(t.on("message",a),t.unref());const i=l(()=>(r===!1&&process.setSourceMapsEnabled(!1),a&&t.off("message",a),t.postMessage("deactivate"),new Promise(c=>{const u=l(f=>{f.type==="deactivated"&&(c(),t.off("message",u))},"onDeactivated");t.on("message",u)})),"unregister");return e?.namespace&&(i.import=Ee(e.namespace),i.unregister=i),i},"register");exports.createDefaultData=Me,exports.createGlobalPreload=$e,exports.createInitialize=Oe,exports.createLoad=ze,exports.createResolve=st,exports.register=dt;
|
|
1
|
+
"use strict";var Ie=Object.defineProperty;var l=(e,r)=>Ie(e,"name",{value:r,configurable:!0});var je=require("node:crypto"),w=require("node:module"),We=require("node:worker_threads"),R=require("./node-features-CEjg7cMX.cjs"),o=require("./register-OY9cqBEN.cjs"),h=require("node:url"),te=require("node:fs"),be=require("node:fs/promises"),y=require("./index-D1vYaNWZ.cjs"),re=require("./client-D3mGB526.cjs"),S=require("node:path"),F=typeof document<"u"?document.currentScript:null;const Me=l(()=>({active:!0,parsedTsconfig:void 0}),"createDefaultData"),se=l(e=>{const r={active:!0,namespace:e?.namespace,onImport:e?.onImport,parsedTsconfig:void 0,port:e?.port,tsconfig:e?.tsconfig};return e?.tsconfig!==!1&&(r.parsedTsconfig=o.loadTsconfig(e?.tsconfig??process.env.TSX_TSCONFIG_PATH)),r},"createData"),Oe=l(e=>async r=>{if(!r)throw new Error(`tsx must be loaded with --import instead of --loader
|
|
2
|
+
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);Object.assign(e,se(r)),r.port&&r.port.on("message",t=>{t==="deactivate"&&(e.active=!1,r.port.postMessage({type:"deactivated"}))})},"createInitialize"),$e=l(e=>()=>(e.parsedTsconfig=o.loadTsconfig(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"createGlobalPreload"),Ce=l(e=>{const{pathname:r}=new URL(e),t=S.extname(r);if(t===".mts"||t===".mjs")return"module";if(t===".cts"||t===".cjs")return"commonjs";if(t===".js"||o.tsExtensions.includes(t))return o.getPackageType(e)},"getFormatFromFileUrl"),Je=l(e=>{const{pathname:r}=new URL(e),t=S.extname(r);if(t===".mts"||t===".mjs")return"module";if(t===".cts"||t===".cjs")return"commonjs";if(t===".js"||o.tsExtensions.includes(t))return o.getPackageTypeSync(e)},"getFormatFromFileUrlSync"),ne="tsx-namespace",E=`${ne}=`,I="tsx-commonjs-export-preparse",_e=`${I}=1`,j="tsx-commonjs-virtual-query",W=new Map,Ne=/^data:/i,T=l(e=>Ne.test(e),"isDataUrl"),H=l((e,r)=>e.slice(1).split("&").filter(t=>t&&r.every(s=>!t.startsWith(s))).join("&"),"getQueryWithoutParameters"),_=l((e,r)=>{const t=H(e,r);return t?`?${t}`:""},"getSearchWithoutParameters"),qe=l(e=>e.replaceAll(/\/\*[\s\S]*?\*\/|\/\/[^\n\r]*/g,""),"stripComments"),Ae=l(e=>{const r=qe(e);if(/^\s*export\s*\*/.test(r))return"named";if(/^\s*import\s*\*\s*as\s+[\w$]+/.test(r))return"namespace";const t=r.match(/\{([^}]*)\}/)?.[1];if(t)return t.split(",").some(s=>{const n=s.trim().split(/\s+as\s+/)[0];return!!(n&&n!=="default")})?"named":void 0},"getCommonJsImportBinding"),xe=l((e,r,t)=>{const s=W.get(e);if(!s)return!1;try{const[n]=y.parseEsm(s);return n.some(a=>{if(a.d!==-1||a.n!==r)return!1;const i=Ae(s.slice(a.ss,a.s));return i==="named"||t&&i==="namespace"})}catch{return!1}},"parentImportsCommonJsExports"),v=l(e=>{const r=e.indexOf("?"),t=e.indexOf("#");if(T(e)){if(t===-1)return;const s=e.slice(t+1),n=s.lastIndexOf("&"),a=s.slice(n+1);return a.startsWith(E)?a.slice(E.length):void 0}if(!(r===-1||t!==-1&&t<r))return new URLSearchParams(e.slice(r,t===-1?void 0:t)).get(ne)??void 0},"getNamespace"),oe=R.isFeatureSupported(R.importAttributes)?"importAttributes":"importAssertions",ae=l(e=>e==="commonjs"||e==="commonjs-typescript","isCommonJsFormat"),ie=l(e=>e==="module-typescript"||e==="typescript","isModuleTypeScriptFormat"),Be=R.isFeatureSupported(R.esmLoadReadFile),Qe=[`${j}=`],N=[`${I}=`,`${j}=`],L=l((e,r)=>r.parsedTsconfig&&o.je(r.parsedTsconfig,e)?r.parsedTsconfig.config:void 0,"getTsconfigRaw"),De=l(e=>{if(!e.searchParams.has(j))return;const{pathname:r}=e,t=r.toLowerCase().lastIndexOf("%3f");if(t===-1)return;const s=new URL(e);return s.pathname=r.slice(0,t),s.search="",h.fileURLToPath(s)},"getFilePathFromVirtualQuery"),G=l(e=>{const r=e.startsWith(o.fileUrlPrefix)?new URL(e):void 0,t=r?h.fileURLToPath(r):e,s=r&&De(r),n=s||t,a=r&&s?h.pathToFileURL(n).toString()+_(r.search,Qe):e;return{fileUrl:r,filePath:n,loadUrl:a}},"getFileLoadContext"),ce=l((e,r)=>{if(!r?.search)return e;const t=_(r.search,N);return t?h.pathToFileURL(e).toString()+t:e},"getTransformPath"),le=l((e,r,t)=>{const s=[...r?H(r.search,[E,...N]).split("&").filter(Boolean):[],...t?[`namespace=${encodeURIComponent(t)}`]:[]].join("&");return s?`${e}?${s}`:e},"getFilePathWithQuery"),He=new TextDecoder,me=l(e=>typeof e=="string"?e:He.decode(e),"decodeSource"),Ge=l((e,r)=>{const t=new URL(r),s=r.startsWith(o.fileUrlPrefix)?G(r).filePath:void 0;if(T(r)){if(e.namespace){const a=`${E}${e.namespace}`;t.hash===`#${a}`?t.hash="":t.hash.endsWith(`&${a}`)&&(t.hash=t.hash.slice(0,-a.length-1))}}else t.searchParams.delete("tsx-namespace"),t.searchParams.delete(I),t.searchParams.delete(j);s&&(t.pathname=new URL(h.pathToFileURL(s)).pathname);const n=t.toString();return e.port&&e.port.postMessage({type:"load",url:n}),e.onImport?.(n),n},"notifyLoad"),de=l((e,r)=>{if(!e.active)return!1;const t=v(r);if(e.namespace!==t)return!1;const s=Ge(e,r);return re.parent.send&&re.parent.send({type:"dependency",path:s}),!0},"prepareLoad"),ue=l((e,r)=>{if(!o.isJsonPattern.test(e))return r;const t=r[oe];return t?.type?r:{...r,[oe]:{...t,type:"json"}}},"prepareJsonAttributes"),z=l(({conditions:e})=>e?.includes("require")===!0&&!e.includes("import"),"isCommonJsRequireContext$1"),ze=l(e=>{const r=l(async(t,s,n)=>{if(!de(e,t))return n(t,s);const a=v(t),{fileUrl:i,filePath:c,loadUrl:u}=G(t),f=ue(u,s),m=await n(u,f);o.logEsm(3,"loaded by next loader",{url:t,loadUrl:u,loaded:m});const d=i?.searchParams.has(I)===!0,p=m.format,g=i?new URL(h.pathToFileURL(c)):void 0;if(g&&i&&(g.search=_(i.search,N)),ae(p)&&i&&m.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const P=await be.readFile(h.pathToFileURL(c),"utf8"),C=y.isESM(P);if(p==="commonjs-typescript"||!c.endsWith(".js")||C){if(!Be){if(d&&C&&o.implicitTsExtensionsPattern.test(c)){const J=await y.transform(P,c,{define:{"import.meta.url":JSON.stringify(g.toString())},tsconfigRaw:L(c,e)});return W.set(t,J.code),{format:"module",source:o.inlineSourceMap(J)}}return m}if(!a&&!d&&!c.endsWith(".cts"))return m;const Z=!!(a||d||_(i.search,N)),ee=y.transformSync(P,ce(c,i),{cjsBanner:Z?`require = require("node:module").createRequire(${JSON.stringify(h.pathToFileURL(c).toString())});`:void 0,tsconfigRaw:L(c,e)});if(m.format="commonjs",m.source=o.inlineSourceMap(ee),Z){const J=le(c,i,a);m.responseURL=`data:text/javascript,${encodeURIComponent(ee.code)}?filePath=${encodeURIComponent(J)}`}return o.logEsm(3,"returning CJS export annotation",m),m}}if(!m.source)return m;const U=me(m.source),$=p==="json"&&!z(s);if(p==="commonjs-typescript"){const P=y.transformSync(U,c,{tsconfigRaw:L(c,e)});return{...m,format:"commonjs",source:o.inlineSourceMap(P)}}if($||ie(p)||o.tsExtensionsPattern.test(t)){const P=await y.transform(U,c,{tsconfigRaw:L(c,e)});return W.set(t,P.code),{format:"module",source:o.inlineSourceMap(P)}}if(m.format==="module"){const P=y.transformDynamicImport(c,U);P?(m.source=o.inlineSourceMap(P),W.set(t,P.code)):W.set(t,U)}return m},"load");return o.debugEnabled?async(t,s,n)=>{o.logEsm(2,"load",{url:t,context:s});const a=await r(t,s,n);return o.logEsm(1,"loaded",{url:t,result:a}),a}:r},"createLoad"),Xe=l(e=>{const r=l((t,s,n)=>{if(z(s)&&o.isGlobalCjsLoaderActive()||!de(e,t))return n(t,s);const a=v(t),{fileUrl:i,filePath:c,loadUrl:u}=G(t),f=ue(u,s),m=n(u,f);o.logEsm(3,"loaded by next loader",{url:t,loadUrl:u,loaded:m});const d=m.format;if(ae(d)&&R.isFeatureSupported(R.esmLoadReadFile)&&m.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const U=te.readFileSync(h.pathToFileURL(c),"utf8");if(d==="commonjs-typescript"||!c.endsWith(".js")||y.isESM(U)){const $=y.transformSync(U,ce(c,i),{tsconfigRaw:L(c,e)}),P=!a&&o.isGlobalCjsLoaderActive(),C=le(c,i,a);return m.format="commonjs",m.shouldBeReloadedByCJSLoader=P,m.source=o.inlineSourceMap($),P||(m.responseURL=`data:text/javascript,${encodeURIComponent($.code)}?filePath=${encodeURIComponent(C)}`),o.logEsm(3,"returning CJS export annotation",m),m}}if(!m.source)return m;const p=me(m.source),g=d==="json"&&!z(s);if(d==="commonjs-typescript"){const U=y.transformSync(p,c,{tsconfigRaw:L(c,e)});return{...m,format:"commonjs",shouldBeReloadedByCJSLoader:!1,source:o.inlineSourceMap(U)}}if(g||ie(d)||o.tsExtensionsPattern.test(t)){const U=y.transformEsmSync(p,c,{tsconfigRaw:L(c,e)});return{format:"module",source:o.inlineSourceMap(U)}}if(m.format==="module"){const U=y.transformDynamicImport(c,p);U&&(m.source=o.inlineSourceMap(U))}return m},"load");return o.debugEnabled?(t,s,n)=>{o.logEsm(2,"loadSync",{url:t,context:s});const a=r(t,s,n);return o.logEsm(1,"loadedSync",{url:t,result:a}),a}:r},"createLoadSync"),ke=l(e=>{if(o.isFilePath(e)||e.startsWith("#")||e.includes(":"))return!1;const r=e.split("/"),t=r[0]?.startsWith("@")?2:1;return r.length>t&&r.slice(0,t).every(Boolean)},"isBarePackageSubpath"),Ve=l(e=>{const r=e.lastIndexOf(o.nodeModulesPath);if(r===-1)return;const s=e.slice(r+o.nodeModulesPath.length).split(S.sep),n=s[0]?.startsWith("@")?2:1;if(!(s.length<=n||!s[n-1]))return S.join(e.slice(0,r),"node_modules",...s.slice(0,n))},"getPackageDirectory"),fe=l((e,r)=>{if(!ke(e)||!r.startsWith(o.fileUrlPrefix))return;const t=h.fileURLToPath(r),s=Ve(t);if(!s)return;const a=y.readJsonFile(S.join(s,"package.json"))?.exports;if(a!=null)return{kind:"root-exports"};const i=y.readJsonFile(S.join(t,"package.json"));return typeof i?.main!="string"||!i.main?{kind:"legacy-directory"}:{kind:"legacy-directory",mainUrl:h.pathToFileURL(S.resolve(t,i.main)).toString()}},"getPackageSubpathDirectoryInfo"),Ke=R.isFeatureSupported(R.esmLoadReadFile),pe=/^(?:[a-z][\d+.a-z-]*:\/\/|data:|file:|node:)/i,he=l(e=>!o.isFilePath(e)&&!pe.test(e),"isTsconfigPathAliasSpecifier"),q=l(e=>{if(e.url)return e.url;const r=e.message.match(/^Cannot find module '([^']+)'/);if(r){const[,s]=r;return s}const t=e.message.match(/^Cannot find package '([^']+)'/);if(t){const[,s]=t;if(!S.isAbsolute(s))return;const n=h.pathToFileURL(s);if(n.pathname.endsWith("/")&&(n.pathname+="package.json"),n.pathname.endsWith("/package.json")){const a=y.readJsonFile(n);if(a?.main)return new URL(a.main,n).toString()}else return n.toString()}},"getMissingPathFromNotFound"),b=l(e=>e==="ERR_MODULE_NOT_FOUND"||e==="MODULE_NOT_FOUND","isModuleNotFound"),A=l(e=>e instanceof Error&&(b(e.code)||e.code==="ERR_UNSUPPORTED_DIR_IMPORT"),"isDirectoryEntryMiss"),x=l(e=>e.conditions.includes("require")&&!e.conditions.includes("import"),"isCommonJsRequireContext"),X=l(e=>{const r=e.indexOf("?"),t=e.indexOf("#");return r===-1?t:t===-1?r:Math.min(r,t)},"getUrlMetadataIndex"),ge=l((e,r)=>r||!o.isFilePath(e)&&!pe.test(e)?e.indexOf("?"):X(e),"getSpecifierMetadataIndex"),Pe=l(e=>{if(e?.startsWith(o.fileUrlPrefix))return h.fileURLToPath(new URL(e))},"getParentFilePath"),Ye=l(e=>{if(!e)return!1;const r=Pe(e);if(r)return o.tsExtensionsPattern.test(r);const t=X(e);return o.tsExtensionsPattern.test(t===-1?e:e.slice(0,t))},"isTypeScriptParent"),M=l(e=>{const r=Pe(e);return r!==void 0&&o.isDependencyPath(r)},"isParentDependency"),ye=l(e=>S.extname(new URL(e).pathname)===".js"&&o.isDependencyPath(h.fileURLToPath(e)),"isImplicitJavaScriptDependency"),Ue=l((e,r)=>Ye(e)||r&&!M(e),"resolvesTsExtensions"),Ze=l((e,r)=>{const t=X(e),s=t===-1?e:e.slice(0,t);try{if(s.startsWith(o.fileUrlPrefix))return h.fileURLToPath(s);if(S.isAbsolute(s))return s;if(o.isRelativePath(s)&&r?.startsWith(o.fileUrlPrefix))return h.fileURLToPath(new URL(s,r))}catch{}},"getProbeFilePath"),Se=l((e,r)=>{const t=Ze(e,r);return t!==void 0&&!te.existsSync(t)},"candidateDoesntExist"),B=l(async(e,r,t,s)=>{const n=o.getExtensionResolution(e);if(o.logEsm(3,"resolveExtensions",{url:e,context:r,throwError:s,tryPaths:n}),!n)return;let a;for(const i of n)if(!Se(i,r.parentURL))try{return await t(i,r)}catch(c){const{code:u}=c;if(!b(u)&&u!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c;a=c}if(s){if(a===void 0)return t(n[0],r);throw a}},"resolveExtensions"),O=l((e,r,t,s)=>{const n=o.getExtensionResolution(e);if(o.logEsm(3,"resolveExtensionsSync",{url:e,context:r,throwError:s,tryPaths:n}),!n)return;let a;for(const i of n)if(!Se(i,r.parentURL))try{return t(i,r)}catch(c){const{code:u}=c;if(!b(u)&&u!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c;a=c}if(s){if(a===void 0)return t(n[0],r);throw a}},"resolveExtensionsSync"),et=l(async(e,r,t,s)=>{const n=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1,a=Ue(r.parentURL,n);if(o.logEsm(3,"resolveBase",{specifier:e,context:r,specifierStartsWithFileUrl:e.startsWith(o.fileUrlPrefix),isRelativePath:o.isRelativePath(e),resolveTsExtensions:a,allowJs:n}),(e.startsWith(o.fileUrlPrefix)||o.isRelativePath(e))&&a){const i=await B(e,r,t,void 0);if(o.logEsm(3,"resolveBase resolved",{specifier:e,context:r,resolved:i}),i)return i}try{return await t(e,r)}catch(i){if(o.logEsm(3,"resolveBase error",{specifier:e,context:r,error:i}),i instanceof Error){const c=i;if(b(c.code)){const u=q(c);if(u){const f=await B(u,r,t,void 0);if(f)return f}}}throw i}},"resolveBase"),k=l((e,r,t,s)=>{const n=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1,a=Ue(r.parentURL,n);if(o.logEsm(3,"resolveBaseSync",{specifier:e,context:r,specifierStartsWithFileUrl:e.startsWith(o.fileUrlPrefix),isRelativePath:o.isRelativePath(e),resolveTsExtensions:a,allowJs:n}),(e.startsWith(o.fileUrlPrefix)||o.isRelativePath(e))&&a){const i=O(e,r,t,void 0);if(o.logEsm(3,"resolveBaseSync resolved",{specifier:e,context:r,resolved:i}),i)return i}try{return t(e,r)}catch(i){if(o.logEsm(3,"resolveBaseSync error",{specifier:e,context:r,error:i}),i instanceof Error){const c=i;if(b(c.code)){const u=q(c);if(u){const f=O(u,r,t,void 0);if(f)return f}}}throw i}},"resolveBaseSync"),V=l(async(e,r,t,s)=>{if(o.logEsm(3,"resolveDirectory",{specifier:e,context:r,isDirectory:o.isDirectoryPattern.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),o.isDirectoryPattern.test(e)){const n=new URL(e,r.parentURL);return n.pathname=S.join(n.pathname,"index"),await B(n.toString(),r,t,!0)}try{return await et(e,r,t,s)}catch(n){if(n instanceof Error){o.logEsm(3,"resolveDirectory error",{specifier:e,context:r,error:n});const a=n;if(a.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const i=q(a);if(i){if(e.startsWith("#"))throw n;const c=fe(e,i);if(c?.kind==="root-exports")throw n;if(c?.mainUrl){try{return await t(c.mainUrl,r)}catch(m){if(!A(m))throw m}try{return await V(c.mainUrl,r,t,s)}catch(m){if(!A(m))throw m}}const u=`${i}/index`,f=await B(u,r,t);if(f)return f}}}throw n}},"resolveDirectory"),K=l((e,r,t,s)=>{if(o.logEsm(3,"resolveDirectorySync",{specifier:e,context:r,isDirectory:o.isDirectoryPattern.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),o.isDirectoryPattern.test(e)){const n=x(r);if(n&&!o.isFilePath(e))return k(e,r,t,s);const a=new URL(e,r.parentURL);return a.pathname=S.join(a.pathname,"index"),n?O(h.fileURLToPath(a),r,t,!1)??k(e,r,t,s):O(a.toString(),r,t,!0)}try{return k(e,r,t,s)}catch(n){if(n instanceof Error){o.logEsm(3,"resolveDirectorySync error",{specifier:e,context:r,error:n});const a=n;if(a.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const i=q(a);if(i){if(e.startsWith("#"))throw n;const c=fe(e,i);if(c?.kind==="root-exports")throw n;if(c?.mainUrl){try{return t(c.mainUrl,r)}catch(m){if(!A(m))throw m}try{return K(c.mainUrl,r,t,s)}catch(m){if(!A(m))throw m}}const u=`${i}/index`,f=O(u,r,t);if(f)return f}}}throw n}},"resolveDirectorySync"),tt=l(async(e,r,t,s)=>{const n=he(e);if(o.logEsm(3,"resolveTsPaths",{specifier:e,context:r,tsconfigPathAliasSpecifier:n,tsconfig:s.parsedTsconfig,fromNodeModules:M(r.parentURL)}),n&&s.parsedTsconfig&&!M(r.parentURL)){const a=o.wt(s.parsedTsconfig,e);o.logEsm(3,"resolveTsPaths",{possiblePaths:a});for(const i of a)try{return await V(h.pathToFileURL(i).toString(),r,t,s)}catch{}}return V(e,r,t,s)},"resolveTsPaths"),rt=l((e,r,t,s)=>{const n=he(e);if(o.logEsm(3,"resolveTsPathsSync",{specifier:e,context:r,tsconfigPathAliasSpecifier:n,tsconfig:s.parsedTsconfig,fromNodeModules:M(r.parentURL)}),n&&s.parsedTsconfig&&!M(r.parentURL)){const a=o.wt(s.parsedTsconfig,e);o.logEsm(3,"resolveTsPathsSync",{possiblePaths:a});for(const i of a)try{return K(h.pathToFileURL(i).toString(),r,t,s)}catch{}}return K(e,r,t,s)},"resolveTsPathsSync"),Q="tsx://",Y=l((e,r)=>{const t=e.indexOf("#"),s=t===-1?e:e.slice(0,t),n=t===-1?"":e.slice(t);return`${s}${s.includes("?")?"&":"?"}${r}${n}`},"addQuery"),D=l((e,r)=>T(e)?`${e}${e.includes("#")?"&":"#"}${E}${r}`:Y(e,`${E}${r}`),"addNamespace"),Re=l((e,r)=>{const t=r.indexOf("#"),s=r[0]==="?"?r.slice(1,t===-1?void 0:t):"",n=t===-1?"":r.slice(t),a=e.indexOf("#"),i=a===-1?e:e.slice(0,a),c=a===-1?"":e.slice(a),u=s?Y(i,s):i;return new URL(`${u}${n||c}`).toString()},"mergeUrlMetadata"),ve=l((e,r,t)=>{if(r!=="commonjs"||!e.startsWith(o.fileUrlPrefix)||!o.implicitTsExtensionsPattern.test(e))return e;const s=new URL(e),n=[H(s.search,[E]),...t?[`namespace=${encodeURIComponent(t)}`]:[]].filter(Boolean).join("&");return n?(s.pathname+=`%3F${n}`,s.searchParams.set(j,"1"),s.toString()):e},"preserveCommonJsQueryIdentity"),st=l(e=>{const r=l(async(t,s,n)=>{if(!e.active||t.startsWith("node:"))return n(t,s);const a=s.parentURL&&v(s.parentURL);let i=T(t)?a:v(t)??a;if(e.namespace){let g;if(t.startsWith(Q)){try{g=JSON.parse(t.slice(Q.length))}catch{}g?.namespace&&(i=g.namespace)}if(e.namespace!==i)return n(t,s);g&&(t=g.specifier,s.parentURL=g.parentURL)}if(T(t)){const g=await n(t,s);return e.namespace?{...g,url:D(g.url,e.namespace)}:g}const c=ge(t,x(s)),u=c===-1?t:t.slice(0,c),f=c===-1?"":t.slice(c),m=await tt(u,s,n,e);if(o.logEsm(2,"nextResolve",{resolved:m}),m.format==="builtin")return m;const d={...m};d.url.startsWith(o.fileUrlPrefix)&&(d.format==="module-typescript"?d.format="module":d.format==="commonjs-typescript"?d.format="commonjs":!d.format&&!ye(d.url)&&(d.format=await Ce(d.url),o.logEsm(2,"getFormatFromFileUrl",{resolved:d,format:d.format}))),f&&(d.url=Re(d.url,f));const p=s.parentURL&&d.format==="commonjs"&&o.implicitTsExtensionsPattern.test(d.url)&&(new URL(s.parentURL).searchParams.has(I)||xe(s.parentURL,t,Ke));return i&&v(d.url)===void 0&&(d.url=D(d.url,i)),p&&(d.url=Y(d.url,_e)),(i||p)&&(d.url=ve(d.url,d.format,i)),d},"resolve");return o.debugEnabled?async(t,s,n)=>{o.logEsm(2,"resolve",{specifier:t,context:s});const a=await r(t,s,n);return o.logEsm(1,"resolved",{specifier:t,context:s,result:a}),a}:r},"createResolve"),nt=l(e=>{const r=l((t,s,n)=>{if(!e.active||t.startsWith("node:")||x(s)&&o.isGlobalCjsLoaderActive())return n(t,s);const a=s.parentURL&&v(s.parentURL);let i=T(t)?a:v(t)??a;if(e.namespace){let p;if(t.startsWith(Q)){try{p=JSON.parse(t.slice(Q.length))}catch{}p?.namespace&&(i=p.namespace)}if(e.namespace!==i)return n(t,s);p&&(t=p.specifier,s.parentURL=p.parentURL)}if(T(t)){const p=n(t,s);return e.namespace?{...p,url:D(p.url,e.namespace)}:p}const c=ge(t,x(s)),u=c===-1?t:t.slice(0,c),f=c===-1?"":t.slice(c),m=rt(u,s,n,e);if(o.logEsm(2,"nextResolve",{resolved:m}),m.format==="builtin")return m;const d={...m};return d.url.startsWith(o.fileUrlPrefix)&&(d.format==="module-typescript"?d.format="module":d.format==="commonjs-typescript"?d.format="commonjs":!d.format&&!ye(d.url)&&(d.format=Je(d.url),o.logEsm(2,"getFormatFromFileUrlSync",{resolved:d,format:d.format}))),f&&(d.url=Re(d.url,f)),i&&v(d.url)===void 0&&(d.url=D(d.url,i)),d.url=ve(d.url,d.format,i),d},"resolve");return o.debugEnabled?(t,s,n)=>{o.logEsm(2,"resolveSync",{specifier:t,context:s});const a=r(t,s,n);return o.logEsm(1,"resolvedSync",{specifier:t,context:s,result:a}),a}:r},"createResolveSync"),Ee=l(e=>(r,t)=>{if(!t)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const s=t.startsWith(o.fileUrlPrefix)?t:h.pathToFileURL(t).toString();return import(`tsx://${JSON.stringify({specifier:r,parentURL:s,namespace:e})}`)},"createScopedImport");let Te=!1;const ot=l(e=>{const r=[];for(let t=0;t<e.length;t+=1){const s=e[t];if(s==="--import"){const n=e[t+1];n&&r.push(n),t+=1}else s.startsWith("--import=")&&r.push(s.slice(9))}return r},"collectImportSpecifiers"),at=l(()=>[...(process.env.NODE_OPTIONS??"").matchAll(/(?:^|\s)--import(?:=|\s+)(\S+)/g)].map(([,e])=>e),"collectNodeOptionsImportSpecifiers"),Le=[new URL("loader.mjs",typeof document>"u"?require("url").pathToFileURL(__filename).href:F&&F.src||new URL("register-DjPW2kSr.cjs",document.baseURI).href).toString(),new URL("esm/index.mjs",typeof document>"u"?require("url").pathToFileURL(__filename).href:F&&F.src||new URL("register-DjPW2kSr.cjs",document.baseURI).href).toString()],it=new Set(["tsx","tsx/esm",...Le,...Le.map(e=>decodeURI(new URL(e).pathname))]),ct=l(e=>it.has(e),"isTsxImport"),we=l(e=>/\.(?:[cm]?ts|tsx)(?:[?#].*)?$/.test(e),"isTypeScriptImport"),lt=l(()=>{const e=ot(process.execArgv),r=e.findIndex(ct);return r>0&&e.slice(0,r).some(we)},"hasCliTypeScriptPreload"),mt=at().some(we)||lt(),Fe=typeof w.registerHooks=="function"&&R.isFeatureSupported(R.moduleRegisterHooksCjsReload)&&!mt,dt=l(e=>{if(!w.register&&!Fe)throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`);if(!Te){const{_resolveFilename:c}=w;w._resolveFilename=(u,...f)=>c(o.interopCjsExports(u),...f),Te=!0}const{sourceMapsEnabled:r}=process;if(process.setSourceMapsEnabled(!0),Fe){const c=se({namespace:e?.namespace,onImport:e?.onImport,tsconfig:e?.tsconfig}),u=w.registerHooks({load:Xe(c),resolve:nt(c)}),f=l(async()=>{c.active=!1,u.deregister(),r===!1&&process.setSourceMapsEnabled(!1)},"unregister2");return e?.namespace&&(f.import=Ee(e.namespace),f.unregister=f),f}const{port1:t,port2:s}=new We.MessageChannel;w.register(`./esm/index.mjs?${je.randomUUID()}`,{parentURL:typeof document>"u"?require("url").pathToFileURL(__filename).href:F&&F.src||new URL("register-DjPW2kSr.cjs",document.baseURI).href,data:{port:s,namespace:e?.namespace,tsconfig:e?.tsconfig},transferList:[s]});const n=e?.onImport,a=n&&(c=>{c.type==="load"&&n(c.url)});a&&(t.on("message",a),t.unref());const i=l(()=>(r===!1&&process.setSourceMapsEnabled(!1),a&&t.off("message",a),t.postMessage("deactivate"),new Promise(c=>{const u=l(f=>{f.type==="deactivated"&&(c(),t.off("message",u))},"onDeactivated");t.on("message",u)})),"unregister");return e?.namespace&&(i.import=Ee(e.namespace),i.unregister=i),i},"register");exports.createDefaultData=Me,exports.createGlobalPreload=$e,exports.createInitialize=Oe,exports.createLoad=ze,exports.createResolve=st,exports.register=dt;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var vt=Object.defineProperty;var u=(e,t)=>vt(e,"name",{value:t,configurable:!0});var Et=require("./get-pipe-path-D4YM6rQt.cjs"),P=require("node:module"),m=require("node:path"),K=require("node:url"),U=require("node:fs"),Ct=require("fs"),jt=require("os"),Tt=require("path"),fe=require("./index-
|
|
1
|
+
"use strict";var vt=Object.defineProperty;var u=(e,t)=>vt(e,"name",{value:t,configurable:!0});var Et=require("./get-pipe-path-D4YM6rQt.cjs"),P=require("node:module"),m=require("node:path"),K=require("node:url"),U=require("node:fs"),Ct=require("fs"),jt=require("os"),Tt=require("path"),fe=require("./index-D1vYaNWZ.cjs"),De=require("./client-D3mGB526.cjs"),St=require("node:util"),M=require("./index-BWFBUo6r.cjs"),Le=require("./node-features-CEjg7cMX.cjs");const Ue=u(e=>{if(!e.startsWith("data:text/javascript,"))return;const t=e.indexOf("?");if(t===-1)return;const n=new URLSearchParams(e.slice(t+1)).get("filePath");if(n)return n},"getOriginalFilePath"),Re=u(e=>{const t=Ue(e);return t&&(P._cache[t]=P._cache[e],delete P._cache[e],e=t),e},"interopCjsExports"),Fe=u(e=>e!==null&&typeof e=="object","A"),W=u((e,t)=>Object.assign(new Error(`[${e}]: ${t}`),{code:e}),"a"),Ie="ERR_INVALID_PACKAGE_CONFIG",de="ERR_INVALID_PACKAGE_TARGET",Ot="ERR_PACKAGE_PATH_NOT_EXPORTED",At=/^\d+$/,Pt=/^(\.{1,2}|node_modules)$/i,$t=/\/|\\/;var Ne=(e=>(e.Export="exports",e.Import="imports",e))(Ne||{});const he=u((e,t,r,n,s)=>{if(t==null)return[];if(typeof t=="string"){const[o,...a]=t.split($t);if(o===".."||a.some(i=>Pt.test(i)))throw W(de,`Invalid "${e}" target "${t}" defined in the package config`);return[s?t.replace(/\*/g,s):t]}if(Array.isArray(t))return t.flatMap(o=>he(e,o,r,n,s));if(Fe(t)){for(const o of Object.keys(t)){if(At.test(o))throw W(Ie,"Cannot contain numeric property keys");if(o==="default"||n.includes(o))return he(e,t[o],r,n,s)}return[]}throw W(de,`Invalid "${e}" target "${t}"`)},"f"),z="*",_t=u((e,t)=>{const r=e.indexOf(z),n=t.indexOf(z);return r===n?t.length>e.length:n>r},"m");function Dt(e,t){if(!t.includes(z)&&e.hasOwnProperty(t))return[t];let r,n;for(const s of Object.keys(e))if(s.includes(z)){const[o,a,i]=s.split(z);if(i===void 0&&t.startsWith(o)&&t.endsWith(a)){const h=t.slice(o.length,-a.length||void 0);h&&(!r||_t(r,s))&&(r=s,n=h)}}return[r,n]}u(Dt,"d");const Lt=u(e=>Object.keys(e).reduce((t,r)=>{const n=r===""||r[0]!==".";if(t===void 0||t===n)return n;throw W(Ie,'"exports" cannot contain some keys starting with "." and some not')},void 0),"p"),Ut=/^\w+:/,Rt=u((e,t,r)=>{if(!e)throw new Error('"exports" is required');t=t===""?".":`./${t}`,(typeof e=="string"||Array.isArray(e)||Fe(e)&&Lt(e))&&(e={".":e});const[n,s]=Dt(e,t),o=he(Ne.Export,e[n],t,r,s);if(o.length===0)throw W(Ot,t==="."?'No "exports" main defined':`Package subpath '${t}' is not defined by "exports"`);for(const a of o)if(!a.startsWith("./")&&!Ut.test(a))throw W(de,`Invalid "exports" target "${a}" defined in the package config`);return o},"v");var Ft=Object.defineProperty,c=u((e,t)=>Ft(e,"name",{value:t,configurable:!0}),"i");function A(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}u(A,"x"),c(A,"slash");const It=c((e,t)=>{const r=`readFileSync:${t}`;let n=e?.get(r);return n===void 0&&(n=U.readFileSync(t,"utf8"),e?.set(r,n)),n},"readFile"),_=c((e,t)=>{const r=`tryStat:${t}`;let n=e?.get(r);if(n===void 0){try{n=U.statSync(t)}catch{n=null}e?.set(r,n)}return n??void 0},"tryStat"),H=c((e,t,r)=>{for(;;){const n=m.posix.join(e,t);if(_(r,n))return n;const s=m.dirname(e);if(s===e)return;e=s}},"findUp");function Be(e,t=!1){const r=e.length;let n=0,s="",o=0,a=16,i=0,h=0,p=0,y=0,f=0;function v(l,C){let S=0,w=0;for(;S<l;){let x=e.charCodeAt(n);if(x>=48&&x<=57)w=w*16+x-48;else if(x>=65&&x<=70)w=w*16+x-65+10;else if(x>=97&&x<=102)w=w*16+x-97+10;else break;n++,S++}return S<l&&(w=-1),w}u(v,"A"),c(v,"scanHexDigits");function b(l){n=l,s="",o=0,a=16,f=0}u(b,"O"),c(b,"setPosition");function k(){let l=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&I(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&I(e.charCodeAt(n)))for(n++;n<e.length&&I(e.charCodeAt(n));)n++;else return f=3,e.substring(l,n);let C=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&I(e.charCodeAt(n))){for(n++;n<e.length&&I(e.charCodeAt(n));)n++;C=n}else f=3;return e.substring(l,C)}u(k,"h"),c(k,"scanNumber");function E(){let l="",C=n;for(;;){if(n>=r){l+=e.substring(C,n),f=2;break}const S=e.charCodeAt(n);if(S===34){l+=e.substring(C,n),n++;break}if(S===92){if(l+=e.substring(C,n),n++,n>=r){f=2;break}switch(e.charCodeAt(n++)){case 34:l+='"';break;case 92:l+="\\";break;case 47:l+="/";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+=`
|
|
2
2
|
`;break;case 114:l+="\r";break;case 116:l+=" ";break;case 117:const w=v(4);w>=0?l+=String.fromCharCode(w):f=4;break;default:f=5}C=n;continue}if(S>=0&&S<=31)if(J(S)){l+=e.substring(C,n),f=2;break}else f=6;n++}return l}u(E,"D"),c(E,"scanString");function d(){if(s="",f=0,o=n,h=i,y=p,n>=r)return o=r,a=17;let l=e.charCodeAt(n);if(ne(l)){do n++,s+=String.fromCharCode(l),l=e.charCodeAt(n);while(ne(l));return a=15}if(J(l))return n++,s+=String.fromCharCode(l),l===13&&e.charCodeAt(n)===10&&(n++,s+=`
|
|
3
3
|
`),i++,p=n,a=14;switch(l){case 123:return n++,a=1;case 125:return n++,a=2;case 91:return n++,a=3;case 93:return n++,a=4;case 58:return n++,a=6;case 44:return n++,a=5;case 34:return n++,s=E(),a=10;case 47:const C=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<r&&!J(e.charCodeAt(n));)n++;return s=e.substring(C,n),a=12}if(e.charCodeAt(n+1)===42){n+=2;const S=r-1;let w=!1;for(;n<S;){const x=e.charCodeAt(n);if(x===42&&e.charCodeAt(n+1)===47){n+=2,w=!0;break}n++,J(x)&&(x===13&&e.charCodeAt(n)===10&&n++,i++,p=n)}return w||(n++,f=1),s=e.substring(C,n),a=13}return s+=String.fromCharCode(l),n++,a=16;case 45:if(s+=String.fromCharCode(l),n++,n===r||!I(e.charCodeAt(n)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=k(),a=11;default:for(;n<r&&g(l);)n++,l=e.charCodeAt(n);if(o!==n){switch(s=e.substring(o,n),s){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return s+=String.fromCharCode(l),n++,a=16}}u(d,"c"),c(d,"scanNext");function g(l){if(ne(l)||J(l))return!1;switch(l){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}u(g,"p"),c(g,"isUnknownContentCharacter");function T(){let l;do l=d();while(l>=12&&l<=15);return l}return u(T,"b"),c(T,"scanNextNonTrivia"),{setPosition:b,getPosition:c(()=>n,"getPosition"),scan:t?T:d,getToken:c(()=>a,"getToken"),getTokenValue:c(()=>s,"getTokenValue"),getTokenOffset:c(()=>o,"getTokenOffset"),getTokenLength:c(()=>n-o,"getTokenLength"),getTokenStartLine:c(()=>h,"getTokenStartLine"),getTokenStartCharacter:c(()=>o-y,"getTokenStartCharacter"),getTokenError:c(()=>f,"getTokenError")}}u(Be,"Ne"),c(Be,"createScanner");function ne(e){return e===32||e===9}u(ne,"X"),c(ne,"isWhiteSpace");function J(e){return e===10||e===13}u(J,"P"),c(J,"isLineBreak");function I(e){return e>=48&&e<=57}u(I,"S"),c(I,"isDigit");var Me;(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"})(Me||(Me={})),new Array(20).fill(0).map((e,t)=>" ".repeat(t));const V=200;new Array(V).fill(0).map((e,t)=>`
|
|
4
4
|
`+" ".repeat(t)),new Array(V).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(V).fill(0).map((e,t)=>`\r
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var Xt=Object.defineProperty;var c=(t,r)=>Xt(t,"name",{value:r,configurable:!0});import kt from"node:crypto";import j from"node:module";import{MessageChannel as zt}from"node:worker_threads";import{i as L,b as Vt,e as Y,m as Kt}from"./node-features-JeyyvQz6.mjs";import{l as ut,t as ft,g as Yt,a as Zt,d as A,b as u,e as Z,f as U,h as B,j as tt,k as te,m as P,n as ee,o as q,p as pt,q as ht,w as gt,s as Q,u as yt,v as F,x as re}from"./register-
|
|
1
|
+
var Xt=Object.defineProperty;var c=(t,r)=>Xt(t,"name",{value:r,configurable:!0});import kt from"node:crypto";import j from"node:module";import{MessageChannel as zt}from"node:worker_threads";import{i as L,b as Vt,e as Y,m as Kt}from"./node-features-JeyyvQz6.mjs";import{l as ut,t as ft,g as Yt,a as Zt,d as A,b as u,e as Z,f as U,h as B,j as tt,k as te,m as P,n as ee,o as q,p as pt,q as ht,w as gt,s as Q,u as yt,v as F,x as re}from"./register-DHgpdRjs.mjs";import{pathToFileURL as S,fileURLToPath as R}from"node:url";import{readFileSync as se,existsSync as ne}from"node:fs";import{readFile as oe}from"node:fs/promises";import{p as ae,i as Pt,t as St,a as H,b as vt,c as ie,r as et}from"./index-DCefr8NP.mjs";import{p as Ut}from"./client-D_mPDF5S.mjs";import v from"node:path";const ce=c(()=>({active:!0,parsedTsconfig:void 0}),"createDefaultData"),wt=c(t=>{const r={active:!0,namespace:t?.namespace,onImport:t?.onImport,parsedTsconfig:void 0,port:t?.port,tsconfig:t?.tsconfig};return t?.tsconfig!==!1&&(r.parsedTsconfig=ut(t?.tsconfig??process.env.TSX_TSCONFIG_PATH)),r},"createData"),me=c(t=>async r=>{if(!r)throw new Error(`tsx must be loaded with --import instead of --loader
|
|
2
2
|
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);Object.assign(t,wt(r)),r.port&&r.port.on("message",e=>{e==="deactivate"&&(t.active=!1,r.port.postMessage({type:"deactivated"}))})},"createInitialize"),de=c(t=>()=>(t.parsedTsconfig=ut(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"createGlobalPreload"),le=c(t=>{const{pathname:r}=new URL(t),e=v.extname(r);if(e===".mts"||e===".mjs")return"module";if(e===".cts"||e===".cjs")return"commonjs";if(e===".js"||ft.includes(e))return Yt(t)},"getFormatFromFileUrl"),ue=c(t=>{const{pathname:r}=new URL(t),e=v.extname(r);if(e===".mts"||e===".mjs")return"module";if(e===".cts"||e===".cjs")return"commonjs";if(e===".js"||ft.includes(e))return Zt(t)},"getFormatFromFileUrlSync"),Rt="tsx-namespace",I=`${Rt}=`,W="tsx-commonjs-export-preparse",fe=`${W}=1`,O="tsx-commonjs-virtual-query",$=new Map,pe=/^data:/i,T=c(t=>pe.test(t),"isDataUrl"),rt=c((t,r)=>t.slice(1).split("&").filter(e=>e&&r.every(s=>!e.startsWith(s))).join("&"),"getQueryWithoutParameters"),x=c((t,r)=>{const e=rt(t,r);return e?`?${e}`:""},"getSearchWithoutParameters"),he=c(t=>t.replaceAll(/\/\*[\s\S]*?\*\/|\/\/[^\n\r]*/g,""),"stripComments"),ge=c(t=>{const r=he(t);if(/^\s*export\s*\*/.test(r))return"named";if(/^\s*import\s*\*\s*as\s+[\w$]+/.test(r))return"namespace";const e=r.match(/\{([^}]*)\}/)?.[1];if(e)return e.split(",").some(s=>{const n=s.trim().split(/\s+as\s+/)[0];return!!(n&&n!=="default")})?"named":void 0},"getCommonJsImportBinding"),ye=c((t,r,e)=>{const s=$.get(t);if(!s)return!1;try{const[n]=ae(s);return n.some(o=>{if(o.d!==-1||o.n!==r)return!1;const a=ge(s.slice(o.ss,o.s));return a==="named"||e&&a==="namespace"})}catch{return!1}},"parentImportsCommonJsExports"),w=c(t=>{const r=t.indexOf("?"),e=t.indexOf("#");if(T(t)){if(e===-1)return;const s=t.slice(e+1),n=s.lastIndexOf("&"),o=s.slice(n+1);return o.startsWith(I)?o.slice(I.length):void 0}if(!(r===-1||e!==-1&&e<r))return new URLSearchParams(t.slice(r,e===-1?void 0:e)).get(Rt)??void 0},"getNamespace"),It=L(Vt)?"importAttributes":"importAssertions",Tt=c(t=>t==="commonjs"||t==="commonjs-typescript","isCommonJsFormat"),Et=c(t=>t==="module-typescript"||t==="typescript","isModuleTypeScriptFormat"),Pe=L(Y),Se=[`${O}=`],G=[`${W}=`,`${O}=`],E=c((t,r)=>r.parsedTsconfig&&te(r.parsedTsconfig,t)?r.parsedTsconfig.config:void 0,"getTsconfigRaw"),ve=c(t=>{if(!t.searchParams.has(O))return;const{pathname:r}=t,e=r.toLowerCase().lastIndexOf("%3f");if(e===-1)return;const s=new URL(t);return s.pathname=r.slice(0,e),s.search="",R(s)},"getFilePathFromVirtualQuery"),st=c(t=>{const r=t.startsWith(P)?new URL(t):void 0,e=r?R(r):t,s=r&&ve(r),n=s||e,o=r&&s?S(n).toString()+x(r.search,Se):t;return{fileUrl:r,filePath:n,loadUrl:o}},"getFileLoadContext"),jt=c((t,r)=>{if(!r?.search)return t;const e=x(r.search,G);return e?S(t).toString()+e:t},"getTransformPath"),Lt=c((t,r,e)=>{const s=[...r?rt(r.search,[I,...G]).split("&").filter(Boolean):[],...e?[`namespace=${encodeURIComponent(e)}`]:[]].join("&");return s?`${t}?${s}`:t},"getFilePathWithQuery"),Ue=new TextDecoder,Ft=c(t=>typeof t=="string"?t:Ue.decode(t),"decodeSource"),we=c((t,r)=>{const e=new URL(r),s=r.startsWith(P)?st(r).filePath:void 0;if(T(r)){if(t.namespace){const o=`${I}${t.namespace}`;e.hash===`#${o}`?e.hash="":e.hash.endsWith(`&${o}`)&&(e.hash=e.hash.slice(0,-o.length-1))}}else e.searchParams.delete("tsx-namespace"),e.searchParams.delete(W),e.searchParams.delete(O);s&&(e.pathname=new URL(S(s)).pathname);const n=e.toString();return t.port&&t.port.postMessage({type:"load",url:n}),t.onImport?.(n),n},"notifyLoad"),Wt=c((t,r)=>{if(!t.active)return!1;const e=w(r);if(t.namespace!==e)return!1;const s=we(t,r);return Ut.send&&Ut.send({type:"dependency",path:s}),!0},"prepareLoad"),Ot=c((t,r)=>{if(!ee.test(t))return r;const e=r[It];return e?.type?r:{...r,[It]:{...e,type:"json"}}},"prepareJsonAttributes"),nt=c(({conditions:t})=>t?.includes("require")===!0&&!t.includes("import"),"isCommonJsRequireContext$1"),Re=c(t=>{const r=c(async(e,s,n)=>{if(!Wt(t,e))return n(e,s);const o=w(e),{fileUrl:a,filePath:i,loadUrl:l}=st(e),f=Ot(l,s),m=await n(l,f);u(3,"loaded by next loader",{url:e,loadUrl:l,loaded:m});const d=a?.searchParams.has(W)===!0,p=m.format,h=a?new URL(S(i)):void 0;if(h&&a&&(h.search=x(a.search,G)),Tt(p)&&a&&m.responseURL?.startsWith("file:")&&!i.endsWith(".cjs")){const g=await oe(S(i),"utf8"),M=Pt(g);if(p==="commonjs-typescript"||!i.endsWith(".js")||M){if(!Pe){if(d&&M&&Z.test(i)){const _=await St(g,i,{define:{"import.meta.url":JSON.stringify(h.toString())},tsconfigRaw:E(i,t)});return $.set(e,_.code),{format:"module",source:U(_)}}return m}if(!o&&!d&&!i.endsWith(".cts"))return m;const dt=!!(o||d||x(a.search,G)),lt=H(g,jt(i,a),{cjsBanner:dt?`require = require("node:module").createRequire(${JSON.stringify(S(i).toString())});`:void 0,tsconfigRaw:E(i,t)});if(m.format="commonjs",m.source=U(lt),dt){const _=Lt(i,a,o);m.responseURL=`data:text/javascript,${encodeURIComponent(lt.code)}?filePath=${encodeURIComponent(_)}`}return u(3,"returning CJS export annotation",m),m}}if(!m.source)return m;const y=Ft(m.source),N=p==="json"&&!nt(s);if(p==="commonjs-typescript"){const g=H(y,i,{tsconfigRaw:E(i,t)});return{...m,format:"commonjs",source:U(g)}}if(N||Et(p)||B.test(e)){const g=await St(y,i,{tsconfigRaw:E(i,t)});return $.set(e,g.code),{format:"module",source:U(g)}}if(m.format==="module"){const g=vt(i,y);g?(m.source=U(g),$.set(e,g.code)):$.set(e,y)}return m},"load");return A?async(e,s,n)=>{u(2,"load",{url:e,context:s});const o=await r(e,s,n);return u(1,"loaded",{url:e,result:o}),o}:r},"createLoad"),Ie=c(t=>{const r=c((e,s,n)=>{if(nt(s)&&tt()||!Wt(t,e))return n(e,s);const o=w(e),{fileUrl:a,filePath:i,loadUrl:l}=st(e),f=Ot(l,s),m=n(l,f);u(3,"loaded by next loader",{url:e,loadUrl:l,loaded:m});const d=m.format;if(Tt(d)&&L(Y)&&m.responseURL?.startsWith("file:")&&!i.endsWith(".cjs")){const y=se(S(i),"utf8");if(d==="commonjs-typescript"||!i.endsWith(".js")||Pt(y)){const N=H(y,jt(i,a),{tsconfigRaw:E(i,t)}),g=!o&&tt(),M=Lt(i,a,o);return m.format="commonjs",m.shouldBeReloadedByCJSLoader=g,m.source=U(N),g||(m.responseURL=`data:text/javascript,${encodeURIComponent(N.code)}?filePath=${encodeURIComponent(M)}`),u(3,"returning CJS export annotation",m),m}}if(!m.source)return m;const p=Ft(m.source),h=d==="json"&&!nt(s);if(d==="commonjs-typescript"){const y=H(p,i,{tsconfigRaw:E(i,t)});return{...m,format:"commonjs",shouldBeReloadedByCJSLoader:!1,source:U(y)}}if(h||Et(d)||B.test(e)){const y=ie(p,i,{tsconfigRaw:E(i,t)});return{format:"module",source:U(y)}}if(m.format==="module"){const y=vt(i,p);y&&(m.source=U(y))}return m},"load");return A?(e,s,n)=>{u(2,"loadSync",{url:e,context:s});const o=r(e,s,n);return u(1,"loadedSync",{url:e,result:o}),o}:r},"createLoadSync"),Te=c(t=>{if(q(t)||t.startsWith("#")||t.includes(":"))return!1;const r=t.split("/"),e=r[0]?.startsWith("@")?2:1;return r.length>e&&r.slice(0,e).every(Boolean)},"isBarePackageSubpath"),Ee=c(t=>{const r=t.lastIndexOf(pt);if(r===-1)return;const s=t.slice(r+pt.length).split(v.sep),n=s[0]?.startsWith("@")?2:1;if(!(s.length<=n||!s[n-1]))return v.join(t.slice(0,r),"node_modules",...s.slice(0,n))},"getPackageDirectory"),$t=c((t,r)=>{if(!Te(t)||!r.startsWith(P))return;const e=R(r),s=Ee(e);if(!s)return;const o=et(v.join(s,"package.json"))?.exports;if(o!=null)return{kind:"root-exports"};const a=et(v.join(e,"package.json"));return typeof a?.main!="string"||!a.main?{kind:"legacy-directory"}:{kind:"legacy-directory",mainUrl:S(v.resolve(e,a.main)).toString()}},"getPackageSubpathDirectoryInfo"),je=L(Y),bt=/^(?:[a-z][\d+.a-z-]*:\/\/|data:|file:|node:)/i,Ct=c(t=>!q(t)&&!bt.test(t),"isTsconfigPathAliasSpecifier"),D=c(t=>{if(t.url)return t.url;const r=t.message.match(/^Cannot find module '([^']+)'/);if(r){const[,s]=r;return s}const e=t.message.match(/^Cannot find package '([^']+)'/);if(e){const[,s]=e;if(!v.isAbsolute(s))return;const n=S(s);if(n.pathname.endsWith("/")&&(n.pathname+="package.json"),n.pathname.endsWith("/package.json")){const o=et(n);if(o?.main)return new URL(o.main,n).toString()}else return n.toString()}},"getMissingPathFromNotFound"),b=c(t=>t==="ERR_MODULE_NOT_FOUND"||t==="MODULE_NOT_FOUND","isModuleNotFound"),X=c(t=>t instanceof Error&&(b(t.code)||t.code==="ERR_UNSUPPORTED_DIR_IMPORT"),"isDirectoryEntryMiss"),k=c(t=>t.conditions.includes("require")&&!t.conditions.includes("import"),"isCommonJsRequireContext"),ot=c(t=>{const r=t.indexOf("?"),e=t.indexOf("#");return r===-1?e:e===-1?r:Math.min(r,e)},"getUrlMetadataIndex"),Jt=c((t,r)=>r||!q(t)&&!bt.test(t)?t.indexOf("?"):ot(t),"getSpecifierMetadataIndex"),Nt=c(t=>{if(t?.startsWith(P))return R(new URL(t))},"getParentFilePath"),Le=c(t=>{if(!t)return!1;const r=Nt(t);if(r)return B.test(r);const e=ot(t);return B.test(e===-1?t:t.slice(0,e))},"isTypeScriptParent"),C=c(t=>{const r=Nt(t);return r!==void 0&&ht(r)},"isParentDependency"),Mt=c(t=>v.extname(new URL(t).pathname)===".js"&&ht(R(t)),"isImplicitJavaScriptDependency"),_t=c((t,r)=>Le(t)||r&&!C(t),"resolvesTsExtensions"),Fe=c((t,r)=>{const e=ot(t),s=e===-1?t:t.slice(0,e);try{if(s.startsWith(P))return R(s);if(v.isAbsolute(s))return s;if(F(s)&&r?.startsWith(P))return R(new URL(s,r))}catch{}},"getProbeFilePath"),At=c((t,r)=>{const e=Fe(t,r);return e!==void 0&&!ne(e)},"candidateDoesntExist"),z=c(async(t,r,e,s)=>{const n=yt(t);if(u(3,"resolveExtensions",{url:t,context:r,throwError:s,tryPaths:n}),!n)return;let o;for(const a of n)if(!At(a,r.parentURL))try{return await e(a,r)}catch(i){const{code:l}=i;if(!b(l)&&l!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw i;o=i}if(s){if(o===void 0)return e(n[0],r);throw o}},"resolveExtensions"),J=c((t,r,e,s)=>{const n=yt(t);if(u(3,"resolveExtensionsSync",{url:t,context:r,throwError:s,tryPaths:n}),!n)return;let o;for(const a of n)if(!At(a,r.parentURL))try{return e(a,r)}catch(i){const{code:l}=i;if(!b(l)&&l!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw i;o=i}if(s){if(o===void 0)return e(n[0],r);throw o}},"resolveExtensionsSync"),We=c(async(t,r,e,s)=>{const n=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1,o=_t(r.parentURL,n);if(u(3,"resolveBase",{specifier:t,context:r,specifierStartsWithFileUrl:t.startsWith(P),isRelativePath:F(t),resolveTsExtensions:o,allowJs:n}),(t.startsWith(P)||F(t))&&o){const a=await z(t,r,e,void 0);if(u(3,"resolveBase resolved",{specifier:t,context:r,resolved:a}),a)return a}try{return await e(t,r)}catch(a){if(u(3,"resolveBase error",{specifier:t,context:r,error:a}),a instanceof Error){const i=a;if(b(i.code)){const l=D(i);if(l){const f=await z(l,r,e,void 0);if(f)return f}}}throw a}},"resolveBase"),at=c((t,r,e,s)=>{const n=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1,o=_t(r.parentURL,n);if(u(3,"resolveBaseSync",{specifier:t,context:r,specifierStartsWithFileUrl:t.startsWith(P),isRelativePath:F(t),resolveTsExtensions:o,allowJs:n}),(t.startsWith(P)||F(t))&&o){const a=J(t,r,e,void 0);if(u(3,"resolveBaseSync resolved",{specifier:t,context:r,resolved:a}),a)return a}try{return e(t,r)}catch(a){if(u(3,"resolveBaseSync error",{specifier:t,context:r,error:a}),a instanceof Error){const i=a;if(b(i.code)){const l=D(i);if(l){const f=J(l,r,e,void 0);if(f)return f}}}throw a}},"resolveBaseSync"),it=c(async(t,r,e,s)=>{if(u(3,"resolveDirectory",{specifier:t,context:r,isDirectory:Q.test(t)}),(t==="."||t===".."||t.endsWith("/.."))&&(t+="/"),Q.test(t)){const n=new URL(t,r.parentURL);return n.pathname=v.join(n.pathname,"index"),await z(n.toString(),r,e,!0)}try{return await We(t,r,e,s)}catch(n){if(n instanceof Error){u(3,"resolveDirectory error",{specifier:t,context:r,error:n});const o=n;if(o.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const a=D(o);if(a){if(t.startsWith("#"))throw n;const i=$t(t,a);if(i?.kind==="root-exports")throw n;if(i?.mainUrl){try{return await e(i.mainUrl,r)}catch(m){if(!X(m))throw m}try{return await it(i.mainUrl,r,e,s)}catch(m){if(!X(m))throw m}}const l=`${a}/index`,f=await z(l,r,e);if(f)return f}}}throw n}},"resolveDirectory"),ct=c((t,r,e,s)=>{if(u(3,"resolveDirectorySync",{specifier:t,context:r,isDirectory:Q.test(t)}),(t==="."||t===".."||t.endsWith("/.."))&&(t+="/"),Q.test(t)){const n=k(r);if(n&&!q(t))return at(t,r,e,s);const o=new URL(t,r.parentURL);return o.pathname=v.join(o.pathname,"index"),n?J(R(o),r,e,!1)??at(t,r,e,s):J(o.toString(),r,e,!0)}try{return at(t,r,e,s)}catch(n){if(n instanceof Error){u(3,"resolveDirectorySync error",{specifier:t,context:r,error:n});const o=n;if(o.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const a=D(o);if(a){if(t.startsWith("#"))throw n;const i=$t(t,a);if(i?.kind==="root-exports")throw n;if(i?.mainUrl){try{return e(i.mainUrl,r)}catch(m){if(!X(m))throw m}try{return ct(i.mainUrl,r,e,s)}catch(m){if(!X(m))throw m}}const l=`${a}/index`,f=J(l,r,e);if(f)return f}}}throw n}},"resolveDirectorySync"),Oe=c(async(t,r,e,s)=>{const n=Ct(t);if(u(3,"resolveTsPaths",{specifier:t,context:r,tsconfigPathAliasSpecifier:n,tsconfig:s.parsedTsconfig,fromNodeModules:C(r.parentURL)}),n&&s.parsedTsconfig&&!C(r.parentURL)){const o=gt(s.parsedTsconfig,t);u(3,"resolveTsPaths",{possiblePaths:o});for(const a of o)try{return await it(S(a).toString(),r,e,s)}catch{}}return it(t,r,e,s)},"resolveTsPaths"),$e=c((t,r,e,s)=>{const n=Ct(t);if(u(3,"resolveTsPathsSync",{specifier:t,context:r,tsconfigPathAliasSpecifier:n,tsconfig:s.parsedTsconfig,fromNodeModules:C(r.parentURL)}),n&&s.parsedTsconfig&&!C(r.parentURL)){const o=gt(s.parsedTsconfig,t);u(3,"resolveTsPathsSync",{possiblePaths:o});for(const a of o)try{return ct(S(a).toString(),r,e,s)}catch{}}return ct(t,r,e,s)},"resolveTsPathsSync"),V="tsx://",mt=c((t,r)=>{const e=t.indexOf("#"),s=e===-1?t:t.slice(0,e),n=e===-1?"":t.slice(e);return`${s}${s.includes("?")?"&":"?"}${r}${n}`},"addQuery"),K=c((t,r)=>T(t)?`${t}${t.includes("#")?"&":"#"}${I}${r}`:mt(t,`${I}${r}`),"addNamespace"),Bt=c((t,r)=>{const e=r.indexOf("#"),s=r[0]==="?"?r.slice(1,e===-1?void 0:e):"",n=e===-1?"":r.slice(e),o=t.indexOf("#"),a=o===-1?t:t.slice(0,o),i=o===-1?"":t.slice(o),l=s?mt(a,s):a;return new URL(`${l}${n||i}`).toString()},"mergeUrlMetadata"),qt=c((t,r,e)=>{if(r!=="commonjs"||!t.startsWith(P)||!Z.test(t))return t;const s=new URL(t),n=[rt(s.search,[I]),...e?[`namespace=${encodeURIComponent(e)}`]:[]].filter(Boolean).join("&");return n?(s.pathname+=`%3F${n}`,s.searchParams.set(O,"1"),s.toString()):t},"preserveCommonJsQueryIdentity"),be=c(t=>{const r=c(async(e,s,n)=>{if(!t.active||e.startsWith("node:"))return n(e,s);const o=s.parentURL&&w(s.parentURL);let a=T(e)?o:w(e)??o;if(t.namespace){let h;if(e.startsWith(V)){try{h=JSON.parse(e.slice(V.length))}catch{}h?.namespace&&(a=h.namespace)}if(t.namespace!==a)return n(e,s);h&&(e=h.specifier,s.parentURL=h.parentURL)}if(T(e)){const h=await n(e,s);return t.namespace?{...h,url:K(h.url,t.namespace)}:h}const i=Jt(e,k(s)),l=i===-1?e:e.slice(0,i),f=i===-1?"":e.slice(i),m=await Oe(l,s,n,t);if(u(2,"nextResolve",{resolved:m}),m.format==="builtin")return m;const d={...m};d.url.startsWith(P)&&(d.format==="module-typescript"?d.format="module":d.format==="commonjs-typescript"?d.format="commonjs":!d.format&&!Mt(d.url)&&(d.format=await le(d.url),u(2,"getFormatFromFileUrl",{resolved:d,format:d.format}))),f&&(d.url=Bt(d.url,f));const p=s.parentURL&&d.format==="commonjs"&&Z.test(d.url)&&(new URL(s.parentURL).searchParams.has(W)||ye(s.parentURL,e,je));return a&&w(d.url)===void 0&&(d.url=K(d.url,a)),p&&(d.url=mt(d.url,fe)),(a||p)&&(d.url=qt(d.url,d.format,a)),d},"resolve");return A?async(e,s,n)=>{u(2,"resolve",{specifier:e,context:s});const o=await r(e,s,n);return u(1,"resolved",{specifier:e,context:s,result:o}),o}:r},"createResolve"),Ce=c(t=>{const r=c((e,s,n)=>{if(!t.active||e.startsWith("node:")||k(s)&&tt())return n(e,s);const o=s.parentURL&&w(s.parentURL);let a=T(e)?o:w(e)??o;if(t.namespace){let p;if(e.startsWith(V)){try{p=JSON.parse(e.slice(V.length))}catch{}p?.namespace&&(a=p.namespace)}if(t.namespace!==a)return n(e,s);p&&(e=p.specifier,s.parentURL=p.parentURL)}if(T(e)){const p=n(e,s);return t.namespace?{...p,url:K(p.url,t.namespace)}:p}const i=Jt(e,k(s)),l=i===-1?e:e.slice(0,i),f=i===-1?"":e.slice(i),m=$e(l,s,n,t);if(u(2,"nextResolve",{resolved:m}),m.format==="builtin")return m;const d={...m};return d.url.startsWith(P)&&(d.format==="module-typescript"?d.format="module":d.format==="commonjs-typescript"?d.format="commonjs":!d.format&&!Mt(d.url)&&(d.format=ue(d.url),u(2,"getFormatFromFileUrlSync",{resolved:d,format:d.format}))),f&&(d.url=Bt(d.url,f)),a&&w(d.url)===void 0&&(d.url=K(d.url,a)),d.url=qt(d.url,d.format,a),d},"resolve");return A?(e,s,n)=>{u(2,"resolveSync",{specifier:e,context:s});const o=r(e,s,n);return u(1,"resolvedSync",{specifier:e,context:s,result:o}),o}:r},"createResolveSync"),Qt=c(t=>(r,e)=>{if(!e)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const s=e.startsWith(P)?e:S(e).toString();return import(`tsx://${JSON.stringify({specifier:r,parentURL:s,namespace:t})}`)},"createScopedImport");let Ht=!1;const Je=c(t=>{const r=[];for(let e=0;e<t.length;e+=1){const s=t[e];if(s==="--import"){const n=t[e+1];n&&r.push(n),e+=1}else s.startsWith("--import=")&&r.push(s.slice(9))}return r},"collectImportSpecifiers"),Ne=c(()=>[...(process.env.NODE_OPTIONS??"").matchAll(/(?:^|\s)--import(?:=|\s+)(\S+)/g)].map(([,t])=>t),"collectNodeOptionsImportSpecifiers"),xt=[new URL("loader.mjs",import.meta.url).toString(),new URL("esm/index.mjs",import.meta.url).toString()],Me=new Set(["tsx","tsx/esm",...xt,...xt.map(t=>decodeURI(new URL(t).pathname))]),_e=c(t=>Me.has(t),"isTsxImport"),Gt=c(t=>/\.(?:[cm]?ts|tsx)(?:[?#].*)?$/.test(t),"isTypeScriptImport"),Ae=c(()=>{const t=Je(process.execArgv),r=t.findIndex(_e);return r>0&&t.slice(0,r).some(Gt)},"hasCliTypeScriptPreload"),Be=Ne().some(Gt)||Ae(),Dt=typeof j.registerHooks=="function"&&L(Kt)&&!Be,qe=c(t=>{if(!j.register&&!Dt)throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`);if(!Ht){const{_resolveFilename:i}=j;j._resolveFilename=(l,...f)=>i(re(l),...f),Ht=!0}const{sourceMapsEnabled:r}=process;if(process.setSourceMapsEnabled(!0),Dt){const i=wt({namespace:t?.namespace,onImport:t?.onImport,tsconfig:t?.tsconfig}),l=j.registerHooks({load:Ie(i),resolve:Ce(i)}),f=c(async()=>{i.active=!1,l.deregister(),r===!1&&process.setSourceMapsEnabled(!1)},"unregister2");return t?.namespace&&(f.import=Qt(t.namespace),f.unregister=f),f}const{port1:e,port2:s}=new zt;j.register(`./esm/index.mjs?${kt.randomUUID()}`,{parentURL:import.meta.url,data:{port:s,namespace:t?.namespace,tsconfig:t?.tsconfig},transferList:[s]});const n=t?.onImport,o=n&&(i=>{i.type==="load"&&n(i.url)});o&&(e.on("message",o),e.unref());const a=c(()=>(r===!1&&process.setSourceMapsEnabled(!1),o&&e.off("message",o),e.postMessage("deactivate"),new Promise(i=>{const l=c(f=>{f.type==="deactivated"&&(i(),e.off("message",l))},"onDeactivated");e.on("message",l)})),"unregister");return t?.namespace&&(a.import=Qt(t.namespace),a.unregister=a),a},"register");export{de as a,Re as b,me as c,be as d,ce as e,qe as r};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var u=Object.defineProperty;var s=(e,r)=>u(e,"name",{value:r,configurable:!0});var c=require("node:repl"),l=require("./package-
|
|
1
|
+
"use strict";var u=Object.defineProperty;var s=(e,r)=>u(e,"name",{value:r,configurable:!0});var c=require("node:repl"),l=require("./package-B1lIY_Tn.cjs"),q=require("./index-D1vYaNWZ.cjs");require("node:path"),require("node:url"),require("esbuild"),require("node:crypto"),require("./node-features-CEjg7cMX.cjs"),require("node:fs"),require("node:os"),require("./temporary-directory-B83uKxJF.cjs"),console.log(`Welcome to tsx v${l.version} (Node.js ${process.version}).
|
|
2
2
|
Type ".help" for more information.`);const i=c.start(),{eval:p}=i,v=s(async function(e,r,o,t){const a=await q.transform(e,o,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(n=>(console.log(n.message),{code:`
|
|
3
3
|
`}));return p.call(this,a.code,r,o,t)},"preEval");i.eval=v;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var p=Object.defineProperty;var t=(o,r)=>p(o,"name",{value:r,configurable:!0});import a from"node:repl";import{v as l}from"./package-
|
|
1
|
+
var p=Object.defineProperty;var t=(o,r)=>p(o,"name",{value:r,configurable:!0});import a from"node:repl";import{v as l}from"./package-BL7Whz21.mjs";import{t as c}from"./index-DCefr8NP.mjs";import"node:path";import"node:url";import"esbuild";import"node:crypto";import"./node-features-JeyyvQz6.mjs";import"node:fs";import"node:os";import"./temporary-directory-BDDVQOvU.mjs";console.log(`Welcome to tsx v${l} (Node.js ${process.version}).
|
|
2
2
|
Type ".help" for more information.`);const s=a.start(),{eval:f}=s,v=t(async function(o,r,e,i){const m=await c(o,e,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(n=>(console.log(n.message),{code:`
|
|
3
3
|
`}));return f.call(this,m.code,r,e,i)},"preEval");s.eval=v;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var c=Object.defineProperty;var a=(r,t)=>c(r,"name",{value:t,configurable:!0});var s=require("./get-pipe-path-D4YM6rQt.cjs"),n=require("./register-
|
|
1
|
+
"use strict";var c=Object.defineProperty;var a=(r,t)=>c(r,"name",{value:t,configurable:!0});var s=require("./get-pipe-path-D4YM6rQt.cjs"),n=require("./register-OY9cqBEN.cjs");let e;const i=a((r,t)=>(e||(e=n.register({namespace:Date.now().toString()})),e.require(r,t)),"tsxRequire"),o=a((r,t,u)=>(e||(e=n.register({namespace:Date.now().toString()})),e.resolve(r,t,u)),"resolve");o.paths=s.require.resolve.paths,i.resolve=o,i.main=s.require.main,i.extensions=s.require.extensions,i.cache=s.require.cache,exports.tsxRequire=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var m=Object.defineProperty;var a=(r,t)=>m(r,"name",{value:t,configurable:!0});import{r as o}from"./get-pipe-path-_tAJyU_v.mjs";import{r as n}from"./register-
|
|
1
|
+
var m=Object.defineProperty;var a=(r,t)=>m(r,"name",{value:t,configurable:!0});import{r as o}from"./get-pipe-path-_tAJyU_v.mjs";import{r as n}from"./register-DHgpdRjs.mjs";let e;const s=a((r,t)=>(e||(e=n({namespace:Date.now().toString()})),e.require(r,t)),"tsxRequire"),i=a((r,t,c)=>(e||(e=n({namespace:Date.now().toString()})),e.resolve(r,t,c)),"resolve");i.paths=o.resolve.paths,s.resolve=i,s.main=o.main,s.extensions=o.extensions,s.cache=o.cache;export{s as t};
|
|
@@ -558,9 +558,9 @@
|
|
|
558
558
|
}
|
|
559
559
|
},
|
|
560
560
|
"node_modules/tsx": {
|
|
561
|
-
"version": "4.23.
|
|
562
|
-
"resolved": "https://registry.npmjs.org/tsx/-/tsx-4.23.
|
|
563
|
-
"integrity": "sha512-
|
|
561
|
+
"version": "4.23.13",
|
|
562
|
+
"resolved": "https://registry.npmjs.org/tsx/-/tsx-4.23.13.tgz",
|
|
563
|
+
"integrity": "sha512-BL5MGkRln6aDYhb0xbQlEAGw743BaZYWdbWtdJOBriYJboKgUUYCadFp2/FpBBZquBC/ezNBn7wMMPx7FDZUDw==",
|
|
564
564
|
"dev": true,
|
|
565
565
|
"license": "MIT",
|
|
566
566
|
"dependencies": {
|
|
@@ -11771,7 +11771,7 @@
|
|
|
11771
11771
|
"max_fee_rate": {
|
|
11772
11772
|
"type": "string",
|
|
11773
11773
|
"title": "Max Fee Rate",
|
|
11774
|
-
"description": "Maximum fee rate the end-user authorizes for this builder, in Hyperliquid grammar (e.g. '0.01%'). Must end with '%'
|
|
11774
|
+
"description": "Maximum fee rate the end-user authorizes for this builder, in Hyperliquid grammar (e.g. '0.01%'). Must end with '%', use at most 0.001% precision (one tenth of a basis point) and be at most 0.1%, Hyperliquid's cap on perps builder fees. The fee is charged on top of Hyperliquid's own trading fee."
|
|
11775
11775
|
}
|
|
11776
11776
|
},
|
|
11777
11777
|
"type": "object",
|
|
@@ -13364,12 +13364,12 @@
|
|
|
13364
13364
|
"swap_provider": {
|
|
13365
13365
|
"type": "string",
|
|
13366
13366
|
"enum": [
|
|
13367
|
-
"
|
|
13368
|
-
"
|
|
13367
|
+
"market",
|
|
13368
|
+
"firm"
|
|
13369
13369
|
],
|
|
13370
13370
|
"title": "Swap Provider",
|
|
13371
|
-
"description": "Identifies which route priced the swap leg(s): a DEX
|
|
13372
|
-
"example": "
|
|
13371
|
+
"description": "Identifies which route priced the swap leg(s): 'market' \u2014 a DEX aggregator (iterative loop across pool liquidity, slippage-bounded floors) \u2014 or 'firm' \u2014 zero-slippage quotes, one per swap leg, each partially filled at the leg's size (exact fills, zero dust). On preview=true responses 'firm' means the numbers are INDICATIVE, computed from live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED (under 'auto' a firm build can fall back to market transparently), and `quote_expires_at` is absent on every preview \u2014 so neither substitutes for this field.",
|
|
13372
|
+
"example": "market"
|
|
13373
13373
|
},
|
|
13374
13374
|
"quote_expires_at": {
|
|
13375
13375
|
"anyOf": [
|
|
@@ -13417,7 +13417,7 @@
|
|
|
13417
13417
|
},
|
|
13418
13418
|
"type": "array",
|
|
13419
13419
|
"title": "Positions",
|
|
13420
|
-
"description": "
|
|
13420
|
+
"description": "Every leveraged position the account holds, across Aave, Morpho and Euler \u2014 each with its live state, lifetime totals and full transaction history, whether it is still open or already closed.",
|
|
13421
13421
|
"example": []
|
|
13422
13422
|
},
|
|
13423
13423
|
"aave_account_summary": {
|
|
@@ -13429,7 +13429,7 @@
|
|
|
13429
13429
|
"type": "null"
|
|
13430
13430
|
}
|
|
13431
13431
|
],
|
|
13432
|
-
"description": "Aave account-level summary (health factor, LTV, borrow capacity). Present when the account holds any open Aave looped position, since Aave collateral is pooled and health is account-level. Null for Morpho
|
|
13432
|
+
"description": "Aave account-level summary (health factor, LTV, borrow capacity). Present when the account holds any open Aave looped position, since Aave collateral is pooled and health is account-level. Null for accounts with no open Aave loop \u2014 Morpho and Euler positions carry their own isolated health factor on each position instead."
|
|
13433
13433
|
}
|
|
13434
13434
|
},
|
|
13435
13435
|
"type": "object",
|
|
@@ -13437,7 +13437,7 @@
|
|
|
13437
13437
|
"credit_account_address"
|
|
13438
13438
|
],
|
|
13439
13439
|
"title": "CreditLoopedPositionsResponse",
|
|
13440
|
-
"description": "Looped positions across Aave V3
|
|
13440
|
+
"description": "Looped positions across Aave V3, Morpho Blue and Euler V2 for a credit account."
|
|
13441
13441
|
},
|
|
13442
13442
|
"CreditPositionsResponse": {
|
|
13443
13443
|
"properties": {
|
|
@@ -13529,7 +13529,7 @@
|
|
|
13529
13529
|
"MORPHO"
|
|
13530
13530
|
],
|
|
13531
13531
|
"title": "CreditProtocol",
|
|
13532
|
-
"description": "Which lending protocol a credit action targets.\n\n``AAVE`` is the default so existing callers (which never send a ``protocol``\nfield) keep hitting the unchanged Aave code path; markets are named by token\nsymbol. ``MORPHO`` identifies Morpho Blue lending markets by their bytes32\n``market_id``. ``EULER`` identifies Euler V2 markets by their EVK\n``collateral_vault`` + ``borrow_vault`` addresses and supports isolated\nper-sub-account positions (``sub_account_id``).\n\nDeployment is per chain, so a valid protocol can still 422 on a given chain:\nAAVE on Ethereum, Base, Arbitrum, BSC and HyperEVM (where it is Hyperlend, the\nchain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM\n(where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.\n\nAll three support ``/v2/credit/loop
|
|
13532
|
+
"description": "Which lending protocol a credit action targets.\n\n``AAVE`` is the default so existing callers (which never send a ``protocol``\nfield) keep hitting the unchanged Aave code path; markets are named by token\nsymbol. ``MORPHO`` identifies Morpho Blue lending markets by their bytes32\n``market_id``. ``EULER`` identifies Euler V2 markets by their EVK\n``collateral_vault`` + ``borrow_vault`` addresses and supports isolated\nper-sub-account positions (``sub_account_id``).\n\nDeployment is per chain, so a valid protocol can still 422 on a given chain:\nAAVE on Ethereum, Base, Arbitrum, BSC and HyperEVM (where it is Hyperlend, the\nchain's Aave V3 deployment); MORPHO on Ethereum, Base, Arbitrum and HyperEVM\n(where it is Felix); EULER on Ethereum, Base, Arbitrum and BSC.\n\nAll three support ``/v2/credit/loop``, ``/v2/credit/unloop`` and\n``/v2/credit/looped_positions``. The one gap is ``/v2/credit/rebalance``,\nwhich rejects EULER with a 422."
|
|
13533
13533
|
},
|
|
13534
13534
|
"CreditRebalancePreview": {
|
|
13535
13535
|
"properties": {
|
|
@@ -14570,12 +14570,12 @@
|
|
|
14570
14570
|
"swap_provider": {
|
|
14571
14571
|
"type": "string",
|
|
14572
14572
|
"enum": [
|
|
14573
|
-
"
|
|
14574
|
-
"
|
|
14573
|
+
"market",
|
|
14574
|
+
"firm"
|
|
14575
14575
|
],
|
|
14576
14576
|
"title": "Swap Provider",
|
|
14577
|
-
"description": "Identifies which route priced the swap leg(s): a DEX
|
|
14578
|
-
"example": "
|
|
14577
|
+
"description": "Identifies which route priced the swap leg(s): 'market' \u2014 a DEX aggregator (pool liquidity, slippage-bounded floors) \u2014 or 'firm' \u2014 quotes, one per swap leg, each partially filled at the leg's size. On preview=true responses 'firm' means the numbers are INDICATIVE, computed from live maker price levels without spending any quote; execution fetches the firm quotes at signing time. Always present, including on fallbacks. This is the authoritative firm-vs-market signal and clients do need to read it: `pricing` is only what was REQUESTED (under 'auto' a firm build can fall back to market transparently), and `quote_expires_at` is absent on every preview \u2014 so neither substitutes for this field.",
|
|
14578
|
+
"example": "market"
|
|
14579
14579
|
},
|
|
14580
14580
|
"quote_expires_at": {
|
|
14581
14581
|
"anyOf": [
|
|
@@ -16906,7 +16906,7 @@
|
|
|
16906
16906
|
"properties": {
|
|
16907
16907
|
"protocol": {
|
|
16908
16908
|
"$ref": "#/components/schemas/CreditProtocol",
|
|
16909
|
-
"description": "Lending protocol this position is on
|
|
16909
|
+
"description": "Lending protocol this position is on: AAVE, MORPHO or EULER."
|
|
16910
16910
|
},
|
|
16911
16911
|
"market_id": {
|
|
16912
16912
|
"anyOf": [
|
|
@@ -16920,6 +16920,42 @@
|
|
|
16920
16920
|
"title": "Market Id",
|
|
16921
16921
|
"description": "Morpho only: the bytes32 id of the isolated market."
|
|
16922
16922
|
},
|
|
16923
|
+
"sub_account_id": {
|
|
16924
|
+
"anyOf": [
|
|
16925
|
+
{
|
|
16926
|
+
"type": "integer"
|
|
16927
|
+
},
|
|
16928
|
+
{
|
|
16929
|
+
"type": "null"
|
|
16930
|
+
}
|
|
16931
|
+
],
|
|
16932
|
+
"title": "Sub Account Id",
|
|
16933
|
+
"description": "Euler only: the EVC sub-account (0-255) holding this position. Euler isolates each loop in its own sub-account, so this is part of the position's identity \u2014 two loops on the same vault pair in different sub-accounts are two separate positions."
|
|
16934
|
+
},
|
|
16935
|
+
"collateral_vault": {
|
|
16936
|
+
"anyOf": [
|
|
16937
|
+
{
|
|
16938
|
+
"type": "string"
|
|
16939
|
+
},
|
|
16940
|
+
{
|
|
16941
|
+
"type": "null"
|
|
16942
|
+
}
|
|
16943
|
+
],
|
|
16944
|
+
"title": "Collateral Vault",
|
|
16945
|
+
"description": "Euler only: the EVK vault holding the collateral. Euler markets are identified by their vault pair rather than by a market id, and the same underlying token can back several different vaults."
|
|
16946
|
+
},
|
|
16947
|
+
"borrow_vault": {
|
|
16948
|
+
"anyOf": [
|
|
16949
|
+
{
|
|
16950
|
+
"type": "string"
|
|
16951
|
+
},
|
|
16952
|
+
{
|
|
16953
|
+
"type": "null"
|
|
16954
|
+
}
|
|
16955
|
+
],
|
|
16956
|
+
"title": "Borrow Vault",
|
|
16957
|
+
"description": "Euler only: the EVK controller vault the debt is owed to."
|
|
16958
|
+
},
|
|
16923
16959
|
"collateral_token": {
|
|
16924
16960
|
"type": "string",
|
|
16925
16961
|
"title": "Collateral Token",
|
|
@@ -17101,7 +17137,7 @@
|
|
|
17101
17137
|
"account"
|
|
17102
17138
|
],
|
|
17103
17139
|
"title": "Health Factor Scope",
|
|
17104
|
-
"description": "'market'
|
|
17140
|
+
"description": "How widely this health factor applies. 'market' means it is isolated rather than account-wide: a Morpho market's collateral backs only that market's debt, and an Euler sub-account's collateral backs only its own controller's debt. Note that an Euler figure is scoped to the SUB-ACCOUNT, so if several positions share one sub-account they all report the same health factor and are liquidated together \u2014 it is not each position's independent health. 'account' for Aave: collateral is pooled, so all collateral backs all debt and this health factor is shared by every Aave position on the account \u2014 see aave_account_summary for the account-level figures."
|
|
17105
17141
|
},
|
|
17106
17142
|
"collateral_apy": {
|
|
17107
17143
|
"anyOf": [
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -62,7 +62,7 @@ export const SDK_METADATA = {
|
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.1",
|
|
64
64
|
sdkVersion: "2.0.0",
|
|
65
|
-
genVersion: "2.
|
|
65
|
+
genVersion: "2.935.1",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 2.0.0 2.
|
|
67
|
+
"speakeasy-sdk/typescript 2.0.0 2.935.1 0.0.1 @compass-labs/api-sdk",
|
|
68
68
|
} as const;
|