@powerlines/plugin-env 0.15.161 → 0.15.162
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/{chunk-CNVrAnJR.cjs → _virtual/rolldown_runtime.cjs} +3 -18
- package/dist/{chunk-CsF2CmBJ.mjs → _virtual/rolldown_runtime.mjs} +1 -1
- package/dist/babel/index.cjs +2 -5
- package/dist/babel/index.d.cts +1 -14
- package/dist/babel/index.d.mts +1 -14
- package/dist/babel/index.mjs +1 -4
- package/dist/babel/plugin.cjs +140 -4
- package/dist/babel/plugin.d.cts +9 -15
- package/dist/babel/plugin.d.cts.map +1 -0
- package/dist/babel/plugin.d.mts +9 -15
- package/dist/babel/plugin.d.mts.map +1 -0
- package/dist/babel/plugin.mjs +140 -4
- package/dist/babel/plugin.mjs.map +1 -0
- package/dist/components/docs.cjs +66 -6
- package/dist/components/docs.d.cts +25 -2
- package/dist/components/docs.d.cts.map +1 -0
- package/dist/components/docs.d.mts +25 -2
- package/dist/components/docs.d.mts.map +1 -0
- package/dist/components/docs.mjs +66 -6
- package/dist/components/docs.mjs.map +1 -0
- package/dist/components/env.cjs +582 -11
- package/dist/components/env.d.cts +23 -2
- package/dist/components/env.d.cts.map +1 -0
- package/dist/components/env.d.mts +23 -2
- package/dist/components/env.d.mts.map +1 -0
- package/dist/components/env.mjs +581 -10
- package/dist/components/env.mjs.map +1 -0
- package/dist/components/index.cjs +5 -15
- package/dist/components/index.d.cts +2 -3
- package/dist/components/index.d.mts +2 -3
- package/dist/components/index.mjs +2 -12
- package/dist/helpers/automd-generator.cjs +31 -3
- package/dist/helpers/automd-generator.mjs +31 -3
- package/dist/helpers/automd-generator.mjs.map +1 -0
- package/dist/helpers/create-reflection-resource.cjs +21 -4
- package/dist/helpers/create-reflection-resource.d.cts +14 -4
- package/dist/helpers/create-reflection-resource.d.cts.map +1 -0
- package/dist/helpers/create-reflection-resource.d.mts +14 -4
- package/dist/helpers/create-reflection-resource.d.mts.map +1 -0
- package/dist/helpers/create-reflection-resource.mjs +22 -4
- package/dist/helpers/create-reflection-resource.mjs.map +1 -0
- package/dist/helpers/docs-helper.cjs +22 -5
- package/dist/helpers/docs-helper.d.cts +1 -2
- package/dist/helpers/docs-helper.d.cts.map +1 -1
- package/dist/helpers/docs-helper.d.mts +1 -2
- package/dist/helpers/docs-helper.d.mts.map +1 -1
- package/dist/helpers/docs-helper.mjs +23 -5
- package/dist/helpers/docs-helper.mjs.map +1 -0
- package/dist/helpers/index.cjs +32 -38
- package/dist/helpers/index.d.cts +6 -9
- package/dist/helpers/index.d.mts +6 -9
- package/dist/helpers/index.mjs +6 -12
- package/dist/helpers/load.cjs +133 -10
- package/dist/helpers/load.d.cts +36 -4
- package/dist/helpers/load.d.cts.map +1 -0
- package/dist/helpers/load.d.mts +36 -4
- package/dist/helpers/load.d.mts.map +1 -0
- package/dist/helpers/load.mjs +132 -9
- package/dist/helpers/load.mjs.map +1 -0
- package/dist/helpers/persistence.cjs +321 -15
- package/dist/helpers/persistence.d.cts +85 -4
- package/dist/helpers/persistence.d.cts.map +1 -0
- package/dist/helpers/persistence.d.mts +85 -4
- package/dist/helpers/persistence.d.mts.map +1 -0
- package/dist/helpers/persistence.mjs +310 -5
- package/dist/helpers/persistence.mjs.map +1 -0
- package/dist/helpers/reflect.cjs +262 -13
- package/dist/helpers/reflect.d.cts +47 -4
- package/dist/helpers/reflect.d.cts.map +1 -0
- package/dist/helpers/reflect.d.mts +47 -4
- package/dist/helpers/reflect.d.mts.map +1 -0
- package/dist/helpers/reflect.mjs +254 -5
- package/dist/helpers/reflect.mjs.map +1 -0
- package/dist/helpers/source-file-env.cjs +57 -3
- package/dist/helpers/source-file-env.d.cts +9 -2
- package/dist/helpers/source-file-env.d.cts.map +1 -0
- package/dist/helpers/source-file-env.d.mts +9 -2
- package/dist/helpers/source-file-env.d.mts.map +1 -0
- package/dist/helpers/source-file-env.mjs +56 -2
- package/dist/helpers/source-file-env.mjs.map +1 -0
- package/dist/helpers/template-helpers.cjs +69 -6
- package/dist/helpers/template-helpers.d.cts +16 -4
- package/dist/helpers/template-helpers.d.cts.map +1 -0
- package/dist/helpers/template-helpers.d.mts +16 -4
- package/dist/helpers/template-helpers.d.mts.map +1 -0
- package/dist/helpers/template-helpers.mjs +69 -6
- package/dist/helpers/template-helpers.mjs.map +1 -0
- package/dist/index.cjs +98 -258
- package/dist/index.d.cts +25 -15
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +25 -15
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +22 -182
- package/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.cjs +37 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.mjs +38 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/to-array.cjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/to-array.mjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/to-array.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +3 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +5 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +7 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +3 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +19 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +20 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +63 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +64 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +17 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-parent-path.cjs +32 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-parent-path.mjs +33 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-parent-path.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-type.cjs +28 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-type.mjs +29 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-type.mjs.map +1 -0
- package/dist/{join-paths-B0RBTuuw.cjs → node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/join-paths.cjs} +13 -65
- package/dist/{join-paths-Dd9KxuyL.mjs → node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/join-paths.mjs} +5 -45
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/join-paths.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/regex.cjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/regex.mjs +9 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/slash.cjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/slash.mjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/slash.mjs.map +1 -0
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.cjs +346 -0
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs +347 -0
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs.map +1 -0
- package/dist/{json5-DEV_07Nb.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.cjs} +1 -1
- package/dist/{json5-jq90mF9X.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs} +2 -2
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs.map +1 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.cjs +3 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.mjs +3 -0
- package/dist/{confbox.DA7CpUDY-DShUZ_rW.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.cjs} +2 -2
- package/dist/{confbox.DA7CpUDY-r6FXRsI6.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs} +2 -7
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs.map +1 -0
- package/dist/{confbox.DnMsyigM-C13n3X-S.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.cjs} +3 -13
- package/dist/{confbox.DnMsyigM-V6Wj0LPC.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs} +3 -3
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs.map +1 -0
- package/dist/{toml-DvrxV201.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.cjs} +1 -1
- package/dist/{toml-uuOYvEAO.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs} +2 -2
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs.map +1 -0
- package/dist/{yaml-CQSFMRMS.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.cjs} +1 -1
- package/dist/{yaml-CIn2Gddw.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs} +2 -2
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs.map +1 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +43 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +43 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs.map +1 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +46 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +46 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.cjs +288 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs +286 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs.map +1 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.cjs +71 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs +69 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs.map +1 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +1013 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +1008 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +23 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +14 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +2698 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +2686 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs.map +1 -0
- package/dist/{load-CC_Pu2Om.cjs → node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs} +195 -2332
- package/dist/{load-EM4edkA2.mjs → node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs} +195 -2319
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs.map +1 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +29 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +30 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs.map +1 -0
- package/dist/{multipart-parser-aEF5a4Xf.cjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs} +8 -5
- package/dist/{multipart-parser-D65rtMfY.mjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs} +4 -3
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs.map +1 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +22 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +18 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs.map +1 -0
- package/dist/{node-Co8KdzkZ.cjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs} +796 -814
- package/dist/{node-D9MigVDD.mjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs} +795 -807
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs.map +1 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +11768 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +11764 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs.map +1 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +25 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +21 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs.map +1 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +20 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +18 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.cjs +194 -0
- package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.mjs +192 -0
- package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.mjs.map +1 -0
- package/dist/{dist-BQc8ZRwl.cjs → node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs} +1 -1
- package/dist/{dist-mV5Swt78.mjs → node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs} +1 -1
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +3 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +3 -0
- package/dist/{defu-DV5Grr85.mjs → node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs} +8 -43
- package/dist/{defu-CrqNIh1A.cjs → node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs} +2 -90
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs.map +1 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +127 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +126 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +138 -0
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +137 -0
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +629 -0
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +628 -0
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs.map +1 -0
- package/dist/types/index.cjs +9 -10
- package/dist/types/index.d.cts +2 -3
- package/dist/types/index.d.mts +2 -3
- package/dist/types/index.mjs +2 -3
- package/dist/types/plugin.cjs +133 -7
- package/dist/types/plugin.d.cts +155 -3
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +155 -3
- package/dist/types/plugin.d.mts.map +1 -0
- package/dist/types/plugin.mjs +129 -3
- package/dist/types/plugin.mjs.map +1 -0
- package/dist/types/runtime.cjs +242 -3
- package/dist/types/runtime.d.cts +792 -2
- package/dist/{runtime-BDzzR4wH.d.cts.map → types/runtime.d.cts.map} +1 -1
- package/dist/types/runtime.d.mts +792 -2
- package/dist/{runtime-lYSIZdMn.d.mts.map → types/runtime.d.mts.map} +1 -1
- package/dist/types/runtime.mjs +241 -2
- package/dist/types/runtime.mjs.map +1 -0
- package/package.json +9 -9
- package/dist/automd-generator-BpvZRK0k.mjs +0 -32
- package/dist/automd-generator-BpvZRK0k.mjs.map +0 -1
- package/dist/automd-generator-CxG1owAE.cjs +0 -37
- package/dist/babel-BZqmdVF4.cjs +0 -0
- package/dist/babel-DgietUY3.mjs +0 -1
- package/dist/components-BUo6Koax.cjs +0 -0
- package/dist/components-DDFmImcI.mjs +0 -1
- package/dist/confbox.DA7CpUDY-DShUZ_rW.mjs.map +0 -1
- package/dist/confbox.DnMsyigM-V6Wj0LPC.mjs.map +0 -1
- package/dist/create-reflection-resource-3svZm2rY.d.cts +0 -14
- package/dist/create-reflection-resource-3svZm2rY.d.cts.map +0 -1
- package/dist/create-reflection-resource-CCpA76Yq.d.mts +0 -14
- package/dist/create-reflection-resource-CCpA76Yq.d.mts.map +0 -1
- package/dist/create-reflection-resource-D0QrD1Td.mjs +0 -23
- package/dist/create-reflection-resource-D0QrD1Td.mjs.map +0 -1
- package/dist/create-reflection-resource-d2zdTyOE.cjs +0 -27
- package/dist/defu-DV5Grr85.mjs.map +0 -1
- package/dist/dist-C_a6goTt.cjs +0 -15282
- package/dist/dist-CjWvISyq.mjs +0 -15271
- package/dist/dist-CjWvISyq.mjs.map +0 -1
- package/dist/dist-mV5Swt78.mjs.map +0 -1
- package/dist/docs-BAKwE4PJ.d.cts +0 -25
- package/dist/docs-BAKwE4PJ.d.cts.map +0 -1
- package/dist/docs-CVf-w8oz.d.mts +0 -25
- package/dist/docs-CVf-w8oz.d.mts.map +0 -1
- package/dist/docs-E0aCTO7H.cjs +0 -72
- package/dist/docs-WdCIcQmw.mjs +0 -67
- package/dist/docs-WdCIcQmw.mjs.map +0 -1
- package/dist/docs-helper-BSYSI2cH.mjs +0 -24
- package/dist/docs-helper-BSYSI2cH.mjs.map +0 -1
- package/dist/docs-helper-BWe1dt1m.cjs +0 -28
- package/dist/env-BSCEigpj.cjs +0 -593
- package/dist/env-D0KBPuAd.d.mts +0 -23
- package/dist/env-D0KBPuAd.d.mts.map +0 -1
- package/dist/env-DqI7dwC-.mjs +0 -582
- package/dist/env-DqI7dwC-.mjs.map +0 -1
- package/dist/env-DwM7pJm7.d.cts +0 -23
- package/dist/env-DwM7pJm7.d.cts.map +0 -1
- package/dist/helpers-45e1bvAO.mjs +0 -1
- package/dist/helpers-DgYP3uej.cjs +0 -0
- package/dist/index-BNRXMhlr.d.mts +0 -1
- package/dist/index-Bdi8CvaN.d.cts +0 -16
- package/dist/index-Bdi8CvaN.d.cts.map +0 -1
- package/dist/index-CEDY7cmG.d.cts +0 -1
- package/dist/index-CREkvfw9.d.mts +0 -1
- package/dist/index-DSiHnMH2.d.cts +0 -1
- package/dist/index-Drhzdkqe.d.mts +0 -16
- package/dist/index-Drhzdkqe.d.mts.map +0 -1
- package/dist/index-dhjtMp5F.d.mts +0 -1
- package/dist/index-uTS5iDq_.d.cts +0 -1
- package/dist/join-paths-Dd9KxuyL.mjs.map +0 -1
- package/dist/json5-jq90mF9X.mjs.map +0 -1
- package/dist/jsonc-CBh70baJ.cjs +0 -4
- package/dist/jsonc-CDLU6bgi.mjs +0 -4
- package/dist/load-EM4edkA2.mjs.map +0 -1
- package/dist/load-GpP6cojj.d.mts +0 -36
- package/dist/load-GpP6cojj.d.mts.map +0 -1
- package/dist/load-PHGmxX_X.d.cts +0 -36
- package/dist/load-PHGmxX_X.d.cts.map +0 -1
- package/dist/multipart-parser-D65rtMfY.mjs.map +0 -1
- package/dist/node-D9MigVDD.mjs.map +0 -1
- package/dist/persistence-5S3EirDm.mjs +0 -586
- package/dist/persistence-5S3EirDm.mjs.map +0 -1
- package/dist/persistence-BR4cUaN6.d.cts +0 -85
- package/dist/persistence-BR4cUaN6.d.cts.map +0 -1
- package/dist/persistence-DrKQZNCv.d.mts +0 -85
- package/dist/persistence-DrKQZNCv.d.mts.map +0 -1
- package/dist/persistence-DzS7SzMj.cjs +0 -712
- package/dist/plugin-CM1TSv1B.cjs +0 -159
- package/dist/plugin-CSVnrdpE.cjs +0 -146
- package/dist/plugin-CSe5f2cD.d.cts +0 -155
- package/dist/plugin-CSe5f2cD.d.cts.map +0 -1
- package/dist/plugin-DMbVjdcQ.d.mts +0 -155
- package/dist/plugin-DMbVjdcQ.d.mts.map +0 -1
- package/dist/plugin-Vyvy9w9Z.mjs +0 -141
- package/dist/plugin-Vyvy9w9Z.mjs.map +0 -1
- package/dist/plugin-eBjQJP6x.mjs +0 -130
- package/dist/plugin-eBjQJP6x.mjs.map +0 -1
- package/dist/reflect-Dm8a3c29.d.cts +0 -47
- package/dist/reflect-Dm8a3c29.d.cts.map +0 -1
- package/dist/reflect-Dpz8ifa0.d.mts +0 -47
- package/dist/reflect-Dpz8ifa0.d.mts.map +0 -1
- package/dist/runtime-BDzzR4wH.d.cts +0 -792
- package/dist/runtime-C5ukCv3P.mjs +0 -242
- package/dist/runtime-C5ukCv3P.mjs.map +0 -1
- package/dist/runtime-g0TEIoZK.cjs +0 -253
- package/dist/runtime-lYSIZdMn.d.mts +0 -792
- package/dist/source-file-env-4Vdtzc5-.cjs +0 -68
- package/dist/source-file-env-Brfopjyr.d.cts +0 -9
- package/dist/source-file-env-Brfopjyr.d.cts.map +0 -1
- package/dist/source-file-env-DWejSP2U.d.mts +0 -9
- package/dist/source-file-env-DWejSP2U.d.mts.map +0 -1
- package/dist/source-file-env-Tj-6qobx.mjs +0 -57
- package/dist/source-file-env-Tj-6qobx.mjs.map +0 -1
- package/dist/template-helpers-1SKodHKt.d.mts +0 -16
- package/dist/template-helpers-1SKodHKt.d.mts.map +0 -1
- package/dist/template-helpers-Cw8aba1r.mjs +0 -70
- package/dist/template-helpers-Cw8aba1r.mjs.map +0 -1
- package/dist/template-helpers-DoFoTIAC.cjs +0 -75
- package/dist/template-helpers-zyitPfMz.d.cts +0 -16
- package/dist/template-helpers-zyitPfMz.d.cts.map +0 -1
- package/dist/toml-uuOYvEAO.mjs.map +0 -1
- package/dist/types-DyPQho_C.mjs +0 -1
- package/dist/types-o3zWarRp.cjs +0 -0
- package/dist/yaml-CIn2Gddw.mjs.map +0 -1
|
@@ -1,32 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __commonJSMin, __require, __toDynamicImportESM } from "../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { require_node_fetch_native_DhEqb06g } from "./shared/node-fetch-native.DhEqb06g.mjs";
|
|
2
3
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs
|
|
4
|
-
var require_node_fetch_native_DhEqb06g = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
-
var l = Object.defineProperty;
|
|
6
|
-
var o = (e$2, t$2) => l(e$2, "name", {
|
|
7
|
-
value: t$2,
|
|
8
|
-
configurable: !0
|
|
9
|
-
});
|
|
10
|
-
var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
11
|
-
function getDefaultExportFromCjs(e$2) {
|
|
12
|
-
return e$2 && e$2.__esModule && Object.prototype.hasOwnProperty.call(e$2, "default") ? e$2.default : e$2;
|
|
13
|
-
}
|
|
14
|
-
o(getDefaultExportFromCjs, "getDefaultExportFromCjs"), exports.commonjsGlobal = commonjsGlobal, exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
15
|
-
}));
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
4
|
//#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs
|
|
19
5
|
var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
20
6
|
var ys = Object.defineProperty;
|
|
21
7
|
var Po = (c) => {
|
|
22
8
|
throw TypeError(c);
|
|
23
9
|
};
|
|
24
|
-
var u = (c, l
|
|
25
|
-
value: l
|
|
10
|
+
var u = (c, l) => ys(c, "name", {
|
|
11
|
+
value: l,
|
|
26
12
|
configurable: !0
|
|
27
13
|
});
|
|
28
|
-
var vo = (c, l
|
|
29
|
-
var D = (c, l
|
|
14
|
+
var vo = (c, l, d) => l.has(c) || Po("Cannot " + d);
|
|
15
|
+
var D = (c, l, d) => (vo(c, l, "read from private field"), d ? d.call(c) : l.get(c)), ye = (c, l, d) => l.has(c) ? Po("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(c) : l.set(c, d), ne = (c, l, d, g) => (vo(c, l, "write to private field"), g ? g.call(c, d) : l.set(c, d), d);
|
|
30
16
|
var Pe, gt, ot, Zt, Oe, _t, St, it, oe, st, xe, Ue, at;
|
|
31
17
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
32
18
|
const http = __require("node:http"), https = __require("node:https"), zlib = __require("node:zlib"), Stream = __require("node:stream"), require$$0 = __require("node:buffer"), require$$0$1 = __require("node:util"), _commonjsHelpers = require_node_fetch_native_DhEqb06g(), require$$1 = __require("node:url"), require$$0$2 = __require("node:net"), node_fs = __require("node:fs"), node_path = __require("node:path");
|
|
@@ -38,15 +24,15 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
38
24
|
function dataUriToBuffer(c) {
|
|
39
25
|
if (!/^data:/i.test(c)) throw new TypeError("`uri` does not appear to be a Data URI (must begin with \"data:\")");
|
|
40
26
|
c = c.replace(/\r?\n/g, "");
|
|
41
|
-
const l
|
|
42
|
-
if (l
|
|
43
|
-
const d = c.substring(5, l
|
|
27
|
+
const l = c.indexOf(",");
|
|
28
|
+
if (l === -1 || l <= 4) throw new TypeError("malformed data: URI");
|
|
29
|
+
const d = c.substring(5, l).split(";");
|
|
44
30
|
let g = "", b = !1;
|
|
45
31
|
const R = d[0] || "text/plain";
|
|
46
32
|
let w = R;
|
|
47
33
|
for (let I = 1; I < d.length; I++) d[I] === "base64" ? b = !0 : d[I] && (w += `;${d[I]}`, d[I].indexOf("charset=") === 0 && (g = d[I].substring(8)));
|
|
48
34
|
!d[0] && !g.length && (w += ";charset=US-ASCII", g = "US-ASCII");
|
|
49
|
-
const A = b ? "base64" : "ascii", z = unescape(c.substring(l
|
|
35
|
+
const A = b ? "base64" : "ascii", z = unescape(c.substring(l + 1)), B = Buffer.from(z, A);
|
|
50
36
|
return B.type = R, B.typeFull = w, B.charset = g, B;
|
|
51
37
|
}
|
|
52
38
|
u(dataUriToBuffer, "dataUriToBuffer");
|
|
@@ -59,9 +45,9 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
59
45
|
* SPDX-License-Identifier: MIT
|
|
60
46
|
*/ var ponyfill_es2018 = ponyfill_es2018$1.exports, hasRequiredPonyfill_es2018;
|
|
61
47
|
function requirePonyfill_es2018() {
|
|
62
|
-
return hasRequiredPonyfill_es2018 || (hasRequiredPonyfill_es2018 = 1, function(c, l
|
|
48
|
+
return hasRequiredPonyfill_es2018 || (hasRequiredPonyfill_es2018 = 1, function(c, l) {
|
|
63
49
|
(function(d, g) {
|
|
64
|
-
g(l
|
|
50
|
+
g(l);
|
|
65
51
|
})(ponyfill_es2018, function(d) {
|
|
66
52
|
function g() {}
|
|
67
53
|
u(g, "noop");
|
|
@@ -70,10 +56,10 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
70
56
|
}
|
|
71
57
|
u(b, "typeIsObject");
|
|
72
58
|
const R = g;
|
|
73
|
-
function w(n, o
|
|
59
|
+
function w(n, o) {
|
|
74
60
|
try {
|
|
75
61
|
Object.defineProperty(n, "name", {
|
|
76
|
-
value: o
|
|
62
|
+
value: o,
|
|
77
63
|
configurable: !0
|
|
78
64
|
});
|
|
79
65
|
} catch {}
|
|
@@ -85,31 +71,31 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
85
71
|
}
|
|
86
72
|
u(I, "newPromise");
|
|
87
73
|
function k(n) {
|
|
88
|
-
return I((o
|
|
74
|
+
return I((o) => o(n));
|
|
89
75
|
}
|
|
90
76
|
u(k, "promiseResolvedWith");
|
|
91
77
|
function T(n) {
|
|
92
78
|
return B(n);
|
|
93
79
|
}
|
|
94
80
|
u(T, "promiseRejectedWith");
|
|
95
|
-
function $(n, o
|
|
96
|
-
return z.call(n, o
|
|
81
|
+
function $(n, o, a) {
|
|
82
|
+
return z.call(n, o, a);
|
|
97
83
|
}
|
|
98
84
|
u($, "PerformPromiseThen");
|
|
99
|
-
function v(n, o
|
|
100
|
-
$($(n, o
|
|
85
|
+
function v(n, o, a) {
|
|
86
|
+
$($(n, o, a), void 0, R);
|
|
101
87
|
}
|
|
102
88
|
u(v, "uponPromise");
|
|
103
|
-
function K(n, o
|
|
104
|
-
v(n, o
|
|
89
|
+
function K(n, o) {
|
|
90
|
+
v(n, o);
|
|
105
91
|
}
|
|
106
92
|
u(K, "uponFulfillment");
|
|
107
|
-
function U(n, o
|
|
108
|
-
v(n, void 0, o
|
|
93
|
+
function U(n, o) {
|
|
94
|
+
v(n, void 0, o);
|
|
109
95
|
}
|
|
110
96
|
u(U, "uponRejection");
|
|
111
|
-
function N(n, o
|
|
112
|
-
return $(n, o
|
|
97
|
+
function N(n, o, a) {
|
|
98
|
+
return $(n, o, a);
|
|
113
99
|
}
|
|
114
100
|
u(N, "transformPromiseWith");
|
|
115
101
|
function J(n) {
|
|
@@ -119,19 +105,19 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
119
105
|
let ge = u((n) => {
|
|
120
106
|
if (typeof queueMicrotask == "function") ge = queueMicrotask;
|
|
121
107
|
else {
|
|
122
|
-
const o
|
|
123
|
-
ge = u((a) => $(o
|
|
108
|
+
const o = k(void 0);
|
|
109
|
+
ge = u((a) => $(o, a), "_queueMicrotask");
|
|
124
110
|
}
|
|
125
111
|
return ge(n);
|
|
126
112
|
}, "_queueMicrotask");
|
|
127
|
-
function M(n, o
|
|
113
|
+
function M(n, o, a) {
|
|
128
114
|
if (typeof n != "function") throw new TypeError("Argument is not a function");
|
|
129
|
-
return Function.prototype.apply.call(n, o
|
|
115
|
+
return Function.prototype.apply.call(n, o, a);
|
|
130
116
|
}
|
|
131
117
|
u(M, "reflectCall");
|
|
132
|
-
function H(n, o
|
|
118
|
+
function H(n, o, a) {
|
|
133
119
|
try {
|
|
134
|
-
return k(M(n, o
|
|
120
|
+
return k(M(n, o, a));
|
|
135
121
|
} catch (p) {
|
|
136
122
|
return T(p);
|
|
137
123
|
}
|
|
@@ -147,46 +133,46 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
147
133
|
get length() {
|
|
148
134
|
return this._size;
|
|
149
135
|
}
|
|
150
|
-
push(o
|
|
136
|
+
push(o) {
|
|
151
137
|
const a = this._back;
|
|
152
138
|
let p = a;
|
|
153
139
|
a._elements.length === Y - 1 && (p = {
|
|
154
140
|
_elements: [],
|
|
155
141
|
_next: void 0
|
|
156
|
-
}), a._elements.push(o
|
|
142
|
+
}), a._elements.push(o), p !== a && (this._back = p, a._next = p), ++this._size;
|
|
157
143
|
}
|
|
158
144
|
shift() {
|
|
159
|
-
const o
|
|
160
|
-
let a = o
|
|
145
|
+
const o = this._front;
|
|
146
|
+
let a = o;
|
|
161
147
|
const p = this._cursor;
|
|
162
148
|
let y = p + 1;
|
|
163
|
-
const _ = o
|
|
164
|
-
return y === Y && (a = o
|
|
149
|
+
const _ = o._elements, S = _[p];
|
|
150
|
+
return y === Y && (a = o._next, y = 0), --this._size, this._cursor = y, o !== a && (this._front = a), _[p] = void 0, S;
|
|
165
151
|
}
|
|
166
|
-
forEach(o
|
|
152
|
+
forEach(o) {
|
|
167
153
|
let a = this._cursor, p = this._front, y = p._elements;
|
|
168
|
-
for (; (a !== y.length || p._next !== void 0) && !(a === y.length && (p = p._next, y = p._elements, a = 0, y.length === 0));) o
|
|
154
|
+
for (; (a !== y.length || p._next !== void 0) && !(a === y.length && (p = p._next, y = p._elements, a = 0, y.length === 0));) o(y[a]), ++a;
|
|
169
155
|
}
|
|
170
156
|
peek() {
|
|
171
|
-
const o
|
|
172
|
-
return o
|
|
157
|
+
const o = this._front, a = this._cursor;
|
|
158
|
+
return o._elements[a];
|
|
173
159
|
}
|
|
174
160
|
};
|
|
175
161
|
u(Dr, "SimpleQueue");
|
|
176
162
|
let Q = Dr;
|
|
177
163
|
const wt = Symbol("[[AbortSteps]]"), un = Symbol("[[ErrorSteps]]"), er = Symbol("[[CancelSteps]]"), tr = Symbol("[[PullSteps]]"), rr = Symbol("[[ReleaseSteps]]");
|
|
178
|
-
function ln(n, o
|
|
179
|
-
n._ownerReadableStream = o
|
|
164
|
+
function ln(n, o) {
|
|
165
|
+
n._ownerReadableStream = o, o._reader = n, o._state === "readable" ? or(n) : o._state === "closed" ? Eo(n) : fn(n, o._storedError);
|
|
180
166
|
}
|
|
181
167
|
u(ln, "ReadableStreamReaderGenericInitialize");
|
|
182
|
-
function nr(n, o
|
|
168
|
+
function nr(n, o) {
|
|
183
169
|
const a = n._ownerReadableStream;
|
|
184
|
-
return le(a, o
|
|
170
|
+
return le(a, o);
|
|
185
171
|
}
|
|
186
172
|
u(nr, "ReadableStreamReaderGenericCancel");
|
|
187
173
|
function _e(n) {
|
|
188
|
-
const o
|
|
189
|
-
o
|
|
174
|
+
const o = n._ownerReadableStream;
|
|
175
|
+
o._state === "readable" ? ir(n, /* @__PURE__ */ new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")) : Ao(n, /* @__PURE__ */ new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")), o._readableStreamController[rr](), o._reader = void 0, n._ownerReadableStream = void 0;
|
|
190
176
|
}
|
|
191
177
|
u(_e, "ReadableStreamReaderGenericRelease");
|
|
192
178
|
function Rt(n) {
|
|
@@ -194,25 +180,25 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
194
180
|
}
|
|
195
181
|
u(Rt, "readerLockException");
|
|
196
182
|
function or(n) {
|
|
197
|
-
n._closedPromise = I((o
|
|
198
|
-
n._closedPromise_resolve = o
|
|
183
|
+
n._closedPromise = I((o, a) => {
|
|
184
|
+
n._closedPromise_resolve = o, n._closedPromise_reject = a;
|
|
199
185
|
});
|
|
200
186
|
}
|
|
201
187
|
u(or, "defaultReaderClosedPromiseInitialize");
|
|
202
|
-
function fn(n, o
|
|
203
|
-
or(n), ir(n, o
|
|
188
|
+
function fn(n, o) {
|
|
189
|
+
or(n), ir(n, o);
|
|
204
190
|
}
|
|
205
191
|
u(fn, "defaultReaderClosedPromiseInitializeAsRejected");
|
|
206
192
|
function Eo(n) {
|
|
207
193
|
or(n), cn(n);
|
|
208
194
|
}
|
|
209
195
|
u(Eo, "defaultReaderClosedPromiseInitializeAsResolved");
|
|
210
|
-
function ir(n, o
|
|
211
|
-
n._closedPromise_reject !== void 0 && (J(n._closedPromise), n._closedPromise_reject(o
|
|
196
|
+
function ir(n, o) {
|
|
197
|
+
n._closedPromise_reject !== void 0 && (J(n._closedPromise), n._closedPromise_reject(o), n._closedPromise_resolve = void 0, n._closedPromise_reject = void 0);
|
|
212
198
|
}
|
|
213
199
|
u(ir, "defaultReaderClosedPromiseReject");
|
|
214
|
-
function Ao(n, o
|
|
215
|
-
fn(n, o
|
|
200
|
+
function Ao(n, o) {
|
|
201
|
+
fn(n, o);
|
|
216
202
|
}
|
|
217
203
|
u(Ao, "defaultReaderClosedPromiseResetToRejected");
|
|
218
204
|
function cn(n) {
|
|
@@ -228,28 +214,28 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
228
214
|
return typeof n == "object" || typeof n == "function";
|
|
229
215
|
}
|
|
230
216
|
u(qo, "isDictionary");
|
|
231
|
-
function ce(n, o
|
|
232
|
-
if (n !== void 0 && !qo(n)) throw new TypeError(`${o
|
|
217
|
+
function ce(n, o) {
|
|
218
|
+
if (n !== void 0 && !qo(n)) throw new TypeError(`${o} is not an object.`);
|
|
233
219
|
}
|
|
234
220
|
u(ce, "assertDictionary");
|
|
235
|
-
function ee(n, o
|
|
236
|
-
if (typeof n != "function") throw new TypeError(`${o
|
|
221
|
+
function ee(n, o) {
|
|
222
|
+
if (typeof n != "function") throw new TypeError(`${o} is not a function.`);
|
|
237
223
|
}
|
|
238
224
|
u(ee, "assertFunction");
|
|
239
225
|
function ko(n) {
|
|
240
226
|
return typeof n == "object" && n !== null || typeof n == "function";
|
|
241
227
|
}
|
|
242
228
|
u(ko, "isObject");
|
|
243
|
-
function hn(n, o
|
|
244
|
-
if (!ko(n)) throw new TypeError(`${o
|
|
229
|
+
function hn(n, o) {
|
|
230
|
+
if (!ko(n)) throw new TypeError(`${o} is not an object.`);
|
|
245
231
|
}
|
|
246
232
|
u(hn, "assertObject");
|
|
247
|
-
function Se(n, o
|
|
248
|
-
if (n === void 0) throw new TypeError(`Parameter ${o
|
|
233
|
+
function Se(n, o, a) {
|
|
234
|
+
if (n === void 0) throw new TypeError(`Parameter ${o} is required in '${a}'.`);
|
|
249
235
|
}
|
|
250
236
|
u(Se, "assertRequiredArgument");
|
|
251
|
-
function sr(n, o
|
|
252
|
-
if (n === void 0) throw new TypeError(`${o
|
|
237
|
+
function sr(n, o, a) {
|
|
238
|
+
if (n === void 0) throw new TypeError(`${o} is required in '${a}'.`);
|
|
253
239
|
}
|
|
254
240
|
u(sr, "assertRequiredField");
|
|
255
241
|
function ar(n) {
|
|
@@ -264,29 +250,29 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
264
250
|
return pn(Bo(n));
|
|
265
251
|
}
|
|
266
252
|
u(Wo, "integerPart");
|
|
267
|
-
function ur(n, o
|
|
253
|
+
function ur(n, o) {
|
|
268
254
|
const p = Number.MAX_SAFE_INTEGER;
|
|
269
255
|
let y = Number(n);
|
|
270
|
-
if (y = pn(y), !dn(y)) throw new TypeError(`${o
|
|
271
|
-
if (y = Wo(y), y < 0 || y > p) throw new TypeError(`${o
|
|
256
|
+
if (y = pn(y), !dn(y)) throw new TypeError(`${o} is not a finite number`);
|
|
257
|
+
if (y = Wo(y), y < 0 || y > p) throw new TypeError(`${o} is outside the accepted range of 0 to ${p}, inclusive`);
|
|
272
258
|
return !dn(y) || y === 0 ? 0 : y;
|
|
273
259
|
}
|
|
274
260
|
u(ur, "convertUnsignedLongLongWithEnforceRange");
|
|
275
|
-
function lr(n, o
|
|
276
|
-
if (!qe(n)) throw new TypeError(`${o
|
|
261
|
+
function lr(n, o) {
|
|
262
|
+
if (!qe(n)) throw new TypeError(`${o} is not a ReadableStream.`);
|
|
277
263
|
}
|
|
278
264
|
u(lr, "assertReadableStream");
|
|
279
265
|
function Ne(n) {
|
|
280
266
|
return new de(n);
|
|
281
267
|
}
|
|
282
268
|
u(Ne, "AcquireReadableStreamDefaultReader");
|
|
283
|
-
function bn(n, o
|
|
284
|
-
n._reader._readRequests.push(o
|
|
269
|
+
function bn(n, o) {
|
|
270
|
+
n._reader._readRequests.push(o);
|
|
285
271
|
}
|
|
286
272
|
u(bn, "ReadableStreamAddReadRequest");
|
|
287
|
-
function fr(n, o
|
|
273
|
+
function fr(n, o, a) {
|
|
288
274
|
const y = n._reader._readRequests.shift();
|
|
289
|
-
a ? y._closeSteps() : y._chunkSteps(o
|
|
275
|
+
a ? y._closeSteps() : y._chunkSteps(o);
|
|
290
276
|
}
|
|
291
277
|
u(fr, "ReadableStreamFulfillReadRequest");
|
|
292
278
|
function Tt(n) {
|
|
@@ -294,34 +280,34 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
294
280
|
}
|
|
295
281
|
u(Tt, "ReadableStreamGetNumReadRequests");
|
|
296
282
|
function mn(n) {
|
|
297
|
-
const o
|
|
298
|
-
return !(o
|
|
283
|
+
const o = n._reader;
|
|
284
|
+
return !(o === void 0 || !ve(o));
|
|
299
285
|
}
|
|
300
286
|
u(mn, "ReadableStreamHasDefaultReader");
|
|
301
287
|
const Mr = class Mr$1 {
|
|
302
|
-
constructor(o
|
|
303
|
-
if (Se(o
|
|
304
|
-
ln(this, o
|
|
288
|
+
constructor(o) {
|
|
289
|
+
if (Se(o, 1, "ReadableStreamDefaultReader"), lr(o, "First parameter"), ke(o)) throw new TypeError("This stream has already been locked for exclusive reading by another reader");
|
|
290
|
+
ln(this, o), this._readRequests = new Q();
|
|
305
291
|
}
|
|
306
292
|
get closed() {
|
|
307
293
|
return ve(this) ? this._closedPromise : T(Ct("closed"));
|
|
308
294
|
}
|
|
309
|
-
cancel(o
|
|
310
|
-
return ve(this) ? this._ownerReadableStream === void 0 ? T(Rt("cancel")) : nr(this, o
|
|
295
|
+
cancel(o = void 0) {
|
|
296
|
+
return ve(this) ? this._ownerReadableStream === void 0 ? T(Rt("cancel")) : nr(this, o) : T(Ct("cancel"));
|
|
311
297
|
}
|
|
312
298
|
read() {
|
|
313
299
|
if (!ve(this)) return T(Ct("read"));
|
|
314
300
|
if (this._ownerReadableStream === void 0) return T(Rt("read from"));
|
|
315
|
-
let o
|
|
301
|
+
let o, a;
|
|
316
302
|
const p = I((_, S) => {
|
|
317
|
-
o
|
|
303
|
+
o = _, a = S;
|
|
318
304
|
});
|
|
319
305
|
return ut(this, {
|
|
320
|
-
_chunkSteps: u((_) => o
|
|
306
|
+
_chunkSteps: u((_) => o({
|
|
321
307
|
value: _,
|
|
322
308
|
done: !1
|
|
323
309
|
}), "_chunkSteps"),
|
|
324
|
-
_closeSteps: u(() => o
|
|
310
|
+
_closeSteps: u(() => o({
|
|
325
311
|
value: void 0,
|
|
326
312
|
done: !0
|
|
327
313
|
}), "_closeSteps"),
|
|
@@ -348,9 +334,9 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
348
334
|
return !b(n) || !Object.prototype.hasOwnProperty.call(n, "_readRequests") ? !1 : n instanceof de;
|
|
349
335
|
}
|
|
350
336
|
u(ve, "IsReadableStreamDefaultReader");
|
|
351
|
-
function ut(n, o
|
|
337
|
+
function ut(n, o) {
|
|
352
338
|
const a = n._ownerReadableStream;
|
|
353
|
-
a._disturbed = !0, a._state === "closed" ? o
|
|
339
|
+
a._disturbed = !0, a._state === "closed" ? o._closeSteps() : a._state === "errored" ? o._errorSteps(a._storedError) : a._readableStreamController[tr](o);
|
|
354
340
|
}
|
|
355
341
|
u(ut, "ReadableStreamDefaultReaderRead");
|
|
356
342
|
function Oo(n) {
|
|
@@ -358,10 +344,10 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
358
344
|
yn(n, /* @__PURE__ */ new TypeError("Reader was released"));
|
|
359
345
|
}
|
|
360
346
|
u(Oo, "ReadableStreamDefaultReaderRelease");
|
|
361
|
-
function yn(n, o
|
|
347
|
+
function yn(n, o) {
|
|
362
348
|
const a = n._readRequests;
|
|
363
349
|
n._readRequests = new Q(), a.forEach((p) => {
|
|
364
|
-
p._errorSteps(o
|
|
350
|
+
p._errorSteps(o);
|
|
365
351
|
});
|
|
366
352
|
}
|
|
367
353
|
u(yn, "ReadableStreamDefaultReaderErrorReadRequests");
|
|
@@ -370,15 +356,15 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
370
356
|
}
|
|
371
357
|
u(Ct, "defaultReaderBrandCheckException");
|
|
372
358
|
const zo = Object.getPrototypeOf(Object.getPrototypeOf(async function* () {}).prototype), xr = class xr$1 {
|
|
373
|
-
constructor(o
|
|
374
|
-
this._ongoingPromise = void 0, this._isFinished = !1, this._reader = o
|
|
359
|
+
constructor(o, a) {
|
|
360
|
+
this._ongoingPromise = void 0, this._isFinished = !1, this._reader = o, this._preventCancel = a;
|
|
375
361
|
}
|
|
376
362
|
next() {
|
|
377
|
-
const o
|
|
378
|
-
return this._ongoingPromise = this._ongoingPromise ? N(this._ongoingPromise, o
|
|
363
|
+
const o = u(() => this._nextSteps(), "nextSteps");
|
|
364
|
+
return this._ongoingPromise = this._ongoingPromise ? N(this._ongoingPromise, o, o) : o(), this._ongoingPromise;
|
|
379
365
|
}
|
|
380
|
-
return(o
|
|
381
|
-
const a = u(() => this._returnSteps(o
|
|
366
|
+
return(o) {
|
|
367
|
+
const a = u(() => this._returnSteps(o), "returnSteps");
|
|
382
368
|
return this._ongoingPromise ? N(this._ongoingPromise, a, a) : a();
|
|
383
369
|
}
|
|
384
370
|
_nextSteps() {
|
|
@@ -386,12 +372,12 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
386
372
|
value: void 0,
|
|
387
373
|
done: !0
|
|
388
374
|
});
|
|
389
|
-
const o
|
|
375
|
+
const o = this._reader;
|
|
390
376
|
let a, p;
|
|
391
377
|
const y = I((S, C) => {
|
|
392
378
|
a = S, p = C;
|
|
393
379
|
});
|
|
394
|
-
return ut(o
|
|
380
|
+
return ut(o, {
|
|
395
381
|
_chunkSteps: u((S) => {
|
|
396
382
|
this._ongoingPromise = void 0, ge(() => a({
|
|
397
383
|
value: S,
|
|
@@ -399,32 +385,32 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
399
385
|
}));
|
|
400
386
|
}, "_chunkSteps"),
|
|
401
387
|
_closeSteps: u(() => {
|
|
402
|
-
this._ongoingPromise = void 0, this._isFinished = !0, _e(o
|
|
388
|
+
this._ongoingPromise = void 0, this._isFinished = !0, _e(o), a({
|
|
403
389
|
value: void 0,
|
|
404
390
|
done: !0
|
|
405
391
|
});
|
|
406
392
|
}, "_closeSteps"),
|
|
407
393
|
_errorSteps: u((S) => {
|
|
408
|
-
this._ongoingPromise = void 0, this._isFinished = !0, _e(o
|
|
394
|
+
this._ongoingPromise = void 0, this._isFinished = !0, _e(o), p(S);
|
|
409
395
|
}, "_errorSteps")
|
|
410
396
|
}), y;
|
|
411
397
|
}
|
|
412
|
-
_returnSteps(o
|
|
398
|
+
_returnSteps(o) {
|
|
413
399
|
if (this._isFinished) return Promise.resolve({
|
|
414
|
-
value: o
|
|
400
|
+
value: o,
|
|
415
401
|
done: !0
|
|
416
402
|
});
|
|
417
403
|
this._isFinished = !0;
|
|
418
404
|
const a = this._reader;
|
|
419
405
|
if (!this._preventCancel) {
|
|
420
|
-
const p = nr(a, o
|
|
406
|
+
const p = nr(a, o);
|
|
421
407
|
return _e(a), N(p, () => ({
|
|
422
|
-
value: o
|
|
408
|
+
value: o,
|
|
423
409
|
done: !0
|
|
424
410
|
}));
|
|
425
411
|
}
|
|
426
412
|
return _e(a), k({
|
|
427
|
-
value: o
|
|
413
|
+
value: o,
|
|
428
414
|
done: !0
|
|
429
415
|
});
|
|
430
416
|
}
|
|
@@ -440,8 +426,8 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
440
426
|
}
|
|
441
427
|
};
|
|
442
428
|
Object.setPrototypeOf(gn, zo);
|
|
443
|
-
function Fo(n, o
|
|
444
|
-
const p = new Pt(Ne(n), o
|
|
429
|
+
function Fo(n, o) {
|
|
430
|
+
const p = new Pt(Ne(n), o), y = Object.create(gn);
|
|
445
431
|
return y._asyncIteratorImpl = p, y;
|
|
446
432
|
}
|
|
447
433
|
u(Fo, "AcquireReadableStreamAsyncIterator");
|
|
@@ -466,28 +452,28 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
466
452
|
return n.slice();
|
|
467
453
|
}
|
|
468
454
|
u(lt, "CreateArrayFromList");
|
|
469
|
-
function Rn(n, o
|
|
470
|
-
new Uint8Array(n).set(new Uint8Array(a, p, y), o
|
|
455
|
+
function Rn(n, o, a, p, y) {
|
|
456
|
+
new Uint8Array(n).set(new Uint8Array(a, p, y), o);
|
|
471
457
|
}
|
|
472
458
|
u(Rn, "CopyDataBlockBytes");
|
|
473
|
-
let we = u((n) => (typeof n.transfer == "function" ? we = u((o
|
|
474
|
-
function Tn(n, o
|
|
475
|
-
if (n.slice) return n.slice(o
|
|
476
|
-
const p = a - o
|
|
477
|
-
return Rn(y, 0, n, o
|
|
459
|
+
let we = u((n) => (typeof n.transfer == "function" ? we = u((o) => o.transfer(), "TransferArrayBuffer") : typeof structuredClone == "function" ? we = u((o) => structuredClone(o, { transfer: [o] }), "TransferArrayBuffer") : we = u((o) => o, "TransferArrayBuffer"), we(n)), "TransferArrayBuffer"), Ee = u((n) => (typeof n.detached == "boolean" ? Ee = u((o) => o.detached, "IsDetachedBuffer") : Ee = u((o) => o.byteLength === 0, "IsDetachedBuffer"), Ee(n)), "IsDetachedBuffer");
|
|
460
|
+
function Tn(n, o, a) {
|
|
461
|
+
if (n.slice) return n.slice(o, a);
|
|
462
|
+
const p = a - o, y = new ArrayBuffer(p);
|
|
463
|
+
return Rn(y, 0, n, o, p), y;
|
|
478
464
|
}
|
|
479
465
|
u(Tn, "ArrayBufferSlice");
|
|
480
|
-
function vt(n, o
|
|
481
|
-
const a = n[o
|
|
466
|
+
function vt(n, o) {
|
|
467
|
+
const a = n[o];
|
|
482
468
|
if (a != null) {
|
|
483
|
-
if (typeof a != "function") throw new TypeError(`${String(o
|
|
469
|
+
if (typeof a != "function") throw new TypeError(`${String(o)} is not a function`);
|
|
484
470
|
return a;
|
|
485
471
|
}
|
|
486
472
|
}
|
|
487
473
|
u(vt, "GetMethod");
|
|
488
474
|
function Io(n) {
|
|
489
|
-
const o
|
|
490
|
-
return yield* o
|
|
475
|
+
const o = { [Symbol.iterator]: () => n.iterator }, a = async function* () {
|
|
476
|
+
return yield* o;
|
|
491
477
|
}();
|
|
492
478
|
return {
|
|
493
479
|
iterator: a,
|
|
@@ -497,8 +483,8 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
497
483
|
}
|
|
498
484
|
u(Io, "CreateAsyncFromSyncIterator");
|
|
499
485
|
const pr = (hr = (cr = Symbol.asyncIterator) !== null && cr !== void 0 ? cr : (dr = Symbol.for) === null || dr === void 0 ? void 0 : dr.call(Symbol, "Symbol.asyncIterator")) !== null && hr !== void 0 ? hr : "@@asyncIterator";
|
|
500
|
-
function Cn(n, o
|
|
501
|
-
if (a === void 0) if (o
|
|
486
|
+
function Cn(n, o = "sync", a) {
|
|
487
|
+
if (a === void 0) if (o === "async") {
|
|
502
488
|
if (a = vt(n, pr), a === void 0) return Io(Cn(n, "sync", vt(n, Symbol.iterator)));
|
|
503
489
|
} else a = vt(n, Symbol.iterator);
|
|
504
490
|
if (a === void 0) throw new TypeError("The object is not iterable");
|
|
@@ -512,9 +498,9 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
512
498
|
}
|
|
513
499
|
u(Cn, "GetIterator");
|
|
514
500
|
function jo(n) {
|
|
515
|
-
const o
|
|
516
|
-
if (!b(o
|
|
517
|
-
return o
|
|
501
|
+
const o = M(n.nextMethod, n.iterator, []);
|
|
502
|
+
if (!b(o)) throw new TypeError("The iterator.next() method must return an object");
|
|
503
|
+
return o;
|
|
518
504
|
}
|
|
519
505
|
u(jo, "IteratorNext");
|
|
520
506
|
function Lo(n) {
|
|
@@ -530,19 +516,19 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
530
516
|
}
|
|
531
517
|
u(Do, "IsNonNegativeNumber");
|
|
532
518
|
function Pn(n) {
|
|
533
|
-
const o
|
|
534
|
-
return new Uint8Array(o
|
|
519
|
+
const o = Tn(n.buffer, n.byteOffset, n.byteOffset + n.byteLength);
|
|
520
|
+
return new Uint8Array(o);
|
|
535
521
|
}
|
|
536
522
|
u(Pn, "CloneAsUint8Array");
|
|
537
523
|
function br(n) {
|
|
538
|
-
const o
|
|
539
|
-
return n._queueTotalSize -= o
|
|
524
|
+
const o = n._queue.shift();
|
|
525
|
+
return n._queueTotalSize -= o.size, n._queueTotalSize < 0 && (n._queueTotalSize = 0), o.value;
|
|
540
526
|
}
|
|
541
527
|
u(br, "DequeueValue");
|
|
542
|
-
function mr(n, o
|
|
528
|
+
function mr(n, o, a) {
|
|
543
529
|
if (!Do(a) || a === Infinity) throw new RangeError("Size must be a finite, non-NaN, non-negative number.");
|
|
544
530
|
n._queue.push({
|
|
545
|
-
value: o
|
|
531
|
+
value: o,
|
|
546
532
|
size: a
|
|
547
533
|
}), n._queueTotalSize += a;
|
|
548
534
|
}
|
|
@@ -575,18 +561,18 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
575
561
|
if (!yr(this)) throw Rr("view");
|
|
576
562
|
return this._view;
|
|
577
563
|
}
|
|
578
|
-
respond(o
|
|
564
|
+
respond(o) {
|
|
579
565
|
if (!yr(this)) throw Rr("respond");
|
|
580
|
-
if (Se(o
|
|
566
|
+
if (Se(o, 1, "respond"), o = ur(o, "First parameter"), this._associatedReadableByteStreamController === void 0) throw new TypeError("This BYOB request has been invalidated");
|
|
581
567
|
if (Ee(this._view.buffer)) throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");
|
|
582
|
-
qt(this._associatedReadableByteStreamController, o
|
|
568
|
+
qt(this._associatedReadableByteStreamController, o);
|
|
583
569
|
}
|
|
584
|
-
respondWithNewView(o
|
|
570
|
+
respondWithNewView(o) {
|
|
585
571
|
if (!yr(this)) throw Rr("respondWithNewView");
|
|
586
|
-
if (Se(o
|
|
572
|
+
if (Se(o, 1, "respondWithNewView"), !ArrayBuffer.isView(o)) throw new TypeError("You can only respond with array buffer views");
|
|
587
573
|
if (this._associatedReadableByteStreamController === void 0) throw new TypeError("This BYOB request has been invalidated");
|
|
588
|
-
if (Ee(o
|
|
589
|
-
kt(this._associatedReadableByteStreamController, o
|
|
574
|
+
if (Ee(o.buffer)) throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");
|
|
575
|
+
kt(this._associatedReadableByteStreamController, o);
|
|
590
576
|
}
|
|
591
577
|
};
|
|
592
578
|
u(Ur, "ReadableStreamBYOBRequest");
|
|
@@ -614,33 +600,33 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
614
600
|
close() {
|
|
615
601
|
if (!ze(this)) throw ct("close");
|
|
616
602
|
if (this._closeRequested) throw new TypeError("The stream has already been closed; do not close it again!");
|
|
617
|
-
const o
|
|
618
|
-
if (o
|
|
603
|
+
const o = this._controlledReadableByteStream._state;
|
|
604
|
+
if (o !== "readable") throw new TypeError(`The stream (in ${o} state) is not in the readable state and cannot be closed`);
|
|
619
605
|
ft(this);
|
|
620
606
|
}
|
|
621
|
-
enqueue(o
|
|
607
|
+
enqueue(o) {
|
|
622
608
|
if (!ze(this)) throw ct("enqueue");
|
|
623
|
-
if (Se(o
|
|
624
|
-
if (o
|
|
625
|
-
if (o
|
|
609
|
+
if (Se(o, 1, "enqueue"), !ArrayBuffer.isView(o)) throw new TypeError("chunk must be an array buffer view");
|
|
610
|
+
if (o.byteLength === 0) throw new TypeError("chunk must have non-zero byteLength");
|
|
611
|
+
if (o.buffer.byteLength === 0) throw new TypeError("chunk's buffer must have non-zero byteLength");
|
|
626
612
|
if (this._closeRequested) throw new TypeError("stream is closed or draining");
|
|
627
613
|
const a = this._controlledReadableByteStream._state;
|
|
628
614
|
if (a !== "readable") throw new TypeError(`The stream (in ${a} state) is not in the readable state and cannot be enqueued to`);
|
|
629
|
-
Bt(this, o
|
|
615
|
+
Bt(this, o);
|
|
630
616
|
}
|
|
631
|
-
error(o
|
|
617
|
+
error(o = void 0) {
|
|
632
618
|
if (!ze(this)) throw ct("error");
|
|
633
|
-
te(this, o
|
|
619
|
+
te(this, o);
|
|
634
620
|
}
|
|
635
|
-
[er](o
|
|
621
|
+
[er](o) {
|
|
636
622
|
En(this), Ae(this);
|
|
637
|
-
const a = this._cancelAlgorithm(o
|
|
623
|
+
const a = this._cancelAlgorithm(o);
|
|
638
624
|
return At(this), a;
|
|
639
625
|
}
|
|
640
|
-
[tr](o
|
|
626
|
+
[tr](o) {
|
|
641
627
|
const a = this._controlledReadableByteStream;
|
|
642
628
|
if (this._queueTotalSize > 0) {
|
|
643
|
-
Fn(this, o
|
|
629
|
+
Fn(this, o);
|
|
644
630
|
return;
|
|
645
631
|
}
|
|
646
632
|
const p = this._autoAllocateChunkSize;
|
|
@@ -649,7 +635,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
649
635
|
try {
|
|
650
636
|
y = new ArrayBuffer(p);
|
|
651
637
|
} catch (S) {
|
|
652
|
-
o
|
|
638
|
+
o._errorSteps(S);
|
|
653
639
|
return;
|
|
654
640
|
}
|
|
655
641
|
const _ = {
|
|
@@ -665,12 +651,12 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
665
651
|
};
|
|
666
652
|
this._pendingPullIntos.push(_);
|
|
667
653
|
}
|
|
668
|
-
bn(a, o
|
|
654
|
+
bn(a, o), Fe(this);
|
|
669
655
|
}
|
|
670
656
|
[rr]() {
|
|
671
657
|
if (this._pendingPullIntos.length > 0) {
|
|
672
|
-
const o
|
|
673
|
-
o
|
|
658
|
+
const o = this._pendingPullIntos.peek();
|
|
659
|
+
o.readerType = "none", this._pendingPullIntos = new Q(), this._pendingPullIntos.push(o);
|
|
674
660
|
}
|
|
675
661
|
}
|
|
676
662
|
};
|
|
@@ -708,55 +694,55 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
708
694
|
_r(n), n._pendingPullIntos = new Q();
|
|
709
695
|
}
|
|
710
696
|
u(En, "ReadableByteStreamControllerClearPendingPullIntos");
|
|
711
|
-
function gr(n, o
|
|
697
|
+
function gr(n, o) {
|
|
712
698
|
let a = !1;
|
|
713
699
|
n._state === "closed" && (a = !0);
|
|
714
|
-
const p = An(o
|
|
715
|
-
o
|
|
700
|
+
const p = An(o);
|
|
701
|
+
o.readerType === "default" ? fr(n, p, a) : ei(n, p, a);
|
|
716
702
|
}
|
|
717
703
|
u(gr, "ReadableByteStreamControllerCommitPullIntoDescriptor");
|
|
718
704
|
function An(n) {
|
|
719
|
-
const o
|
|
720
|
-
return new n.viewConstructor(n.buffer, n.byteOffset, o
|
|
705
|
+
const o = n.bytesFilled, a = n.elementSize;
|
|
706
|
+
return new n.viewConstructor(n.buffer, n.byteOffset, o / a);
|
|
721
707
|
}
|
|
722
708
|
u(An, "ReadableByteStreamControllerConvertPullIntoDescriptor");
|
|
723
|
-
function Et(n, o
|
|
709
|
+
function Et(n, o, a, p) {
|
|
724
710
|
n._queue.push({
|
|
725
|
-
buffer: o
|
|
711
|
+
buffer: o,
|
|
726
712
|
byteOffset: a,
|
|
727
713
|
byteLength: p
|
|
728
714
|
}), n._queueTotalSize += p;
|
|
729
715
|
}
|
|
730
716
|
u(Et, "ReadableByteStreamControllerEnqueueChunkToQueue");
|
|
731
|
-
function Bn(n, o
|
|
717
|
+
function Bn(n, o, a, p) {
|
|
732
718
|
let y;
|
|
733
719
|
try {
|
|
734
|
-
y = Tn(o
|
|
720
|
+
y = Tn(o, a, a + p);
|
|
735
721
|
} catch (_) {
|
|
736
722
|
throw te(n, _), _;
|
|
737
723
|
}
|
|
738
724
|
Et(n, y, 0, p);
|
|
739
725
|
}
|
|
740
726
|
u(Bn, "ReadableByteStreamControllerEnqueueClonedChunkToQueue");
|
|
741
|
-
function qn(n, o
|
|
742
|
-
o
|
|
727
|
+
function qn(n, o) {
|
|
728
|
+
o.bytesFilled > 0 && Bn(n, o.buffer, o.byteOffset, o.bytesFilled), He(n);
|
|
743
729
|
}
|
|
744
730
|
u(qn, "ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue");
|
|
745
|
-
function kn(n, o
|
|
746
|
-
const a = Math.min(n._queueTotalSize, o
|
|
731
|
+
function kn(n, o) {
|
|
732
|
+
const a = Math.min(n._queueTotalSize, o.byteLength - o.bytesFilled), p = o.bytesFilled + a;
|
|
747
733
|
let y = a, _ = !1;
|
|
748
|
-
const C = p - p % o
|
|
749
|
-
C >= o
|
|
734
|
+
const C = p - p % o.elementSize;
|
|
735
|
+
C >= o.minimumFill && (y = C - o.bytesFilled, _ = !0);
|
|
750
736
|
const q = n._queue;
|
|
751
737
|
for (; y > 0;) {
|
|
752
|
-
const P = q.peek(), W = Math.min(y, P.byteLength), O = o
|
|
753
|
-
Rn(o
|
|
738
|
+
const P = q.peek(), W = Math.min(y, P.byteLength), O = o.byteOffset + o.bytesFilled;
|
|
739
|
+
Rn(o.buffer, O, P.buffer, P.byteOffset, W), P.byteLength === W ? q.shift() : (P.byteOffset += W, P.byteLength -= W), n._queueTotalSize -= W, Wn(n, W, o), y -= W;
|
|
754
740
|
}
|
|
755
741
|
return _;
|
|
756
742
|
}
|
|
757
743
|
u(kn, "ReadableByteStreamControllerFillPullIntoDescriptorFromQueue");
|
|
758
|
-
function Wn(n, o
|
|
759
|
-
a.bytesFilled += o
|
|
744
|
+
function Wn(n, o, a) {
|
|
745
|
+
a.bytesFilled += o;
|
|
760
746
|
}
|
|
761
747
|
u(Wn, "ReadableByteStreamControllerFillHeadPullIntoDescriptor");
|
|
762
748
|
function On(n) {
|
|
@@ -770,24 +756,24 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
770
756
|
function Sr(n) {
|
|
771
757
|
for (; n._pendingPullIntos.length > 0;) {
|
|
772
758
|
if (n._queueTotalSize === 0) return;
|
|
773
|
-
const o
|
|
774
|
-
kn(n, o
|
|
759
|
+
const o = n._pendingPullIntos.peek();
|
|
760
|
+
kn(n, o) && (He(n), gr(n._controlledReadableByteStream, o));
|
|
775
761
|
}
|
|
776
762
|
}
|
|
777
763
|
u(Sr, "ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue");
|
|
778
764
|
function No(n) {
|
|
779
|
-
const o
|
|
780
|
-
for (; o
|
|
765
|
+
const o = n._controlledReadableByteStream._reader;
|
|
766
|
+
for (; o._readRequests.length > 0;) {
|
|
781
767
|
if (n._queueTotalSize === 0) return;
|
|
782
|
-
Fn(n, o
|
|
768
|
+
Fn(n, o._readRequests.shift());
|
|
783
769
|
}
|
|
784
770
|
}
|
|
785
771
|
u(No, "ReadableByteStreamControllerProcessReadRequestsUsingQueue");
|
|
786
|
-
function Ho(n, o
|
|
787
|
-
const y = n._controlledReadableByteStream, _ = o
|
|
772
|
+
function Ho(n, o, a, p) {
|
|
773
|
+
const y = n._controlledReadableByteStream, _ = o.constructor, S = Uo(_), { byteOffset: C, byteLength: q } = o, P = a * S;
|
|
788
774
|
let W;
|
|
789
775
|
try {
|
|
790
|
-
W = we(o
|
|
776
|
+
W = we(o.buffer);
|
|
791
777
|
} catch (j) {
|
|
792
778
|
p._errorSteps(j);
|
|
793
779
|
return;
|
|
@@ -827,14 +813,14 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
827
813
|
n._pendingPullIntos.push(O), $n(y, p), Fe(n);
|
|
828
814
|
}
|
|
829
815
|
u(Ho, "ReadableByteStreamControllerPullInto");
|
|
830
|
-
function Vo(n, o
|
|
831
|
-
o
|
|
816
|
+
function Vo(n, o) {
|
|
817
|
+
o.readerType === "none" && He(n);
|
|
832
818
|
const a = n._controlledReadableByteStream;
|
|
833
819
|
if (Tr(a)) for (; Dn(a) > 0;) gr(a, He(n));
|
|
834
820
|
}
|
|
835
821
|
u(Vo, "ReadableByteStreamControllerRespondInClosedState");
|
|
836
|
-
function Qo(n, o
|
|
837
|
-
if (Wn(n, o
|
|
822
|
+
function Qo(n, o, a) {
|
|
823
|
+
if (Wn(n, o, a), a.readerType === "none") {
|
|
838
824
|
qn(n, a), Sr(n);
|
|
839
825
|
return;
|
|
840
826
|
}
|
|
@@ -848,9 +834,9 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
848
834
|
a.bytesFilled -= p, gr(n._controlledReadableByteStream, a), Sr(n);
|
|
849
835
|
}
|
|
850
836
|
u(Qo, "ReadableByteStreamControllerRespondInReadableState");
|
|
851
|
-
function zn(n, o
|
|
837
|
+
function zn(n, o) {
|
|
852
838
|
const a = n._pendingPullIntos.peek();
|
|
853
|
-
_r(n), n._controlledReadableByteStream._state === "closed" ? Vo(n, a) : Qo(n, o
|
|
839
|
+
_r(n), n._controlledReadableByteStream._state === "closed" ? Vo(n, a) : Qo(n, o, a), Fe(n);
|
|
854
840
|
}
|
|
855
841
|
u(zn, "ReadableByteStreamControllerRespondInternal");
|
|
856
842
|
function He(n) {
|
|
@@ -858,8 +844,8 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
858
844
|
}
|
|
859
845
|
u(He, "ReadableByteStreamControllerShiftPendingPullInto");
|
|
860
846
|
function Yo(n) {
|
|
861
|
-
const o
|
|
862
|
-
return o
|
|
847
|
+
const o = n._controlledReadableByteStream;
|
|
848
|
+
return o._state !== "readable" || n._closeRequested || !n._started ? !1 : !!(mn(o) && Tt(o) > 0 || Tr(o) && Dn(o) > 0 || In(n) > 0);
|
|
863
849
|
}
|
|
864
850
|
u(Yo, "ReadableByteStreamControllerShouldCallPull");
|
|
865
851
|
function At(n) {
|
|
@@ -867,8 +853,8 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
867
853
|
}
|
|
868
854
|
u(At, "ReadableByteStreamControllerClearAlgorithms");
|
|
869
855
|
function ft(n) {
|
|
870
|
-
const o
|
|
871
|
-
if (!(n._closeRequested || o
|
|
856
|
+
const o = n._controlledReadableByteStream;
|
|
857
|
+
if (!(n._closeRequested || o._state !== "readable")) {
|
|
872
858
|
if (n._queueTotalSize > 0) {
|
|
873
859
|
n._closeRequested = !0;
|
|
874
860
|
return;
|
|
@@ -880,14 +866,14 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
880
866
|
throw te(n, p), p;
|
|
881
867
|
}
|
|
882
868
|
}
|
|
883
|
-
At(n), yt(o
|
|
869
|
+
At(n), yt(o);
|
|
884
870
|
}
|
|
885
871
|
}
|
|
886
872
|
u(ft, "ReadableByteStreamControllerClose");
|
|
887
|
-
function Bt(n, o
|
|
873
|
+
function Bt(n, o) {
|
|
888
874
|
const a = n._controlledReadableByteStream;
|
|
889
875
|
if (n._closeRequested || a._state !== "readable") return;
|
|
890
|
-
const { buffer: p, byteOffset: y, byteLength: _ } = o
|
|
876
|
+
const { buffer: p, byteOffset: y, byteLength: _ } = o;
|
|
891
877
|
if (Ee(p)) throw new TypeError("chunk's buffer is detached and so cannot be enqueued");
|
|
892
878
|
const S = we(p);
|
|
893
879
|
if (n._pendingPullIntos.length > 0) {
|
|
@@ -904,70 +890,70 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
904
890
|
Fe(n);
|
|
905
891
|
}
|
|
906
892
|
u(Bt, "ReadableByteStreamControllerEnqueue");
|
|
907
|
-
function te(n, o
|
|
893
|
+
function te(n, o) {
|
|
908
894
|
const a = n._controlledReadableByteStream;
|
|
909
|
-
a._state === "readable" && (En(n), Ae(n), At(n), fo(a, o
|
|
895
|
+
a._state === "readable" && (En(n), Ae(n), At(n), fo(a, o));
|
|
910
896
|
}
|
|
911
897
|
u(te, "ReadableByteStreamControllerError");
|
|
912
|
-
function Fn(n, o
|
|
898
|
+
function Fn(n, o) {
|
|
913
899
|
const a = n._queue.shift();
|
|
914
900
|
n._queueTotalSize -= a.byteLength, On(n);
|
|
915
901
|
const p = new Uint8Array(a.buffer, a.byteOffset, a.byteLength);
|
|
916
|
-
o
|
|
902
|
+
o._chunkSteps(p);
|
|
917
903
|
}
|
|
918
904
|
u(Fn, "ReadableByteStreamControllerFillReadRequestFromQueue");
|
|
919
905
|
function wr(n) {
|
|
920
906
|
if (n._byobRequest === null && n._pendingPullIntos.length > 0) {
|
|
921
|
-
const o
|
|
907
|
+
const o = n._pendingPullIntos.peek(), a = new Uint8Array(o.buffer, o.byteOffset + o.bytesFilled, o.byteLength - o.bytesFilled), p = Object.create(Re.prototype);
|
|
922
908
|
Zo(p, n, a), n._byobRequest = p;
|
|
923
909
|
}
|
|
924
910
|
return n._byobRequest;
|
|
925
911
|
}
|
|
926
912
|
u(wr, "ReadableByteStreamControllerGetBYOBRequest");
|
|
927
913
|
function In(n) {
|
|
928
|
-
const o
|
|
929
|
-
return o
|
|
914
|
+
const o = n._controlledReadableByteStream._state;
|
|
915
|
+
return o === "errored" ? null : o === "closed" ? 0 : n._strategyHWM - n._queueTotalSize;
|
|
930
916
|
}
|
|
931
917
|
u(In, "ReadableByteStreamControllerGetDesiredSize");
|
|
932
|
-
function qt(n, o
|
|
918
|
+
function qt(n, o) {
|
|
933
919
|
const a = n._pendingPullIntos.peek();
|
|
934
920
|
if (n._controlledReadableByteStream._state === "closed") {
|
|
935
|
-
if (o
|
|
921
|
+
if (o !== 0) throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");
|
|
936
922
|
} else {
|
|
937
|
-
if (o
|
|
938
|
-
if (a.bytesFilled + o
|
|
923
|
+
if (o === 0) throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");
|
|
924
|
+
if (a.bytesFilled + o > a.byteLength) throw new RangeError("bytesWritten out of range");
|
|
939
925
|
}
|
|
940
|
-
a.buffer = we(a.buffer), zn(n, o
|
|
926
|
+
a.buffer = we(a.buffer), zn(n, o);
|
|
941
927
|
}
|
|
942
928
|
u(qt, "ReadableByteStreamControllerRespond");
|
|
943
|
-
function kt(n, o
|
|
929
|
+
function kt(n, o) {
|
|
944
930
|
const a = n._pendingPullIntos.peek();
|
|
945
931
|
if (n._controlledReadableByteStream._state === "closed") {
|
|
946
|
-
if (o
|
|
947
|
-
} else if (o
|
|
948
|
-
if (a.byteOffset + a.bytesFilled !== o
|
|
949
|
-
if (a.bufferByteLength !== o
|
|
950
|
-
if (a.bytesFilled + o
|
|
951
|
-
const y = o
|
|
952
|
-
a.buffer = we(o
|
|
932
|
+
if (o.byteLength !== 0) throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream");
|
|
933
|
+
} else if (o.byteLength === 0) throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");
|
|
934
|
+
if (a.byteOffset + a.bytesFilled !== o.byteOffset) throw new RangeError("The region specified by view does not match byobRequest");
|
|
935
|
+
if (a.bufferByteLength !== o.buffer.byteLength) throw new RangeError("The buffer of view has different capacity than byobRequest");
|
|
936
|
+
if (a.bytesFilled + o.byteLength > a.byteLength) throw new RangeError("The region specified by view is larger than byobRequest");
|
|
937
|
+
const y = o.byteLength;
|
|
938
|
+
a.buffer = we(o.buffer), zn(n, y);
|
|
953
939
|
}
|
|
954
940
|
u(kt, "ReadableByteStreamControllerRespondWithNewView");
|
|
955
|
-
function jn(n, o
|
|
956
|
-
o
|
|
957
|
-
v(k(a()), () => (o
|
|
941
|
+
function jn(n, o, a, p, y, _, S) {
|
|
942
|
+
o._controlledReadableByteStream = n, o._pullAgain = !1, o._pulling = !1, o._byobRequest = null, o._queue = o._queueTotalSize = void 0, Ae(o), o._closeRequested = !1, o._started = !1, o._strategyHWM = _, o._pullAlgorithm = p, o._cancelAlgorithm = y, o._autoAllocateChunkSize = S, o._pendingPullIntos = new Q(), n._readableStreamController = o;
|
|
943
|
+
v(k(a()), () => (o._started = !0, Fe(o), null), (q) => (te(o, q), null));
|
|
958
944
|
}
|
|
959
945
|
u(jn, "SetUpReadableByteStreamController");
|
|
960
|
-
function Go(n, o
|
|
946
|
+
function Go(n, o, a) {
|
|
961
947
|
const p = Object.create(ie.prototype);
|
|
962
948
|
let y, _, S;
|
|
963
|
-
o
|
|
964
|
-
const C = o
|
|
949
|
+
o.start !== void 0 ? y = u(() => o.start(p), "startAlgorithm") : y = u(() => {}, "startAlgorithm"), o.pull !== void 0 ? _ = u(() => o.pull(p), "pullAlgorithm") : _ = u(() => k(void 0), "pullAlgorithm"), o.cancel !== void 0 ? S = u((q) => o.cancel(q), "cancelAlgorithm") : S = u(() => k(void 0), "cancelAlgorithm");
|
|
950
|
+
const C = o.autoAllocateChunkSize;
|
|
965
951
|
if (C === 0) throw new TypeError("autoAllocateChunkSize must be greater than 0");
|
|
966
952
|
jn(n, p, y, _, S, a, C);
|
|
967
953
|
}
|
|
968
954
|
u(Go, "SetUpReadableByteStreamControllerFromUnderlyingSource");
|
|
969
|
-
function Zo(n, o
|
|
970
|
-
n._associatedReadableByteStreamController = o
|
|
955
|
+
function Zo(n, o, a) {
|
|
956
|
+
n._associatedReadableByteStreamController = o, n._view = a;
|
|
971
957
|
}
|
|
972
958
|
u(Zo, "SetUpReadableStreamBYOBRequest");
|
|
973
959
|
function Rr(n) {
|
|
@@ -978,34 +964,34 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
978
964
|
return /* @__PURE__ */ new TypeError(`ReadableByteStreamController.prototype.${n} can only be used on a ReadableByteStreamController`);
|
|
979
965
|
}
|
|
980
966
|
u(ct, "byteStreamControllerBrandCheckException");
|
|
981
|
-
function Ko(n, o
|
|
982
|
-
ce(n, o
|
|
967
|
+
function Ko(n, o) {
|
|
968
|
+
ce(n, o);
|
|
983
969
|
const a = n?.mode;
|
|
984
|
-
return { mode: a === void 0 ? void 0 : Jo(a, `${o
|
|
970
|
+
return { mode: a === void 0 ? void 0 : Jo(a, `${o} has member 'mode' that`) };
|
|
985
971
|
}
|
|
986
972
|
u(Ko, "convertReaderOptions");
|
|
987
|
-
function Jo(n, o
|
|
988
|
-
if (n = `${n}`, n !== "byob") throw new TypeError(`${o
|
|
973
|
+
function Jo(n, o) {
|
|
974
|
+
if (n = `${n}`, n !== "byob") throw new TypeError(`${o} '${n}' is not a valid enumeration value for ReadableStreamReaderMode`);
|
|
989
975
|
return n;
|
|
990
976
|
}
|
|
991
977
|
u(Jo, "convertReadableStreamReaderMode");
|
|
992
|
-
function Xo(n, o
|
|
978
|
+
function Xo(n, o) {
|
|
993
979
|
var a;
|
|
994
|
-
ce(n, o
|
|
995
|
-
return { min: ur((a = n?.min) !== null && a !== void 0 ? a : 1, `${o
|
|
980
|
+
ce(n, o);
|
|
981
|
+
return { min: ur((a = n?.min) !== null && a !== void 0 ? a : 1, `${o} has member 'min' that`) };
|
|
996
982
|
}
|
|
997
983
|
u(Xo, "convertByobReadOptions");
|
|
998
984
|
function Ln(n) {
|
|
999
985
|
return new he(n);
|
|
1000
986
|
}
|
|
1001
987
|
u(Ln, "AcquireReadableStreamBYOBReader");
|
|
1002
|
-
function $n(n, o
|
|
1003
|
-
n._reader._readIntoRequests.push(o
|
|
988
|
+
function $n(n, o) {
|
|
989
|
+
n._reader._readIntoRequests.push(o);
|
|
1004
990
|
}
|
|
1005
991
|
u($n, "ReadableStreamAddReadIntoRequest");
|
|
1006
|
-
function ei(n, o
|
|
992
|
+
function ei(n, o, a) {
|
|
1007
993
|
const y = n._reader._readIntoRequests.shift();
|
|
1008
|
-
a ? y._closeSteps(o
|
|
994
|
+
a ? y._closeSteps(o) : y._chunkSteps(o);
|
|
1009
995
|
}
|
|
1010
996
|
u(ei, "ReadableStreamFulfillReadIntoRequest");
|
|
1011
997
|
function Dn(n) {
|
|
@@ -1013,28 +999,28 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1013
999
|
}
|
|
1014
1000
|
u(Dn, "ReadableStreamGetNumReadIntoRequests");
|
|
1015
1001
|
function Tr(n) {
|
|
1016
|
-
const o
|
|
1017
|
-
return !(o
|
|
1002
|
+
const o = n._reader;
|
|
1003
|
+
return !(o === void 0 || !Ie(o));
|
|
1018
1004
|
}
|
|
1019
1005
|
u(Tr, "ReadableStreamHasBYOBReader");
|
|
1020
1006
|
const Hr = class Hr$1 {
|
|
1021
|
-
constructor(o
|
|
1022
|
-
if (Se(o
|
|
1023
|
-
if (!ze(o
|
|
1024
|
-
ln(this, o
|
|
1007
|
+
constructor(o) {
|
|
1008
|
+
if (Se(o, 1, "ReadableStreamBYOBReader"), lr(o, "First parameter"), ke(o)) throw new TypeError("This stream has already been locked for exclusive reading by another reader");
|
|
1009
|
+
if (!ze(o._readableStreamController)) throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");
|
|
1010
|
+
ln(this, o), this._readIntoRequests = new Q();
|
|
1025
1011
|
}
|
|
1026
1012
|
get closed() {
|
|
1027
1013
|
return Ie(this) ? this._closedPromise : T(Wt("closed"));
|
|
1028
1014
|
}
|
|
1029
|
-
cancel(o
|
|
1030
|
-
return Ie(this) ? this._ownerReadableStream === void 0 ? T(Rt("cancel")) : nr(this, o
|
|
1015
|
+
cancel(o = void 0) {
|
|
1016
|
+
return Ie(this) ? this._ownerReadableStream === void 0 ? T(Rt("cancel")) : nr(this, o) : T(Wt("cancel"));
|
|
1031
1017
|
}
|
|
1032
|
-
read(o
|
|
1018
|
+
read(o, a = {}) {
|
|
1033
1019
|
if (!Ie(this)) return T(Wt("read"));
|
|
1034
|
-
if (!ArrayBuffer.isView(o
|
|
1035
|
-
if (o
|
|
1036
|
-
if (o
|
|
1037
|
-
if (Ee(o
|
|
1020
|
+
if (!ArrayBuffer.isView(o)) return T(/* @__PURE__ */ new TypeError("view must be an array buffer view"));
|
|
1021
|
+
if (o.byteLength === 0) return T(/* @__PURE__ */ new TypeError("view must have non-zero byteLength"));
|
|
1022
|
+
if (o.buffer.byteLength === 0) return T(/* @__PURE__ */ new TypeError("view's buffer must have non-zero byteLength"));
|
|
1023
|
+
if (Ee(o.buffer)) return T(/* @__PURE__ */ new TypeError("view's buffer has been detached"));
|
|
1038
1024
|
let p;
|
|
1039
1025
|
try {
|
|
1040
1026
|
p = Xo(a, "options");
|
|
@@ -1043,15 +1029,15 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1043
1029
|
}
|
|
1044
1030
|
const y = p.min;
|
|
1045
1031
|
if (y === 0) return T(/* @__PURE__ */ new TypeError("options.min must be greater than 0"));
|
|
1046
|
-
if (xo(o
|
|
1047
|
-
if (y > o
|
|
1048
|
-
} else if (y > o
|
|
1032
|
+
if (xo(o)) {
|
|
1033
|
+
if (y > o.byteLength) return T(/* @__PURE__ */ new RangeError("options.min must be less than or equal to view's byteLength"));
|
|
1034
|
+
} else if (y > o.length) return T(/* @__PURE__ */ new RangeError("options.min must be less than or equal to view's length"));
|
|
1049
1035
|
if (this._ownerReadableStream === void 0) return T(Rt("read from"));
|
|
1050
1036
|
let _, S;
|
|
1051
1037
|
const C = I((P, W) => {
|
|
1052
1038
|
_ = P, S = W;
|
|
1053
1039
|
});
|
|
1054
|
-
return Mn(this, o
|
|
1040
|
+
return Mn(this, o, y, {
|
|
1055
1041
|
_chunkSteps: u((P) => _({
|
|
1056
1042
|
value: P,
|
|
1057
1043
|
done: !1
|
|
@@ -1083,9 +1069,9 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1083
1069
|
return !b(n) || !Object.prototype.hasOwnProperty.call(n, "_readIntoRequests") ? !1 : n instanceof he;
|
|
1084
1070
|
}
|
|
1085
1071
|
u(Ie, "IsReadableStreamBYOBReader");
|
|
1086
|
-
function Mn(n, o
|
|
1072
|
+
function Mn(n, o, a, p) {
|
|
1087
1073
|
const y = n._ownerReadableStream;
|
|
1088
|
-
y._disturbed = !0, y._state === "errored" ? p._errorSteps(y._storedError) : Ho(y._readableStreamController, o
|
|
1074
|
+
y._disturbed = !0, y._state === "errored" ? p._errorSteps(y._storedError) : Ho(y._readableStreamController, o, a, p);
|
|
1089
1075
|
}
|
|
1090
1076
|
u(Mn, "ReadableStreamBYOBReaderRead");
|
|
1091
1077
|
function ti(n) {
|
|
@@ -1093,10 +1079,10 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1093
1079
|
xn(n, /* @__PURE__ */ new TypeError("Reader was released"));
|
|
1094
1080
|
}
|
|
1095
1081
|
u(ti, "ReadableStreamBYOBReaderRelease");
|
|
1096
|
-
function xn(n, o
|
|
1082
|
+
function xn(n, o) {
|
|
1097
1083
|
const a = n._readIntoRequests;
|
|
1098
1084
|
n._readIntoRequests = new Q(), a.forEach((p) => {
|
|
1099
|
-
p._errorSteps(o
|
|
1085
|
+
p._errorSteps(o);
|
|
1100
1086
|
});
|
|
1101
1087
|
}
|
|
1102
1088
|
u(xn, "ReadableStreamBYOBReaderErrorReadIntoRequests");
|
|
@@ -1104,61 +1090,61 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1104
1090
|
return /* @__PURE__ */ new TypeError(`ReadableStreamBYOBReader.prototype.${n} can only be used on a ReadableStreamBYOBReader`);
|
|
1105
1091
|
}
|
|
1106
1092
|
u(Wt, "byobReaderBrandCheckException");
|
|
1107
|
-
function dt(n, o
|
|
1093
|
+
function dt(n, o) {
|
|
1108
1094
|
const { highWaterMark: a } = n;
|
|
1109
|
-
if (a === void 0) return o
|
|
1095
|
+
if (a === void 0) return o;
|
|
1110
1096
|
if (wn(a) || a < 0) throw new RangeError("Invalid highWaterMark");
|
|
1111
1097
|
return a;
|
|
1112
1098
|
}
|
|
1113
1099
|
u(dt, "ExtractHighWaterMark");
|
|
1114
1100
|
function Ot(n) {
|
|
1115
|
-
const { size: o
|
|
1116
|
-
return o
|
|
1101
|
+
const { size: o } = n;
|
|
1102
|
+
return o || (() => 1);
|
|
1117
1103
|
}
|
|
1118
1104
|
u(Ot, "ExtractSizeAlgorithm");
|
|
1119
|
-
function zt(n, o
|
|
1120
|
-
ce(n, o
|
|
1105
|
+
function zt(n, o) {
|
|
1106
|
+
ce(n, o);
|
|
1121
1107
|
const a = n?.highWaterMark, p = n?.size;
|
|
1122
1108
|
return {
|
|
1123
1109
|
highWaterMark: a === void 0 ? void 0 : ar(a),
|
|
1124
|
-
size: p === void 0 ? void 0 : ri(p, `${o
|
|
1110
|
+
size: p === void 0 ? void 0 : ri(p, `${o} has member 'size' that`)
|
|
1125
1111
|
};
|
|
1126
1112
|
}
|
|
1127
1113
|
u(zt, "convertQueuingStrategy");
|
|
1128
|
-
function ri(n, o
|
|
1129
|
-
return ee(n, o
|
|
1114
|
+
function ri(n, o) {
|
|
1115
|
+
return ee(n, o), (a) => ar(n(a));
|
|
1130
1116
|
}
|
|
1131
1117
|
u(ri, "convertQueuingStrategySize");
|
|
1132
|
-
function ni(n, o
|
|
1133
|
-
ce(n, o
|
|
1118
|
+
function ni(n, o) {
|
|
1119
|
+
ce(n, o);
|
|
1134
1120
|
const a = n?.abort, p = n?.close, y = n?.start, _ = n?.type, S = n?.write;
|
|
1135
1121
|
return {
|
|
1136
|
-
abort: a === void 0 ? void 0 : oi(a, n, `${o
|
|
1137
|
-
close: p === void 0 ? void 0 : ii(p, n, `${o
|
|
1138
|
-
start: y === void 0 ? void 0 : si(y, n, `${o
|
|
1139
|
-
write: S === void 0 ? void 0 : ai(S, n, `${o
|
|
1122
|
+
abort: a === void 0 ? void 0 : oi(a, n, `${o} has member 'abort' that`),
|
|
1123
|
+
close: p === void 0 ? void 0 : ii(p, n, `${o} has member 'close' that`),
|
|
1124
|
+
start: y === void 0 ? void 0 : si(y, n, `${o} has member 'start' that`),
|
|
1125
|
+
write: S === void 0 ? void 0 : ai(S, n, `${o} has member 'write' that`),
|
|
1140
1126
|
type: _
|
|
1141
1127
|
};
|
|
1142
1128
|
}
|
|
1143
1129
|
u(ni, "convertUnderlyingSink");
|
|
1144
|
-
function oi(n, o
|
|
1145
|
-
return ee(n, a), (p) => H(n, o
|
|
1130
|
+
function oi(n, o, a) {
|
|
1131
|
+
return ee(n, a), (p) => H(n, o, [p]);
|
|
1146
1132
|
}
|
|
1147
1133
|
u(oi, "convertUnderlyingSinkAbortCallback");
|
|
1148
|
-
function ii(n, o
|
|
1149
|
-
return ee(n, a), () => H(n, o
|
|
1134
|
+
function ii(n, o, a) {
|
|
1135
|
+
return ee(n, a), () => H(n, o, []);
|
|
1150
1136
|
}
|
|
1151
1137
|
u(ii, "convertUnderlyingSinkCloseCallback");
|
|
1152
|
-
function si(n, o
|
|
1153
|
-
return ee(n, a), (p) => M(n, o
|
|
1138
|
+
function si(n, o, a) {
|
|
1139
|
+
return ee(n, a), (p) => M(n, o, [p]);
|
|
1154
1140
|
}
|
|
1155
1141
|
u(si, "convertUnderlyingSinkStartCallback");
|
|
1156
|
-
function ai(n, o
|
|
1157
|
-
return ee(n, a), (p, y) => H(n, o
|
|
1142
|
+
function ai(n, o, a) {
|
|
1143
|
+
return ee(n, a), (p, y) => H(n, o, [p, y]);
|
|
1158
1144
|
}
|
|
1159
1145
|
u(ai, "convertUnderlyingSinkWriteCallback");
|
|
1160
|
-
function Un(n, o
|
|
1161
|
-
if (!Ve(n)) throw new TypeError(`${o
|
|
1146
|
+
function Un(n, o) {
|
|
1147
|
+
if (!Ve(n)) throw new TypeError(`${o} is not a WritableStream.`);
|
|
1162
1148
|
}
|
|
1163
1149
|
u(Un, "assertWritableStream");
|
|
1164
1150
|
function ui(n) {
|
|
@@ -1176,9 +1162,9 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1176
1162
|
}
|
|
1177
1163
|
u(fi, "createAbortController");
|
|
1178
1164
|
const Vr = class Vr$1 {
|
|
1179
|
-
constructor(o
|
|
1180
|
-
o
|
|
1181
|
-
const p = zt(a, "Second parameter"), y = ni(o
|
|
1165
|
+
constructor(o = {}, a = {}) {
|
|
1166
|
+
o === void 0 ? o = null : hn(o, "First parameter");
|
|
1167
|
+
const p = zt(a, "Second parameter"), y = ni(o, "First parameter");
|
|
1182
1168
|
if (Hn(this), y.type !== void 0) throw new RangeError("Invalid type is specified");
|
|
1183
1169
|
const S = Ot(p), C = dt(p, 1);
|
|
1184
1170
|
Ci(this, y, C, S);
|
|
@@ -1187,8 +1173,8 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1187
1173
|
if (!Ve(this)) throw $t("locked");
|
|
1188
1174
|
return Qe(this);
|
|
1189
1175
|
}
|
|
1190
|
-
abort(o
|
|
1191
|
-
return Ve(this) ? Qe(this) ? T(/* @__PURE__ */ new TypeError("Cannot abort a stream that already has a writer")) : Ft(this, o
|
|
1176
|
+
abort(o = void 0) {
|
|
1177
|
+
return Ve(this) ? Qe(this) ? T(/* @__PURE__ */ new TypeError("Cannot abort a stream that already has a writer")) : Ft(this, o) : T($t("abort"));
|
|
1192
1178
|
}
|
|
1193
1179
|
close() {
|
|
1194
1180
|
return Ve(this) ? Qe(this) ? T(/* @__PURE__ */ new TypeError("Cannot close a stream that already has a writer")) : be(this) ? T(/* @__PURE__ */ new TypeError("Cannot close an already-closing stream")) : Vn(this) : T($t("close"));
|
|
@@ -1213,10 +1199,10 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1213
1199
|
return new se(n);
|
|
1214
1200
|
}
|
|
1215
1201
|
u(Nn, "AcquireWritableStreamDefaultWriter");
|
|
1216
|
-
function ci(n, o
|
|
1202
|
+
function ci(n, o, a, p, y = 1, _ = () => 1) {
|
|
1217
1203
|
const S = Object.create(pe.prototype);
|
|
1218
1204
|
Hn(S);
|
|
1219
|
-
return Jn(S, Object.create(Be.prototype), n, o
|
|
1205
|
+
return Jn(S, Object.create(Be.prototype), n, o, a, p, y, _), S;
|
|
1220
1206
|
}
|
|
1221
1207
|
u(ci, "CreateWritableStream");
|
|
1222
1208
|
function Hn(n) {
|
|
@@ -1231,37 +1217,37 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1231
1217
|
return n._writer !== void 0;
|
|
1232
1218
|
}
|
|
1233
1219
|
u(Qe, "IsWritableStreamLocked");
|
|
1234
|
-
function Ft(n, o
|
|
1220
|
+
function Ft(n, o) {
|
|
1235
1221
|
var a;
|
|
1236
1222
|
if (n._state === "closed" || n._state === "errored") return k(void 0);
|
|
1237
|
-
n._writableStreamController._abortReason = o
|
|
1223
|
+
n._writableStreamController._abortReason = o, (a = n._writableStreamController._abortController) === null || a === void 0 || a.abort(o);
|
|
1238
1224
|
const p = n._state;
|
|
1239
1225
|
if (p === "closed" || p === "errored") return k(void 0);
|
|
1240
1226
|
if (n._pendingAbortRequest !== void 0) return n._pendingAbortRequest._promise;
|
|
1241
1227
|
let y = !1;
|
|
1242
|
-
p === "erroring" && (y = !0, o
|
|
1228
|
+
p === "erroring" && (y = !0, o = void 0);
|
|
1243
1229
|
const _ = I((S, C) => {
|
|
1244
1230
|
n._pendingAbortRequest = {
|
|
1245
1231
|
_promise: void 0,
|
|
1246
1232
|
_resolve: S,
|
|
1247
1233
|
_reject: C,
|
|
1248
|
-
_reason: o
|
|
1234
|
+
_reason: o,
|
|
1249
1235
|
_wasAlreadyErroring: y
|
|
1250
1236
|
};
|
|
1251
1237
|
});
|
|
1252
|
-
return n._pendingAbortRequest._promise = _, y || Pr(n, o
|
|
1238
|
+
return n._pendingAbortRequest._promise = _, y || Pr(n, o), _;
|
|
1253
1239
|
}
|
|
1254
1240
|
u(Ft, "WritableStreamAbort");
|
|
1255
1241
|
function Vn(n) {
|
|
1256
|
-
const o
|
|
1257
|
-
if (o
|
|
1242
|
+
const o = n._state;
|
|
1243
|
+
if (o === "closed" || o === "errored") return T(/* @__PURE__ */ new TypeError(`The stream (in ${o} state) is not in the writable state and cannot be closed`));
|
|
1258
1244
|
const a = I((y, _) => {
|
|
1259
1245
|
n._closeRequest = {
|
|
1260
1246
|
_resolve: y,
|
|
1261
1247
|
_reject: _
|
|
1262
1248
|
};
|
|
1263
1249
|
}), p = n._writer;
|
|
1264
|
-
return p !== void 0 && n._backpressure && o
|
|
1250
|
+
return p !== void 0 && n._backpressure && o === "writable" && Or(p), Pi(n._writableStreamController), a;
|
|
1265
1251
|
}
|
|
1266
1252
|
u(Vn, "WritableStreamClose");
|
|
1267
1253
|
function di(n) {
|
|
@@ -1274,33 +1260,33 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1274
1260
|
});
|
|
1275
1261
|
}
|
|
1276
1262
|
u(di, "WritableStreamAddWriteRequest");
|
|
1277
|
-
function Cr(n, o
|
|
1263
|
+
function Cr(n, o) {
|
|
1278
1264
|
if (n._state === "writable") {
|
|
1279
|
-
Pr(n, o
|
|
1265
|
+
Pr(n, o);
|
|
1280
1266
|
return;
|
|
1281
1267
|
}
|
|
1282
1268
|
vr(n);
|
|
1283
1269
|
}
|
|
1284
1270
|
u(Cr, "WritableStreamDealWithRejection");
|
|
1285
|
-
function Pr(n, o
|
|
1271
|
+
function Pr(n, o) {
|
|
1286
1272
|
const a = n._writableStreamController;
|
|
1287
|
-
n._state = "erroring", n._storedError = o
|
|
1273
|
+
n._state = "erroring", n._storedError = o;
|
|
1288
1274
|
const p = n._writer;
|
|
1289
|
-
p !== void 0 && Yn(p, o
|
|
1275
|
+
p !== void 0 && Yn(p, o), !yi(n) && a._started && vr(n);
|
|
1290
1276
|
}
|
|
1291
1277
|
u(Pr, "WritableStreamStartErroring");
|
|
1292
1278
|
function vr(n) {
|
|
1293
1279
|
n._state = "errored", n._writableStreamController[un]();
|
|
1294
|
-
const o
|
|
1280
|
+
const o = n._storedError;
|
|
1295
1281
|
if (n._writeRequests.forEach((y) => {
|
|
1296
|
-
y._reject(o
|
|
1282
|
+
y._reject(o);
|
|
1297
1283
|
}), n._writeRequests = new Q(), n._pendingAbortRequest === void 0) {
|
|
1298
1284
|
It(n);
|
|
1299
1285
|
return;
|
|
1300
1286
|
}
|
|
1301
1287
|
const a = n._pendingAbortRequest;
|
|
1302
1288
|
if (n._pendingAbortRequest = void 0, a._wasAlreadyErroring) {
|
|
1303
|
-
a._reject(o
|
|
1289
|
+
a._reject(o), It(n);
|
|
1304
1290
|
return;
|
|
1305
1291
|
}
|
|
1306
1292
|
v(n._writableStreamController[wt](a._reason), () => (a._resolve(), It(n), null), (y) => (a._reject(y), It(n), null));
|
|
@@ -1310,8 +1296,8 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1310
1296
|
n._inFlightWriteRequest._resolve(void 0), n._inFlightWriteRequest = void 0;
|
|
1311
1297
|
}
|
|
1312
1298
|
u(hi, "WritableStreamFinishInFlightWrite");
|
|
1313
|
-
function pi(n, o
|
|
1314
|
-
n._inFlightWriteRequest._reject(o
|
|
1299
|
+
function pi(n, o) {
|
|
1300
|
+
n._inFlightWriteRequest._reject(o), n._inFlightWriteRequest = void 0, Cr(n, o);
|
|
1315
1301
|
}
|
|
1316
1302
|
u(pi, "WritableStreamFinishInFlightWriteWithError");
|
|
1317
1303
|
function bi(n) {
|
|
@@ -1320,8 +1306,8 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1320
1306
|
a !== void 0 && ro(a);
|
|
1321
1307
|
}
|
|
1322
1308
|
u(bi, "WritableStreamFinishInFlightClose");
|
|
1323
|
-
function mi(n, o
|
|
1324
|
-
n._inFlightCloseRequest._reject(o
|
|
1309
|
+
function mi(n, o) {
|
|
1310
|
+
n._inFlightCloseRequest._reject(o), n._inFlightCloseRequest = void 0, n._pendingAbortRequest !== void 0 && (n._pendingAbortRequest._reject(o), n._pendingAbortRequest = void 0), Cr(n, o);
|
|
1325
1311
|
}
|
|
1326
1312
|
u(mi, "WritableStreamFinishInFlightCloseWithError");
|
|
1327
1313
|
function be(n) {
|
|
@@ -1342,25 +1328,25 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1342
1328
|
u(_i, "WritableStreamMarkFirstWriteRequestInFlight");
|
|
1343
1329
|
function It(n) {
|
|
1344
1330
|
n._closeRequest !== void 0 && (n._closeRequest._reject(n._storedError), n._closeRequest = void 0);
|
|
1345
|
-
const o
|
|
1346
|
-
o
|
|
1331
|
+
const o = n._writer;
|
|
1332
|
+
o !== void 0 && kr(o, n._storedError);
|
|
1347
1333
|
}
|
|
1348
1334
|
u(It, "WritableStreamRejectCloseAndClosedPromiseIfNeeded");
|
|
1349
|
-
function Er(n, o
|
|
1335
|
+
function Er(n, o) {
|
|
1350
1336
|
const a = n._writer;
|
|
1351
|
-
a !== void 0 && o
|
|
1337
|
+
a !== void 0 && o !== n._backpressure && (o ? Wi(a) : Or(a)), n._backpressure = o;
|
|
1352
1338
|
}
|
|
1353
1339
|
u(Er, "WritableStreamUpdateBackpressure");
|
|
1354
1340
|
const Qr = class Qr$1 {
|
|
1355
|
-
constructor(o
|
|
1356
|
-
if (Se(o
|
|
1357
|
-
this._ownerWritableStream = o
|
|
1358
|
-
const a = o
|
|
1359
|
-
if (a === "writable") !be(o
|
|
1360
|
-
else if (a === "erroring") Wr(this, o
|
|
1341
|
+
constructor(o) {
|
|
1342
|
+
if (Se(o, 1, "WritableStreamDefaultWriter"), Un(o, "First parameter"), Qe(o)) throw new TypeError("This stream has already been locked for exclusive writing by another writer");
|
|
1343
|
+
this._ownerWritableStream = o, o._writer = this;
|
|
1344
|
+
const a = o._state;
|
|
1345
|
+
if (a === "writable") !be(o) && o._backpressure ? Mt(this) : no(this), Dt(this);
|
|
1346
|
+
else if (a === "erroring") Wr(this, o._storedError), Dt(this);
|
|
1361
1347
|
else if (a === "closed") no(this), qi(this);
|
|
1362
1348
|
else {
|
|
1363
|
-
const p = o
|
|
1349
|
+
const p = o._storedError;
|
|
1364
1350
|
Wr(this, p), to(this, p);
|
|
1365
1351
|
}
|
|
1366
1352
|
}
|
|
@@ -1375,20 +1361,20 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1375
1361
|
get ready() {
|
|
1376
1362
|
return je(this) ? this._readyPromise : T(Le("ready"));
|
|
1377
1363
|
}
|
|
1378
|
-
abort(o
|
|
1379
|
-
return je(this) ? this._ownerWritableStream === void 0 ? T(pt("abort")) : Si(this, o
|
|
1364
|
+
abort(o = void 0) {
|
|
1365
|
+
return je(this) ? this._ownerWritableStream === void 0 ? T(pt("abort")) : Si(this, o) : T(Le("abort"));
|
|
1380
1366
|
}
|
|
1381
1367
|
close() {
|
|
1382
1368
|
if (!je(this)) return T(Le("close"));
|
|
1383
|
-
const o
|
|
1384
|
-
return o
|
|
1369
|
+
const o = this._ownerWritableStream;
|
|
1370
|
+
return o === void 0 ? T(pt("close")) : be(o) ? T(/* @__PURE__ */ new TypeError("Cannot close an already-closing stream")) : Qn(this);
|
|
1385
1371
|
}
|
|
1386
1372
|
releaseLock() {
|
|
1387
1373
|
if (!je(this)) throw Le("releaseLock");
|
|
1388
1374
|
this._ownerWritableStream !== void 0 && Gn(this);
|
|
1389
1375
|
}
|
|
1390
|
-
write(o
|
|
1391
|
-
return je(this) ? this._ownerWritableStream === void 0 ? T(pt("write to")) : Zn(this, o
|
|
1376
|
+
write(o = void 0) {
|
|
1377
|
+
return je(this) ? this._ownerWritableStream === void 0 ? T(pt("write to")) : Zn(this, o) : T(Le("write"));
|
|
1392
1378
|
}
|
|
1393
1379
|
};
|
|
1394
1380
|
u(Qr, "WritableStreamDefaultWriter");
|
|
@@ -1409,48 +1395,48 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1409
1395
|
return !b(n) || !Object.prototype.hasOwnProperty.call(n, "_ownerWritableStream") ? !1 : n instanceof se;
|
|
1410
1396
|
}
|
|
1411
1397
|
u(je, "IsWritableStreamDefaultWriter");
|
|
1412
|
-
function Si(n, o
|
|
1398
|
+
function Si(n, o) {
|
|
1413
1399
|
const a = n._ownerWritableStream;
|
|
1414
|
-
return Ft(a, o
|
|
1400
|
+
return Ft(a, o);
|
|
1415
1401
|
}
|
|
1416
1402
|
u(Si, "WritableStreamDefaultWriterAbort");
|
|
1417
1403
|
function Qn(n) {
|
|
1418
|
-
const o
|
|
1419
|
-
return Vn(o
|
|
1404
|
+
const o = n._ownerWritableStream;
|
|
1405
|
+
return Vn(o);
|
|
1420
1406
|
}
|
|
1421
1407
|
u(Qn, "WritableStreamDefaultWriterClose");
|
|
1422
1408
|
function wi(n) {
|
|
1423
|
-
const o
|
|
1424
|
-
return be(o
|
|
1409
|
+
const o = n._ownerWritableStream, a = o._state;
|
|
1410
|
+
return be(o) || a === "closed" ? k(void 0) : a === "errored" ? T(o._storedError) : Qn(n);
|
|
1425
1411
|
}
|
|
1426
1412
|
u(wi, "WritableStreamDefaultWriterCloseWithErrorPropagation");
|
|
1427
|
-
function Ri(n, o
|
|
1428
|
-
n._closedPromiseState === "pending" ? kr(n, o
|
|
1413
|
+
function Ri(n, o) {
|
|
1414
|
+
n._closedPromiseState === "pending" ? kr(n, o) : ki(n, o);
|
|
1429
1415
|
}
|
|
1430
1416
|
u(Ri, "WritableStreamDefaultWriterEnsureClosedPromiseRejected");
|
|
1431
|
-
function Yn(n, o
|
|
1432
|
-
n._readyPromiseState === "pending" ? oo(n, o
|
|
1417
|
+
function Yn(n, o) {
|
|
1418
|
+
n._readyPromiseState === "pending" ? oo(n, o) : Oi(n, o);
|
|
1433
1419
|
}
|
|
1434
1420
|
u(Yn, "WritableStreamDefaultWriterEnsureReadyPromiseRejected");
|
|
1435
1421
|
function Ti(n) {
|
|
1436
|
-
const o
|
|
1437
|
-
return a === "errored" || a === "erroring" ? null : a === "closed" ? 0 : Xn(o
|
|
1422
|
+
const o = n._ownerWritableStream, a = o._state;
|
|
1423
|
+
return a === "errored" || a === "erroring" ? null : a === "closed" ? 0 : Xn(o._writableStreamController);
|
|
1438
1424
|
}
|
|
1439
1425
|
u(Ti, "WritableStreamDefaultWriterGetDesiredSize");
|
|
1440
1426
|
function Gn(n) {
|
|
1441
|
-
const o
|
|
1442
|
-
Yn(n, a), Ri(n, a), o
|
|
1427
|
+
const o = n._ownerWritableStream, a = /* @__PURE__ */ new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");
|
|
1428
|
+
Yn(n, a), Ri(n, a), o._writer = void 0, n._ownerWritableStream = void 0;
|
|
1443
1429
|
}
|
|
1444
1430
|
u(Gn, "WritableStreamDefaultWriterRelease");
|
|
1445
|
-
function Zn(n, o
|
|
1446
|
-
const a = n._ownerWritableStream, p = a._writableStreamController, y = vi(p, o
|
|
1431
|
+
function Zn(n, o) {
|
|
1432
|
+
const a = n._ownerWritableStream, p = a._writableStreamController, y = vi(p, o);
|
|
1447
1433
|
if (a !== n._ownerWritableStream) return T(pt("write to"));
|
|
1448
1434
|
const _ = a._state;
|
|
1449
1435
|
if (_ === "errored") return T(a._storedError);
|
|
1450
1436
|
if (be(a) || _ === "closed") return T(/* @__PURE__ */ new TypeError("The stream is closing or closed and cannot be written to"));
|
|
1451
1437
|
if (_ === "erroring") return T(a._storedError);
|
|
1452
1438
|
const S = di(a);
|
|
1453
|
-
return Ei(p, o
|
|
1439
|
+
return Ei(p, o, y), S;
|
|
1454
1440
|
}
|
|
1455
1441
|
u(Zn, "WritableStreamDefaultWriterWrite");
|
|
1456
1442
|
const Kn = {}, Yr = class Yr$1 {
|
|
@@ -1466,12 +1452,12 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1466
1452
|
if (this._abortController === void 0) throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");
|
|
1467
1453
|
return this._abortController.signal;
|
|
1468
1454
|
}
|
|
1469
|
-
error(o
|
|
1455
|
+
error(o = void 0) {
|
|
1470
1456
|
if (!Ar(this)) throw qr("error");
|
|
1471
|
-
this._controlledWritableStream._state === "writable" && eo(this, o
|
|
1457
|
+
this._controlledWritableStream._state === "writable" && eo(this, o);
|
|
1472
1458
|
}
|
|
1473
|
-
[wt](o
|
|
1474
|
-
const a = this._abortAlgorithm(o
|
|
1459
|
+
[wt](o) {
|
|
1460
|
+
const a = this._abortAlgorithm(o);
|
|
1475
1461
|
return jt(this), a;
|
|
1476
1462
|
}
|
|
1477
1463
|
[un]() {
|
|
@@ -1492,16 +1478,16 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1492
1478
|
return !b(n) || !Object.prototype.hasOwnProperty.call(n, "_controlledWritableStream") ? !1 : n instanceof Be;
|
|
1493
1479
|
}
|
|
1494
1480
|
u(Ar, "IsWritableStreamDefaultController");
|
|
1495
|
-
function Jn(n, o
|
|
1496
|
-
o
|
|
1497
|
-
Er(n, Br(o
|
|
1498
|
-
v(k(a()), () => (o
|
|
1481
|
+
function Jn(n, o, a, p, y, _, S, C) {
|
|
1482
|
+
o._controlledWritableStream = n, n._writableStreamController = o, o._queue = void 0, o._queueTotalSize = void 0, Ae(o), o._abortReason = void 0, o._abortController = fi(), o._started = !1, o._strategySizeAlgorithm = C, o._strategyHWM = S, o._writeAlgorithm = p, o._closeAlgorithm = y, o._abortAlgorithm = _;
|
|
1483
|
+
Er(n, Br(o));
|
|
1484
|
+
v(k(a()), () => (o._started = !0, Lt(o), null), (O) => (o._started = !0, Cr(n, O), null));
|
|
1499
1485
|
}
|
|
1500
1486
|
u(Jn, "SetUpWritableStreamDefaultController");
|
|
1501
|
-
function Ci(n, o
|
|
1487
|
+
function Ci(n, o, a, p) {
|
|
1502
1488
|
const y = Object.create(Be.prototype);
|
|
1503
1489
|
let _, S, C, q;
|
|
1504
|
-
o
|
|
1490
|
+
o.start !== void 0 ? _ = u(() => o.start(y), "startAlgorithm") : _ = u(() => {}, "startAlgorithm"), o.write !== void 0 ? S = u((P) => o.write(P, y), "writeAlgorithm") : S = u(() => k(void 0), "writeAlgorithm"), o.close !== void 0 ? C = u(() => o.close(), "closeAlgorithm") : C = u(() => k(void 0), "closeAlgorithm"), o.abort !== void 0 ? q = u((P) => o.abort(P), "abortAlgorithm") : q = u(() => k(void 0), "abortAlgorithm"), Jn(n, y, _, S, C, q, a, p);
|
|
1505
1491
|
}
|
|
1506
1492
|
u(Ci, "SetUpWritableStreamDefaultControllerFromUnderlyingSink");
|
|
1507
1493
|
function jt(n) {
|
|
@@ -1512,9 +1498,9 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1512
1498
|
mr(n, Kn, 0), Lt(n);
|
|
1513
1499
|
}
|
|
1514
1500
|
u(Pi, "WritableStreamDefaultControllerClose");
|
|
1515
|
-
function vi(n, o
|
|
1501
|
+
function vi(n, o) {
|
|
1516
1502
|
try {
|
|
1517
|
-
return n._strategySizeAlgorithm(o
|
|
1503
|
+
return n._strategySizeAlgorithm(o);
|
|
1518
1504
|
} catch (a) {
|
|
1519
1505
|
return ht(n, a), 1;
|
|
1520
1506
|
}
|
|
@@ -1524,9 +1510,9 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1524
1510
|
return n._strategyHWM - n._queueTotalSize;
|
|
1525
1511
|
}
|
|
1526
1512
|
u(Xn, "WritableStreamDefaultControllerGetDesiredSize");
|
|
1527
|
-
function Ei(n, o
|
|
1513
|
+
function Ei(n, o, a) {
|
|
1528
1514
|
try {
|
|
1529
|
-
mr(n, o
|
|
1515
|
+
mr(n, o, a);
|
|
1530
1516
|
} catch (y) {
|
|
1531
1517
|
ht(n, y);
|
|
1532
1518
|
return;
|
|
@@ -1537,10 +1523,10 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1537
1523
|
}
|
|
1538
1524
|
u(Ei, "WritableStreamDefaultControllerWrite");
|
|
1539
1525
|
function Lt(n) {
|
|
1540
|
-
const o
|
|
1541
|
-
if (!n._started || o
|
|
1542
|
-
if (o
|
|
1543
|
-
vr(o
|
|
1526
|
+
const o = n._controlledWritableStream;
|
|
1527
|
+
if (!n._started || o._inFlightWriteRequest !== void 0) return;
|
|
1528
|
+
if (o._state === "erroring") {
|
|
1529
|
+
vr(o);
|
|
1544
1530
|
return;
|
|
1545
1531
|
}
|
|
1546
1532
|
if (n._queue.length === 0) return;
|
|
@@ -1548,21 +1534,21 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1548
1534
|
p === Kn ? Ai(n) : Bi(n, p);
|
|
1549
1535
|
}
|
|
1550
1536
|
u(Lt, "WritableStreamDefaultControllerAdvanceQueueIfNeeded");
|
|
1551
|
-
function ht(n, o
|
|
1552
|
-
n._controlledWritableStream._state === "writable" && eo(n, o
|
|
1537
|
+
function ht(n, o) {
|
|
1538
|
+
n._controlledWritableStream._state === "writable" && eo(n, o);
|
|
1553
1539
|
}
|
|
1554
1540
|
u(ht, "WritableStreamDefaultControllerErrorIfNeeded");
|
|
1555
1541
|
function Ai(n) {
|
|
1556
|
-
const o
|
|
1557
|
-
gi(o
|
|
1542
|
+
const o = n._controlledWritableStream;
|
|
1543
|
+
gi(o), br(n);
|
|
1558
1544
|
const a = n._closeAlgorithm();
|
|
1559
|
-
jt(n), v(a, () => (bi(o
|
|
1545
|
+
jt(n), v(a, () => (bi(o), null), (p) => (mi(o, p), null));
|
|
1560
1546
|
}
|
|
1561
1547
|
u(Ai, "WritableStreamDefaultControllerProcessClose");
|
|
1562
|
-
function Bi(n, o
|
|
1548
|
+
function Bi(n, o) {
|
|
1563
1549
|
const a = n._controlledWritableStream;
|
|
1564
1550
|
_i(a);
|
|
1565
|
-
v(n._writeAlgorithm(o
|
|
1551
|
+
v(n._writeAlgorithm(o), () => {
|
|
1566
1552
|
hi(a);
|
|
1567
1553
|
const y = a._state;
|
|
1568
1554
|
if (br(n), !be(a) && y === "writable") Er(a, Br(n));
|
|
@@ -1574,9 +1560,9 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1574
1560
|
return Xn(n) <= 0;
|
|
1575
1561
|
}
|
|
1576
1562
|
u(Br, "WritableStreamDefaultControllerGetBackpressure");
|
|
1577
|
-
function eo(n, o
|
|
1563
|
+
function eo(n, o) {
|
|
1578
1564
|
const a = n._controlledWritableStream;
|
|
1579
|
-
jt(n), Pr(a, o
|
|
1565
|
+
jt(n), Pr(a, o);
|
|
1580
1566
|
}
|
|
1581
1567
|
u(eo, "WritableStreamDefaultControllerError");
|
|
1582
1568
|
function $t(n) {
|
|
@@ -1596,25 +1582,25 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1596
1582
|
}
|
|
1597
1583
|
u(pt, "defaultWriterLockException");
|
|
1598
1584
|
function Dt(n) {
|
|
1599
|
-
n._closedPromise = I((o
|
|
1600
|
-
n._closedPromise_resolve = o
|
|
1585
|
+
n._closedPromise = I((o, a) => {
|
|
1586
|
+
n._closedPromise_resolve = o, n._closedPromise_reject = a, n._closedPromiseState = "pending";
|
|
1601
1587
|
});
|
|
1602
1588
|
}
|
|
1603
1589
|
u(Dt, "defaultWriterClosedPromiseInitialize");
|
|
1604
|
-
function to(n, o
|
|
1605
|
-
Dt(n), kr(n, o
|
|
1590
|
+
function to(n, o) {
|
|
1591
|
+
Dt(n), kr(n, o);
|
|
1606
1592
|
}
|
|
1607
1593
|
u(to, "defaultWriterClosedPromiseInitializeAsRejected");
|
|
1608
1594
|
function qi(n) {
|
|
1609
1595
|
Dt(n), ro(n);
|
|
1610
1596
|
}
|
|
1611
1597
|
u(qi, "defaultWriterClosedPromiseInitializeAsResolved");
|
|
1612
|
-
function kr(n, o
|
|
1613
|
-
n._closedPromise_reject !== void 0 && (J(n._closedPromise), n._closedPromise_reject(o
|
|
1598
|
+
function kr(n, o) {
|
|
1599
|
+
n._closedPromise_reject !== void 0 && (J(n._closedPromise), n._closedPromise_reject(o), n._closedPromise_resolve = void 0, n._closedPromise_reject = void 0, n._closedPromiseState = "rejected");
|
|
1614
1600
|
}
|
|
1615
1601
|
u(kr, "defaultWriterClosedPromiseReject");
|
|
1616
|
-
function ki(n, o
|
|
1617
|
-
to(n, o
|
|
1602
|
+
function ki(n, o) {
|
|
1603
|
+
to(n, o);
|
|
1618
1604
|
}
|
|
1619
1605
|
u(ki, "defaultWriterClosedPromiseResetToRejected");
|
|
1620
1606
|
function ro(n) {
|
|
@@ -1622,29 +1608,29 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1622
1608
|
}
|
|
1623
1609
|
u(ro, "defaultWriterClosedPromiseResolve");
|
|
1624
1610
|
function Mt(n) {
|
|
1625
|
-
n._readyPromise = I((o
|
|
1626
|
-
n._readyPromise_resolve = o
|
|
1611
|
+
n._readyPromise = I((o, a) => {
|
|
1612
|
+
n._readyPromise_resolve = o, n._readyPromise_reject = a;
|
|
1627
1613
|
}), n._readyPromiseState = "pending";
|
|
1628
1614
|
}
|
|
1629
1615
|
u(Mt, "defaultWriterReadyPromiseInitialize");
|
|
1630
|
-
function Wr(n, o
|
|
1631
|
-
Mt(n), oo(n, o
|
|
1616
|
+
function Wr(n, o) {
|
|
1617
|
+
Mt(n), oo(n, o);
|
|
1632
1618
|
}
|
|
1633
1619
|
u(Wr, "defaultWriterReadyPromiseInitializeAsRejected");
|
|
1634
1620
|
function no(n) {
|
|
1635
1621
|
Mt(n), Or(n);
|
|
1636
1622
|
}
|
|
1637
1623
|
u(no, "defaultWriterReadyPromiseInitializeAsResolved");
|
|
1638
|
-
function oo(n, o
|
|
1639
|
-
n._readyPromise_reject !== void 0 && (J(n._readyPromise), n._readyPromise_reject(o
|
|
1624
|
+
function oo(n, o) {
|
|
1625
|
+
n._readyPromise_reject !== void 0 && (J(n._readyPromise), n._readyPromise_reject(o), n._readyPromise_resolve = void 0, n._readyPromise_reject = void 0, n._readyPromiseState = "rejected");
|
|
1640
1626
|
}
|
|
1641
1627
|
u(oo, "defaultWriterReadyPromiseReject");
|
|
1642
1628
|
function Wi(n) {
|
|
1643
1629
|
Mt(n);
|
|
1644
1630
|
}
|
|
1645
1631
|
u(Wi, "defaultWriterReadyPromiseReset");
|
|
1646
|
-
function Oi(n, o
|
|
1647
|
-
Wr(n, o
|
|
1632
|
+
function Oi(n, o) {
|
|
1633
|
+
Wr(n, o);
|
|
1648
1634
|
}
|
|
1649
1635
|
u(Oi, "defaultWriterReadyPromiseResetToRejected");
|
|
1650
1636
|
function Or(n) {
|
|
@@ -1684,8 +1670,8 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1684
1670
|
}
|
|
1685
1671
|
u(ji, "createPolyfill");
|
|
1686
1672
|
const Li = Ii() || ji();
|
|
1687
|
-
function io(n, o
|
|
1688
|
-
const S = Ne(n), C = Nn(o
|
|
1673
|
+
function io(n, o, a, p, y, _) {
|
|
1674
|
+
const S = Ne(n), C = Nn(o);
|
|
1689
1675
|
n._disturbed = !0;
|
|
1690
1676
|
let q = !1, P = k(void 0);
|
|
1691
1677
|
return I((W, O) => {
|
|
@@ -1693,7 +1679,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1693
1679
|
if (_ !== void 0) {
|
|
1694
1680
|
if (j = u(() => {
|
|
1695
1681
|
const E = _.reason !== void 0 ? _.reason : new Li("Aborted", "AbortError"), F = [];
|
|
1696
|
-
p || F.push(() => o
|
|
1682
|
+
p || F.push(() => o._state === "writable" ? Ft(o, E) : k(void 0)), y || F.push(() => n._state === "readable" ? le(n, E) : k(void 0)), Z(() => Promise.all(F.map((L) => L())), !0, E);
|
|
1697
1683
|
}, "abortAlgorithm"), _.aborted) {
|
|
1698
1684
|
j();
|
|
1699
1685
|
return;
|
|
@@ -1720,7 +1706,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1720
1706
|
});
|
|
1721
1707
|
}));
|
|
1722
1708
|
}
|
|
1723
|
-
if (u(et, "pipeStep"), Te(n, S._closedPromise, (E) => (p ? re(!0, E) : Z(() => Ft(o
|
|
1709
|
+
if (u(et, "pipeStep"), Te(n, S._closedPromise, (E) => (p ? re(!0, E) : Z(() => Ft(o, E), !0, E), null)), Te(o, C._closedPromise, (E) => (y ? re(!0, E) : Z(() => le(n, E), !0, E), null)), G(n, S._closedPromise, () => (a ? re() : Z(() => wi(C)), null)), be(o) || o._state === "closed") {
|
|
1724
1710
|
const E = /* @__PURE__ */ new TypeError("the destination writable stream closed before all data could be piped to it");
|
|
1725
1711
|
y ? re(!0, E) : Z(() => le(n, E), !0, E);
|
|
1726
1712
|
}
|
|
@@ -1740,7 +1726,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1740
1726
|
u(G, "isOrBecomesClosed");
|
|
1741
1727
|
function Z(E, F, L) {
|
|
1742
1728
|
if (q) return;
|
|
1743
|
-
q = !0, o
|
|
1729
|
+
q = !0, o._state === "writable" && !be(o) ? K(We(), X) : X();
|
|
1744
1730
|
function X() {
|
|
1745
1731
|
return v(E(), () => Ce(F, L), (tt) => Ce(!0, tt)), null;
|
|
1746
1732
|
}
|
|
@@ -1748,7 +1734,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1748
1734
|
}
|
|
1749
1735
|
u(Z, "shutdownWithAction");
|
|
1750
1736
|
function re(E, F) {
|
|
1751
|
-
q || (q = !0, o
|
|
1737
|
+
q || (q = !0, o._state === "writable" && !be(o) ? K(We(), () => Ce(E, F)) : Ce(E, F));
|
|
1752
1738
|
}
|
|
1753
1739
|
u(re, "shutdown");
|
|
1754
1740
|
function Ce(E, F) {
|
|
@@ -1771,26 +1757,26 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1771
1757
|
if (!Ge(this)) throw new TypeError("The stream is not in a state that permits close");
|
|
1772
1758
|
$e(this);
|
|
1773
1759
|
}
|
|
1774
|
-
enqueue(o
|
|
1760
|
+
enqueue(o = void 0) {
|
|
1775
1761
|
if (!xt(this)) throw Nt("enqueue");
|
|
1776
1762
|
if (!Ge(this)) throw new TypeError("The stream is not in a state that permits enqueue");
|
|
1777
|
-
return Ye(this, o
|
|
1763
|
+
return Ye(this, o);
|
|
1778
1764
|
}
|
|
1779
|
-
error(o
|
|
1765
|
+
error(o = void 0) {
|
|
1780
1766
|
if (!xt(this)) throw Nt("error");
|
|
1781
|
-
ue(this, o
|
|
1767
|
+
ue(this, o);
|
|
1782
1768
|
}
|
|
1783
|
-
[er](o
|
|
1769
|
+
[er](o) {
|
|
1784
1770
|
Ae(this);
|
|
1785
|
-
const a = this._cancelAlgorithm(o
|
|
1771
|
+
const a = this._cancelAlgorithm(o);
|
|
1786
1772
|
return Ut(this), a;
|
|
1787
1773
|
}
|
|
1788
|
-
[tr](o
|
|
1774
|
+
[tr](o) {
|
|
1789
1775
|
const a = this._controlledReadableStream;
|
|
1790
1776
|
if (this._queue.length > 0) {
|
|
1791
1777
|
const p = br(this);
|
|
1792
|
-
this._closeRequested && this._queue.length === 0 ? (Ut(this), yt(a)) : bt(this), o
|
|
1793
|
-
} else bn(a, o
|
|
1778
|
+
this._closeRequested && this._queue.length === 0 ? (Ut(this), yt(a)) : bt(this), o._chunkSteps(p);
|
|
1779
|
+
} else bn(a, o), bt(this);
|
|
1794
1780
|
}
|
|
1795
1781
|
[rr]() {}
|
|
1796
1782
|
};
|
|
@@ -1820,8 +1806,8 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1820
1806
|
}
|
|
1821
1807
|
u(bt, "ReadableStreamDefaultControllerCallPullIfNeeded");
|
|
1822
1808
|
function so(n) {
|
|
1823
|
-
const o
|
|
1824
|
-
return !Ge(n) || !n._started ? !1 : !!(ke(o
|
|
1809
|
+
const o = n._controlledReadableStream;
|
|
1810
|
+
return !Ge(n) || !n._started ? !1 : !!(ke(o) && Tt(o) > 0 || Fr(n) > 0);
|
|
1825
1811
|
}
|
|
1826
1812
|
u(so, "ReadableStreamDefaultControllerShouldCallPull");
|
|
1827
1813
|
function Ut(n) {
|
|
@@ -1830,23 +1816,23 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1830
1816
|
u(Ut, "ReadableStreamDefaultControllerClearAlgorithms");
|
|
1831
1817
|
function $e(n) {
|
|
1832
1818
|
if (!Ge(n)) return;
|
|
1833
|
-
const o
|
|
1834
|
-
n._closeRequested = !0, n._queue.length === 0 && (Ut(n), yt(o
|
|
1819
|
+
const o = n._controlledReadableStream;
|
|
1820
|
+
n._closeRequested = !0, n._queue.length === 0 && (Ut(n), yt(o));
|
|
1835
1821
|
}
|
|
1836
1822
|
u($e, "ReadableStreamDefaultControllerClose");
|
|
1837
|
-
function Ye(n, o
|
|
1823
|
+
function Ye(n, o) {
|
|
1838
1824
|
if (!Ge(n)) return;
|
|
1839
1825
|
const a = n._controlledReadableStream;
|
|
1840
|
-
if (ke(a) && Tt(a) > 0) fr(a, o
|
|
1826
|
+
if (ke(a) && Tt(a) > 0) fr(a, o, !1);
|
|
1841
1827
|
else {
|
|
1842
1828
|
let p;
|
|
1843
1829
|
try {
|
|
1844
|
-
p = n._strategySizeAlgorithm(o
|
|
1830
|
+
p = n._strategySizeAlgorithm(o);
|
|
1845
1831
|
} catch (y) {
|
|
1846
1832
|
throw ue(n, y), y;
|
|
1847
1833
|
}
|
|
1848
1834
|
try {
|
|
1849
|
-
mr(n, o
|
|
1835
|
+
mr(n, o, p);
|
|
1850
1836
|
} catch (y) {
|
|
1851
1837
|
throw ue(n, y), y;
|
|
1852
1838
|
}
|
|
@@ -1854,14 +1840,14 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1854
1840
|
bt(n);
|
|
1855
1841
|
}
|
|
1856
1842
|
u(Ye, "ReadableStreamDefaultControllerEnqueue");
|
|
1857
|
-
function ue(n, o
|
|
1843
|
+
function ue(n, o) {
|
|
1858
1844
|
const a = n._controlledReadableStream;
|
|
1859
|
-
a._state === "readable" && (Ae(n), Ut(n), fo(a, o
|
|
1845
|
+
a._state === "readable" && (Ae(n), Ut(n), fo(a, o));
|
|
1860
1846
|
}
|
|
1861
1847
|
u(ue, "ReadableStreamDefaultControllerError");
|
|
1862
1848
|
function Fr(n) {
|
|
1863
|
-
const o
|
|
1864
|
-
return o
|
|
1849
|
+
const o = n._controlledReadableStream._state;
|
|
1850
|
+
return o === "errored" ? null : o === "closed" ? 0 : n._strategyHWM - n._queueTotalSize;
|
|
1865
1851
|
}
|
|
1866
1852
|
u(Fr, "ReadableStreamDefaultControllerGetDesiredSize");
|
|
1867
1853
|
function $i(n) {
|
|
@@ -1869,30 +1855,30 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1869
1855
|
}
|
|
1870
1856
|
u($i, "ReadableStreamDefaultControllerHasBackpressure");
|
|
1871
1857
|
function Ge(n) {
|
|
1872
|
-
const o
|
|
1873
|
-
return !n._closeRequested && o
|
|
1858
|
+
const o = n._controlledReadableStream._state;
|
|
1859
|
+
return !n._closeRequested && o === "readable";
|
|
1874
1860
|
}
|
|
1875
1861
|
u(Ge, "ReadableStreamDefaultControllerCanCloseOrEnqueue");
|
|
1876
|
-
function ao(n, o
|
|
1877
|
-
o
|
|
1878
|
-
v(k(a()), () => (o
|
|
1862
|
+
function ao(n, o, a, p, y, _, S) {
|
|
1863
|
+
o._controlledReadableStream = n, o._queue = void 0, o._queueTotalSize = void 0, Ae(o), o._started = !1, o._closeRequested = !1, o._pullAgain = !1, o._pulling = !1, o._strategySizeAlgorithm = S, o._strategyHWM = _, o._pullAlgorithm = p, o._cancelAlgorithm = y, n._readableStreamController = o;
|
|
1864
|
+
v(k(a()), () => (o._started = !0, bt(o), null), (q) => (ue(o, q), null));
|
|
1879
1865
|
}
|
|
1880
1866
|
u(ao, "SetUpReadableStreamDefaultController");
|
|
1881
|
-
function Di(n, o
|
|
1867
|
+
function Di(n, o, a, p) {
|
|
1882
1868
|
const y = Object.create(ae.prototype);
|
|
1883
1869
|
let _, S, C;
|
|
1884
|
-
o
|
|
1870
|
+
o.start !== void 0 ? _ = u(() => o.start(y), "startAlgorithm") : _ = u(() => {}, "startAlgorithm"), o.pull !== void 0 ? S = u(() => o.pull(y), "pullAlgorithm") : S = u(() => k(void 0), "pullAlgorithm"), o.cancel !== void 0 ? C = u((q) => o.cancel(q), "cancelAlgorithm") : C = u(() => k(void 0), "cancelAlgorithm"), ao(n, y, _, S, C, a, p);
|
|
1885
1871
|
}
|
|
1886
1872
|
u(Di, "SetUpReadableStreamDefaultControllerFromUnderlyingSource");
|
|
1887
1873
|
function Nt(n) {
|
|
1888
1874
|
return /* @__PURE__ */ new TypeError(`ReadableStreamDefaultController.prototype.${n} can only be used on a ReadableStreamDefaultController`);
|
|
1889
1875
|
}
|
|
1890
1876
|
u(Nt, "defaultControllerBrandCheckException$1");
|
|
1891
|
-
function Mi(n, o
|
|
1877
|
+
function Mi(n, o) {
|
|
1892
1878
|
return ze(n._readableStreamController) ? Ui(n) : xi(n);
|
|
1893
1879
|
}
|
|
1894
1880
|
u(Mi, "ReadableStreamTee");
|
|
1895
|
-
function xi(n, o
|
|
1881
|
+
function xi(n, o) {
|
|
1896
1882
|
const a = Ne(n);
|
|
1897
1883
|
let p = !1, y = !1, _ = !1, S = !1, C, q, P, W, O;
|
|
1898
1884
|
const j = I((G) => {
|
|
@@ -1937,16 +1923,16 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1937
1923
|
}
|
|
1938
1924
|
u(xi, "ReadableStreamDefaultTee");
|
|
1939
1925
|
function Ui(n) {
|
|
1940
|
-
let o
|
|
1926
|
+
let o = Ne(n), a = !1, p = !1, y = !1, _ = !1, S = !1, C, q, P, W, O;
|
|
1941
1927
|
const j = I((E) => {
|
|
1942
1928
|
O = E;
|
|
1943
1929
|
});
|
|
1944
1930
|
function fe(E) {
|
|
1945
|
-
U(E._closedPromise, (F) => (E !== o
|
|
1931
|
+
U(E._closedPromise, (F) => (E !== o || (te(P._readableStreamController, F), te(W._readableStreamController, F), (!_ || !S) && O(void 0)), null));
|
|
1946
1932
|
}
|
|
1947
1933
|
u(fe, "forwardReaderError");
|
|
1948
1934
|
function et() {
|
|
1949
|
-
Ie(o
|
|
1935
|
+
Ie(o) && (_e(o), o = Ne(n), fe(o)), ut(o, {
|
|
1950
1936
|
_chunkSteps: u((F) => {
|
|
1951
1937
|
ge(() => {
|
|
1952
1938
|
p = !1, y = !1;
|
|
@@ -1971,9 +1957,9 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1971
1957
|
}
|
|
1972
1958
|
u(et, "pullWithDefaultReader");
|
|
1973
1959
|
function We(E, F) {
|
|
1974
|
-
ve(o
|
|
1960
|
+
ve(o) && (_e(o), o = Ln(n), fe(o));
|
|
1975
1961
|
const L = F ? W : P, X = F ? P : W;
|
|
1976
|
-
Mn(o
|
|
1962
|
+
Mn(o, E, 1, {
|
|
1977
1963
|
_chunkSteps: u((rt) => {
|
|
1978
1964
|
ge(() => {
|
|
1979
1965
|
p = !1, y = !1;
|
|
@@ -2034,7 +2020,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2034
2020
|
}
|
|
2035
2021
|
u(re, "cancel2Algorithm");
|
|
2036
2022
|
function Ce() {}
|
|
2037
|
-
return u(Ce, "startAlgorithm"), P = lo(Ce, Te, Z), W = lo(Ce, G, re), fe(o
|
|
2023
|
+
return u(Ce, "startAlgorithm"), P = lo(Ce, Te, Z), W = lo(Ce, G, re), fe(o), [P, W];
|
|
2038
2024
|
}
|
|
2039
2025
|
u(Ui, "ReadableByteStreamTee");
|
|
2040
2026
|
function Ni(n) {
|
|
@@ -2046,7 +2032,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2046
2032
|
}
|
|
2047
2033
|
u(Hi, "ReadableStreamFrom");
|
|
2048
2034
|
function Vi(n) {
|
|
2049
|
-
let o
|
|
2035
|
+
let o;
|
|
2050
2036
|
const a = Cn(n, "async"), p = g;
|
|
2051
2037
|
function y() {
|
|
2052
2038
|
let S;
|
|
@@ -2057,10 +2043,10 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2057
2043
|
}
|
|
2058
2044
|
return N(k(S), (q) => {
|
|
2059
2045
|
if (!b(q)) throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");
|
|
2060
|
-
if (Lo(q)) $e(o
|
|
2046
|
+
if (Lo(q)) $e(o._readableStreamController);
|
|
2061
2047
|
else {
|
|
2062
2048
|
const W = $o(q);
|
|
2063
|
-
Ye(o
|
|
2049
|
+
Ye(o._readableStreamController, W);
|
|
2064
2050
|
}
|
|
2065
2051
|
});
|
|
2066
2052
|
}
|
|
@@ -2084,11 +2070,11 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2084
2070
|
if (!b(O)) throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object");
|
|
2085
2071
|
});
|
|
2086
2072
|
}
|
|
2087
|
-
return u(_, "cancelAlgorithm"), o
|
|
2073
|
+
return u(_, "cancelAlgorithm"), o = mt(p, y, _, 0), o;
|
|
2088
2074
|
}
|
|
2089
2075
|
u(Vi, "ReadableStreamFromIterable");
|
|
2090
2076
|
function Qi(n) {
|
|
2091
|
-
let o
|
|
2077
|
+
let o;
|
|
2092
2078
|
const a = g;
|
|
2093
2079
|
function p() {
|
|
2094
2080
|
let _;
|
|
@@ -2099,10 +2085,10 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2099
2085
|
}
|
|
2100
2086
|
return N(_, (S) => {
|
|
2101
2087
|
if (!b(S)) throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");
|
|
2102
|
-
if (S.done) $e(o
|
|
2088
|
+
if (S.done) $e(o._readableStreamController);
|
|
2103
2089
|
else {
|
|
2104
2090
|
const C = S.value;
|
|
2105
|
-
Ye(o
|
|
2091
|
+
Ye(o._readableStreamController, C);
|
|
2106
2092
|
}
|
|
2107
2093
|
});
|
|
2108
2094
|
}
|
|
@@ -2114,46 +2100,46 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2114
2100
|
return T(S);
|
|
2115
2101
|
}
|
|
2116
2102
|
}
|
|
2117
|
-
return u(y, "cancelAlgorithm"), o
|
|
2103
|
+
return u(y, "cancelAlgorithm"), o = mt(a, p, y, 0), o;
|
|
2118
2104
|
}
|
|
2119
2105
|
u(Qi, "ReadableStreamFromDefaultReader");
|
|
2120
|
-
function Yi(n, o
|
|
2121
|
-
ce(n, o
|
|
2106
|
+
function Yi(n, o) {
|
|
2107
|
+
ce(n, o);
|
|
2122
2108
|
const a = n, p = a?.autoAllocateChunkSize, y = a?.cancel, _ = a?.pull, S = a?.start, C = a?.type;
|
|
2123
2109
|
return {
|
|
2124
|
-
autoAllocateChunkSize: p === void 0 ? void 0 : ur(p, `${o
|
|
2125
|
-
cancel: y === void 0 ? void 0 : Gi(y, a, `${o
|
|
2126
|
-
pull: _ === void 0 ? void 0 : Zi(_, a, `${o
|
|
2127
|
-
start: S === void 0 ? void 0 : Ki(S, a, `${o
|
|
2128
|
-
type: C === void 0 ? void 0 : Ji(C, `${o
|
|
2110
|
+
autoAllocateChunkSize: p === void 0 ? void 0 : ur(p, `${o} has member 'autoAllocateChunkSize' that`),
|
|
2111
|
+
cancel: y === void 0 ? void 0 : Gi(y, a, `${o} has member 'cancel' that`),
|
|
2112
|
+
pull: _ === void 0 ? void 0 : Zi(_, a, `${o} has member 'pull' that`),
|
|
2113
|
+
start: S === void 0 ? void 0 : Ki(S, a, `${o} has member 'start' that`),
|
|
2114
|
+
type: C === void 0 ? void 0 : Ji(C, `${o} has member 'type' that`)
|
|
2129
2115
|
};
|
|
2130
2116
|
}
|
|
2131
2117
|
u(Yi, "convertUnderlyingDefaultOrByteSource");
|
|
2132
|
-
function Gi(n, o
|
|
2133
|
-
return ee(n, a), (p) => H(n, o
|
|
2118
|
+
function Gi(n, o, a) {
|
|
2119
|
+
return ee(n, a), (p) => H(n, o, [p]);
|
|
2134
2120
|
}
|
|
2135
2121
|
u(Gi, "convertUnderlyingSourceCancelCallback");
|
|
2136
|
-
function Zi(n, o
|
|
2137
|
-
return ee(n, a), (p) => H(n, o
|
|
2122
|
+
function Zi(n, o, a) {
|
|
2123
|
+
return ee(n, a), (p) => H(n, o, [p]);
|
|
2138
2124
|
}
|
|
2139
2125
|
u(Zi, "convertUnderlyingSourcePullCallback");
|
|
2140
|
-
function Ki(n, o
|
|
2141
|
-
return ee(n, a), (p) => M(n, o
|
|
2126
|
+
function Ki(n, o, a) {
|
|
2127
|
+
return ee(n, a), (p) => M(n, o, [p]);
|
|
2142
2128
|
}
|
|
2143
2129
|
u(Ki, "convertUnderlyingSourceStartCallback");
|
|
2144
|
-
function Ji(n, o
|
|
2145
|
-
if (n = `${n}`, n !== "bytes") throw new TypeError(`${o
|
|
2130
|
+
function Ji(n, o) {
|
|
2131
|
+
if (n = `${n}`, n !== "bytes") throw new TypeError(`${o} '${n}' is not a valid enumeration value for ReadableStreamType`);
|
|
2146
2132
|
return n;
|
|
2147
2133
|
}
|
|
2148
2134
|
u(Ji, "convertReadableStreamType");
|
|
2149
|
-
function Xi(n, o
|
|
2150
|
-
return ce(n, o
|
|
2135
|
+
function Xi(n, o) {
|
|
2136
|
+
return ce(n, o), { preventCancel: !!n?.preventCancel };
|
|
2151
2137
|
}
|
|
2152
2138
|
u(Xi, "convertIteratorOptions");
|
|
2153
|
-
function uo(n, o
|
|
2154
|
-
ce(n, o
|
|
2139
|
+
function uo(n, o) {
|
|
2140
|
+
ce(n, o);
|
|
2155
2141
|
const a = n?.preventAbort, p = n?.preventCancel, y = n?.preventClose, _ = n?.signal;
|
|
2156
|
-
return _ !== void 0 && es(_, `${o
|
|
2142
|
+
return _ !== void 0 && es(_, `${o} has member 'signal' that`), {
|
|
2157
2143
|
preventAbort: !!a,
|
|
2158
2144
|
preventCancel: !!p,
|
|
2159
2145
|
preventClose: !!y,
|
|
@@ -2161,25 +2147,25 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2161
2147
|
};
|
|
2162
2148
|
}
|
|
2163
2149
|
u(uo, "convertPipeOptions");
|
|
2164
|
-
function es(n, o
|
|
2165
|
-
if (!ui(n)) throw new TypeError(`${o
|
|
2150
|
+
function es(n, o) {
|
|
2151
|
+
if (!ui(n)) throw new TypeError(`${o} is not an AbortSignal.`);
|
|
2166
2152
|
}
|
|
2167
2153
|
u(es, "assertAbortSignal");
|
|
2168
|
-
function ts(n, o
|
|
2169
|
-
ce(n, o
|
|
2154
|
+
function ts(n, o) {
|
|
2155
|
+
ce(n, o);
|
|
2170
2156
|
const a = n?.readable;
|
|
2171
|
-
sr(a, "readable", "ReadableWritablePair"), lr(a, `${o
|
|
2157
|
+
sr(a, "readable", "ReadableWritablePair"), lr(a, `${o} has member 'readable' that`);
|
|
2172
2158
|
const p = n?.writable;
|
|
2173
|
-
return sr(p, "writable", "ReadableWritablePair"), Un(p, `${o
|
|
2159
|
+
return sr(p, "writable", "ReadableWritablePair"), Un(p, `${o} has member 'writable' that`), {
|
|
2174
2160
|
readable: a,
|
|
2175
2161
|
writable: p
|
|
2176
2162
|
};
|
|
2177
2163
|
}
|
|
2178
2164
|
u(ts, "convertReadableWritablePair");
|
|
2179
2165
|
const Zr = class Zr$1 {
|
|
2180
|
-
constructor(o
|
|
2181
|
-
o
|
|
2182
|
-
const p = zt(a, "Second parameter"), y = Yi(o
|
|
2166
|
+
constructor(o = {}, a = {}) {
|
|
2167
|
+
o === void 0 ? o = null : hn(o, "First parameter");
|
|
2168
|
+
const p = zt(a, "Second parameter"), y = Yi(o, "First parameter");
|
|
2183
2169
|
if (Ir(this), y.type === "bytes") {
|
|
2184
2170
|
if (p.size !== void 0) throw new RangeError("The strategy for a byte stream cannot have a size function");
|
|
2185
2171
|
const _ = dt(p, 0);
|
|
@@ -2193,47 +2179,47 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2193
2179
|
if (!qe(this)) throw De("locked");
|
|
2194
2180
|
return ke(this);
|
|
2195
2181
|
}
|
|
2196
|
-
cancel(o
|
|
2197
|
-
return qe(this) ? ke(this) ? T(/* @__PURE__ */ new TypeError("Cannot cancel a stream that already has a reader")) : le(this, o
|
|
2182
|
+
cancel(o = void 0) {
|
|
2183
|
+
return qe(this) ? ke(this) ? T(/* @__PURE__ */ new TypeError("Cannot cancel a stream that already has a reader")) : le(this, o) : T(De("cancel"));
|
|
2198
2184
|
}
|
|
2199
|
-
getReader(o
|
|
2185
|
+
getReader(o = void 0) {
|
|
2200
2186
|
if (!qe(this)) throw De("getReader");
|
|
2201
|
-
return Ko(o
|
|
2187
|
+
return Ko(o, "First parameter").mode === void 0 ? Ne(this) : Ln(this);
|
|
2202
2188
|
}
|
|
2203
|
-
pipeThrough(o
|
|
2189
|
+
pipeThrough(o, a = {}) {
|
|
2204
2190
|
if (!qe(this)) throw De("pipeThrough");
|
|
2205
|
-
Se(o
|
|
2206
|
-
const p = ts(o
|
|
2191
|
+
Se(o, 1, "pipeThrough");
|
|
2192
|
+
const p = ts(o, "First parameter"), y = uo(a, "Second parameter");
|
|
2207
2193
|
if (ke(this)) throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");
|
|
2208
2194
|
if (Qe(p.writable)) throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");
|
|
2209
2195
|
return J(io(this, p.writable, y.preventClose, y.preventAbort, y.preventCancel, y.signal)), p.readable;
|
|
2210
2196
|
}
|
|
2211
|
-
pipeTo(o
|
|
2197
|
+
pipeTo(o, a = {}) {
|
|
2212
2198
|
if (!qe(this)) return T(De("pipeTo"));
|
|
2213
|
-
if (o
|
|
2214
|
-
if (!Ve(o
|
|
2199
|
+
if (o === void 0) return T("Parameter 1 is required in 'pipeTo'.");
|
|
2200
|
+
if (!Ve(o)) return T(/* @__PURE__ */ new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));
|
|
2215
2201
|
let p;
|
|
2216
2202
|
try {
|
|
2217
2203
|
p = uo(a, "Second parameter");
|
|
2218
2204
|
} catch (y) {
|
|
2219
2205
|
return T(y);
|
|
2220
2206
|
}
|
|
2221
|
-
return ke(this) ? T(/* @__PURE__ */ new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")) : Qe(o
|
|
2207
|
+
return ke(this) ? T(/* @__PURE__ */ new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")) : Qe(o) ? T(/* @__PURE__ */ new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")) : io(this, o, p.preventClose, p.preventAbort, p.preventCancel, p.signal);
|
|
2222
2208
|
}
|
|
2223
2209
|
tee() {
|
|
2224
2210
|
if (!qe(this)) throw De("tee");
|
|
2225
2211
|
return lt(Mi(this));
|
|
2226
2212
|
}
|
|
2227
|
-
values(o
|
|
2213
|
+
values(o = void 0) {
|
|
2228
2214
|
if (!qe(this)) throw De("values");
|
|
2229
|
-
const a = Xi(o
|
|
2215
|
+
const a = Xi(o, "First parameter");
|
|
2230
2216
|
return Fo(this, a.preventCancel);
|
|
2231
2217
|
}
|
|
2232
|
-
[pr](o
|
|
2233
|
-
return this.values(o
|
|
2218
|
+
[pr](o) {
|
|
2219
|
+
return this.values(o);
|
|
2234
2220
|
}
|
|
2235
|
-
static from(o
|
|
2236
|
-
return Hi(o
|
|
2221
|
+
static from(o) {
|
|
2222
|
+
return Hi(o);
|
|
2237
2223
|
}
|
|
2238
2224
|
};
|
|
2239
2225
|
u(Zr, "ReadableStream");
|
|
@@ -2254,16 +2240,16 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2254
2240
|
writable: !0,
|
|
2255
2241
|
configurable: !0
|
|
2256
2242
|
});
|
|
2257
|
-
function mt(n, o
|
|
2243
|
+
function mt(n, o, a, p = 1, y = () => 1) {
|
|
2258
2244
|
const _ = Object.create(V.prototype);
|
|
2259
2245
|
Ir(_);
|
|
2260
|
-
return ao(_, Object.create(ae.prototype), n, o
|
|
2246
|
+
return ao(_, Object.create(ae.prototype), n, o, a, p, y), _;
|
|
2261
2247
|
}
|
|
2262
2248
|
u(mt, "CreateReadableStream");
|
|
2263
|
-
function lo(n, o
|
|
2249
|
+
function lo(n, o, a) {
|
|
2264
2250
|
const p = Object.create(V.prototype);
|
|
2265
2251
|
Ir(p);
|
|
2266
|
-
return jn(p, Object.create(ie.prototype), n, o
|
|
2252
|
+
return jn(p, Object.create(ie.prototype), n, o, a, 0, void 0), p;
|
|
2267
2253
|
}
|
|
2268
2254
|
u(lo, "CreateReadableByteStream");
|
|
2269
2255
|
function Ir(n) {
|
|
@@ -2278,7 +2264,7 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2278
2264
|
return n._reader !== void 0;
|
|
2279
2265
|
}
|
|
2280
2266
|
u(ke, "IsReadableStreamLocked");
|
|
2281
|
-
function le(n, o
|
|
2267
|
+
function le(n, o) {
|
|
2282
2268
|
if (n._disturbed = !0, n._state === "closed") return k(void 0);
|
|
2283
2269
|
if (n._state === "errored") return T(n._storedError);
|
|
2284
2270
|
yt(n);
|
|
@@ -2289,32 +2275,32 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2289
2275
|
_._closeSteps(void 0);
|
|
2290
2276
|
});
|
|
2291
2277
|
}
|
|
2292
|
-
return N(n._readableStreamController[er](o
|
|
2278
|
+
return N(n._readableStreamController[er](o), g);
|
|
2293
2279
|
}
|
|
2294
2280
|
u(le, "ReadableStreamCancel");
|
|
2295
2281
|
function yt(n) {
|
|
2296
2282
|
n._state = "closed";
|
|
2297
|
-
const o
|
|
2298
|
-
if (o
|
|
2299
|
-
const a = o
|
|
2300
|
-
o
|
|
2283
|
+
const o = n._reader;
|
|
2284
|
+
if (o !== void 0 && (cn(o), ve(o))) {
|
|
2285
|
+
const a = o._readRequests;
|
|
2286
|
+
o._readRequests = new Q(), a.forEach((p) => {
|
|
2301
2287
|
p._closeSteps();
|
|
2302
2288
|
});
|
|
2303
2289
|
}
|
|
2304
2290
|
}
|
|
2305
2291
|
u(yt, "ReadableStreamClose");
|
|
2306
|
-
function fo(n, o
|
|
2307
|
-
n._state = "errored", n._storedError = o
|
|
2292
|
+
function fo(n, o) {
|
|
2293
|
+
n._state = "errored", n._storedError = o;
|
|
2308
2294
|
const a = n._reader;
|
|
2309
|
-
a !== void 0 && (ir(a, o
|
|
2295
|
+
a !== void 0 && (ir(a, o), ve(a) ? yn(a, o) : xn(a, o));
|
|
2310
2296
|
}
|
|
2311
2297
|
u(fo, "ReadableStreamError");
|
|
2312
2298
|
function De(n) {
|
|
2313
2299
|
return /* @__PURE__ */ new TypeError(`ReadableStream.prototype.${n} can only be used on a ReadableStream`);
|
|
2314
2300
|
}
|
|
2315
2301
|
u(De, "streamBrandCheckException$1");
|
|
2316
|
-
function co(n, o
|
|
2317
|
-
ce(n, o
|
|
2302
|
+
function co(n, o) {
|
|
2303
|
+
ce(n, o);
|
|
2318
2304
|
const a = n?.highWaterMark;
|
|
2319
2305
|
return sr(a, "highWaterMark", "QueuingStrategyInit"), { highWaterMark: ar(a) };
|
|
2320
2306
|
}
|
|
@@ -2322,8 +2308,8 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2322
2308
|
const ho = u((n) => n.byteLength, "byteLengthSizeFunction");
|
|
2323
2309
|
w(ho, "size");
|
|
2324
2310
|
const Kr = class Kr$1 {
|
|
2325
|
-
constructor(o
|
|
2326
|
-
Se(o
|
|
2311
|
+
constructor(o) {
|
|
2312
|
+
Se(o, 1, "ByteLengthQueuingStrategy"), o = co(o, "First parameter"), this._byteLengthQueuingStrategyHighWaterMark = o.highWaterMark;
|
|
2327
2313
|
}
|
|
2328
2314
|
get highWaterMark() {
|
|
2329
2315
|
if (!bo(this)) throw po("highWaterMark");
|
|
@@ -2354,8 +2340,8 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2354
2340
|
const mo = u(() => 1, "countSizeFunction");
|
|
2355
2341
|
w(mo, "size");
|
|
2356
2342
|
const Jr = class Jr$1 {
|
|
2357
|
-
constructor(o
|
|
2358
|
-
Se(o
|
|
2343
|
+
constructor(o) {
|
|
2344
|
+
Se(o, 1, "CountQueuingStrategy"), o = co(o, "First parameter"), this._countQueuingStrategyHighWaterMark = o.highWaterMark;
|
|
2359
2345
|
}
|
|
2360
2346
|
get highWaterMark() {
|
|
2361
2347
|
if (!go(this)) throw yo("highWaterMark");
|
|
@@ -2383,39 +2369,39 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2383
2369
|
return !b(n) || !Object.prototype.hasOwnProperty.call(n, "_countQueuingStrategyHighWaterMark") ? !1 : n instanceof Ke;
|
|
2384
2370
|
}
|
|
2385
2371
|
u(go, "IsCountQueuingStrategy");
|
|
2386
|
-
function rs(n, o
|
|
2387
|
-
ce(n, o
|
|
2372
|
+
function rs(n, o) {
|
|
2373
|
+
ce(n, o);
|
|
2388
2374
|
const a = n?.cancel, p = n?.flush, y = n?.readableType, _ = n?.start, S = n?.transform, C = n?.writableType;
|
|
2389
2375
|
return {
|
|
2390
|
-
cancel: a === void 0 ? void 0 : ss(a, n, `${o
|
|
2391
|
-
flush: p === void 0 ? void 0 : ns(p, n, `${o
|
|
2376
|
+
cancel: a === void 0 ? void 0 : ss(a, n, `${o} has member 'cancel' that`),
|
|
2377
|
+
flush: p === void 0 ? void 0 : ns(p, n, `${o} has member 'flush' that`),
|
|
2392
2378
|
readableType: y,
|
|
2393
|
-
start: _ === void 0 ? void 0 : os(_, n, `${o
|
|
2394
|
-
transform: S === void 0 ? void 0 : is(S, n, `${o
|
|
2379
|
+
start: _ === void 0 ? void 0 : os(_, n, `${o} has member 'start' that`),
|
|
2380
|
+
transform: S === void 0 ? void 0 : is(S, n, `${o} has member 'transform' that`),
|
|
2395
2381
|
writableType: C
|
|
2396
2382
|
};
|
|
2397
2383
|
}
|
|
2398
2384
|
u(rs, "convertTransformer");
|
|
2399
|
-
function ns(n, o
|
|
2400
|
-
return ee(n, a), (p) => H(n, o
|
|
2385
|
+
function ns(n, o, a) {
|
|
2386
|
+
return ee(n, a), (p) => H(n, o, [p]);
|
|
2401
2387
|
}
|
|
2402
2388
|
u(ns, "convertTransformerFlushCallback");
|
|
2403
|
-
function os(n, o
|
|
2404
|
-
return ee(n, a), (p) => M(n, o
|
|
2389
|
+
function os(n, o, a) {
|
|
2390
|
+
return ee(n, a), (p) => M(n, o, [p]);
|
|
2405
2391
|
}
|
|
2406
2392
|
u(os, "convertTransformerStartCallback");
|
|
2407
|
-
function is(n, o
|
|
2408
|
-
return ee(n, a), (p, y) => H(n, o
|
|
2393
|
+
function is(n, o, a) {
|
|
2394
|
+
return ee(n, a), (p, y) => H(n, o, [p, y]);
|
|
2409
2395
|
}
|
|
2410
2396
|
u(is, "convertTransformerTransformCallback");
|
|
2411
|
-
function ss(n, o
|
|
2412
|
-
return ee(n, a), (p) => H(n, o
|
|
2397
|
+
function ss(n, o, a) {
|
|
2398
|
+
return ee(n, a), (p) => H(n, o, [p]);
|
|
2413
2399
|
}
|
|
2414
2400
|
u(ss, "convertTransformerCancelCallback");
|
|
2415
2401
|
const Xr = class Xr$1 {
|
|
2416
|
-
constructor(o
|
|
2417
|
-
o
|
|
2418
|
-
const y = zt(a, "Second parameter"), _ = zt(p, "Third parameter"), S = rs(o
|
|
2402
|
+
constructor(o = {}, a = {}, p = {}) {
|
|
2403
|
+
o === void 0 && (o = null);
|
|
2404
|
+
const y = zt(a, "Second parameter"), _ = zt(p, "Third parameter"), S = rs(o, "First parameter");
|
|
2419
2405
|
if (S.readableType !== void 0) throw new RangeError("Invalid readableType specified");
|
|
2420
2406
|
if (S.writableType !== void 0) throw new RangeError("Invalid writableType specified");
|
|
2421
2407
|
const C = dt(_, 0), q = Ot(_), P = dt(y, 1), W = Ot(y);
|
|
@@ -2443,9 +2429,9 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2443
2429
|
value: "TransformStream",
|
|
2444
2430
|
configurable: !0
|
|
2445
2431
|
});
|
|
2446
|
-
function as(n, o
|
|
2432
|
+
function as(n, o, a, p, y, _) {
|
|
2447
2433
|
function S() {
|
|
2448
|
-
return o
|
|
2434
|
+
return o;
|
|
2449
2435
|
}
|
|
2450
2436
|
u(S, "startAlgorithm");
|
|
2451
2437
|
function C(j) {
|
|
@@ -2474,22 +2460,22 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2474
2460
|
return !b(n) || !Object.prototype.hasOwnProperty.call(n, "_transformStreamController") ? !1 : n instanceof Je;
|
|
2475
2461
|
}
|
|
2476
2462
|
u(_o, "IsTransformStream");
|
|
2477
|
-
function So(n, o
|
|
2478
|
-
ue(n._readable._readableStreamController, o
|
|
2463
|
+
function So(n, o) {
|
|
2464
|
+
ue(n._readable._readableStreamController, o), jr(n, o);
|
|
2479
2465
|
}
|
|
2480
2466
|
u(So, "TransformStreamError");
|
|
2481
|
-
function jr(n, o
|
|
2482
|
-
Qt(n._transformStreamController), ht(n._writable._writableStreamController, o
|
|
2467
|
+
function jr(n, o) {
|
|
2468
|
+
Qt(n._transformStreamController), ht(n._writable._writableStreamController, o), Lr(n);
|
|
2483
2469
|
}
|
|
2484
2470
|
u(jr, "TransformStreamErrorWritableAndUnblockWrite");
|
|
2485
2471
|
function Lr(n) {
|
|
2486
2472
|
n._backpressure && Ht(n, !1);
|
|
2487
2473
|
}
|
|
2488
2474
|
u(Lr, "TransformStreamUnblockWrite");
|
|
2489
|
-
function Ht(n, o
|
|
2475
|
+
function Ht(n, o) {
|
|
2490
2476
|
n._backpressureChangePromise !== void 0 && n._backpressureChangePromise_resolve(), n._backpressureChangePromise = I((a) => {
|
|
2491
2477
|
n._backpressureChangePromise_resolve = a;
|
|
2492
|
-
}), n._backpressure = o
|
|
2478
|
+
}), n._backpressure = o;
|
|
2493
2479
|
}
|
|
2494
2480
|
u(Ht, "TransformStreamSetBackpressure");
|
|
2495
2481
|
const en = class en$1 {
|
|
@@ -2498,16 +2484,16 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2498
2484
|
}
|
|
2499
2485
|
get desiredSize() {
|
|
2500
2486
|
if (!Vt(this)) throw Yt("desiredSize");
|
|
2501
|
-
const o
|
|
2502
|
-
return Fr(o
|
|
2487
|
+
const o = this._controlledTransformStream._readable._readableStreamController;
|
|
2488
|
+
return Fr(o);
|
|
2503
2489
|
}
|
|
2504
|
-
enqueue(o
|
|
2490
|
+
enqueue(o = void 0) {
|
|
2505
2491
|
if (!Vt(this)) throw Yt("enqueue");
|
|
2506
|
-
wo(this, o
|
|
2492
|
+
wo(this, o);
|
|
2507
2493
|
}
|
|
2508
|
-
error(o
|
|
2494
|
+
error(o = void 0) {
|
|
2509
2495
|
if (!Vt(this)) throw Yt("error");
|
|
2510
|
-
fs(this, o
|
|
2496
|
+
fs(this, o);
|
|
2511
2497
|
}
|
|
2512
2498
|
terminate() {
|
|
2513
2499
|
if (!Vt(this)) throw Yt("terminate");
|
|
@@ -2529,101 +2515,101 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2529
2515
|
return !b(n) || !Object.prototype.hasOwnProperty.call(n, "_controlledTransformStream") ? !1 : n instanceof me;
|
|
2530
2516
|
}
|
|
2531
2517
|
u(Vt, "IsTransformStreamDefaultController");
|
|
2532
|
-
function us(n, o
|
|
2533
|
-
o
|
|
2518
|
+
function us(n, o, a, p, y) {
|
|
2519
|
+
o._controlledTransformStream = n, n._transformStreamController = o, o._transformAlgorithm = a, o._flushAlgorithm = p, o._cancelAlgorithm = y, o._finishPromise = void 0, o._finishPromise_resolve = void 0, o._finishPromise_reject = void 0;
|
|
2534
2520
|
}
|
|
2535
2521
|
u(us, "SetUpTransformStreamDefaultController");
|
|
2536
|
-
function ls(n, o
|
|
2522
|
+
function ls(n, o) {
|
|
2537
2523
|
const a = Object.create(me.prototype);
|
|
2538
2524
|
let p, y, _;
|
|
2539
|
-
o
|
|
2525
|
+
o.transform !== void 0 ? p = u((S) => o.transform(S, a), "transformAlgorithm") : p = u((S) => {
|
|
2540
2526
|
try {
|
|
2541
2527
|
return wo(a, S), k(void 0);
|
|
2542
2528
|
} catch (C) {
|
|
2543
2529
|
return T(C);
|
|
2544
2530
|
}
|
|
2545
|
-
}, "transformAlgorithm"), o
|
|
2531
|
+
}, "transformAlgorithm"), o.flush !== void 0 ? y = u(() => o.flush(a), "flushAlgorithm") : y = u(() => k(void 0), "flushAlgorithm"), o.cancel !== void 0 ? _ = u((S) => o.cancel(S), "cancelAlgorithm") : _ = u(() => k(void 0), "cancelAlgorithm"), us(n, a, p, y, _);
|
|
2546
2532
|
}
|
|
2547
2533
|
u(ls, "SetUpTransformStreamDefaultControllerFromTransformer");
|
|
2548
2534
|
function Qt(n) {
|
|
2549
2535
|
n._transformAlgorithm = void 0, n._flushAlgorithm = void 0, n._cancelAlgorithm = void 0;
|
|
2550
2536
|
}
|
|
2551
2537
|
u(Qt, "TransformStreamDefaultControllerClearAlgorithms");
|
|
2552
|
-
function wo(n, o
|
|
2538
|
+
function wo(n, o) {
|
|
2553
2539
|
const a = n._controlledTransformStream, p = a._readable._readableStreamController;
|
|
2554
2540
|
if (!Ge(p)) throw new TypeError("Readable side is not in a state that permits enqueue");
|
|
2555
2541
|
try {
|
|
2556
|
-
Ye(p, o
|
|
2542
|
+
Ye(p, o);
|
|
2557
2543
|
} catch (_) {
|
|
2558
2544
|
throw jr(a, _), a._readable._storedError;
|
|
2559
2545
|
}
|
|
2560
2546
|
$i(p) !== a._backpressure && Ht(a, !0);
|
|
2561
2547
|
}
|
|
2562
2548
|
u(wo, "TransformStreamDefaultControllerEnqueue");
|
|
2563
|
-
function fs(n, o
|
|
2564
|
-
So(n._controlledTransformStream, o
|
|
2549
|
+
function fs(n, o) {
|
|
2550
|
+
So(n._controlledTransformStream, o);
|
|
2565
2551
|
}
|
|
2566
2552
|
u(fs, "TransformStreamDefaultControllerError");
|
|
2567
|
-
function Ro(n, o
|
|
2568
|
-
return N(n._transformAlgorithm(o
|
|
2553
|
+
function Ro(n, o) {
|
|
2554
|
+
return N(n._transformAlgorithm(o), void 0, (p) => {
|
|
2569
2555
|
throw So(n._controlledTransformStream, p), p;
|
|
2570
2556
|
});
|
|
2571
2557
|
}
|
|
2572
2558
|
u(Ro, "TransformStreamDefaultControllerPerformTransform");
|
|
2573
2559
|
function cs(n) {
|
|
2574
|
-
const o
|
|
2560
|
+
const o = n._controlledTransformStream, a = o._readable._readableStreamController;
|
|
2575
2561
|
$e(a);
|
|
2576
|
-
jr(o
|
|
2562
|
+
jr(o, /* @__PURE__ */ new TypeError("TransformStream terminated"));
|
|
2577
2563
|
}
|
|
2578
2564
|
u(cs, "TransformStreamDefaultControllerTerminate");
|
|
2579
|
-
function ds(n, o
|
|
2565
|
+
function ds(n, o) {
|
|
2580
2566
|
const a = n._transformStreamController;
|
|
2581
2567
|
if (n._backpressure) {
|
|
2582
2568
|
const p = n._backpressureChangePromise;
|
|
2583
2569
|
return N(p, () => {
|
|
2584
2570
|
const y = n._writable;
|
|
2585
2571
|
if (y._state === "erroring") throw y._storedError;
|
|
2586
|
-
return Ro(a, o
|
|
2572
|
+
return Ro(a, o);
|
|
2587
2573
|
});
|
|
2588
2574
|
}
|
|
2589
|
-
return Ro(a, o
|
|
2575
|
+
return Ro(a, o);
|
|
2590
2576
|
}
|
|
2591
2577
|
u(ds, "TransformStreamDefaultSinkWriteAlgorithm");
|
|
2592
|
-
function hs(n, o
|
|
2578
|
+
function hs(n, o) {
|
|
2593
2579
|
const a = n._transformStreamController;
|
|
2594
2580
|
if (a._finishPromise !== void 0) return a._finishPromise;
|
|
2595
2581
|
const p = n._readable;
|
|
2596
2582
|
a._finishPromise = I((_, S) => {
|
|
2597
2583
|
a._finishPromise_resolve = _, a._finishPromise_reject = S;
|
|
2598
2584
|
});
|
|
2599
|
-
const y = a._cancelAlgorithm(o
|
|
2600
|
-
return Qt(a), v(y, () => (p._state === "errored" ? Xe(a, p._storedError) : (ue(p._readableStreamController, o
|
|
2585
|
+
const y = a._cancelAlgorithm(o);
|
|
2586
|
+
return Qt(a), v(y, () => (p._state === "errored" ? Xe(a, p._storedError) : (ue(p._readableStreamController, o), $r(a)), null), (_) => (ue(p._readableStreamController, _), Xe(a, _), null)), a._finishPromise;
|
|
2601
2587
|
}
|
|
2602
2588
|
u(hs, "TransformStreamDefaultSinkAbortAlgorithm");
|
|
2603
2589
|
function ps(n) {
|
|
2604
|
-
const o
|
|
2605
|
-
if (o
|
|
2590
|
+
const o = n._transformStreamController;
|
|
2591
|
+
if (o._finishPromise !== void 0) return o._finishPromise;
|
|
2606
2592
|
const a = n._readable;
|
|
2607
|
-
o
|
|
2608
|
-
o
|
|
2593
|
+
o._finishPromise = I((y, _) => {
|
|
2594
|
+
o._finishPromise_resolve = y, o._finishPromise_reject = _;
|
|
2609
2595
|
});
|
|
2610
|
-
const p = o
|
|
2611
|
-
return Qt(o
|
|
2596
|
+
const p = o._flushAlgorithm();
|
|
2597
|
+
return Qt(o), v(p, () => (a._state === "errored" ? Xe(o, a._storedError) : ($e(a._readableStreamController), $r(o)), null), (y) => (ue(a._readableStreamController, y), Xe(o, y), null)), o._finishPromise;
|
|
2612
2598
|
}
|
|
2613
2599
|
u(ps, "TransformStreamDefaultSinkCloseAlgorithm");
|
|
2614
2600
|
function bs(n) {
|
|
2615
2601
|
return Ht(n, !1), n._backpressureChangePromise;
|
|
2616
2602
|
}
|
|
2617
2603
|
u(bs, "TransformStreamDefaultSourcePullAlgorithm");
|
|
2618
|
-
function ms(n, o
|
|
2604
|
+
function ms(n, o) {
|
|
2619
2605
|
const a = n._transformStreamController;
|
|
2620
2606
|
if (a._finishPromise !== void 0) return a._finishPromise;
|
|
2621
2607
|
const p = n._writable;
|
|
2622
2608
|
a._finishPromise = I((_, S) => {
|
|
2623
2609
|
a._finishPromise_resolve = _, a._finishPromise_reject = S;
|
|
2624
2610
|
});
|
|
2625
|
-
const y = a._cancelAlgorithm(o
|
|
2626
|
-
return Qt(a), v(y, () => (p._state === "errored" ? Xe(a, p._storedError) : (ht(p._writableStreamController, o
|
|
2611
|
+
const y = a._cancelAlgorithm(o);
|
|
2612
|
+
return Qt(a), v(y, () => (p._state === "errored" ? Xe(a, p._storedError) : (ht(p._writableStreamController, o), Lr(n), $r(a)), null), (_) => (ht(p._writableStreamController, _), Lr(n), Xe(a, _), null)), a._finishPromise;
|
|
2627
2613
|
}
|
|
2628
2614
|
u(ms, "TransformStreamDefaultSourceCancelAlgorithm");
|
|
2629
2615
|
function Yt(n) {
|
|
@@ -2634,8 +2620,8 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2634
2620
|
n._finishPromise_resolve !== void 0 && (n._finishPromise_resolve(), n._finishPromise_resolve = void 0, n._finishPromise_reject = void 0);
|
|
2635
2621
|
}
|
|
2636
2622
|
u($r, "defaultControllerFinishPromiseResolve");
|
|
2637
|
-
function Xe(n, o
|
|
2638
|
-
n._finishPromise_reject !== void 0 && (J(n._finishPromise), n._finishPromise_reject(o
|
|
2623
|
+
function Xe(n, o) {
|
|
2624
|
+
n._finishPromise_reject !== void 0 && (J(n._finishPromise), n._finishPromise_reject(o), n._finishPromise_resolve = void 0, n._finishPromise_reject = void 0);
|
|
2639
2625
|
}
|
|
2640
2626
|
u(Xe, "defaultControllerFinishPromiseReject");
|
|
2641
2627
|
function To(n) {
|
|
@@ -2652,18 +2638,18 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2652
2638
|
hasRequiredStreams = 1;
|
|
2653
2639
|
const c = 65536;
|
|
2654
2640
|
if (!globalThis.ReadableStream) try {
|
|
2655
|
-
const l
|
|
2641
|
+
const l = __require("node:process"), { emitWarning: d } = l;
|
|
2656
2642
|
try {
|
|
2657
|
-
l
|
|
2643
|
+
l.emitWarning = () => {}, Object.assign(globalThis, __require("node:stream/web")), l.emitWarning = d;
|
|
2658
2644
|
} catch (g) {
|
|
2659
|
-
throw l
|
|
2645
|
+
throw l.emitWarning = d, g;
|
|
2660
2646
|
}
|
|
2661
2647
|
} catch {
|
|
2662
2648
|
Object.assign(globalThis, requirePonyfill_es2018());
|
|
2663
2649
|
}
|
|
2664
2650
|
try {
|
|
2665
|
-
const { Blob: l
|
|
2666
|
-
l
|
|
2651
|
+
const { Blob: l } = __require("node:buffer");
|
|
2652
|
+
l && !l.prototype.stream && (l.prototype.stream = u(function(g) {
|
|
2667
2653
|
let b = 0;
|
|
2668
2654
|
const R = this;
|
|
2669
2655
|
return new ReadableStream({
|
|
@@ -2679,9 +2665,9 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2679
2665
|
}
|
|
2680
2666
|
u(requireStreams, "requireStreams"), requireStreams();
|
|
2681
2667
|
/*! fetch-blob. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */ const POOL_SIZE = 65536;
|
|
2682
|
-
async function* toIterator(c, l
|
|
2668
|
+
async function* toIterator(c, l = !0) {
|
|
2683
2669
|
for (const d of c) if ("stream" in d) yield* d.stream();
|
|
2684
|
-
else if (ArrayBuffer.isView(d)) if (l
|
|
2670
|
+
else if (ArrayBuffer.isView(d)) if (l) {
|
|
2685
2671
|
let g = d.byteOffset;
|
|
2686
2672
|
const b = d.byteOffset + d.byteLength;
|
|
2687
2673
|
for (; g !== b;) {
|
|
@@ -2699,17 +2685,17 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2699
2685
|
}
|
|
2700
2686
|
u(toIterator, "toIterator");
|
|
2701
2687
|
const _Blob = (Oe = class {
|
|
2702
|
-
constructor(l
|
|
2688
|
+
constructor(l = [], d = {}) {
|
|
2703
2689
|
ye(this, Pe, []);
|
|
2704
2690
|
ye(this, gt, "");
|
|
2705
2691
|
ye(this, ot, 0);
|
|
2706
2692
|
ye(this, Zt, "transparent");
|
|
2707
|
-
if (typeof l
|
|
2708
|
-
if (typeof l
|
|
2693
|
+
if (typeof l != "object" || l === null) throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");
|
|
2694
|
+
if (typeof l[Symbol.iterator] != "function") throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");
|
|
2709
2695
|
if (typeof d != "object" && typeof d != "function") throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");
|
|
2710
2696
|
d === null && (d = {});
|
|
2711
2697
|
const g = new TextEncoder();
|
|
2712
|
-
for (const R of l
|
|
2698
|
+
for (const R of l) {
|
|
2713
2699
|
let w;
|
|
2714
2700
|
ArrayBuffer.isView(R) ? w = new Uint8Array(R.buffer.slice(R.byteOffset, R.byteOffset + R.byteLength)) : R instanceof ArrayBuffer ? w = new Uint8Array(R.slice(0)) : R instanceof Oe ? w = R : w = g.encode(`${R}`), ne(this, ot, D(this, ot) + (ArrayBuffer.isView(w) ? w.byteLength : w.size)), D(this, Pe).push(w);
|
|
2715
2701
|
}
|
|
@@ -2724,33 +2710,33 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2724
2710
|
return D(this, gt);
|
|
2725
2711
|
}
|
|
2726
2712
|
async text() {
|
|
2727
|
-
const l
|
|
2713
|
+
const l = new TextDecoder();
|
|
2728
2714
|
let d = "";
|
|
2729
|
-
for await (const g of toIterator(D(this, Pe), !1)) d += l
|
|
2730
|
-
return d += l
|
|
2715
|
+
for await (const g of toIterator(D(this, Pe), !1)) d += l.decode(g, { stream: !0 });
|
|
2716
|
+
return d += l.decode(), d;
|
|
2731
2717
|
}
|
|
2732
2718
|
async arrayBuffer() {
|
|
2733
|
-
const l
|
|
2719
|
+
const l = new Uint8Array(this.size);
|
|
2734
2720
|
let d = 0;
|
|
2735
|
-
for await (const g of toIterator(D(this, Pe), !1)) l
|
|
2736
|
-
return l
|
|
2721
|
+
for await (const g of toIterator(D(this, Pe), !1)) l.set(g, d), d += g.length;
|
|
2722
|
+
return l.buffer;
|
|
2737
2723
|
}
|
|
2738
2724
|
stream() {
|
|
2739
|
-
const l
|
|
2725
|
+
const l = toIterator(D(this, Pe), !0);
|
|
2740
2726
|
return new globalThis.ReadableStream({
|
|
2741
2727
|
type: "bytes",
|
|
2742
2728
|
async pull(d) {
|
|
2743
|
-
const g = await l
|
|
2729
|
+
const g = await l.next();
|
|
2744
2730
|
g.done ? d.close() : d.enqueue(g.value);
|
|
2745
2731
|
},
|
|
2746
2732
|
async cancel() {
|
|
2747
|
-
await l
|
|
2733
|
+
await l.return();
|
|
2748
2734
|
}
|
|
2749
2735
|
});
|
|
2750
2736
|
}
|
|
2751
|
-
slice(l
|
|
2737
|
+
slice(l = 0, d = this.size, g = "") {
|
|
2752
2738
|
const { size: b } = this;
|
|
2753
|
-
let R = l
|
|
2739
|
+
let R = l < 0 ? Math.max(b + l, 0) : Math.min(l, b), w = d < 0 ? Math.max(b + d, 0) : Math.min(d, b);
|
|
2754
2740
|
const A = Math.max(w - R, 0), z = D(this, Pe), B = [];
|
|
2755
2741
|
let I = 0;
|
|
2756
2742
|
for (const T of z) {
|
|
@@ -2768,8 +2754,8 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2768
2754
|
get [Symbol.toStringTag]() {
|
|
2769
2755
|
return "Blob";
|
|
2770
2756
|
}
|
|
2771
|
-
static [Symbol.hasInstance](l
|
|
2772
|
-
return l
|
|
2757
|
+
static [Symbol.hasInstance](l) {
|
|
2758
|
+
return l && typeof l == "object" && typeof l.constructor == "function" && (typeof l.stream == "function" || typeof l.arrayBuffer == "function") && /^(Blob|File)$/.test(l[Symbol.toStringTag]);
|
|
2773
2759
|
}
|
|
2774
2760
|
}, Pe = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), u(Oe, "Blob"), Oe);
|
|
2775
2761
|
Object.defineProperties(_Blob.prototype, {
|
|
@@ -2800,14 +2786,14 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2800
2786
|
return !!d && d instanceof Blob && /^(File)$/.test(d[Symbol.toStringTag]);
|
|
2801
2787
|
}
|
|
2802
2788
|
}, _t = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), u(it, "File"), it);
|
|
2803
|
-
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */ var { toStringTag: t$1, iterator: i, hasInstance: h } = Symbol, r = Math.random, m = "append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","), f = u((c, l
|
|
2804
|
-
`)).replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), "e$1"), x = u((c, l
|
|
2805
|
-
if (l
|
|
2789
|
+
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */ var { toStringTag: t$1, iterator: i, hasInstance: h } = Symbol, r = Math.random, m = "append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","), f = u((c, l, d) => (c += "", /^(Blob|File)$/.test(l && l[t$1]) ? [(d = d !== void 0 ? d + "" : l[t$1] == "File" ? l.name : "blob", c), l.name !== d || l[t$1] == "blob" ? new File([l], d, l) : l] : [c, l + ""]), "f"), e$1 = u((c, l) => (l ? c : c.replace(/\r?\n|\r/g, `\r
|
|
2790
|
+
`)).replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), "e$1"), x = u((c, l, d) => {
|
|
2791
|
+
if (l.length < d) throw new TypeError(`Failed to execute '${c}' on 'FormData': ${d} arguments required, but only ${l.length} present.`);
|
|
2806
2792
|
}, "x");
|
|
2807
2793
|
const FormData = (st = class {
|
|
2808
|
-
constructor(...l
|
|
2794
|
+
constructor(...l) {
|
|
2809
2795
|
ye(this, oe, []);
|
|
2810
|
-
if (l
|
|
2796
|
+
if (l.length) throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.");
|
|
2811
2797
|
}
|
|
2812
2798
|
get [t$1]() {
|
|
2813
2799
|
return "FormData";
|
|
@@ -2815,48 +2801,48 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2815
2801
|
[i]() {
|
|
2816
2802
|
return this.entries();
|
|
2817
2803
|
}
|
|
2818
|
-
static [h](l
|
|
2819
|
-
return l
|
|
2804
|
+
static [h](l) {
|
|
2805
|
+
return l && typeof l == "object" && l[t$1] === "FormData" && !m.some((d) => typeof l[d] != "function");
|
|
2820
2806
|
}
|
|
2821
|
-
append(...l
|
|
2822
|
-
x("append", arguments, 2), D(this, oe).push(f(...l
|
|
2807
|
+
append(...l) {
|
|
2808
|
+
x("append", arguments, 2), D(this, oe).push(f(...l));
|
|
2823
2809
|
}
|
|
2824
|
-
delete(l
|
|
2825
|
-
x("delete", arguments, 1), l
|
|
2810
|
+
delete(l) {
|
|
2811
|
+
x("delete", arguments, 1), l += "", ne(this, oe, D(this, oe).filter(([d]) => d !== l));
|
|
2826
2812
|
}
|
|
2827
|
-
get(l
|
|
2828
|
-
x("get", arguments, 1), l
|
|
2829
|
-
for (var d = D(this, oe), g = d.length, b = 0; b < g; b++) if (d[b][0] === l
|
|
2813
|
+
get(l) {
|
|
2814
|
+
x("get", arguments, 1), l += "";
|
|
2815
|
+
for (var d = D(this, oe), g = d.length, b = 0; b < g; b++) if (d[b][0] === l) return d[b][1];
|
|
2830
2816
|
return null;
|
|
2831
2817
|
}
|
|
2832
|
-
getAll(l
|
|
2833
|
-
return x("getAll", arguments, 1), d = [], l
|
|
2818
|
+
getAll(l, d) {
|
|
2819
|
+
return x("getAll", arguments, 1), d = [], l += "", D(this, oe).forEach((g) => g[0] === l && d.push(g[1])), d;
|
|
2834
2820
|
}
|
|
2835
|
-
has(l
|
|
2836
|
-
return x("has", arguments, 1), l
|
|
2821
|
+
has(l) {
|
|
2822
|
+
return x("has", arguments, 1), l += "", D(this, oe).some((d) => d[0] === l);
|
|
2837
2823
|
}
|
|
2838
|
-
forEach(l
|
|
2824
|
+
forEach(l, d) {
|
|
2839
2825
|
x("forEach", arguments, 1);
|
|
2840
|
-
for (var [g, b] of this) l
|
|
2826
|
+
for (var [g, b] of this) l.call(d, b, g, this);
|
|
2841
2827
|
}
|
|
2842
|
-
set(...l
|
|
2828
|
+
set(...l) {
|
|
2843
2829
|
x("set", arguments, 2);
|
|
2844
2830
|
var d = [], g = !0;
|
|
2845
|
-
l
|
|
2846
|
-
b[0] === l
|
|
2847
|
-
}), g && d.push(l
|
|
2831
|
+
l = f(...l), D(this, oe).forEach((b) => {
|
|
2832
|
+
b[0] === l[0] ? g && (g = !d.push(l)) : d.push(b);
|
|
2833
|
+
}), g && d.push(l), ne(this, oe, d);
|
|
2848
2834
|
}
|
|
2849
2835
|
*entries() {
|
|
2850
2836
|
yield* D(this, oe);
|
|
2851
2837
|
}
|
|
2852
2838
|
*keys() {
|
|
2853
|
-
for (var [l
|
|
2839
|
+
for (var [l] of this) yield l;
|
|
2854
2840
|
}
|
|
2855
2841
|
*values() {
|
|
2856
|
-
for (var [, l
|
|
2842
|
+
for (var [, l] of this) yield l;
|
|
2857
2843
|
}
|
|
2858
2844
|
}, oe = /* @__PURE__ */ new WeakMap(), u(st, "FormData"), st);
|
|
2859
|
-
function formDataToBlob(c, l
|
|
2845
|
+
function formDataToBlob(c, l = Blob) {
|
|
2860
2846
|
var d = `${r()}${r()}`.replace(/\./g, "").slice(-28).padStart(32, "-"), g = [], b = `--${d}\r
|
|
2861
2847
|
Content-Disposition: form-data; name="`;
|
|
2862
2848
|
return c.forEach((R, w) => typeof R == "string" ? g.push(b + e$1(w) + `"\r
|
|
@@ -2867,12 +2853,12 @@ ${R.replace(/\r(?!\n)|(?<!\r)\n/g, `\r
|
|
|
2867
2853
|
Content-Type: ${R.type || "application/octet-stream"}\r
|
|
2868
2854
|
\r
|
|
2869
2855
|
`, R, `\r
|
|
2870
|
-
`)), g.push(`--${d}--`), new l
|
|
2856
|
+
`)), g.push(`--${d}--`), new l(g, { type: "multipart/form-data; boundary=" + d });
|
|
2871
2857
|
}
|
|
2872
2858
|
u(formDataToBlob, "formDataToBlob");
|
|
2873
2859
|
const rn = class rn$1 extends Error {
|
|
2874
|
-
constructor(l
|
|
2875
|
-
super(l
|
|
2860
|
+
constructor(l, d) {
|
|
2861
|
+
super(l), Error.captureStackTrace(this, this.constructor), this.type = d;
|
|
2876
2862
|
}
|
|
2877
2863
|
get name() {
|
|
2878
2864
|
return this.constructor.name;
|
|
@@ -2884,29 +2870,29 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
2884
2870
|
u(rn, "FetchBaseError");
|
|
2885
2871
|
let FetchBaseError = rn;
|
|
2886
2872
|
const nn = class nn$1 extends FetchBaseError {
|
|
2887
|
-
constructor(l
|
|
2888
|
-
super(l
|
|
2873
|
+
constructor(l, d, g) {
|
|
2874
|
+
super(l, d), g && (this.code = this.errno = g.code, this.erroredSysCall = g.syscall);
|
|
2889
2875
|
}
|
|
2890
2876
|
};
|
|
2891
2877
|
u(nn, "FetchError");
|
|
2892
2878
|
let FetchError = nn;
|
|
2893
|
-
const NAME = Symbol.toStringTag, isURLSearchParameters = u((c) => typeof c == "object" && typeof c.append == "function" && typeof c.delete == "function" && typeof c.get == "function" && typeof c.getAll == "function" && typeof c.has == "function" && typeof c.set == "function" && typeof c.sort == "function" && c[NAME] === "URLSearchParams", "isURLSearchParameters"), isBlob = u((c) => c && typeof c == "object" && typeof c.arrayBuffer == "function" && typeof c.type == "string" && typeof c.stream == "function" && typeof c.constructor == "function" && /^(Blob|File)$/.test(c[NAME]), "isBlob"), isAbortSignal = u((c) => typeof c == "object" && (c[NAME] === "AbortSignal" || c[NAME] === "EventTarget"), "isAbortSignal"), isDomainOrSubdomain = u((c, l
|
|
2894
|
-
const d = new URL(l
|
|
2879
|
+
const NAME = Symbol.toStringTag, isURLSearchParameters = u((c) => typeof c == "object" && typeof c.append == "function" && typeof c.delete == "function" && typeof c.get == "function" && typeof c.getAll == "function" && typeof c.has == "function" && typeof c.set == "function" && typeof c.sort == "function" && c[NAME] === "URLSearchParams", "isURLSearchParameters"), isBlob = u((c) => c && typeof c == "object" && typeof c.arrayBuffer == "function" && typeof c.type == "string" && typeof c.stream == "function" && typeof c.constructor == "function" && /^(Blob|File)$/.test(c[NAME]), "isBlob"), isAbortSignal = u((c) => typeof c == "object" && (c[NAME] === "AbortSignal" || c[NAME] === "EventTarget"), "isAbortSignal"), isDomainOrSubdomain = u((c, l) => {
|
|
2880
|
+
const d = new URL(l).hostname, g = new URL(c).hostname;
|
|
2895
2881
|
return d === g || d.endsWith(`.${g}`);
|
|
2896
|
-
}, "isDomainOrSubdomain"), isSameProtocol = u((c, l
|
|
2897
|
-
return new URL(l
|
|
2882
|
+
}, "isDomainOrSubdomain"), isSameProtocol = u((c, l) => {
|
|
2883
|
+
return new URL(l).protocol === new URL(c).protocol;
|
|
2898
2884
|
}, "isSameProtocol"), pipeline = require$$0$1.promisify(Stream__default.pipeline), INTERNALS$2 = Symbol("Body internals"), on = class on$1 {
|
|
2899
|
-
constructor(l
|
|
2885
|
+
constructor(l, { size: d = 0 } = {}) {
|
|
2900
2886
|
let g = null;
|
|
2901
|
-
l
|
|
2902
|
-
let b = l
|
|
2903
|
-
require$$0.Buffer.isBuffer(l
|
|
2904
|
-
body: l
|
|
2887
|
+
l === null ? l = null : isURLSearchParameters(l) ? l = require$$0.Buffer.from(l.toString()) : isBlob(l) || require$$0.Buffer.isBuffer(l) || (require$$0$1.types.isAnyArrayBuffer(l) ? l = require$$0.Buffer.from(l) : ArrayBuffer.isView(l) ? l = require$$0.Buffer.from(l.buffer, l.byteOffset, l.byteLength) : l instanceof Stream__default || (l instanceof FormData ? (l = formDataToBlob(l), g = l.type.split("=")[1]) : l = require$$0.Buffer.from(String(l))));
|
|
2888
|
+
let b = l;
|
|
2889
|
+
require$$0.Buffer.isBuffer(l) ? b = Stream__default.Readable.from(l) : isBlob(l) && (b = Stream__default.Readable.from(l.stream())), this[INTERNALS$2] = {
|
|
2890
|
+
body: l,
|
|
2905
2891
|
stream: b,
|
|
2906
2892
|
boundary: g,
|
|
2907
2893
|
disturbed: !1,
|
|
2908
2894
|
error: null
|
|
2909
|
-
}, this.size = d, l
|
|
2895
|
+
}, this.size = d, l instanceof Stream__default && l.on("error", (R) => {
|
|
2910
2896
|
const w = R instanceof FetchBaseError ? R : new FetchError(`Invalid response body while trying to fetch ${this.url}: ${R.message}`, "system", R);
|
|
2911
2897
|
this[INTERNALS$2].error = w;
|
|
2912
2898
|
});
|
|
@@ -2918,30 +2904,30 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
2918
2904
|
return this[INTERNALS$2].disturbed;
|
|
2919
2905
|
}
|
|
2920
2906
|
async arrayBuffer() {
|
|
2921
|
-
const { buffer: l
|
|
2922
|
-
return l
|
|
2907
|
+
const { buffer: l, byteOffset: d, byteLength: g } = await consumeBody(this);
|
|
2908
|
+
return l.slice(d, d + g);
|
|
2923
2909
|
}
|
|
2924
2910
|
async formData() {
|
|
2925
|
-
const l
|
|
2926
|
-
if (l
|
|
2911
|
+
const l = this.headers.get("content-type");
|
|
2912
|
+
if (l.startsWith("application/x-www-form-urlencoded")) {
|
|
2927
2913
|
const g = new FormData(), b = new URLSearchParams(await this.text());
|
|
2928
2914
|
for (const [R, w] of b) g.append(R, w);
|
|
2929
2915
|
return g;
|
|
2930
2916
|
}
|
|
2931
|
-
const { toFormData: d } = await import("./multipart-parser
|
|
2932
|
-
return d(this.body, l
|
|
2917
|
+
const { toFormData: d } = await import("./chunks/multipart-parser.mjs").then(__toDynamicImportESM(1));
|
|
2918
|
+
return d(this.body, l);
|
|
2933
2919
|
}
|
|
2934
2920
|
async blob() {
|
|
2935
|
-
const l
|
|
2936
|
-
return new Blob([await this.arrayBuffer()], { type: l
|
|
2921
|
+
const l = this.headers && this.headers.get("content-type") || this[INTERNALS$2].body && this[INTERNALS$2].body.type || "";
|
|
2922
|
+
return new Blob([await this.arrayBuffer()], { type: l });
|
|
2937
2923
|
}
|
|
2938
2924
|
async json() {
|
|
2939
|
-
const l
|
|
2940
|
-
return JSON.parse(l
|
|
2925
|
+
const l = await this.text();
|
|
2926
|
+
return JSON.parse(l);
|
|
2941
2927
|
}
|
|
2942
2928
|
async text() {
|
|
2943
|
-
const l
|
|
2944
|
-
return new TextDecoder().decode(l
|
|
2929
|
+
const l = await consumeBody(this);
|
|
2930
|
+
return new TextDecoder().decode(l);
|
|
2945
2931
|
}
|
|
2946
2932
|
buffer() {
|
|
2947
2933
|
return consumeBody(this);
|
|
@@ -2961,22 +2947,22 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
2961
2947
|
async function consumeBody(c) {
|
|
2962
2948
|
if (c[INTERNALS$2].disturbed) throw new TypeError(`body used already for: ${c.url}`);
|
|
2963
2949
|
if (c[INTERNALS$2].disturbed = !0, c[INTERNALS$2].error) throw c[INTERNALS$2].error;
|
|
2964
|
-
const { body: l
|
|
2965
|
-
if (l
|
|
2950
|
+
const { body: l } = c;
|
|
2951
|
+
if (l === null || !(l instanceof Stream__default)) return require$$0.Buffer.alloc(0);
|
|
2966
2952
|
const d = [];
|
|
2967
2953
|
let g = 0;
|
|
2968
2954
|
try {
|
|
2969
|
-
for await (const b of l
|
|
2955
|
+
for await (const b of l) {
|
|
2970
2956
|
if (c.size > 0 && g + b.length > c.size) {
|
|
2971
2957
|
const R = new FetchError(`content size at ${c.url} over limit: ${c.size}`, "max-size");
|
|
2972
|
-
throw l
|
|
2958
|
+
throw l.destroy(R), R;
|
|
2973
2959
|
}
|
|
2974
2960
|
g += b.length, d.push(b);
|
|
2975
2961
|
}
|
|
2976
2962
|
} catch (b) {
|
|
2977
2963
|
throw b instanceof FetchBaseError ? b : new FetchError(`Invalid response body while trying to fetch ${c.url}: ${b.message}`, "system", b);
|
|
2978
2964
|
}
|
|
2979
|
-
if (l
|
|
2965
|
+
if (l.readableEnded === !0 || l._readableState.ended === !0) try {
|
|
2980
2966
|
return d.every((b) => typeof b == "string") ? require$$0.Buffer.from(d.join("")) : require$$0.Buffer.concat(d, g);
|
|
2981
2967
|
} catch (b) {
|
|
2982
2968
|
throw new FetchError(`Could not create Buffer from response body for ${c.url}: ${b.message}`, "system", b);
|
|
@@ -2984,37 +2970,37 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
2984
2970
|
else throw new FetchError(`Premature close of server response while trying to fetch ${c.url}`);
|
|
2985
2971
|
}
|
|
2986
2972
|
u(consumeBody, "consumeBody");
|
|
2987
|
-
const clone = u((c, l
|
|
2973
|
+
const clone = u((c, l) => {
|
|
2988
2974
|
let d, g, { body: b } = c[INTERNALS$2];
|
|
2989
2975
|
if (c.bodyUsed) throw new Error("cannot clone body after it is used");
|
|
2990
|
-
return b instanceof Stream__default && typeof b.getBoundary != "function" && (d = new Stream.PassThrough({ highWaterMark: l
|
|
2991
|
-
}, "clone"), getNonSpecFormDataBoundary = require$$0$1.deprecate((c) => c.getBoundary(), "form-data doesn't follow the spec and requires special treatment. Use alternative package", "https://github.com/node-fetch/node-fetch/issues/1167"), extractContentType = u((c, l
|
|
2992
|
-
const { body: l
|
|
2993
|
-
return l
|
|
2994
|
-
}, "getTotalBytes"), writeToStream = u(async (c, { body: l
|
|
2995
|
-
l
|
|
2976
|
+
return b instanceof Stream__default && typeof b.getBoundary != "function" && (d = new Stream.PassThrough({ highWaterMark: l }), g = new Stream.PassThrough({ highWaterMark: l }), b.pipe(d), b.pipe(g), c[INTERNALS$2].stream = d, b = g), b;
|
|
2977
|
+
}, "clone"), getNonSpecFormDataBoundary = require$$0$1.deprecate((c) => c.getBoundary(), "form-data doesn't follow the spec and requires special treatment. Use alternative package", "https://github.com/node-fetch/node-fetch/issues/1167"), extractContentType = u((c, l) => c === null ? null : typeof c == "string" ? "text/plain;charset=UTF-8" : isURLSearchParameters(c) ? "application/x-www-form-urlencoded;charset=UTF-8" : isBlob(c) ? c.type || null : require$$0.Buffer.isBuffer(c) || require$$0$1.types.isAnyArrayBuffer(c) || ArrayBuffer.isView(c) ? null : c instanceof FormData ? `multipart/form-data; boundary=${l[INTERNALS$2].boundary}` : c && typeof c.getBoundary == "function" ? `multipart/form-data;boundary=${getNonSpecFormDataBoundary(c)}` : c instanceof Stream__default ? null : "text/plain;charset=UTF-8", "extractContentType"), getTotalBytes = u((c) => {
|
|
2978
|
+
const { body: l } = c[INTERNALS$2];
|
|
2979
|
+
return l === null ? 0 : isBlob(l) ? l.size : require$$0.Buffer.isBuffer(l) ? l.length : l && typeof l.getLengthSync == "function" && l.hasKnownLength && l.hasKnownLength() ? l.getLengthSync() : null;
|
|
2980
|
+
}, "getTotalBytes"), writeToStream = u(async (c, { body: l }) => {
|
|
2981
|
+
l === null ? c.end() : await pipeline(l, c);
|
|
2996
2982
|
}, "writeToStream"), validateHeaderName = typeof http__default.validateHeaderName == "function" ? http__default.validateHeaderName : (c) => {
|
|
2997
2983
|
if (!/^[\^`\-\w!#$%&'*+.|~]+$/.test(c)) {
|
|
2998
|
-
const l
|
|
2999
|
-
throw Object.defineProperty(l
|
|
2984
|
+
const l = /* @__PURE__ */ new TypeError(`Header name must be a valid HTTP token [${c}]`);
|
|
2985
|
+
throw Object.defineProperty(l, "code", { value: "ERR_INVALID_HTTP_TOKEN" }), l;
|
|
3000
2986
|
}
|
|
3001
|
-
}, validateHeaderValue = typeof http__default.validateHeaderValue == "function" ? http__default.validateHeaderValue : (c, l
|
|
3002
|
-
if (/[^\t\u0020-\u007E\u0080-\u00FF]/.test(l
|
|
2987
|
+
}, validateHeaderValue = typeof http__default.validateHeaderValue == "function" ? http__default.validateHeaderValue : (c, l) => {
|
|
2988
|
+
if (/[^\t\u0020-\u007E\u0080-\u00FF]/.test(l)) {
|
|
3003
2989
|
const d = /* @__PURE__ */ new TypeError(`Invalid character in header content ["${c}"]`);
|
|
3004
2990
|
throw Object.defineProperty(d, "code", { value: "ERR_INVALID_CHAR" }), d;
|
|
3005
2991
|
}
|
|
3006
2992
|
}, Kt = class Kt$1 extends URLSearchParams {
|
|
3007
|
-
constructor(l
|
|
2993
|
+
constructor(l) {
|
|
3008
2994
|
let d = [];
|
|
3009
|
-
if (l
|
|
3010
|
-
const g = l
|
|
2995
|
+
if (l instanceof Kt$1) {
|
|
2996
|
+
const g = l.raw();
|
|
3011
2997
|
for (const [b, R] of Object.entries(g)) d.push(...R.map((w) => [b, w]));
|
|
3012
|
-
} else if (l
|
|
3013
|
-
const g = l
|
|
3014
|
-
if (g == null) d.push(...Object.entries(l
|
|
2998
|
+
} else if (l != null) if (typeof l == "object" && !require$$0$1.types.isBoxedPrimitive(l)) {
|
|
2999
|
+
const g = l[Symbol.iterator];
|
|
3000
|
+
if (g == null) d.push(...Object.entries(l));
|
|
3015
3001
|
else {
|
|
3016
3002
|
if (typeof g != "function") throw new TypeError("Header pairs must be iterable");
|
|
3017
|
-
d = [...l
|
|
3003
|
+
d = [...l].map((b) => {
|
|
3018
3004
|
if (typeof b != "object" || require$$0$1.types.isBoxedPrimitive(b)) throw new TypeError("Each header pair must be an iterable object");
|
|
3019
3005
|
return [...b];
|
|
3020
3006
|
}).map((b) => {
|
|
@@ -3041,35 +3027,35 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3041
3027
|
toString() {
|
|
3042
3028
|
return Object.prototype.toString.call(this);
|
|
3043
3029
|
}
|
|
3044
|
-
get(l
|
|
3045
|
-
const d = this.getAll(l
|
|
3030
|
+
get(l) {
|
|
3031
|
+
const d = this.getAll(l);
|
|
3046
3032
|
if (d.length === 0) return null;
|
|
3047
3033
|
let g = d.join(", ");
|
|
3048
|
-
return /^content-encoding$/i.test(l
|
|
3034
|
+
return /^content-encoding$/i.test(l) && (g = g.toLowerCase()), g;
|
|
3049
3035
|
}
|
|
3050
|
-
forEach(l
|
|
3051
|
-
for (const g of this.keys()) Reflect.apply(l
|
|
3036
|
+
forEach(l, d = void 0) {
|
|
3037
|
+
for (const g of this.keys()) Reflect.apply(l, d, [
|
|
3052
3038
|
this.get(g),
|
|
3053
3039
|
g,
|
|
3054
3040
|
this
|
|
3055
3041
|
]);
|
|
3056
3042
|
}
|
|
3057
3043
|
*values() {
|
|
3058
|
-
for (const l
|
|
3044
|
+
for (const l of this.keys()) yield this.get(l);
|
|
3059
3045
|
}
|
|
3060
3046
|
*entries() {
|
|
3061
|
-
for (const l
|
|
3047
|
+
for (const l of this.keys()) yield [l, this.get(l)];
|
|
3062
3048
|
}
|
|
3063
3049
|
[Symbol.iterator]() {
|
|
3064
3050
|
return this.entries();
|
|
3065
3051
|
}
|
|
3066
3052
|
raw() {
|
|
3067
|
-
return [...this.keys()].reduce((l
|
|
3053
|
+
return [...this.keys()].reduce((l, d) => (l[d] = this.getAll(d), l), {});
|
|
3068
3054
|
}
|
|
3069
3055
|
[Symbol.for("nodejs.util.inspect.custom")]() {
|
|
3070
|
-
return [...this.keys()].reduce((l
|
|
3056
|
+
return [...this.keys()].reduce((l, d) => {
|
|
3071
3057
|
const g = this.getAll(d);
|
|
3072
|
-
return d === "host" ? l
|
|
3058
|
+
return d === "host" ? l[d] = g[0] : l[d] = g.length > 1 ? g : g[0], l;
|
|
3073
3059
|
}, {});
|
|
3074
3060
|
}
|
|
3075
3061
|
};
|
|
@@ -3080,11 +3066,11 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3080
3066
|
"entries",
|
|
3081
3067
|
"forEach",
|
|
3082
3068
|
"values"
|
|
3083
|
-
].reduce((c, l
|
|
3069
|
+
].reduce((c, l) => (c[l] = { enumerable: !0 }, c), {}));
|
|
3084
3070
|
function fromRawHeaders(c = []) {
|
|
3085
|
-
return new Headers(c.reduce((l
|
|
3071
|
+
return new Headers(c.reduce((l, d, g, b) => (g % 2 === 0 && l.push(b.slice(g, g + 2)), l), []).filter(([l, d]) => {
|
|
3086
3072
|
try {
|
|
3087
|
-
return validateHeaderName(l
|
|
3073
|
+
return validateHeaderName(l), validateHeaderValue(l, String(d)), !0;
|
|
3088
3074
|
} catch {
|
|
3089
3075
|
return !1;
|
|
3090
3076
|
}
|
|
@@ -3098,11 +3084,11 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3098
3084
|
307,
|
|
3099
3085
|
308
|
|
3100
3086
|
]), isRedirect = u((c) => redirectStatus.has(c), "isRedirect"), INTERNALS$1 = Symbol("Response internals"), Me = class Me$1 extends Body {
|
|
3101
|
-
constructor(l
|
|
3102
|
-
super(l
|
|
3087
|
+
constructor(l = null, d = {}) {
|
|
3088
|
+
super(l, d);
|
|
3103
3089
|
const g = d.status != null ? d.status : 200, b = new Headers(d.headers);
|
|
3104
|
-
if (l
|
|
3105
|
-
const R = extractContentType(l
|
|
3090
|
+
if (l !== null && !b.has("Content-Type")) {
|
|
3091
|
+
const R = extractContentType(l, this);
|
|
3106
3092
|
R && b.append("Content-Type", R);
|
|
3107
3093
|
}
|
|
3108
3094
|
this[INTERNALS$1] = {
|
|
@@ -3152,22 +3138,22 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3152
3138
|
highWaterMark: this.highWaterMark
|
|
3153
3139
|
});
|
|
3154
3140
|
}
|
|
3155
|
-
static redirect(l
|
|
3141
|
+
static redirect(l, d = 302) {
|
|
3156
3142
|
if (!isRedirect(d)) throw new RangeError("Failed to execute \"redirect\" on \"response\": Invalid status code");
|
|
3157
3143
|
return new Me$1(null, {
|
|
3158
|
-
headers: { location: new URL(l
|
|
3144
|
+
headers: { location: new URL(l).toString() },
|
|
3159
3145
|
status: d
|
|
3160
3146
|
});
|
|
3161
3147
|
}
|
|
3162
3148
|
static error() {
|
|
3163
|
-
const l
|
|
3149
|
+
const l = new Me$1(null, {
|
|
3164
3150
|
status: 0,
|
|
3165
3151
|
statusText: ""
|
|
3166
3152
|
});
|
|
3167
|
-
return l
|
|
3153
|
+
return l[INTERNALS$1].type = "error", l;
|
|
3168
3154
|
}
|
|
3169
|
-
static json(l
|
|
3170
|
-
const g = JSON.stringify(l
|
|
3155
|
+
static json(l = void 0, d = {}) {
|
|
3156
|
+
const g = JSON.stringify(l);
|
|
3171
3157
|
if (g === void 0) throw new TypeError("data is not JSON serializable");
|
|
3172
3158
|
const b = new Headers(d && d.headers);
|
|
3173
3159
|
return b.has("content-type") || b.set("content-type", "application/json"), new Me$1(g, {
|
|
@@ -3193,11 +3179,11 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3193
3179
|
});
|
|
3194
3180
|
const getSearch = u((c) => {
|
|
3195
3181
|
if (c.search) return c.search;
|
|
3196
|
-
const l
|
|
3197
|
-
return c.href[l
|
|
3182
|
+
const l = c.href.length - 1, d = c.hash || (c.href[l] === "#" ? "#" : "");
|
|
3183
|
+
return c.href[l - d.length] === "?" ? "?" : "";
|
|
3198
3184
|
}, "getSearch");
|
|
3199
|
-
function stripURLForUseAsAReferrer(c, l
|
|
3200
|
-
return c == null || (c = new URL(c), /^(about|blob|data):$/.test(c.protocol)) ? "no-referrer" : (c.username = "", c.password = "", c.hash = "", l
|
|
3185
|
+
function stripURLForUseAsAReferrer(c, l = !1) {
|
|
3186
|
+
return c == null || (c = new URL(c), /^(about|blob|data):$/.test(c.protocol)) ? "no-referrer" : (c.username = "", c.password = "", c.hash = "", l && (c.pathname = "", c.search = ""), c);
|
|
3201
3187
|
}
|
|
3202
3188
|
u(stripURLForUseAsAReferrer, "stripURLForUseAsAReferrer");
|
|
3203
3189
|
const ReferrerPolicy = new Set([
|
|
@@ -3218,21 +3204,21 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3218
3204
|
u(validateReferrerPolicy, "validateReferrerPolicy");
|
|
3219
3205
|
function isOriginPotentiallyTrustworthy(c) {
|
|
3220
3206
|
if (/^(http|ws)s:$/.test(c.protocol)) return !0;
|
|
3221
|
-
const l
|
|
3222
|
-
return d === 4 && /^127\./.test(l
|
|
3207
|
+
const l = c.host.replace(/(^\[)|(]$)/g, ""), d = require$$0$2.isIP(l);
|
|
3208
|
+
return d === 4 && /^127\./.test(l) || d === 6 && /^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(l) ? !0 : c.host === "localhost" || c.host.endsWith(".localhost") ? !1 : c.protocol === "file:";
|
|
3223
3209
|
}
|
|
3224
3210
|
u(isOriginPotentiallyTrustworthy, "isOriginPotentiallyTrustworthy");
|
|
3225
3211
|
function isUrlPotentiallyTrustworthy(c) {
|
|
3226
3212
|
return /^about:(blank|srcdoc)$/.test(c) || c.protocol === "data:" || /^(blob|filesystem):$/.test(c.protocol) ? !0 : isOriginPotentiallyTrustworthy(c);
|
|
3227
3213
|
}
|
|
3228
3214
|
u(isUrlPotentiallyTrustworthy, "isUrlPotentiallyTrustworthy");
|
|
3229
|
-
function determineRequestsReferrer(c, { referrerURLCallback: l
|
|
3215
|
+
function determineRequestsReferrer(c, { referrerURLCallback: l, referrerOriginCallback: d } = {}) {
|
|
3230
3216
|
if (c.referrer === "no-referrer" || c.referrerPolicy === "") return null;
|
|
3231
3217
|
const g = c.referrerPolicy;
|
|
3232
3218
|
if (c.referrer === "about:client") return "no-referrer";
|
|
3233
3219
|
const b = c.referrer;
|
|
3234
3220
|
let R = stripURLForUseAsAReferrer(b), w = stripURLForUseAsAReferrer(b, !0);
|
|
3235
|
-
R.toString().length > 4096 && (R = w), l
|
|
3221
|
+
R.toString().length > 4096 && (R = w), l && (R = l(R)), d && (w = d(w));
|
|
3236
3222
|
const A = new URL(c.url);
|
|
3237
3223
|
switch (g) {
|
|
3238
3224
|
case "no-referrer": return "no-referrer";
|
|
@@ -3248,28 +3234,28 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3248
3234
|
}
|
|
3249
3235
|
u(determineRequestsReferrer, "determineRequestsReferrer");
|
|
3250
3236
|
function parseReferrerPolicyFromHeader(c) {
|
|
3251
|
-
const l
|
|
3237
|
+
const l = (c.get("referrer-policy") || "").split(/[,\s]+/);
|
|
3252
3238
|
let d = "";
|
|
3253
|
-
for (const g of l
|
|
3239
|
+
for (const g of l) g && ReferrerPolicy.has(g) && (d = g);
|
|
3254
3240
|
return d;
|
|
3255
3241
|
}
|
|
3256
3242
|
u(parseReferrerPolicyFromHeader, "parseReferrerPolicyFromHeader");
|
|
3257
3243
|
const INTERNALS = Symbol("Request internals"), isRequest = u((c) => typeof c == "object" && typeof c[INTERNALS] == "object", "isRequest"), doBadDataWarn = require$$0$1.deprecate(() => {}, ".data is not a valid RequestInit property, use .body instead", "https://github.com/node-fetch/node-fetch/issues/1000 (request)"), Jt = class Jt$1 extends Body {
|
|
3258
|
-
constructor(l
|
|
3244
|
+
constructor(l, d = {}) {
|
|
3259
3245
|
let g;
|
|
3260
|
-
if (isRequest(l
|
|
3261
|
-
let b = d.method || l
|
|
3262
|
-
if (/^(delete|get|head|options|post|put)$/i.test(b) && (b = b.toUpperCase()), !isRequest(d) && "data" in d && doBadDataWarn(), (d.body != null || isRequest(l
|
|
3263
|
-
const R = d.body ? d.body : isRequest(l
|
|
3264
|
-
super(R, { size: d.size || l
|
|
3265
|
-
const w = new Headers(d.headers || l
|
|
3246
|
+
if (isRequest(l) ? g = new URL(l.url) : (g = new URL(l), l = {}), g.username !== "" || g.password !== "") throw new TypeError(`${g} is an url with embedded credentials.`);
|
|
3247
|
+
let b = d.method || l.method || "GET";
|
|
3248
|
+
if (/^(delete|get|head|options|post|put)$/i.test(b) && (b = b.toUpperCase()), !isRequest(d) && "data" in d && doBadDataWarn(), (d.body != null || isRequest(l) && l.body !== null) && (b === "GET" || b === "HEAD")) throw new TypeError("Request with GET/HEAD method cannot have body");
|
|
3249
|
+
const R = d.body ? d.body : isRequest(l) && l.body !== null ? clone(l) : null;
|
|
3250
|
+
super(R, { size: d.size || l.size || 0 });
|
|
3251
|
+
const w = new Headers(d.headers || l.headers || {});
|
|
3266
3252
|
if (R !== null && !w.has("Content-Type")) {
|
|
3267
3253
|
const B = extractContentType(R, this);
|
|
3268
3254
|
B && w.set("Content-Type", B);
|
|
3269
3255
|
}
|
|
3270
|
-
let A = isRequest(l
|
|
3256
|
+
let A = isRequest(l) ? l.signal : null;
|
|
3271
3257
|
if ("signal" in d && (A = d.signal), A != null && !isAbortSignal(A)) throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");
|
|
3272
|
-
let z = d.referrer == null ? l
|
|
3258
|
+
let z = d.referrer == null ? l.referrer : d.referrer;
|
|
3273
3259
|
if (z === "") z = "no-referrer";
|
|
3274
3260
|
else if (z) {
|
|
3275
3261
|
const B = new URL(z);
|
|
@@ -3277,12 +3263,12 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3277
3263
|
} else z = void 0;
|
|
3278
3264
|
this[INTERNALS] = {
|
|
3279
3265
|
method: b,
|
|
3280
|
-
redirect: d.redirect || l
|
|
3266
|
+
redirect: d.redirect || l.redirect || "follow",
|
|
3281
3267
|
headers: w,
|
|
3282
3268
|
parsedURL: g,
|
|
3283
3269
|
signal: A,
|
|
3284
3270
|
referrer: z
|
|
3285
|
-
}, this.follow = d.follow === void 0 ? l
|
|
3271
|
+
}, this.follow = d.follow === void 0 ? l.follow === void 0 ? 20 : l.follow : d.follow, this.compress = d.compress === void 0 ? l.compress === void 0 ? !0 : l.compress : d.compress, this.counter = d.counter || l.counter || 0, this.agent = d.agent || l.agent, this.highWaterMark = d.highWaterMark || l.highWaterMark || 16384, this.insecureHTTPParser = d.insecureHTTPParser || l.insecureHTTPParser || !1, this.referrerPolicy = d.referrerPolicy || l.referrerPolicy || "";
|
|
3286
3272
|
}
|
|
3287
3273
|
get method() {
|
|
3288
3274
|
return this[INTERNALS].method;
|
|
@@ -3307,8 +3293,8 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3307
3293
|
get referrerPolicy() {
|
|
3308
3294
|
return this[INTERNALS].referrerPolicy;
|
|
3309
3295
|
}
|
|
3310
|
-
set referrerPolicy(l
|
|
3311
|
-
this[INTERNALS].referrerPolicy = validateReferrerPolicy(l
|
|
3296
|
+
set referrerPolicy(l) {
|
|
3297
|
+
this[INTERNALS].referrerPolicy = validateReferrerPolicy(l);
|
|
3312
3298
|
}
|
|
3313
3299
|
clone() {
|
|
3314
3300
|
return new Jt$1(this);
|
|
@@ -3330,7 +3316,7 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3330
3316
|
referrerPolicy: { enumerable: !0 }
|
|
3331
3317
|
});
|
|
3332
3318
|
const getNodeRequestOptions = u((c) => {
|
|
3333
|
-
const { parsedURL: l
|
|
3319
|
+
const { parsedURL: l } = c[INTERNALS], d = new Headers(c[INTERNALS].headers);
|
|
3334
3320
|
d.has("Accept") || d.set("Accept", "*/*");
|
|
3335
3321
|
let g = null;
|
|
3336
3322
|
if (c.body === null && /^(post|put)$/i.test(c.method) && (g = "0"), c.body !== null) {
|
|
@@ -3339,12 +3325,12 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3339
3325
|
}
|
|
3340
3326
|
g && d.set("Content-Length", g), c.referrerPolicy === "" && (c.referrerPolicy = DEFAULT_REFERRER_POLICY), c.referrer && c.referrer !== "no-referrer" ? c[INTERNALS].referrer = determineRequestsReferrer(c) : c[INTERNALS].referrer = "no-referrer", c[INTERNALS].referrer instanceof URL && d.set("Referer", c.referrer), d.has("User-Agent") || d.set("User-Agent", "node-fetch"), c.compress && !d.has("Accept-Encoding") && d.set("Accept-Encoding", "gzip, deflate, br");
|
|
3341
3327
|
let { agent: b } = c;
|
|
3342
|
-
typeof b == "function" && (b = b(l
|
|
3343
|
-
const R = getSearch(l
|
|
3328
|
+
typeof b == "function" && (b = b(l));
|
|
3329
|
+
const R = getSearch(l);
|
|
3344
3330
|
return {
|
|
3345
|
-
parsedURL: l
|
|
3331
|
+
parsedURL: l,
|
|
3346
3332
|
options: {
|
|
3347
|
-
path: l
|
|
3333
|
+
path: l.pathname + R,
|
|
3348
3334
|
method: c.method,
|
|
3349
3335
|
headers: d[Symbol.for("nodejs.util.inspect.custom")](),
|
|
3350
3336
|
insecureHTTPParser: c.insecureHTTPParser,
|
|
@@ -3352,8 +3338,8 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3352
3338
|
}
|
|
3353
3339
|
};
|
|
3354
3340
|
}, "getNodeRequestOptions"), sn = class sn$1 extends FetchBaseError {
|
|
3355
|
-
constructor(l
|
|
3356
|
-
super(l
|
|
3341
|
+
constructor(l, d = "aborted") {
|
|
3342
|
+
super(l, d);
|
|
3357
3343
|
}
|
|
3358
3344
|
};
|
|
3359
3345
|
u(sn, "AbortError");
|
|
@@ -3362,8 +3348,8 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3362
3348
|
function requireNodeDomexception() {
|
|
3363
3349
|
if (hasRequiredNodeDomexception) return nodeDomexception;
|
|
3364
3350
|
if (hasRequiredNodeDomexception = 1, !globalThis.DOMException) try {
|
|
3365
|
-
const { MessageChannel: c } = __require("node:worker_threads"), l
|
|
3366
|
-
l
|
|
3351
|
+
const { MessageChannel: c } = __require("node:worker_threads"), l = new c().port1, d = /* @__PURE__ */ new ArrayBuffer();
|
|
3352
|
+
l.postMessage(d, [d, d]);
|
|
3367
3353
|
} catch (c) {
|
|
3368
3354
|
c.constructor.name === "DOMException" && (globalThis.DOMException = c.constructor);
|
|
3369
3355
|
}
|
|
@@ -3371,36 +3357,36 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3371
3357
|
}
|
|
3372
3358
|
u(requireNodeDomexception, "requireNodeDomexception");
|
|
3373
3359
|
var nodeDomexceptionExports = requireNodeDomexception();
|
|
3374
|
-
const DOMException = _commonjsHelpers.getDefaultExportFromCjs(nodeDomexceptionExports), { stat } = node_fs.promises, blobFromSync = u((c, l
|
|
3375
|
-
path: l
|
|
3360
|
+
const DOMException = _commonjsHelpers.getDefaultExportFromCjs(nodeDomexceptionExports), { stat } = node_fs.promises, blobFromSync = u((c, l) => fromBlob(node_fs.statSync(c), c, l), "blobFromSync"), blobFrom = u((c, l) => stat(c).then((d) => fromBlob(d, c, l)), "blobFrom"), fileFrom = u((c, l) => stat(c).then((d) => fromFile(d, c, l)), "fileFrom"), fileFromSync = u((c, l) => fromFile(node_fs.statSync(c), c, l), "fileFromSync"), fromBlob = u((c, l, d = "") => new Blob([new BlobDataItem({
|
|
3361
|
+
path: l,
|
|
3376
3362
|
size: c.size,
|
|
3377
3363
|
lastModified: c.mtimeMs,
|
|
3378
3364
|
start: 0
|
|
3379
|
-
})], { type: d }), "fromBlob"), fromFile = u((c, l
|
|
3380
|
-
path: l
|
|
3365
|
+
})], { type: d }), "fromBlob"), fromFile = u((c, l, d = "") => new File([new BlobDataItem({
|
|
3366
|
+
path: l,
|
|
3381
3367
|
size: c.size,
|
|
3382
3368
|
lastModified: c.mtimeMs,
|
|
3383
3369
|
start: 0
|
|
3384
|
-
})], node_path.basename(l
|
|
3370
|
+
})], node_path.basename(l), {
|
|
3385
3371
|
type: d,
|
|
3386
3372
|
lastModified: c.mtimeMs
|
|
3387
3373
|
}), "fromFile"), Xt = class Xt$1 {
|
|
3388
|
-
constructor(l
|
|
3374
|
+
constructor(l) {
|
|
3389
3375
|
ye(this, xe);
|
|
3390
3376
|
ye(this, Ue);
|
|
3391
|
-
ne(this, xe, l
|
|
3377
|
+
ne(this, xe, l.path), ne(this, Ue, l.start), this.size = l.size, this.lastModified = l.lastModified;
|
|
3392
3378
|
}
|
|
3393
|
-
slice(l
|
|
3379
|
+
slice(l, d) {
|
|
3394
3380
|
return new Xt$1({
|
|
3395
3381
|
path: D(this, xe),
|
|
3396
3382
|
lastModified: this.lastModified,
|
|
3397
|
-
size: d - l
|
|
3398
|
-
start: D(this, Ue) + l
|
|
3383
|
+
size: d - l,
|
|
3384
|
+
start: D(this, Ue) + l
|
|
3399
3385
|
});
|
|
3400
3386
|
}
|
|
3401
3387
|
async *stream() {
|
|
3402
|
-
const { mtimeMs: l
|
|
3403
|
-
if (l
|
|
3388
|
+
const { mtimeMs: l } = await stat(D(this, xe));
|
|
3389
|
+
if (l > this.lastModified) throw new DOMException("The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.", "NotReadableError");
|
|
3404
3390
|
yield* node_fs.createReadStream(D(this, xe), {
|
|
3405
3391
|
start: D(this, Ue),
|
|
3406
3392
|
end: D(this, Ue) + this.size - 1
|
|
@@ -3417,9 +3403,9 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3417
3403
|
"http:",
|
|
3418
3404
|
"https:"
|
|
3419
3405
|
]);
|
|
3420
|
-
async function fetch$1(c, l
|
|
3406
|
+
async function fetch$1(c, l) {
|
|
3421
3407
|
return new Promise((d, g) => {
|
|
3422
|
-
const b = new Request(c, l
|
|
3408
|
+
const b = new Request(c, l), { parsedURL: R, options: w } = getNodeRequestOptions(b);
|
|
3423
3409
|
if (!supportedSchemas.has(R.protocol)) throw new TypeError(`node-fetch cannot load ${c}. URL scheme "${R.protocol.replace(/:$/, "")}" is not supported.`);
|
|
3424
3410
|
if (R.protocol === "data:") {
|
|
3425
3411
|
const v = dataUriToBuffer(b.url);
|
|
@@ -3501,7 +3487,7 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3501
3487
|
"cookie",
|
|
3502
3488
|
"cookie2"
|
|
3503
3489
|
]) Y.headers.delete(wt);
|
|
3504
|
-
if (v.statusCode !== 303 && b.body && l
|
|
3490
|
+
if (v.statusCode !== 303 && b.body && l.body instanceof Stream__default.Readable) {
|
|
3505
3491
|
g(new FetchError("Cannot follow redirect with body being a readable stream", "unsupported-redirect")), $();
|
|
3506
3492
|
return;
|
|
3507
3493
|
}
|
|
@@ -3569,7 +3555,7 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3569
3555
|
});
|
|
3570
3556
|
}
|
|
3571
3557
|
u(fetch$1, "fetch$1");
|
|
3572
|
-
function fixResponseChunkedTransferBadEnding(c, l
|
|
3558
|
+
function fixResponseChunkedTransferBadEnding(c, l) {
|
|
3573
3559
|
const d = require$$0.Buffer.from(`0\r
|
|
3574
3560
|
\r
|
|
3575
3561
|
`);
|
|
@@ -3581,7 +3567,7 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3581
3567
|
const A = u(() => {
|
|
3582
3568
|
if (g && !b) {
|
|
3583
3569
|
const B = /* @__PURE__ */ new Error("Premature close");
|
|
3584
|
-
B.code = "ERR_STREAM_PREMATURE_CLOSE", l
|
|
3570
|
+
B.code = "ERR_STREAM_PREMATURE_CLOSE", l(B);
|
|
3585
3571
|
}
|
|
3586
3572
|
}, "onSocketClose"), z = u((B) => {
|
|
3587
3573
|
b = require$$0.Buffer.compare(B.slice(-5), d) === 0, !b && R && (b = require$$0.Buffer.compare(R.slice(-3), d.slice(0, 3)) === 0 && require$$0.Buffer.compare(B.slice(-2), d.slice(3)) === 0), R = B;
|
|
@@ -3594,8 +3580,8 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3594
3580
|
u(fixResponseChunkedTransferBadEnding, "fixResponseChunkedTransferBadEnding");
|
|
3595
3581
|
const privateData = /* @__PURE__ */ new WeakMap(), wrappers = /* @__PURE__ */ new WeakMap();
|
|
3596
3582
|
function pd(c) {
|
|
3597
|
-
const l
|
|
3598
|
-
return console.assert(l
|
|
3583
|
+
const l = privateData.get(c);
|
|
3584
|
+
return console.assert(l != null, "'this' is expected an Event object, but got", c), l;
|
|
3599
3585
|
}
|
|
3600
3586
|
u(pd, "pd");
|
|
3601
3587
|
function setCancelFlag(c) {
|
|
@@ -3606,22 +3592,22 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3606
3592
|
c.event.cancelable && (c.canceled = !0, typeof c.event.preventDefault == "function" && c.event.preventDefault());
|
|
3607
3593
|
}
|
|
3608
3594
|
u(setCancelFlag, "setCancelFlag");
|
|
3609
|
-
function Event(c, l
|
|
3595
|
+
function Event(c, l) {
|
|
3610
3596
|
privateData.set(this, {
|
|
3611
3597
|
eventTarget: c,
|
|
3612
|
-
event: l
|
|
3598
|
+
event: l,
|
|
3613
3599
|
eventPhase: 2,
|
|
3614
3600
|
currentTarget: c,
|
|
3615
3601
|
canceled: !1,
|
|
3616
3602
|
stopped: !1,
|
|
3617
3603
|
immediateStopped: !1,
|
|
3618
3604
|
passiveListener: null,
|
|
3619
|
-
timeStamp: l
|
|
3605
|
+
timeStamp: l.timeStamp || Date.now()
|
|
3620
3606
|
}), Object.defineProperty(this, "isTrusted", {
|
|
3621
3607
|
value: !1,
|
|
3622
3608
|
enumerable: !0
|
|
3623
3609
|
});
|
|
3624
|
-
const d = Object.keys(l
|
|
3610
|
+
const d = Object.keys(l);
|
|
3625
3611
|
for (let g = 0; g < d.length; ++g) {
|
|
3626
3612
|
const b = d[g];
|
|
3627
3613
|
b in this || Object.defineProperty(this, b, defineRedirectDescriptor(b));
|
|
@@ -3690,8 +3676,8 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3690
3676
|
},
|
|
3691
3677
|
set cancelBubble(c) {
|
|
3692
3678
|
if (!c) return;
|
|
3693
|
-
const l
|
|
3694
|
-
l
|
|
3679
|
+
const l = pd(this);
|
|
3680
|
+
l.stopped = !0, typeof l.event.cancelBubble == "boolean" && (l.event.cancelBubble = !0);
|
|
3695
3681
|
},
|
|
3696
3682
|
get returnValue() {
|
|
3697
3683
|
return !pd(this).canceled;
|
|
@@ -3710,8 +3696,8 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3710
3696
|
get() {
|
|
3711
3697
|
return pd(this).event[c];
|
|
3712
3698
|
},
|
|
3713
|
-
set(l
|
|
3714
|
-
pd(this).event[c] = l
|
|
3699
|
+
set(l) {
|
|
3700
|
+
pd(this).event[c] = l;
|
|
3715
3701
|
},
|
|
3716
3702
|
configurable: !0,
|
|
3717
3703
|
enumerable: !0
|
|
@@ -3721,16 +3707,16 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3721
3707
|
function defineCallDescriptor(c) {
|
|
3722
3708
|
return {
|
|
3723
3709
|
value() {
|
|
3724
|
-
const l
|
|
3725
|
-
return l
|
|
3710
|
+
const l = pd(this).event;
|
|
3711
|
+
return l[c].apply(l, arguments);
|
|
3726
3712
|
},
|
|
3727
3713
|
configurable: !0,
|
|
3728
3714
|
enumerable: !0
|
|
3729
3715
|
};
|
|
3730
3716
|
}
|
|
3731
3717
|
u(defineCallDescriptor, "defineCallDescriptor");
|
|
3732
|
-
function defineWrapper(c, l
|
|
3733
|
-
const d = Object.keys(l
|
|
3718
|
+
function defineWrapper(c, l) {
|
|
3719
|
+
const d = Object.keys(l);
|
|
3734
3720
|
if (d.length === 0) return c;
|
|
3735
3721
|
function g(b, R) {
|
|
3736
3722
|
c.call(this, b, R);
|
|
@@ -3743,7 +3729,7 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3743
3729
|
for (let b = 0; b < d.length; ++b) {
|
|
3744
3730
|
const R = d[b];
|
|
3745
3731
|
if (!(R in c.prototype)) {
|
|
3746
|
-
const A = typeof Object.getOwnPropertyDescriptor(l
|
|
3732
|
+
const A = typeof Object.getOwnPropertyDescriptor(l, R).value == "function";
|
|
3747
3733
|
Object.defineProperty(g.prototype, R, A ? defineCallDescriptor(R) : defineRedirectDescriptor(R));
|
|
3748
3734
|
}
|
|
3749
3735
|
}
|
|
@@ -3752,28 +3738,28 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3752
3738
|
u(defineWrapper, "defineWrapper");
|
|
3753
3739
|
function getWrapper(c) {
|
|
3754
3740
|
if (c == null || c === Object.prototype) return Event;
|
|
3755
|
-
let l
|
|
3756
|
-
return l
|
|
3741
|
+
let l = wrappers.get(c);
|
|
3742
|
+
return l ?? (l = defineWrapper(getWrapper(Object.getPrototypeOf(c)), c), wrappers.set(c, l)), l;
|
|
3757
3743
|
}
|
|
3758
3744
|
u(getWrapper, "getWrapper");
|
|
3759
|
-
function wrapEvent(c, l
|
|
3760
|
-
return new (getWrapper(Object.getPrototypeOf(l
|
|
3745
|
+
function wrapEvent(c, l) {
|
|
3746
|
+
return new (getWrapper(Object.getPrototypeOf(l)))(c, l);
|
|
3761
3747
|
}
|
|
3762
3748
|
u(wrapEvent, "wrapEvent");
|
|
3763
3749
|
function isStopped(c) {
|
|
3764
3750
|
return pd(c).immediateStopped;
|
|
3765
3751
|
}
|
|
3766
3752
|
u(isStopped, "isStopped");
|
|
3767
|
-
function setEventPhase(c, l
|
|
3768
|
-
pd(c).eventPhase = l
|
|
3753
|
+
function setEventPhase(c, l) {
|
|
3754
|
+
pd(c).eventPhase = l;
|
|
3769
3755
|
}
|
|
3770
3756
|
u(setEventPhase, "setEventPhase");
|
|
3771
|
-
function setCurrentTarget(c, l
|
|
3772
|
-
pd(c).currentTarget = l
|
|
3757
|
+
function setCurrentTarget(c, l) {
|
|
3758
|
+
pd(c).currentTarget = l;
|
|
3773
3759
|
}
|
|
3774
3760
|
u(setCurrentTarget, "setCurrentTarget");
|
|
3775
|
-
function setPassiveListener(c, l
|
|
3776
|
-
pd(c).passiveListener = l
|
|
3761
|
+
function setPassiveListener(c, l) {
|
|
3762
|
+
pd(c).passiveListener = l;
|
|
3777
3763
|
}
|
|
3778
3764
|
u(setPassiveListener, "setPassiveListener");
|
|
3779
3765
|
const listenersMap = /* @__PURE__ */ new WeakMap(), CAPTURE = 1, BUBBLE = 2, ATTRIBUTE = 3;
|
|
@@ -3782,9 +3768,9 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3782
3768
|
}
|
|
3783
3769
|
u(isObject, "isObject");
|
|
3784
3770
|
function getListeners(c) {
|
|
3785
|
-
const l
|
|
3786
|
-
if (l
|
|
3787
|
-
return l
|
|
3771
|
+
const l = listenersMap.get(c);
|
|
3772
|
+
if (l == null) throw new TypeError("'this' is expected an EventTarget object, but got another value.");
|
|
3773
|
+
return l;
|
|
3788
3774
|
}
|
|
3789
3775
|
u(getListeners, "getListeners");
|
|
3790
3776
|
function defineEventAttributeDescriptor(c) {
|
|
@@ -3797,14 +3783,14 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3797
3783
|
}
|
|
3798
3784
|
return null;
|
|
3799
3785
|
},
|
|
3800
|
-
set(l
|
|
3801
|
-
typeof l
|
|
3786
|
+
set(l) {
|
|
3787
|
+
typeof l != "function" && !isObject(l) && (l = null);
|
|
3802
3788
|
const d = getListeners(this);
|
|
3803
3789
|
let g = null, b = d.get(c);
|
|
3804
3790
|
for (; b != null;) b.listenerType === ATTRIBUTE ? g !== null ? g.next = b.next : b.next !== null ? d.set(c, b.next) : d.delete(c) : g = b, b = b.next;
|
|
3805
|
-
if (l
|
|
3791
|
+
if (l !== null) {
|
|
3806
3792
|
const R = {
|
|
3807
|
-
listener: l
|
|
3793
|
+
listener: l,
|
|
3808
3794
|
listenerType: ATTRIBUTE,
|
|
3809
3795
|
passive: !1,
|
|
3810
3796
|
once: !1,
|
|
@@ -3818,21 +3804,21 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3818
3804
|
};
|
|
3819
3805
|
}
|
|
3820
3806
|
u(defineEventAttributeDescriptor, "defineEventAttributeDescriptor");
|
|
3821
|
-
function defineEventAttribute(c, l
|
|
3822
|
-
Object.defineProperty(c, `on${l
|
|
3807
|
+
function defineEventAttribute(c, l) {
|
|
3808
|
+
Object.defineProperty(c, `on${l}`, defineEventAttributeDescriptor(l));
|
|
3823
3809
|
}
|
|
3824
3810
|
u(defineEventAttribute, "defineEventAttribute");
|
|
3825
3811
|
function defineCustomEventTarget(c) {
|
|
3826
|
-
function l
|
|
3812
|
+
function l() {
|
|
3827
3813
|
EventTarget.call(this);
|
|
3828
3814
|
}
|
|
3829
|
-
u(l
|
|
3830
|
-
value: l
|
|
3815
|
+
u(l, "CustomEventTarget"), l.prototype = Object.create(EventTarget.prototype, { constructor: {
|
|
3816
|
+
value: l,
|
|
3831
3817
|
configurable: !0,
|
|
3832
3818
|
writable: !0
|
|
3833
3819
|
} });
|
|
3834
|
-
for (let d = 0; d < c.length; ++d) defineEventAttribute(l
|
|
3835
|
-
return l
|
|
3820
|
+
for (let d = 0; d < c.length; ++d) defineEventAttribute(l.prototype, c[d]);
|
|
3821
|
+
return l;
|
|
3836
3822
|
}
|
|
3837
3823
|
u(defineCustomEventTarget, "defineCustomEventTarget");
|
|
3838
3824
|
function EventTarget() {
|
|
@@ -3843,17 +3829,17 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3843
3829
|
if (arguments.length === 1 && Array.isArray(arguments[0])) return defineCustomEventTarget(arguments[0]);
|
|
3844
3830
|
if (arguments.length > 0) {
|
|
3845
3831
|
const c = new Array(arguments.length);
|
|
3846
|
-
for (let l
|
|
3832
|
+
for (let l = 0; l < arguments.length; ++l) c[l] = arguments[l];
|
|
3847
3833
|
return defineCustomEventTarget(c);
|
|
3848
3834
|
}
|
|
3849
3835
|
throw new TypeError("Cannot call a class as a function");
|
|
3850
3836
|
}
|
|
3851
3837
|
u(EventTarget, "EventTarget"), EventTarget.prototype = {
|
|
3852
|
-
addEventListener(c, l
|
|
3853
|
-
if (l
|
|
3854
|
-
if (typeof l
|
|
3838
|
+
addEventListener(c, l, d) {
|
|
3839
|
+
if (l == null) return;
|
|
3840
|
+
if (typeof l != "function" && !isObject(l)) throw new TypeError("'listener' should be a function or an object.");
|
|
3855
3841
|
const g = getListeners(this), b = isObject(d), w = (b ? !!d.capture : !!d) ? CAPTURE : BUBBLE, A = {
|
|
3856
|
-
listener: l
|
|
3842
|
+
listener: l,
|
|
3857
3843
|
listenerType: w,
|
|
3858
3844
|
passive: b && !!d.passive,
|
|
3859
3845
|
once: b && !!d.once,
|
|
@@ -3866,17 +3852,17 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3866
3852
|
}
|
|
3867
3853
|
let B = null;
|
|
3868
3854
|
for (; z != null;) {
|
|
3869
|
-
if (z.listener === l
|
|
3855
|
+
if (z.listener === l && z.listenerType === w) return;
|
|
3870
3856
|
B = z, z = z.next;
|
|
3871
3857
|
}
|
|
3872
3858
|
B.next = A;
|
|
3873
3859
|
},
|
|
3874
|
-
removeEventListener(c, l
|
|
3875
|
-
if (l
|
|
3860
|
+
removeEventListener(c, l, d) {
|
|
3861
|
+
if (l == null) return;
|
|
3876
3862
|
const g = getListeners(this), R = (isObject(d) ? !!d.capture : !!d) ? CAPTURE : BUBBLE;
|
|
3877
3863
|
let w = null, A = g.get(c);
|
|
3878
3864
|
for (; A != null;) {
|
|
3879
|
-
if (A.listener === l
|
|
3865
|
+
if (A.listener === l && A.listenerType === R) {
|
|
3880
3866
|
w !== null ? w.next = A.next : A.next !== null ? g.set(c, A.next) : g.delete(c);
|
|
3881
3867
|
return;
|
|
3882
3868
|
}
|
|
@@ -3885,13 +3871,13 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3885
3871
|
},
|
|
3886
3872
|
dispatchEvent(c) {
|
|
3887
3873
|
if (c == null || typeof c.type != "string") throw new TypeError("\"event.type\" should be a string.");
|
|
3888
|
-
const l
|
|
3889
|
-
let g = l
|
|
3874
|
+
const l = getListeners(this), d = c.type;
|
|
3875
|
+
let g = l.get(d);
|
|
3890
3876
|
if (g == null) return !0;
|
|
3891
3877
|
const b = wrapEvent(this, c);
|
|
3892
3878
|
let R = null;
|
|
3893
3879
|
for (; g != null;) {
|
|
3894
|
-
if (g.once ? R !== null ? R.next = g.next : g.next !== null ? l
|
|
3880
|
+
if (g.once ? R !== null ? R.next = g.next : g.next !== null ? l.set(d, g.next) : l.delete(d) : R = g, setPassiveListener(b, g.passive ? g.listener : null), typeof g.listener == "function") try {
|
|
3895
3881
|
g.listener.call(this, b);
|
|
3896
3882
|
} catch (w) {
|
|
3897
3883
|
typeof console < "u" && typeof console.error == "function" && console.error(w);
|
|
@@ -3912,9 +3898,9 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3912
3898
|
throw super(), /* @__PURE__ */ new TypeError("AbortSignal cannot be constructed directly");
|
|
3913
3899
|
}
|
|
3914
3900
|
get aborted() {
|
|
3915
|
-
const l
|
|
3916
|
-
if (typeof l
|
|
3917
|
-
return l
|
|
3901
|
+
const l = abortedFlags.get(this);
|
|
3902
|
+
if (typeof l != "boolean") throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`);
|
|
3903
|
+
return l;
|
|
3918
3904
|
}
|
|
3919
3905
|
};
|
|
3920
3906
|
u(an, "AbortSignal");
|
|
@@ -3947,9 +3933,9 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3947
3933
|
}, u(at, "AbortController"), at);
|
|
3948
3934
|
const signals = /* @__PURE__ */ new WeakMap();
|
|
3949
3935
|
function getSignal(c) {
|
|
3950
|
-
const l
|
|
3951
|
-
if (l
|
|
3952
|
-
return l
|
|
3936
|
+
const l = signals.get(c);
|
|
3937
|
+
if (l == null) throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${c === null ? "null" : typeof c}`);
|
|
3938
|
+
return l;
|
|
3953
3939
|
}
|
|
3954
3940
|
u(getSignal, "getSignal"), Object.defineProperties(AbortController$1.prototype, {
|
|
3955
3941
|
signal: { enumerable: !0 },
|
|
@@ -3958,8 +3944,8 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3958
3944
|
configurable: !0,
|
|
3959
3945
|
value: "AbortController"
|
|
3960
3946
|
});
|
|
3961
|
-
var t = Object.defineProperty, e = u((c, l
|
|
3962
|
-
value: l
|
|
3947
|
+
var t = Object.defineProperty, e = u((c, l) => t(c, "name", {
|
|
3948
|
+
value: l,
|
|
3963
3949
|
configurable: !0
|
|
3964
3950
|
}), "e");
|
|
3965
3951
|
const fetch = fetch$1;
|
|
@@ -3971,5 +3957,7 @@ Content-Type: ${R.type || "application/octet-stream"}\r
|
|
|
3971
3957
|
}));
|
|
3972
3958
|
|
|
3973
3959
|
//#endregion
|
|
3974
|
-
export
|
|
3975
|
-
|
|
3960
|
+
export default require_node();
|
|
3961
|
+
|
|
3962
|
+
export { require_node };
|
|
3963
|
+
//# sourceMappingURL=node.mjs.map
|