diff --git a/.eslintrc.js b/.eslintrc.cjs similarity index 100% rename from .eslintrc.js rename to .eslintrc.cjs diff --git a/.licenses/npm/data-uri-to-buffer.dep.yml b/.licenses/npm/data-uri-to-buffer.dep.yml new file mode 100644 index 000000000..4fd3cc707 --- /dev/null +++ b/.licenses/npm/data-uri-to-buffer.dep.yml @@ -0,0 +1,35 @@ +--- +name: data-uri-to-buffer +version: 4.0.1 +type: npm +summary: Generate a Buffer instance from a Data URI string +homepage: https://github.com/TooTallNate/node-data-uri-to-buffer +license: mit +licenses: +- sources: README.md + text: |- + (The MIT License) + + Copyright (c) 2014 Nathan Rajlich <nathan@tootallnate.net> + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + 'Software'), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + [rfc]: http://tools.ietf.org/html/rfc2397 +notices: [] diff --git a/.licenses/npm/whatwg-url.dep.yml b/.licenses/npm/fetch-blob.dep.yml similarity index 75% rename from .licenses/npm/whatwg-url.dep.yml rename to .licenses/npm/fetch-blob.dep.yml index ac3e1f6b9..cbcf11b8b 100644 --- a/.licenses/npm/whatwg-url.dep.yml +++ b/.licenses/npm/fetch-blob.dep.yml @@ -1,16 +1,16 @@ --- -name: whatwg-url -version: 5.0.0 +name: fetch-blob +version: 3.2.0 type: npm -summary: An implementation of the WHATWG URL Standard's URL API and parsing machinery -homepage: +summary: Blob & File implementation in Node.js, originally from node-fetch. +homepage: https://github.com/node-fetch/fetch-blob#readme license: mit licenses: -- sources: LICENSE.txt +- sources: LICENSE text: | - The MIT License (MIT) + MIT License - Copyright (c) 2015–2016 Sebastian Mayr + Copyright (c) 2019 David Frank Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -19,14 +19,14 @@ licenses: copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. notices: [] diff --git a/.licenses/npm/tr46.dep.yml b/.licenses/npm/formdata-polyfill.dep.yml similarity index 84% rename from .licenses/npm/tr46.dep.yml rename to .licenses/npm/formdata-polyfill.dep.yml index 3bacc6ec4..7974d2272 100644 --- a/.licenses/npm/tr46.dep.yml +++ b/.licenses/npm/formdata-polyfill.dep.yml @@ -1,15 +1,17 @@ --- -name: tr46 -version: 0.0.3 +name: formdata-polyfill +version: 4.0.10 type: npm -summary: An implementation of the Unicode TR46 spec -homepage: https://github.com/Sebmaster/tr46.js#readme +summary: HTML5 `FormData` for Browsers and Node. +homepage: https://github.com/jimmywarting/FormData#readme license: mit licenses: -- sources: Auto-generated MIT license text +- sources: LICENSE text: | MIT License + Copyright (c) 2016 Jimmy Karl Roland Wärting + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights diff --git a/.licenses/npm/node-domexception.dep.yml b/.licenses/npm/node-domexception.dep.yml new file mode 100644 index 000000000..cb5b96a9e --- /dev/null +++ b/.licenses/npm/node-domexception.dep.yml @@ -0,0 +1,32 @@ +--- +name: node-domexception +version: 1.0.0 +type: npm +summary: An implementation of the DOMException class from NodeJS +homepage: https://github.com/jimmywarting/node-domexception#readme +license: mit +licenses: +- sources: LICENSE + text: | + MIT License + + Copyright (c) 2021 Jimmy Wärting + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +notices: [] diff --git a/.licenses/npm/node-fetch.dep.yml b/.licenses/npm/node-fetch.dep.yml index ec9a760d2..f40efc7f2 100644 --- a/.licenses/npm/node-fetch.dep.yml +++ b/.licenses/npm/node-fetch.dep.yml @@ -1,16 +1,16 @@ --- name: node-fetch -version: 2.7.0 +version: 3.3.2 type: npm -summary: A light-weight module that brings window.fetch to node.js -homepage: https://github.com/bitinn/node-fetch +summary: A light-weight module that brings Fetch API to node.js +homepage: https://github.com/node-fetch/node-fetch license: mit licenses: - sources: LICENSE.md text: |+ The MIT License (MIT) - Copyright (c) 2016 David Frank + Copyright (c) 2016 - 2020 Node Fetch Team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -32,25 +32,14 @@ licenses: - sources: README.md text: |- - MIT + [MIT](LICENSE.md) - [npm-image]: https://flat.badgen.net/npm/v/node-fetch - [npm-url]: https://www.npmjs.com/package/node-fetch - [travis-image]: https://flat.badgen.net/travis/bitinn/node-fetch - [travis-url]: https://travis-ci.org/bitinn/node-fetch - [codecov-image]: https://flat.badgen.net/codecov/c/github/bitinn/node-fetch/master - [codecov-url]: https://codecov.io/gh/bitinn/node-fetch - [install-size-image]: https://flat.badgen.net/packagephobia/install/node-fetch - [install-size-url]: https://packagephobia.now.sh/result?p=node-fetch - [discord-image]: https://img.shields.io/discord/619915844268326952?color=%237289DA&label=Discord&style=flat-square - [discord-url]: https://discord.gg/Zxbndcm - [opencollective-image]: https://opencollective.com/node-fetch/backers.svg - [opencollective-url]: https://opencollective.com/node-fetch [whatwg-fetch]: https://fetch.spec.whatwg.org/ [response-init]: https://fetch.spec.whatwg.org/#responseinit [node-readable]: https://nodejs.org/api/stream.html#stream_readable_streams [mdn-headers]: https://developer.mozilla.org/en-US/docs/Web/API/Headers - [LIMITS.md]: https://github.com/bitinn/node-fetch/blob/master/LIMITS.md - [ERROR-HANDLING.md]: https://github.com/bitinn/node-fetch/blob/master/ERROR-HANDLING.md - [UPGRADE-GUIDE.md]: https://github.com/bitinn/node-fetch/blob/master/UPGRADE-GUIDE.md + [error-handling.md]: https://github.com/node-fetch/node-fetch/blob/master/docs/ERROR-HANDLING.md + [FormData]: https://developer.mozilla.org/en-US/docs/Web/API/FormData + [Blob]: https://developer.mozilla.org/en-US/docs/Web/API/Blob + [File]: https://developer.mozilla.org/en-US/docs/Web/API/File notices: [] diff --git a/.licenses/npm/web-streams-polyfill.dep.yml b/.licenses/npm/web-streams-polyfill.dep.yml new file mode 100644 index 000000000..089ca2e68 --- /dev/null +++ b/.licenses/npm/web-streams-polyfill.dep.yml @@ -0,0 +1,33 @@ +--- +name: web-streams-polyfill +version: 3.3.3 +type: npm +summary: Web Streams, based on the WHATWG spec reference implementation +homepage: https://github.com/MattiasBuelens/web-streams-polyfill#readme +license: mit +licenses: +- sources: LICENSE + text: | + The MIT License (MIT) + + Copyright (c) 2024 Mattias Buelens + Copyright (c) 2016 Diwank Singh Tomer + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +notices: [] diff --git a/.licenses/npm/webidl-conversions.dep.yml b/.licenses/npm/webidl-conversions.dep.yml deleted file mode 100644 index 40585680b..000000000 --- a/.licenses/npm/webidl-conversions.dep.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -name: webidl-conversions -version: 3.0.1 -type: npm -summary: Implements the WebIDL algorithms for converting to and from JavaScript values -homepage: -license: bsd-2-clause -licenses: -- sources: LICENSE.md - text: | - # The BSD 2-Clause License - - Copyright (c) 2014, Domenic Denicola - All rights reserved. - - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -notices: [] diff --git a/.prettierrc.js b/.prettierrc.js index 468cdb1e2..d098bfaac 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,5 +1,5 @@ // This is a reusable configuration file copied from https://github.com/actions/reusable-workflows/tree/main/reusable-configurations. Please don't make changes to this file as it's the subject of an automatic update. -module.exports = { +export default { printWidth: 80, tabWidth: 2, useTabs: false, diff --git a/__tests__/authutil.test.ts b/__tests__/authutil.test.ts index 0676a8506..2027b7e68 100644 --- a/__tests__/authutil.test.ts +++ b/__tests__/authutil.test.ts @@ -3,17 +3,22 @@ import fs from 'fs'; import * as path from 'path'; import * as core from '@actions/core'; import * as io from '@actions/io'; -import * as auth from '../src/authutil'; -import * as cacheUtils from '../src/cache-utils'; +import * as auth from '../src/authutil.js'; +import * as cacheUtils from '../src/cache-utils.js'; +import {fileURLToPath} from 'url'; +import {jest, describe, beforeEach, afterEach, it, expect} from '@jest/globals'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); let rcFile: string; describe('authutil tests', () => { const _runnerDir = path.join(__dirname, 'runner'); - let cnSpy: jest.SpyInstance; - let logSpy: jest.SpyInstance; - let dbgSpy: jest.SpyInstance; + let cnSpy: ReturnType; + let logSpy: ReturnType; + let dbgSpy: ReturnType; beforeAll(async () => { const randPath = path.join(Math.random().toString(36).substring(7)); diff --git a/__tests__/cache-restore.test.ts b/__tests__/cache-restore.test.ts index 0bbf28126..c00affde3 100644 --- a/__tests__/cache-restore.test.ts +++ b/__tests__/cache-restore.test.ts @@ -3,9 +3,13 @@ import * as cache from '@actions/cache'; import * as path from 'path'; import * as glob from '@actions/glob'; import osm from 'os'; +import {fileURLToPath} from 'url'; -import * as utils from '../src/cache-utils'; -import {restoreCache} from '../src/cache-restore'; +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); + +import * as utils from '../src/cache-utils.js'; +import {restoreCache} from '../src/cache-restore.js'; describe('cache-restore', () => { process.env['GITHUB_WORKSPACE'] = path.join(__dirname, 'data'); diff --git a/__tests__/cache-save.test.ts b/__tests__/cache-save.test.ts index 79a28fd41..20057a1c1 100644 --- a/__tests__/cache-save.test.ts +++ b/__tests__/cache-save.test.ts @@ -3,10 +3,14 @@ import * as cache from '@actions/cache'; import * as glob from '@actions/glob'; import fs from 'fs'; import path from 'path'; +import {fileURLToPath} from 'url'; -import * as utils from '../src/cache-utils'; -import {run} from '../src/cache-save'; -import {State} from '../src/constants'; +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); + +import * as utils from '../src/cache-utils.js'; +import {run} from '../src/cache-save.js'; +import {State} from '../src/constants.js'; describe('run', () => { const yarnFileHash = diff --git a/__tests__/cache-utils.test.ts b/__tests__/cache-utils.test.ts index f14848de0..fd5f49339 100644 --- a/__tests__/cache-utils.test.ts +++ b/__tests__/cache-utils.test.ts @@ -1,19 +1,23 @@ import * as core from '@actions/core'; import * as cache from '@actions/cache'; import path from 'path'; -import * as utils from '../src/cache-utils'; +import * as utils from '../src/cache-utils.js'; import { PackageManagerInfo, isCacheFeatureAvailable, supportedPackageManagers, isGhes, resetProjectDirectoriesMemoized -} from '../src/cache-utils'; +} from '../src/cache-utils.js'; import fs from 'fs'; -import * as cacheUtils from '../src/cache-utils'; +import * as cacheUtils from '../src/cache-utils.js'; import * as glob from '@actions/glob'; import {Globber} from '@actions/glob'; -import {MockGlobber} from './mock/glob-mock'; +import {MockGlobber} from './mock/glob-mock.js'; +import {fileURLToPath} from 'url'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); describe('cache-utils', () => { const versionYarn1 = '1.2.3'; diff --git a/__tests__/canary-installer.test.ts b/__tests__/canary-installer.test.ts index 4393d7ef2..1f3f4ec7f 100644 --- a/__tests__/canary-installer.test.ts +++ b/__tests__/canary-installer.test.ts @@ -8,9 +8,9 @@ import fs from 'fs'; import cp from 'child_process'; import osm from 'os'; import path from 'path'; -import * as main from '../src/main'; -import * as auth from '../src/authutil'; -import {INodeVersion} from '../src/distributions/base-models'; +import * as main from '../src/main.js'; +import * as auth from '../src/authutil.js'; +import {INodeVersion} from '../src/distributions/base-models.js'; import nodeTestManifest from './data/versions-manifest.json'; import nodeTestDist from './data/node-dist-index.json'; diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index ba26e64bd..a59339fe8 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -7,37 +7,42 @@ import * as io from '@actions/io'; import fs from 'fs'; import path from 'path'; import osm from 'os'; +import {fileURLToPath} from 'url'; +import {jest, describe, beforeEach, afterEach, it, expect} from '@jest/globals'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); import each from 'jest-each'; -import * as main from '../src/main'; -import * as util from '../src/util'; -import OfficialBuilds from '../src/distributions/official_builds/official_builds'; +import * as main from '../src/main.js'; +import * as util from '../src/util.js'; +import OfficialBuilds from '../src/distributions/official_builds/official_builds.js'; describe('main tests', () => { let inputs = {} as any; let os = {} as any; - let infoSpy: jest.SpyInstance; - let warningSpy: jest.SpyInstance; - let saveStateSpy: jest.SpyInstance; - let inSpy: jest.SpyInstance; - let setOutputSpy: jest.SpyInstance; - let startGroupSpy: jest.SpyInstance; - let endGroupSpy: jest.SpyInstance; + let infoSpy: ReturnType; + let warningSpy: ReturnType; + let saveStateSpy: ReturnType; + let inSpy: ReturnType; + let setOutputSpy: ReturnType; + let startGroupSpy: ReturnType; + let endGroupSpy: ReturnType; - let whichSpy: jest.SpyInstance; + let whichSpy: ReturnType; - let existsSpy: jest.SpyInstance; + let existsSpy: ReturnType; - let getExecOutputSpy: jest.SpyInstance; + let getExecOutputSpy: ReturnType; - let getNodeVersionFromFileSpy: jest.SpyInstance; - let cnSpy: jest.SpyInstance; - let findSpy: jest.SpyInstance; - let isCacheActionAvailable: jest.SpyInstance; + let getNodeVersionFromFileSpy: ReturnType; + let cnSpy: ReturnType; + let findSpy: ReturnType; + let isCacheActionAvailable: ReturnType; - let setupNodeJsSpy: jest.SpyInstance; + let setupNodeJsSpy: ReturnType; beforeEach(() => { inputs = {}; diff --git a/__tests__/mock/glob-mock.test.ts b/__tests__/mock/glob-mock.test.ts index db10ced1c..0f22a73e4 100644 --- a/__tests__/mock/glob-mock.test.ts +++ b/__tests__/mock/glob-mock.test.ts @@ -1,4 +1,4 @@ -import {MockGlobber} from './glob-mock'; +import {MockGlobber} from './glob-mock.js'; describe('mocked globber tests', () => { it('globber should return generator', async () => { diff --git a/__tests__/nightly-installer.test.ts b/__tests__/nightly-installer.test.ts index eece2c344..606bdc9ef 100644 --- a/__tests__/nightly-installer.test.ts +++ b/__tests__/nightly-installer.test.ts @@ -8,9 +8,9 @@ import fs from 'fs'; import cp from 'child_process'; import osm from 'os'; import path from 'path'; -import * as main from '../src/main'; -import * as auth from '../src/authutil'; -import {INodeVersion} from '../src/distributions/base-models'; +import * as main from '../src/main.js'; +import * as auth from '../src/authutil.js'; +import {INodeVersion} from '../src/distributions/base-models.js'; import nodeTestManifest from './data/versions-manifest.json'; import nodeTestDist from './data/node-dist-index.json'; diff --git a/__tests__/rc-installer.test.ts b/__tests__/rc-installer.test.ts index 736260a4d..c0a2a46e9 100644 --- a/__tests__/rc-installer.test.ts +++ b/__tests__/rc-installer.test.ts @@ -8,9 +8,9 @@ import fs from 'fs'; import cp from 'child_process'; import osm from 'os'; import path from 'path'; -import * as main from '../src/main'; -import * as auth from '../src/authutil'; -import {INodeVersion} from '../src/distributions/base-models'; +import * as main from '../src/main.js'; +import * as auth from '../src/authutil.js'; +import {INodeVersion} from '../src/distributions/base-models.js'; import nodeTestDist from './data/node-dist-index.json'; import nodeTestDistNightly from './data/node-nightly-index.json'; diff --git a/dist/cache-save/101.index.js b/dist/cache-save/101.index.js new file mode 100644 index 000000000..1bacbed5f --- /dev/null +++ b/dist/cache-save/101.index.js @@ -0,0 +1,449 @@ +export const id = 101; +export const ids = [101]; +export const modules = { + +/***/ 9101: +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ toFormData: () => (/* binding */ toFormData) +/* harmony export */ }); +/* harmony import */ var fetch_blob_from_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9802); +/* harmony import */ var formdata_polyfill_esm_min_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3018); + + + +let s = 0; +const S = { + START_BOUNDARY: s++, + HEADER_FIELD_START: s++, + HEADER_FIELD: s++, + HEADER_VALUE_START: s++, + HEADER_VALUE: s++, + HEADER_VALUE_ALMOST_DONE: s++, + HEADERS_ALMOST_DONE: s++, + PART_DATA_START: s++, + PART_DATA: s++, + END: s++ +}; + +let f = 1; +const F = { + PART_BOUNDARY: f, + LAST_BOUNDARY: f *= 2 +}; + +const LF = 10; +const CR = 13; +const SPACE = 32; +const HYPHEN = 45; +const COLON = 58; +const A = 97; +const Z = 122; + +const lower = c => c | 0x20; + +const noop = () => {}; + +class MultipartParser { + /** + * @param {string} boundary + */ + constructor(boundary) { + this.index = 0; + this.flags = 0; + + this.onHeaderEnd = noop; + this.onHeaderField = noop; + this.onHeadersEnd = noop; + this.onHeaderValue = noop; + this.onPartBegin = noop; + this.onPartData = noop; + this.onPartEnd = noop; + + this.boundaryChars = {}; + + boundary = '\r\n--' + boundary; + const ui8a = new Uint8Array(boundary.length); + for (let i = 0; i < boundary.length; i++) { + ui8a[i] = boundary.charCodeAt(i); + this.boundaryChars[ui8a[i]] = true; + } + + this.boundary = ui8a; + this.lookbehind = new Uint8Array(this.boundary.length + 8); + this.state = S.START_BOUNDARY; + } + + /** + * @param {Uint8Array} data + */ + write(data) { + let i = 0; + const length_ = data.length; + let previousIndex = this.index; + let {lookbehind, boundary, boundaryChars, index, state, flags} = this; + const boundaryLength = this.boundary.length; + const boundaryEnd = boundaryLength - 1; + const bufferLength = data.length; + let c; + let cl; + + const mark = name => { + this[name + 'Mark'] = i; + }; + + const clear = name => { + delete this[name + 'Mark']; + }; + + const callback = (callbackSymbol, start, end, ui8a) => { + if (start === undefined || start !== end) { + this[callbackSymbol](ui8a && ui8a.subarray(start, end)); + } + }; + + const dataCallback = (name, clear) => { + const markSymbol = name + 'Mark'; + if (!(markSymbol in this)) { + return; + } + + if (clear) { + callback(name, this[markSymbol], i, data); + delete this[markSymbol]; + } else { + callback(name, this[markSymbol], data.length, data); + this[markSymbol] = 0; + } + }; + + for (i = 0; i < length_; i++) { + c = data[i]; + + switch (state) { + case S.START_BOUNDARY: + if (index === boundary.length - 2) { + if (c === HYPHEN) { + flags |= F.LAST_BOUNDARY; + } else if (c !== CR) { + return; + } + + index++; + break; + } else if (index - 1 === boundary.length - 2) { + if (flags & F.LAST_BOUNDARY && c === HYPHEN) { + state = S.END; + flags = 0; + } else if (!(flags & F.LAST_BOUNDARY) && c === LF) { + index = 0; + callback('onPartBegin'); + state = S.HEADER_FIELD_START; + } else { + return; + } + + break; + } + + if (c !== boundary[index + 2]) { + index = -2; + } + + if (c === boundary[index + 2]) { + index++; + } + + break; + case S.HEADER_FIELD_START: + state = S.HEADER_FIELD; + mark('onHeaderField'); + index = 0; + // falls through + case S.HEADER_FIELD: + if (c === CR) { + clear('onHeaderField'); + state = S.HEADERS_ALMOST_DONE; + break; + } + + index++; + if (c === HYPHEN) { + break; + } + + if (c === COLON) { + if (index === 1) { + // empty header field + return; + } + + dataCallback('onHeaderField', true); + state = S.HEADER_VALUE_START; + break; + } + + cl = lower(c); + if (cl < A || cl > Z) { + return; + } + + break; + case S.HEADER_VALUE_START: + if (c === SPACE) { + break; + } + + mark('onHeaderValue'); + state = S.HEADER_VALUE; + // falls through + case S.HEADER_VALUE: + if (c === CR) { + dataCallback('onHeaderValue', true); + callback('onHeaderEnd'); + state = S.HEADER_VALUE_ALMOST_DONE; + } + + break; + case S.HEADER_VALUE_ALMOST_DONE: + if (c !== LF) { + return; + } + + state = S.HEADER_FIELD_START; + break; + case S.HEADERS_ALMOST_DONE: + if (c !== LF) { + return; + } + + callback('onHeadersEnd'); + state = S.PART_DATA_START; + break; + case S.PART_DATA_START: + state = S.PART_DATA; + mark('onPartData'); + // falls through + case S.PART_DATA: + previousIndex = index; + + if (index === 0) { + // boyer-moore derrived algorithm to safely skip non-boundary data + i += boundaryEnd; + while (i < bufferLength && !(data[i] in boundaryChars)) { + i += boundaryLength; + } + + i -= boundaryEnd; + c = data[i]; + } + + if (index < boundary.length) { + if (boundary[index] === c) { + if (index === 0) { + dataCallback('onPartData', true); + } + + index++; + } else { + index = 0; + } + } else if (index === boundary.length) { + index++; + if (c === CR) { + // CR = part boundary + flags |= F.PART_BOUNDARY; + } else if (c === HYPHEN) { + // HYPHEN = end boundary + flags |= F.LAST_BOUNDARY; + } else { + index = 0; + } + } else if (index - 1 === boundary.length) { + if (flags & F.PART_BOUNDARY) { + index = 0; + if (c === LF) { + // unset the PART_BOUNDARY flag + flags &= ~F.PART_BOUNDARY; + callback('onPartEnd'); + callback('onPartBegin'); + state = S.HEADER_FIELD_START; + break; + } + } else if (flags & F.LAST_BOUNDARY) { + if (c === HYPHEN) { + callback('onPartEnd'); + state = S.END; + flags = 0; + } else { + index = 0; + } + } else { + index = 0; + } + } + + if (index > 0) { + // when matching a possible boundary, keep a lookbehind reference + // in case it turns out to be a false lead + lookbehind[index - 1] = c; + } else if (previousIndex > 0) { + // if our boundary turned out to be rubbish, the captured lookbehind + // belongs to partData + const _lookbehind = new Uint8Array(lookbehind.buffer, lookbehind.byteOffset, lookbehind.byteLength); + callback('onPartData', 0, previousIndex, _lookbehind); + previousIndex = 0; + mark('onPartData'); + + // reconsider the current character even so it interrupted the sequence + // it could be the beginning of a new sequence + i--; + } + + break; + case S.END: + break; + default: + throw new Error(`Unexpected state entered: ${state}`); + } + } + + dataCallback('onHeaderField'); + dataCallback('onHeaderValue'); + dataCallback('onPartData'); + + // Update properties for the next call + this.index = index; + this.state = state; + this.flags = flags; + } + + end() { + if ((this.state === S.HEADER_FIELD_START && this.index === 0) || + (this.state === S.PART_DATA && this.index === this.boundary.length)) { + this.onPartEnd(); + } else if (this.state !== S.END) { + throw new Error('MultipartParser.end(): stream ended unexpectedly'); + } + } +} + +function _fileName(headerValue) { + // matches either a quoted-string or a token (RFC 2616 section 19.5.1) + const m = headerValue.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i); + if (!m) { + return; + } + + const match = m[2] || m[3] || ''; + let filename = match.slice(match.lastIndexOf('\\') + 1); + filename = filename.replace(/%22/g, '"'); + filename = filename.replace(/&#(\d{4});/g, (m, code) => { + return String.fromCharCode(code); + }); + return filename; +} + +async function toFormData(Body, ct) { + if (!/multipart/i.test(ct)) { + throw new TypeError('Failed to fetch'); + } + + const m = ct.match(/boundary=(?:"([^"]+)"|([^;]+))/i); + + if (!m) { + throw new TypeError('no or bad content-type header, no multipart boundary'); + } + + const parser = new MultipartParser(m[1] || m[2]); + + let headerField; + let headerValue; + let entryValue; + let entryName; + let contentType; + let filename; + const entryChunks = []; + const formData = new formdata_polyfill_esm_min_js__WEBPACK_IMPORTED_MODULE_1__/* .FormData */ .fS(); + + const onPartData = ui8a => { + entryValue += decoder.decode(ui8a, {stream: true}); + }; + + const appendToFile = ui8a => { + entryChunks.push(ui8a); + }; + + const appendFileToFormData = () => { + const file = new fetch_blob_from_js__WEBPACK_IMPORTED_MODULE_0__/* .File */ .ZH(entryChunks, filename, {type: contentType}); + formData.append(entryName, file); + }; + + const appendEntryToFormData = () => { + formData.append(entryName, entryValue); + }; + + const decoder = new TextDecoder('utf-8'); + decoder.decode(); + + parser.onPartBegin = function () { + parser.onPartData = onPartData; + parser.onPartEnd = appendEntryToFormData; + + headerField = ''; + headerValue = ''; + entryValue = ''; + entryName = ''; + contentType = ''; + filename = null; + entryChunks.length = 0; + }; + + parser.onHeaderField = function (ui8a) { + headerField += decoder.decode(ui8a, {stream: true}); + }; + + parser.onHeaderValue = function (ui8a) { + headerValue += decoder.decode(ui8a, {stream: true}); + }; + + parser.onHeaderEnd = function () { + headerValue += decoder.decode(); + headerField = headerField.toLowerCase(); + + if (headerField === 'content-disposition') { + // matches either a quoted-string or a token (RFC 2616 section 19.5.1) + const m = headerValue.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i); + + if (m) { + entryName = m[2] || m[3] || ''; + } + + filename = _fileName(headerValue); + + if (filename) { + parser.onPartData = appendToFile; + parser.onPartEnd = appendFileToFormData; + } + } else if (headerField === 'content-type') { + contentType = headerValue; + } + + headerValue = ''; + headerField = ''; + }; + + for await (const chunk of Body) { + parser.write(chunk); + } + + parser.end(); + + return formData; +} + + +/***/ }) + +}; diff --git a/dist/cache-save/index.js b/dist/cache-save/index.js index 00e479279..a52c299e4 100644 --- a/dist/cache-save/index.js +++ b/dist/cache-save/index.js @@ -1,10 +1,9 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ +import { createRequire as __WEBPACK_EXTERNAL_createRequire } from "module"; +/******/ var __webpack_modules__ = ({ /***/ 5116: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -469,7 +468,6 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { /***/ 3156: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CacheService = exports.GetCacheEntryDownloadURLResponse = exports.GetCacheEntryDownloadURLRequest = exports.FinalizeCacheEntryUploadResponse = exports.FinalizeCacheEntryUploadRequest = exports.CreateCacheEntryResponse = exports.CreateCacheEntryRequest = void 0; @@ -864,7 +862,6 @@ exports.CacheService = new runtime_rpc_1.ServiceType("github.actions.results.api /***/ 1486: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CacheServiceClientProtobuf = exports.CacheServiceClientJSON = void 0; @@ -939,7 +936,6 @@ exports.CacheServiceClientProtobuf = CacheServiceClientProtobuf; /***/ 9444: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CacheMetadata = void 0; @@ -1010,7 +1006,6 @@ exports.CacheMetadata = new CacheMetadata$Type(); /***/ 9425: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CacheScope = void 0; @@ -1080,7 +1075,6 @@ exports.CacheScope = new CacheScope$Type(); /***/ 5552: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -1343,7 +1337,6 @@ exports.saveCache = saveCache; /***/ 680: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -1566,7 +1559,6 @@ exports.getRuntimeToken = getRuntimeToken; /***/ 7606: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getCacheServiceURL = exports.getCacheServiceVersion = exports.isGhes = void 0; @@ -1610,7 +1602,6 @@ exports.getCacheServiceURL = getCacheServiceURL; /***/ 8287: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CacheFileSizeLimit = exports.ManifestFilename = exports.TarFilename = exports.SystemTarPathOnWindows = exports.GnuTarPathOnWindows = exports.SocketTimeout = exports.DefaultRetryDelay = exports.DefaultRetryAttempts = exports.ArchiveToolType = exports.CompressionMethod = exports.CacheFilename = void 0; @@ -1654,7 +1645,6 @@ exports.CacheFileSizeLimit = 10 * Math.pow(1024, 3); // 10GiB per repository /***/ 5067: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -2039,7 +2029,6 @@ const promiseWithTimeout = (timeoutMs, promise) => __awaiter(void 0, void 0, voi /***/ 2846: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -2183,7 +2172,6 @@ exports.retryHttpClientResponse = retryHttpClientResponse; /***/ 6819: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -2352,7 +2340,6 @@ exports.internalCacheTwirpClient = internalCacheTwirpClient; /***/ 263: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.UsageError = exports.NetworkError = exports.GHESNotSupportedError = exports.CacheNotFoundError = exports.InvalidResponseError = exports.FilesNotFoundError = void 0; @@ -2429,7 +2416,6 @@ UsageError.isUsageErrorMessage = (msg) => { /***/ 1899: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getUserAgentString = void 0; @@ -2449,7 +2435,6 @@ exports.getUserAgentString = getUserAgentString; /***/ 5183: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.maskSecretUrls = exports.maskSigUrl = void 0; @@ -2530,7 +2515,6 @@ exports.maskSecretUrls = maskSecretUrls; /***/ 5321: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -2809,7 +2793,6 @@ exports.createTar = createTar; /***/ 5268: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -2983,7 +2966,6 @@ exports.uploadCacheArchiveSDK = uploadCacheArchiveSDK; /***/ 8356: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -3107,7 +3089,6 @@ exports.getDownloadOptions = getDownloadOptions; /***/ 9688: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -3140,7 +3121,6 @@ exports.create = create; /***/ 8462: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -3197,7 +3177,6 @@ exports.getOptions = getOptions; /***/ 7698: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -3439,7 +3418,6 @@ exports.DefaultGlobber = DefaultGlobber; /***/ 9222: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.MatchKind = void 0; @@ -3464,7 +3442,6 @@ var MatchKind; /***/ 1256: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -3669,7 +3646,6 @@ exports.safeTrimTrailingSeparator = safeTrimTrailingSeparator; /***/ 279: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -3789,7 +3765,6 @@ exports.Path = Path; /***/ 637: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -3890,7 +3865,6 @@ exports.partialMatch = partialMatch; /***/ 8188: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -4152,7 +4126,6 @@ exports.Pattern = Pattern; /***/ 768: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SearchState = void 0; @@ -5820,7 +5793,6 @@ function coerce (version, options) { /***/ 4914: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -5923,7 +5895,6 @@ function escapeProperty(s) { /***/ 7484: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -6274,7 +6245,6 @@ exports.platform = __importStar(__nccwpck_require__(8968)); /***/ 4753: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; // For internal use, subject to change. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { @@ -6343,7 +6313,6 @@ exports.prepareKeyValueMessage = prepareKeyValueMessage; /***/ 5306: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -6427,7 +6396,6 @@ exports.OidcClient = OidcClient; /***/ 1976: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -6496,7 +6464,6 @@ exports.toPlatformPath = toPlatformPath; /***/ 8968: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -6597,7 +6564,6 @@ exports.getDetails = getDetails; /***/ 1847: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -6887,7 +6853,6 @@ exports.summary = _summary; /***/ 302: /***/ ((__unused_webpack_module, exports) => { -"use strict"; // We use any as a valid input type /* eslint-disable @typescript-eslint/no-explicit-any */ @@ -6934,7 +6899,6 @@ exports.toCommandProperties = toCommandProperties; /***/ 5236: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -7044,7 +7008,6 @@ exports.getExecOutput = getExecOutput; /***/ 6665: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -7669,7 +7632,6 @@ class ExecState extends events.EventEmitter { /***/ 7206: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -7722,7 +7684,6 @@ exports.hashFiles = hashFiles; /***/ 8164: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -7793,7 +7754,6 @@ exports.getOptions = getOptions; /***/ 103: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -8045,7 +8005,6 @@ exports.DefaultGlobber = DefaultGlobber; /***/ 3608: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -8155,7 +8114,6 @@ exports.hashFiles = hashFiles; /***/ 2644: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.MatchKind = void 0; @@ -8180,7 +8138,6 @@ var MatchKind; /***/ 4138: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -8389,7 +8346,6 @@ exports.safeTrimTrailingSeparator = safeTrimTrailingSeparator; /***/ 6617: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -8513,7 +8469,6 @@ exports.Path = Path; /***/ 8891: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -8618,7 +8573,6 @@ exports.partialMatch = partialMatch; /***/ 5370: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -8884,7 +8838,6 @@ exports.Pattern = Pattern; /***/ 9890: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SearchState = void 0; @@ -8902,7 +8855,6 @@ exports.SearchState = SearchState; /***/ 4552: /***/ (function(__unused_webpack_module, exports) { -"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -8990,7 +8942,6 @@ exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHand /***/ 4844: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; /* eslint-disable @typescript-eslint/no-explicit-any */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { @@ -9649,7 +9600,6 @@ const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCa /***/ 4988: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.checkBypass = exports.getProxyUrl = void 0; @@ -9738,7 +9688,6 @@ function isLoopbackAddress(host) { /***/ 5207: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -9928,7 +9877,6 @@ exports.getCmdPath = getCmdPath; /***/ 4994: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -10234,7 +10182,6 @@ function copyFile(srcFile, destFile, force) { /***/ 8110: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); @@ -10481,7 +10428,6 @@ exports.AbortSignal = AbortSignal; /***/ 3905: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); @@ -10667,7 +10613,6 @@ exports.isTokenCredential = isTokenCredential; /***/ 9283: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); @@ -10686,7 +10631,7 @@ var abortController = __nccwpck_require__(8110); var tunnel = __nccwpck_require__(770); var stream = __nccwpck_require__(2203); var FormData = __nccwpck_require__(7791); -var node_fetch = __nccwpck_require__(6705); +var node_fetch = __nccwpck_require__(4034); var coreTracing = __nccwpck_require__(5553); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } @@ -16140,7 +16085,6 @@ exports.userAgentPolicy = userAgentPolicy; /***/ 7791: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; var CombinedStream = __nccwpck_require__(5630); @@ -16642,7 +16586,6 @@ module.exports = FormData; /***/ 2209: /***/ ((module) => { -"use strict"; // populates missing values @@ -16660,7 +16603,6 @@ module.exports = function (dst, src) { /***/ 3534: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -16746,7 +16688,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de /***/ 7370: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -16776,7 +16717,6 @@ exports["default"] = _default; /***/ 7441: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -16791,7 +16731,6 @@ exports["default"] = _default; /***/ 6221: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -16843,7 +16782,6 @@ exports["default"] = _default; /***/ 8689: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -16858,7 +16796,6 @@ exports["default"] = _default; /***/ 6299: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -16889,7 +16826,6 @@ function rng() { /***/ 8821: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -16919,7 +16855,6 @@ exports["default"] = _default; /***/ 9651: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -16965,7 +16900,6 @@ exports["default"] = _default; /***/ 3417: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -17079,7 +17013,6 @@ exports["default"] = _default; /***/ 2855: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -17102,7 +17035,6 @@ exports["default"] = _default; /***/ 8132: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -17187,7 +17119,6 @@ function _default(name, version, hashfunc) { /***/ 7974: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -17231,7 +17162,6 @@ exports["default"] = _default; /***/ 6165: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -17254,7 +17184,6 @@ exports["default"] = _default; /***/ 1690: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -17278,7 +17207,6 @@ exports["default"] = _default; /***/ 5962: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -17306,7 +17234,6 @@ exports["default"] = _default; /***/ 5862: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); @@ -18482,7 +18409,6 @@ exports.createHttpPoller = createHttpPoller; /***/ 9851: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); @@ -18594,7 +18520,6 @@ exports.getPagedAsyncIterator = getPagedAsyncIterator; /***/ 5553: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); @@ -18821,7 +18746,6 @@ exports.setSpanContext = setSpanContext; /***/ 8735: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); @@ -19235,7 +19159,6 @@ exports.uint8ArrayToString = uint8ArrayToString; /***/ 4505: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); @@ -19451,7 +19374,6 @@ exports.setLogLevel = setLogLevel; /***/ 1012: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); @@ -44581,7 +44503,6 @@ exports.newPipeline = newPipeline; /***/ 9750: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -44669,7 +44590,6 @@ exports.ContextAPI = ContextAPI; /***/ 1230: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -44769,7 +44689,6 @@ exports.DiagAPI = DiagAPI; /***/ 8692: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -44837,7 +44756,6 @@ exports.MetricsAPI = MetricsAPI; /***/ 7: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -44933,7 +44851,6 @@ exports.PropagationAPI = PropagationAPI; /***/ 4508: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -45019,7 +44936,6 @@ exports.TraceAPI = TraceAPI; /***/ 52: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -45089,7 +45005,6 @@ exports.deleteBaggage = deleteBaggage; /***/ 3274: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -45151,7 +45066,6 @@ exports.BaggageImpl = BaggageImpl; /***/ 3997: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -45181,7 +45095,6 @@ exports.baggageEntryMetadataSymbol = Symbol('BaggageEntryMetadata'); /***/ 8558: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -45239,7 +45152,6 @@ exports.baggageEntryMetadataFromString = baggageEntryMetadataFromString; /***/ 244: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -45270,7 +45182,6 @@ exports.context = context_1.ContextAPI.getInstance(); /***/ 9522: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -45315,7 +45226,6 @@ exports.NoopContextManager = NoopContextManager; /***/ 7977: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -45377,7 +45287,6 @@ exports.ROOT_CONTEXT = new BaseContext(); /***/ 1414: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -45413,7 +45322,6 @@ exports.diag = diag_1.DiagAPI.instance(); /***/ 7723: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -45479,7 +45387,6 @@ function logProxy(funcName, namespace, args) { /***/ 6769: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -45543,7 +45450,6 @@ exports.DiagConsoleLogger = DiagConsoleLogger; /***/ 3514: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -45595,7 +45501,6 @@ exports.createLogLevelDiagLogger = createLogLevelDiagLogger; /***/ 2573: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -45646,7 +45551,6 @@ var DiagLogLevel; /***/ 3914: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -45734,7 +45638,6 @@ exports["default"] = { /***/ 9923: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -45805,7 +45708,6 @@ exports.unregisterGlobal = unregisterGlobal; /***/ 5088: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -45934,7 +45836,6 @@ exports.isCompatible = _makeCompatibilityCheck(version_1.VERSION); /***/ 2053: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -45965,7 +45866,6 @@ exports.metrics = metrics_1.MetricsAPI.getInstance(); /***/ 3814: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -45997,7 +45897,6 @@ var ValueType; /***/ 7017: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -46120,7 +46019,6 @@ exports.createNoopMeter = createNoopMeter; /***/ 2896: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -46158,7 +46056,6 @@ exports.NOOP_METER_PROVIDER = new NoopMeterProvider(); /***/ 9932: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -46194,7 +46091,6 @@ __exportStar(__nccwpck_require__(2921), exports); /***/ 114: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -46223,7 +46119,6 @@ exports._globalThis = typeof globalThis === 'object' ? globalThis : global; /***/ 2921: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -46259,7 +46154,6 @@ __exportStar(__nccwpck_require__(114), exports); /***/ 6389: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -46290,7 +46184,6 @@ exports.propagation = propagation_1.PropagationAPI.getInstance(); /***/ 4353: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -46331,7 +46224,6 @@ exports.NoopTextMapPropagator = NoopTextMapPropagator; /***/ 7865: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -46379,7 +46271,6 @@ exports.defaultTextMapSetter = { /***/ 6542: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -46410,7 +46301,6 @@ exports.trace = trace_1.TraceAPI.getInstance(); /***/ 7168: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -46480,7 +46370,6 @@ exports.NonRecordingSpan = NonRecordingSpan; /***/ 9051: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -46562,7 +46451,6 @@ function isSpanContext(spanContext) { /***/ 4602: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -46601,7 +46489,6 @@ exports.NoopTracerProvider = NoopTracerProvider; /***/ 4833: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -46663,7 +46550,6 @@ exports.ProxyTracer = ProxyTracer; /***/ 312: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -46724,7 +46610,6 @@ exports.ProxyTracerProvider = ProxyTracerProvider; /***/ 434: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -46773,7 +46658,6 @@ var SamplingDecision; /***/ 2771: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -46862,7 +46746,6 @@ exports.getSpanContext = getSpanContext; /***/ 7903: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -46972,7 +46855,6 @@ exports.TraceStateImpl = TraceStateImpl; /***/ 5618: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -47025,7 +46907,6 @@ exports.validateValue = validateValue; /***/ 969: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -47056,7 +46937,6 @@ exports.createTraceState = createTraceState; /***/ 7088: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -47090,7 +46970,6 @@ exports.INVALID_SPAN_CONTEXT = { /***/ 2347: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SpanKind = void 0; @@ -47143,7 +47022,6 @@ var SpanKind; /***/ 639: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.wrapSpanContext = exports.isSpanContextValid = exports.isValidSpanId = exports.isValidTraceId = void 0; @@ -47199,7 +47077,6 @@ exports.wrapSpanContext = wrapSpanContext; /***/ 1524: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SpanStatusCode = void 0; @@ -47229,7 +47106,6 @@ var SpanStatusCode; /***/ 7221: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TraceFlags = void 0; @@ -47262,7 +47138,6 @@ var TraceFlags; /***/ 9390: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* * Copyright The OpenTelemetry Authors @@ -47290,7 +47165,6 @@ exports.VERSION = '1.6.0'; /***/ 7889: /***/ (function(__unused_webpack_module, exports) { -"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -47348,7 +47222,6 @@ exports.ClientStreamingCall = ClientStreamingCall; /***/ 1409: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Deferred = exports.DeferredState = void 0; @@ -47442,7 +47315,6 @@ exports.Deferred = Deferred; /***/ 6826: /***/ (function(__unused_webpack_module, exports) { -"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -47499,7 +47371,6 @@ exports.DuplexStreamingCall = DuplexStreamingCall; /***/ 4420: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; // Public API of the rpc runtime. // Note: we do not use `export * from ...` to help tree shakers, @@ -47545,7 +47416,6 @@ Object.defineProperty(exports, "ServerCallContextController", ({ enumerable: tru /***/ 2496: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.readServiceOption = exports.readMethodOption = exports.readMethodOptions = exports.normalizeMethodInfo = void 0; @@ -47610,7 +47480,6 @@ exports.readServiceOption = readServiceOption; /***/ 8636: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.RpcError = void 0; @@ -47654,7 +47523,6 @@ exports.RpcError = RpcError; /***/ 2849: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.stackDuplexStreamingInterceptors = exports.stackClientStreamingInterceptors = exports.stackServerStreamingInterceptors = exports.stackUnaryInterceptors = exports.stackIntercept = void 0; @@ -47736,7 +47604,6 @@ exports.stackDuplexStreamingInterceptors = stackDuplexStreamingInterceptors; /***/ 8576: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.mergeRpcOptions = void 0; @@ -47810,7 +47677,6 @@ function copy(a, into) { /***/ 2726: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.RpcOutputStreamController = void 0; @@ -47990,7 +47856,6 @@ exports.RpcOutputStreamController = RpcOutputStreamController; /***/ 3352: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ServerCallContextController = void 0; @@ -48058,7 +47923,6 @@ exports.ServerCallContextController = ServerCallContextController; /***/ 6173: /***/ (function(__unused_webpack_module, exports) { -"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -48116,7 +47980,6 @@ exports.ServerStreamingCall = ServerStreamingCall; /***/ 6892: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ServiceType = void 0; @@ -48136,7 +47999,6 @@ exports.ServiceType = ServiceType; /***/ 9122: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -48465,7 +48327,6 @@ class TestInputStream { /***/ 9288: /***/ (function(__unused_webpack_module, exports) { -"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -48522,7 +48383,6 @@ exports.UnaryCall = UnaryCall; /***/ 8602: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.assertFloat32 = exports.assertUInt32 = exports.assertInt32 = exports.assertNever = exports.assert = void 0; @@ -48573,7 +48433,6 @@ exports.assertFloat32 = assertFloat32; /***/ 6335: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.base64encode = exports.base64decode = void 0; @@ -48699,7 +48558,6 @@ exports.base64encode = base64encode; /***/ 4816: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.WireType = exports.mergeBinaryOptions = exports.UnknownFieldHandler = void 0; @@ -48807,7 +48665,6 @@ var WireType; /***/ 2889: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.BinaryReader = exports.binaryReadOptions = void 0; @@ -48998,7 +48855,6 @@ exports.BinaryReader = BinaryReader; /***/ 3957: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.BinaryWriter = exports.binaryWriteOptions = void 0; @@ -49238,7 +49094,6 @@ exports.BinaryWriter = BinaryWriter; /***/ 257: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.listEnumNumbers = exports.listEnumNames = exports.listEnumValues = exports.isEnumObject = void 0; @@ -49333,7 +49188,6 @@ exports.listEnumNumbers = listEnumNumbers; /***/ 3223: /***/ ((__unused_webpack_module, exports) => { -"use strict"; // Copyright 2008 Google Inc. All rights reserved. // @@ -49615,7 +49469,6 @@ exports.varint32read = varint32read; /***/ 8886: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; // Public API of the protobuf-ts runtime. // Note: we do not use `export * from ...` to help tree shakers, @@ -49720,7 +49573,6 @@ Object.defineProperty(exports, "assertFloat32", ({ enumerable: true, get: functi /***/ 9367: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.mergeJsonOptions = exports.jsonWriteOptions = exports.jsonReadOptions = void 0; @@ -49763,7 +49615,6 @@ exports.mergeJsonOptions = mergeJsonOptions; /***/ 9999: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isJsonObject = exports.typeofJsonValue = void 0; @@ -49796,7 +49647,6 @@ exports.isJsonObject = isJsonObject; /***/ 4073: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.lowerCamelCase = void 0; @@ -49839,7 +49689,6 @@ exports.lowerCamelCase = lowerCamelCase; /***/ 3785: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.MESSAGE_TYPE = void 0; @@ -49857,7 +49706,6 @@ exports.MESSAGE_TYPE = Symbol.for("protobuf-ts/message-type"); /***/ 5106: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.MessageType = void 0; @@ -50040,7 +49888,6 @@ exports.MessageType = MessageType; /***/ 8063: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getSelectedOneofValue = exports.clearOneofValue = exports.setUnknownOneofValue = exports.setOneofValue = exports.getOneofValue = exports.isOneofGroup = void 0; @@ -50162,7 +50009,6 @@ exports.getSelectedOneofValue = getSelectedOneofValue; /***/ 1753: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PbLong = exports.PbULong = exports.detectBi = void 0; @@ -50408,7 +50254,6 @@ PbLong.ZERO = new PbLong(0, 0); /***/ 8950: /***/ ((__unused_webpack_module, exports) => { -"use strict"; // Copyright (c) 2016, Daniel Wirtz All rights reserved. // @@ -50491,7 +50336,6 @@ exports.utf8read = utf8read; /***/ 9611: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ReflectionBinaryReader = void 0; @@ -50682,7 +50526,6 @@ exports.ReflectionBinaryReader = ReflectionBinaryReader; /***/ 6907: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ReflectionBinaryWriter = void 0; @@ -50923,7 +50766,6 @@ exports.ReflectionBinaryWriter = ReflectionBinaryWriter; /***/ 7565: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.containsMessageType = void 0; @@ -50945,7 +50787,6 @@ exports.containsMessageType = containsMessageType; /***/ 5726: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.reflectionCreate = void 0; @@ -51001,7 +50842,6 @@ exports.reflectionCreate = reflectionCreate; /***/ 4827: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.reflectionEquals = void 0; @@ -51086,7 +50926,6 @@ function repeatedMsgEq(type, a, b) { /***/ 7910: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.readMessageOption = exports.readFieldOption = exports.readFieldOptions = exports.normalizeFieldInfo = exports.RepeatType = exports.LongType = exports.ScalarType = void 0; @@ -51252,7 +51091,6 @@ exports.readMessageOption = readMessageOption; /***/ 6790: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ReflectionJsonReader = void 0; @@ -51577,7 +51415,6 @@ exports.ReflectionJsonReader = ReflectionJsonReader; /***/ 1094: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ReflectionJsonWriter = void 0; @@ -51815,7 +51652,6 @@ exports.ReflectionJsonWriter = ReflectionJsonWriter; /***/ 3402: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.reflectionLongConvert = void 0; @@ -51847,7 +51683,6 @@ exports.reflectionLongConvert = reflectionLongConvert; /***/ 8044: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.reflectionMergePartial = void 0; @@ -51945,7 +51780,6 @@ exports.reflectionMergePartial = reflectionMergePartial; /***/ 9526: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.reflectionScalarDefault = void 0; @@ -51990,7 +51824,6 @@ exports.reflectionScalarDefault = reflectionScalarDefault; /***/ 5167: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ReflectionTypeCheck = void 0; @@ -52669,7 +52502,6 @@ function descending(a, b) /***/ 9380: /***/ ((module) => { -"use strict"; module.exports = balanced; function balanced(a, b, str) { @@ -52947,7 +52779,6 @@ function expand(str, isTop) { /***/ 2639: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; var bind = __nccwpck_require__(7564); @@ -52965,7 +52796,6 @@ module.exports = $reflectApply || bind.call($call, $apply); /***/ 3945: /***/ ((module) => { -"use strict"; /** @type {import('./functionApply')} */ @@ -52977,7 +52807,6 @@ module.exports = Function.prototype.apply; /***/ 8093: /***/ ((module) => { -"use strict"; /** @type {import('./functionCall')} */ @@ -52989,7 +52818,6 @@ module.exports = Function.prototype.call; /***/ 8705: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; var bind = __nccwpck_require__(7564); @@ -53012,7 +52840,6 @@ module.exports = function callBindBasic(args) { /***/ 1330: /***/ ((module) => { -"use strict"; /** @type {import('./reflectApply')} */ @@ -53373,7 +53200,6 @@ DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() { /***/ 6669: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; var callBind = __nccwpck_require__(8705); @@ -53411,7 +53237,6 @@ module.exports = desc && typeof desc.get === 'function' /***/ 9094: /***/ ((module) => { -"use strict"; /** @type {import('.')} */ @@ -53433,7 +53258,6 @@ module.exports = $defineProperty; /***/ 3056: /***/ ((module) => { -"use strict"; /** @type {import('./eval')} */ @@ -53445,7 +53269,6 @@ module.exports = EvalError; /***/ 1620: /***/ ((module) => { -"use strict"; /** @type {import('.')} */ @@ -53457,7 +53280,6 @@ module.exports = Error; /***/ 4585: /***/ ((module) => { -"use strict"; /** @type {import('./range')} */ @@ -53469,7 +53291,6 @@ module.exports = RangeError; /***/ 6905: /***/ ((module) => { -"use strict"; /** @type {import('./ref')} */ @@ -53481,7 +53302,6 @@ module.exports = ReferenceError; /***/ 105: /***/ ((module) => { -"use strict"; /** @type {import('./syntax')} */ @@ -53493,7 +53313,6 @@ module.exports = SyntaxError; /***/ 3314: /***/ ((module) => { -"use strict"; /** @type {import('./type')} */ @@ -53505,7 +53324,6 @@ module.exports = TypeError; /***/ 2578: /***/ ((module) => { -"use strict"; /** @type {import('./uri')} */ @@ -53517,7 +53335,6 @@ module.exports = URIError; /***/ 5399: /***/ ((module) => { -"use strict"; /** @type {import('.')} */ @@ -53529,7 +53346,6 @@ module.exports = Object; /***/ 8700: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; var GetIntrinsic = __nccwpck_require__(470); @@ -53572,7 +53388,6 @@ module.exports = function setToStringTag(object, value) { /***/ 9808: /***/ ((module) => { -"use strict"; /* eslint no-invalid-this: 1 */ @@ -53664,7 +53479,6 @@ module.exports = function bind(that) { /***/ 7564: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; var implementation = __nccwpck_require__(9808); @@ -53677,7 +53491,6 @@ module.exports = Function.prototype.bind || implementation; /***/ 470: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; var undefined; @@ -54063,7 +53876,6 @@ module.exports = function GetIntrinsic(name, allowMissing) { /***/ 1311: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; var $Object = __nccwpck_require__(5399); @@ -54077,7 +53889,6 @@ module.exports = $Object.getPrototypeOf || null; /***/ 8681: /***/ ((module) => { -"use strict"; /** @type {import('./Reflect.getPrototypeOf')} */ @@ -54089,7 +53900,6 @@ module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || n /***/ 1967: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; var reflectGetProto = __nccwpck_require__(8681); @@ -54124,7 +53934,6 @@ module.exports = reflectGetProto /***/ 1174: /***/ ((module) => { -"use strict"; /** @type {import('./gOPD')} */ @@ -54136,7 +53945,6 @@ module.exports = Object.getOwnPropertyDescriptor; /***/ 3170: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; /** @type {import('.')} */ @@ -54159,7 +53967,6 @@ module.exports = $gOPD; /***/ 3336: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; var origSymbol = typeof Symbol !== 'undefined' && Symbol; @@ -54181,7 +53988,6 @@ module.exports = function hasNativeSymbols() { /***/ 1114: /***/ ((module) => { -"use strict"; /** @type {import('./shams')} */ @@ -54234,7 +54040,6 @@ module.exports = function hasSymbols() { /***/ 5479: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; var hasSymbols = __nccwpck_require__(1114); @@ -54250,7 +54055,6 @@ module.exports = function hasToStringTagShams() { /***/ 4076: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; var call = Function.prototype.call; @@ -54266,7 +54070,6 @@ module.exports = bind.call(call, $hasOwn); /***/ 5641: /***/ ((module) => { -"use strict"; /** @type {import('./abs')} */ @@ -54278,7 +54081,6 @@ module.exports = Math.abs; /***/ 6171: /***/ ((module) => { -"use strict"; /** @type {import('./floor')} */ @@ -54290,7 +54092,6 @@ module.exports = Math.floor; /***/ 7044: /***/ ((module) => { -"use strict"; /** @type {import('./isNaN')} */ @@ -54304,7 +54105,6 @@ module.exports = Number.isNaN || function isNaN(a) { /***/ 7147: /***/ ((module) => { -"use strict"; /** @type {import('./max')} */ @@ -54316,7 +54116,6 @@ module.exports = Math.max; /***/ 1017: /***/ ((module) => { -"use strict"; /** @type {import('./min')} */ @@ -54328,7 +54127,6 @@ module.exports = Math.min; /***/ 6947: /***/ ((module) => { -"use strict"; /** @type {import('./pow')} */ @@ -54340,7 +54138,6 @@ module.exports = Math.pow; /***/ 2621: /***/ ((module) => { -"use strict"; /** @type {import('./round')} */ @@ -54352,7 +54149,6 @@ module.exports = Math.round; /***/ 156: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; var $isNaN = __nccwpck_require__(7044); @@ -54390,7 +54186,6 @@ module.exports = __nccwpck_require__(1813) /***/ 4096: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; /*! * mime-types * Copyright(c) 2014 Jonathan Ong @@ -55537,24506 +55332,23114 @@ function regExpEscape (s) { /***/ }), -/***/ 6705: -/***/ ((module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ value: true })); - -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - -var Stream = _interopDefault(__nccwpck_require__(2203)); -var http = _interopDefault(__nccwpck_require__(8611)); -var Url = _interopDefault(__nccwpck_require__(7016)); -var whatwgUrl = _interopDefault(__nccwpck_require__(2686)); -var https = _interopDefault(__nccwpck_require__(5692)); -var zlib = _interopDefault(__nccwpck_require__(3106)); - -// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js - -// fix for "Readable" isn't a named export issue -const Readable = Stream.Readable; - -const BUFFER = Symbol('buffer'); -const TYPE = Symbol('type'); - -class Blob { - constructor() { - this[TYPE] = ''; - - const blobParts = arguments[0]; - const options = arguments[1]; - - const buffers = []; - let size = 0; - - if (blobParts) { - const a = blobParts; - const length = Number(a.length); - for (let i = 0; i < length; i++) { - const element = a[i]; - let buffer; - if (element instanceof Buffer) { - buffer = element; - } else if (ArrayBuffer.isView(element)) { - buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); - } else if (element instanceof ArrayBuffer) { - buffer = Buffer.from(element); - } else if (element instanceof Blob) { - buffer = element[BUFFER]; - } else { - buffer = Buffer.from(typeof element === 'string' ? element : String(element)); - } - size += buffer.length; - buffers.push(buffer); - } - } - - this[BUFFER] = Buffer.concat(buffers); - - let type = options && options.type !== undefined && String(options.type).toLowerCase(); - if (type && !/[^\u0020-\u007E]/.test(type)) { - this[TYPE] = type; - } - } - get size() { - return this[BUFFER].length; - } - get type() { - return this[TYPE]; - } - text() { - return Promise.resolve(this[BUFFER].toString()); - } - arrayBuffer() { - const buf = this[BUFFER]; - const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - return Promise.resolve(ab); - } - stream() { - const readable = new Readable(); - readable._read = function () {}; - readable.push(this[BUFFER]); - readable.push(null); - return readable; - } - toString() { - return '[object Blob]'; - } - slice() { - const size = this.size; - - const start = arguments[0]; - const end = arguments[1]; - let relativeStart, relativeEnd; - if (start === undefined) { - relativeStart = 0; - } else if (start < 0) { - relativeStart = Math.max(size + start, 0); - } else { - relativeStart = Math.min(start, size); - } - if (end === undefined) { - relativeEnd = size; - } else if (end < 0) { - relativeEnd = Math.max(size + end, 0); - } else { - relativeEnd = Math.min(end, size); - } - const span = Math.max(relativeEnd - relativeStart, 0); - - const buffer = this[BUFFER]; - const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); - const blob = new Blob([], { type: arguments[2] }); - blob[BUFFER] = slicedBuffer; - return blob; - } -} - -Object.defineProperties(Blob.prototype, { - size: { enumerable: true }, - type: { enumerable: true }, - slice: { enumerable: true } -}); - -Object.defineProperty(Blob.prototype, Symbol.toStringTag, { - value: 'Blob', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * fetch-error.js - * - * FetchError interface for operational errors - */ - -/** - * Create FetchError instance - * - * @param String message Error message for human - * @param String type Error type for machine - * @param String systemError For Node.js system error - * @return FetchError - */ -function FetchError(message, type, systemError) { - Error.call(this, message); +/***/ 7666: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - this.message = message; - this.type = type; +/*! node-domexception. MIT License. Jimmy Wärting */ - // when err.type is `system`, err.code contains system error code - if (systemError) { - this.code = this.errno = systemError.code; +if (!globalThis.DOMException) { + try { + const { MessageChannel } = __nccwpck_require__(8167), + port = new MessageChannel().port1, + ab = new ArrayBuffer() + port.postMessage(ab, [ab, ab]) + } catch (err) { + err.constructor.name === 'DOMException' && ( + globalThis.DOMException = err.constructor + ) } - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -FetchError.prototype = Object.create(Error.prototype); -FetchError.prototype.constructor = FetchError; -FetchError.prototype.name = 'FetchError'; - -let convert; -try { - convert = (__nccwpck_require__(2078).convert); -} catch (e) {} - -const INTERNALS = Symbol('Body internals'); - -// fix an issue where "PassThrough" isn't a named export for node <10 -const PassThrough = Stream.PassThrough; - -/** - * Body mixin - * - * Ref: https://fetch.spec.whatwg.org/#body - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -function Body(body) { - var _this = this; - - var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref$size = _ref.size; - - let size = _ref$size === undefined ? 0 : _ref$size; - var _ref$timeout = _ref.timeout; - let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; - - if (body == null) { - // body is undefined or null - body = null; - } else if (isURLSearchParams(body)) { - // body is a URLSearchParams - body = Buffer.from(body.toString()); - } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { - // body is ArrayBuffer - body = Buffer.from(body); - } else if (ArrayBuffer.isView(body)) { - // body is ArrayBufferView - body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); - } else if (body instanceof Stream) ; else { - // none of the above - // coerce to string then buffer - body = Buffer.from(String(body)); - } - this[INTERNALS] = { - body, - disturbed: false, - error: null - }; - this.size = size; - this.timeout = timeout; - - if (body instanceof Stream) { - body.on('error', function (err) { - const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); - _this[INTERNALS].error = error; - }); - } } -Body.prototype = { - get body() { - return this[INTERNALS].body; - }, +module.exports = globalThis.DOMException - get bodyUsed() { - return this[INTERNALS].disturbed; - }, - /** - * Decode response as ArrayBuffer - * - * @return Promise - */ - arrayBuffer() { - return consumeBody.call(this).then(function (buf) { - return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - }); - }, +/***/ }), - /** - * Return raw response as Blob - * - * @return Promise - */ - blob() { - let ct = this.headers && this.headers.get('content-type') || ''; - return consumeBody.call(this).then(function (buf) { - return Object.assign( - // Prevent copying - new Blob([], { - type: ct.toLowerCase() - }), { - [BUFFER]: buf - }); - }); - }, +/***/ 2560: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - /** - * Decode response as json - * - * @return Promise - */ - json() { - var _this2 = this; - - return consumeBody.call(this).then(function (buffer) { - try { - return JSON.parse(buffer.toString()); - } catch (err) { - return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); - } - }); - }, +;(function (sax) { // wrapper for non-node envs + sax.parser = function (strict, opt) { return new SAXParser(strict, opt) } + sax.SAXParser = SAXParser + sax.SAXStream = SAXStream + sax.createStream = createStream - /** - * Decode response as text - * - * @return Promise - */ - text() { - return consumeBody.call(this).then(function (buffer) { - return buffer.toString(); - }); - }, + // When we pass the MAX_BUFFER_LENGTH position, start checking for buffer overruns. + // When we check, schedule the next check for MAX_BUFFER_LENGTH - (max(buffer lengths)), + // since that's the earliest that a buffer overrun could occur. This way, checks are + // as rare as required, but as often as necessary to ensure never crossing this bound. + // Furthermore, buffers are only tested at most once per write(), so passing a very + // large string into write() might have undesirable effects, but this is manageable by + // the caller, so it is assumed to be safe. Thus, a call to write() may, in the extreme + // edge case, result in creating at most one complete copy of the string passed in. + // Set to Infinity to have unlimited buffers. + sax.MAX_BUFFER_LENGTH = 64 * 1024 - /** - * Decode response as buffer (non-spec api) - * - * @return Promise - */ - buffer() { - return consumeBody.call(this); - }, + var buffers = [ + 'comment', 'sgmlDecl', 'textNode', 'tagName', 'doctype', + 'procInstName', 'procInstBody', 'entity', 'attribName', + 'attribValue', 'cdata', 'script' + ] - /** - * Decode response as text, while automatically detecting the encoding and - * trying to decode to UTF-8 (non-spec api) - * - * @return Promise - */ - textConverted() { - var _this3 = this; - - return consumeBody.call(this).then(function (buffer) { - return convertBody(buffer, _this3.headers); - }); - } -}; + sax.EVENTS = [ + 'text', + 'processinginstruction', + 'sgmldeclaration', + 'doctype', + 'comment', + 'opentagstart', + 'attribute', + 'opentag', + 'closetag', + 'opencdata', + 'cdata', + 'closecdata', + 'error', + 'end', + 'ready', + 'script', + 'opennamespace', + 'closenamespace' + ] -// In browsers, all properties are enumerable. -Object.defineProperties(Body.prototype, { - body: { enumerable: true }, - bodyUsed: { enumerable: true }, - arrayBuffer: { enumerable: true }, - blob: { enumerable: true }, - json: { enumerable: true }, - text: { enumerable: true } -}); + function SAXParser (strict, opt) { + if (!(this instanceof SAXParser)) { + return new SAXParser(strict, opt) + } -Body.mixIn = function (proto) { - for (const name of Object.getOwnPropertyNames(Body.prototype)) { - // istanbul ignore else: future proof - if (!(name in proto)) { - const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); - Object.defineProperty(proto, name, desc); - } - } -}; + var parser = this + clearBuffers(parser) + parser.q = parser.c = '' + parser.bufferCheckPosition = sax.MAX_BUFFER_LENGTH + parser.opt = opt || {} + parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags + parser.looseCase = parser.opt.lowercase ? 'toLowerCase' : 'toUpperCase' + parser.tags = [] + parser.closed = parser.closedRoot = parser.sawRoot = false + parser.tag = parser.error = null + parser.strict = !!strict + parser.noscript = !!(strict || parser.opt.noscript) + parser.state = S.BEGIN + parser.strictEntities = parser.opt.strictEntities + parser.ENTITIES = parser.strictEntities ? Object.create(sax.XML_ENTITIES) : Object.create(sax.ENTITIES) + parser.attribList = [] -/** - * Consume and convert an entire Body to a Buffer. - * - * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body - * - * @return Promise - */ -function consumeBody() { - var _this4 = this; + // namespaces form a prototype chain. + // it always points at the current tag, + // which protos to its parent tag. + if (parser.opt.xmlns) { + parser.ns = Object.create(rootNS) + } - if (this[INTERNALS].disturbed) { - return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); - } + // mostly just for error reporting + parser.trackPosition = parser.opt.position !== false + if (parser.trackPosition) { + parser.position = parser.line = parser.column = 0 + } + emit(parser, 'onready') + } - this[INTERNALS].disturbed = true; + if (!Object.create) { + Object.create = function (o) { + function F () {} + F.prototype = o + var newf = new F() + return newf + } + } - if (this[INTERNALS].error) { - return Body.Promise.reject(this[INTERNALS].error); - } + if (!Object.keys) { + Object.keys = function (o) { + var a = [] + for (var i in o) if (o.hasOwnProperty(i)) a.push(i) + return a + } + } - let body = this.body; + function checkBufferLength (parser) { + var maxAllowed = Math.max(sax.MAX_BUFFER_LENGTH, 10) + var maxActual = 0 + for (var i = 0, l = buffers.length; i < l; i++) { + var len = parser[buffers[i]].length + if (len > maxAllowed) { + // Text/cdata nodes can get big, and since they're buffered, + // we can get here under normal conditions. + // Avoid issues by emitting the text node now, + // so at least it won't get any bigger. + switch (buffers[i]) { + case 'textNode': + closeText(parser) + break - // body is null - if (body === null) { - return Body.Promise.resolve(Buffer.alloc(0)); - } + case 'cdata': + emitNode(parser, 'oncdata', parser.cdata) + parser.cdata = '' + break - // body is blob - if (isBlob(body)) { - body = body.stream(); - } + case 'script': + emitNode(parser, 'onscript', parser.script) + parser.script = '' + break - // body is buffer - if (Buffer.isBuffer(body)) { - return Body.Promise.resolve(body); - } + default: + error(parser, 'Max buffer length exceeded: ' + buffers[i]) + } + } + maxActual = Math.max(maxActual, len) + } + // schedule the next check for the earliest possible buffer overrun. + var m = sax.MAX_BUFFER_LENGTH - maxActual + parser.bufferCheckPosition = m + parser.position + } - // istanbul ignore if: should never happen - if (!(body instanceof Stream)) { - return Body.Promise.resolve(Buffer.alloc(0)); - } + function clearBuffers (parser) { + for (var i = 0, l = buffers.length; i < l; i++) { + parser[buffers[i]] = '' + } + } - // body is stream - // get ready to actually consume the body - let accum = []; - let accumBytes = 0; - let abort = false; + function flushBuffers (parser) { + closeText(parser) + if (parser.cdata !== '') { + emitNode(parser, 'oncdata', parser.cdata) + parser.cdata = '' + } + if (parser.script !== '') { + emitNode(parser, 'onscript', parser.script) + parser.script = '' + } + } - return new Body.Promise(function (resolve, reject) { - let resTimeout; + SAXParser.prototype = { + end: function () { end(this) }, + write: write, + resume: function () { this.error = null; return this }, + close: function () { return this.write(null) }, + flush: function () { flushBuffers(this) } + } - // allow timeout on slow response body - if (_this4.timeout) { - resTimeout = setTimeout(function () { - abort = true; - reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); - }, _this4.timeout); - } + var Stream + try { + Stream = (__nccwpck_require__(2203).Stream) + } catch (ex) { + Stream = function () {} + } + if (!Stream) Stream = function () {} - // handle stream errors - body.on('error', function (err) { - if (err.name === 'AbortError') { - // if the request was aborted, reject with this Error - abort = true; - reject(err); - } else { - // other errors, such as incorrect content-encoding - reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); - } - }); + var streamWraps = sax.EVENTS.filter(function (ev) { + return ev !== 'error' && ev !== 'end' + }) - body.on('data', function (chunk) { - if (abort || chunk === null) { - return; - } + function createStream (strict, opt) { + return new SAXStream(strict, opt) + } - if (_this4.size && accumBytes + chunk.length > _this4.size) { - abort = true; - reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); - return; - } + function SAXStream (strict, opt) { + if (!(this instanceof SAXStream)) { + return new SAXStream(strict, opt) + } - accumBytes += chunk.length; - accum.push(chunk); - }); + Stream.apply(this) - body.on('end', function () { - if (abort) { - return; - } + this._parser = new SAXParser(strict, opt) + this.writable = true + this.readable = true - clearTimeout(resTimeout); + var me = this - try { - resolve(Buffer.concat(accum, accumBytes)); - } catch (err) { - // handle streams that have accumulated too much data (issue #414) - reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - }); -} + this._parser.onend = function () { + me.emit('end') + } -/** - * Detect buffer encoding and convert to target encoding - * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding - * - * @param Buffer buffer Incoming buffer - * @param String encoding Target encoding - * @return String - */ -function convertBody(buffer, headers) { - if (typeof convert !== 'function') { - throw new Error('The package `encoding` must be installed to use the textConverted() function'); - } + this._parser.onerror = function (er) { + me.emit('error', er) - const ct = headers.get('content-type'); - let charset = 'utf-8'; - let res, str; + // if didn't throw, then means error was handled. + // go ahead and clear error, so we can write again. + me._parser.error = null + } - // header - if (ct) { - res = /charset=([^;]*)/i.exec(ct); - } + this._decoder = null - // no charset in content type, peek at response body for at most 1024 bytes - str = buffer.slice(0, 1024).toString(); + streamWraps.forEach(function (ev) { + Object.defineProperty(me, 'on' + ev, { + get: function () { + return me._parser['on' + ev] + }, + set: function (h) { + if (!h) { + me.removeAllListeners(ev) + me._parser['on' + ev] = h + return h + } + me.on(ev, h) + }, + enumerable: true, + configurable: false + }) + }) + } - // html5 - if (!res && str) { - res = /' || isWhitespace(c) + } - return body; -} + function isMatch (regex, c) { + return regex.test(c) + } -/** - * Performs the operation "extract a `Content-Type` value from |object|" as - * specified in the specification: - * https://fetch.spec.whatwg.org/#concept-bodyinit-extract - * - * This function assumes that instance.body is present. - * - * @param Mixed instance Any options.body input - */ -function extractContentType(body) { - if (body === null) { - // body is null - return null; - } else if (typeof body === 'string') { - // body is string - return 'text/plain;charset=UTF-8'; - } else if (isURLSearchParams(body)) { - // body is a URLSearchParams - return 'application/x-www-form-urlencoded;charset=UTF-8'; - } else if (isBlob(body)) { - // body is blob - return body.type || null; - } else if (Buffer.isBuffer(body)) { - // body is buffer - return null; - } else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { - // body is ArrayBuffer - return null; - } else if (ArrayBuffer.isView(body)) { - // body is ArrayBufferView - return null; - } else if (typeof body.getBoundary === 'function') { - // detect form data input from form-data module - return `multipart/form-data;boundary=${body.getBoundary()}`; - } else if (body instanceof Stream) { - // body is stream - // can't really do much about this - return null; - } else { - // Body constructor defaults other things to string - return 'text/plain;charset=UTF-8'; - } -} + function notMatch (regex, c) { + return !isMatch(regex, c) + } -/** - * The Fetch Standard treats this as if "total bytes" is a property on the body. - * For us, we have to explicitly get it with a function. - * - * ref: https://fetch.spec.whatwg.org/#concept-body-total-bytes - * - * @param Body instance Instance of Body - * @return Number? Number of bytes, or null if not possible - */ -function getTotalBytes(instance) { - const body = instance.body; + var S = 0 + sax.STATE = { + BEGIN: S++, // leading byte order mark or whitespace + BEGIN_WHITESPACE: S++, // leading whitespace + TEXT: S++, // general stuff + TEXT_ENTITY: S++, // & and such. + OPEN_WAKA: S++, // < + SGML_DECL: S++, // + SCRIPT: S++, //