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