diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..eaa0bba --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,29 @@ +name: JS - Unit Tests + +on: push + +jobs: + + run-tests: + name: Unit Tests + runs-on: ubuntu-latest + + steps: + - name: Check out Git repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v1 + with: + node-version: 14 + + - name: Install dependencies with caching + uses: bahmutov/npm-install@v1 + + - name: Check types + run: | + yarn run typecheck + + - name: Run unit tests + run: | + yarn run test diff --git a/.gitignore b/.gitignore index b512c09..3c3629e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -node_modules \ No newline at end of file +node_modules diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index dbe3365..559f8d0 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,11 @@ A GitHub Action that creates an SVG diagram of your repo. Read more [in the writ **Please note that this is an experiment. If you have feature requests, please submit a PR or fork and use the code any way you need.** -For a full demo, check out the [githubocto/repo-visualizer](https://github.com/githubocto/repo-visualizer) repository. +For a full demo, check out the [githubocto/repo-visualizer-demo](https://github.com/githubocto/repo-visualizer-demo) repository. ## Inputs -## `output_file` +### `output_file` A path (relative to the root of your repo) to where you would like the diagram to live. @@ -16,40 +16,83 @@ For example: images/diagram.svg Default: diagram.svg -## `excluded_paths` +### `excluded_paths` -A list of paths to exclude from the diagram, separated by commas. +A list of paths to folders to exclude from the diagram, separated by commas. For example: dist,node_modules Default: node_modules,bower_components,dist,out,build,eject,.next,.netlify,.yarn,.vscode,package-lock.json,yarn.lock -## `root_path` +### `excluded_globs` -The directory (and its children) that you want to visualize in the diagram. +A semicolon-delimited array of file [globs](https://globster.xyz/) to exclude from the diagram, using [micromatch](https://github.com/micromatch/micromatch) syntax. Provided as an array. -For example: `./src/` +For example: -Default: `./` +```yaml +excluded_globs: "frontend/*.spec.js;**/*.{png,jpg};**/!(*.module).ts" +# Guide: +# - 'frontend/*.spec.js' # exclude frontend tests +# - '**/*.{png,ico,md}' # all png, ico, md files in any directory +# - '**/!(*.module).ts' # all TS files except module files +``` + +### `root_path` + +The directory (and its children) that you want to visualize in the diagram, relative to the repository root. -## `max_depth` +For example: `src/` + +Default: `''` (current directory) + +### `max_depth` The maximum number of nested folders to show files within. A higher number will take longer to render. Default: 9 -## `commit_message` +### `should_push` + +Whether to make a new commit with the diagram and push it to the original repository. + +Should be a boolean value, i.e. `true` or `false`. See `commit_message` and `branch` for how to customise the commit. + +Default: `true` + +### `commit_message` The commit message to use when updating the diagram. Useful for skipping CI. For example: `Updating diagram [skip ci]` Default: `Repo visualizer: updated diagram` -## `branch` +### `branch` The branch name to push the diagram to (branch will be created if it does not yet exist). For example: `diagram` +### `artifact_name` + +The name of an [artifact](https://docs.github.com/en/actions/guides/storing-workflow-data-as-artifacts) to create containing the diagram. + +If unspecified, no artifact will be created. + +Default: `''` (no artifact) + +### `file_colors` + +You can customize the colors for specific file extensions. Key/value pairs will extend the [default colors](https://github.com/githubocto/repo-visualizer/pull/src/language-colors.json). + +For example: '{"js": "red","ts": "green"}' +default: '{}' + +## Outputs + +### `svg` + +The contents of the diagram as text. This can be used if you don't want to handle new files. + ## Example usage You'll need to run the `actions/checkout` Action beforehand, to check out the code. @@ -58,8 +101,39 @@ You'll need to run the `actions/checkout` Action beforehand, to check out the co - name: Checkout code uses: actions/checkout@master - name: Update diagram - uses: githubocto/repo-visualizer@0.5.0 + uses: githubocto/repo-visualizer@0.7.1 with: output_file: "images/diagram.svg" excluded_paths: "dist,node_modules" ``` + + +## Accessing the diagram + +By default, this action will create a new commit with the diagram on the specified branch. + +If you want to avoid new commits, you can create an artifact to accompany the workflow run, +by specifying an `artifact_name`. You can then download the diagram using the +[`actions/download-artifact`](https://github.com/marketplace/actions/download-a-build-artifact) +action from a later step in your workflow, +or by using the [GitHub API](https://docs.github.com/en/rest/reference/actions#artifacts). + +Example: +```yaml +- name: Update diagram + id: make_diagram + uses: githubocto/repo-visualizer@0.7.1 + with: + output_file: "output-diagram.svg" + artifact_name: "my-diagram" +- name: Get artifact + uses: actions/download-artifact@v2 + with: + name: "my-diagram" + path: "downloads" +``` +In this example, the diagram will be available at downloads/my-diagram.svg +Note that this will still also create a commit, unless you specify `should_push: false`! + +Alternatively, the SVG description of the diagram is available in the `svg` output, +which you can refer to in your workflow as e.g. `${{ steps.make_diagram.outputs.svg }}`. diff --git a/action.yml b/action.yml index bfef7e6..0e44cc6 100644 --- a/action.yml +++ b/action.yml @@ -8,8 +8,11 @@ inputs: excluded_paths: description: "A list of paths to exclude from the diagram, separated by commas. For example: dist,node_modules" required: false + excluded_globs: + description: "A list of micromatch globs to exclude from the diagram, separated by semicolons. For example: **/*.png;docs/**/*.{png,ico}" + required: false root_path: - description: "The directory (and its children) that you want to visualize in the diagram. Default: ./" + description: 'The directory (and its children) that you want to visualize in the diagram. Default: "" (repository root directory)' required: false max_depth: description: "The maximum number of nested folders to show files within. Default: 9" @@ -20,8 +23,23 @@ inputs: branch: description: "The branch name to push the diagram to (branch will be created if it does not yet exist). For example: diagram" required: false + should_push: + description: "Whether to push the new commit back to the repository. Must be true or false. Default: true" + required: false + default: true + artifact_name: + description: "If given, the name of an artifact to be created containing the diagram. Default: don't create an artifact." + required: false + default: '' + file_colors: + description: "You can customize the colors for specific file extensions. Key/value pairs will extend the [default colors](https://github.com/githubocto/repo-visualizer/pull/src/language-colors.json)." + required: false + default: "{}" +outputs: + svg: + description: "The diagram contents as text" runs: - using: "node12" + using: "node16" main: "index.js" branding: color: "purple" diff --git a/diagram.svg b/diagram.svg index 237fe1c..bbcf31c 100644 --- a/diagram.svg +++ b/diagram.svg @@ -1 +1 @@ -srcsrc.husky.husky__language-colors.jsonlanguage-colors.jsonlanguage-colors.jsonTree.tsxTree.tsxTree.tsxindex.jsxindex.jsxindex.jsxprocess-dir.jsprocess-dir.jsprocess-dir.jsutils.tsutils.tsutils.tsCircleText.tsxCircleText.tsxCircleText.tsxtypes.tstypes.tstypes.tsindex.jsindex.jsindex.jsREADME.mdREADME.mdREADME.mdLICENSELICENSELICENSEaction.ymlaction.ymlaction.ymlpackage.jsonpackage.jsonpackage.jsonhusky.shhusky.shhusky.sh.gitignore.js.json.jsx.md.sh.svg.ts.tsx.ymleach dot sized by file size \ No newline at end of file +srcsrc.husky.husky__language-colors.jsonlanguage-colors.jsonlanguage-colors.jsonTree.tsxTree.tsxTree.tsxindex.jsxindex.jsxindex.jsxshould-exclude-...should-exclude-...should-exclude-...process-dir.jsprocess-dir.jsprocess-dir.jsutils.tsutils.tsutils.tsCircleText.tsxCircleText.tsxCircleText.tsxshould-exc...should-exc...should-exc...types.tstypes.tstypes.tsindex.jsindex.jsindex.jsREADME.mdREADME.mdREADME.mdaction.ymlaction.ymlaction.ymlLICENSELICENSELICENSEpackage.jsonpackage.jsonpackage.jsonhusky.shhusky.shhusky.sh.cjs.gitignore.js.json.jsx.md.sh.svg.ts.tsx.yaml.ymleach dot sized by file size \ No newline at end of file diff --git a/index.js b/index.js index a495c90..5f223d7 100644 --- a/index.js +++ b/index.js @@ -1075,7 +1075,7 @@ var require_utils = __commonJS({ "node_modules/@actions/core/lib/utils.js"(exports2) { "use strict"; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.toCommandValue = void 0; + exports2.toCommandProperties = exports2.toCommandValue = void 0; function toCommandValue(input) { if (input === null || input === void 0) { return ""; @@ -1085,6 +1085,20 @@ var require_utils = __commonJS({ return JSON.stringify(input); } exports2.toCommandValue = toCommandValue; + function toCommandProperties(annotationProperties) { + if (!Object.keys(annotationProperties).length) { + return {}; + } + return { + title: annotationProperties.title, + file: annotationProperties.file, + line: annotationProperties.startLine, + endLine: annotationProperties.endLine, + col: annotationProperties.startColumn, + endColumn: annotationProperties.endColumn + }; + } + exports2.toCommandProperties = toCommandProperties; } }); @@ -1175,6 +1189,497 @@ var require_command = __commonJS({ } }); +// node_modules/uuid/dist/rng.js +var require_rng = __commonJS({ + "node_modules/uuid/dist/rng.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = rng; + var _crypto = _interopRequireDefault(require("crypto")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var rnds8Pool = new Uint8Array(256); + var poolPtr = rnds8Pool.length; + function rng() { + if (poolPtr > rnds8Pool.length - 16) { + _crypto.default.randomFillSync(rnds8Pool); + poolPtr = 0; + } + return rnds8Pool.slice(poolPtr, poolPtr += 16); + } + } +}); + +// node_modules/uuid/dist/regex.js +var require_regex = __commonJS({ + "node_modules/uuid/dist/regex.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/validate.js +var require_validate = __commonJS({ + "node_modules/uuid/dist/validate.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _regex = _interopRequireDefault(require_regex()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function validate(uuid) { + return typeof uuid === "string" && _regex.default.test(uuid); + } + var _default = validate; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/stringify.js +var require_stringify = __commonJS({ + "node_modules/uuid/dist/stringify.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var byteToHex = []; + for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 256).toString(16).substr(1)); + } + function stringify(arr, offset = 0) { + const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); + if (!(0, _validate.default)(uuid)) { + throw TypeError("Stringified UUID is invalid"); + } + return uuid; + } + var _default = stringify; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v1.js +var require_v1 = __commonJS({ + "node_modules/uuid/dist/v1.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _rng = _interopRequireDefault(require_rng()); + var _stringify = _interopRequireDefault(require_stringify()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var _nodeId; + var _clockseq; + var _lastMSecs = 0; + var _lastNSecs = 0; + function v1(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || new Array(16); + options = options || {}; + let node = options.node || _nodeId; + let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq; + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || _rng.default)(); + if (node == null) { + node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } + if (clockseq == null) { + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383; + } + } + let msecs = options.msecs !== void 0 ? options.msecs : Date.now(); + let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1; + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4; + if (dt < 0 && options.clockseq === void 0) { + clockseq = clockseq + 1 & 16383; + } + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) { + nsecs = 0; + } + if (nsecs >= 1e4) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + } + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; + msecs += 122192928e5; + const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; + b[i++] = tl >>> 24 & 255; + b[i++] = tl >>> 16 & 255; + b[i++] = tl >>> 8 & 255; + b[i++] = tl & 255; + const tmh = msecs / 4294967296 * 1e4 & 268435455; + b[i++] = tmh >>> 8 & 255; + b[i++] = tmh & 255; + b[i++] = tmh >>> 24 & 15 | 16; + b[i++] = tmh >>> 16 & 255; + b[i++] = clockseq >>> 8 | 128; + b[i++] = clockseq & 255; + for (let n2 = 0; n2 < 6; ++n2) { + b[i + n2] = node[n2]; + } + return buf || (0, _stringify.default)(b); + } + var _default = v1; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/parse.js +var require_parse = __commonJS({ + "node_modules/uuid/dist/parse.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function parse(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError("Invalid UUID"); + } + let v2; + const arr = new Uint8Array(16); + arr[0] = (v2 = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v2 >>> 16 & 255; + arr[2] = v2 >>> 8 & 255; + arr[3] = v2 & 255; + arr[4] = (v2 = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v2 & 255; + arr[6] = (v2 = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v2 & 255; + arr[8] = (v2 = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v2 & 255; + arr[10] = (v2 = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; + arr[11] = v2 / 4294967296 & 255; + arr[12] = v2 >>> 24 & 255; + arr[13] = v2 >>> 16 & 255; + arr[14] = v2 >>> 8 & 255; + arr[15] = v2 & 255; + return arr; + } + var _default = parse; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v35.js +var require_v35 = __commonJS({ + "node_modules/uuid/dist/v35.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = _default; + exports2.URL = exports2.DNS = void 0; + var _stringify = _interopRequireDefault(require_stringify()); + var _parse = _interopRequireDefault(require_parse()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); + const bytes = []; + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + return bytes; + } + var DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8"; + exports2.DNS = DNS; + var URL2 = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; + exports2.URL = URL2; + function _default(name, version, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === "string") { + value = stringToBytes(value); + } + if (typeof namespace === "string") { + namespace = (0, _parse.default)(namespace); + } + if (namespace.length !== 16) { + throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)"); + } + let bytes = new Uint8Array(16 + value.length); + bytes.set(namespace); + bytes.set(value, namespace.length); + bytes = hashfunc(bytes); + bytes[6] = bytes[6] & 15 | version; + bytes[8] = bytes[8] & 63 | 128; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + return buf; + } + return (0, _stringify.default)(bytes); + } + try { + generateUUID.name = name; + } catch (err) { + } + generateUUID.DNS = DNS; + generateUUID.URL = URL2; + return generateUUID; + } + } +}); + +// node_modules/uuid/dist/md5.js +var require_md5 = __commonJS({ + "node_modules/uuid/dist/md5.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _crypto = _interopRequireDefault(require("crypto")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === "string") { + bytes = Buffer.from(bytes, "utf8"); + } + return _crypto.default.createHash("md5").update(bytes).digest(); + } + var _default = md5; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v3.js +var require_v3 = __commonJS({ + "node_modules/uuid/dist/v3.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _v = _interopRequireDefault(require_v35()); + var _md = _interopRequireDefault(require_md5()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var v3 = (0, _v.default)("v3", 48, _md.default); + var _default = v3; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v4.js +var require_v4 = __commonJS({ + "node_modules/uuid/dist/v4.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _rng = _interopRequireDefault(require_rng()); + var _stringify = _interopRequireDefault(require_stringify()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function v4(options, buf, offset) { + options = options || {}; + const rnds = options.random || (options.rng || _rng.default)(); + rnds[6] = rnds[6] & 15 | 64; + rnds[8] = rnds[8] & 63 | 128; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + return buf; + } + return (0, _stringify.default)(rnds); + } + var _default = v4; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/sha1.js +var require_sha1 = __commonJS({ + "node_modules/uuid/dist/sha1.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _crypto = _interopRequireDefault(require("crypto")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === "string") { + bytes = Buffer.from(bytes, "utf8"); + } + return _crypto.default.createHash("sha1").update(bytes).digest(); + } + var _default = sha1; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v5.js +var require_v5 = __commonJS({ + "node_modules/uuid/dist/v5.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _v = _interopRequireDefault(require_v35()); + var _sha = _interopRequireDefault(require_sha1()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var v5 = (0, _v.default)("v5", 80, _sha.default); + var _default = v5; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/nil.js +var require_nil = __commonJS({ + "node_modules/uuid/dist/nil.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _default = "00000000-0000-0000-0000-000000000000"; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/version.js +var require_version = __commonJS({ + "node_modules/uuid/dist/version.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + exports2.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function version(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError("Invalid UUID"); + } + return parseInt(uuid.substr(14, 1), 16); + } + var _default = version; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/index.js +var require_dist = __commonJS({ + "node_modules/uuid/dist/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { + value: true + }); + Object.defineProperty(exports2, "v1", { + enumerable: true, + get: function() { + return _v.default; + } + }); + Object.defineProperty(exports2, "v3", { + enumerable: true, + get: function() { + return _v2.default; + } + }); + Object.defineProperty(exports2, "v4", { + enumerable: true, + get: function() { + return _v3.default; + } + }); + Object.defineProperty(exports2, "v5", { + enumerable: true, + get: function() { + return _v4.default; + } + }); + Object.defineProperty(exports2, "NIL", { + enumerable: true, + get: function() { + return _nil.default; + } + }); + Object.defineProperty(exports2, "version", { + enumerable: true, + get: function() { + return _version.default; + } + }); + Object.defineProperty(exports2, "validate", { + enumerable: true, + get: function() { + return _validate.default; + } + }); + Object.defineProperty(exports2, "stringify", { + enumerable: true, + get: function() { + return _stringify.default; + } + }); + Object.defineProperty(exports2, "parse", { + enumerable: true, + get: function() { + return _parse.default; + } + }); + var _v = _interopRequireDefault(require_v1()); + var _v2 = _interopRequireDefault(require_v3()); + var _v3 = _interopRequireDefault(require_v4()); + var _v4 = _interopRequireDefault(require_v5()); + var _nil = _interopRequireDefault(require_nil()); + var _version = _interopRequireDefault(require_version()); + var _validate = _interopRequireDefault(require_validate()); + var _stringify = _interopRequireDefault(require_stringify()); + var _parse = _interopRequireDefault(require_parse()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + } +}); + // node_modules/@actions/core/lib/file-command.js var require_file_command = __commonJS({ "node_modules/@actions/core/lib/file-command.js"(exports2) { @@ -1208,11 +1713,12 @@ var require_file_command = __commonJS({ return result; }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.issueCommand = void 0; + exports2.prepareKeyValueMessage = exports2.issueFileCommand = void 0; var fs4 = __importStar(require("fs")); var os2 = __importStar(require("os")); + var uuid_1 = require_dist(); var utils_1 = require_utils(); - function issueCommand(command2, message) { + function issueFileCommand(command2, message) { const filePath = process.env[`GITHUB_${command2}`]; if (!filePath) { throw new Error(`Unable to find environment variable for file command ${command2}`); @@ -1224,13 +1730,319 @@ var require_file_command = __commonJS({ encoding: "utf8" }); } - exports2.issueCommand = issueCommand; + exports2.issueFileCommand = issueFileCommand; + function prepareKeyValueMessage(key, value) { + const delimiter = `ghadelimiter_${uuid_1.v4()}`; + const convertedValue = utils_1.toCommandValue(value); + if (key.includes(delimiter)) { + throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`); + } + if (convertedValue.includes(delimiter)) { + throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`); + } + return `${key}<<${delimiter}${os2.EOL}${convertedValue}${os2.EOL}${delimiter}`; + } + exports2.prepareKeyValueMessage = prepareKeyValueMessage; } }); -// node_modules/@actions/core/lib/core.js -var require_core = __commonJS({ - "node_modules/@actions/core/lib/core.js"(exports2) { +// node_modules/@actions/core/node_modules/@actions/http-client/lib/proxy.js +var require_proxy = __commonJS({ + "node_modules/@actions/core/node_modules/@actions/http-client/lib/proxy.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.checkBypass = exports2.getProxyUrl = void 0; + function getProxyUrl(reqUrl) { + const usingSsl = reqUrl.protocol === "https:"; + if (checkBypass(reqUrl)) { + return void 0; + } + const proxyVar = (() => { + if (usingSsl) { + return process.env["https_proxy"] || process.env["HTTPS_PROXY"]; + } else { + return process.env["http_proxy"] || process.env["HTTP_PROXY"]; + } + })(); + if (proxyVar) { + return new URL(proxyVar); + } else { + return void 0; + } + } + exports2.getProxyUrl = getProxyUrl; + function checkBypass(reqUrl) { + if (!reqUrl.hostname) { + return false; + } + const reqHost = reqUrl.hostname; + if (isLoopbackAddress(reqHost)) { + return true; + } + const noProxy = process.env["no_proxy"] || process.env["NO_PROXY"] || ""; + if (!noProxy) { + return false; + } + let reqPort; + if (reqUrl.port) { + reqPort = Number(reqUrl.port); + } else if (reqUrl.protocol === "http:") { + reqPort = 80; + } else if (reqUrl.protocol === "https:") { + reqPort = 443; + } + const upperReqHosts = [reqUrl.hostname.toUpperCase()]; + if (typeof reqPort === "number") { + upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); + } + for (const upperNoProxyItem of noProxy.split(",").map((x2) => x2.trim().toUpperCase()).filter((x2) => x2)) { + if (upperNoProxyItem === "*" || upperReqHosts.some((x2) => x2 === upperNoProxyItem || x2.endsWith(`.${upperNoProxyItem}`) || upperNoProxyItem.startsWith(".") && x2.endsWith(`${upperNoProxyItem}`))) { + return true; + } + } + return false; + } + exports2.checkBypass = checkBypass; + function isLoopbackAddress(host) { + const hostLower = host.toLowerCase(); + return hostLower === "localhost" || hostLower.startsWith("127.") || hostLower.startsWith("[::1]") || hostLower.startsWith("[0:0:0:0:0:0:0:1]"); + } + } +}); + +// node_modules/tunnel/lib/tunnel.js +var require_tunnel = __commonJS({ + "node_modules/tunnel/lib/tunnel.js"(exports2) { + "use strict"; + var net = require("net"); + var tls = require("tls"); + var http2 = require("http"); + var https = require("https"); + var events = require("events"); + var assert = require("assert"); + var util = require("util"); + exports2.httpOverHttp = httpOverHttp; + exports2.httpsOverHttp = httpsOverHttp; + exports2.httpOverHttps = httpOverHttps; + exports2.httpsOverHttps = httpsOverHttps; + function httpOverHttp(options) { + var agent = new TunnelingAgent(options); + agent.request = http2.request; + return agent; + } + function httpsOverHttp(options) { + var agent = new TunnelingAgent(options); + agent.request = http2.request; + agent.createSocket = createSecureSocket; + agent.defaultPort = 443; + return agent; + } + function httpOverHttps(options) { + var agent = new TunnelingAgent(options); + agent.request = https.request; + return agent; + } + function httpsOverHttps(options) { + var agent = new TunnelingAgent(options); + agent.request = https.request; + agent.createSocket = createSecureSocket; + agent.defaultPort = 443; + return agent; + } + function TunnelingAgent(options) { + var self3 = this; + self3.options = options || {}; + self3.proxyOptions = self3.options.proxy || {}; + self3.maxSockets = self3.options.maxSockets || http2.Agent.defaultMaxSockets; + self3.requests = []; + self3.sockets = []; + self3.on("free", function onFree(socket, host, port, localAddress) { + var options2 = toOptions(host, port, localAddress); + for (var i = 0, len = self3.requests.length; i < len; ++i) { + var pending = self3.requests[i]; + if (pending.host === options2.host && pending.port === options2.port) { + self3.requests.splice(i, 1); + pending.request.onSocket(socket); + return; + } + } + socket.destroy(); + self3.removeSocket(socket); + }); + } + util.inherits(TunnelingAgent, events.EventEmitter); + TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) { + var self3 = this; + var options = mergeOptions({ request: req }, self3.options, toOptions(host, port, localAddress)); + if (self3.sockets.length >= this.maxSockets) { + self3.requests.push(options); + return; + } + self3.createSocket(options, function(socket) { + socket.on("free", onFree); + socket.on("close", onCloseOrRemove); + socket.on("agentRemove", onCloseOrRemove); + req.onSocket(socket); + function onFree() { + self3.emit("free", socket, options); + } + function onCloseOrRemove(err) { + self3.removeSocket(socket); + socket.removeListener("free", onFree); + socket.removeListener("close", onCloseOrRemove); + socket.removeListener("agentRemove", onCloseOrRemove); + } + }); + }; + TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { + var self3 = this; + var placeholder = {}; + self3.sockets.push(placeholder); + var connectOptions = mergeOptions({}, self3.proxyOptions, { + method: "CONNECT", + path: options.host + ":" + options.port, + agent: false, + headers: { + host: options.host + ":" + options.port + } + }); + if (options.localAddress) { + connectOptions.localAddress = options.localAddress; + } + if (connectOptions.proxyAuth) { + connectOptions.headers = connectOptions.headers || {}; + connectOptions.headers["Proxy-Authorization"] = "Basic " + new Buffer(connectOptions.proxyAuth).toString("base64"); + } + debug("making CONNECT request"); + var connectReq = self3.request(connectOptions); + connectReq.useChunkedEncodingByDefault = false; + connectReq.once("response", onResponse); + connectReq.once("upgrade", onUpgrade); + connectReq.once("connect", onConnect); + connectReq.once("error", onError); + connectReq.end(); + function onResponse(res2) { + res2.upgrade = true; + } + function onUpgrade(res2, socket, head) { + process.nextTick(function() { + onConnect(res2, socket, head); + }); + } + function onConnect(res2, socket, head) { + connectReq.removeAllListeners(); + socket.removeAllListeners(); + if (res2.statusCode !== 200) { + debug("tunneling socket could not be established, statusCode=%d", res2.statusCode); + socket.destroy(); + var error = new Error("tunneling socket could not be established, statusCode=" + res2.statusCode); + error.code = "ECONNRESET"; + options.request.emit("error", error); + self3.removeSocket(placeholder); + return; + } + if (head.length > 0) { + debug("got illegal response body from proxy"); + socket.destroy(); + var error = new Error("got illegal response body from proxy"); + error.code = "ECONNRESET"; + options.request.emit("error", error); + self3.removeSocket(placeholder); + return; + } + debug("tunneling connection has established"); + self3.sockets[self3.sockets.indexOf(placeholder)] = socket; + return cb(socket); + } + function onError(cause) { + connectReq.removeAllListeners(); + debug("tunneling socket could not be established, cause=%s\n", cause.message, cause.stack); + var error = new Error("tunneling socket could not be established, cause=" + cause.message); + error.code = "ECONNRESET"; + options.request.emit("error", error); + self3.removeSocket(placeholder); + } + }; + TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { + var pos = this.sockets.indexOf(socket); + if (pos === -1) { + return; + } + this.sockets.splice(pos, 1); + var pending = this.requests.shift(); + if (pending) { + this.createSocket(pending, function(socket2) { + pending.request.onSocket(socket2); + }); + } + }; + function createSecureSocket(options, cb) { + var self3 = this; + TunnelingAgent.prototype.createSocket.call(self3, options, function(socket) { + var hostHeader = options.request.getHeader("host"); + var tlsOptions = mergeOptions({}, self3.options, { + socket, + servername: hostHeader ? hostHeader.replace(/:.*$/, "") : options.host + }); + var secureSocket = tls.connect(0, tlsOptions); + self3.sockets[self3.sockets.indexOf(socket)] = secureSocket; + cb(secureSocket); + }); + } + function toOptions(host, port, localAddress) { + if (typeof host === "string") { + return { + host, + port, + localAddress + }; + } + return host; + } + function mergeOptions(target) { + for (var i = 1, len = arguments.length; i < len; ++i) { + var overrides = arguments[i]; + if (typeof overrides === "object") { + var keys = Object.keys(overrides); + for (var j3 = 0, keyLen = keys.length; j3 < keyLen; ++j3) { + var k = keys[j3]; + if (overrides[k] !== void 0) { + target[k] = overrides[k]; + } + } + } + } + return target; + } + var debug; + if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { + debug = function() { + var args = Array.prototype.slice.call(arguments); + if (typeof args[0] === "string") { + args[0] = "TUNNEL: " + args[0]; + } else { + args.unshift("TUNNEL:"); + } + console.error.apply(console, args); + }; + } else { + debug = function() { + }; + } + exports2.debug = debug; + } +}); + +// node_modules/tunnel/index.js +var require_tunnel2 = __commonJS({ + "node_modules/tunnel/index.js"(exports2, module2) { + module2.exports = require_tunnel(); + } +}); + +// node_modules/@actions/core/node_modules/@actions/http-client/lib/index.js +var require_lib = __commonJS({ + "node_modules/@actions/core/node_modules/@actions/http-client/lib/index.js"(exports2) { "use strict"; var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { if (k2 === void 0) @@ -1288,4678 +2100,11120 @@ var require_core = __commonJS({ }); }; Object.defineProperty(exports2, "__esModule", { value: true }); - exports2.getState = exports2.saveState = exports2.group = exports2.endGroup = exports2.startGroup = exports2.info = exports2.warning = exports2.error = exports2.debug = exports2.isDebug = exports2.setFailed = exports2.setCommandEcho = exports2.setOutput = exports2.getBooleanInput = exports2.getMultilineInput = exports2.getInput = exports2.addPath = exports2.setSecret = exports2.exportVariable = exports2.ExitCode = void 0; - var command_1 = require_command(); - var file_command_1 = require_file_command(); - var utils_1 = require_utils(); - var os2 = __importStar(require("os")); - var path = __importStar(require("path")); - var ExitCode; - (function(ExitCode2) { - ExitCode2[ExitCode2["Success"] = 0] = "Success"; - ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; - })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); - function exportVariable(name, val) { - const convertedVal = utils_1.toCommandValue(val); - process.env[name] = convertedVal; - const filePath = process.env["GITHUB_ENV"] || ""; - if (filePath) { - const delimiter = "_GitHubActionsFileCommandDelimeter_"; - const commandValue = `${name}<<${delimiter}${os2.EOL}${convertedVal}${os2.EOL}${delimiter}`; - file_command_1.issueCommand("ENV", commandValue); - } else { - command_1.issueCommand("set-env", { name }, convertedVal); + exports2.HttpClient = exports2.isHttps = exports2.HttpClientResponse = exports2.HttpClientError = exports2.getProxyUrl = exports2.MediaTypes = exports2.Headers = exports2.HttpCodes = void 0; + var http2 = __importStar(require("http")); + var https = __importStar(require("https")); + var pm = __importStar(require_proxy()); + var tunnel = __importStar(require_tunnel2()); + var HttpCodes; + (function(HttpCodes2) { + HttpCodes2[HttpCodes2["OK"] = 200] = "OK"; + HttpCodes2[HttpCodes2["MultipleChoices"] = 300] = "MultipleChoices"; + HttpCodes2[HttpCodes2["MovedPermanently"] = 301] = "MovedPermanently"; + HttpCodes2[HttpCodes2["ResourceMoved"] = 302] = "ResourceMoved"; + HttpCodes2[HttpCodes2["SeeOther"] = 303] = "SeeOther"; + HttpCodes2[HttpCodes2["NotModified"] = 304] = "NotModified"; + HttpCodes2[HttpCodes2["UseProxy"] = 305] = "UseProxy"; + HttpCodes2[HttpCodes2["SwitchProxy"] = 306] = "SwitchProxy"; + HttpCodes2[HttpCodes2["TemporaryRedirect"] = 307] = "TemporaryRedirect"; + HttpCodes2[HttpCodes2["PermanentRedirect"] = 308] = "PermanentRedirect"; + HttpCodes2[HttpCodes2["BadRequest"] = 400] = "BadRequest"; + HttpCodes2[HttpCodes2["Unauthorized"] = 401] = "Unauthorized"; + HttpCodes2[HttpCodes2["PaymentRequired"] = 402] = "PaymentRequired"; + HttpCodes2[HttpCodes2["Forbidden"] = 403] = "Forbidden"; + HttpCodes2[HttpCodes2["NotFound"] = 404] = "NotFound"; + HttpCodes2[HttpCodes2["MethodNotAllowed"] = 405] = "MethodNotAllowed"; + HttpCodes2[HttpCodes2["NotAcceptable"] = 406] = "NotAcceptable"; + HttpCodes2[HttpCodes2["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired"; + HttpCodes2[HttpCodes2["RequestTimeout"] = 408] = "RequestTimeout"; + HttpCodes2[HttpCodes2["Conflict"] = 409] = "Conflict"; + HttpCodes2[HttpCodes2["Gone"] = 410] = "Gone"; + HttpCodes2[HttpCodes2["TooManyRequests"] = 429] = "TooManyRequests"; + HttpCodes2[HttpCodes2["InternalServerError"] = 500] = "InternalServerError"; + HttpCodes2[HttpCodes2["NotImplemented"] = 501] = "NotImplemented"; + HttpCodes2[HttpCodes2["BadGateway"] = 502] = "BadGateway"; + HttpCodes2[HttpCodes2["ServiceUnavailable"] = 503] = "ServiceUnavailable"; + HttpCodes2[HttpCodes2["GatewayTimeout"] = 504] = "GatewayTimeout"; + })(HttpCodes = exports2.HttpCodes || (exports2.HttpCodes = {})); + var Headers; + (function(Headers2) { + Headers2["Accept"] = "accept"; + Headers2["ContentType"] = "content-type"; + })(Headers = exports2.Headers || (exports2.Headers = {})); + var MediaTypes; + (function(MediaTypes2) { + MediaTypes2["ApplicationJson"] = "application/json"; + })(MediaTypes = exports2.MediaTypes || (exports2.MediaTypes = {})); + function getProxyUrl(serverUrl) { + const proxyUrl = pm.getProxyUrl(new URL(serverUrl)); + return proxyUrl ? proxyUrl.href : ""; + } + exports2.getProxyUrl = getProxyUrl; + var HttpRedirectCodes = [ + HttpCodes.MovedPermanently, + HttpCodes.ResourceMoved, + HttpCodes.SeeOther, + HttpCodes.TemporaryRedirect, + HttpCodes.PermanentRedirect + ]; + var HttpResponseRetryCodes = [ + HttpCodes.BadGateway, + HttpCodes.ServiceUnavailable, + HttpCodes.GatewayTimeout + ]; + var RetryableHttpVerbs = ["OPTIONS", "GET", "DELETE", "HEAD"]; + var ExponentialBackoffCeiling = 10; + var ExponentialBackoffTimeSlice = 5; + var HttpClientError = class extends Error { + constructor(message, statusCode) { + super(message); + this.name = "HttpClientError"; + this.statusCode = statusCode; + Object.setPrototypeOf(this, HttpClientError.prototype); } - } - exports2.exportVariable = exportVariable; - function setSecret(secret) { - command_1.issueCommand("add-mask", {}, secret); - } - exports2.setSecret = setSecret; - function addPath(inputPath) { - const filePath = process.env["GITHUB_PATH"] || ""; - if (filePath) { - file_command_1.issueCommand("PATH", inputPath); - } else { - command_1.issueCommand("add-path", {}, inputPath); + }; + exports2.HttpClientError = HttpClientError; + var HttpClientResponse = class { + constructor(message) { + this.message = message; } - process.env["PATH"] = `${inputPath}${path.delimiter}${process.env["PATH"]}`; - } - exports2.addPath = addPath; - function getInput2(name, options) { - const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; - if (options && options.required && !val) { - throw new Error(`Input required and not supplied: ${name}`); - } - if (options && options.trimWhitespace === false) { - return val; + readBody() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { + let output = Buffer.alloc(0); + this.message.on("data", (chunk) => { + output = Buffer.concat([output, chunk]); + }); + this.message.on("end", () => { + resolve(output.toString()); + }); + })); + }); } - return val.trim(); - } - exports2.getInput = getInput2; - function getMultilineInput(name, options) { - const inputs = getInput2(name, options).split("\n").filter((x2) => x2 !== ""); - return inputs; - } - exports2.getMultilineInput = getMultilineInput; - function getBooleanInput(name, options) { - const trueValue = ["true", "True", "TRUE"]; - const falseValue = ["false", "False", "FALSE"]; - const val = getInput2(name, options); - if (trueValue.includes(val)) - return true; - if (falseValue.includes(val)) - return false; - throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name} -Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); - } - exports2.getBooleanInput = getBooleanInput; - function setOutput(name, value) { - process.stdout.write(os2.EOL); - command_1.issueCommand("set-output", { name }, value); - } - exports2.setOutput = setOutput; - function setCommandEcho(enabled) { - command_1.issue("echo", enabled ? "on" : "off"); - } - exports2.setCommandEcho = setCommandEcho; - function setFailed(message) { - process.exitCode = ExitCode.Failure; - error(message); - } - exports2.setFailed = setFailed; - function isDebug() { - return process.env["RUNNER_DEBUG"] === "1"; - } - exports2.isDebug = isDebug; - function debug(message) { - command_1.issueCommand("debug", {}, message); - } - exports2.debug = debug; - function error(message) { - command_1.issue("error", message instanceof Error ? message.toString() : message); - } - exports2.error = error; - function warning(message) { - command_1.issue("warning", message instanceof Error ? message.toString() : message); - } - exports2.warning = warning; - function info2(message) { - process.stdout.write(message + os2.EOL); - } - exports2.info = info2; - function startGroup2(name) { - command_1.issue("group", name); - } - exports2.startGroup = startGroup2; - function endGroup2() { - command_1.issue("endgroup"); - } - exports2.endGroup = endGroup2; - function group(name, fn) { - return __awaiter(this, void 0, void 0, function* () { - startGroup2(name); - let result; - try { - result = yield fn(); - } finally { - endGroup2(); + }; + exports2.HttpClientResponse = HttpClientResponse; + function isHttps(requestUrl) { + const parsedUrl = new URL(requestUrl); + return parsedUrl.protocol === "https:"; + } + exports2.isHttps = isHttps; + var HttpClient = class { + constructor(userAgent, handlers, requestOptions) { + this._ignoreSslError = false; + this._allowRedirects = true; + this._allowRedirectDowngrade = false; + this._maxRedirects = 50; + this._allowRetries = false; + this._maxRetries = 1; + this._keepAlive = false; + this._disposed = false; + this.userAgent = userAgent; + this.handlers = handlers || []; + this.requestOptions = requestOptions; + if (requestOptions) { + if (requestOptions.ignoreSslError != null) { + this._ignoreSslError = requestOptions.ignoreSslError; + } + this._socketTimeout = requestOptions.socketTimeout; + if (requestOptions.allowRedirects != null) { + this._allowRedirects = requestOptions.allowRedirects; + } + if (requestOptions.allowRedirectDowngrade != null) { + this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade; + } + if (requestOptions.maxRedirects != null) { + this._maxRedirects = Math.max(requestOptions.maxRedirects, 0); + } + if (requestOptions.keepAlive != null) { + this._keepAlive = requestOptions.keepAlive; + } + if (requestOptions.allowRetries != null) { + this._allowRetries = requestOptions.allowRetries; + } + if (requestOptions.maxRetries != null) { + this._maxRetries = requestOptions.maxRetries; + } } - return result; - }); - } - exports2.group = group; - function saveState(name, value) { - command_1.issueCommand("save-state", { name }, value); - } - exports2.saveState = saveState; - function getState(name) { - return process.env[`STATE_${name}`] || ""; - } - exports2.getState = getState; - } -}); - -// node_modules/object-assign/index.js -var require_object_assign = __commonJS({ - "node_modules/object-assign/index.js"(exports2, module2) { - "use strict"; - var getOwnPropertySymbols = Object.getOwnPropertySymbols; - var hasOwnProperty = Object.prototype.hasOwnProperty; - var propIsEnumerable = Object.prototype.propertyIsEnumerable; - function toObject(val) { - if (val === null || val === void 0) { - throw new TypeError("Object.assign cannot be called with null or undefined"); } - return Object(val); - } - function shouldUseNative() { - try { - if (!Object.assign) { - return false; + options(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("OPTIONS", requestUrl, null, additionalHeaders || {}); + }); + } + get(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("GET", requestUrl, null, additionalHeaders || {}); + }); + } + del(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("DELETE", requestUrl, null, additionalHeaders || {}); + }); + } + post(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("POST", requestUrl, data, additionalHeaders || {}); + }); + } + patch(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("PATCH", requestUrl, data, additionalHeaders || {}); + }); + } + put(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("PUT", requestUrl, data, additionalHeaders || {}); + }); + } + head(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request("HEAD", requestUrl, null, additionalHeaders || {}); + }); + } + sendStream(verb, requestUrl, stream, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request(verb, requestUrl, stream, additionalHeaders); + }); + } + getJson(requestUrl, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + const res2 = yield this.get(requestUrl, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + }); + } + postJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res2 = yield this.post(requestUrl, data, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + }); + } + putJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res2 = yield this.put(requestUrl, data, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + }); + } + patchJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res2 = yield this.patch(requestUrl, data, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + }); + } + request(verb, requestUrl, data, headers) { + return __awaiter(this, void 0, void 0, function* () { + if (this._disposed) { + throw new Error("Client has already been disposed."); + } + const parsedUrl = new URL(requestUrl); + let info2 = this._prepareRequest(verb, parsedUrl, headers); + const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb) ? this._maxRetries + 1 : 1; + let numTries = 0; + let response; + do { + response = yield this.requestRaw(info2, data); + if (response && response.message && response.message.statusCode === HttpCodes.Unauthorized) { + let authenticationHandler; + for (const handler of this.handlers) { + if (handler.canHandleAuthentication(response)) { + authenticationHandler = handler; + break; + } + } + if (authenticationHandler) { + return authenticationHandler.handleAuthentication(this, info2, data); + } else { + return response; + } + } + let redirectsRemaining = this._maxRedirects; + while (response.message.statusCode && HttpRedirectCodes.includes(response.message.statusCode) && this._allowRedirects && redirectsRemaining > 0) { + const redirectUrl = response.message.headers["location"]; + if (!redirectUrl) { + break; + } + const parsedRedirectUrl = new URL(redirectUrl); + if (parsedUrl.protocol === "https:" && parsedUrl.protocol !== parsedRedirectUrl.protocol && !this._allowRedirectDowngrade) { + throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true."); + } + yield response.readBody(); + if (parsedRedirectUrl.hostname !== parsedUrl.hostname) { + for (const header in headers) { + if (header.toLowerCase() === "authorization") { + delete headers[header]; + } + } + } + info2 = this._prepareRequest(verb, parsedRedirectUrl, headers); + response = yield this.requestRaw(info2, data); + redirectsRemaining--; + } + if (!response.message.statusCode || !HttpResponseRetryCodes.includes(response.message.statusCode)) { + return response; + } + numTries += 1; + if (numTries < maxTries) { + yield response.readBody(); + yield this._performExponentialBackoff(numTries); + } + } while (numTries < maxTries); + return response; + }); + } + dispose() { + if (this._agent) { + this._agent.destroy(); } - var test1 = new String("abc"); - test1[5] = "de"; - if (Object.getOwnPropertyNames(test1)[0] === "5") { - return false; + this._disposed = true; + } + requestRaw(info2, data) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + function callbackForResult(err, res2) { + if (err) { + reject(err); + } else if (!res2) { + reject(new Error("Unknown error")); + } else { + resolve(res2); + } + } + this.requestRawWithCallback(info2, data, callbackForResult); + }); + }); + } + requestRawWithCallback(info2, data, onResult) { + if (typeof data === "string") { + if (!info2.options.headers) { + info2.options.headers = {}; + } + info2.options.headers["Content-Length"] = Buffer.byteLength(data, "utf8"); } - var test2 = {}; - for (var i = 0; i < 10; i++) { - test2["_" + String.fromCharCode(i)] = i; + let callbackCalled = false; + function handleResult(err, res2) { + if (!callbackCalled) { + callbackCalled = true; + onResult(err, res2); + } } - var order2 = Object.getOwnPropertyNames(test2).map(function(n2) { - return test2[n2]; + const req = info2.httpModule.request(info2.options, (msg) => { + const res2 = new HttpClientResponse(msg); + handleResult(void 0, res2); }); - if (order2.join("") !== "0123456789") { - return false; - } - var test3 = {}; - "abcdefghijklmnopqrst".split("").forEach(function(letter) { - test3[letter] = letter; + let socket; + req.on("socket", (sock) => { + socket = sock; }); - if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") { - return false; + req.setTimeout(this._socketTimeout || 3 * 6e4, () => { + if (socket) { + socket.end(); + } + handleResult(new Error(`Request timeout: ${info2.options.path}`)); + }); + req.on("error", function(err) { + handleResult(err); + }); + if (data && typeof data === "string") { + req.write(data, "utf8"); + } + if (data && typeof data !== "string") { + data.on("close", function() { + req.end(); + }); + data.pipe(req); + } else { + req.end(); } - return true; - } catch (err) { - return false; } - } - module2.exports = shouldUseNative() ? Object.assign : function(target, source) { - var from; - var to = toObject(target); - var symbols; - for (var s = 1; s < arguments.length; s++) { - from = Object(arguments[s]); - for (var key in from) { - if (hasOwnProperty.call(from, key)) { - to[key] = from[key]; - } + getAgent(serverUrl) { + const parsedUrl = new URL(serverUrl); + return this._getAgent(parsedUrl); + } + _prepareRequest(method, requestUrl, headers) { + const info2 = {}; + info2.parsedUrl = requestUrl; + const usingSsl = info2.parsedUrl.protocol === "https:"; + info2.httpModule = usingSsl ? https : http2; + const defaultPort = usingSsl ? 443 : 80; + info2.options = {}; + info2.options.host = info2.parsedUrl.hostname; + info2.options.port = info2.parsedUrl.port ? parseInt(info2.parsedUrl.port) : defaultPort; + info2.options.path = (info2.parsedUrl.pathname || "") + (info2.parsedUrl.search || ""); + info2.options.method = method; + info2.options.headers = this._mergeHeaders(headers); + if (this.userAgent != null) { + info2.options.headers["user-agent"] = this.userAgent; + } + info2.options.agent = this._getAgent(info2.parsedUrl); + if (this.handlers) { + for (const handler of this.handlers) { + handler.prepareRequest(info2.options); + } + } + return info2; + } + _mergeHeaders(headers) { + if (this.requestOptions && this.requestOptions.headers) { + return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {})); } - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from); - for (var i = 0; i < symbols.length; i++) { - if (propIsEnumerable.call(from, symbols[i])) { - to[symbols[i]] = from[symbols[i]]; - } + return lowercaseKeys(headers || {}); + } + _getExistingOrDefaultHeader(additionalHeaders, header, _default) { + let clientHeader; + if (this.requestOptions && this.requestOptions.headers) { + clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; + } + return additionalHeaders[header] || clientHeader || _default; + } + _getAgent(parsedUrl) { + let agent; + const proxyUrl = pm.getProxyUrl(parsedUrl); + const useProxy = proxyUrl && proxyUrl.hostname; + if (this._keepAlive && useProxy) { + agent = this._proxyAgent; + } + if (this._keepAlive && !useProxy) { + agent = this._agent; + } + if (agent) { + return agent; + } + const usingSsl = parsedUrl.protocol === "https:"; + let maxSockets = 100; + if (this.requestOptions) { + maxSockets = this.requestOptions.maxSockets || http2.globalAgent.maxSockets; + } + if (proxyUrl && proxyUrl.hostname) { + const agentOptions = { + maxSockets, + keepAlive: this._keepAlive, + proxy: Object.assign(Object.assign({}, (proxyUrl.username || proxyUrl.password) && { + proxyAuth: `${proxyUrl.username}:${proxyUrl.password}` + }), { host: proxyUrl.hostname, port: proxyUrl.port }) + }; + let tunnelAgent; + const overHttps = proxyUrl.protocol === "https:"; + if (usingSsl) { + tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp; + } else { + tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp; } + agent = tunnelAgent(agentOptions); + this._proxyAgent = agent; + } + if (this._keepAlive && !agent) { + const options = { keepAlive: this._keepAlive, maxSockets }; + agent = usingSsl ? new https.Agent(options) : new http2.Agent(options); + this._agent = agent; + } + if (!agent) { + agent = usingSsl ? https.globalAgent : http2.globalAgent; } + if (usingSsl && this._ignoreSslError) { + agent.options = Object.assign(agent.options || {}, { + rejectUnauthorized: false + }); + } + return agent; + } + _performExponentialBackoff(retryNumber) { + return __awaiter(this, void 0, void 0, function* () { + retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); + const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); + return new Promise((resolve) => setTimeout(() => resolve(), ms)); + }); + } + _processResponse(res2, options) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { + const statusCode = res2.message.statusCode || 0; + const response = { + statusCode, + result: null, + headers: {} + }; + if (statusCode === HttpCodes.NotFound) { + resolve(response); + } + function dateTimeDeserializer(key, value) { + if (typeof value === "string") { + const a2 = new Date(value); + if (!isNaN(a2.valueOf())) { + return a2; + } + } + return value; + } + let obj; + let contents; + try { + contents = yield res2.readBody(); + if (contents && contents.length > 0) { + if (options && options.deserializeDates) { + obj = JSON.parse(contents, dateTimeDeserializer); + } else { + obj = JSON.parse(contents); + } + response.result = obj; + } + response.headers = res2.message.headers; + } catch (err) { + } + if (statusCode > 299) { + let msg; + if (obj && obj.message) { + msg = obj.message; + } else if (contents && contents.length > 0) { + msg = contents; + } else { + msg = `Failed request: (${statusCode})`; + } + const err = new HttpClientError(msg, statusCode); + err.result = response.result; + reject(err); + } else { + resolve(response); + } + })); + }); } - return to; }; + exports2.HttpClient = HttpClient; + var lowercaseKeys = (obj) => Object.keys(obj).reduce((c3, k) => (c3[k.toLowerCase()] = obj[k], c3), {}); } }); -// node_modules/react/cjs/react.production.min.js -var require_react_production_min = __commonJS({ - "node_modules/react/cjs/react.production.min.js"(exports2) { +// node_modules/@actions/core/node_modules/@actions/http-client/lib/auth.js +var require_auth = __commonJS({ + "node_modules/@actions/core/node_modules/@actions/http-client/lib/auth.js"(exports2) { "use strict"; - var l2 = require_object_assign(); - var n2 = 60103; - var p2 = 60106; - exports2.Fragment = 60107; - exports2.StrictMode = 60108; - exports2.Profiler = 60114; - var q2 = 60109; - var r4 = 60110; - var t2 = 60112; - exports2.Suspense = 60113; - var u = 60115; - var v2 = 60116; - if (typeof Symbol === "function" && Symbol.for) { - w2 = Symbol.for; - n2 = w2("react.element"); - p2 = w2("react.portal"); - exports2.Fragment = w2("react.fragment"); - exports2.StrictMode = w2("react.strict_mode"); - exports2.Profiler = w2("react.profiler"); - q2 = w2("react.provider"); - r4 = w2("react.context"); - t2 = w2("react.forward_ref"); - exports2.Suspense = w2("react.suspense"); - u = w2("react.memo"); - v2 = w2("react.lazy"); - } - var w2; - var x2 = typeof Symbol === "function" && Symbol.iterator; - function y3(a2) { - if (a2 === null || typeof a2 !== "object") - return null; - a2 = x2 && a2[x2] || a2["@@iterator"]; - return typeof a2 === "function" ? a2 : null; - } - function z(a2) { - for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a2, c3 = 1; c3 < arguments.length; c3++) - b += "&args[]=" + encodeURIComponent(arguments[c3]); - return "Minified React error #" + a2 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; - } - var A = { isMounted: function() { - return false; - }, enqueueForceUpdate: function() { - }, enqueueReplaceState: function() { - }, enqueueSetState: function() { - } }; - var B = {}; - function C(a2, b, c3) { - this.props = a2; - this.context = b; - this.refs = B; - this.updater = c3 || A; - } - C.prototype.isReactComponent = {}; - C.prototype.setState = function(a2, b) { - if (typeof a2 !== "object" && typeof a2 !== "function" && a2 != null) - throw Error(z(85)); - this.updater.enqueueSetState(this, a2, b, "setState"); - }; - C.prototype.forceUpdate = function(a2) { - this.updater.enqueueForceUpdate(this, a2, "forceUpdate"); - }; - function D() { - } - D.prototype = C.prototype; - function E2(a2, b, c3) { - this.props = a2; - this.context = b; - this.refs = B; - this.updater = c3 || A; - } - var F = E2.prototype = new D(); - F.constructor = E2; - l2(F, C.prototype); - F.isPureReactComponent = true; - var G = { current: null }; - var H = Object.prototype.hasOwnProperty; - var I = { key: true, ref: true, __self: true, __source: true }; - function J(a2, b, c3) { - var e3, d2 = {}, k = null, h2 = null; - if (b != null) - for (e3 in b.ref !== void 0 && (h2 = b.ref), b.key !== void 0 && (k = "" + b.key), b) - H.call(b, e3) && !I.hasOwnProperty(e3) && (d2[e3] = b[e3]); - var g2 = arguments.length - 2; - if (g2 === 1) - d2.children = c3; - else if (1 < g2) { - for (var f2 = Array(g2), m4 = 0; m4 < g2; m4++) - f2[m4] = arguments[m4 + 2]; - d2.children = f2; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); } - if (a2 && a2.defaultProps) - for (e3 in g2 = a2.defaultProps, g2) - d2[e3] === void 0 && (d2[e3] = g2[e3]); - return { $$typeof: n2, type: a2, key: k, ref: h2, props: d2, _owner: G.current }; - } - function K(a2, b) { - return { $$typeof: n2, type: a2.type, key: b, ref: a2.ref, props: a2.props, _owner: a2._owner }; - } - function L(a2) { - return typeof a2 === "object" && a2 !== null && a2.$$typeof === n2; - } - function escape(a2) { - var b = { "=": "=0", ":": "=2" }; - return "$" + a2.replace(/[=:]/g, function(a3) { - return b[a3]; - }); - } - var M = /\/+/g; - function N(a2, b) { - return typeof a2 === "object" && a2 !== null && a2.key != null ? escape("" + a2.key) : b.toString(36); - } - function O(a2, b, c3, e3, d2) { - var k = typeof a2; - if (k === "undefined" || k === "boolean") - a2 = null; - var h2 = false; - if (a2 === null) - h2 = true; - else - switch (k) { - case "string": - case "number": - h2 = true; - break; - case "object": - switch (a2.$$typeof) { - case n2: - case p2: - h2 = true; - } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } } - if (h2) - return h2 = a2, d2 = d2(h2), a2 = e3 === "" ? "." + N(h2, 0) : e3, Array.isArray(d2) ? (c3 = "", a2 != null && (c3 = a2.replace(M, "$&/") + "/"), O(d2, b, c3, "", function(a3) { - return a3; - })) : d2 != null && (L(d2) && (d2 = K(d2, c3 + (!d2.key || h2 && h2.key === d2.key ? "" : ("" + d2.key).replace(M, "$&/") + "/") + a2)), b.push(d2)), 1; - h2 = 0; - e3 = e3 === "" ? "." : e3 + ":"; - if (Array.isArray(a2)) - for (var g2 = 0; g2 < a2.length; g2++) { - k = a2[g2]; - var f2 = e3 + N(k, g2); - h2 += O(k, b, c3, f2, d2); + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } } - else if (f2 = y3(a2), typeof f2 === "function") - for (a2 = f2.call(a2), g2 = 0; !(k = a2.next()).done; ) - k = k.value, f2 = e3 + N(k, g2++), h2 += O(k, b, c3, f2, d2); - else if (k === "object") - throw b = "" + a2, Error(z(31, b === "[object Object]" ? "object with keys {" + Object.keys(a2).join(", ") + "}" : b)); - return h2; - } - function P(a2, b, c3) { - if (a2 == null) - return a2; - var e3 = [], d2 = 0; - O(a2, e3, "", "", function(a3) { - return b.call(c3, a3, d2++); + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); - return e3; - } - function Q(a2) { - if (a2._status === -1) { - var b = a2._result; - b = b(); - a2._status = 0; - a2._result = b; - b.then(function(b2) { - a2._status === 0 && (b2 = b2.default, a2._status = 1, a2._result = b2); - }, function(b2) { - a2._status === 0 && (a2._status = 2, a2._result = b2); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.PersonalAccessTokenCredentialHandler = exports2.BearerCredentialHandler = exports2.BasicCredentialHandler = void 0; + var BasicCredentialHandler = class { + constructor(username, password) { + this.username = username; + this.password = password; + } + prepareRequest(options) { + if (!options.headers) { + throw Error("The request has no headers"); + } + options.headers["Authorization"] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`; + } + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error("not implemented"); }); } - if (a2._status === 1) - return a2._result; - throw a2._result; - } - var R = { current: null }; - function S() { - var a2 = R.current; - if (a2 === null) - throw Error(z(321)); - return a2; - } - var T = { ReactCurrentDispatcher: R, ReactCurrentBatchConfig: { transition: 0 }, ReactCurrentOwner: G, IsSomeRendererActing: { current: false }, assign: l2 }; - exports2.Children = { map: P, forEach: function(a2, b, c3) { - P(a2, function() { - b.apply(this, arguments); - }, c3); - }, count: function(a2) { - var b = 0; - P(a2, function() { - b++; - }); - return b; - }, toArray: function(a2) { - return P(a2, function(a3) { - return a3; - }) || []; - }, only: function(a2) { - if (!L(a2)) - throw Error(z(143)); - return a2; - } }; - exports2.Component = C; - exports2.PureComponent = E2; - exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = T; - exports2.cloneElement = function(a2, b, c3) { - if (a2 === null || a2 === void 0) - throw Error(z(267, a2)); - var e3 = l2({}, a2.props), d2 = a2.key, k = a2.ref, h2 = a2._owner; - if (b != null) { - b.ref !== void 0 && (k = b.ref, h2 = G.current); - b.key !== void 0 && (d2 = "" + b.key); - if (a2.type && a2.type.defaultProps) - var g2 = a2.type.defaultProps; - for (f2 in b) - H.call(b, f2) && !I.hasOwnProperty(f2) && (e3[f2] = b[f2] === void 0 && g2 !== void 0 ? g2[f2] : b[f2]); + }; + exports2.BasicCredentialHandler = BasicCredentialHandler; + var BearerCredentialHandler = class { + constructor(token) { + this.token = token; } - var f2 = arguments.length - 2; - if (f2 === 1) - e3.children = c3; - else if (1 < f2) { - g2 = Array(f2); - for (var m4 = 0; m4 < f2; m4++) - g2[m4] = arguments[m4 + 2]; - e3.children = g2; + prepareRequest(options) { + if (!options.headers) { + throw Error("The request has no headers"); + } + options.headers["Authorization"] = `Bearer ${this.token}`; + } + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error("not implemented"); + }); } - return { - $$typeof: n2, - type: a2.type, - key: d2, - ref: k, - props: e3, - _owner: h2 - }; }; - exports2.createContext = function(a2, b) { - b === void 0 && (b = null); - a2 = { $$typeof: r4, _calculateChangedBits: b, _currentValue: a2, _currentValue2: a2, _threadCount: 0, Provider: null, Consumer: null }; - a2.Provider = { $$typeof: q2, _context: a2 }; - return a2.Consumer = a2; - }; - exports2.createElement = J; - exports2.createFactory = function(a2) { - var b = J.bind(null, a2); - b.type = a2; - return b; - }; - exports2.createRef = function() { - return { current: null }; - }; - exports2.forwardRef = function(a2) { - return { $$typeof: t2, render: a2 }; - }; - exports2.isValidElement = L; - exports2.lazy = function(a2) { - return { $$typeof: v2, _payload: { _status: -1, _result: a2 }, _init: Q }; - }; - exports2.memo = function(a2, b) { - return { $$typeof: u, type: a2, compare: b === void 0 ? null : b }; - }; - exports2.useCallback = function(a2, b) { - return S().useCallback(a2, b); - }; - exports2.useContext = function(a2, b) { - return S().useContext(a2, b); - }; - exports2.useDebugValue = function() { - }; - exports2.useEffect = function(a2, b) { - return S().useEffect(a2, b); - }; - exports2.useImperativeHandle = function(a2, b, c3) { - return S().useImperativeHandle(a2, b, c3); - }; - exports2.useLayoutEffect = function(a2, b) { - return S().useLayoutEffect(a2, b); - }; - exports2.useMemo = function(a2, b) { - return S().useMemo(a2, b); - }; - exports2.useReducer = function(a2, b, c3) { - return S().useReducer(a2, b, c3); - }; - exports2.useRef = function(a2) { - return S().useRef(a2); - }; - exports2.useState = function(a2) { - return S().useState(a2); + exports2.BearerCredentialHandler = BearerCredentialHandler; + var PersonalAccessTokenCredentialHandler = class { + constructor(token) { + this.token = token; + } + prepareRequest(options) { + if (!options.headers) { + throw Error("The request has no headers"); + } + options.headers["Authorization"] = `Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`; + } + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error("not implemented"); + }); + } }; - exports2.version = "17.0.2"; + exports2.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; } }); -// node_modules/react/cjs/react.development.js -var require_react_development = __commonJS({ - "node_modules/react/cjs/react.development.js"(exports2) { +// node_modules/@actions/core/lib/oidc-utils.js +var require_oidc_utils = __commonJS({ + "node_modules/@actions/core/lib/oidc-utils.js"(exports2) { "use strict"; - if (process.env.NODE_ENV !== "production") { - (function() { - "use strict"; - var _assign = require_object_assign(); - var ReactVersion = "17.0.2"; - var REACT_ELEMENT_TYPE = 60103; - var REACT_PORTAL_TYPE = 60106; - exports2.Fragment = 60107; - exports2.StrictMode = 60108; - exports2.Profiler = 60114; - var REACT_PROVIDER_TYPE = 60109; - var REACT_CONTEXT_TYPE = 60110; - var REACT_FORWARD_REF_TYPE = 60112; - exports2.Suspense = 60113; - var REACT_SUSPENSE_LIST_TYPE = 60120; - var REACT_MEMO_TYPE = 60115; - var REACT_LAZY_TYPE = 60116; - var REACT_BLOCK_TYPE = 60121; - var REACT_SERVER_BLOCK_TYPE = 60122; - var REACT_FUNDAMENTAL_TYPE = 60117; - var REACT_SCOPE_TYPE = 60119; - var REACT_OPAQUE_ID_TYPE = 60128; - var REACT_DEBUG_TRACING_MODE_TYPE = 60129; - var REACT_OFFSCREEN_TYPE = 60130; - var REACT_LEGACY_HIDDEN_TYPE = 60131; - if (typeof Symbol === "function" && Symbol.for) { - var symbolFor = Symbol.for; - REACT_ELEMENT_TYPE = symbolFor("react.element"); - REACT_PORTAL_TYPE = symbolFor("react.portal"); - exports2.Fragment = symbolFor("react.fragment"); - exports2.StrictMode = symbolFor("react.strict_mode"); - exports2.Profiler = symbolFor("react.profiler"); - REACT_PROVIDER_TYPE = symbolFor("react.provider"); - REACT_CONTEXT_TYPE = symbolFor("react.context"); - REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref"); - exports2.Suspense = symbolFor("react.suspense"); - REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list"); - REACT_MEMO_TYPE = symbolFor("react.memo"); - REACT_LAZY_TYPE = symbolFor("react.lazy"); - REACT_BLOCK_TYPE = symbolFor("react.block"); - REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block"); - REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental"); - REACT_SCOPE_TYPE = symbolFor("react.scope"); - REACT_OPAQUE_ID_TYPE = symbolFor("react.opaque.id"); - REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode"); - REACT_OFFSCREEN_TYPE = symbolFor("react.offscreen"); - REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden"); - } - var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator; - var FAUX_ITERATOR_SYMBOL = "@@iterator"; - function getIteratorFn(maybeIterable) { - if (maybeIterable === null || typeof maybeIterable !== "object") { - return null; - } - var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; - if (typeof maybeIterator === "function") { - return maybeIterator; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); } - return null; } - var ReactCurrentDispatcher = { - current: null - }; - var ReactCurrentBatchConfig = { - transition: 0 - }; - var ReactCurrentOwner = { - current: null - }; - var ReactDebugCurrentFrame = {}; - var currentExtraStackFrame = null; - function setExtraStackFrame(stack) { - { - currentExtraStackFrame = stack; + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); } } - { - ReactDebugCurrentFrame.setExtraStackFrame = function(stack) { - { - currentExtraStackFrame = stack; - } - }; - ReactDebugCurrentFrame.getCurrentStack = null; - ReactDebugCurrentFrame.getStackAddendum = function() { - var stack = ""; - if (currentExtraStackFrame) { - stack += currentExtraStackFrame; - } - var impl = ReactDebugCurrentFrame.getCurrentStack; - if (impl) { - stack += impl() || ""; - } - return stack; - }; + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - var IsSomeRendererActing = { - current: false - }; - var ReactSharedInternals = { - ReactCurrentDispatcher, - ReactCurrentBatchConfig, - ReactCurrentOwner, - IsSomeRendererActing, - assign: _assign + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.OidcClient = void 0; + var http_client_1 = require_lib(); + var auth_1 = require_auth(); + var core_1 = require_core(); + var OidcClient = class { + static createHttpClient(allowRetry = true, maxRetry = 10) { + const requestOptions = { + allowRetries: allowRetry, + maxRetries: maxRetry }; - { - ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame; + return new http_client_1.HttpClient("actions/oidc-client", [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions); + } + static getRequestToken() { + const token = process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"]; + if (!token) { + throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable"); } - function warn(format2) { - { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - printWarning("warn", format2, args); - } + return token; + } + static getIDTokenUrl() { + const runtimeUrl = process.env["ACTIONS_ID_TOKEN_REQUEST_URL"]; + if (!runtimeUrl) { + throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable"); } - function error(format2) { - { - for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } - printWarning("error", format2, args); + return runtimeUrl; + } + static getCall(id_token_url) { + var _a; + return __awaiter(this, void 0, void 0, function* () { + const httpclient = OidcClient.createHttpClient(); + const res2 = yield httpclient.getJson(id_token_url).catch((error) => { + throw new Error(`Failed to get ID Token. + + Error Code : ${error.statusCode} + + Error Message: ${error.result.message}`); + }); + const id_token = (_a = res2.result) === null || _a === void 0 ? void 0 : _a.value; + if (!id_token) { + throw new Error("Response json body do not have ID Token field"); } - } - function printWarning(level, format2, args) { - { - var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame; - var stack = ReactDebugCurrentFrame2.getStackAddendum(); - if (stack !== "") { - format2 += "%s"; - args = args.concat([stack]); + return id_token; + }); + } + static getIDToken(audience) { + return __awaiter(this, void 0, void 0, function* () { + try { + let id_token_url = OidcClient.getIDTokenUrl(); + if (audience) { + const encodedAudience = encodeURIComponent(audience); + id_token_url = `${id_token_url}&audience=${encodedAudience}`; } - var argsWithFormat = args.map(function(item) { - return "" + item; - }); - argsWithFormat.unshift("Warning: " + format2); - Function.prototype.apply.call(console[level], console, argsWithFormat); + core_1.debug(`ID token url is ${id_token_url}`); + const id_token = yield OidcClient.getCall(id_token_url); + core_1.setSecret(id_token); + return id_token; + } catch (error) { + throw new Error(`Error message: ${error.message}`); } - } - var didWarnStateUpdateForUnmountedComponent = {}; - function warnNoop(publicInstance, callerName) { - { - var _constructor = publicInstance.constructor; - var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass"; - var warningKey = componentName + "." + callerName; - if (didWarnStateUpdateForUnmountedComponent[warningKey]) { - return; - } - error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName); - didWarnStateUpdateForUnmountedComponent[warningKey] = true; + }); + } + }; + exports2.OidcClient = OidcClient; + } +}); + +// node_modules/@actions/core/lib/summary.js +var require_summary = __commonJS({ + "node_modules/@actions/core/lib/summary.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); } } - var ReactNoopUpdateQueue = { - isMounted: function(publicInstance) { - return false; - }, - enqueueForceUpdate: function(publicInstance, callback, callerName) { - warnNoop(publicInstance, "forceUpdate"); - }, - enqueueReplaceState: function(publicInstance, completeState, callback, callerName) { - warnNoop(publicInstance, "replaceState"); - }, - enqueueSetState: function(publicInstance, partialState, callback, callerName) { - warnNoop(publicInstance, "setState"); + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); } - }; - var emptyObject = {}; - { - Object.freeze(emptyObject); } - function Component(props2, context, updater) { - this.props = props2; - this.context = context; - this.refs = emptyObject; - this.updater = updater || ReactNoopUpdateQueue; + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - Component.prototype.isReactComponent = {}; - Component.prototype.setState = function(partialState, callback) { - if (!(typeof partialState === "object" || typeof partialState === "function" || partialState == null)) { - { - throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); - } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.summary = exports2.markdownSummary = exports2.SUMMARY_DOCS_URL = exports2.SUMMARY_ENV_VAR = void 0; + var os_1 = require("os"); + var fs_1 = require("fs"); + var { access, appendFile, writeFile } = fs_1.promises; + exports2.SUMMARY_ENV_VAR = "GITHUB_STEP_SUMMARY"; + exports2.SUMMARY_DOCS_URL = "https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary"; + var Summary = class { + constructor() { + this._buffer = ""; + } + filePath() { + return __awaiter(this, void 0, void 0, function* () { + if (this._filePath) { + return this._filePath; } - this.updater.enqueueSetState(this, partialState, callback, "setState"); - }; - Component.prototype.forceUpdate = function(callback) { - this.updater.enqueueForceUpdate(this, callback, "forceUpdate"); - }; - { - var deprecatedAPIs = { - isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."], - replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."] - }; - var defineDeprecationWarning = function(methodName, info2) { - Object.defineProperty(Component.prototype, methodName, { - get: function() { - warn("%s(...) is deprecated in plain JavaScript React classes. %s", info2[0], info2[1]); - return void 0; - } - }); - }; - for (var fnName in deprecatedAPIs) { - if (deprecatedAPIs.hasOwnProperty(fnName)) { - defineDeprecationWarning(fnName, deprecatedAPIs[fnName]); - } + const pathFromEnv = process.env[exports2.SUMMARY_ENV_VAR]; + if (!pathFromEnv) { + throw new Error(`Unable to find environment variable for $${exports2.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`); } - } - function ComponentDummy() { - } - ComponentDummy.prototype = Component.prototype; - function PureComponent(props2, context, updater) { - this.props = props2; - this.context = context; - this.refs = emptyObject; - this.updater = updater || ReactNoopUpdateQueue; - } - var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); - pureComponentPrototype.constructor = PureComponent; - _assign(pureComponentPrototype, Component.prototype); - pureComponentPrototype.isPureReactComponent = true; - function createRef() { - var refObject = { - current: null - }; - { - Object.seal(refObject); + try { + yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK); + } catch (_a) { + throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`); } - return refObject; - } - function getWrappedName(outerType, innerType, wrapperName) { - var functionName = innerType.displayName || innerType.name || ""; - return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName); - } - function getContextName(type2) { - return type2.displayName || "Context"; + this._filePath = pathFromEnv; + return this._filePath; + }); + } + wrap(tag, content, attrs = {}) { + const htmlAttrs = Object.entries(attrs).map(([key, value]) => ` ${key}="${value}"`).join(""); + if (!content) { + return `<${tag}${htmlAttrs}>`; } - function getComponentName(type2) { - if (type2 == null) { - return null; - } - { - if (typeof type2.tag === "number") { - error("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."); - } - } - if (typeof type2 === "function") { - return type2.displayName || type2.name || null; - } - if (typeof type2 === "string") { - return type2; - } - switch (type2) { - case exports2.Fragment: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case exports2.Profiler: - return "Profiler"; - case exports2.StrictMode: - return "StrictMode"; - case exports2.Suspense: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - } - if (typeof type2 === "object") { - switch (type2.$$typeof) { - case REACT_CONTEXT_TYPE: - var context = type2; - return getContextName(context) + ".Consumer"; - case REACT_PROVIDER_TYPE: - var provider = type2; - return getContextName(provider._context) + ".Provider"; - case REACT_FORWARD_REF_TYPE: - return getWrappedName(type2, type2.render, "ForwardRef"); - case REACT_MEMO_TYPE: - return getComponentName(type2.type); - case REACT_BLOCK_TYPE: - return getComponentName(type2._render); - case REACT_LAZY_TYPE: { - var lazyComponent = type2; - var payload = lazyComponent._payload; - var init2 = lazyComponent._init; - try { - return getComponentName(init2(payload)); - } catch (x2) { - return null; - } - } + return `<${tag}${htmlAttrs}>${content}`; + } + write(options) { + return __awaiter(this, void 0, void 0, function* () { + const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite); + const filePath = yield this.filePath(); + const writeFunc = overwrite ? writeFile : appendFile; + yield writeFunc(filePath, this._buffer, { encoding: "utf8" }); + return this.emptyBuffer(); + }); + } + clear() { + return __awaiter(this, void 0, void 0, function* () { + return this.emptyBuffer().write({ overwrite: true }); + }); + } + stringify() { + return this._buffer; + } + isEmptyBuffer() { + return this._buffer.length === 0; + } + emptyBuffer() { + this._buffer = ""; + return this; + } + addRaw(text, addEOL = false) { + this._buffer += text; + return addEOL ? this.addEOL() : this; + } + addEOL() { + return this.addRaw(os_1.EOL); + } + addCodeBlock(code, lang) { + const attrs = Object.assign({}, lang && { lang }); + const element = this.wrap("pre", this.wrap("code", code), attrs); + return this.addRaw(element).addEOL(); + } + addList(items, ordered = false) { + const tag = ordered ? "ol" : "ul"; + const listItems = items.map((item) => this.wrap("li", item)).join(""); + const element = this.wrap(tag, listItems); + return this.addRaw(element).addEOL(); + } + addTable(rows) { + const tableBody = rows.map((row) => { + const cells = row.map((cell) => { + if (typeof cell === "string") { + return this.wrap("td", cell); } + const { header, data, colspan, rowspan } = cell; + const tag = header ? "th" : "td"; + const attrs = Object.assign(Object.assign({}, colspan && { colspan }), rowspan && { rowspan }); + return this.wrap(tag, data, attrs); + }).join(""); + return this.wrap("tr", cells); + }).join(""); + const element = this.wrap("table", tableBody); + return this.addRaw(element).addEOL(); + } + addDetails(label, content) { + const element = this.wrap("details", this.wrap("summary", label) + content); + return this.addRaw(element).addEOL(); + } + addImage(src, alt, options) { + const { width: width2, height: height2 } = options || {}; + const attrs = Object.assign(Object.assign({}, width2 && { width: width2 }), height2 && { height: height2 }); + const element = this.wrap("img", null, Object.assign({ src, alt }, attrs)); + return this.addRaw(element).addEOL(); + } + addHeading(text, level) { + const tag = `h${level}`; + const allowedTag = ["h1", "h2", "h3", "h4", "h5", "h6"].includes(tag) ? tag : "h1"; + const element = this.wrap(allowedTag, text); + return this.addRaw(element).addEOL(); + } + addSeparator() { + const element = this.wrap("hr", null); + return this.addRaw(element).addEOL(); + } + addBreak() { + const element = this.wrap("br", null); + return this.addRaw(element).addEOL(); + } + addQuote(text, cite) { + const attrs = Object.assign({}, cite && { cite }); + const element = this.wrap("blockquote", text, attrs); + return this.addRaw(element).addEOL(); + } + addLink(text, href) { + const element = this.wrap("a", text, { href }); + return this.addRaw(element).addEOL(); + } + }; + var _summary = new Summary(); + exports2.markdownSummary = _summary; + exports2.summary = _summary; + } +}); + +// node_modules/@actions/core/lib/path-utils.js +var require_path_utils = __commonJS({ + "node_modules/@actions/core/lib/path-utils.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toPlatformPath = exports2.toWin32Path = exports2.toPosixPath = void 0; + var path = __importStar(require("path")); + function toPosixPath(pth) { + return pth.replace(/[\\]/g, "/"); + } + exports2.toPosixPath = toPosixPath; + function toWin32Path(pth) { + return pth.replace(/[/]/g, "\\"); + } + exports2.toWin32Path = toWin32Path; + function toPlatformPath(pth) { + return pth.replace(/[/\\]/g, path.sep); + } + exports2.toPlatformPath = toPlatformPath; + } +}); + +// node_modules/@actions/core/lib/core.js +var require_core = __commonJS({ + "node_modules/@actions/core/lib/core.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); } - return null; } - var hasOwnProperty = Object.prototype.hasOwnProperty; - var RESERVED_PROPS = { - key: true, - ref: true, - __self: true, - __source: true - }; - var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs; - { - didWarnAboutStringRefs = {}; - } - function hasValidRef(config) { - { - if (hasOwnProperty.call(config, "ref")) { - var getter = Object.getOwnPropertyDescriptor(config, "ref").get; - if (getter && getter.isReactWarning) { - return false; - } - } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); } - return config.ref !== void 0; } - function hasValidKey(config) { - { - if (hasOwnProperty.call(config, "key")) { - var getter = Object.getOwnPropertyDescriptor(config, "key").get; - if (getter && getter.isReactWarning) { - return false; + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getIDToken = exports2.getState = exports2.saveState = exports2.group = exports2.endGroup = exports2.startGroup = exports2.info = exports2.notice = exports2.warning = exports2.error = exports2.debug = exports2.isDebug = exports2.setFailed = exports2.setCommandEcho = exports2.setOutput = exports2.getBooleanInput = exports2.getMultilineInput = exports2.getInput = exports2.addPath = exports2.setSecret = exports2.exportVariable = exports2.ExitCode = void 0; + var command_1 = require_command(); + var file_command_1 = require_file_command(); + var utils_1 = require_utils(); + var os2 = __importStar(require("os")); + var path = __importStar(require("path")); + var oidc_utils_1 = require_oidc_utils(); + var ExitCode; + (function(ExitCode2) { + ExitCode2[ExitCode2["Success"] = 0] = "Success"; + ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; + })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); + function exportVariable(name, val) { + const convertedVal = utils_1.toCommandValue(val); + process.env[name] = convertedVal; + const filePath = process.env["GITHUB_ENV"] || ""; + if (filePath) { + return file_command_1.issueFileCommand("ENV", file_command_1.prepareKeyValueMessage(name, val)); + } + command_1.issueCommand("set-env", { name }, convertedVal); + } + exports2.exportVariable = exportVariable; + function setSecret(secret) { + command_1.issueCommand("add-mask", {}, secret); + } + exports2.setSecret = setSecret; + function addPath(inputPath) { + const filePath = process.env["GITHUB_PATH"] || ""; + if (filePath) { + file_command_1.issueFileCommand("PATH", inputPath); + } else { + command_1.issueCommand("add-path", {}, inputPath); + } + process.env["PATH"] = `${inputPath}${path.delimiter}${process.env["PATH"]}`; + } + exports2.addPath = addPath; + function getInput2(name, options) { + const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; + if (options && options.required && !val) { + throw new Error(`Input required and not supplied: ${name}`); + } + if (options && options.trimWhitespace === false) { + return val; + } + return val.trim(); + } + exports2.getInput = getInput2; + function getMultilineInput(name, options) { + const inputs = getInput2(name, options).split("\n").filter((x2) => x2 !== ""); + if (options && options.trimWhitespace === false) { + return inputs; + } + return inputs.map((input) => input.trim()); + } + exports2.getMultilineInput = getMultilineInput; + function getBooleanInput2(name, options) { + const trueValue = ["true", "True", "TRUE"]; + const falseValue = ["false", "False", "FALSE"]; + const val = getInput2(name, options); + if (trueValue.includes(val)) + return true; + if (falseValue.includes(val)) + return false; + throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name} +Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); + } + exports2.getBooleanInput = getBooleanInput2; + function setOutput2(name, value) { + const filePath = process.env["GITHUB_OUTPUT"] || ""; + if (filePath) { + return file_command_1.issueFileCommand("OUTPUT", file_command_1.prepareKeyValueMessage(name, value)); + } + process.stdout.write(os2.EOL); + command_1.issueCommand("set-output", { name }, utils_1.toCommandValue(value)); + } + exports2.setOutput = setOutput2; + function setCommandEcho(enabled) { + command_1.issue("echo", enabled ? "on" : "off"); + } + exports2.setCommandEcho = setCommandEcho; + function setFailed2(message) { + process.exitCode = ExitCode.Failure; + error(message); + } + exports2.setFailed = setFailed2; + function isDebug() { + return process.env["RUNNER_DEBUG"] === "1"; + } + exports2.isDebug = isDebug; + function debug(message) { + command_1.issueCommand("debug", {}, message); + } + exports2.debug = debug; + function error(message, properties2 = {}) { + command_1.issueCommand("error", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.error = error; + function warning(message, properties2 = {}) { + command_1.issueCommand("warning", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.warning = warning; + function notice(message, properties2 = {}) { + command_1.issueCommand("notice", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.notice = notice; + function info2(message) { + process.stdout.write(message + os2.EOL); + } + exports2.info = info2; + function startGroup2(name) { + command_1.issue("group", name); + } + exports2.startGroup = startGroup2; + function endGroup2() { + command_1.issue("endgroup"); + } + exports2.endGroup = endGroup2; + function group(name, fn) { + return __awaiter(this, void 0, void 0, function* () { + startGroup2(name); + let result; + try { + result = yield fn(); + } finally { + endGroup2(); + } + return result; + }); + } + exports2.group = group; + function saveState(name, value) { + const filePath = process.env["GITHUB_STATE"] || ""; + if (filePath) { + return file_command_1.issueFileCommand("STATE", file_command_1.prepareKeyValueMessage(name, value)); + } + command_1.issueCommand("save-state", { name }, utils_1.toCommandValue(value)); + } + exports2.saveState = saveState; + function getState(name) { + return process.env[`STATE_${name}`] || ""; + } + exports2.getState = getState; + function getIDToken(aud) { + return __awaiter(this, void 0, void 0, function* () { + return yield oidc_utils_1.OidcClient.getIDToken(aud); + }); + } + exports2.getIDToken = getIDToken; + var summary_1 = require_summary(); + Object.defineProperty(exports2, "summary", { enumerable: true, get: function() { + return summary_1.summary; + } }); + var summary_2 = require_summary(); + Object.defineProperty(exports2, "markdownSummary", { enumerable: true, get: function() { + return summary_2.markdownSummary; + } }); + var path_utils_1 = require_path_utils(); + Object.defineProperty(exports2, "toPosixPath", { enumerable: true, get: function() { + return path_utils_1.toPosixPath; + } }); + Object.defineProperty(exports2, "toWin32Path", { enumerable: true, get: function() { + return path_utils_1.toWin32Path; + } }); + Object.defineProperty(exports2, "toPlatformPath", { enumerable: true, get: function() { + return path_utils_1.toPlatformPath; + } }); + } +}); + +// node_modules/@actions/artifact/node_modules/@actions/core/lib/utils.js +var require_utils2 = __commonJS({ + "node_modules/@actions/artifact/node_modules/@actions/core/lib/utils.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.toCommandProperties = exports2.toCommandValue = void 0; + function toCommandValue(input) { + if (input === null || input === void 0) { + return ""; + } else if (typeof input === "string" || input instanceof String) { + return input; + } + return JSON.stringify(input); + } + exports2.toCommandValue = toCommandValue; + function toCommandProperties(annotationProperties) { + if (!Object.keys(annotationProperties).length) { + return {}; + } + return { + title: annotationProperties.title, + line: annotationProperties.startLine, + endLine: annotationProperties.endLine, + col: annotationProperties.startColumn, + endColumn: annotationProperties.endColumn + }; + } + exports2.toCommandProperties = toCommandProperties; + } +}); + +// node_modules/@actions/artifact/node_modules/@actions/core/lib/command.js +var require_command2 = __commonJS({ + "node_modules/@actions/artifact/node_modules/@actions/core/lib/command.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.issue = exports2.issueCommand = void 0; + var os2 = __importStar(require("os")); + var utils_1 = require_utils2(); + function issueCommand(command2, properties2, message) { + const cmd2 = new Command(command2, properties2, message); + process.stdout.write(cmd2.toString() + os2.EOL); + } + exports2.issueCommand = issueCommand; + function issue(name, message = "") { + issueCommand(name, {}, message); + } + exports2.issue = issue; + var CMD_STRING = "::"; + var Command = class { + constructor(command2, properties2, message) { + if (!command2) { + command2 = "missing.command"; + } + this.command = command2; + this.properties = properties2; + this.message = message; + } + toString() { + let cmdStr = CMD_STRING + this.command; + if (this.properties && Object.keys(this.properties).length > 0) { + cmdStr += " "; + let first = true; + for (const key in this.properties) { + if (this.properties.hasOwnProperty(key)) { + const val = this.properties[key]; + if (val) { + if (first) { + first = false; + } else { + cmdStr += ","; + } + cmdStr += `${key}=${escapeProperty(val)}`; } } } - return config.key !== void 0; } - function defineKeyPropWarningGetter(props2, displayName) { - var warnAboutAccessingKey = function() { - { - if (!specialPropKeyWarningShown) { - specialPropKeyWarningShown = true; - error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName); - } - } - }; - warnAboutAccessingKey.isReactWarning = true; - Object.defineProperty(props2, "key", { - get: warnAboutAccessingKey, - configurable: true - }); - } - function defineRefPropWarningGetter(props2, displayName) { - var warnAboutAccessingRef = function() { - { - if (!specialPropRefWarningShown) { - specialPropRefWarningShown = true; - error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName); - } - } - }; - warnAboutAccessingRef.isReactWarning = true; - Object.defineProperty(props2, "ref", { - get: warnAboutAccessingRef, - configurable: true - }); - } - function warnIfStringRefCannotBeAutoConverted(config) { - { - if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) { - var componentName = getComponentName(ReactCurrentOwner.current.type); - if (!didWarnAboutStringRefs[componentName]) { - error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref); - didWarnAboutStringRefs[componentName] = true; - } - } + cmdStr += `${CMD_STRING}${escapeData(this.message)}`; + return cmdStr; + } + }; + function escapeData(s) { + return utils_1.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); + } + function escapeProperty(s) { + return utils_1.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); + } + } +}); + +// node_modules/@actions/artifact/node_modules/@actions/core/lib/file-command.js +var require_file_command2 = __commonJS({ + "node_modules/@actions/artifact/node_modules/@actions/core/lib/file-command.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.issueCommand = void 0; + var fs4 = __importStar(require("fs")); + var os2 = __importStar(require("os")); + var utils_1 = require_utils2(); + function issueCommand(command2, message) { + const filePath = process.env[`GITHUB_${command2}`]; + if (!filePath) { + throw new Error(`Unable to find environment variable for file command ${command2}`); + } + if (!fs4.existsSync(filePath)) { + throw new Error(`Missing file at path: ${filePath}`); + } + fs4.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os2.EOL}`, { + encoding: "utf8" + }); + } + exports2.issueCommand = issueCommand; + } +}); + +// node_modules/@actions/artifact/node_modules/@actions/core/lib/core.js +var require_core2 = __commonJS({ + "node_modules/@actions/artifact/node_modules/@actions/core/lib/core.js"(exports2) { + "use strict"; + var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { + return m4[k]; + } }); + } : function(o, m4, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m4[k]; + }); + var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v2) { + Object.defineProperty(o, "default", { enumerable: true, value: v2 }); + } : function(o, v2) { + o["default"] = v2; + }); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (k !== "default" && Object.hasOwnProperty.call(mod2, k)) + __createBinding(result, mod2, k); + } + __setModuleDefault(result, mod2); + return result; + }; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); } } - var ReactElement = function(type2, key, ref, self3, source, owner, props2) { - var element = { - $$typeof: REACT_ELEMENT_TYPE, - type: type2, - key, - ref, - props: props2, - _owner: owner - }; - { - element._store = {}; - Object.defineProperty(element._store, "validated", { - configurable: false, - enumerable: false, - writable: true, - value: false - }); - Object.defineProperty(element, "_self", { - configurable: false, - enumerable: false, - writable: false, - value: self3 - }); - Object.defineProperty(element, "_source", { - configurable: false, - enumerable: false, - writable: false, - value: source - }); - if (Object.freeze) { - Object.freeze(element.props); - Object.freeze(element); - } - } - return element; - }; - function createElement(type2, config, children2) { - var propName; - var props2 = {}; - var key = null; - var ref = null; - var self3 = null; - var source = null; - if (config != null) { - if (hasValidRef(config)) { - ref = config.ref; - { - warnIfStringRefCannotBeAutoConverted(config); - } - } - if (hasValidKey(config)) { - key = "" + config.key; - } - self3 = config.__self === void 0 ? null : config.__self; - source = config.__source === void 0 ? null : config.__source; - for (propName in config) { - if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { - props2[propName] = config[propName]; - } - } - } - var childrenLength = arguments.length - 2; - if (childrenLength === 1) { - props2.children = children2; - } else if (childrenLength > 1) { - var childArray = Array(childrenLength); - for (var i = 0; i < childrenLength; i++) { - childArray[i] = arguments[i + 2]; - } - { - if (Object.freeze) { - Object.freeze(childArray); - } - } - props2.children = childArray; - } - if (type2 && type2.defaultProps) { - var defaultProps = type2.defaultProps; - for (propName in defaultProps) { - if (props2[propName] === void 0) { - props2[propName] = defaultProps[propName]; - } - } - } - { - if (key || ref) { - var displayName = typeof type2 === "function" ? type2.displayName || type2.name || "Unknown" : type2; - if (key) { - defineKeyPropWarningGetter(props2, displayName); - } - if (ref) { - defineRefPropWarningGetter(props2, displayName); - } - } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); } - return ReactElement(type2, key, ref, self3, source, ReactCurrentOwner.current, props2); } - function cloneAndReplaceKey(oldElement, newKey) { - var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); - return newElement; + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - function cloneElement(element, config, children2) { - if (!!(element === null || element === void 0)) { - { - throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + "."); - } - } - var propName; - var props2 = _assign({}, element.props); - var key = element.key; - var ref = element.ref; - var self3 = element._self; - var source = element._source; - var owner = element._owner; - if (config != null) { - if (hasValidRef(config)) { - ref = config.ref; - owner = ReactCurrentOwner.current; - } - if (hasValidKey(config)) { - key = "" + config.key; - } - var defaultProps; - if (element.type && element.type.defaultProps) { - defaultProps = element.type.defaultProps; + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + exports2.getState = exports2.saveState = exports2.group = exports2.endGroup = exports2.startGroup = exports2.info = exports2.notice = exports2.warning = exports2.error = exports2.debug = exports2.isDebug = exports2.setFailed = exports2.setCommandEcho = exports2.setOutput = exports2.getBooleanInput = exports2.getMultilineInput = exports2.getInput = exports2.addPath = exports2.setSecret = exports2.exportVariable = exports2.ExitCode = void 0; + var command_1 = require_command2(); + var file_command_1 = require_file_command2(); + var utils_1 = require_utils2(); + var os2 = __importStar(require("os")); + var path = __importStar(require("path")); + var ExitCode; + (function(ExitCode2) { + ExitCode2[ExitCode2["Success"] = 0] = "Success"; + ExitCode2[ExitCode2["Failure"] = 1] = "Failure"; + })(ExitCode = exports2.ExitCode || (exports2.ExitCode = {})); + function exportVariable(name, val) { + const convertedVal = utils_1.toCommandValue(val); + process.env[name] = convertedVal; + const filePath = process.env["GITHUB_ENV"] || ""; + if (filePath) { + const delimiter = "_GitHubActionsFileCommandDelimeter_"; + const commandValue = `${name}<<${delimiter}${os2.EOL}${convertedVal}${os2.EOL}${delimiter}`; + file_command_1.issueCommand("ENV", commandValue); + } else { + command_1.issueCommand("set-env", { name }, convertedVal); + } + } + exports2.exportVariable = exportVariable; + function setSecret(secret) { + command_1.issueCommand("add-mask", {}, secret); + } + exports2.setSecret = setSecret; + function addPath(inputPath) { + const filePath = process.env["GITHUB_PATH"] || ""; + if (filePath) { + file_command_1.issueCommand("PATH", inputPath); + } else { + command_1.issueCommand("add-path", {}, inputPath); + } + process.env["PATH"] = `${inputPath}${path.delimiter}${process.env["PATH"]}`; + } + exports2.addPath = addPath; + function getInput2(name, options) { + const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; + if (options && options.required && !val) { + throw new Error(`Input required and not supplied: ${name}`); + } + if (options && options.trimWhitespace === false) { + return val; + } + return val.trim(); + } + exports2.getInput = getInput2; + function getMultilineInput(name, options) { + const inputs = getInput2(name, options).split("\n").filter((x2) => x2 !== ""); + return inputs; + } + exports2.getMultilineInput = getMultilineInput; + function getBooleanInput2(name, options) { + const trueValue = ["true", "True", "TRUE"]; + const falseValue = ["false", "False", "FALSE"]; + const val = getInput2(name, options); + if (trueValue.includes(val)) + return true; + if (falseValue.includes(val)) + return false; + throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name} +Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); + } + exports2.getBooleanInput = getBooleanInput2; + function setOutput2(name, value) { + process.stdout.write(os2.EOL); + command_1.issueCommand("set-output", { name }, value); + } + exports2.setOutput = setOutput2; + function setCommandEcho(enabled) { + command_1.issue("echo", enabled ? "on" : "off"); + } + exports2.setCommandEcho = setCommandEcho; + function setFailed2(message) { + process.exitCode = ExitCode.Failure; + error(message); + } + exports2.setFailed = setFailed2; + function isDebug() { + return process.env["RUNNER_DEBUG"] === "1"; + } + exports2.isDebug = isDebug; + function debug(message) { + command_1.issueCommand("debug", {}, message); + } + exports2.debug = debug; + function error(message, properties2 = {}) { + command_1.issueCommand("error", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.error = error; + function warning(message, properties2 = {}) { + command_1.issueCommand("warning", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.warning = warning; + function notice(message, properties2 = {}) { + command_1.issueCommand("notice", utils_1.toCommandProperties(properties2), message instanceof Error ? message.toString() : message); + } + exports2.notice = notice; + function info2(message) { + process.stdout.write(message + os2.EOL); + } + exports2.info = info2; + function startGroup2(name) { + command_1.issue("group", name); + } + exports2.startGroup = startGroup2; + function endGroup2() { + command_1.issue("endgroup"); + } + exports2.endGroup = endGroup2; + function group(name, fn) { + return __awaiter(this, void 0, void 0, function* () { + startGroup2(name); + let result; + try { + result = yield fn(); + } finally { + endGroup2(); + } + return result; + }); + } + exports2.group = group; + function saveState(name, value) { + command_1.issueCommand("save-state", { name }, value); + } + exports2.saveState = saveState; + function getState(name) { + return process.env[`STATE_${name}`] || ""; + } + exports2.getState = getState; + } +}); + +// node_modules/@actions/http-client/proxy.js +var require_proxy2 = __commonJS({ + "node_modules/@actions/http-client/proxy.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + function getProxyUrl(reqUrl) { + let usingSsl = reqUrl.protocol === "https:"; + let proxyUrl; + if (checkBypass(reqUrl)) { + return proxyUrl; + } + let proxyVar; + if (usingSsl) { + proxyVar = process.env["https_proxy"] || process.env["HTTPS_PROXY"]; + } else { + proxyVar = process.env["http_proxy"] || process.env["HTTP_PROXY"]; + } + if (proxyVar) { + proxyUrl = new URL(proxyVar); + } + return proxyUrl; + } + exports2.getProxyUrl = getProxyUrl; + function checkBypass(reqUrl) { + if (!reqUrl.hostname) { + return false; + } + let noProxy = process.env["no_proxy"] || process.env["NO_PROXY"] || ""; + if (!noProxy) { + return false; + } + let reqPort; + if (reqUrl.port) { + reqPort = Number(reqUrl.port); + } else if (reqUrl.protocol === "http:") { + reqPort = 80; + } else if (reqUrl.protocol === "https:") { + reqPort = 443; + } + let upperReqHosts = [reqUrl.hostname.toUpperCase()]; + if (typeof reqPort === "number") { + upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); + } + for (let upperNoProxyItem of noProxy.split(",").map((x2) => x2.trim().toUpperCase()).filter((x2) => x2)) { + if (upperReqHosts.some((x2) => x2 === upperNoProxyItem)) { + return true; + } + } + return false; + } + exports2.checkBypass = checkBypass; + } +}); + +// node_modules/@actions/http-client/index.js +var require_http_client = __commonJS({ + "node_modules/@actions/http-client/index.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var http2 = require("http"); + var https = require("https"); + var pm = require_proxy2(); + var tunnel; + var HttpCodes; + (function(HttpCodes2) { + HttpCodes2[HttpCodes2["OK"] = 200] = "OK"; + HttpCodes2[HttpCodes2["MultipleChoices"] = 300] = "MultipleChoices"; + HttpCodes2[HttpCodes2["MovedPermanently"] = 301] = "MovedPermanently"; + HttpCodes2[HttpCodes2["ResourceMoved"] = 302] = "ResourceMoved"; + HttpCodes2[HttpCodes2["SeeOther"] = 303] = "SeeOther"; + HttpCodes2[HttpCodes2["NotModified"] = 304] = "NotModified"; + HttpCodes2[HttpCodes2["UseProxy"] = 305] = "UseProxy"; + HttpCodes2[HttpCodes2["SwitchProxy"] = 306] = "SwitchProxy"; + HttpCodes2[HttpCodes2["TemporaryRedirect"] = 307] = "TemporaryRedirect"; + HttpCodes2[HttpCodes2["PermanentRedirect"] = 308] = "PermanentRedirect"; + HttpCodes2[HttpCodes2["BadRequest"] = 400] = "BadRequest"; + HttpCodes2[HttpCodes2["Unauthorized"] = 401] = "Unauthorized"; + HttpCodes2[HttpCodes2["PaymentRequired"] = 402] = "PaymentRequired"; + HttpCodes2[HttpCodes2["Forbidden"] = 403] = "Forbidden"; + HttpCodes2[HttpCodes2["NotFound"] = 404] = "NotFound"; + HttpCodes2[HttpCodes2["MethodNotAllowed"] = 405] = "MethodNotAllowed"; + HttpCodes2[HttpCodes2["NotAcceptable"] = 406] = "NotAcceptable"; + HttpCodes2[HttpCodes2["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired"; + HttpCodes2[HttpCodes2["RequestTimeout"] = 408] = "RequestTimeout"; + HttpCodes2[HttpCodes2["Conflict"] = 409] = "Conflict"; + HttpCodes2[HttpCodes2["Gone"] = 410] = "Gone"; + HttpCodes2[HttpCodes2["TooManyRequests"] = 429] = "TooManyRequests"; + HttpCodes2[HttpCodes2["InternalServerError"] = 500] = "InternalServerError"; + HttpCodes2[HttpCodes2["NotImplemented"] = 501] = "NotImplemented"; + HttpCodes2[HttpCodes2["BadGateway"] = 502] = "BadGateway"; + HttpCodes2[HttpCodes2["ServiceUnavailable"] = 503] = "ServiceUnavailable"; + HttpCodes2[HttpCodes2["GatewayTimeout"] = 504] = "GatewayTimeout"; + })(HttpCodes = exports2.HttpCodes || (exports2.HttpCodes = {})); + var Headers; + (function(Headers2) { + Headers2["Accept"] = "accept"; + Headers2["ContentType"] = "content-type"; + })(Headers = exports2.Headers || (exports2.Headers = {})); + var MediaTypes; + (function(MediaTypes2) { + MediaTypes2["ApplicationJson"] = "application/json"; + })(MediaTypes = exports2.MediaTypes || (exports2.MediaTypes = {})); + function getProxyUrl(serverUrl) { + let proxyUrl = pm.getProxyUrl(new URL(serverUrl)); + return proxyUrl ? proxyUrl.href : ""; + } + exports2.getProxyUrl = getProxyUrl; + var HttpRedirectCodes = [ + HttpCodes.MovedPermanently, + HttpCodes.ResourceMoved, + HttpCodes.SeeOther, + HttpCodes.TemporaryRedirect, + HttpCodes.PermanentRedirect + ]; + var HttpResponseRetryCodes = [ + HttpCodes.BadGateway, + HttpCodes.ServiceUnavailable, + HttpCodes.GatewayTimeout + ]; + var RetryableHttpVerbs = ["OPTIONS", "GET", "DELETE", "HEAD"]; + var ExponentialBackoffCeiling = 10; + var ExponentialBackoffTimeSlice = 5; + var HttpClientError = class extends Error { + constructor(message, statusCode) { + super(message); + this.name = "HttpClientError"; + this.statusCode = statusCode; + Object.setPrototypeOf(this, HttpClientError.prototype); + } + }; + exports2.HttpClientError = HttpClientError; + var HttpClientResponse = class { + constructor(message) { + this.message = message; + } + readBody() { + return new Promise(async (resolve, reject) => { + let output = Buffer.alloc(0); + this.message.on("data", (chunk) => { + output = Buffer.concat([output, chunk]); + }); + this.message.on("end", () => { + resolve(output.toString()); + }); + }); + } + }; + exports2.HttpClientResponse = HttpClientResponse; + function isHttps(requestUrl) { + let parsedUrl = new URL(requestUrl); + return parsedUrl.protocol === "https:"; + } + exports2.isHttps = isHttps; + var HttpClient = class { + constructor(userAgent, handlers, requestOptions) { + this._ignoreSslError = false; + this._allowRedirects = true; + this._allowRedirectDowngrade = false; + this._maxRedirects = 50; + this._allowRetries = false; + this._maxRetries = 1; + this._keepAlive = false; + this._disposed = false; + this.userAgent = userAgent; + this.handlers = handlers || []; + this.requestOptions = requestOptions; + if (requestOptions) { + if (requestOptions.ignoreSslError != null) { + this._ignoreSslError = requestOptions.ignoreSslError; + } + this._socketTimeout = requestOptions.socketTimeout; + if (requestOptions.allowRedirects != null) { + this._allowRedirects = requestOptions.allowRedirects; + } + if (requestOptions.allowRedirectDowngrade != null) { + this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade; + } + if (requestOptions.maxRedirects != null) { + this._maxRedirects = Math.max(requestOptions.maxRedirects, 0); + } + if (requestOptions.keepAlive != null) { + this._keepAlive = requestOptions.keepAlive; + } + if (requestOptions.allowRetries != null) { + this._allowRetries = requestOptions.allowRetries; + } + if (requestOptions.maxRetries != null) { + this._maxRetries = requestOptions.maxRetries; + } + } + } + options(requestUrl, additionalHeaders) { + return this.request("OPTIONS", requestUrl, null, additionalHeaders || {}); + } + get(requestUrl, additionalHeaders) { + return this.request("GET", requestUrl, null, additionalHeaders || {}); + } + del(requestUrl, additionalHeaders) { + return this.request("DELETE", requestUrl, null, additionalHeaders || {}); + } + post(requestUrl, data, additionalHeaders) { + return this.request("POST", requestUrl, data, additionalHeaders || {}); + } + patch(requestUrl, data, additionalHeaders) { + return this.request("PATCH", requestUrl, data, additionalHeaders || {}); + } + put(requestUrl, data, additionalHeaders) { + return this.request("PUT", requestUrl, data, additionalHeaders || {}); + } + head(requestUrl, additionalHeaders) { + return this.request("HEAD", requestUrl, null, additionalHeaders || {}); + } + sendStream(verb, requestUrl, stream, additionalHeaders) { + return this.request(verb, requestUrl, stream, additionalHeaders); + } + async getJson(requestUrl, additionalHeaders = {}) { + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + let res2 = await this.get(requestUrl, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + } + async postJson(requestUrl, obj, additionalHeaders = {}) { + let data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + let res2 = await this.post(requestUrl, data, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + } + async putJson(requestUrl, obj, additionalHeaders = {}) { + let data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + let res2 = await this.put(requestUrl, data, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + } + async patchJson(requestUrl, obj, additionalHeaders = {}) { + let data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + let res2 = await this.patch(requestUrl, data, additionalHeaders); + return this._processResponse(res2, this.requestOptions); + } + async request(verb, requestUrl, data, headers) { + if (this._disposed) { + throw new Error("Client has already been disposed."); + } + let parsedUrl = new URL(requestUrl); + let info2 = this._prepareRequest(verb, parsedUrl, headers); + let maxTries = this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1 ? this._maxRetries + 1 : 1; + let numTries = 0; + let response; + while (numTries < maxTries) { + response = await this.requestRaw(info2, data); + if (response && response.message && response.message.statusCode === HttpCodes.Unauthorized) { + let authenticationHandler; + for (let i = 0; i < this.handlers.length; i++) { + if (this.handlers[i].canHandleAuthentication(response)) { + authenticationHandler = this.handlers[i]; + break; + } } - for (propName in config) { - if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { - if (config[propName] === void 0 && defaultProps !== void 0) { - props2[propName] = defaultProps[propName]; - } else { - props2[propName] = config[propName]; + if (authenticationHandler) { + return authenticationHandler.handleAuthentication(this, info2, data); + } else { + return response; + } + } + let redirectsRemaining = this._maxRedirects; + while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1 && this._allowRedirects && redirectsRemaining > 0) { + const redirectUrl = response.message.headers["location"]; + if (!redirectUrl) { + break; + } + let parsedRedirectUrl = new URL(redirectUrl); + if (parsedUrl.protocol == "https:" && parsedUrl.protocol != parsedRedirectUrl.protocol && !this._allowRedirectDowngrade) { + throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true."); + } + await response.readBody(); + if (parsedRedirectUrl.hostname !== parsedUrl.hostname) { + for (let header in headers) { + if (header.toLowerCase() === "authorization") { + delete headers[header]; } } } + info2 = this._prepareRequest(verb, parsedRedirectUrl, headers); + response = await this.requestRaw(info2, data); + redirectsRemaining--; } - var childrenLength = arguments.length - 2; - if (childrenLength === 1) { - props2.children = children2; - } else if (childrenLength > 1) { - var childArray = Array(childrenLength); - for (var i = 0; i < childrenLength; i++) { - childArray[i] = arguments[i + 2]; - } - props2.children = childArray; + if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) { + return response; + } + numTries += 1; + if (numTries < maxTries) { + await response.readBody(); + await this._performExponentialBackoff(numTries); } - return ReactElement(element.type, key, ref, self3, source, owner, props2); } - function isValidElement(object) { - return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; + return response; + } + dispose() { + if (this._agent) { + this._agent.destroy(); } - var SEPARATOR = "."; - var SUBSEPARATOR = ":"; - function escape(key) { - var escapeRegex = /[=:]/g; - var escaperLookup = { - "=": "=0", - ":": "=2" + this._disposed = true; + } + requestRaw(info2, data) { + return new Promise((resolve, reject) => { + let callbackForResult = function(err, res2) { + if (err) { + reject(err); + } + resolve(res2); }; - var escapedString = key.replace(escapeRegex, function(match) { - return escaperLookup[match]; + this.requestRawWithCallback(info2, data, callbackForResult); + }); + } + requestRawWithCallback(info2, data, onResult) { + let socket; + if (typeof data === "string") { + info2.options.headers["Content-Length"] = Buffer.byteLength(data, "utf8"); + } + let callbackCalled = false; + let handleResult = (err, res2) => { + if (!callbackCalled) { + callbackCalled = true; + onResult(err, res2); + } + }; + let req = info2.httpModule.request(info2.options, (msg) => { + let res2 = new HttpClientResponse(msg); + handleResult(null, res2); + }); + req.on("socket", (sock) => { + socket = sock; + }); + req.setTimeout(this._socketTimeout || 3 * 6e4, () => { + if (socket) { + socket.end(); + } + handleResult(new Error("Request timeout: " + info2.options.path), null); + }); + req.on("error", function(err) { + handleResult(err, null); + }); + if (data && typeof data === "string") { + req.write(data, "utf8"); + } + if (data && typeof data !== "string") { + data.on("close", function() { + req.end(); }); - return "$" + escapedString; + data.pipe(req); + } else { + req.end(); } - var didWarnAboutMaps = false; - var userProvidedKeyEscapeRegex = /\/+/g; - function escapeUserProvidedKey(text) { - return text.replace(userProvidedKeyEscapeRegex, "$&/"); + } + getAgent(serverUrl) { + let parsedUrl = new URL(serverUrl); + return this._getAgent(parsedUrl); + } + _prepareRequest(method, requestUrl, headers) { + const info2 = {}; + info2.parsedUrl = requestUrl; + const usingSsl = info2.parsedUrl.protocol === "https:"; + info2.httpModule = usingSsl ? https : http2; + const defaultPort = usingSsl ? 443 : 80; + info2.options = {}; + info2.options.host = info2.parsedUrl.hostname; + info2.options.port = info2.parsedUrl.port ? parseInt(info2.parsedUrl.port) : defaultPort; + info2.options.path = (info2.parsedUrl.pathname || "") + (info2.parsedUrl.search || ""); + info2.options.method = method; + info2.options.headers = this._mergeHeaders(headers); + if (this.userAgent != null) { + info2.options.headers["user-agent"] = this.userAgent; + } + info2.options.agent = this._getAgent(info2.parsedUrl); + if (this.handlers) { + this.handlers.forEach((handler) => { + handler.prepareRequest(info2.options); + }); } - function getElementKey(element, index) { - if (typeof element === "object" && element !== null && element.key != null) { - return escape("" + element.key); - } - return index.toString(36); + return info2; + } + _mergeHeaders(headers) { + const lowercaseKeys = (obj) => Object.keys(obj).reduce((c3, k) => (c3[k.toLowerCase()] = obj[k], c3), {}); + if (this.requestOptions && this.requestOptions.headers) { + return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers)); } - function mapIntoArray(children2, array2, escapedPrefix, nameSoFar, callback) { - var type2 = typeof children2; - if (type2 === "undefined" || type2 === "boolean") { - children2 = null; - } - var invokeCallback = false; - if (children2 === null) { - invokeCallback = true; + return lowercaseKeys(headers || {}); + } + _getExistingOrDefaultHeader(additionalHeaders, header, _default) { + const lowercaseKeys = (obj) => Object.keys(obj).reduce((c3, k) => (c3[k.toLowerCase()] = obj[k], c3), {}); + let clientHeader; + if (this.requestOptions && this.requestOptions.headers) { + clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; + } + return additionalHeaders[header] || clientHeader || _default; + } + _getAgent(parsedUrl) { + let agent; + let proxyUrl = pm.getProxyUrl(parsedUrl); + let useProxy = proxyUrl && proxyUrl.hostname; + if (this._keepAlive && useProxy) { + agent = this._proxyAgent; + } + if (this._keepAlive && !useProxy) { + agent = this._agent; + } + if (!!agent) { + return agent; + } + const usingSsl = parsedUrl.protocol === "https:"; + let maxSockets = 100; + if (!!this.requestOptions) { + maxSockets = this.requestOptions.maxSockets || http2.globalAgent.maxSockets; + } + if (useProxy) { + if (!tunnel) { + tunnel = require_tunnel2(); + } + const agentOptions = { + maxSockets, + keepAlive: this._keepAlive, + proxy: { + ...(proxyUrl.username || proxyUrl.password) && { + proxyAuth: `${proxyUrl.username}:${proxyUrl.password}` + }, + host: proxyUrl.hostname, + port: proxyUrl.port + } + }; + let tunnelAgent; + const overHttps = proxyUrl.protocol === "https:"; + if (usingSsl) { + tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp; } else { - switch (type2) { - case "string": - case "number": - invokeCallback = true; - break; - case "object": - switch (children2.$$typeof) { - case REACT_ELEMENT_TYPE: - case REACT_PORTAL_TYPE: - invokeCallback = true; - } - } + tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp; } - if (invokeCallback) { - var _child = children2; - var mappedChild = callback(_child); - var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar; - if (Array.isArray(mappedChild)) { - var escapedChildKey = ""; - if (childKey != null) { - escapedChildKey = escapeUserProvidedKey(childKey) + "/"; - } - mapIntoArray(mappedChild, array2, escapedChildKey, "", function(c3) { - return c3; - }); - } else if (mappedChild != null) { - if (isValidElement(mappedChild)) { - mappedChild = cloneAndReplaceKey(mappedChild, escapedPrefix + (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? escapeUserProvidedKey("" + mappedChild.key) + "/" : "") + childKey); + agent = tunnelAgent(agentOptions); + this._proxyAgent = agent; + } + if (this._keepAlive && !agent) { + const options = { keepAlive: this._keepAlive, maxSockets }; + agent = usingSsl ? new https.Agent(options) : new http2.Agent(options); + this._agent = agent; + } + if (!agent) { + agent = usingSsl ? https.globalAgent : http2.globalAgent; + } + if (usingSsl && this._ignoreSslError) { + agent.options = Object.assign(agent.options || {}, { + rejectUnauthorized: false + }); + } + return agent; + } + _performExponentialBackoff(retryNumber) { + retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); + const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); + return new Promise((resolve) => setTimeout(() => resolve(), ms)); + } + static dateTimeDeserializer(key, value) { + if (typeof value === "string") { + let a2 = new Date(value); + if (!isNaN(a2.valueOf())) { + return a2; + } + } + return value; + } + async _processResponse(res2, options) { + return new Promise(async (resolve, reject) => { + const statusCode = res2.message.statusCode; + const response = { + statusCode, + result: null, + headers: {} + }; + if (statusCode == HttpCodes.NotFound) { + resolve(response); + } + let obj; + let contents; + try { + contents = await res2.readBody(); + if (contents && contents.length > 0) { + if (options && options.deserializeDates) { + obj = JSON.parse(contents, HttpClient.dateTimeDeserializer); + } else { + obj = JSON.parse(contents); } - array2.push(mappedChild); + response.result = obj; } - return 1; + response.headers = res2.message.headers; + } catch (err) { } - var child; - var nextName; - var subtreeCount = 0; - var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR; - if (Array.isArray(children2)) { - for (var i = 0; i < children2.length; i++) { - child = children2[i]; - nextName = nextNamePrefix + getElementKey(child, i); - subtreeCount += mapIntoArray(child, array2, escapedPrefix, nextName, callback); + if (statusCode > 299) { + let msg; + if (obj && obj.message) { + msg = obj.message; + } else if (contents && contents.length > 0) { + msg = contents; + } else { + msg = "Failed request: (" + statusCode + ")"; } + let err = new HttpClientError(msg, statusCode); + err.result = response.result; + reject(err); } else { - var iteratorFn = getIteratorFn(children2); - if (typeof iteratorFn === "function") { - var iterableChildren = children2; - { - if (iteratorFn === iterableChildren.entries) { - if (!didWarnAboutMaps) { - warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."); - } - didWarnAboutMaps = true; - } - } - var iterator = iteratorFn.call(iterableChildren); - var step; - var ii = 0; - while (!(step = iterator.next()).done) { - child = step.value; - nextName = nextNamePrefix + getElementKey(child, ii++); - subtreeCount += mapIntoArray(child, array2, escapedPrefix, nextName, callback); - } - } else if (type2 === "object") { - var childrenString = "" + children2; - { - { - throw Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children2).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead."); - } - } - } + resolve(response); + } + }); + } + }; + exports2.HttpClient = HttpClient; + } +}); + +// node_modules/@actions/http-client/auth.js +var require_auth2 = __commonJS({ + "node_modules/@actions/http-client/auth.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var BasicCredentialHandler = class { + constructor(username, password) { + this.username = username; + this.password = password; + } + prepareRequest(options) { + options.headers["Authorization"] = "Basic " + Buffer.from(this.username + ":" + this.password).toString("base64"); + } + canHandleAuthentication(response) { + return false; + } + handleAuthentication(httpClient, requestInfo, objs) { + return null; + } + }; + exports2.BasicCredentialHandler = BasicCredentialHandler; + var BearerCredentialHandler = class { + constructor(token) { + this.token = token; + } + prepareRequest(options) { + options.headers["Authorization"] = "Bearer " + this.token; + } + canHandleAuthentication(response) { + return false; + } + handleAuthentication(httpClient, requestInfo, objs) { + return null; + } + }; + exports2.BearerCredentialHandler = BearerCredentialHandler; + var PersonalAccessTokenCredentialHandler = class { + constructor(token) { + this.token = token; + } + prepareRequest(options) { + options.headers["Authorization"] = "Basic " + Buffer.from("PAT:" + this.token).toString("base64"); + } + canHandleAuthentication(response) { + return false; + } + handleAuthentication(httpClient, requestInfo, objs) { + return null; + } + }; + exports2.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; + } +}); + +// node_modules/@actions/artifact/lib/internal/config-variables.js +var require_config_variables = __commonJS({ + "node_modules/@actions/artifact/lib/internal/config-variables.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + function getUploadFileConcurrency() { + return 2; + } + exports2.getUploadFileConcurrency = getUploadFileConcurrency; + function getUploadChunkSize() { + return 8 * 1024 * 1024; + } + exports2.getUploadChunkSize = getUploadChunkSize; + function getRetryLimit() { + return 5; + } + exports2.getRetryLimit = getRetryLimit; + function getRetryMultiplier() { + return 1.5; + } + exports2.getRetryMultiplier = getRetryMultiplier; + function getInitialRetryIntervalInMilliseconds() { + return 3e3; + } + exports2.getInitialRetryIntervalInMilliseconds = getInitialRetryIntervalInMilliseconds; + function getDownloadFileConcurrency() { + return 2; + } + exports2.getDownloadFileConcurrency = getDownloadFileConcurrency; + function getRuntimeToken() { + const token = process.env["ACTIONS_RUNTIME_TOKEN"]; + if (!token) { + throw new Error("Unable to get ACTIONS_RUNTIME_TOKEN env variable"); + } + return token; + } + exports2.getRuntimeToken = getRuntimeToken; + function getRuntimeUrl() { + const runtimeUrl = process.env["ACTIONS_RUNTIME_URL"]; + if (!runtimeUrl) { + throw new Error("Unable to get ACTIONS_RUNTIME_URL env variable"); + } + return runtimeUrl; + } + exports2.getRuntimeUrl = getRuntimeUrl; + function getWorkFlowRunId() { + const workFlowRunId = process.env["GITHUB_RUN_ID"]; + if (!workFlowRunId) { + throw new Error("Unable to get GITHUB_RUN_ID env variable"); + } + return workFlowRunId; + } + exports2.getWorkFlowRunId = getWorkFlowRunId; + function getWorkSpaceDirectory() { + const workspaceDirectory = process.env["GITHUB_WORKSPACE"]; + if (!workspaceDirectory) { + throw new Error("Unable to get GITHUB_WORKSPACE env variable"); + } + return workspaceDirectory; + } + exports2.getWorkSpaceDirectory = getWorkSpaceDirectory; + function getRetentionDays() { + return process.env["GITHUB_RETENTION_DAYS"]; + } + exports2.getRetentionDays = getRetentionDays; + } +}); + +// node_modules/@actions/artifact/lib/internal/utils.js +var require_utils3 = __commonJS({ + "node_modules/@actions/artifact/lib/internal/utils.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); } - return subtreeCount; } - function mapChildren2(children2, func, context) { - if (children2 == null) { - return children2; + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); } - var result = []; - var count2 = 0; - mapIntoArray(children2, result, "", "", function(child) { - return func.call(context, child, count2++); - }); - return result; } - function countChildren(children2) { - var n2 = 0; - mapChildren2(children2, function() { - n2++; + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + var core_1 = require_core2(); + var fs_1 = require("fs"); + var http_client_1 = require_http_client(); + var auth_1 = require_auth2(); + var config_variables_1 = require_config_variables(); + function getExponentialRetryTimeInMilliseconds(retryCount) { + if (retryCount < 0) { + throw new Error("RetryCount should not be negative"); + } else if (retryCount === 0) { + return config_variables_1.getInitialRetryIntervalInMilliseconds(); + } + const minTime = config_variables_1.getInitialRetryIntervalInMilliseconds() * config_variables_1.getRetryMultiplier() * retryCount; + const maxTime = minTime * config_variables_1.getRetryMultiplier(); + return Math.random() * (maxTime - minTime) + minTime; + } + exports2.getExponentialRetryTimeInMilliseconds = getExponentialRetryTimeInMilliseconds; + function parseEnvNumber(key) { + const value = Number(process.env[key]); + if (Number.isNaN(value) || value < 0) { + return void 0; + } + return value; + } + exports2.parseEnvNumber = parseEnvNumber; + function getApiVersion() { + return "6.0-preview"; + } + exports2.getApiVersion = getApiVersion; + function isSuccessStatusCode(statusCode) { + if (!statusCode) { + return false; + } + return statusCode >= 200 && statusCode < 300; + } + exports2.isSuccessStatusCode = isSuccessStatusCode; + function isForbiddenStatusCode(statusCode) { + if (!statusCode) { + return false; + } + return statusCode === http_client_1.HttpCodes.Forbidden; + } + exports2.isForbiddenStatusCode = isForbiddenStatusCode; + function isRetryableStatusCode(statusCode) { + if (!statusCode) { + return false; + } + const retryableStatusCodes = [ + http_client_1.HttpCodes.BadGateway, + http_client_1.HttpCodes.GatewayTimeout, + http_client_1.HttpCodes.InternalServerError, + http_client_1.HttpCodes.ServiceUnavailable, + http_client_1.HttpCodes.TooManyRequests, + 413 + ]; + return retryableStatusCodes.includes(statusCode); + } + exports2.isRetryableStatusCode = isRetryableStatusCode; + function isThrottledStatusCode(statusCode) { + if (!statusCode) { + return false; + } + return statusCode === http_client_1.HttpCodes.TooManyRequests; + } + exports2.isThrottledStatusCode = isThrottledStatusCode; + function tryGetRetryAfterValueTimeInMilliseconds(headers) { + if (headers["retry-after"]) { + const retryTime = Number(headers["retry-after"]); + if (!isNaN(retryTime)) { + core_1.info(`Retry-After header is present with a value of ${retryTime}`); + return retryTime * 1e3; + } + core_1.info(`Returned retry-after header value: ${retryTime} is non-numeric and cannot be used`); + return void 0; + } + core_1.info(`No retry-after header was found. Dumping all headers for diagnostic purposes`); + console.log(headers); + return void 0; + } + exports2.tryGetRetryAfterValueTimeInMilliseconds = tryGetRetryAfterValueTimeInMilliseconds; + function getContentRange(start2, end, total) { + return `bytes ${start2}-${end}/${total}`; + } + exports2.getContentRange = getContentRange; + function getDownloadHeaders(contentType, isKeepAlive, acceptGzip) { + const requestOptions = {}; + if (contentType) { + requestOptions["Content-Type"] = contentType; + } + if (isKeepAlive) { + requestOptions["Connection"] = "Keep-Alive"; + requestOptions["Keep-Alive"] = "10"; + } + if (acceptGzip) { + requestOptions["Accept-Encoding"] = "gzip"; + requestOptions["Accept"] = `application/octet-stream;api-version=${getApiVersion()}`; + } else { + requestOptions["Accept"] = `application/json;api-version=${getApiVersion()}`; + } + return requestOptions; + } + exports2.getDownloadHeaders = getDownloadHeaders; + function getUploadHeaders(contentType, isKeepAlive, isGzip, uncompressedLength, contentLength, contentRange) { + const requestOptions = {}; + requestOptions["Accept"] = `application/json;api-version=${getApiVersion()}`; + if (contentType) { + requestOptions["Content-Type"] = contentType; + } + if (isKeepAlive) { + requestOptions["Connection"] = "Keep-Alive"; + requestOptions["Keep-Alive"] = "10"; + } + if (isGzip) { + requestOptions["Content-Encoding"] = "gzip"; + requestOptions["x-tfs-filelength"] = uncompressedLength; + } + if (contentLength) { + requestOptions["Content-Length"] = contentLength; + } + if (contentRange) { + requestOptions["Content-Range"] = contentRange; + } + return requestOptions; + } + exports2.getUploadHeaders = getUploadHeaders; + function createHttpClient(userAgent) { + return new http_client_1.HttpClient(userAgent, [ + new auth_1.BearerCredentialHandler(config_variables_1.getRuntimeToken()) + ]); + } + exports2.createHttpClient = createHttpClient; + function getArtifactUrl() { + const artifactUrl = `${config_variables_1.getRuntimeUrl()}_apis/pipelines/workflows/${config_variables_1.getWorkFlowRunId()}/artifacts?api-version=${getApiVersion()}`; + core_1.debug(`Artifact Url: ${artifactUrl}`); + return artifactUrl; + } + exports2.getArtifactUrl = getArtifactUrl; + function displayHttpDiagnostics(response) { + core_1.info(`##### Begin Diagnostic HTTP information ##### +Status Code: ${response.message.statusCode} +Status Message: ${response.message.statusMessage} +Header Information: ${JSON.stringify(response.message.headers, void 0, 2)} +###### End Diagnostic HTTP information ######`); + } + exports2.displayHttpDiagnostics = displayHttpDiagnostics; + var invalidArtifactFilePathCharacters = ['"', ":", "<", ">", "|", "*", "?"]; + var invalidArtifactNameCharacters = [ + ...invalidArtifactFilePathCharacters, + "\\", + "/" + ]; + function checkArtifactName(name) { + if (!name) { + throw new Error(`Artifact name: ${name}, is incorrectly provided`); + } + for (const invalidChar of invalidArtifactNameCharacters) { + if (name.includes(invalidChar)) { + throw new Error(`Artifact name is not valid: ${name}. Contains character: "${invalidChar}". Invalid artifact name characters include: ${invalidArtifactNameCharacters.toString()}.`); + } + } + } + exports2.checkArtifactName = checkArtifactName; + function checkArtifactFilePath(path) { + if (!path) { + throw new Error(`Artifact path: ${path}, is incorrectly provided`); + } + for (const invalidChar of invalidArtifactFilePathCharacters) { + if (path.includes(invalidChar)) { + throw new Error(`Artifact path is not valid: ${path}. Contains character: "${invalidChar}". Invalid characters include: ${invalidArtifactFilePathCharacters.toString()}.`); + } + } + } + exports2.checkArtifactFilePath = checkArtifactFilePath; + function createDirectoriesForArtifact(directories) { + return __awaiter(this, void 0, void 0, function* () { + for (const directory of directories) { + yield fs_1.promises.mkdir(directory, { + recursive: true }); - return n2; } - function forEachChildren(children2, forEachFunc, forEachContext) { - mapChildren2(children2, function() { - forEachFunc.apply(this, arguments); - }, forEachContext); + }); + } + exports2.createDirectoriesForArtifact = createDirectoriesForArtifact; + function createEmptyFilesForArtifact(emptyFilesToCreate) { + return __awaiter(this, void 0, void 0, function* () { + for (const filePath of emptyFilesToCreate) { + yield (yield fs_1.promises.open(filePath, "w")).close(); } - function toArray(children2) { - return mapChildren2(children2, function(child) { - return child; - }) || []; + }); + } + exports2.createEmptyFilesForArtifact = createEmptyFilesForArtifact; + function getFileSize(filePath) { + return __awaiter(this, void 0, void 0, function* () { + const stats = yield fs_1.promises.stat(filePath); + core_1.debug(`${filePath} size:(${stats.size}) blksize:(${stats.blksize}) blocks:(${stats.blocks})`); + return stats.size; + }); + } + exports2.getFileSize = getFileSize; + function rmFile(filePath) { + return __awaiter(this, void 0, void 0, function* () { + yield fs_1.promises.unlink(filePath); + }); + } + exports2.rmFile = rmFile; + function getProperRetention(retentionInput, retentionSetting) { + if (retentionInput < 0) { + throw new Error("Invalid retention, minimum value is 1."); + } + let retention = retentionInput; + if (retentionSetting) { + const maxRetention = parseInt(retentionSetting); + if (!isNaN(maxRetention) && maxRetention < retention) { + core_1.warning(`Retention days is greater than the max value allowed by the repository setting, reduce retention to ${maxRetention} days`); + retention = maxRetention; } - function onlyChild(children2) { - if (!isValidElement(children2)) { - { - throw Error("React.Children.only expected to receive a single React element child."); - } - } - return children2; + } + return retention; + } + exports2.getProperRetention = getProperRetention; + function sleep2(milliseconds) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => setTimeout(resolve, milliseconds)); + }); + } + exports2.sleep = sleep2; + } +}); + +// node_modules/@actions/artifact/lib/internal/upload-specification.js +var require_upload_specification = __commonJS({ + "node_modules/@actions/artifact/lib/internal/upload-specification.js"(exports2) { + "use strict"; + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (Object.hasOwnProperty.call(mod2, k)) + result[k] = mod2[k]; + } + result["default"] = mod2; + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + var fs4 = __importStar(require("fs")); + var core_1 = require_core2(); + var path_1 = require("path"); + var utils_1 = require_utils3(); + function getUploadSpecification(artifactName, rootDirectory, artifactFiles) { + utils_1.checkArtifactName(artifactName); + const specifications = []; + if (!fs4.existsSync(rootDirectory)) { + throw new Error(`Provided rootDirectory ${rootDirectory} does not exist`); + } + if (!fs4.lstatSync(rootDirectory).isDirectory()) { + throw new Error(`Provided rootDirectory ${rootDirectory} is not a valid directory`); + } + rootDirectory = path_1.normalize(rootDirectory); + rootDirectory = path_1.resolve(rootDirectory); + for (let file of artifactFiles) { + if (!fs4.existsSync(file)) { + throw new Error(`File ${file} does not exist`); + } + if (!fs4.lstatSync(file).isDirectory()) { + file = path_1.normalize(file); + file = path_1.resolve(file); + if (!file.startsWith(rootDirectory)) { + throw new Error(`The rootDirectory: ${rootDirectory} is not a parent directory of the file: ${file}`); + } + const uploadPath = file.replace(rootDirectory, ""); + utils_1.checkArtifactFilePath(uploadPath); + specifications.push({ + absoluteFilePath: file, + uploadFilePath: path_1.join(artifactName, uploadPath) + }); + } else { + core_1.debug(`Removing ${file} from rawSearchResults because it is a directory`); } - function createContext(defaultValue, calculateChangedBits) { - if (calculateChangedBits === void 0) { - calculateChangedBits = null; - } else { - { - if (calculateChangedBits !== null && typeof calculateChangedBits !== "function") { - error("createContext: Expected the optional second argument to be a function. Instead received: %s", calculateChangedBits); - } - } + } + return specifications; + } + exports2.getUploadSpecification = getUploadSpecification; + } +}); + +// node_modules/fs.realpath/old.js +var require_old = __commonJS({ + "node_modules/fs.realpath/old.js"(exports2) { + var pathModule = require("path"); + var isWindows = process.platform === "win32"; + var fs4 = require("fs"); + var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG); + function rethrow() { + var callback; + if (DEBUG) { + var backtrace = new Error(); + callback = debugCallback; + } else + callback = missingCallback; + return callback; + function debugCallback(err) { + if (err) { + backtrace.message = err.message; + err = backtrace; + missingCallback(err); + } + } + function missingCallback(err) { + if (err) { + if (process.throwDeprecation) + throw err; + else if (!process.noDeprecation) { + var msg = "fs: missing callback " + (err.stack || err.message); + if (process.traceDeprecation) + console.trace(msg); + else + console.error(msg); } - var context = { - $$typeof: REACT_CONTEXT_TYPE, - _calculateChangedBits: calculateChangedBits, - _currentValue: defaultValue, - _currentValue2: defaultValue, - _threadCount: 0, - Provider: null, - Consumer: null - }; - context.Provider = { - $$typeof: REACT_PROVIDER_TYPE, - _context: context - }; - var hasWarnedAboutUsingNestedContextConsumers = false; - var hasWarnedAboutUsingConsumerProvider = false; - var hasWarnedAboutDisplayNameOnConsumer = false; - { - var Consumer = { - $$typeof: REACT_CONTEXT_TYPE, - _context: context, - _calculateChangedBits: context._calculateChangedBits - }; - Object.defineProperties(Consumer, { - Provider: { - get: function() { - if (!hasWarnedAboutUsingConsumerProvider) { - hasWarnedAboutUsingConsumerProvider = true; - error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); - } - return context.Provider; - }, - set: function(_Provider) { - context.Provider = _Provider; - } - }, - _currentValue: { - get: function() { - return context._currentValue; - }, - set: function(_currentValue) { - context._currentValue = _currentValue; - } - }, - _currentValue2: { - get: function() { - return context._currentValue2; - }, - set: function(_currentValue2) { - context._currentValue2 = _currentValue2; - } - }, - _threadCount: { - get: function() { - return context._threadCount; - }, - set: function(_threadCount) { - context._threadCount = _threadCount; - } - }, - Consumer: { - get: function() { - if (!hasWarnedAboutUsingNestedContextConsumers) { - hasWarnedAboutUsingNestedContextConsumers = true; - error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); - } - return context.Consumer; - } - }, - displayName: { - get: function() { - return context.displayName; - }, - set: function(displayName) { - if (!hasWarnedAboutDisplayNameOnConsumer) { - warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName); - hasWarnedAboutDisplayNameOnConsumer = true; - } - } - } - }); - context.Consumer = Consumer; + } + } + } + function maybeCallback(cb) { + return typeof cb === "function" ? cb : rethrow(); + } + var normalize2 = pathModule.normalize; + if (isWindows) { + nextPartRe = /(.*?)(?:[\/\\]+|$)/g; + } else { + nextPartRe = /(.*?)(?:[\/]+|$)/g; + } + var nextPartRe; + if (isWindows) { + splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/; + } else { + splitRootRe = /^[\/]*/; + } + var splitRootRe; + exports2.realpathSync = function realpathSync(p2, cache) { + p2 = pathModule.resolve(p2); + if (cache && Object.prototype.hasOwnProperty.call(cache, p2)) { + return cache[p2]; + } + var original = p2, seenLinks = {}, knownHard = {}; + var pos; + var current; + var base; + var previous; + start2(); + function start2() { + var m4 = splitRootRe.exec(p2); + pos = m4[0].length; + current = m4[0]; + base = m4[0]; + previous = ""; + if (isWindows && !knownHard[base]) { + fs4.lstatSync(base); + knownHard[base] = true; + } + } + while (pos < p2.length) { + nextPartRe.lastIndex = pos; + var result = nextPartRe.exec(p2); + previous = current; + current += result[0]; + base = previous + result[1]; + pos = nextPartRe.lastIndex; + if (knownHard[base] || cache && cache[base] === base) { + continue; + } + var resolvedLink; + if (cache && Object.prototype.hasOwnProperty.call(cache, base)) { + resolvedLink = cache[base]; + } else { + var stat = fs4.lstatSync(base); + if (!stat.isSymbolicLink()) { + knownHard[base] = true; + if (cache) + cache[base] = base; + continue; } - { - context._currentRenderer = null; - context._currentRenderer2 = null; + var linkTarget = null; + if (!isWindows) { + var id2 = stat.dev.toString(32) + ":" + stat.ino.toString(32); + if (seenLinks.hasOwnProperty(id2)) { + linkTarget = seenLinks[id2]; + } } - return context; - } - var Uninitialized = -1; - var Pending = 0; - var Resolved = 1; - var Rejected = 2; - function lazyInitializer(payload) { - if (payload._status === Uninitialized) { - var ctor = payload._result; - var thenable = ctor(); - var pending = payload; - pending._status = Pending; - pending._result = thenable; - thenable.then(function(moduleObject) { - if (payload._status === Pending) { - var defaultExport = moduleObject.default; - { - if (defaultExport === void 0) { - error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject); - } - } - var resolved = payload; - resolved._status = Resolved; - resolved._result = defaultExport; - } - }, function(error2) { - if (payload._status === Pending) { - var rejected = payload; - rejected._status = Rejected; - rejected._result = error2; - } - }); + if (linkTarget === null) { + fs4.statSync(base); + linkTarget = fs4.readlinkSync(base); } - if (payload._status === Resolved) { - return payload._result; + resolvedLink = pathModule.resolve(previous, linkTarget); + if (cache) + cache[base] = resolvedLink; + if (!isWindows) + seenLinks[id2] = linkTarget; + } + p2 = pathModule.resolve(resolvedLink, p2.slice(pos)); + start2(); + } + if (cache) + cache[original] = p2; + return p2; + }; + exports2.realpath = function realpath(p2, cache, cb) { + if (typeof cb !== "function") { + cb = maybeCallback(cache); + cache = null; + } + p2 = pathModule.resolve(p2); + if (cache && Object.prototype.hasOwnProperty.call(cache, p2)) { + return process.nextTick(cb.bind(null, null, cache[p2])); + } + var original = p2, seenLinks = {}, knownHard = {}; + var pos; + var current; + var base; + var previous; + start2(); + function start2() { + var m4 = splitRootRe.exec(p2); + pos = m4[0].length; + current = m4[0]; + base = m4[0]; + previous = ""; + if (isWindows && !knownHard[base]) { + fs4.lstat(base, function(err) { + if (err) + return cb(err); + knownHard[base] = true; + LOOP(); + }); + } else { + process.nextTick(LOOP); + } + } + function LOOP() { + if (pos >= p2.length) { + if (cache) + cache[original] = p2; + return cb(null, p2); + } + nextPartRe.lastIndex = pos; + var result = nextPartRe.exec(p2); + previous = current; + current += result[0]; + base = previous + result[1]; + pos = nextPartRe.lastIndex; + if (knownHard[base] || cache && cache[base] === base) { + return process.nextTick(LOOP); + } + if (cache && Object.prototype.hasOwnProperty.call(cache, base)) { + return gotResolvedLink(cache[base]); + } + return fs4.lstat(base, gotStat); + } + function gotStat(err, stat) { + if (err) + return cb(err); + if (!stat.isSymbolicLink()) { + knownHard[base] = true; + if (cache) + cache[base] = base; + return process.nextTick(LOOP); + } + if (!isWindows) { + var id2 = stat.dev.toString(32) + ":" + stat.ino.toString(32); + if (seenLinks.hasOwnProperty(id2)) { + return gotTarget(null, seenLinks[id2], base); + } + } + fs4.stat(base, function(err2) { + if (err2) + return cb(err2); + fs4.readlink(base, function(err3, target) { + if (!isWindows) + seenLinks[id2] = target; + gotTarget(err3, target); + }); + }); + } + function gotTarget(err, target, base2) { + if (err) + return cb(err); + var resolvedLink = pathModule.resolve(previous, target); + if (cache) + cache[base2] = resolvedLink; + gotResolvedLink(resolvedLink); + } + function gotResolvedLink(resolvedLink) { + p2 = pathModule.resolve(resolvedLink, p2.slice(pos)); + start2(); + } + }; + } +}); + +// node_modules/fs.realpath/index.js +var require_fs = __commonJS({ + "node_modules/fs.realpath/index.js"(exports2, module2) { + module2.exports = realpath; + realpath.realpath = realpath; + realpath.sync = realpathSync; + realpath.realpathSync = realpathSync; + realpath.monkeypatch = monkeypatch; + realpath.unmonkeypatch = unmonkeypatch; + var fs4 = require("fs"); + var origRealpath = fs4.realpath; + var origRealpathSync = fs4.realpathSync; + var version = process.version; + var ok = /^v[0-5]\./.test(version); + var old = require_old(); + function newError(er) { + return er && er.syscall === "realpath" && (er.code === "ELOOP" || er.code === "ENOMEM" || er.code === "ENAMETOOLONG"); + } + function realpath(p2, cache, cb) { + if (ok) { + return origRealpath(p2, cache, cb); + } + if (typeof cache === "function") { + cb = cache; + cache = null; + } + origRealpath(p2, cache, function(er, result) { + if (newError(er)) { + old.realpath(p2, cache, cb); + } else { + cb(er, result); + } + }); + } + function realpathSync(p2, cache) { + if (ok) { + return origRealpathSync(p2, cache); + } + try { + return origRealpathSync(p2, cache); + } catch (er) { + if (newError(er)) { + return old.realpathSync(p2, cache); + } else { + throw er; + } + } + } + function monkeypatch() { + fs4.realpath = realpath; + fs4.realpathSync = realpathSync; + } + function unmonkeypatch() { + fs4.realpath = origRealpath; + fs4.realpathSync = origRealpathSync; + } + } +}); + +// node_modules/concat-map/index.js +var require_concat_map = __commonJS({ + "node_modules/concat-map/index.js"(exports2, module2) { + module2.exports = function(xs, fn) { + var res2 = []; + for (var i = 0; i < xs.length; i++) { + var x2 = fn(xs[i], i); + if (isArray(x2)) + res2.push.apply(res2, x2); + else + res2.push(x2); + } + return res2; + }; + var isArray = Array.isArray || function(xs) { + return Object.prototype.toString.call(xs) === "[object Array]"; + }; + } +}); + +// node_modules/balanced-match/index.js +var require_balanced_match = __commonJS({ + "node_modules/balanced-match/index.js"(exports2, module2) { + "use strict"; + module2.exports = balanced; + function balanced(a2, b, str) { + if (a2 instanceof RegExp) + a2 = maybeMatch(a2, str); + if (b instanceof RegExp) + b = maybeMatch(b, str); + var r4 = range(a2, b, str); + return r4 && { + start: r4[0], + end: r4[1], + pre: str.slice(0, r4[0]), + body: str.slice(r4[0] + a2.length, r4[1]), + post: str.slice(r4[1] + b.length) + }; + } + function maybeMatch(reg2, str) { + var m4 = str.match(reg2); + return m4 ? m4[0] : null; + } + balanced.range = range; + function range(a2, b, str) { + var begs, beg, left, right, result; + var ai = str.indexOf(a2); + var bi2 = str.indexOf(b, ai + 1); + var i = ai; + if (ai >= 0 && bi2 > 0) { + if (a2 === b) { + return [ai, bi2]; + } + begs = []; + left = str.length; + while (i >= 0 && !result) { + if (i == ai) { + begs.push(i); + ai = str.indexOf(a2, i + 1); + } else if (begs.length == 1) { + result = [begs.pop(), bi2]; } else { - throw payload._result; + beg = begs.pop(); + if (beg < left) { + left = beg; + right = bi2; + } + bi2 = str.indexOf(b, i + 1); } + i = ai < bi2 && ai >= 0 ? ai : bi2; } - function lazy(ctor) { - var payload = { - _status: -1, - _result: ctor - }; - var lazyType = { - $$typeof: REACT_LAZY_TYPE, - _payload: payload, - _init: lazyInitializer - }; - { - var defaultProps; - var propTypes; - Object.defineProperties(lazyType, { - defaultProps: { - configurable: true, - get: function() { - return defaultProps; - }, - set: function(newDefaultProps) { - error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); - defaultProps = newDefaultProps; - Object.defineProperty(lazyType, "defaultProps", { - enumerable: true - }); - } - }, - propTypes: { - configurable: true, - get: function() { - return propTypes; - }, - set: function(newPropTypes) { - error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); - propTypes = newPropTypes; - Object.defineProperty(lazyType, "propTypes", { - enumerable: true - }); - } - } + if (begs.length) { + result = [left, right]; + } + } + return result; + } + } +}); + +// node_modules/brace-expansion/index.js +var require_brace_expansion = __commonJS({ + "node_modules/brace-expansion/index.js"(exports2, module2) { + var concatMap = require_concat_map(); + var balanced = require_balanced_match(); + module2.exports = expandTop; + var escSlash = "\0SLASH" + Math.random() + "\0"; + var escOpen = "\0OPEN" + Math.random() + "\0"; + var escClose = "\0CLOSE" + Math.random() + "\0"; + var escComma = "\0COMMA" + Math.random() + "\0"; + var escPeriod = "\0PERIOD" + Math.random() + "\0"; + function numeric(str) { + return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0); + } + function escapeBraces(str) { + return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod); + } + function unescapeBraces(str) { + return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join("."); + } + function parseCommaParts(str) { + if (!str) + return [""]; + var parts = []; + var m4 = balanced("{", "}", str); + if (!m4) + return str.split(","); + var pre = m4.pre; + var body = m4.body; + var post = m4.post; + var p2 = pre.split(","); + p2[p2.length - 1] += "{" + body + "}"; + var postParts = parseCommaParts(post); + if (post.length) { + p2[p2.length - 1] += postParts.shift(); + p2.push.apply(p2, postParts); + } + parts.push.apply(parts, p2); + return parts; + } + function expandTop(str) { + if (!str) + return []; + if (str.substr(0, 2) === "{}") { + str = "\\{\\}" + str.substr(2); + } + return expand(escapeBraces(str), true).map(unescapeBraces); + } + function embrace(str) { + return "{" + str + "}"; + } + function isPadded(el2) { + return /^-?0\d/.test(el2); + } + function lte(i, y3) { + return i <= y3; + } + function gte(i, y3) { + return i >= y3; + } + function expand(str, isTop) { + var expansions = []; + var m4 = balanced("{", "}", str); + if (!m4 || /\$$/.test(m4.pre)) + return [str]; + var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m4.body); + var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m4.body); + var isSequence = isNumericSequence || isAlphaSequence; + var isOptions = m4.body.indexOf(",") >= 0; + if (!isSequence && !isOptions) { + if (m4.post.match(/,.*\}/)) { + str = m4.pre + "{" + m4.body + escClose + m4.post; + return expand(str); + } + return [str]; + } + var n2; + if (isSequence) { + n2 = m4.body.split(/\.\./); + } else { + n2 = parseCommaParts(m4.body); + if (n2.length === 1) { + n2 = expand(n2[0], false).map(embrace); + if (n2.length === 1) { + var post = m4.post.length ? expand(m4.post, false) : [""]; + return post.map(function(p2) { + return m4.pre + n2[0] + p2; }); } - return lazyType; } - function forwardRef(render) { - { - if (render != null && render.$$typeof === REACT_MEMO_TYPE) { - error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."); - } else if (typeof render !== "function") { - error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render); - } else { - if (render.length !== 0 && render.length !== 2) { - error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."); - } - } - if (render != null) { - if (render.defaultProps != null || render.propTypes != null) { - error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"); + } + var pre = m4.pre; + var post = m4.post.length ? expand(m4.post, false) : [""]; + var N; + if (isSequence) { + var x2 = numeric(n2[0]); + var y3 = numeric(n2[1]); + var width2 = Math.max(n2[0].length, n2[1].length); + var incr = n2.length == 3 ? Math.abs(numeric(n2[2])) : 1; + var test = lte; + var reverse = y3 < x2; + if (reverse) { + incr *= -1; + test = gte; + } + var pad2 = n2.some(isPadded); + N = []; + for (var i = x2; test(i, y3); i += incr) { + var c3; + if (isAlphaSequence) { + c3 = String.fromCharCode(i); + if (c3 === "\\") + c3 = ""; + } else { + c3 = String(i); + if (pad2) { + var need = width2 - c3.length; + if (need > 0) { + var z = new Array(need + 1).join("0"); + if (i < 0) + c3 = "-" + z + c3.slice(1); + else + c3 = z + c3; } } } - var elementType = { - $$typeof: REACT_FORWARD_REF_TYPE, - render - }; - { - var ownName; - Object.defineProperty(elementType, "displayName", { - enumerable: false, - configurable: true, - get: function() { - return ownName; - }, - set: function(name) { - ownName = name; - if (render.displayName == null) { - render.displayName = name; - } - } - }); - } - return elementType; + N.push(c3); } - var enableScopeAPI = false; - function isValidElementType(type2) { - if (typeof type2 === "string" || typeof type2 === "function") { - return true; - } - if (type2 === exports2.Fragment || type2 === exports2.Profiler || type2 === REACT_DEBUG_TRACING_MODE_TYPE || type2 === exports2.StrictMode || type2 === exports2.Suspense || type2 === REACT_SUSPENSE_LIST_TYPE || type2 === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) { - return true; - } - if (typeof type2 === "object" && type2 !== null) { - if (type2.$$typeof === REACT_LAZY_TYPE || type2.$$typeof === REACT_MEMO_TYPE || type2.$$typeof === REACT_PROVIDER_TYPE || type2.$$typeof === REACT_CONTEXT_TYPE || type2.$$typeof === REACT_FORWARD_REF_TYPE || type2.$$typeof === REACT_FUNDAMENTAL_TYPE || type2.$$typeof === REACT_BLOCK_TYPE || type2[0] === REACT_SERVER_BLOCK_TYPE) { - return true; - } + } else { + N = concatMap(n2, function(el2) { + return expand(el2, false); + }); + } + for (var j3 = 0; j3 < N.length; j3++) { + for (var k = 0; k < post.length; k++) { + var expansion = pre + N[j3] + post[k]; + if (!isTop || isSequence || expansion) + expansions.push(expansion); + } + } + return expansions; + } + } +}); + +// node_modules/minimatch/minimatch.js +var require_minimatch = __commonJS({ + "node_modules/minimatch/minimatch.js"(exports2, module2) { + module2.exports = minimatch; + minimatch.Minimatch = Minimatch; + var path = { sep: "/" }; + try { + path = require("path"); + } catch (er) { + } + var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}; + var expand = require_brace_expansion(); + var plTypes = { + "!": { open: "(?:(?!(?:", close: "))[^/]*?)" }, + "?": { open: "(?:", close: ")?" }, + "+": { open: "(?:", close: ")+" }, + "*": { open: "(?:", close: ")*" }, + "@": { open: "(?:", close: ")" } + }; + var qmark = "[^/]"; + var star = qmark + "*?"; + var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?"; + var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?"; + var reSpecials = charSet("().*{}+?[]^$\\!"); + function charSet(s) { + return s.split("").reduce(function(set3, c3) { + set3[c3] = true; + return set3; + }, {}); + } + var slashSplit = /\/+/; + minimatch.filter = filter2; + function filter2(pattern, options) { + options = options || {}; + return function(p2, i, list) { + return minimatch(p2, pattern, options); + }; + } + function ext(a2, b) { + a2 = a2 || {}; + b = b || {}; + var t2 = {}; + Object.keys(b).forEach(function(k) { + t2[k] = b[k]; + }); + Object.keys(a2).forEach(function(k) { + t2[k] = a2[k]; + }); + return t2; + } + minimatch.defaults = function(def) { + if (!def || !Object.keys(def).length) + return minimatch; + var orig = minimatch; + var m4 = function minimatch2(p2, pattern, options) { + return orig.minimatch(p2, pattern, ext(def, options)); + }; + m4.Minimatch = function Minimatch2(pattern, options) { + return new orig.Minimatch(pattern, ext(def, options)); + }; + return m4; + }; + Minimatch.defaults = function(def) { + if (!def || !Object.keys(def).length) + return Minimatch; + return minimatch.defaults(def).Minimatch; + }; + function minimatch(p2, pattern, options) { + if (typeof pattern !== "string") { + throw new TypeError("glob pattern string required"); + } + if (!options) + options = {}; + if (!options.nocomment && pattern.charAt(0) === "#") { + return false; + } + if (pattern.trim() === "") + return p2 === ""; + return new Minimatch(pattern, options).match(p2); + } + function Minimatch(pattern, options) { + if (!(this instanceof Minimatch)) { + return new Minimatch(pattern, options); + } + if (typeof pattern !== "string") { + throw new TypeError("glob pattern string required"); + } + if (!options) + options = {}; + pattern = pattern.trim(); + if (path.sep !== "/") { + pattern = pattern.split(path.sep).join("/"); + } + this.options = options; + this.set = []; + this.pattern = pattern; + this.regexp = null; + this.negate = false; + this.comment = false; + this.empty = false; + this.make(); + } + Minimatch.prototype.debug = function() { + }; + Minimatch.prototype.make = make2; + function make2() { + if (this._made) + return; + var pattern = this.pattern; + var options = this.options; + if (!options.nocomment && pattern.charAt(0) === "#") { + this.comment = true; + return; + } + if (!pattern) { + this.empty = true; + return; + } + this.parseNegate(); + var set3 = this.globSet = this.braceExpand(); + if (options.debug) + this.debug = console.error; + this.debug(this.pattern, set3); + set3 = this.globParts = set3.map(function(s) { + return s.split(slashSplit); + }); + this.debug(this.pattern, set3); + set3 = set3.map(function(s, si, set4) { + return s.map(this.parse, this); + }, this); + this.debug(this.pattern, set3); + set3 = set3.filter(function(s) { + return s.indexOf(false) === -1; + }); + this.debug(this.pattern, set3); + this.set = set3; + } + Minimatch.prototype.parseNegate = parseNegate; + function parseNegate() { + var pattern = this.pattern; + var negate = false; + var options = this.options; + var negateOffset = 0; + if (options.nonegate) + return; + for (var i = 0, l2 = pattern.length; i < l2 && pattern.charAt(i) === "!"; i++) { + negate = !negate; + negateOffset++; + } + if (negateOffset) + this.pattern = pattern.substr(negateOffset); + this.negate = negate; + } + minimatch.braceExpand = function(pattern, options) { + return braceExpand(pattern, options); + }; + Minimatch.prototype.braceExpand = braceExpand; + function braceExpand(pattern, options) { + if (!options) { + if (this instanceof Minimatch) { + options = this.options; + } else { + options = {}; + } + } + pattern = typeof pattern === "undefined" ? this.pattern : pattern; + if (typeof pattern === "undefined") { + throw new TypeError("undefined pattern"); + } + if (options.nobrace || !pattern.match(/\{.*\}/)) { + return [pattern]; + } + return expand(pattern); + } + Minimatch.prototype.parse = parse; + var SUBPARSE = {}; + function parse(pattern, isSub) { + if (pattern.length > 1024 * 64) { + throw new TypeError("pattern is too long"); + } + var options = this.options; + if (!options.noglobstar && pattern === "**") + return GLOBSTAR; + if (pattern === "") + return ""; + var re3 = ""; + var hasMagic = !!options.nocase; + var escaping = false; + var patternListStack = []; + var negativeLists = []; + var stateChar; + var inClass = false; + var reClassStart = -1; + var classStart = -1; + var patternStart = pattern.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)"; + var self3 = this; + function clearStateChar() { + if (stateChar) { + switch (stateChar) { + case "*": + re3 += star; + hasMagic = true; + break; + case "?": + re3 += qmark; + hasMagic = true; + break; + default: + re3 += "\\" + stateChar; + break; } - return false; + self3.debug("clearStateChar %j %j", stateChar, re3); + stateChar = false; } - function memo(type2, compare) { - { - if (!isValidElementType(type2)) { - error("memo: The first argument must be a component. Instead received: %s", type2 === null ? "null" : typeof type2); + } + for (var i = 0, len = pattern.length, c3; i < len && (c3 = pattern.charAt(i)); i++) { + this.debug("%s %s %s %j", pattern, i, re3, c3); + if (escaping && reSpecials[c3]) { + re3 += "\\" + c3; + escaping = false; + continue; + } + switch (c3) { + case "/": + return false; + case "\\": + clearStateChar(); + escaping = true; + continue; + case "?": + case "*": + case "+": + case "@": + case "!": + this.debug("%s %s %s %j <-- stateChar", pattern, i, re3, c3); + if (inClass) { + this.debug(" in class"); + if (c3 === "!" && i === classStart + 1) + c3 = "^"; + re3 += c3; + continue; } - } - var elementType = { - $$typeof: REACT_MEMO_TYPE, - type: type2, - compare: compare === void 0 ? null : compare - }; - { - var ownName; - Object.defineProperty(elementType, "displayName", { - enumerable: false, - configurable: true, - get: function() { - return ownName; - }, - set: function(name) { - ownName = name; - if (type2.displayName == null) { - type2.displayName = name; - } - } + self3.debug("call clearStateChar %j", stateChar); + clearStateChar(); + stateChar = c3; + if (options.noext) + clearStateChar(); + continue; + case "(": + if (inClass) { + re3 += "("; + continue; + } + if (!stateChar) { + re3 += "\\("; + continue; + } + patternListStack.push({ + type: stateChar, + start: i - 1, + reStart: re3.length, + open: plTypes[stateChar].open, + close: plTypes[stateChar].close }); - } - return elementType; - } - function resolveDispatcher() { - var dispatcher = ReactCurrentDispatcher.current; - if (!(dispatcher !== null)) { - { - throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); + re3 += stateChar === "!" ? "(?:(?!(?:" : "(?:"; + this.debug("plType %j %j", stateChar, re3); + stateChar = false; + continue; + case ")": + if (inClass || !patternListStack.length) { + re3 += "\\)"; + continue; } - } - return dispatcher; - } - function useContext(Context, unstable_observedBits) { - var dispatcher = resolveDispatcher(); - { - if (unstable_observedBits !== void 0) { - error("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s", unstable_observedBits, typeof unstable_observedBits === "number" && Array.isArray(arguments[2]) ? "\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks" : ""); + clearStateChar(); + hasMagic = true; + var pl2 = patternListStack.pop(); + re3 += pl2.close; + if (pl2.type === "!") { + negativeLists.push(pl2); } - if (Context._context !== void 0) { - var realContext = Context._context; - if (realContext.Consumer === Context) { - error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"); - } else if (realContext.Provider === Context) { - error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?"); + pl2.reEnd = re3.length; + continue; + case "|": + if (inClass || !patternListStack.length || escaping) { + re3 += "\\|"; + escaping = false; + continue; + } + clearStateChar(); + re3 += "|"; + continue; + case "[": + clearStateChar(); + if (inClass) { + re3 += "\\" + c3; + continue; + } + inClass = true; + classStart = i; + reClassStart = re3.length; + re3 += c3; + continue; + case "]": + if (i === classStart + 1 || !inClass) { + re3 += "\\" + c3; + escaping = false; + continue; + } + if (inClass) { + var cs2 = pattern.substring(classStart + 1, i); + try { + RegExp("[" + cs2 + "]"); + } catch (er) { + var sp2 = this.parse(cs2, SUBPARSE); + re3 = re3.substr(0, reClassStart) + "\\[" + sp2[0] + "\\]"; + hasMagic = hasMagic || sp2[1]; + inClass = false; + continue; } } - } - return dispatcher.useContext(Context, unstable_observedBits); - } - function useState2(initialState) { - var dispatcher = resolveDispatcher(); - return dispatcher.useState(initialState); - } - function useReducer(reducer, initialArg, init2) { - var dispatcher = resolveDispatcher(); - return dispatcher.useReducer(reducer, initialArg, init2); + hasMagic = true; + inClass = false; + re3 += c3; + continue; + default: + clearStateChar(); + if (escaping) { + escaping = false; + } else if (reSpecials[c3] && !(c3 === "^" && inClass)) { + re3 += "\\"; + } + re3 += c3; } - function useRef2(initialValue) { - var dispatcher = resolveDispatcher(); - return dispatcher.useRef(initialValue); + } + if (inClass) { + cs2 = pattern.substr(classStart + 1); + sp2 = this.parse(cs2, SUBPARSE); + re3 = re3.substr(0, reClassStart) + "\\[" + sp2[0]; + hasMagic = hasMagic || sp2[1]; + } + for (pl2 = patternListStack.pop(); pl2; pl2 = patternListStack.pop()) { + var tail = re3.slice(pl2.reStart + pl2.open.length); + this.debug("setting tail", re3, pl2); + tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function(_10, $1, $2) { + if (!$2) { + $2 = "\\"; + } + return $1 + $1 + $2 + "|"; + }); + this.debug("tail=%j\n %s", tail, tail, pl2, re3); + var t2 = pl2.type === "*" ? star : pl2.type === "?" ? qmark : "\\" + pl2.type; + hasMagic = true; + re3 = re3.slice(0, pl2.reStart) + t2 + "\\(" + tail; + } + clearStateChar(); + if (escaping) { + re3 += "\\\\"; + } + var addPatternStart = false; + switch (re3.charAt(0)) { + case ".": + case "[": + case "(": + addPatternStart = true; + } + for (var n2 = negativeLists.length - 1; n2 > -1; n2--) { + var nl2 = negativeLists[n2]; + var nlBefore = re3.slice(0, nl2.reStart); + var nlFirst = re3.slice(nl2.reStart, nl2.reEnd - 8); + var nlLast = re3.slice(nl2.reEnd - 8, nl2.reEnd); + var nlAfter = re3.slice(nl2.reEnd); + nlLast += nlAfter; + var openParensBefore = nlBefore.split("(").length - 1; + var cleanAfter = nlAfter; + for (i = 0; i < openParensBefore; i++) { + cleanAfter = cleanAfter.replace(/\)[+*?]?/, ""); + } + nlAfter = cleanAfter; + var dollar = ""; + if (nlAfter === "" && isSub !== SUBPARSE) { + dollar = "$"; + } + var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast; + re3 = newRe; + } + if (re3 !== "" && hasMagic) { + re3 = "(?=.)" + re3; + } + if (addPatternStart) { + re3 = patternStart + re3; + } + if (isSub === SUBPARSE) { + return [re3, hasMagic]; + } + if (!hasMagic) { + return globUnescape(pattern); + } + var flags = options.nocase ? "i" : ""; + try { + var regExp = new RegExp("^" + re3 + "$", flags); + } catch (er) { + return new RegExp("$."); + } + regExp._glob = pattern; + regExp._src = re3; + return regExp; + } + minimatch.makeRe = function(pattern, options) { + return new Minimatch(pattern, options || {}).makeRe(); + }; + Minimatch.prototype.makeRe = makeRe; + function makeRe() { + if (this.regexp || this.regexp === false) + return this.regexp; + var set3 = this.set; + if (!set3.length) { + this.regexp = false; + return this.regexp; + } + var options = this.options; + var twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot; + var flags = options.nocase ? "i" : ""; + var re3 = set3.map(function(pattern) { + return pattern.map(function(p2) { + return p2 === GLOBSTAR ? twoStar : typeof p2 === "string" ? regExpEscape(p2) : p2._src; + }).join("\\/"); + }).join("|"); + re3 = "^(?:" + re3 + ")$"; + if (this.negate) + re3 = "^(?!" + re3 + ").*$"; + try { + this.regexp = new RegExp(re3, flags); + } catch (ex2) { + this.regexp = false; + } + return this.regexp; + } + minimatch.match = function(list, pattern, options) { + options = options || {}; + var mm2 = new Minimatch(pattern, options); + list = list.filter(function(f2) { + return mm2.match(f2); + }); + if (mm2.options.nonull && !list.length) { + list.push(pattern); + } + return list; + }; + Minimatch.prototype.match = match; + function match(f2, partial) { + this.debug("match", f2, this.pattern); + if (this.comment) + return false; + if (this.empty) + return f2 === ""; + if (f2 === "/" && partial) + return true; + var options = this.options; + if (path.sep !== "/") { + f2 = f2.split(path.sep).join("/"); + } + f2 = f2.split(slashSplit); + this.debug(this.pattern, "split", f2); + var set3 = this.set; + this.debug(this.pattern, "set", set3); + var filename; + var i; + for (i = f2.length - 1; i >= 0; i--) { + filename = f2[i]; + if (filename) + break; + } + for (i = 0; i < set3.length; i++) { + var pattern = set3[i]; + var file = f2; + if (options.matchBase && pattern.length === 1) { + file = [filename]; + } + var hit = this.matchOne(file, pattern, partial); + if (hit) { + if (options.flipNegate) + return true; + return !this.negate; } - function useEffect(create2, deps) { - var dispatcher = resolveDispatcher(); - return dispatcher.useEffect(create2, deps); + } + if (options.flipNegate) + return false; + return this.negate; + } + Minimatch.prototype.matchOne = function(file, pattern, partial) { + var options = this.options; + this.debug("matchOne", { "this": this, file, pattern }); + this.debug("matchOne", file.length, pattern.length); + for (var fi = 0, pi = 0, fl = file.length, pl2 = pattern.length; fi < fl && pi < pl2; fi++, pi++) { + this.debug("matchOne loop"); + var p2 = pattern[pi]; + var f2 = file[fi]; + this.debug(pattern, p2, f2); + if (p2 === false) + return false; + if (p2 === GLOBSTAR) { + this.debug("GLOBSTAR", [pattern, p2, f2]); + var fr = fi; + var pr = pi + 1; + if (pr === pl2) { + this.debug("** at the end"); + for (; fi < fl; fi++) { + if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".") + return false; + } + return true; + } + while (fr < fl) { + var swallowee = file[fr]; + this.debug("\nglobstar while", file, fr, pattern, pr, swallowee); + if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) { + this.debug("globstar found match!", fr, fl, swallowee); + return true; + } else { + if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") { + this.debug("dot detected!", file, fr, pattern, pr); + break; + } + this.debug("globstar swallow a segment, and continue"); + fr++; + } + } + if (partial) { + this.debug("\n>>> no match, partial?", file, fr, pattern, pr); + if (fr === fl) + return true; + } + return false; } - function useLayoutEffect(create2, deps) { - var dispatcher = resolveDispatcher(); - return dispatcher.useLayoutEffect(create2, deps); + var hit; + if (typeof p2 === "string") { + if (options.nocase) { + hit = f2.toLowerCase() === p2.toLowerCase(); + } else { + hit = f2 === p2; + } + this.debug("string match", p2, f2, hit); + } else { + hit = f2.match(p2); + this.debug("pattern match", p2, f2, hit); } - function useCallback(callback, deps) { - var dispatcher = resolveDispatcher(); - return dispatcher.useCallback(callback, deps); + if (!hit) + return false; + } + if (fi === fl && pi === pl2) { + return true; + } else if (fi === fl) { + return partial; + } else if (pi === pl2) { + var emptyFileEnd = fi === fl - 1 && file[fi] === ""; + return emptyFileEnd; + } + throw new Error("wtf?"); + }; + function globUnescape(s) { + return s.replace(/\\(.)/g, "$1"); + } + function regExpEscape(s) { + return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); + } + } +}); + +// node_modules/inherits/inherits_browser.js +var require_inherits_browser = __commonJS({ + "node_modules/inherits/inherits_browser.js"(exports2, module2) { + if (typeof Object.create === "function") { + module2.exports = function inherits(ctor, superCtor) { + if (superCtor) { + ctor.super_ = superCtor; + ctor.prototype = Object.create(superCtor.prototype, { + constructor: { + value: ctor, + enumerable: false, + writable: true, + configurable: true + } + }); } - function useMemo3(create2, deps) { - var dispatcher = resolveDispatcher(); - return dispatcher.useMemo(create2, deps); + }; + } else { + module2.exports = function inherits(ctor, superCtor) { + if (superCtor) { + ctor.super_ = superCtor; + var TempCtor = function() { + }; + TempCtor.prototype = superCtor.prototype; + ctor.prototype = new TempCtor(); + ctor.prototype.constructor = ctor; } - function useImperativeHandle(ref, create2, deps) { - var dispatcher = resolveDispatcher(); - return dispatcher.useImperativeHandle(ref, create2, deps); + }; + } + } +}); + +// node_modules/inherits/inherits.js +var require_inherits = __commonJS({ + "node_modules/inherits/inherits.js"(exports2, module2) { + try { + util = require("util"); + if (typeof util.inherits !== "function") + throw ""; + module2.exports = util.inherits; + } catch (e3) { + module2.exports = require_inherits_browser(); + } + var util; + } +}); + +// node_modules/path-is-absolute/index.js +var require_path_is_absolute = __commonJS({ + "node_modules/path-is-absolute/index.js"(exports2, module2) { + "use strict"; + function posix(path) { + return path.charAt(0) === "/"; + } + function win32(path) { + var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/; + var result = splitDeviceRe.exec(path); + var device = result[1] || ""; + var isUnc = Boolean(device && device.charAt(1) !== ":"); + return Boolean(result[2] || isUnc); + } + module2.exports = process.platform === "win32" ? win32 : posix; + module2.exports.posix = posix; + module2.exports.win32 = win32; + } +}); + +// node_modules/glob/common.js +var require_common = __commonJS({ + "node_modules/glob/common.js"(exports2) { + exports2.setopts = setopts; + exports2.ownProp = ownProp; + exports2.makeAbs = makeAbs; + exports2.finish = finish; + exports2.mark = mark; + exports2.isIgnored = isIgnored; + exports2.childrenIgnored = childrenIgnored; + function ownProp(obj, field) { + return Object.prototype.hasOwnProperty.call(obj, field); + } + var path = require("path"); + var minimatch = require_minimatch(); + var isAbsolute = require_path_is_absolute(); + var Minimatch = minimatch.Minimatch; + function alphasort(a2, b) { + return a2.localeCompare(b, "en"); + } + function setupIgnores(self3, options) { + self3.ignore = options.ignore || []; + if (!Array.isArray(self3.ignore)) + self3.ignore = [self3.ignore]; + if (self3.ignore.length) { + self3.ignore = self3.ignore.map(ignoreMap); + } + } + function ignoreMap(pattern) { + var gmatcher = null; + if (pattern.slice(-3) === "/**") { + var gpattern = pattern.replace(/(\/\*\*)+$/, ""); + gmatcher = new Minimatch(gpattern, { dot: true }); + } + return { + matcher: new Minimatch(pattern, { dot: true }), + gmatcher + }; + } + function setopts(self3, pattern, options) { + if (!options) + options = {}; + if (options.matchBase && pattern.indexOf("/") === -1) { + if (options.noglobstar) { + throw new Error("base matching requires globstar"); } - function useDebugValue(value, formatterFn) { - { - var dispatcher = resolveDispatcher(); - return dispatcher.useDebugValue(value, formatterFn); + pattern = "**/" + pattern; + } + self3.silent = !!options.silent; + self3.pattern = pattern; + self3.strict = options.strict !== false; + self3.realpath = !!options.realpath; + self3.realpathCache = options.realpathCache || Object.create(null); + self3.follow = !!options.follow; + self3.dot = !!options.dot; + self3.mark = !!options.mark; + self3.nodir = !!options.nodir; + if (self3.nodir) + self3.mark = true; + self3.sync = !!options.sync; + self3.nounique = !!options.nounique; + self3.nonull = !!options.nonull; + self3.nosort = !!options.nosort; + self3.nocase = !!options.nocase; + self3.stat = !!options.stat; + self3.noprocess = !!options.noprocess; + self3.absolute = !!options.absolute; + self3.maxLength = options.maxLength || Infinity; + self3.cache = options.cache || Object.create(null); + self3.statCache = options.statCache || Object.create(null); + self3.symlinks = options.symlinks || Object.create(null); + setupIgnores(self3, options); + self3.changedCwd = false; + var cwd = process.cwd(); + if (!ownProp(options, "cwd")) + self3.cwd = cwd; + else { + self3.cwd = path.resolve(options.cwd); + self3.changedCwd = self3.cwd !== cwd; + } + self3.root = options.root || path.resolve(self3.cwd, "/"); + self3.root = path.resolve(self3.root); + if (process.platform === "win32") + self3.root = self3.root.replace(/\\/g, "/"); + self3.cwdAbs = isAbsolute(self3.cwd) ? self3.cwd : makeAbs(self3, self3.cwd); + if (process.platform === "win32") + self3.cwdAbs = self3.cwdAbs.replace(/\\/g, "/"); + self3.nomount = !!options.nomount; + options.nonegate = true; + options.nocomment = true; + self3.minimatch = new Minimatch(pattern, options); + self3.options = self3.minimatch.options; + } + function finish(self3) { + var nou = self3.nounique; + var all = nou ? [] : Object.create(null); + for (var i = 0, l2 = self3.matches.length; i < l2; i++) { + var matches = self3.matches[i]; + if (!matches || Object.keys(matches).length === 0) { + if (self3.nonull) { + var literal = self3.minimatch.globSet[i]; + if (nou) + all.push(literal); + else + all[literal] = true; } + } else { + var m4 = Object.keys(matches); + if (nou) + all.push.apply(all, m4); + else + m4.forEach(function(m5) { + all[m5] = true; + }); } - var disabledDepth = 0; - var prevLog; - var prevInfo; - var prevWarn; - var prevError; - var prevGroup; - var prevGroupCollapsed; - var prevGroupEnd; - function disabledLog() { + } + if (!nou) + all = Object.keys(all); + if (!self3.nosort) + all = all.sort(alphasort); + if (self3.mark) { + for (var i = 0; i < all.length; i++) { + all[i] = self3._mark(all[i]); + } + if (self3.nodir) { + all = all.filter(function(e3) { + var notDir = !/\/$/.test(e3); + var c3 = self3.cache[e3] || self3.cache[makeAbs(self3, e3)]; + if (notDir && c3) + notDir = c3 !== "DIR" && !Array.isArray(c3); + return notDir; + }); } - disabledLog.__reactDisabledLog = true; - function disableLogs() { - { - if (disabledDepth === 0) { - prevLog = console.log; - prevInfo = console.info; - prevWarn = console.warn; - prevError = console.error; - prevGroup = console.group; - prevGroupCollapsed = console.groupCollapsed; - prevGroupEnd = console.groupEnd; - var props2 = { - configurable: true, - enumerable: true, - value: disabledLog, - writable: true - }; - Object.defineProperties(console, { - info: props2, - log: props2, - warn: props2, - error: props2, - group: props2, - groupCollapsed: props2, - groupEnd: props2 - }); - } - disabledDepth++; - } + } + if (self3.ignore.length) + all = all.filter(function(m5) { + return !isIgnored(self3, m5); + }); + self3.found = all; + } + function mark(self3, p2) { + var abs = makeAbs(self3, p2); + var c3 = self3.cache[abs]; + var m4 = p2; + if (c3) { + var isDir = c3 === "DIR" || Array.isArray(c3); + var slash = p2.slice(-1) === "/"; + if (isDir && !slash) + m4 += "/"; + else if (!isDir && slash) + m4 = m4.slice(0, -1); + if (m4 !== p2) { + var mabs = makeAbs(self3, m4); + self3.statCache[mabs] = self3.statCache[abs]; + self3.cache[mabs] = self3.cache[abs]; } - function reenableLogs() { - { - disabledDepth--; - if (disabledDepth === 0) { - var props2 = { - configurable: true, - enumerable: true, - writable: true - }; - Object.defineProperties(console, { - log: _assign({}, props2, { - value: prevLog - }), - info: _assign({}, props2, { - value: prevInfo - }), - warn: _assign({}, props2, { - value: prevWarn - }), - error: _assign({}, props2, { - value: prevError - }), - group: _assign({}, props2, { - value: prevGroup - }), - groupCollapsed: _assign({}, props2, { - value: prevGroupCollapsed - }), - groupEnd: _assign({}, props2, { - value: prevGroupEnd - }) - }); - } - if (disabledDepth < 0) { - error("disabledDepth fell below zero. This is a bug in React. Please file an issue."); + } + return m4; + } + function makeAbs(self3, f2) { + var abs = f2; + if (f2.charAt(0) === "/") { + abs = path.join(self3.root, f2); + } else if (isAbsolute(f2) || f2 === "") { + abs = f2; + } else if (self3.changedCwd) { + abs = path.resolve(self3.cwd, f2); + } else { + abs = path.resolve(f2); + } + if (process.platform === "win32") + abs = abs.replace(/\\/g, "/"); + return abs; + } + function isIgnored(self3, path2) { + if (!self3.ignore.length) + return false; + return self3.ignore.some(function(item) { + return item.matcher.match(path2) || !!(item.gmatcher && item.gmatcher.match(path2)); + }); + } + function childrenIgnored(self3, path2) { + if (!self3.ignore.length) + return false; + return self3.ignore.some(function(item) { + return !!(item.gmatcher && item.gmatcher.match(path2)); + }); + } + } +}); + +// node_modules/glob/sync.js +var require_sync = __commonJS({ + "node_modules/glob/sync.js"(exports2, module2) { + module2.exports = globSync; + globSync.GlobSync = GlobSync; + var fs4 = require("fs"); + var rp = require_fs(); + var minimatch = require_minimatch(); + var Minimatch = minimatch.Minimatch; + var Glob = require_glob().Glob; + var util = require("util"); + var path = require("path"); + var assert = require("assert"); + var isAbsolute = require_path_is_absolute(); + var common = require_common(); + var setopts = common.setopts; + var ownProp = common.ownProp; + var childrenIgnored = common.childrenIgnored; + var isIgnored = common.isIgnored; + function globSync(pattern, options) { + if (typeof options === "function" || arguments.length === 3) + throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167"); + return new GlobSync(pattern, options).found; + } + function GlobSync(pattern, options) { + if (!pattern) + throw new Error("must provide pattern"); + if (typeof options === "function" || arguments.length === 3) + throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167"); + if (!(this instanceof GlobSync)) + return new GlobSync(pattern, options); + setopts(this, pattern, options); + if (this.noprocess) + return this; + var n2 = this.minimatch.set.length; + this.matches = new Array(n2); + for (var i = 0; i < n2; i++) { + this._process(this.minimatch.set[i], i, false); + } + this._finish(); + } + GlobSync.prototype._finish = function() { + assert(this instanceof GlobSync); + if (this.realpath) { + var self3 = this; + this.matches.forEach(function(matchset, index) { + var set3 = self3.matches[index] = Object.create(null); + for (var p2 in matchset) { + try { + p2 = self3._makeAbs(p2); + var real = rp.realpathSync(p2, self3.realpathCache); + set3[real] = true; + } catch (er) { + if (er.syscall === "stat") + set3[self3._makeAbs(p2)] = true; + else + throw er; } } + }); + } + common.finish(this); + }; + GlobSync.prototype._process = function(pattern, index, inGlobStar) { + assert(this instanceof GlobSync); + var n2 = 0; + while (typeof pattern[n2] === "string") { + n2++; + } + var prefix; + switch (n2) { + case pattern.length: + this._processSimple(pattern.join("/"), index); + return; + case 0: + prefix = null; + break; + default: + prefix = pattern.slice(0, n2).join("/"); + break; + } + var remain = pattern.slice(n2); + var read; + if (prefix === null) + read = "."; + else if (isAbsolute(prefix) || isAbsolute(pattern.join("/"))) { + if (!prefix || !isAbsolute(prefix)) + prefix = "/" + prefix; + read = prefix; + } else + read = prefix; + var abs = this._makeAbs(read); + if (childrenIgnored(this, read)) + return; + var isGlobStar = remain[0] === minimatch.GLOBSTAR; + if (isGlobStar) + this._processGlobStar(prefix, read, abs, remain, index, inGlobStar); + else + this._processReaddir(prefix, read, abs, remain, index, inGlobStar); + }; + GlobSync.prototype._processReaddir = function(prefix, read, abs, remain, index, inGlobStar) { + var entries2 = this._readdir(abs, inGlobStar); + if (!entries2) + return; + var pn = remain[0]; + var negate = !!this.minimatch.negate; + var rawGlob = pn._glob; + var dotOk = this.dot || rawGlob.charAt(0) === "."; + var matchedEntries = []; + for (var i = 0; i < entries2.length; i++) { + var e3 = entries2[i]; + if (e3.charAt(0) !== "." || dotOk) { + var m4; + if (negate && !prefix) { + m4 = !e3.match(pn); + } else { + m4 = e3.match(pn); + } + if (m4) + matchedEntries.push(e3); } - var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher; - var prefix; - function describeBuiltInComponentFrame(name, source, ownerFn) { - { - if (prefix === void 0) { - try { - throw Error(); - } catch (x2) { - var match = x2.stack.trim().match(/\n( *(at )?)/); - prefix = match && match[1] || ""; - } - } - return "\n" + prefix + name; + } + var len = matchedEntries.length; + if (len === 0) + return; + if (remain.length === 1 && !this.mark && !this.stat) { + if (!this.matches[index]) + this.matches[index] = Object.create(null); + for (var i = 0; i < len; i++) { + var e3 = matchedEntries[i]; + if (prefix) { + if (prefix.slice(-1) !== "/") + e3 = prefix + "/" + e3; + else + e3 = prefix + e3; } + if (e3.charAt(0) === "/" && !this.nomount) { + e3 = path.join(this.root, e3); + } + this._emitMatch(index, e3); } - var reentry = false; - var componentFrameCache; - { - var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; - componentFrameCache = new PossiblyWeakMap(); + return; + } + remain.shift(); + for (var i = 0; i < len; i++) { + var e3 = matchedEntries[i]; + var newPattern; + if (prefix) + newPattern = [prefix, e3]; + else + newPattern = [e3]; + this._process(newPattern.concat(remain), index, inGlobStar); + } + }; + GlobSync.prototype._emitMatch = function(index, e3) { + if (isIgnored(this, e3)) + return; + var abs = this._makeAbs(e3); + if (this.mark) + e3 = this._mark(e3); + if (this.absolute) { + e3 = abs; + } + if (this.matches[index][e3]) + return; + if (this.nodir) { + var c3 = this.cache[abs]; + if (c3 === "DIR" || Array.isArray(c3)) + return; + } + this.matches[index][e3] = true; + if (this.stat) + this._stat(e3); + }; + GlobSync.prototype._readdirInGlobStar = function(abs) { + if (this.follow) + return this._readdir(abs, false); + var entries2; + var lstat; + var stat; + try { + lstat = fs4.lstatSync(abs); + } catch (er) { + if (er.code === "ENOENT") { + return null; } - function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) { - return ""; - } - { - var frame2 = componentFrameCache.get(fn); - if (frame2 !== void 0) { - return frame2; - } + } + var isSym = lstat && lstat.isSymbolicLink(); + this.symlinks[abs] = isSym; + if (!isSym && lstat && !lstat.isDirectory()) + this.cache[abs] = "FILE"; + else + entries2 = this._readdir(abs, false); + return entries2; + }; + GlobSync.prototype._readdir = function(abs, inGlobStar) { + var entries2; + if (inGlobStar && !ownProp(this.symlinks, abs)) + return this._readdirInGlobStar(abs); + if (ownProp(this.cache, abs)) { + var c3 = this.cache[abs]; + if (!c3 || c3 === "FILE") + return null; + if (Array.isArray(c3)) + return c3; + } + try { + return this._readdirEntries(abs, fs4.readdirSync(abs)); + } catch (er) { + this._readdirError(abs, er); + return null; + } + }; + GlobSync.prototype._readdirEntries = function(abs, entries2) { + if (!this.mark && !this.stat) { + for (var i = 0; i < entries2.length; i++) { + var e3 = entries2[i]; + if (abs === "/") + e3 = abs + e3; + else + e3 = abs + "/" + e3; + this.cache[e3] = true; + } + } + this.cache[abs] = entries2; + return entries2; + }; + GlobSync.prototype._readdirError = function(f2, er) { + switch (er.code) { + case "ENOTSUP": + case "ENOTDIR": + var abs = this._makeAbs(f2); + this.cache[abs] = "FILE"; + if (abs === this.cwdAbs) { + var error = new Error(er.code + " invalid cwd " + this.cwd); + error.path = this.cwd; + error.code = er.code; + throw error; } - var control; - reentry = true; - var previousPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var previousDispatcher; - { - previousDispatcher = ReactCurrentDispatcher$1.current; - ReactCurrentDispatcher$1.current = null; - disableLogs(); + break; + case "ENOENT": + case "ELOOP": + case "ENAMETOOLONG": + case "UNKNOWN": + this.cache[this._makeAbs(f2)] = false; + break; + default: + this.cache[this._makeAbs(f2)] = false; + if (this.strict) + throw er; + if (!this.silent) + console.error("glob error", er); + break; + } + }; + GlobSync.prototype._processGlobStar = function(prefix, read, abs, remain, index, inGlobStar) { + var entries2 = this._readdir(abs, inGlobStar); + if (!entries2) + return; + var remainWithoutGlobStar = remain.slice(1); + var gspref = prefix ? [prefix] : []; + var noGlobStar = gspref.concat(remainWithoutGlobStar); + this._process(noGlobStar, index, false); + var len = entries2.length; + var isSym = this.symlinks[abs]; + if (isSym && inGlobStar) + return; + for (var i = 0; i < len; i++) { + var e3 = entries2[i]; + if (e3.charAt(0) === "." && !this.dot) + continue; + var instead = gspref.concat(entries2[i], remainWithoutGlobStar); + this._process(instead, index, true); + var below = gspref.concat(entries2[i], remain); + this._process(below, index, true); + } + }; + GlobSync.prototype._processSimple = function(prefix, index) { + var exists = this._stat(prefix); + if (!this.matches[index]) + this.matches[index] = Object.create(null); + if (!exists) + return; + if (prefix && isAbsolute(prefix) && !this.nomount) { + var trail = /[\/\\]$/.test(prefix); + if (prefix.charAt(0) === "/") { + prefix = path.join(this.root, prefix); + } else { + prefix = path.resolve(this.root, prefix); + if (trail) + prefix += "/"; + } + } + if (process.platform === "win32") + prefix = prefix.replace(/\\/g, "/"); + this._emitMatch(index, prefix); + }; + GlobSync.prototype._stat = function(f2) { + var abs = this._makeAbs(f2); + var needDir = f2.slice(-1) === "/"; + if (f2.length > this.maxLength) + return false; + if (!this.stat && ownProp(this.cache, abs)) { + var c3 = this.cache[abs]; + if (Array.isArray(c3)) + c3 = "DIR"; + if (!needDir || c3 === "DIR") + return c3; + if (needDir && c3 === "FILE") + return false; + } + var exists; + var stat = this.statCache[abs]; + if (!stat) { + var lstat; + try { + lstat = fs4.lstatSync(abs); + } catch (er) { + if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) { + this.statCache[abs] = false; + return false; } + } + if (lstat && lstat.isSymbolicLink()) { try { - if (construct) { - var Fake = function() { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function() { - throw Error(); - } - }); - if (typeof Reflect === "object" && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x2) { - control = x2; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x2) { - control = x2; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x2) { - control = x2; - } - fn(); - } - } catch (sample) { - if (sample && control && typeof sample.stack === "string") { - var sampleLines = sample.stack.split("\n"); - var controlLines = control.stack.split("\n"); - var s = sampleLines.length - 1; - var c3 = controlLines.length - 1; - while (s >= 1 && c3 >= 0 && sampleLines[s] !== controlLines[c3]) { - c3--; - } - for (; s >= 1 && c3 >= 0; s--, c3--) { - if (sampleLines[s] !== controlLines[c3]) { - if (s !== 1 || c3 !== 1) { - do { - s--; - c3--; - if (c3 < 0 || sampleLines[s] !== controlLines[c3]) { - var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); - { - if (typeof fn === "function") { - componentFrameCache.set(fn, _frame); - } - } - return _frame; - } - } while (s >= 1 && c3 >= 0); - } - break; - } - } - } - } finally { - reentry = false; - { - ReactCurrentDispatcher$1.current = previousDispatcher; - reenableLogs(); - } - Error.prepareStackTrace = previousPrepareStackTrace; - } - var name = fn ? fn.displayName || fn.name : ""; - var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ""; - { - if (typeof fn === "function") { - componentFrameCache.set(fn, syntheticFrame); - } - } - return syntheticFrame; - } - function describeFunctionComponentFrame(fn, source, ownerFn) { - { - return describeNativeComponentFrame(fn, false); + stat = fs4.statSync(abs); + } catch (er) { + stat = lstat; } + } else { + stat = lstat; } - function shouldConstruct(Component2) { - var prototype = Component2.prototype; - return !!(prototype && prototype.isReactComponent); + } + this.statCache[abs] = stat; + var c3 = true; + if (stat) + c3 = stat.isDirectory() ? "DIR" : "FILE"; + this.cache[abs] = this.cache[abs] || c3; + if (needDir && c3 === "FILE") + return false; + return c3; + }; + GlobSync.prototype._mark = function(p2) { + return common.mark(this, p2); + }; + GlobSync.prototype._makeAbs = function(f2) { + return common.makeAbs(this, f2); + }; + } +}); + +// node_modules/wrappy/wrappy.js +var require_wrappy = __commonJS({ + "node_modules/wrappy/wrappy.js"(exports2, module2) { + module2.exports = wrappy; + function wrappy(fn, cb) { + if (fn && cb) + return wrappy(fn)(cb); + if (typeof fn !== "function") + throw new TypeError("need wrapper function"); + Object.keys(fn).forEach(function(k) { + wrapper[k] = fn[k]; + }); + return wrapper; + function wrapper() { + var args = new Array(arguments.length); + for (var i = 0; i < args.length; i++) { + args[i] = arguments[i]; + } + var ret = fn.apply(this, args); + var cb2 = args[args.length - 1]; + if (typeof ret === "function" && ret !== cb2) { + Object.keys(cb2).forEach(function(k) { + ret[k] = cb2[k]; + }); } - function describeUnknownElementTypeFrameInDEV(type2, source, ownerFn) { - if (type2 == null) { - return ""; + return ret; + } + } + } +}); + +// node_modules/once/once.js +var require_once = __commonJS({ + "node_modules/once/once.js"(exports2, module2) { + var wrappy = require_wrappy(); + module2.exports = wrappy(once); + module2.exports.strict = wrappy(onceStrict); + once.proto = once(function() { + Object.defineProperty(Function.prototype, "once", { + value: function() { + return once(this); + }, + configurable: true + }); + Object.defineProperty(Function.prototype, "onceStrict", { + value: function() { + return onceStrict(this); + }, + configurable: true + }); + }); + function once(fn) { + var f2 = function() { + if (f2.called) + return f2.value; + f2.called = true; + return f2.value = fn.apply(this, arguments); + }; + f2.called = false; + return f2; + } + function onceStrict(fn) { + var f2 = function() { + if (f2.called) + throw new Error(f2.onceError); + f2.called = true; + return f2.value = fn.apply(this, arguments); + }; + var name = fn.name || "Function wrapped with `once`"; + f2.onceError = name + " shouldn't be called more than once"; + f2.called = false; + return f2; + } + } +}); + +// node_modules/inflight/inflight.js +var require_inflight = __commonJS({ + "node_modules/inflight/inflight.js"(exports2, module2) { + var wrappy = require_wrappy(); + var reqs = Object.create(null); + var once = require_once(); + module2.exports = wrappy(inflight); + function inflight(key, cb) { + if (reqs[key]) { + reqs[key].push(cb); + return null; + } else { + reqs[key] = [cb]; + return makeres(key); + } + } + function makeres(key) { + return once(function RES() { + var cbs = reqs[key]; + var len = cbs.length; + var args = slice(arguments); + try { + for (var i = 0; i < len; i++) { + cbs[i].apply(null, args); } - if (typeof type2 === "function") { - { - return describeNativeComponentFrame(type2, shouldConstruct(type2)); - } + } finally { + if (cbs.length > len) { + cbs.splice(0, len); + process.nextTick(function() { + RES.apply(null, args); + }); + } else { + delete reqs[key]; } - if (typeof type2 === "string") { - return describeBuiltInComponentFrame(type2); + } + }); + } + function slice(args) { + var length = args.length; + var array2 = []; + for (var i = 0; i < length; i++) + array2[i] = args[i]; + return array2; + } + } +}); + +// node_modules/glob/glob.js +var require_glob = __commonJS({ + "node_modules/glob/glob.js"(exports2, module2) { + module2.exports = glob; + var fs4 = require("fs"); + var rp = require_fs(); + var minimatch = require_minimatch(); + var Minimatch = minimatch.Minimatch; + var inherits = require_inherits(); + var EE = require("events").EventEmitter; + var path = require("path"); + var assert = require("assert"); + var isAbsolute = require_path_is_absolute(); + var globSync = require_sync(); + var common = require_common(); + var setopts = common.setopts; + var ownProp = common.ownProp; + var inflight = require_inflight(); + var util = require("util"); + var childrenIgnored = common.childrenIgnored; + var isIgnored = common.isIgnored; + var once = require_once(); + function glob(pattern, options, cb) { + if (typeof options === "function") + cb = options, options = {}; + if (!options) + options = {}; + if (options.sync) { + if (cb) + throw new TypeError("callback provided to sync glob"); + return globSync(pattern, options); + } + return new Glob(pattern, options, cb); + } + glob.sync = globSync; + var GlobSync = glob.GlobSync = globSync.GlobSync; + glob.glob = glob; + function extend2(origin, add2) { + if (add2 === null || typeof add2 !== "object") { + return origin; + } + var keys = Object.keys(add2); + var i = keys.length; + while (i--) { + origin[keys[i]] = add2[keys[i]]; + } + return origin; + } + glob.hasMagic = function(pattern, options_) { + var options = extend2({}, options_); + options.noprocess = true; + var g2 = new Glob(pattern, options); + var set3 = g2.minimatch.set; + if (!pattern) + return false; + if (set3.length > 1) + return true; + for (var j3 = 0; j3 < set3[0].length; j3++) { + if (typeof set3[0][j3] !== "string") + return true; + } + return false; + }; + glob.Glob = Glob; + inherits(Glob, EE); + function Glob(pattern, options, cb) { + if (typeof options === "function") { + cb = options; + options = null; + } + if (options && options.sync) { + if (cb) + throw new TypeError("callback provided to sync glob"); + return new GlobSync(pattern, options); + } + if (!(this instanceof Glob)) + return new Glob(pattern, options, cb); + setopts(this, pattern, options); + this._didRealPath = false; + var n2 = this.minimatch.set.length; + this.matches = new Array(n2); + if (typeof cb === "function") { + cb = once(cb); + this.on("error", cb); + this.on("end", function(matches) { + cb(null, matches); + }); + } + var self3 = this; + this._processing = 0; + this._emitQueue = []; + this._processQueue = []; + this.paused = false; + if (this.noprocess) + return this; + if (n2 === 0) + return done(); + var sync = true; + for (var i = 0; i < n2; i++) { + this._process(this.minimatch.set[i], i, false, done); + } + sync = false; + function done() { + --self3._processing; + if (self3._processing <= 0) { + if (sync) { + process.nextTick(function() { + self3._finish(); + }); + } else { + self3._finish(); } - switch (type2) { - case exports2.Suspense: - return describeBuiltInComponentFrame("Suspense"); - case REACT_SUSPENSE_LIST_TYPE: - return describeBuiltInComponentFrame("SuspenseList"); + } + } + } + Glob.prototype._finish = function() { + assert(this instanceof Glob); + if (this.aborted) + return; + if (this.realpath && !this._didRealpath) + return this._realpath(); + common.finish(this); + this.emit("end", this.found); + }; + Glob.prototype._realpath = function() { + if (this._didRealpath) + return; + this._didRealpath = true; + var n2 = this.matches.length; + if (n2 === 0) + return this._finish(); + var self3 = this; + for (var i = 0; i < this.matches.length; i++) + this._realpathSet(i, next); + function next() { + if (--n2 === 0) + self3._finish(); + } + }; + Glob.prototype._realpathSet = function(index, cb) { + var matchset = this.matches[index]; + if (!matchset) + return cb(); + var found = Object.keys(matchset); + var self3 = this; + var n2 = found.length; + if (n2 === 0) + return cb(); + var set3 = this.matches[index] = Object.create(null); + found.forEach(function(p2, i) { + p2 = self3._makeAbs(p2); + rp.realpath(p2, self3.realpathCache, function(er, real) { + if (!er) + set3[real] = true; + else if (er.syscall === "stat") + set3[p2] = true; + else + self3.emit("error", er); + if (--n2 === 0) { + self3.matches[index] = set3; + cb(); } - if (typeof type2 === "object") { - switch (type2.$$typeof) { - case REACT_FORWARD_REF_TYPE: - return describeFunctionComponentFrame(type2.render); - case REACT_MEMO_TYPE: - return describeUnknownElementTypeFrameInDEV(type2.type, source, ownerFn); - case REACT_BLOCK_TYPE: - return describeFunctionComponentFrame(type2._render); - case REACT_LAZY_TYPE: { - var lazyComponent = type2; - var payload = lazyComponent._payload; - var init2 = lazyComponent._init; - try { - return describeUnknownElementTypeFrameInDEV(init2(payload), source, ownerFn); - } catch (x2) { - } - } - } + }); + }); + }; + Glob.prototype._mark = function(p2) { + return common.mark(this, p2); + }; + Glob.prototype._makeAbs = function(f2) { + return common.makeAbs(this, f2); + }; + Glob.prototype.abort = function() { + this.aborted = true; + this.emit("abort"); + }; + Glob.prototype.pause = function() { + if (!this.paused) { + this.paused = true; + this.emit("pause"); + } + }; + Glob.prototype.resume = function() { + if (this.paused) { + this.emit("resume"); + this.paused = false; + if (this._emitQueue.length) { + var eq2 = this._emitQueue.slice(0); + this._emitQueue.length = 0; + for (var i = 0; i < eq2.length; i++) { + var e3 = eq2[i]; + this._emitMatch(e3[0], e3[1]); + } + } + if (this._processQueue.length) { + var pq = this._processQueue.slice(0); + this._processQueue.length = 0; + for (var i = 0; i < pq.length; i++) { + var p2 = pq[i]; + this._processing--; + this._process(p2[0], p2[1], p2[2], p2[3]); } - return ""; } - var loggedTypeFailures = {}; - var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; - function setCurrentlyValidatingElement(element) { - { - if (element) { - var owner = element._owner; - var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); - ReactDebugCurrentFrame$1.setExtraStackFrame(stack); - } else { - ReactDebugCurrentFrame$1.setExtraStackFrame(null); - } + } + }; + Glob.prototype._process = function(pattern, index, inGlobStar, cb) { + assert(this instanceof Glob); + assert(typeof cb === "function"); + if (this.aborted) + return; + this._processing++; + if (this.paused) { + this._processQueue.push([pattern, index, inGlobStar, cb]); + return; + } + var n2 = 0; + while (typeof pattern[n2] === "string") { + n2++; + } + var prefix; + switch (n2) { + case pattern.length: + this._processSimple(pattern.join("/"), index, cb); + return; + case 0: + prefix = null; + break; + default: + prefix = pattern.slice(0, n2).join("/"); + break; + } + var remain = pattern.slice(n2); + var read; + if (prefix === null) + read = "."; + else if (isAbsolute(prefix) || isAbsolute(pattern.join("/"))) { + if (!prefix || !isAbsolute(prefix)) + prefix = "/" + prefix; + read = prefix; + } else + read = prefix; + var abs = this._makeAbs(read); + if (childrenIgnored(this, read)) + return cb(); + var isGlobStar = remain[0] === minimatch.GLOBSTAR; + if (isGlobStar) + this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb); + else + this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb); + }; + Glob.prototype._processReaddir = function(prefix, read, abs, remain, index, inGlobStar, cb) { + var self3 = this; + this._readdir(abs, inGlobStar, function(er, entries2) { + return self3._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries2, cb); + }); + }; + Glob.prototype._processReaddir2 = function(prefix, read, abs, remain, index, inGlobStar, entries2, cb) { + if (!entries2) + return cb(); + var pn = remain[0]; + var negate = !!this.minimatch.negate; + var rawGlob = pn._glob; + var dotOk = this.dot || rawGlob.charAt(0) === "."; + var matchedEntries = []; + for (var i = 0; i < entries2.length; i++) { + var e3 = entries2[i]; + if (e3.charAt(0) !== "." || dotOk) { + var m4; + if (negate && !prefix) { + m4 = !e3.match(pn); + } else { + m4 = e3.match(pn); } + if (m4) + matchedEntries.push(e3); } - function checkPropTypes(typeSpecs, values, location, componentName, element) { - { - var has = Function.call.bind(Object.prototype.hasOwnProperty); - for (var typeSpecName in typeSpecs) { - if (has(typeSpecs, typeSpecName)) { - var error$1 = void 0; - try { - if (typeof typeSpecs[typeSpecName] !== "function") { - var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); - err.name = "Invariant Violation"; - throw err; - } - error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); - } catch (ex2) { - error$1 = ex2; - } - if (error$1 && !(error$1 instanceof Error)) { - setCurrentlyValidatingElement(element); - error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1); - setCurrentlyValidatingElement(null); - } - if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { - loggedTypeFailures[error$1.message] = true; - setCurrentlyValidatingElement(element); - error("Failed %s type: %s", location, error$1.message); - setCurrentlyValidatingElement(null); - } - } - } + } + var len = matchedEntries.length; + if (len === 0) + return cb(); + if (remain.length === 1 && !this.mark && !this.stat) { + if (!this.matches[index]) + this.matches[index] = Object.create(null); + for (var i = 0; i < len; i++) { + var e3 = matchedEntries[i]; + if (prefix) { + if (prefix !== "/") + e3 = prefix + "/" + e3; + else + e3 = prefix + e3; } - } - function setCurrentlyValidatingElement$1(element) { - { - if (element) { - var owner = element._owner; - var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); - setExtraStackFrame(stack); - } else { - setExtraStackFrame(null); - } + if (e3.charAt(0) === "/" && !this.nomount) { + e3 = path.join(this.root, e3); } + this._emitMatch(index, e3); } - var propTypesMisspellWarningShown; - { - propTypesMisspellWarningShown = false; + return cb(); + } + remain.shift(); + for (var i = 0; i < len; i++) { + var e3 = matchedEntries[i]; + var newPattern; + if (prefix) { + if (prefix !== "/") + e3 = prefix + "/" + e3; + else + e3 = prefix + e3; } - function getDeclarationErrorAddendum() { - if (ReactCurrentOwner.current) { - var name = getComponentName(ReactCurrentOwner.current.type); - if (name) { - return "\n\nCheck the render method of `" + name + "`."; - } - } - return ""; + this._process([e3].concat(remain), index, inGlobStar, cb); + } + cb(); + }; + Glob.prototype._emitMatch = function(index, e3) { + if (this.aborted) + return; + if (isIgnored(this, e3)) + return; + if (this.paused) { + this._emitQueue.push([index, e3]); + return; + } + var abs = isAbsolute(e3) ? e3 : this._makeAbs(e3); + if (this.mark) + e3 = this._mark(e3); + if (this.absolute) + e3 = abs; + if (this.matches[index][e3]) + return; + if (this.nodir) { + var c3 = this.cache[abs]; + if (c3 === "DIR" || Array.isArray(c3)) + return; + } + this.matches[index][e3] = true; + var st2 = this.statCache[abs]; + if (st2) + this.emit("stat", e3, st2); + this.emit("match", e3); + }; + Glob.prototype._readdirInGlobStar = function(abs, cb) { + if (this.aborted) + return; + if (this.follow) + return this._readdir(abs, false, cb); + var lstatkey = "lstat\0" + abs; + var self3 = this; + var lstatcb = inflight(lstatkey, lstatcb_); + if (lstatcb) + fs4.lstat(abs, lstatcb); + function lstatcb_(er, lstat) { + if (er && er.code === "ENOENT") + return cb(); + var isSym = lstat && lstat.isSymbolicLink(); + self3.symlinks[abs] = isSym; + if (!isSym && lstat && !lstat.isDirectory()) { + self3.cache[abs] = "FILE"; + cb(); + } else + self3._readdir(abs, false, cb); + } + }; + Glob.prototype._readdir = function(abs, inGlobStar, cb) { + if (this.aborted) + return; + cb = inflight("readdir\0" + abs + "\0" + inGlobStar, cb); + if (!cb) + return; + if (inGlobStar && !ownProp(this.symlinks, abs)) + return this._readdirInGlobStar(abs, cb); + if (ownProp(this.cache, abs)) { + var c3 = this.cache[abs]; + if (!c3 || c3 === "FILE") + return cb(); + if (Array.isArray(c3)) + return cb(null, c3); + } + var self3 = this; + fs4.readdir(abs, readdirCb(this, abs, cb)); + }; + function readdirCb(self3, abs, cb) { + return function(er, entries2) { + if (er) + self3._readdirError(abs, er, cb); + else + self3._readdirEntries(abs, entries2, cb); + }; + } + Glob.prototype._readdirEntries = function(abs, entries2, cb) { + if (this.aborted) + return; + if (!this.mark && !this.stat) { + for (var i = 0; i < entries2.length; i++) { + var e3 = entries2[i]; + if (abs === "/") + e3 = abs + e3; + else + e3 = abs + "/" + e3; + this.cache[e3] = true; } - function getSourceInfoErrorAddendum(source) { - if (source !== void 0) { - var fileName = source.fileName.replace(/^.*[\\\/]/, ""); - var lineNumber = source.lineNumber; - return "\n\nCheck your code at " + fileName + ":" + lineNumber + "."; + } + this.cache[abs] = entries2; + return cb(null, entries2); + }; + Glob.prototype._readdirError = function(f2, er, cb) { + if (this.aborted) + return; + switch (er.code) { + case "ENOTSUP": + case "ENOTDIR": + var abs = this._makeAbs(f2); + this.cache[abs] = "FILE"; + if (abs === this.cwdAbs) { + var error = new Error(er.code + " invalid cwd " + this.cwd); + error.path = this.cwd; + error.code = er.code; + this.emit("error", error); + this.abort(); } - return ""; - } - function getSourceInfoErrorAddendumForProps(elementProps) { - if (elementProps !== null && elementProps !== void 0) { - return getSourceInfoErrorAddendum(elementProps.__source); + break; + case "ENOENT": + case "ELOOP": + case "ENAMETOOLONG": + case "UNKNOWN": + this.cache[this._makeAbs(f2)] = false; + break; + default: + this.cache[this._makeAbs(f2)] = false; + if (this.strict) { + this.emit("error", er); + this.abort(); } - return ""; + if (!this.silent) + console.error("glob error", er); + break; + } + return cb(); + }; + Glob.prototype._processGlobStar = function(prefix, read, abs, remain, index, inGlobStar, cb) { + var self3 = this; + this._readdir(abs, inGlobStar, function(er, entries2) { + self3._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries2, cb); + }); + }; + Glob.prototype._processGlobStar2 = function(prefix, read, abs, remain, index, inGlobStar, entries2, cb) { + if (!entries2) + return cb(); + var remainWithoutGlobStar = remain.slice(1); + var gspref = prefix ? [prefix] : []; + var noGlobStar = gspref.concat(remainWithoutGlobStar); + this._process(noGlobStar, index, false, cb); + var isSym = this.symlinks[abs]; + var len = entries2.length; + if (isSym && inGlobStar) + return cb(); + for (var i = 0; i < len; i++) { + var e3 = entries2[i]; + if (e3.charAt(0) === "." && !this.dot) + continue; + var instead = gspref.concat(entries2[i], remainWithoutGlobStar); + this._process(instead, index, true, cb); + var below = gspref.concat(entries2[i], remain); + this._process(below, index, true, cb); + } + cb(); + }; + Glob.prototype._processSimple = function(prefix, index, cb) { + var self3 = this; + this._stat(prefix, function(er, exists) { + self3._processSimple2(prefix, index, er, exists, cb); + }); + }; + Glob.prototype._processSimple2 = function(prefix, index, er, exists, cb) { + if (!this.matches[index]) + this.matches[index] = Object.create(null); + if (!exists) + return cb(); + if (prefix && isAbsolute(prefix) && !this.nomount) { + var trail = /[\/\\]$/.test(prefix); + if (prefix.charAt(0) === "/") { + prefix = path.join(this.root, prefix); + } else { + prefix = path.resolve(this.root, prefix); + if (trail) + prefix += "/"; } - var ownerHasKeyUseWarning = {}; - function getCurrentComponentErrorInfo(parentType) { - var info2 = getDeclarationErrorAddendum(); - if (!info2) { - var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name; - if (parentName) { - info2 = "\n\nCheck the top-level render call using <" + parentName + ">."; + } + if (process.platform === "win32") + prefix = prefix.replace(/\\/g, "/"); + this._emitMatch(index, prefix); + cb(); + }; + Glob.prototype._stat = function(f2, cb) { + var abs = this._makeAbs(f2); + var needDir = f2.slice(-1) === "/"; + if (f2.length > this.maxLength) + return cb(); + if (!this.stat && ownProp(this.cache, abs)) { + var c3 = this.cache[abs]; + if (Array.isArray(c3)) + c3 = "DIR"; + if (!needDir || c3 === "DIR") + return cb(null, c3); + if (needDir && c3 === "FILE") + return cb(); + } + var exists; + var stat = this.statCache[abs]; + if (stat !== void 0) { + if (stat === false) + return cb(null, stat); + else { + var type2 = stat.isDirectory() ? "DIR" : "FILE"; + if (needDir && type2 === "FILE") + return cb(); + else + return cb(null, type2, stat); + } + } + var self3 = this; + var statcb = inflight("stat\0" + abs, lstatcb_); + if (statcb) + fs4.lstat(abs, statcb); + function lstatcb_(er, lstat) { + if (lstat && lstat.isSymbolicLink()) { + return fs4.stat(abs, function(er2, stat2) { + if (er2) + self3._stat2(f2, abs, null, lstat, cb); + else + self3._stat2(f2, abs, er2, stat2, cb); + }); + } else { + self3._stat2(f2, abs, er, lstat, cb); + } + } + }; + Glob.prototype._stat2 = function(f2, abs, er, stat, cb) { + if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) { + this.statCache[abs] = false; + return cb(); + } + var needDir = f2.slice(-1) === "/"; + this.statCache[abs] = stat; + if (abs.slice(-1) === "/" && stat && !stat.isDirectory()) + return cb(null, false, stat); + var c3 = true; + if (stat) + c3 = stat.isDirectory() ? "DIR" : "FILE"; + this.cache[abs] = this.cache[abs] || c3; + if (needDir && c3 === "FILE") + return cb(); + return cb(null, c3, stat); + }; + } +}); + +// node_modules/rimraf/rimraf.js +var require_rimraf = __commonJS({ + "node_modules/rimraf/rimraf.js"(exports2, module2) { + module2.exports = rimraf; + rimraf.sync = rimrafSync; + var assert = require("assert"); + var path = require("path"); + var fs4 = require("fs"); + var glob = void 0; + try { + glob = require_glob(); + } catch (_err) { + } + var _0666 = parseInt("666", 8); + var defaultGlobOpts = { + nosort: true, + silent: true + }; + var timeout2 = 0; + var isWindows = process.platform === "win32"; + function defaults(options) { + var methods = [ + "unlink", + "chmod", + "stat", + "lstat", + "rmdir", + "readdir" + ]; + methods.forEach(function(m4) { + options[m4] = options[m4] || fs4[m4]; + m4 = m4 + "Sync"; + options[m4] = options[m4] || fs4[m4]; + }); + options.maxBusyTries = options.maxBusyTries || 3; + options.emfileWait = options.emfileWait || 1e3; + if (options.glob === false) { + options.disableGlob = true; + } + if (options.disableGlob !== true && glob === void 0) { + throw Error("glob dependency not found, set `options.disableGlob = true` if intentional"); + } + options.disableGlob = options.disableGlob || false; + options.glob = options.glob || defaultGlobOpts; + } + function rimraf(p2, options, cb) { + if (typeof options === "function") { + cb = options; + options = {}; + } + assert(p2, "rimraf: missing path"); + assert.equal(typeof p2, "string", "rimraf: path should be a string"); + assert.equal(typeof cb, "function", "rimraf: callback function required"); + assert(options, "rimraf: invalid options argument provided"); + assert.equal(typeof options, "object", "rimraf: options should be object"); + defaults(options); + var busyTries = 0; + var errState = null; + var n2 = 0; + if (options.disableGlob || !glob.hasMagic(p2)) + return afterGlob(null, [p2]); + options.lstat(p2, function(er, stat) { + if (!er) + return afterGlob(null, [p2]); + glob(p2, options.glob, afterGlob); + }); + function next(er) { + errState = errState || er; + if (--n2 === 0) + cb(errState); + } + function afterGlob(er, results) { + if (er) + return cb(er); + n2 = results.length; + if (n2 === 0) + return cb(); + results.forEach(function(p3) { + rimraf_(p3, options, function CB(er2) { + if (er2) { + if ((er2.code === "EBUSY" || er2.code === "ENOTEMPTY" || er2.code === "EPERM") && busyTries < options.maxBusyTries) { + busyTries++; + var time = busyTries * 100; + return setTimeout(function() { + rimraf_(p3, options, CB); + }, time); + } + if (er2.code === "EMFILE" && timeout2 < options.emfileWait) { + return setTimeout(function() { + rimraf_(p3, options, CB); + }, timeout2++); + } + if (er2.code === "ENOENT") + er2 = null; } - } - return info2; + timeout2 = 0; + next(er2); + }); + }); + } + } + function rimraf_(p2, options, cb) { + assert(p2); + assert(options); + assert(typeof cb === "function"); + options.lstat(p2, function(er, st2) { + if (er && er.code === "ENOENT") + return cb(null); + if (er && er.code === "EPERM" && isWindows) + fixWinEPERM(p2, options, er, cb); + if (st2 && st2.isDirectory()) + return rmdir(p2, options, er, cb); + options.unlink(p2, function(er2) { + if (er2) { + if (er2.code === "ENOENT") + return cb(null); + if (er2.code === "EPERM") + return isWindows ? fixWinEPERM(p2, options, er2, cb) : rmdir(p2, options, er2, cb); + if (er2.code === "EISDIR") + return rmdir(p2, options, er2, cb); + } + return cb(er2); + }); + }); + } + function fixWinEPERM(p2, options, er, cb) { + assert(p2); + assert(options); + assert(typeof cb === "function"); + if (er) + assert(er instanceof Error); + options.chmod(p2, _0666, function(er2) { + if (er2) + cb(er2.code === "ENOENT" ? null : er); + else + options.stat(p2, function(er3, stats) { + if (er3) + cb(er3.code === "ENOENT" ? null : er); + else if (stats.isDirectory()) + rmdir(p2, options, er, cb); + else + options.unlink(p2, cb); + }); + }); + } + function fixWinEPERMSync(p2, options, er) { + assert(p2); + assert(options); + if (er) + assert(er instanceof Error); + try { + options.chmodSync(p2, _0666); + } catch (er2) { + if (er2.code === "ENOENT") + return; + else + throw er; + } + try { + var stats = options.statSync(p2); + } catch (er3) { + if (er3.code === "ENOENT") + return; + else + throw er; + } + if (stats.isDirectory()) + rmdirSync(p2, options, er); + else + options.unlinkSync(p2); + } + function rmdir(p2, options, originalEr, cb) { + assert(p2); + assert(options); + if (originalEr) + assert(originalEr instanceof Error); + assert(typeof cb === "function"); + options.rmdir(p2, function(er) { + if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")) + rmkids(p2, options, cb); + else if (er && er.code === "ENOTDIR") + cb(originalEr); + else + cb(er); + }); + } + function rmkids(p2, options, cb) { + assert(p2); + assert(options); + assert(typeof cb === "function"); + options.readdir(p2, function(er, files) { + if (er) + return cb(er); + var n2 = files.length; + if (n2 === 0) + return options.rmdir(p2, cb); + var errState; + files.forEach(function(f2) { + rimraf(path.join(p2, f2), options, function(er2) { + if (errState) + return; + if (er2) + return cb(errState = er2); + if (--n2 === 0) + options.rmdir(p2, cb); + }); + }); + }); + } + function rimrafSync(p2, options) { + options = options || {}; + defaults(options); + assert(p2, "rimraf: missing path"); + assert.equal(typeof p2, "string", "rimraf: path should be a string"); + assert(options, "rimraf: missing options"); + assert.equal(typeof options, "object", "rimraf: options should be object"); + var results; + if (options.disableGlob || !glob.hasMagic(p2)) { + results = [p2]; + } else { + try { + options.lstatSync(p2); + results = [p2]; + } catch (er) { + results = glob.sync(p2, options.glob); } - function validateExplicitKey(element, parentType) { - if (!element._store || element._store.validated || element.key != null) { - return; - } - element._store.validated = true; - var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); - if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { + } + if (!results.length) + return; + for (var i = 0; i < results.length; i++) { + var p2 = results[i]; + try { + var st2 = options.lstatSync(p2); + } catch (er) { + if (er.code === "ENOENT") return; - } - ownerHasKeyUseWarning[currentComponentErrorInfo] = true; - var childOwner = ""; - if (element && element._owner && element._owner !== ReactCurrentOwner.current) { - childOwner = " It was passed a child from " + getComponentName(element._owner.type) + "."; - } - { - setCurrentlyValidatingElement$1(element); - error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner); - setCurrentlyValidatingElement$1(null); - } + if (er.code === "EPERM" && isWindows) + fixWinEPERMSync(p2, options, er); } - function validateChildKeys(node, parentType) { - if (typeof node !== "object") { + try { + if (st2 && st2.isDirectory()) + rmdirSync(p2, options, null); + else + options.unlinkSync(p2); + } catch (er) { + if (er.code === "ENOENT") return; - } - if (Array.isArray(node)) { - for (var i = 0; i < node.length; i++) { - var child = node[i]; - if (isValidElement(child)) { - validateExplicitKey(child, parentType); - } - } - } else if (isValidElement(node)) { - if (node._store) { - node._store.validated = true; + if (er.code === "EPERM") + return isWindows ? fixWinEPERMSync(p2, options, er) : rmdirSync(p2, options, er); + if (er.code !== "EISDIR") + throw er; + rmdirSync(p2, options, er); + } + } + } + function rmdirSync(p2, options, originalEr) { + assert(p2); + assert(options); + if (originalEr) + assert(originalEr instanceof Error); + try { + options.rmdirSync(p2); + } catch (er) { + if (er.code === "ENOENT") + return; + if (er.code === "ENOTDIR") + throw originalEr; + if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") + rmkidsSync(p2, options); + } + } + function rmkidsSync(p2, options) { + assert(p2); + assert(options); + options.readdirSync(p2).forEach(function(f2) { + rimrafSync(path.join(p2, f2), options); + }); + var retries = isWindows ? 100 : 1; + var i = 0; + do { + var threw = true; + try { + var ret = options.rmdirSync(p2, options); + threw = false; + return ret; + } finally { + if (++i < retries && threw) + continue; + } + } while (true); + } + } +}); + +// node_modules/tmp/lib/tmp.js +var require_tmp = __commonJS({ + "node_modules/tmp/lib/tmp.js"(exports2, module2) { + var fs4 = require("fs"); + var os2 = require("os"); + var path = require("path"); + var crypto = require("crypto"); + var _c = fs4.constants && os2.constants ? { fs: fs4.constants, os: os2.constants } : process.binding("constants"); + var rimraf = require_rimraf(); + var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; + var TEMPLATE_PATTERN = /XXXXXX/; + var DEFAULT_TRIES = 3; + var CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR); + var EBADF = _c.EBADF || _c.os.errno.EBADF; + var ENOENT = _c.ENOENT || _c.os.errno.ENOENT; + var DIR_MODE = 448; + var FILE_MODE = 384; + var EXIT = "exit"; + var SIGINT = "SIGINT"; + var _removeObjects = []; + var _gracefulCleanup = false; + function _randomChars(howMany) { + var value = [], rnd = null; + try { + rnd = crypto.randomBytes(howMany); + } catch (e3) { + rnd = crypto.pseudoRandomBytes(howMany); + } + for (var i = 0; i < howMany; i++) { + value.push(RANDOM_CHARS[rnd[i] % RANDOM_CHARS.length]); + } + return value.join(""); + } + function _isUndefined(obj) { + return typeof obj === "undefined"; + } + function _parseArguments(options, callback) { + if (typeof options === "function") { + return [{}, options]; + } + if (_isUndefined(options)) { + return [{}, callback]; + } + return [options, callback]; + } + function _generateTmpName(opts) { + const tmpDir = _getTmpDir(); + if (isBlank(opts.dir) && isBlank(tmpDir)) { + throw new Error("No tmp dir specified"); + } + if (!isBlank(opts.name)) { + return path.join(opts.dir || tmpDir, opts.name); + } + if (opts.template) { + var template = opts.template; + if (path.basename(template) === template) + template = path.join(opts.dir || tmpDir, template); + return template.replace(TEMPLATE_PATTERN, _randomChars(6)); + } + const name = [ + isBlank(opts.prefix) ? "tmp-" : opts.prefix, + process.pid, + _randomChars(12), + opts.postfix ? opts.postfix : "" + ].join(""); + return path.join(opts.dir || tmpDir, name); + } + function tmpName(options, callback) { + var args = _parseArguments(options, callback), opts = args[0], cb = args[1], tries = !isBlank(opts.name) ? 1 : opts.tries || DEFAULT_TRIES; + if (isNaN(tries) || tries < 0) + return cb(new Error("Invalid tries")); + if (opts.template && !opts.template.match(TEMPLATE_PATTERN)) + return cb(new Error("Invalid template provided")); + (function _getUniqueName() { + try { + const name = _generateTmpName(opts); + fs4.stat(name, function(err) { + if (!err) { + if (tries-- > 0) + return _getUniqueName(); + return cb(new Error("Could not get a unique tmp filename, max tries reached " + name)); } - } else if (node) { - var iteratorFn = getIteratorFn(node); - if (typeof iteratorFn === "function") { - if (iteratorFn !== node.entries) { - var iterator = iteratorFn.call(node); - var step; - while (!(step = iterator.next()).done) { - if (isValidElement(step.value)) { - validateExplicitKey(step.value, parentType); + cb(null, name); + }); + } catch (err) { + cb(err); + } + })(); + } + function tmpNameSync(options) { + var args = _parseArguments(options), opts = args[0], tries = !isBlank(opts.name) ? 1 : opts.tries || DEFAULT_TRIES; + if (isNaN(tries) || tries < 0) + throw new Error("Invalid tries"); + if (opts.template && !opts.template.match(TEMPLATE_PATTERN)) + throw new Error("Invalid template provided"); + do { + const name = _generateTmpName(opts); + try { + fs4.statSync(name); + } catch (e3) { + return name; + } + } while (tries-- > 0); + throw new Error("Could not get a unique tmp filename, max tries reached"); + } + function file(options, callback) { + var args = _parseArguments(options, callback), opts = args[0], cb = args[1]; + tmpName(opts, function _tmpNameCreated(err, name) { + if (err) + return cb(err); + fs4.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) { + if (err2) + return cb(err2); + if (opts.discardDescriptor) { + return fs4.close(fd, function _discardCallback(err3) { + if (err3) { + try { + fs4.unlinkSync(name); + } catch (e3) { + if (!isENOENT(e3)) { + err3 = e3; } } + return cb(err3); } - } + cb(null, name, void 0, _prepareTmpFileRemoveCallback(name, -1, opts)); + }); } - } - function validatePropTypes(element) { - { - var type2 = element.type; - if (type2 === null || type2 === void 0 || typeof type2 === "string") { - return; - } - var propTypes; - if (typeof type2 === "function") { - propTypes = type2.propTypes; - } else if (typeof type2 === "object" && (type2.$$typeof === REACT_FORWARD_REF_TYPE || type2.$$typeof === REACT_MEMO_TYPE)) { - propTypes = type2.propTypes; - } else { - return; - } - if (propTypes) { - var name = getComponentName(type2); - checkPropTypes(propTypes, element.props, "prop", name, element); - } else if (type2.PropTypes !== void 0 && !propTypesMisspellWarningShown) { - propTypesMisspellWarningShown = true; - var _name = getComponentName(type2); - error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown"); - } - if (typeof type2.getDefaultProps === "function" && !type2.getDefaultProps.isReactClassApproved) { - error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); - } + if (opts.detachDescriptor) { + return cb(null, name, fd, _prepareTmpFileRemoveCallback(name, -1, opts)); } + cb(null, name, fd, _prepareTmpFileRemoveCallback(name, fd, opts)); + }); + }); + } + function fileSync(options) { + var args = _parseArguments(options), opts = args[0]; + const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor; + const name = tmpNameSync(opts); + var fd = fs4.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE); + if (opts.discardDescriptor) { + fs4.closeSync(fd); + fd = void 0; + } + return { + name, + fd, + removeCallback: _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd, opts) + }; + } + function dir(options, callback) { + var args = _parseArguments(options, callback), opts = args[0], cb = args[1]; + tmpName(opts, function _tmpNameCreated(err, name) { + if (err) + return cb(err); + fs4.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err2) { + if (err2) + return cb(err2); + cb(null, name, _prepareTmpDirRemoveCallback(name, opts)); + }); + }); + } + function dirSync(options) { + var args = _parseArguments(options), opts = args[0]; + const name = tmpNameSync(opts); + fs4.mkdirSync(name, opts.mode || DIR_MODE); + return { + name, + removeCallback: _prepareTmpDirRemoveCallback(name, opts) + }; + } + function _removeFileAsync(fdPath, next) { + const _handler = function(err) { + if (err && !isENOENT(err)) { + return next(err); } - function validateFragmentProps(fragment) { - { - var keys = Object.keys(fragment.props); - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - if (key !== "children" && key !== "key") { - setCurrentlyValidatingElement$1(fragment); - error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key); - setCurrentlyValidatingElement$1(null); - break; - } - } - if (fragment.ref !== null) { - setCurrentlyValidatingElement$1(fragment); - error("Invalid attribute `ref` supplied to `React.Fragment`."); - setCurrentlyValidatingElement$1(null); - } - } + next(); + }; + if (0 <= fdPath[0]) + fs4.close(fdPath[0], function(err) { + fs4.unlink(fdPath[1], _handler); + }); + else + fs4.unlink(fdPath[1], _handler); + } + function _removeFileSync(fdPath) { + try { + if (0 <= fdPath[0]) + fs4.closeSync(fdPath[0]); + } catch (e3) { + if (!isEBADF(e3) && !isENOENT(e3)) + throw e3; + } finally { + try { + fs4.unlinkSync(fdPath[1]); + } catch (e3) { + if (!isENOENT(e3)) + throw e3; } - function createElementWithValidation(type2, props2, children2) { - var validType = isValidElementType(type2); - if (!validType) { - var info2 = ""; - if (type2 === void 0 || typeof type2 === "object" && type2 !== null && Object.keys(type2).length === 0) { - info2 += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."; - } - var sourceInfo = getSourceInfoErrorAddendumForProps(props2); - if (sourceInfo) { - info2 += sourceInfo; - } else { - info2 += getDeclarationErrorAddendum(); - } - var typeString; - if (type2 === null) { - typeString = "null"; - } else if (Array.isArray(type2)) { - typeString = "array"; - } else if (type2 !== void 0 && type2.$$typeof === REACT_ELEMENT_TYPE) { - typeString = "<" + (getComponentName(type2.type) || "Unknown") + " />"; - info2 = " Did you accidentally export a JSX literal instead of a component?"; - } else { - typeString = typeof type2; - } - { - error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info2); - } - } - var element = createElement.apply(this, arguments); - if (element == null) { - return element; - } - if (validType) { - for (var i = 2; i < arguments.length; i++) { - validateChildKeys(arguments[i], type2); + } + } + function _prepareTmpFileRemoveCallback(name, fd, opts) { + const removeCallbackSync = _prepareRemoveCallback(_removeFileSync, [fd, name]); + const removeCallback = _prepareRemoveCallback(_removeFileAsync, [fd, name], removeCallbackSync); + if (!opts.keep) + _removeObjects.unshift(removeCallbackSync); + return removeCallback; + } + function _rimrafRemoveDirWrapper(dirPath, next) { + rimraf(dirPath, next); + } + function _rimrafRemoveDirSyncWrapper(dirPath, next) { + try { + return next(null, rimraf.sync(dirPath)); + } catch (err) { + return next(err); + } + } + function _prepareTmpDirRemoveCallback(name, opts) { + const removeFunction2 = opts.unsafeCleanup ? _rimrafRemoveDirWrapper : fs4.rmdir.bind(fs4); + const removeFunctionSync = opts.unsafeCleanup ? _rimrafRemoveDirSyncWrapper : fs4.rmdirSync.bind(fs4); + const removeCallbackSync = _prepareRemoveCallback(removeFunctionSync, name); + const removeCallback = _prepareRemoveCallback(removeFunction2, name, removeCallbackSync); + if (!opts.keep) + _removeObjects.unshift(removeCallbackSync); + return removeCallback; + } + function _prepareRemoveCallback(removeFunction2, arg, cleanupCallbackSync) { + var called = false; + return function _cleanupCallback(next) { + next = next || function() { + }; + if (!called) { + const toRemove = cleanupCallbackSync || _cleanupCallback; + const index = _removeObjects.indexOf(toRemove); + if (index >= 0) + _removeObjects.splice(index, 1); + called = true; + if (removeFunction2.length === 1) { + try { + removeFunction2(arg); + return next(null); + } catch (err) { + return next(err); } + } else + return removeFunction2(arg, next); + } else + return next(new Error("cleanup callback has already been called")); + }; + } + function _garbageCollector() { + if (!_gracefulCleanup) + return; + while (_removeObjects.length) { + try { + _removeObjects[0](); + } catch (e3) { + } + } + } + function isEBADF(error) { + return isExpectedError(error, -EBADF, "EBADF"); + } + function isENOENT(error) { + return isExpectedError(error, -ENOENT, "ENOENT"); + } + function isExpectedError(error, code, errno) { + return error.code === code || error.code === errno; + } + function isBlank(s) { + return s === null || s === void 0 || !s.trim(); + } + function setGracefulCleanup() { + _gracefulCleanup = true; + } + function _getTmpDir() { + return os2.tmpdir(); + } + function _is_legacy_listener(listener) { + return (listener.name === "_exit" || listener.name === "_uncaughtExceptionThrown") && listener.toString().indexOf("_garbageCollector();") > -1; + } + function _safely_install_sigint_listener() { + const listeners = process.listeners(SIGINT); + const existingListeners = []; + for (let i = 0, length = listeners.length; i < length; i++) { + const lstnr = listeners[i]; + if (lstnr.name === "_tmp$sigint_listener") { + existingListeners.push(lstnr); + process.removeListener(SIGINT, lstnr); + } + } + process.on(SIGINT, function _tmp$sigint_listener(doExit) { + for (let i = 0, length = existingListeners.length; i < length; i++) { + try { + existingListeners[i](false); + } catch (err) { } - if (type2 === exports2.Fragment) { - validateFragmentProps(element); - } else { - validatePropTypes(element); - } - return element; } - var didWarnAboutDeprecatedCreateFactory = false; - function createFactoryWithValidation(type2) { - var validatedFactory = createElementWithValidation.bind(null, type2); - validatedFactory.type = type2; - { - if (!didWarnAboutDeprecatedCreateFactory) { - didWarnAboutDeprecatedCreateFactory = true; - warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead."); - } - Object.defineProperty(validatedFactory, "type", { - enumerable: false, - get: function() { - warn("Factory.type is deprecated. Access the class directly before passing it to createFactory."); - Object.defineProperty(this, "type", { - value: type2 - }); - return type2; - } - }); + try { + _garbageCollector(); + } finally { + if (!!doExit) { + process.exit(0); } - return validatedFactory; } - function cloneElementWithValidation(element, props2, children2) { - var newElement = cloneElement.apply(this, arguments); - for (var i = 2; i < arguments.length; i++) { - validateChildKeys(arguments[i], newElement.type); + }); + } + function _safely_install_exit_listener() { + const listeners = process.listeners(EXIT); + const existingListeners = []; + for (let i = 0, length = listeners.length; i < length; i++) { + const lstnr = listeners[i]; + if (lstnr.name === "_tmp$safe_listener" || _is_legacy_listener(lstnr)) { + if (lstnr.name !== "_uncaughtExceptionThrown") { + existingListeners.push(lstnr); } - validatePropTypes(newElement); - return newElement; + process.removeListener(EXIT, lstnr); } - { + } + process.addListener(EXIT, function _tmp$safe_listener(data) { + for (let i = 0, length = existingListeners.length; i < length; i++) { try { - var frozenObject = Object.freeze({}); - new Map([[frozenObject, null]]); - new Set([frozenObject]); - } catch (e3) { + existingListeners[i](data); + } catch (err) { } } - var createElement$1 = createElementWithValidation; - var cloneElement$1 = cloneElementWithValidation; - var createFactory = createFactoryWithValidation; - var Children = { - map: mapChildren2, - forEach: forEachChildren, - count: countChildren, - toArray, - only: onlyChild - }; - exports2.Children = Children; - exports2.Component = Component; - exports2.PureComponent = PureComponent; - exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals; - exports2.cloneElement = cloneElement$1; - exports2.createContext = createContext; - exports2.createElement = createElement$1; - exports2.createFactory = createFactory; - exports2.createRef = createRef; - exports2.forwardRef = forwardRef; - exports2.isValidElement = isValidElement; - exports2.lazy = lazy; - exports2.memo = memo; - exports2.useCallback = useCallback; - exports2.useContext = useContext; - exports2.useDebugValue = useDebugValue; - exports2.useEffect = useEffect; - exports2.useImperativeHandle = useImperativeHandle; - exports2.useLayoutEffect = useLayoutEffect; - exports2.useMemo = useMemo3; - exports2.useReducer = useReducer; - exports2.useRef = useRef2; - exports2.useState = useState2; - exports2.version = ReactVersion; - })(); + _garbageCollector(); + }); } + _safely_install_exit_listener(); + _safely_install_sigint_listener(); + Object.defineProperty(module2.exports, "tmpdir", { + enumerable: true, + configurable: false, + get: function() { + return _getTmpDir(); + } + }); + module2.exports.dir = dir; + module2.exports.dirSync = dirSync; + module2.exports.file = file; + module2.exports.fileSync = fileSync; + module2.exports.tmpName = tmpName; + module2.exports.tmpNameSync = tmpNameSync; + module2.exports.setGracefulCleanup = setGracefulCleanup; } }); -// node_modules/react/index.js -var require_react = __commonJS({ - "node_modules/react/index.js"(exports2, module2) { - "use strict"; - if (process.env.NODE_ENV === "production") { - module2.exports = require_react_production_min(); - } else { - module2.exports = require_react_development(); - } +// node_modules/tmp-promise/index.js +var require_tmp_promise = __commonJS({ + "node_modules/tmp-promise/index.js"(exports2, module2) { + var { promisify } = require("util"); + var tmp = require_tmp(); + module2.exports.fileSync = tmp.fileSync; + var fileWithOptions = promisify((options, cb) => tmp.file(options, (err, path, fd, cleanup) => err ? cb(err) : cb(void 0, { path, fd, cleanup: promisify(cleanup) }))); + module2.exports.file = async (options) => fileWithOptions(options); + module2.exports.withFile = async function withFile(fn, options) { + const { path, fd, cleanup } = await module2.exports.file(options); + try { + return await fn({ path, fd }); + } finally { + await cleanup(); + } + }; + module2.exports.dirSync = tmp.dirSync; + var dirWithOptions = promisify((options, cb) => tmp.dir(options, (err, path, cleanup) => err ? cb(err) : cb(void 0, { path, cleanup: promisify(cleanup) }))); + module2.exports.dir = async (options) => dirWithOptions(options); + module2.exports.withDir = async function withDir(fn, options) { + const { path, cleanup } = await module2.exports.dir(options); + try { + return await fn({ path }); + } finally { + await cleanup(); + } + }; + module2.exports.tmpNameSync = tmp.tmpNameSync; + module2.exports.tmpName = promisify(tmp.tmpName); + module2.exports.tmpdir = tmp.tmpdir; + module2.exports.setGracefulCleanup = tmp.setGracefulCleanup; } }); -// node_modules/react-dom/cjs/react-dom-server.node.production.min.js -var require_react_dom_server_node_production_min = __commonJS({ - "node_modules/react-dom/cjs/react-dom-server.node.production.min.js"(exports2) { +// node_modules/@actions/artifact/lib/internal/status-reporter.js +var require_status_reporter = __commonJS({ + "node_modules/@actions/artifact/lib/internal/status-reporter.js"(exports2) { "use strict"; - var l2 = require_object_assign(); - var n2 = require_react(); - var aa = require("stream"); - function p2(a2) { - for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a2, c3 = 1; c3 < arguments.length; c3++) - b += "&args[]=" + encodeURIComponent(arguments[c3]); - return "Minified React error #" + a2 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; - } - var q2 = 60106; - var r4 = 60107; - var u = 60108; - var z = 60114; - var B = 60109; - var ba = 60110; - var ca = 60112; - var D = 60113; - var da = 60120; - var ea = 60115; - var fa = 60116; - var ha = 60121; - var ia = 60117; - var ja = 60119; - var ka = 60129; - var la = 60131; - if (typeof Symbol === "function" && Symbol.for) { - E2 = Symbol.for; - q2 = E2("react.portal"); - r4 = E2("react.fragment"); - u = E2("react.strict_mode"); - z = E2("react.profiler"); - B = E2("react.provider"); - ba = E2("react.context"); - ca = E2("react.forward_ref"); - D = E2("react.suspense"); - da = E2("react.suspense_list"); - ea = E2("react.memo"); - fa = E2("react.lazy"); - ha = E2("react.block"); - ia = E2("react.fundamental"); - ja = E2("react.scope"); - ka = E2("react.debug_trace_mode"); - la = E2("react.legacy_hidden"); - } - var E2; - function F(a2) { - if (a2 == null) - return null; - if (typeof a2 === "function") - return a2.displayName || a2.name || null; - if (typeof a2 === "string") - return a2; - switch (a2) { - case r4: - return "Fragment"; - case q2: - return "Portal"; - case z: - return "Profiler"; - case u: - return "StrictMode"; - case D: - return "Suspense"; - case da: - return "SuspenseList"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var core_1 = require_core2(); + var StatusReporter = class { + constructor(displayFrequencyInMilliseconds) { + this.totalNumberOfFilesToProcess = 0; + this.processedCount = 0; + this.largeFiles = new Map(); + this.totalFileStatus = void 0; + this.largeFileStatus = void 0; + this.displayFrequencyInMilliseconds = displayFrequencyInMilliseconds; } - if (typeof a2 === "object") - switch (a2.$$typeof) { - case ba: - return (a2.displayName || "Context") + ".Consumer"; - case B: - return (a2._context.displayName || "Context") + ".Provider"; - case ca: - var b = a2.render; - b = b.displayName || b.name || ""; - return a2.displayName || (b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"); - case ea: - return F(a2.type); - case ha: - return F(a2._render); - case fa: - b = a2._payload; - a2 = a2._init; - try { - return F(a2(b)); - } catch (c3) { - } + setTotalNumberOfFilesToProcess(fileTotal) { + this.totalNumberOfFilesToProcess = fileTotal; + } + start() { + this.totalFileStatus = setInterval(() => { + const percentage = this.formatPercentage(this.processedCount, this.totalNumberOfFilesToProcess); + core_1.info(`Total file count: ${this.totalNumberOfFilesToProcess} ---- Processed file #${this.processedCount} (${percentage.slice(0, percentage.indexOf(".") + 2)}%)`); + }, this.displayFrequencyInMilliseconds); + this.largeFileStatus = setInterval(() => { + for (const value of Array.from(this.largeFiles.values())) { + core_1.info(value); + } + this.largeFiles.clear(); + }, 1e3); + } + updateLargeFileStatus(fileName, numerator, denominator) { + const percentage = this.formatPercentage(numerator, denominator); + const displayInformation = `Uploading ${fileName} (${percentage.slice(0, percentage.indexOf(".") + 2)}%)`; + this.largeFiles.set(fileName, displayInformation); + } + stop() { + if (this.totalFileStatus) { + clearInterval(this.totalFileStatus); + } + if (this.largeFileStatus) { + clearInterval(this.largeFileStatus); } - return null; - } - var ma2 = n2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - var na = {}; - function I(a2, b) { - for (var c3 = a2._threadCount | 0; c3 <= b; c3++) - a2[c3] = a2._currentValue2, a2._threadCount = c3 + 1; - } - function oa(a2, b, c3, d2) { - if (d2 && (d2 = a2.contextType, typeof d2 === "object" && d2 !== null)) - return I(d2, c3), d2[c3]; - if (a2 = a2.contextTypes) { - c3 = {}; - for (var f2 in a2) - c3[f2] = b[f2]; - b = c3; - } else - b = na; - return b; - } - for (var J = new Uint16Array(16), K = 0; 15 > K; K++) - J[K] = K + 1; - J[15] = 0; - var pa = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/; - var qa = Object.prototype.hasOwnProperty; - var ra = {}; - var sa = {}; - function ta(a2) { - if (qa.call(sa, a2)) - return true; - if (qa.call(ra, a2)) - return false; - if (pa.test(a2)) - return sa[a2] = true; - ra[a2] = true; - return false; - } - function ua(a2, b, c3, d2) { - if (c3 !== null && c3.type === 0) - return false; - switch (typeof b) { - case "function": - case "symbol": - return true; - case "boolean": - if (d2) - return false; - if (c3 !== null) - return !c3.acceptsBooleans; - a2 = a2.toLowerCase().slice(0, 5); - return a2 !== "data-" && a2 !== "aria-"; - default: - return false; } - } - function va(a2, b, c3, d2) { - if (b === null || typeof b === "undefined" || ua(a2, b, c3, d2)) - return true; - if (d2) - return false; - if (c3 !== null) - switch (c3.type) { - case 3: - return !b; - case 4: - return b === false; - case 5: - return isNaN(b); - case 6: - return isNaN(b) || 1 > b; + incrementProcessedCount() { + this.processedCount++; + } + formatPercentage(numerator, denominator) { + return (numerator / denominator * 100).toFixed(4).toString(); + } + }; + exports2.StatusReporter = StatusReporter; + } +}); + +// node_modules/@actions/artifact/lib/internal/http-manager.js +var require_http_manager = __commonJS({ + "node_modules/@actions/artifact/lib/internal/http-manager.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var utils_1 = require_utils3(); + var HttpManager = class { + constructor(clientCount, userAgent) { + if (clientCount < 1) { + throw new Error("There must be at least one client"); + } + this.userAgent = userAgent; + this.clients = new Array(clientCount).fill(utils_1.createHttpClient(userAgent)); + } + getClient(index) { + return this.clients[index]; + } + disposeAndReplaceClient(index) { + this.clients[index].dispose(); + this.clients[index] = utils_1.createHttpClient(this.userAgent); + } + disposeAndReplaceAllClients() { + for (const [index] of this.clients.entries()) { + this.disposeAndReplaceClient(index); } - return false; - } - function M(a2, b, c3, d2, f2, h2, t2) { - this.acceptsBooleans = b === 2 || b === 3 || b === 4; - this.attributeName = d2; - this.attributeNamespace = f2; - this.mustUseProperty = c3; - this.propertyName = a2; - this.type = b; - this.sanitizeURL = h2; - this.removeEmptyString = t2; - } - var N = {}; - "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a2) { - N[a2] = new M(a2, 0, false, a2, null, false, false); - }); - [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a2) { - var b = a2[0]; - N[b] = new M(b, 1, false, a2[1], null, false, false); - }); - ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a2) { - N[a2] = new M(a2, 2, false, a2.toLowerCase(), null, false, false); - }); - ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a2) { - N[a2] = new M(a2, 2, false, a2, null, false, false); - }); - "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a2) { - N[a2] = new M(a2, 3, false, a2.toLowerCase(), null, false, false); - }); - ["checked", "multiple", "muted", "selected"].forEach(function(a2) { - N[a2] = new M(a2, 3, true, a2, null, false, false); - }); - ["capture", "download"].forEach(function(a2) { - N[a2] = new M(a2, 4, false, a2, null, false, false); - }); - ["cols", "rows", "size", "span"].forEach(function(a2) { - N[a2] = new M(a2, 6, false, a2, null, false, false); - }); - ["rowSpan", "start"].forEach(function(a2) { - N[a2] = new M(a2, 5, false, a2.toLowerCase(), null, false, false); - }); - var wa = /[\-:]([a-z])/g; - function xa(a2) { - return a2[1].toUpperCase(); - } - "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a2) { - var b = a2.replace(wa, xa); - N[b] = new M(b, 1, false, a2, null, false, false); - }); - "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a2) { - var b = a2.replace(wa, xa); - N[b] = new M(b, 1, false, a2, "http://www.w3.org/1999/xlink", false, false); - }); - ["xml:base", "xml:lang", "xml:space"].forEach(function(a2) { - var b = a2.replace(wa, xa); - N[b] = new M(b, 1, false, a2, "http://www.w3.org/XML/1998/namespace", false, false); - }); - ["tabIndex", "crossOrigin"].forEach(function(a2) { - N[a2] = new M(a2, 1, false, a2.toLowerCase(), null, false, false); - }); - N.xlinkHref = new M("xlinkHref", 1, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false); - ["src", "href", "action", "formAction"].forEach(function(a2) { - N[a2] = new M(a2, 1, false, a2.toLowerCase(), null, true, true); - }); - var ya = /["'&<>]/; - function O(a2) { - if (typeof a2 === "boolean" || typeof a2 === "number") - return "" + a2; - a2 = "" + a2; - var b = ya.exec(a2); - if (b) { - var c3 = "", d2, f2 = 0; - for (d2 = b.index; d2 < a2.length; d2++) { - switch (a2.charCodeAt(d2)) { - case 34: - b = """; - break; - case 38: - b = "&"; - break; - case 39: - b = "'"; - break; - case 60: - b = "<"; - break; - case 62: - b = ">"; - break; - default: - continue; + } + }; + exports2.HttpManager = HttpManager; + } +}); + +// node_modules/@actions/artifact/lib/internal/upload-gzip.js +var require_upload_gzip = __commonJS({ + "node_modules/@actions/artifact/lib/internal/upload-gzip.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); } - f2 !== d2 && (c3 += a2.substring(f2, d2)); - f2 = d2 + 1; - c3 += b; } - a2 = f2 !== d2 ? c3 + a2.substring(f2, d2) : c3; + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __asyncValues = exports2 && exports2.__asyncValues || function(o) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var m4 = o[Symbol.asyncIterator], i; + return m4 ? m4.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i); + function verb(n2) { + i[n2] = o[n2] && function(v2) { + return new Promise(function(resolve, reject) { + v2 = o[n2](v2), settle(resolve, reject, v2.done, v2.value); + }); + }; } - return a2; - } - function za(a2, b) { - var c3 = N.hasOwnProperty(a2) ? N[a2] : null; - var d2; - if (d2 = a2 !== "style") - d2 = c3 !== null ? c3.type === 0 : !(2 < a2.length) || a2[0] !== "o" && a2[0] !== "O" || a2[1] !== "n" && a2[1] !== "N" ? false : true; - if (d2 || va(a2, b, c3, false)) - return ""; - if (c3 !== null) { - a2 = c3.attributeName; - d2 = c3.type; - if (d2 === 3 || d2 === 4 && b === true) - return a2 + '=""'; - c3.sanitizeURL && (b = "" + b); - return a2 + '="' + (O(b) + '"'); + function settle(resolve, reject, d2, v2) { + Promise.resolve(v2).then(function(v3) { + resolve({ value: v3, done: d2 }); + }, reject); } - return ta(a2) ? a2 + '="' + (O(b) + '"') : ""; - } - function Aa(a2, b) { - return a2 === b && (a2 !== 0 || 1 / a2 === 1 / b) || a2 !== a2 && b !== b; - } - var Ba = typeof Object.is === "function" ? Object.is : Aa; - var P = null; - var Q = null; - var R = null; - var S = false; - var T = false; - var U = null; - var V = 0; - function W() { - if (P === null) - throw Error(p2(321)); - return P; - } - function Ca() { - if (0 < V) - throw Error(p2(312)); - return { memoizedState: null, queue: null, next: null }; - } - function Da() { - R === null ? Q === null ? (S = false, Q = R = Ca()) : (S = true, R = Q) : R.next === null ? (S = false, R = R.next = Ca()) : (S = true, R = R.next); - return R; - } - function Ea(a2, b, c3, d2) { - for (; T; ) - T = false, V += 1, R = null, c3 = a2(b, d2); - Fa(); - return c3; - } - function Fa() { - P = null; - T = false; - Q = null; - V = 0; - R = U = null; + }; + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (Object.hasOwnProperty.call(mod2, k)) + result[k] = mod2[k]; + } + result["default"] = mod2; + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + var fs4 = __importStar(require("fs")); + var zlib = __importStar(require("zlib")); + var util_1 = require("util"); + var stat = util_1.promisify(fs4.stat); + function createGZipFileOnDisk(originalFilePath, tempFilePath) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + const inputStream = fs4.createReadStream(originalFilePath); + const gzip = zlib.createGzip(); + const outputStream = fs4.createWriteStream(tempFilePath); + inputStream.pipe(gzip).pipe(outputStream); + outputStream.on("finish", () => __awaiter(this, void 0, void 0, function* () { + const size = (yield stat(tempFilePath)).size; + resolve(size); + })); + outputStream.on("error", (error) => { + console.log(error); + reject; + }); + }); + }); } - function Ga(a2, b) { - return typeof b === "function" ? b(a2) : b; + exports2.createGZipFileOnDisk = createGZipFileOnDisk; + function createGZipFileInBuffer(originalFilePath) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { + var e_1, _a; + const inputStream = fs4.createReadStream(originalFilePath); + const gzip = zlib.createGzip(); + inputStream.pipe(gzip); + const chunks = []; + try { + for (var gzip_1 = __asyncValues(gzip), gzip_1_1; gzip_1_1 = yield gzip_1.next(), !gzip_1_1.done; ) { + const chunk = gzip_1_1.value; + chunks.push(chunk); + } + } catch (e_1_1) { + e_1 = { error: e_1_1 }; + } finally { + try { + if (gzip_1_1 && !gzip_1_1.done && (_a = gzip_1.return)) + yield _a.call(gzip_1); + } finally { + if (e_1) + throw e_1.error; + } + } + resolve(Buffer.concat(chunks)); + })); + }); } - function Ha(a2, b, c3) { - P = W(); - R = Da(); - if (S) { - var d2 = R.queue; - b = d2.dispatch; - if (U !== null && (c3 = U.get(d2), c3 !== void 0)) { - U.delete(d2); - d2 = R.memoizedState; - do - d2 = a2(d2, c3.action), c3 = c3.next; - while (c3 !== null); - R.memoizedState = d2; - return [d2, b]; + exports2.createGZipFileInBuffer = createGZipFileInBuffer; + } +}); + +// node_modules/@actions/artifact/lib/internal/requestUtils.js +var require_requestUtils = __commonJS({ + "node_modules/@actions/artifact/lib/internal/requestUtils.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } } - return [R.memoizedState, b]; + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (Object.hasOwnProperty.call(mod2, k)) + result[k] = mod2[k]; } - a2 = a2 === Ga ? typeof b === "function" ? b() : b : c3 !== void 0 ? c3(b) : b; - R.memoizedState = a2; - a2 = R.queue = { last: null, dispatch: null }; - a2 = a2.dispatch = Ia.bind(null, P, a2); - return [R.memoizedState, a2]; - } - function Ja(a2, b) { - P = W(); - R = Da(); - b = b === void 0 ? null : b; - if (R !== null) { - var c3 = R.memoizedState; - if (c3 !== null && b !== null) { - var d2 = c3[1]; - a: - if (d2 === null) - d2 = false; - else { - for (var f2 = 0; f2 < d2.length && f2 < b.length; f2++) - if (!Ba(b[f2], d2[f2])) { - d2 = false; - break a; - } - d2 = true; + result["default"] = mod2; + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + var utils_1 = require_utils3(); + var core2 = __importStar(require_core2()); + var config_variables_1 = require_config_variables(); + function retry(name, operation, customErrorMessages, maxAttempts) { + return __awaiter(this, void 0, void 0, function* () { + let response = void 0; + let statusCode = void 0; + let isRetryable = false; + let errorMessage = ""; + let customErrorInformation = void 0; + let attempt = 1; + while (attempt <= maxAttempts) { + try { + response = yield operation(); + statusCode = response.message.statusCode; + if (utils_1.isSuccessStatusCode(statusCode)) { + return response; } - if (d2) - return c3[0]; + if (statusCode) { + customErrorInformation = customErrorMessages.get(statusCode); + } + isRetryable = utils_1.isRetryableStatusCode(statusCode); + errorMessage = `Artifact service responded with ${statusCode}`; + } catch (error) { + isRetryable = true; + errorMessage = error.message; + } + if (!isRetryable) { + core2.info(`${name} - Error is not retryable`); + if (response) { + utils_1.displayHttpDiagnostics(response); + } + break; + } + core2.info(`${name} - Attempt ${attempt} of ${maxAttempts} failed with error: ${errorMessage}`); + yield utils_1.sleep(utils_1.getExponentialRetryTimeInMilliseconds(attempt)); + attempt++; } - } - a2 = a2(); - R.memoizedState = [a2, b]; - return a2; - } - function Ia(a2, b, c3) { - if (!(25 > V)) - throw Error(p2(301)); - if (a2 === P) - if (T = true, a2 = { action: c3, next: null }, U === null && (U = new Map()), c3 = U.get(b), c3 === void 0) - U.set(b, a2); - else { - for (b = c3; b.next !== null; ) - b = b.next; - b.next = a2; + if (response) { + utils_1.displayHttpDiagnostics(response); + } + if (customErrorInformation) { + throw Error(`${name} failed: ${customErrorInformation}`); } + throw Error(`${name} failed: ${errorMessage}`); + }); } - function Ka() { + exports2.retry = retry; + function retryHttpClientRequest(name, method, customErrorMessages = new Map(), maxAttempts = config_variables_1.getRetryLimit()) { + return __awaiter(this, void 0, void 0, function* () { + return yield retry(name, method, customErrorMessages, maxAttempts); + }); } - var X2 = null; - var La = { readContext: function(a2) { - var b = X2.threadID; - I(a2, b); - return a2[b]; - }, useContext: function(a2) { - W(); - var b = X2.threadID; - I(a2, b); - return a2[b]; - }, useMemo: Ja, useReducer: Ha, useRef: function(a2) { - P = W(); - R = Da(); - var b = R.memoizedState; - return b === null ? (a2 = { current: a2 }, R.memoizedState = a2) : b; - }, useState: function(a2) { - return Ha(Ga, a2); - }, useLayoutEffect: function() { - }, useCallback: function(a2, b) { - return Ja(function() { - return a2; - }, b); - }, useImperativeHandle: Ka, useEffect: Ka, useDebugValue: Ka, useDeferredValue: function(a2) { - W(); - return a2; - }, useTransition: function() { - W(); - return [function(a2) { - a2(); - }, false]; - }, useOpaqueIdentifier: function() { - return (X2.identifierPrefix || "") + "R:" + (X2.uniqueID++).toString(36); - }, useMutableSource: function(a2, b) { - W(); - return b(a2._source); - } }; - var Ma = { html: "http://www.w3.org/1999/xhtml", mathml: "http://www.w3.org/1998/Math/MathML", svg: "http://www.w3.org/2000/svg" }; - function Na(a2) { - switch (a2) { - case "svg": - return "http://www.w3.org/2000/svg"; - case "math": - return "http://www.w3.org/1998/Math/MathML"; - default: - return "http://www.w3.org/1999/xhtml"; + exports2.retryHttpClientRequest = retryHttpClientRequest; + } +}); + +// node_modules/@actions/artifact/lib/internal/upload-http-client.js +var require_upload_http_client = __commonJS({ + "node_modules/@actions/artifact/lib/internal/upload-http-client.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); } - } - var Oa = { area: true, base: true, br: true, col: true, embed: true, hr: true, img: true, input: true, keygen: true, link: true, meta: true, param: true, source: true, track: true, wbr: true }; - var Pa = l2({ menuitem: true }, Oa); - var Y2 = { - animationIterationCount: true, - borderImageOutset: true, - borderImageSlice: true, - borderImageWidth: true, - boxFlex: true, - boxFlexGroup: true, - boxOrdinalGroup: true, - columnCount: true, - columns: true, - flex: true, - flexGrow: true, - flexPositive: true, - flexShrink: true, - flexNegative: true, - flexOrder: true, - gridArea: true, - gridRow: true, - gridRowEnd: true, - gridRowSpan: true, - gridRowStart: true, - gridColumn: true, - gridColumnEnd: true, - gridColumnSpan: true, - gridColumnStart: true, - fontWeight: true, - lineClamp: true, - lineHeight: true, - opacity: true, - order: true, - orphans: true, - tabSize: true, - widows: true, - zIndex: true, - zoom: true, - fillOpacity: true, - floodOpacity: true, - stopOpacity: true, - strokeDasharray: true, - strokeDashoffset: true, - strokeMiterlimit: true, - strokeOpacity: true, - strokeWidth: true - }; - var Qa = ["Webkit", "ms", "Moz", "O"]; - Object.keys(Y2).forEach(function(a2) { - Qa.forEach(function(b) { - b = b + a2.charAt(0).toUpperCase() + a2.substring(1); - Y2[b] = Y2[a2]; - }); - }); - var Ra = /([A-Z])/g; - var Sa = /^ms-/; - var Z = n2.Children.toArray; - var Ta = ma2.ReactCurrentDispatcher; - var Ua = { listing: true, pre: true, textarea: true }; - var Va = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/; - var Wa = {}; - var Xa = {}; - function Ya(a2) { - if (a2 === void 0 || a2 === null) - return a2; - var b = ""; - n2.Children.forEach(a2, function(a3) { - a3 != null && (b += a3); - }); - return b; - } - var Za = Object.prototype.hasOwnProperty; - var $a = { children: null, dangerouslySetInnerHTML: null, suppressContentEditableWarning: null, suppressHydrationWarning: null }; - function ab(a2, b) { - if (a2 === void 0) - throw Error(p2(152, F(b) || "Component")); - } - function bb2(a2, b, c3) { - function d2(d3, h3) { - var e3 = h3.prototype && h3.prototype.isReactComponent, f3 = oa(h3, b, c3, e3), t2 = [], g2 = false, m4 = { isMounted: function() { - return false; - }, enqueueForceUpdate: function() { - if (t2 === null) - return null; - }, enqueueReplaceState: function(a3, b2) { - g2 = true; - t2 = [b2]; - }, enqueueSetState: function(a3, b2) { - if (t2 === null) - return null; - t2.push(b2); - } }; - if (e3) { - if (e3 = new h3(d3.props, f3, m4), typeof h3.getDerivedStateFromProps === "function") { - var k = h3.getDerivedStateFromProps.call(null, d3.props, e3.state); - k != null && (e3.state = l2({}, e3.state, k)); + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); } - } else if (P = {}, e3 = h3(d3.props, f3, m4), e3 = Ea(h3, d3.props, e3, f3), e3 == null || e3.render == null) { - a2 = e3; - ab(a2, h3); - return; } - e3.props = d3.props; - e3.context = f3; - e3.updater = m4; - m4 = e3.state; - m4 === void 0 && (e3.state = m4 = null); - if (typeof e3.UNSAFE_componentWillMount === "function" || typeof e3.componentWillMount === "function") - if (typeof e3.componentWillMount === "function" && typeof h3.getDerivedStateFromProps !== "function" && e3.componentWillMount(), typeof e3.UNSAFE_componentWillMount === "function" && typeof h3.getDerivedStateFromProps !== "function" && e3.UNSAFE_componentWillMount(), t2.length) { - m4 = t2; - var v2 = g2; - t2 = null; - g2 = false; - if (v2 && m4.length === 1) - e3.state = m4[0]; - else { - k = v2 ? m4[0] : e3.state; - var H = true; - for (v2 = v2 ? 1 : 0; v2 < m4.length; v2++) { - var x2 = m4[v2]; - x2 = typeof x2 === "function" ? x2.call(e3, k, d3.props, f3) : x2; - x2 != null && (H ? (H = false, k = l2({}, k, x2)) : l2(k, x2)); - } - e3.state = k; - } - } else - t2 = null; - a2 = e3.render(); - ab(a2, h3); - if (typeof e3.getChildContext === "function" && (d3 = h3.childContextTypes, typeof d3 === "object")) { - var y3 = e3.getChildContext(); - for (var A in y3) - if (!(A in d3)) - throw Error(p2(108, F(h3) || "Unknown", A)); + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } } - y3 && (b = l2({}, b, y3)); + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (Object.hasOwnProperty.call(mod2, k)) + result[k] = mod2[k]; } - for (; n2.isValidElement(a2); ) { - var f2 = a2, h2 = f2.type; - if (typeof h2 !== "function") - break; - d2(f2, h2); + result["default"] = mod2; + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + var fs4 = __importStar(require("fs")); + var core2 = __importStar(require_core2()); + var tmp = __importStar(require_tmp_promise()); + var stream = __importStar(require("stream")); + var utils_1 = require_utils3(); + var config_variables_1 = require_config_variables(); + var util_1 = require("util"); + var url_1 = require("url"); + var perf_hooks_1 = require("perf_hooks"); + var status_reporter_1 = require_status_reporter(); + var http_client_1 = require_http_client(); + var http_manager_1 = require_http_manager(); + var upload_gzip_1 = require_upload_gzip(); + var requestUtils_1 = require_requestUtils(); + var stat = util_1.promisify(fs4.stat); + var UploadHttpClient = class { + constructor() { + this.uploadHttpManager = new http_manager_1.HttpManager(config_variables_1.getUploadFileConcurrency(), "@actions/artifact-upload"); + this.statusReporter = new status_reporter_1.StatusReporter(1e4); } - return { child: a2, context: b }; - } - var cb = function() { - function a2(a3, b2, f2) { - n2.isValidElement(a3) ? a3.type !== r4 ? a3 = [a3] : (a3 = a3.props.children, a3 = n2.isValidElement(a3) ? [a3] : Z(a3)) : a3 = Z(a3); - a3 = { type: null, domNamespace: Ma.html, children: a3, childIndex: 0, context: na, footer: "" }; - var c3 = J[0]; - if (c3 === 0) { - var d2 = J; - c3 = d2.length; - var g2 = 2 * c3; - if (!(65536 >= g2)) - throw Error(p2(304)); - var e3 = new Uint16Array(g2); - e3.set(d2); - J = e3; - J[0] = c3 + 1; - for (d2 = c3; d2 < g2 - 1; d2++) - J[d2] = d2 + 1; - J[g2 - 1] = 0; - } else - J[0] = J[c3]; - this.threadID = c3; - this.stack = [a3]; - this.exhausted = false; - this.currentSelectValue = null; - this.previousWasTextNode = false; - this.makeStaticMarkup = b2; - this.suspenseDepth = 0; - this.contextIndex = -1; - this.contextStack = []; - this.contextValueStack = []; - this.uniqueID = 0; - this.identifierPrefix = f2 && f2.identifierPrefix || ""; + createArtifactInFileContainer(artifactName, options) { + return __awaiter(this, void 0, void 0, function* () { + const parameters = { + Type: "actions_storage", + Name: artifactName + }; + if (options && options.retentionDays) { + const maxRetentionStr = config_variables_1.getRetentionDays(); + parameters.RetentionDays = utils_1.getProperRetention(options.retentionDays, maxRetentionStr); + } + const data = JSON.stringify(parameters, null, 2); + const artifactUrl = utils_1.getArtifactUrl(); + const client = this.uploadHttpManager.getClient(0); + const headers = utils_1.getUploadHeaders("application/json", false); + const customErrorMessages = new Map([ + [ + http_client_1.HttpCodes.Forbidden, + "Artifact storage quota has been hit. Unable to upload any new artifacts" + ], + [ + http_client_1.HttpCodes.BadRequest, + `The artifact name ${artifactName} is not valid. Request URL ${artifactUrl}` + ] + ]); + const response = yield requestUtils_1.retryHttpClientRequest("Create Artifact Container", () => __awaiter(this, void 0, void 0, function* () { + return client.post(artifactUrl, data, headers); + }), customErrorMessages); + const body = yield response.readBody(); + return JSON.parse(body); + }); } - var b = a2.prototype; - b.destroy = function() { - if (!this.exhausted) { - this.exhausted = true; - this.clearProviders(); - var a3 = this.threadID; - J[a3] = J[0]; - J[0] = a3; - } - }; - b.pushProvider = function(a3) { - var b2 = ++this.contextIndex, c3 = a3.type._context, h2 = this.threadID; - I(c3, h2); - var t2 = c3[h2]; - this.contextStack[b2] = c3; - this.contextValueStack[b2] = t2; - c3[h2] = a3.props.value; - }; - b.popProvider = function() { - var a3 = this.contextIndex, b2 = this.contextStack[a3], f2 = this.contextValueStack[a3]; - this.contextStack[a3] = null; - this.contextValueStack[a3] = null; - this.contextIndex--; - b2[this.threadID] = f2; - }; - b.clearProviders = function() { - for (var a3 = this.contextIndex; 0 <= a3; a3--) - this.contextStack[a3][this.threadID] = this.contextValueStack[a3]; - }; - b.read = function(a3) { - if (this.exhausted) - return null; - var b2 = X2; - X2 = this; - var c3 = Ta.current; - Ta.current = La; - try { - for (var h2 = [""], t2 = false; h2[0].length < a3; ) { - if (this.stack.length === 0) { - this.exhausted = true; - var g2 = this.threadID; - J[g2] = J[0]; - J[0] = g2; - break; + uploadArtifactToFileContainer(uploadUrl, filesToUpload, options) { + return __awaiter(this, void 0, void 0, function* () { + const FILE_CONCURRENCY = config_variables_1.getUploadFileConcurrency(); + const MAX_CHUNK_SIZE = config_variables_1.getUploadChunkSize(); + core2.debug(`File Concurrency: ${FILE_CONCURRENCY}, and Chunk Size: ${MAX_CHUNK_SIZE}`); + const parameters = []; + let continueOnError = true; + if (options) { + if (options.continueOnError === false) { + continueOnError = false; } - var e3 = this.stack[this.stack.length - 1]; - if (t2 || e3.childIndex >= e3.children.length) { - var L = e3.footer; - L !== "" && (this.previousWasTextNode = false); - this.stack.pop(); - if (e3.type === "select") - this.currentSelectValue = null; - else if (e3.type != null && e3.type.type != null && e3.type.type.$$typeof === B) - this.popProvider(e3.type); - else if (e3.type === D) { - this.suspenseDepth--; - var G = h2.pop(); - if (t2) { - t2 = false; - var C = e3.fallbackFrame; - if (!C) - throw Error(p2(303)); - this.stack.push(C); - h2[this.suspenseDepth] += ""; - continue; - } else - h2[this.suspenseDepth] += G; + } + for (const file of filesToUpload) { + const resourceUrl = new url_1.URL(uploadUrl); + resourceUrl.searchParams.append("itemPath", file.uploadFilePath); + parameters.push({ + file: file.absoluteFilePath, + resourceUrl: resourceUrl.toString(), + maxChunkSize: MAX_CHUNK_SIZE, + continueOnError + }); + } + const parallelUploads = [...new Array(FILE_CONCURRENCY).keys()]; + const failedItemsToReport = []; + let currentFile = 0; + let completedFiles = 0; + let uploadFileSize = 0; + let totalFileSize = 0; + let abortPendingFileUploads = false; + this.statusReporter.setTotalNumberOfFilesToProcess(filesToUpload.length); + this.statusReporter.start(); + yield Promise.all(parallelUploads.map((index) => __awaiter(this, void 0, void 0, function* () { + while (currentFile < filesToUpload.length) { + const currentFileParameters = parameters[currentFile]; + currentFile += 1; + if (abortPendingFileUploads) { + failedItemsToReport.push(currentFileParameters.file); + continue; } - h2[this.suspenseDepth] += L; - } else { - var m4 = e3.children[e3.childIndex++], k = ""; - try { - k += this.render(m4, e3.context, e3.domNamespace); - } catch (v2) { - if (v2 != null && typeof v2.then === "function") - throw Error(p2(294)); - throw v2; - } finally { + const startTime = perf_hooks_1.performance.now(); + const uploadFileResult = yield this.uploadFileAsync(index, currentFileParameters); + if (core2.isDebug()) { + core2.debug(`File: ${++completedFiles}/${filesToUpload.length}. ${currentFileParameters.file} took ${(perf_hooks_1.performance.now() - startTime).toFixed(3)} milliseconds to finish upload`); } - h2.length <= this.suspenseDepth && h2.push(""); - h2[this.suspenseDepth] += k; + uploadFileSize += uploadFileResult.successfulUploadSize; + totalFileSize += uploadFileResult.totalSize; + if (uploadFileResult.isSuccess === false) { + failedItemsToReport.push(currentFileParameters.file); + if (!continueOnError) { + core2.error(`aborting artifact upload`); + abortPendingFileUploads = true; + } + } + this.statusReporter.incrementProcessedCount(); } - } - return h2[0]; - } finally { - Ta.current = c3, X2 = b2, Fa(); - } - }; - b.render = function(a3, b2, f2) { - if (typeof a3 === "string" || typeof a3 === "number") { - f2 = "" + a3; - if (f2 === "") - return ""; - if (this.makeStaticMarkup) - return O(f2); - if (this.previousWasTextNode) - return "" + O(f2); - this.previousWasTextNode = true; - return O(f2); - } - b2 = bb2(a3, b2, this.threadID); - a3 = b2.child; - b2 = b2.context; - if (a3 === null || a3 === false) - return ""; - if (!n2.isValidElement(a3)) { - if (a3 != null && a3.$$typeof != null) { - f2 = a3.$$typeof; - if (f2 === q2) - throw Error(p2(257)); - throw Error(p2(258, f2.toString())); - } - a3 = Z(a3); - this.stack.push({ type: null, domNamespace: f2, children: a3, childIndex: 0, context: b2, footer: "" }); - return ""; - } - var c3 = a3.type; - if (typeof c3 === "string") - return this.renderDOM(a3, b2, f2); - switch (c3) { - case la: - case ka: - case u: - case z: - case da: - case r4: - return a3 = Z(a3.props.children), this.stack.push({ - type: null, - domNamespace: f2, - children: a3, - childIndex: 0, - context: b2, - footer: "" - }), ""; - case D: - throw Error(p2(294)); - case ja: - throw Error(p2(343)); - } - if (typeof c3 === "object" && c3 !== null) - switch (c3.$$typeof) { - case ca: - P = {}; - var d2 = c3.render(a3.props, a3.ref); - d2 = Ea(c3.render, a3.props, d2, a3.ref); - d2 = Z(d2); - this.stack.push({ type: null, domNamespace: f2, children: d2, childIndex: 0, context: b2, footer: "" }); - return ""; - case ea: - return a3 = [n2.createElement(c3.type, l2({ ref: a3.ref }, a3.props))], this.stack.push({ type: null, domNamespace: f2, children: a3, childIndex: 0, context: b2, footer: "" }), ""; - case B: - return c3 = Z(a3.props.children), f2 = { type: a3, domNamespace: f2, children: c3, childIndex: 0, context: b2, footer: "" }, this.pushProvider(a3), this.stack.push(f2), ""; - case ba: - c3 = a3.type; - d2 = a3.props; - var g2 = this.threadID; - I(c3, g2); - c3 = Z(d2.children(c3[g2])); - this.stack.push({ type: a3, domNamespace: f2, children: c3, childIndex: 0, context: b2, footer: "" }); - return ""; - case ia: - throw Error(p2(338)); - case fa: - return c3 = a3.type, d2 = c3._init, c3 = d2(c3._payload), a3 = [n2.createElement(c3, l2({ ref: a3.ref }, a3.props))], this.stack.push({ - type: null, - domNamespace: f2, - children: a3, - childIndex: 0, - context: b2, - footer: "" - }), ""; - } - throw Error(p2(130, c3 == null ? c3 : typeof c3, "")); - }; - b.renderDOM = function(a3, b2, f2) { - var c3 = a3.type.toLowerCase(); - f2 === Ma.html && Na(c3); - if (!Wa.hasOwnProperty(c3)) { - if (!Va.test(c3)) - throw Error(p2(65, c3)); - Wa[c3] = true; - } - var d2 = a3.props; - if (c3 === "input") - d2 = l2({ type: void 0 }, d2, { defaultChecked: void 0, defaultValue: void 0, value: d2.value != null ? d2.value : d2.defaultValue, checked: d2.checked != null ? d2.checked : d2.defaultChecked }); - else if (c3 === "textarea") { - var g2 = d2.value; - if (g2 == null) { - g2 = d2.defaultValue; - var e3 = d2.children; - if (e3 != null) { - if (g2 != null) - throw Error(p2(92)); - if (Array.isArray(e3)) { - if (!(1 >= e3.length)) - throw Error(p2(93)); - e3 = e3[0]; + }))); + this.statusReporter.stop(); + this.uploadHttpManager.disposeAndReplaceAllClients(); + core2.info(`Total size of all the files uploaded is ${uploadFileSize} bytes`); + return { + uploadSize: uploadFileSize, + totalSize: totalFileSize, + failedItems: failedItemsToReport + }; + }); + } + uploadFileAsync(httpClientIndex, parameters) { + return __awaiter(this, void 0, void 0, function* () { + const totalFileSize = (yield stat(parameters.file)).size; + let offset = 0; + let isUploadSuccessful = true; + let failedChunkSizes = 0; + let uploadFileSize = 0; + let isGzip = true; + if (totalFileSize < 65536) { + const buffer = yield upload_gzip_1.createGZipFileInBuffer(parameters.file); + let openUploadStream; + if (totalFileSize < buffer.byteLength) { + openUploadStream = () => fs4.createReadStream(parameters.file); + isGzip = false; + uploadFileSize = totalFileSize; + } else { + openUploadStream = () => { + const passThrough = new stream.PassThrough(); + passThrough.end(buffer); + return passThrough; + }; + uploadFileSize = buffer.byteLength; + } + const result = yield this.uploadChunk(httpClientIndex, parameters.resourceUrl, openUploadStream, 0, uploadFileSize - 1, uploadFileSize, isGzip, totalFileSize); + if (!result) { + isUploadSuccessful = false; + failedChunkSizes += uploadFileSize; + core2.warning(`Aborting upload for ${parameters.file} due to failure`); + } + return { + isSuccess: isUploadSuccessful, + successfulUploadSize: uploadFileSize - failedChunkSizes, + totalSize: totalFileSize + }; + } else { + const tempFile = yield tmp.file(); + uploadFileSize = yield upload_gzip_1.createGZipFileOnDisk(parameters.file, tempFile.path); + let uploadFilePath = tempFile.path; + if (totalFileSize < uploadFileSize) { + uploadFileSize = totalFileSize; + uploadFilePath = parameters.file; + isGzip = false; + } + let abortFileUpload = false; + while (offset < uploadFileSize) { + const chunkSize = Math.min(uploadFileSize - offset, parameters.maxChunkSize); + if (uploadFileSize > 104857600) { + this.statusReporter.updateLargeFileStatus(parameters.file, offset, uploadFileSize); + } + const start2 = offset; + const end = offset + chunkSize - 1; + offset += parameters.maxChunkSize; + if (abortFileUpload) { + failedChunkSizes += chunkSize; + continue; + } + const result = yield this.uploadChunk(httpClientIndex, parameters.resourceUrl, () => fs4.createReadStream(uploadFilePath, { + start: start2, + end, + autoClose: false + }), start2, end, uploadFileSize, isGzip, totalFileSize); + if (!result) { + isUploadSuccessful = false; + failedChunkSizes += chunkSize; + core2.warning(`Aborting upload for ${parameters.file} due to failure`); + abortFileUpload = true; } - g2 = "" + e3; } - g2 == null && (g2 = ""); + yield tempFile.cleanup(); + return { + isSuccess: isUploadSuccessful, + successfulUploadSize: uploadFileSize - failedChunkSizes, + totalSize: totalFileSize + }; } - d2 = l2({}, d2, { value: void 0, children: "" + g2 }); - } else if (c3 === "select") - this.currentSelectValue = d2.value != null ? d2.value : d2.defaultValue, d2 = l2({}, d2, { value: void 0 }); - else if (c3 === "option") { - e3 = this.currentSelectValue; - var L = Ya(d2.children); - if (e3 != null) { - var G = d2.value != null ? d2.value + "" : L; - g2 = false; - if (Array.isArray(e3)) - for (var C = 0; C < e3.length; C++) { - if ("" + e3[C] === G) { - g2 = true; - break; - } + }); + } + uploadChunk(httpClientIndex, resourceUrl, openStream, start2, end, uploadFileSize, isGzip, totalFileSize) { + return __awaiter(this, void 0, void 0, function* () { + const headers = utils_1.getUploadHeaders("application/octet-stream", true, isGzip, totalFileSize, end - start2 + 1, utils_1.getContentRange(start2, end, uploadFileSize)); + const uploadChunkRequest = () => __awaiter(this, void 0, void 0, function* () { + const client = this.uploadHttpManager.getClient(httpClientIndex); + return yield client.sendStream("PUT", resourceUrl, openStream(), headers); + }); + let retryCount = 0; + const retryLimit = config_variables_1.getRetryLimit(); + const incrementAndCheckRetryLimit = (response) => { + retryCount++; + if (retryCount > retryLimit) { + if (response) { + utils_1.displayHttpDiagnostics(response); } - else - g2 = "" + e3 === G; - d2 = l2({ selected: void 0, children: void 0 }, d2, { selected: g2, children: L }); - } - } - if (g2 = d2) { - if (Pa[c3] && (g2.children != null || g2.dangerouslySetInnerHTML != null)) - throw Error(p2(137, c3)); - if (g2.dangerouslySetInnerHTML != null) { - if (g2.children != null) - throw Error(p2(60)); - if (!(typeof g2.dangerouslySetInnerHTML === "object" && "__html" in g2.dangerouslySetInnerHTML)) - throw Error(p2(61)); - } - if (g2.style != null && typeof g2.style !== "object") - throw Error(p2(62)); - } - g2 = d2; - e3 = this.makeStaticMarkup; - L = this.stack.length === 1; - G = "<" + a3.type; - b: - if (c3.indexOf("-") === -1) - C = typeof g2.is === "string"; - else - switch (c3) { - case "annotation-xml": - case "color-profile": - case "font-face": - case "font-face-src": - case "font-face-uri": - case "font-face-format": - case "font-face-name": - case "missing-glyph": - C = false; - break b; - default: - C = true; + core2.info(`Retry limit has been reached for chunk at offset ${start2} to ${resourceUrl}`); + return true; } - for (w2 in g2) - if (Za.call(g2, w2)) { - var m4 = g2[w2]; - if (m4 != null) { - if (w2 === "style") { - var k = void 0, v2 = "", H = ""; - for (k in m4) - if (m4.hasOwnProperty(k)) { - var x2 = k.indexOf("--") === 0, y3 = m4[k]; - if (y3 != null) { - if (x2) - var A = k; - else if (A = k, Xa.hasOwnProperty(A)) - A = Xa[A]; - else { - var eb2 = A.replace(Ra, "-$1").toLowerCase().replace(Sa, "-ms-"); - A = Xa[A] = eb2; - } - v2 += H + A + ":"; - H = k; - x2 = y3 == null || typeof y3 === "boolean" || y3 === "" ? "" : x2 || typeof y3 !== "number" || y3 === 0 || Y2.hasOwnProperty(H) && Y2[H] ? ("" + y3).trim() : y3 + "px"; - v2 += x2; - H = ";"; - } - } - m4 = v2 || null; + return false; + }; + const backOff = (retryAfterValue) => __awaiter(this, void 0, void 0, function* () { + this.uploadHttpManager.disposeAndReplaceClient(httpClientIndex); + if (retryAfterValue) { + core2.info(`Backoff due to too many requests, retry #${retryCount}. Waiting for ${retryAfterValue} milliseconds before continuing the upload`); + yield utils_1.sleep(retryAfterValue); + } else { + const backoffTime = utils_1.getExponentialRetryTimeInMilliseconds(retryCount); + core2.info(`Exponential backoff for retry #${retryCount}. Waiting for ${backoffTime} milliseconds before continuing the upload at offset ${start2}`); + yield utils_1.sleep(backoffTime); + } + core2.info(`Finished backoff for retry #${retryCount}, continuing with upload`); + return; + }); + while (retryCount <= retryLimit) { + let response; + try { + response = yield uploadChunkRequest(); + } catch (error) { + core2.info(`An error has been caught http-client index ${httpClientIndex}, retrying the upload`); + console.log(error); + if (incrementAndCheckRetryLimit()) { + return false; } - k = null; - C ? $a.hasOwnProperty(w2) || (k = w2, k = ta(k) && m4 != null ? k + '="' + (O(m4) + '"') : "") : k = za(w2, m4); - k && (G += " " + k); + yield backOff(); + continue; } - } - e3 || L && (G += ' data-reactroot=""'); - var w2 = G; - g2 = ""; - Oa.hasOwnProperty(c3) ? w2 += "/>" : (w2 += ">", g2 = ""); - a: { - e3 = d2.dangerouslySetInnerHTML; - if (e3 != null) { - if (e3.__html != null) { - e3 = e3.__html; - break a; + yield response.readBody(); + if (utils_1.isSuccessStatusCode(response.message.statusCode)) { + return true; + } else if (utils_1.isRetryableStatusCode(response.message.statusCode)) { + core2.info(`A ${response.message.statusCode} status code has been received, will attempt to retry the upload`); + if (incrementAndCheckRetryLimit(response)) { + return false; + } + utils_1.isThrottledStatusCode(response.message.statusCode) ? yield backOff(utils_1.tryGetRetryAfterValueTimeInMilliseconds(response.message.headers)) : yield backOff(); + } else { + core2.error(`Unexpected response. Unable to upload chunk to ${resourceUrl}`); + utils_1.displayHttpDiagnostics(response); + return false; } - } else if (e3 = d2.children, typeof e3 === "string" || typeof e3 === "number") { - e3 = O(e3); - break a; } - e3 = null; - } - e3 != null ? (d2 = [], Ua.hasOwnProperty(c3) && e3.charAt(0) === "\n" && (w2 += "\n"), w2 += e3) : d2 = Z(d2.children); - a3 = a3.type; - f2 = f2 == null || f2 === "http://www.w3.org/1999/xhtml" ? Na(a3) : f2 === "http://www.w3.org/2000/svg" && a3 === "foreignObject" ? "http://www.w3.org/1999/xhtml" : f2; - this.stack.push({ domNamespace: f2, type: c3, children: d2, childIndex: 0, context: b2, footer: g2 }); - this.previousWasTextNode = false; - return w2; - }; - return a2; - }(); - function db(a2, b) { - a2.prototype = Object.create(b.prototype); - a2.prototype.constructor = a2; - a2.__proto__ = b; - } - var fb = function(a2) { - function b(b2, c4, h2) { - var d2 = a2.call(this, {}) || this; - d2.partialRenderer = new cb(b2, c4, h2); - return d2; + return false; + }); } - db(b, a2); - var c3 = b.prototype; - c3._destroy = function(a3, b2) { - this.partialRenderer.destroy(); - b2(a3); - }; - c3._read = function(a3) { - try { - this.push(this.partialRenderer.read(a3)); - } catch (f2) { - this.destroy(f2); + patchArtifactSize(size, artifactName) { + return __awaiter(this, void 0, void 0, function* () { + const resourceUrl = new url_1.URL(utils_1.getArtifactUrl()); + resourceUrl.searchParams.append("artifactName", artifactName); + const parameters = { Size: size }; + const data = JSON.stringify(parameters, null, 2); + core2.debug(`URL is ${resourceUrl.toString()}`); + const client = this.uploadHttpManager.getClient(0); + const headers = utils_1.getUploadHeaders("application/json", false); + const customErrorMessages = new Map([ + [ + http_client_1.HttpCodes.NotFound, + `An Artifact with the name ${artifactName} was not found` + ] + ]); + const response = yield requestUtils_1.retryHttpClientRequest("Finalize artifact upload", () => __awaiter(this, void 0, void 0, function* () { + return client.patch(resourceUrl.toString(), data, headers); + }), customErrorMessages); + yield response.readBody(); + core2.debug(`Artifact ${artifactName} has been successfully uploaded, total size in bytes: ${size}`); + }); + } + }; + exports2.UploadHttpClient = UploadHttpClient; + } +}); + +// node_modules/@actions/artifact/lib/internal/download-http-client.js +var require_download_http_client = __commonJS({ + "node_modules/@actions/artifact/lib/internal/download-http-client.js"(exports2) { + "use strict"; + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); + } } - }; - return b; - }(aa.Readable); - exports2.renderToNodeStream = function(a2, b) { - return new fb(a2, false, b); + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); }; - exports2.renderToStaticMarkup = function(a2, b) { - a2 = new cb(a2, true, b); - try { - return a2.read(Infinity); - } finally { - a2.destroy(); + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (Object.hasOwnProperty.call(mod2, k)) + result[k] = mod2[k]; } + result["default"] = mod2; + return result; }; - exports2.renderToStaticNodeStream = function(a2, b) { - return new fb(a2, true, b); + Object.defineProperty(exports2, "__esModule", { value: true }); + var fs4 = __importStar(require("fs")); + var core2 = __importStar(require_core2()); + var zlib = __importStar(require("zlib")); + var utils_1 = require_utils3(); + var url_1 = require("url"); + var status_reporter_1 = require_status_reporter(); + var perf_hooks_1 = require("perf_hooks"); + var http_manager_1 = require_http_manager(); + var config_variables_1 = require_config_variables(); + var requestUtils_1 = require_requestUtils(); + var DownloadHttpClient = class { + constructor() { + this.downloadHttpManager = new http_manager_1.HttpManager(config_variables_1.getDownloadFileConcurrency(), "@actions/artifact-download"); + this.statusReporter = new status_reporter_1.StatusReporter(1e3); + } + listArtifacts() { + return __awaiter(this, void 0, void 0, function* () { + const artifactUrl = utils_1.getArtifactUrl(); + const client = this.downloadHttpManager.getClient(0); + const headers = utils_1.getDownloadHeaders("application/json"); + const response = yield requestUtils_1.retryHttpClientRequest("List Artifacts", () => __awaiter(this, void 0, void 0, function* () { + return client.get(artifactUrl, headers); + })); + const body = yield response.readBody(); + return JSON.parse(body); + }); + } + getContainerItems(artifactName, containerUrl) { + return __awaiter(this, void 0, void 0, function* () { + const resourceUrl = new url_1.URL(containerUrl); + resourceUrl.searchParams.append("itemPath", artifactName); + const client = this.downloadHttpManager.getClient(0); + const headers = utils_1.getDownloadHeaders("application/json"); + const response = yield requestUtils_1.retryHttpClientRequest("Get Container Items", () => __awaiter(this, void 0, void 0, function* () { + return client.get(resourceUrl.toString(), headers); + })); + const body = yield response.readBody(); + return JSON.parse(body); + }); + } + downloadSingleArtifact(downloadItems) { + return __awaiter(this, void 0, void 0, function* () { + const DOWNLOAD_CONCURRENCY = config_variables_1.getDownloadFileConcurrency(); + core2.debug(`Download file concurrency is set to ${DOWNLOAD_CONCURRENCY}`); + const parallelDownloads = [...new Array(DOWNLOAD_CONCURRENCY).keys()]; + let currentFile = 0; + let downloadedFiles = 0; + core2.info(`Total number of files that will be downloaded: ${downloadItems.length}`); + this.statusReporter.setTotalNumberOfFilesToProcess(downloadItems.length); + this.statusReporter.start(); + yield Promise.all(parallelDownloads.map((index) => __awaiter(this, void 0, void 0, function* () { + while (currentFile < downloadItems.length) { + const currentFileToDownload = downloadItems[currentFile]; + currentFile += 1; + const startTime = perf_hooks_1.performance.now(); + yield this.downloadIndividualFile(index, currentFileToDownload.sourceLocation, currentFileToDownload.targetPath); + if (core2.isDebug()) { + core2.debug(`File: ${++downloadedFiles}/${downloadItems.length}. ${currentFileToDownload.targetPath} took ${(perf_hooks_1.performance.now() - startTime).toFixed(3)} milliseconds to finish downloading`); + } + this.statusReporter.incrementProcessedCount(); + } + }))).catch((error) => { + throw new Error(`Unable to download the artifact: ${error}`); + }).finally(() => { + this.statusReporter.stop(); + this.downloadHttpManager.disposeAndReplaceAllClients(); + }); + }); + } + downloadIndividualFile(httpClientIndex, artifactLocation, downloadPath) { + return __awaiter(this, void 0, void 0, function* () { + let retryCount = 0; + const retryLimit = config_variables_1.getRetryLimit(); + let destinationStream = fs4.createWriteStream(downloadPath); + const headers = utils_1.getDownloadHeaders("application/json", true, true); + const makeDownloadRequest = () => __awaiter(this, void 0, void 0, function* () { + const client = this.downloadHttpManager.getClient(httpClientIndex); + return yield client.get(artifactLocation, headers); + }); + const isGzip = (incomingHeaders) => { + return "content-encoding" in incomingHeaders && incomingHeaders["content-encoding"] === "gzip"; + }; + const backOff = (retryAfterValue) => __awaiter(this, void 0, void 0, function* () { + retryCount++; + if (retryCount > retryLimit) { + return Promise.reject(new Error(`Retry limit has been reached. Unable to download ${artifactLocation}`)); + } else { + this.downloadHttpManager.disposeAndReplaceClient(httpClientIndex); + if (retryAfterValue) { + core2.info(`Backoff due to too many requests, retry #${retryCount}. Waiting for ${retryAfterValue} milliseconds before continuing the download`); + yield utils_1.sleep(retryAfterValue); + } else { + const backoffTime = utils_1.getExponentialRetryTimeInMilliseconds(retryCount); + core2.info(`Exponential backoff for retry #${retryCount}. Waiting for ${backoffTime} milliseconds before continuing the download`); + yield utils_1.sleep(backoffTime); + } + core2.info(`Finished backoff for retry #${retryCount}, continuing with download`); + } + }); + const isAllBytesReceived = (expected, received) => { + if (!expected || !received || process.env["ACTIONS_ARTIFACT_SKIP_DOWNLOAD_VALIDATION"]) { + core2.info("Skipping download validation."); + return true; + } + return parseInt(expected) === received; + }; + const resetDestinationStream = (fileDownloadPath) => __awaiter(this, void 0, void 0, function* () { + destinationStream.close(); + yield utils_1.rmFile(fileDownloadPath); + destinationStream = fs4.createWriteStream(fileDownloadPath); + }); + while (retryCount <= retryLimit) { + let response; + try { + response = yield makeDownloadRequest(); + if (core2.isDebug()) { + utils_1.displayHttpDiagnostics(response); + } + } catch (error) { + core2.info("An error occurred while attempting to download a file"); + console.log(error); + yield backOff(); + continue; + } + let forceRetry = false; + if (utils_1.isSuccessStatusCode(response.message.statusCode)) { + try { + const isGzipped = isGzip(response.message.headers); + yield this.pipeResponseToFile(response, destinationStream, isGzipped); + if (isGzipped || isAllBytesReceived(response.message.headers["content-length"], yield utils_1.getFileSize(downloadPath))) { + return; + } else { + forceRetry = true; + } + } catch (error) { + forceRetry = true; + } + } + if (forceRetry || utils_1.isRetryableStatusCode(response.message.statusCode)) { + core2.info(`A ${response.message.statusCode} response code has been received while attempting to download an artifact`); + resetDestinationStream(downloadPath); + utils_1.isThrottledStatusCode(response.message.statusCode) ? yield backOff(utils_1.tryGetRetryAfterValueTimeInMilliseconds(response.message.headers)) : yield backOff(); + } else { + utils_1.displayHttpDiagnostics(response); + return Promise.reject(new Error(`Unexpected http ${response.message.statusCode} during download for ${artifactLocation}`)); + } + } + }); + } + pipeResponseToFile(response, destinationStream, isGzip) { + return __awaiter(this, void 0, void 0, function* () { + yield new Promise((resolve, reject) => { + if (isGzip) { + const gunzip = zlib.createGunzip(); + response.message.on("error", (error) => { + core2.error(`An error occurred while attempting to read the response stream`); + gunzip.close(); + destinationStream.close(); + reject(error); + }).pipe(gunzip).on("error", (error) => { + core2.error(`An error occurred while attempting to decompress the response stream`); + destinationStream.close(); + reject(error); + }).pipe(destinationStream).on("close", () => { + resolve(); + }).on("error", (error) => { + core2.error(`An error occurred while writing a downloaded file to ${destinationStream.path}`); + reject(error); + }); + } else { + response.message.on("error", (error) => { + core2.error(`An error occurred while attempting to read the response stream`); + destinationStream.close(); + reject(error); + }).pipe(destinationStream).on("close", () => { + resolve(); + }).on("error", (error) => { + core2.error(`An error occurred while writing a downloaded file to ${destinationStream.path}`); + reject(error); + }); + } + }); + return; + }); + } }; - exports2.renderToString = function(a2, b) { - a2 = new cb(a2, false, b); - try { - return a2.read(Infinity); - } finally { - a2.destroy(); + exports2.DownloadHttpClient = DownloadHttpClient; + } +}); + +// node_modules/@actions/artifact/lib/internal/download-specification.js +var require_download_specification = __commonJS({ + "node_modules/@actions/artifact/lib/internal/download-specification.js"(exports2) { + "use strict"; + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (Object.hasOwnProperty.call(mod2, k)) + result[k] = mod2[k]; } + result["default"] = mod2; + return result; }; - exports2.version = "17.0.2"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var path = __importStar(require("path")); + function getDownloadSpecification(artifactName, artifactEntries, downloadPath, includeRootDirectory) { + const directories = new Set(); + const specifications = { + rootDownloadLocation: includeRootDirectory ? path.join(downloadPath, artifactName) : downloadPath, + directoryStructure: [], + emptyFilesToCreate: [], + filesToDownload: [] + }; + for (const entry of artifactEntries) { + if (entry.path.startsWith(`${artifactName}/`) || entry.path.startsWith(`${artifactName}\\`)) { + const normalizedPathEntry = path.normalize(entry.path); + const filePath = path.join(downloadPath, includeRootDirectory ? normalizedPathEntry : normalizedPathEntry.replace(artifactName, "")); + if (entry.itemType === "file") { + directories.add(path.dirname(filePath)); + if (entry.fileLength === 0) { + specifications.emptyFilesToCreate.push(filePath); + } else { + specifications.filesToDownload.push({ + sourceLocation: entry.contentLocation, + targetPath: filePath + }); + } + } + } + } + specifications.directoryStructure = Array.from(directories); + return specifications; + } + exports2.getDownloadSpecification = getDownloadSpecification; } }); -// node_modules/react-dom/cjs/react-dom-server.node.development.js -var require_react_dom_server_node_development = __commonJS({ - "node_modules/react-dom/cjs/react-dom-server.node.development.js"(exports2) { +// node_modules/@actions/artifact/lib/internal/artifact-client.js +var require_artifact_client = __commonJS({ + "node_modules/@actions/artifact/lib/internal/artifact-client.js"(exports2) { "use strict"; - if (process.env.NODE_ENV !== "production") { - (function() { - "use strict"; - var React4 = require_react(); - var _assign = require_object_assign(); - var stream = require("stream"); - var ReactVersion = "17.0.2"; - function formatProdErrorMessage(code) { - var url = "https://reactjs.org/docs/error-decoder.html?invariant=" + code; - for (var i2 = 1; i2 < arguments.length; i2++) { - url += "&args[]=" + encodeURIComponent(arguments[i2]); + var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e3) { + reject(e3); } - return "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } - var ReactSharedInternals = React4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - function warn(format2) { - { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - printWarning("warn", format2, args); + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e3) { + reject(e3); } } - function error(format2) { - { - for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + var __importStar = exports2 && exports2.__importStar || function(mod2) { + if (mod2 && mod2.__esModule) + return mod2; + var result = {}; + if (mod2 != null) { + for (var k in mod2) + if (Object.hasOwnProperty.call(mod2, k)) + result[k] = mod2[k]; + } + result["default"] = mod2; + return result; + }; + Object.defineProperty(exports2, "__esModule", { value: true }); + var core2 = __importStar(require_core2()); + var upload_specification_1 = require_upload_specification(); + var upload_http_client_1 = require_upload_http_client(); + var utils_1 = require_utils3(); + var download_http_client_1 = require_download_http_client(); + var download_specification_1 = require_download_specification(); + var config_variables_1 = require_config_variables(); + var path_1 = require("path"); + var DefaultArtifactClient = class { + static create() { + return new DefaultArtifactClient(); + } + uploadArtifact(name, files, rootDirectory, options) { + return __awaiter(this, void 0, void 0, function* () { + utils_1.checkArtifactName(name); + const uploadSpecification = upload_specification_1.getUploadSpecification(name, rootDirectory, files); + const uploadResponse = { + artifactName: name, + artifactItems: [], + size: 0, + failedItems: [] + }; + const uploadHttpClient = new upload_http_client_1.UploadHttpClient(); + if (uploadSpecification.length === 0) { + core2.warning(`No files found that can be uploaded`); + } else { + const response = yield uploadHttpClient.createArtifactInFileContainer(name, options); + if (!response.fileContainerResourceUrl) { + core2.debug(response.toString()); + throw new Error("No URL provided by the Artifact Service to upload an artifact to"); } - printWarning("error", format2, args); + core2.debug(`Upload Resource URL: ${response.fileContainerResourceUrl}`); + const uploadResult = yield uploadHttpClient.uploadArtifactToFileContainer(response.fileContainerResourceUrl, uploadSpecification, options); + yield uploadHttpClient.patchArtifactSize(uploadResult.totalSize, name); + core2.info(`Finished uploading artifact ${name}. Reported size is ${uploadResult.uploadSize} bytes. There were ${uploadResult.failedItems.length} items that failed to upload`); + uploadResponse.artifactItems = uploadSpecification.map((item) => item.absoluteFilePath); + uploadResponse.size = uploadResult.uploadSize; + uploadResponse.failedItems = uploadResult.failedItems; + } + return uploadResponse; + }); + } + downloadArtifact(name, path, options) { + return __awaiter(this, void 0, void 0, function* () { + const downloadHttpClient = new download_http_client_1.DownloadHttpClient(); + const artifacts = yield downloadHttpClient.listArtifacts(); + if (artifacts.count === 0) { + throw new Error(`Unable to find any artifacts for the associated workflow`); } - } - function printWarning(level, format2, args) { - { - var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame; - var stack = ReactDebugCurrentFrame2.getStackAddendum(); - if (stack !== "") { - format2 += "%s"; - args = args.concat([stack]); + const artifactToDownload = artifacts.value.find((artifact2) => { + return artifact2.name === name; + }); + if (!artifactToDownload) { + throw new Error(`Unable to find an artifact with the name: ${name}`); + } + const items = yield downloadHttpClient.getContainerItems(artifactToDownload.name, artifactToDownload.fileContainerResourceUrl); + if (!path) { + path = config_variables_1.getWorkSpaceDirectory(); + } + path = path_1.normalize(path); + path = path_1.resolve(path); + const downloadSpecification = download_specification_1.getDownloadSpecification(name, items.value, path, (options === null || options === void 0 ? void 0 : options.createArtifactFolder) || false); + if (downloadSpecification.filesToDownload.length === 0) { + core2.info(`No downloadable files were found for the artifact: ${artifactToDownload.name}`); + } else { + yield utils_1.createDirectoriesForArtifact(downloadSpecification.directoryStructure); + core2.info("Directory structure has been setup for the artifact"); + yield utils_1.createEmptyFilesForArtifact(downloadSpecification.emptyFilesToCreate); + yield downloadHttpClient.downloadSingleArtifact(downloadSpecification.filesToDownload); + } + return { + artifactName: name, + downloadPath: downloadSpecification.rootDownloadLocation + }; + }); + } + downloadAllArtifacts(path) { + return __awaiter(this, void 0, void 0, function* () { + const downloadHttpClient = new download_http_client_1.DownloadHttpClient(); + const response = []; + const artifacts = yield downloadHttpClient.listArtifacts(); + if (artifacts.count === 0) { + core2.info("Unable to find any artifacts for the associated workflow"); + return response; + } + if (!path) { + path = config_variables_1.getWorkSpaceDirectory(); + } + path = path_1.normalize(path); + path = path_1.resolve(path); + let downloadedArtifacts = 0; + while (downloadedArtifacts < artifacts.count) { + const currentArtifactToDownload = artifacts.value[downloadedArtifacts]; + downloadedArtifacts += 1; + const items = yield downloadHttpClient.getContainerItems(currentArtifactToDownload.name, currentArtifactToDownload.fileContainerResourceUrl); + const downloadSpecification = download_specification_1.getDownloadSpecification(currentArtifactToDownload.name, items.value, path, true); + if (downloadSpecification.filesToDownload.length === 0) { + core2.info(`No downloadable files were found for any artifact ${currentArtifactToDownload.name}`); + } else { + yield utils_1.createDirectoriesForArtifact(downloadSpecification.directoryStructure); + yield utils_1.createEmptyFilesForArtifact(downloadSpecification.emptyFilesToCreate); + yield downloadHttpClient.downloadSingleArtifact(downloadSpecification.filesToDownload); } - var argsWithFormat = args.map(function(item) { - return "" + item; + response.push({ + artifactName: currentArtifactToDownload.name, + downloadPath: downloadSpecification.rootDownloadLocation }); - argsWithFormat.unshift("Warning: " + format2); - Function.prototype.apply.call(console[level], console, argsWithFormat); } + return response; + }); + } + }; + exports2.DefaultArtifactClient = DefaultArtifactClient; + } +}); + +// node_modules/@actions/artifact/lib/artifact-client.js +var require_artifact_client2 = __commonJS({ + "node_modules/@actions/artifact/lib/artifact-client.js"(exports2) { + "use strict"; + Object.defineProperty(exports2, "__esModule", { value: true }); + var artifact_client_1 = require_artifact_client(); + function create3() { + return artifact_client_1.DefaultArtifactClient.create(); + } + exports2.create = create3; + } +}); + +// node_modules/object-assign/index.js +var require_object_assign = __commonJS({ + "node_modules/object-assign/index.js"(exports2, module2) { + "use strict"; + var getOwnPropertySymbols = Object.getOwnPropertySymbols; + var hasOwnProperty = Object.prototype.hasOwnProperty; + var propIsEnumerable = Object.prototype.propertyIsEnumerable; + function toObject(val) { + if (val === null || val === void 0) { + throw new TypeError("Object.assign cannot be called with null or undefined"); + } + return Object(val); + } + function shouldUseNative() { + try { + if (!Object.assign) { + return false; } - var REACT_ELEMENT_TYPE = 60103; - var REACT_PORTAL_TYPE = 60106; - var REACT_FRAGMENT_TYPE = 60107; - var REACT_STRICT_MODE_TYPE = 60108; - var REACT_PROFILER_TYPE = 60114; - var REACT_PROVIDER_TYPE = 60109; - var REACT_CONTEXT_TYPE = 60110; - var REACT_FORWARD_REF_TYPE = 60112; - var REACT_SUSPENSE_TYPE = 60113; - var REACT_SUSPENSE_LIST_TYPE = 60120; - var REACT_MEMO_TYPE = 60115; - var REACT_LAZY_TYPE = 60116; - var REACT_BLOCK_TYPE = 60121; - var REACT_SERVER_BLOCK_TYPE = 60122; - var REACT_FUNDAMENTAL_TYPE = 60117; - var REACT_SCOPE_TYPE = 60119; - var REACT_OPAQUE_ID_TYPE = 60128; - var REACT_DEBUG_TRACING_MODE_TYPE = 60129; - var REACT_OFFSCREEN_TYPE = 60130; - var REACT_LEGACY_HIDDEN_TYPE = 60131; - if (typeof Symbol === "function" && Symbol.for) { - var symbolFor = Symbol.for; - REACT_ELEMENT_TYPE = symbolFor("react.element"); - REACT_PORTAL_TYPE = symbolFor("react.portal"); - REACT_FRAGMENT_TYPE = symbolFor("react.fragment"); - REACT_STRICT_MODE_TYPE = symbolFor("react.strict_mode"); - REACT_PROFILER_TYPE = symbolFor("react.profiler"); - REACT_PROVIDER_TYPE = symbolFor("react.provider"); - REACT_CONTEXT_TYPE = symbolFor("react.context"); - REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref"); - REACT_SUSPENSE_TYPE = symbolFor("react.suspense"); - REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list"); - REACT_MEMO_TYPE = symbolFor("react.memo"); - REACT_LAZY_TYPE = symbolFor("react.lazy"); - REACT_BLOCK_TYPE = symbolFor("react.block"); - REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block"); - REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental"); - REACT_SCOPE_TYPE = symbolFor("react.scope"); - REACT_OPAQUE_ID_TYPE = symbolFor("react.opaque.id"); - REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode"); - REACT_OFFSCREEN_TYPE = symbolFor("react.offscreen"); - REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden"); - } - function getWrappedName(outerType, innerType, wrapperName) { - var functionName = innerType.displayName || innerType.name || ""; - return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName); - } - function getContextName(type2) { - return type2.displayName || "Context"; + var test1 = new String("abc"); + test1[5] = "de"; + if (Object.getOwnPropertyNames(test1)[0] === "5") { + return false; } - function getComponentName(type2) { - if (type2 == null) { - return null; - } - { - if (typeof type2.tag === "number") { - error("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."); - } - } - if (typeof type2 === "function") { - return type2.displayName || type2.name || null; - } - if (typeof type2 === "string") { - return type2; - } - switch (type2) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - } - if (typeof type2 === "object") { - switch (type2.$$typeof) { - case REACT_CONTEXT_TYPE: - var context = type2; - return getContextName(context) + ".Consumer"; - case REACT_PROVIDER_TYPE: - var provider = type2; - return getContextName(provider._context) + ".Provider"; - case REACT_FORWARD_REF_TYPE: - return getWrappedName(type2, type2.render, "ForwardRef"); - case REACT_MEMO_TYPE: - return getComponentName(type2.type); - case REACT_BLOCK_TYPE: - return getComponentName(type2._render); - case REACT_LAZY_TYPE: { - var lazyComponent = type2; - var payload = lazyComponent._payload; - var init2 = lazyComponent._init; - try { - return getComponentName(init2(payload)); - } catch (x2) { - return null; - } - } - } - } - return null; + var test2 = {}; + for (var i = 0; i < 10; i++) { + test2["_" + String.fromCharCode(i)] = i; } - var enableSuspenseServerRenderer = false; - var disabledDepth = 0; - var prevLog; - var prevInfo; - var prevWarn; - var prevError; - var prevGroup; - var prevGroupCollapsed; - var prevGroupEnd; - function disabledLog() { + var order2 = Object.getOwnPropertyNames(test2).map(function(n2) { + return test2[n2]; + }); + if (order2.join("") !== "0123456789") { + return false; } - disabledLog.__reactDisabledLog = true; - function disableLogs() { - { - if (disabledDepth === 0) { - prevLog = console.log; - prevInfo = console.info; - prevWarn = console.warn; - prevError = console.error; - prevGroup = console.group; - prevGroupCollapsed = console.groupCollapsed; - prevGroupEnd = console.groupEnd; - var props2 = { - configurable: true, - enumerable: true, - value: disabledLog, - writable: true - }; - Object.defineProperties(console, { - info: props2, - log: props2, - warn: props2, - error: props2, - group: props2, - groupCollapsed: props2, - groupEnd: props2 - }); - } - disabledDepth++; - } + var test3 = {}; + "abcdefghijklmnopqrst".split("").forEach(function(letter) { + test3[letter] = letter; + }); + if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") { + return false; } - function reenableLogs() { - { - disabledDepth--; - if (disabledDepth === 0) { - var props2 = { - configurable: true, - enumerable: true, - writable: true - }; - Object.defineProperties(console, { - log: _assign({}, props2, { - value: prevLog - }), - info: _assign({}, props2, { - value: prevInfo - }), - warn: _assign({}, props2, { - value: prevWarn - }), - error: _assign({}, props2, { - value: prevError - }), - group: _assign({}, props2, { - value: prevGroup - }), - groupCollapsed: _assign({}, props2, { - value: prevGroupCollapsed - }), - groupEnd: _assign({}, props2, { - value: prevGroupEnd - }) - }); - } - if (disabledDepth < 0) { - error("disabledDepth fell below zero. This is a bug in React. Please file an issue."); - } + return true; + } catch (err) { + return false; + } + } + module2.exports = shouldUseNative() ? Object.assign : function(target, source) { + var from; + var to = toObject(target); + var symbols; + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]); + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key]; } } - var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; - var prefix; - function describeBuiltInComponentFrame(name, source, ownerFn) { - { - if (prefix === void 0) { - try { - throw Error(); - } catch (x2) { - var match = x2.stack.trim().match(/\n( *(at )?)/); - prefix = match && match[1] || ""; - } + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]]; } - return "\n" + prefix + name; } } - var reentry = false; - var componentFrameCache; - { - var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; - componentFrameCache = new PossiblyWeakMap(); - } - function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) { - return ""; - } - { - var frame2 = componentFrameCache.get(fn); - if (frame2 !== void 0) { - return frame2; - } - } - var control; - reentry = true; - var previousPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var previousDispatcher; - { - previousDispatcher = ReactCurrentDispatcher.current; - ReactCurrentDispatcher.current = null; - disableLogs(); - } - try { - if (construct) { - var Fake = function() { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function() { - throw Error(); - } - }); - if (typeof Reflect === "object" && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x2) { - control = x2; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x2) { - control = x2; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x2) { - control = x2; - } - fn(); - } - } catch (sample) { - if (sample && control && typeof sample.stack === "string") { - var sampleLines = sample.stack.split("\n"); - var controlLines = control.stack.split("\n"); - var s = sampleLines.length - 1; - var c3 = controlLines.length - 1; - while (s >= 1 && c3 >= 0 && sampleLines[s] !== controlLines[c3]) { - c3--; - } - for (; s >= 1 && c3 >= 0; s--, c3--) { - if (sampleLines[s] !== controlLines[c3]) { - if (s !== 1 || c3 !== 1) { - do { - s--; - c3--; - if (c3 < 0 || sampleLines[s] !== controlLines[c3]) { - var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); - { - if (typeof fn === "function") { - componentFrameCache.set(fn, _frame); - } - } - return _frame; - } - } while (s >= 1 && c3 >= 0); - } - break; - } - } - } - } finally { - reentry = false; - { - ReactCurrentDispatcher.current = previousDispatcher; - reenableLogs(); - } - Error.prepareStackTrace = previousPrepareStackTrace; - } - var name = fn ? fn.displayName || fn.name : ""; - var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ""; - { - if (typeof fn === "function") { - componentFrameCache.set(fn, syntheticFrame); + } + return to; + }; + } +}); + +// node_modules/react/cjs/react.production.min.js +var require_react_production_min = __commonJS({ + "node_modules/react/cjs/react.production.min.js"(exports2) { + "use strict"; + var l2 = require_object_assign(); + var n2 = 60103; + var p2 = 60106; + exports2.Fragment = 60107; + exports2.StrictMode = 60108; + exports2.Profiler = 60114; + var q2 = 60109; + var r4 = 60110; + var t2 = 60112; + exports2.Suspense = 60113; + var u = 60115; + var v2 = 60116; + if (typeof Symbol === "function" && Symbol.for) { + w2 = Symbol.for; + n2 = w2("react.element"); + p2 = w2("react.portal"); + exports2.Fragment = w2("react.fragment"); + exports2.StrictMode = w2("react.strict_mode"); + exports2.Profiler = w2("react.profiler"); + q2 = w2("react.provider"); + r4 = w2("react.context"); + t2 = w2("react.forward_ref"); + exports2.Suspense = w2("react.suspense"); + u = w2("react.memo"); + v2 = w2("react.lazy"); + } + var w2; + var x2 = typeof Symbol === "function" && Symbol.iterator; + function y3(a2) { + if (a2 === null || typeof a2 !== "object") + return null; + a2 = x2 && a2[x2] || a2["@@iterator"]; + return typeof a2 === "function" ? a2 : null; + } + function z(a2) { + for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a2, c3 = 1; c3 < arguments.length; c3++) + b += "&args[]=" + encodeURIComponent(arguments[c3]); + return "Minified React error #" + a2 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + } + var A = { isMounted: function() { + return false; + }, enqueueForceUpdate: function() { + }, enqueueReplaceState: function() { + }, enqueueSetState: function() { + } }; + var B = {}; + function C(a2, b, c3) { + this.props = a2; + this.context = b; + this.refs = B; + this.updater = c3 || A; + } + C.prototype.isReactComponent = {}; + C.prototype.setState = function(a2, b) { + if (typeof a2 !== "object" && typeof a2 !== "function" && a2 != null) + throw Error(z(85)); + this.updater.enqueueSetState(this, a2, b, "setState"); + }; + C.prototype.forceUpdate = function(a2) { + this.updater.enqueueForceUpdate(this, a2, "forceUpdate"); + }; + function D() { + } + D.prototype = C.prototype; + function E2(a2, b, c3) { + this.props = a2; + this.context = b; + this.refs = B; + this.updater = c3 || A; + } + var F = E2.prototype = new D(); + F.constructor = E2; + l2(F, C.prototype); + F.isPureReactComponent = true; + var G = { current: null }; + var H = Object.prototype.hasOwnProperty; + var I = { key: true, ref: true, __self: true, __source: true }; + function J(a2, b, c3) { + var e3, d2 = {}, k = null, h2 = null; + if (b != null) + for (e3 in b.ref !== void 0 && (h2 = b.ref), b.key !== void 0 && (k = "" + b.key), b) + H.call(b, e3) && !I.hasOwnProperty(e3) && (d2[e3] = b[e3]); + var g2 = arguments.length - 2; + if (g2 === 1) + d2.children = c3; + else if (1 < g2) { + for (var f2 = Array(g2), m4 = 0; m4 < g2; m4++) + f2[m4] = arguments[m4 + 2]; + d2.children = f2; + } + if (a2 && a2.defaultProps) + for (e3 in g2 = a2.defaultProps, g2) + d2[e3] === void 0 && (d2[e3] = g2[e3]); + return { $$typeof: n2, type: a2, key: k, ref: h2, props: d2, _owner: G.current }; + } + function K(a2, b) { + return { $$typeof: n2, type: a2.type, key: b, ref: a2.ref, props: a2.props, _owner: a2._owner }; + } + function L(a2) { + return typeof a2 === "object" && a2 !== null && a2.$$typeof === n2; + } + function escape(a2) { + var b = { "=": "=0", ":": "=2" }; + return "$" + a2.replace(/[=:]/g, function(a3) { + return b[a3]; + }); + } + var M = /\/+/g; + function N(a2, b) { + return typeof a2 === "object" && a2 !== null && a2.key != null ? escape("" + a2.key) : b.toString(36); + } + function O(a2, b, c3, e3, d2) { + var k = typeof a2; + if (k === "undefined" || k === "boolean") + a2 = null; + var h2 = false; + if (a2 === null) + h2 = true; + else + switch (k) { + case "string": + case "number": + h2 = true; + break; + case "object": + switch (a2.$$typeof) { + case n2: + case p2: + h2 = true; } - } - return syntheticFrame; - } - function describeFunctionComponentFrame(fn, source, ownerFn) { - { - return describeNativeComponentFrame(fn, false); - } } - function shouldConstruct(Component) { - var prototype = Component.prototype; - return !!(prototype && prototype.isReactComponent); + if (h2) + return h2 = a2, d2 = d2(h2), a2 = e3 === "" ? "." + N(h2, 0) : e3, Array.isArray(d2) ? (c3 = "", a2 != null && (c3 = a2.replace(M, "$&/") + "/"), O(d2, b, c3, "", function(a3) { + return a3; + })) : d2 != null && (L(d2) && (d2 = K(d2, c3 + (!d2.key || h2 && h2.key === d2.key ? "" : ("" + d2.key).replace(M, "$&/") + "/") + a2)), b.push(d2)), 1; + h2 = 0; + e3 = e3 === "" ? "." : e3 + ":"; + if (Array.isArray(a2)) + for (var g2 = 0; g2 < a2.length; g2++) { + k = a2[g2]; + var f2 = e3 + N(k, g2); + h2 += O(k, b, c3, f2, d2); } - function describeUnknownElementTypeFrameInDEV(type2, source, ownerFn) { - if (type2 == null) { - return ""; - } - if (typeof type2 === "function") { - { - return describeNativeComponentFrame(type2, shouldConstruct(type2)); - } - } - if (typeof type2 === "string") { - return describeBuiltInComponentFrame(type2); - } - switch (type2) { - case REACT_SUSPENSE_TYPE: - return describeBuiltInComponentFrame("Suspense"); - case REACT_SUSPENSE_LIST_TYPE: - return describeBuiltInComponentFrame("SuspenseList"); + else if (f2 = y3(a2), typeof f2 === "function") + for (a2 = f2.call(a2), g2 = 0; !(k = a2.next()).done; ) + k = k.value, f2 = e3 + N(k, g2++), h2 += O(k, b, c3, f2, d2); + else if (k === "object") + throw b = "" + a2, Error(z(31, b === "[object Object]" ? "object with keys {" + Object.keys(a2).join(", ") + "}" : b)); + return h2; + } + function P(a2, b, c3) { + if (a2 == null) + return a2; + var e3 = [], d2 = 0; + O(a2, e3, "", "", function(a3) { + return b.call(c3, a3, d2++); + }); + return e3; + } + function Q(a2) { + if (a2._status === -1) { + var b = a2._result; + b = b(); + a2._status = 0; + a2._result = b; + b.then(function(b2) { + a2._status === 0 && (b2 = b2.default, a2._status = 1, a2._result = b2); + }, function(b2) { + a2._status === 0 && (a2._status = 2, a2._result = b2); + }); + } + if (a2._status === 1) + return a2._result; + throw a2._result; + } + var R = { current: null }; + function S() { + var a2 = R.current; + if (a2 === null) + throw Error(z(321)); + return a2; + } + var T = { ReactCurrentDispatcher: R, ReactCurrentBatchConfig: { transition: 0 }, ReactCurrentOwner: G, IsSomeRendererActing: { current: false }, assign: l2 }; + exports2.Children = { map: P, forEach: function(a2, b, c3) { + P(a2, function() { + b.apply(this, arguments); + }, c3); + }, count: function(a2) { + var b = 0; + P(a2, function() { + b++; + }); + return b; + }, toArray: function(a2) { + return P(a2, function(a3) { + return a3; + }) || []; + }, only: function(a2) { + if (!L(a2)) + throw Error(z(143)); + return a2; + } }; + exports2.Component = C; + exports2.PureComponent = E2; + exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = T; + exports2.cloneElement = function(a2, b, c3) { + if (a2 === null || a2 === void 0) + throw Error(z(267, a2)); + var e3 = l2({}, a2.props), d2 = a2.key, k = a2.ref, h2 = a2._owner; + if (b != null) { + b.ref !== void 0 && (k = b.ref, h2 = G.current); + b.key !== void 0 && (d2 = "" + b.key); + if (a2.type && a2.type.defaultProps) + var g2 = a2.type.defaultProps; + for (f2 in b) + H.call(b, f2) && !I.hasOwnProperty(f2) && (e3[f2] = b[f2] === void 0 && g2 !== void 0 ? g2[f2] : b[f2]); + } + var f2 = arguments.length - 2; + if (f2 === 1) + e3.children = c3; + else if (1 < f2) { + g2 = Array(f2); + for (var m4 = 0; m4 < f2; m4++) + g2[m4] = arguments[m4 + 2]; + e3.children = g2; + } + return { + $$typeof: n2, + type: a2.type, + key: d2, + ref: k, + props: e3, + _owner: h2 + }; + }; + exports2.createContext = function(a2, b) { + b === void 0 && (b = null); + a2 = { $$typeof: r4, _calculateChangedBits: b, _currentValue: a2, _currentValue2: a2, _threadCount: 0, Provider: null, Consumer: null }; + a2.Provider = { $$typeof: q2, _context: a2 }; + return a2.Consumer = a2; + }; + exports2.createElement = J; + exports2.createFactory = function(a2) { + var b = J.bind(null, a2); + b.type = a2; + return b; + }; + exports2.createRef = function() { + return { current: null }; + }; + exports2.forwardRef = function(a2) { + return { $$typeof: t2, render: a2 }; + }; + exports2.isValidElement = L; + exports2.lazy = function(a2) { + return { $$typeof: v2, _payload: { _status: -1, _result: a2 }, _init: Q }; + }; + exports2.memo = function(a2, b) { + return { $$typeof: u, type: a2, compare: b === void 0 ? null : b }; + }; + exports2.useCallback = function(a2, b) { + return S().useCallback(a2, b); + }; + exports2.useContext = function(a2, b) { + return S().useContext(a2, b); + }; + exports2.useDebugValue = function() { + }; + exports2.useEffect = function(a2, b) { + return S().useEffect(a2, b); + }; + exports2.useImperativeHandle = function(a2, b, c3) { + return S().useImperativeHandle(a2, b, c3); + }; + exports2.useLayoutEffect = function(a2, b) { + return S().useLayoutEffect(a2, b); + }; + exports2.useMemo = function(a2, b) { + return S().useMemo(a2, b); + }; + exports2.useReducer = function(a2, b, c3) { + return S().useReducer(a2, b, c3); + }; + exports2.useRef = function(a2) { + return S().useRef(a2); + }; + exports2.useState = function(a2) { + return S().useState(a2); + }; + exports2.version = "17.0.2"; + } +}); + +// node_modules/react/cjs/react.development.js +var require_react_development = __commonJS({ + "node_modules/react/cjs/react.development.js"(exports2) { + "use strict"; + if (process.env.NODE_ENV !== "production") { + (function() { + "use strict"; + var _assign = require_object_assign(); + var ReactVersion = "17.0.2"; + var REACT_ELEMENT_TYPE = 60103; + var REACT_PORTAL_TYPE = 60106; + exports2.Fragment = 60107; + exports2.StrictMode = 60108; + exports2.Profiler = 60114; + var REACT_PROVIDER_TYPE = 60109; + var REACT_CONTEXT_TYPE = 60110; + var REACT_FORWARD_REF_TYPE = 60112; + exports2.Suspense = 60113; + var REACT_SUSPENSE_LIST_TYPE = 60120; + var REACT_MEMO_TYPE = 60115; + var REACT_LAZY_TYPE = 60116; + var REACT_BLOCK_TYPE = 60121; + var REACT_SERVER_BLOCK_TYPE = 60122; + var REACT_FUNDAMENTAL_TYPE = 60117; + var REACT_SCOPE_TYPE = 60119; + var REACT_OPAQUE_ID_TYPE = 60128; + var REACT_DEBUG_TRACING_MODE_TYPE = 60129; + var REACT_OFFSCREEN_TYPE = 60130; + var REACT_LEGACY_HIDDEN_TYPE = 60131; + if (typeof Symbol === "function" && Symbol.for) { + var symbolFor = Symbol.for; + REACT_ELEMENT_TYPE = symbolFor("react.element"); + REACT_PORTAL_TYPE = symbolFor("react.portal"); + exports2.Fragment = symbolFor("react.fragment"); + exports2.StrictMode = symbolFor("react.strict_mode"); + exports2.Profiler = symbolFor("react.profiler"); + REACT_PROVIDER_TYPE = symbolFor("react.provider"); + REACT_CONTEXT_TYPE = symbolFor("react.context"); + REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref"); + exports2.Suspense = symbolFor("react.suspense"); + REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list"); + REACT_MEMO_TYPE = symbolFor("react.memo"); + REACT_LAZY_TYPE = symbolFor("react.lazy"); + REACT_BLOCK_TYPE = symbolFor("react.block"); + REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block"); + REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental"); + REACT_SCOPE_TYPE = symbolFor("react.scope"); + REACT_OPAQUE_ID_TYPE = symbolFor("react.opaque.id"); + REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode"); + REACT_OFFSCREEN_TYPE = symbolFor("react.offscreen"); + REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden"); + } + var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = "@@iterator"; + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable !== "object") { + return null; } - if (typeof type2 === "object") { - switch (type2.$$typeof) { - case REACT_FORWARD_REF_TYPE: - return describeFunctionComponentFrame(type2.render); - case REACT_MEMO_TYPE: - return describeUnknownElementTypeFrameInDEV(type2.type, source, ownerFn); - case REACT_BLOCK_TYPE: - return describeFunctionComponentFrame(type2._render); - case REACT_LAZY_TYPE: { - var lazyComponent = type2; - var payload = lazyComponent._payload; - var init2 = lazyComponent._init; - try { - return describeUnknownElementTypeFrameInDEV(init2(payload), source, ownerFn); - } catch (x2) { - } - } - } + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + if (typeof maybeIterator === "function") { + return maybeIterator; } - return ""; + return null; } - var loggedTypeFailures = {}; - var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; - function setCurrentlyValidatingElement(element) { - { - if (element) { - var owner = element._owner; - var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); - ReactDebugCurrentFrame.setExtraStackFrame(stack); - } else { - ReactDebugCurrentFrame.setExtraStackFrame(null); - } - } - } - function checkPropTypes(typeSpecs, values, location, componentName, element) { + var ReactCurrentDispatcher = { + current: null + }; + var ReactCurrentBatchConfig = { + transition: 0 + }; + var ReactCurrentOwner = { + current: null + }; + var ReactDebugCurrentFrame = {}; + var currentExtraStackFrame = null; + function setExtraStackFrame(stack) { { - var has = Function.call.bind(Object.prototype.hasOwnProperty); - for (var typeSpecName in typeSpecs) { - if (has(typeSpecs, typeSpecName)) { - var error$1 = void 0; - try { - if (typeof typeSpecs[typeSpecName] !== "function") { - var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); - err.name = "Invariant Violation"; - throw err; - } - error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); - } catch (ex2) { - error$1 = ex2; - } - if (error$1 && !(error$1 instanceof Error)) { - setCurrentlyValidatingElement(element); - error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1); - setCurrentlyValidatingElement(null); - } - if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { - loggedTypeFailures[error$1.message] = true; - setCurrentlyValidatingElement(element); - error("Failed %s type: %s", location, error$1.message); - setCurrentlyValidatingElement(null); - } - } - } + currentExtraStackFrame = stack; } } - var didWarnAboutInvalidateContextType; { - didWarnAboutInvalidateContextType = new Set(); + ReactDebugCurrentFrame.setExtraStackFrame = function(stack) { + { + currentExtraStackFrame = stack; + } + }; + ReactDebugCurrentFrame.getCurrentStack = null; + ReactDebugCurrentFrame.getStackAddendum = function() { + var stack = ""; + if (currentExtraStackFrame) { + stack += currentExtraStackFrame; + } + var impl = ReactDebugCurrentFrame.getCurrentStack; + if (impl) { + stack += impl() || ""; + } + return stack; + }; } - var emptyObject = {}; + var IsSomeRendererActing = { + current: false + }; + var ReactSharedInternals = { + ReactCurrentDispatcher, + ReactCurrentBatchConfig, + ReactCurrentOwner, + IsSomeRendererActing, + assign: _assign + }; { - Object.freeze(emptyObject); + ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame; } - function maskContext(type2, context) { - var contextTypes = type2.contextTypes; - if (!contextTypes) { - return emptyObject; - } - var maskedContext = {}; - for (var contextName in contextTypes) { - maskedContext[contextName] = context[contextName]; + function warn(format2) { + { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + printWarning("warn", format2, args); } - return maskedContext; } - function checkContextTypes(typeSpecs, values, location) { + function error(format2) { { - checkPropTypes(typeSpecs, values, location, "Component"); + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + printWarning("error", format2, args); } } - function validateContextBounds(context, threadID) { - for (var i2 = context._threadCount | 0; i2 <= threadID; i2++) { - context[i2] = context._currentValue2; - context._threadCount = i2 + 1; + function printWarning(level, format2, args) { + { + var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame2.getStackAddendum(); + if (stack !== "") { + format2 += "%s"; + args = args.concat([stack]); + } + var argsWithFormat = args.map(function(item) { + return "" + item; + }); + argsWithFormat.unshift("Warning: " + format2); + Function.prototype.apply.call(console[level], console, argsWithFormat); } } - function processContext(type2, context, threadID, isClass) { - if (isClass) { - var contextType = type2.contextType; - { - if ("contextType" in type2) { - var isValid = contextType === null || contextType !== void 0 && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === void 0; - if (!isValid && !didWarnAboutInvalidateContextType.has(type2)) { - didWarnAboutInvalidateContextType.add(type2); - var addendum = ""; - if (contextType === void 0) { - addendum = " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file."; - } else if (typeof contextType !== "object") { - addendum = " However, it is set to a " + typeof contextType + "."; - } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) { - addendum = " Did you accidentally pass the Context.Provider instead?"; - } else if (contextType._context !== void 0) { - addendum = " Did you accidentally pass the Context.Consumer instead?"; - } else { - addendum = " However, it is set to an object with keys {" + Object.keys(contextType).join(", ") + "}."; - } - error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s", getComponentName(type2) || "Component", addendum); - } - } - } - if (typeof contextType === "object" && contextType !== null) { - validateContextBounds(contextType, threadID); - return contextType[threadID]; - } - { - var maskedContext = maskContext(type2, context); - { - if (type2.contextTypes) { - checkContextTypes(type2.contextTypes, maskedContext, "context"); - } - } - return maskedContext; - } - } else { - { - var _maskedContext = maskContext(type2, context); - { - if (type2.contextTypes) { - checkContextTypes(type2.contextTypes, _maskedContext, "context"); - } - } - return _maskedContext; + var didWarnStateUpdateForUnmountedComponent = {}; + function warnNoop(publicInstance, callerName) { + { + var _constructor = publicInstance.constructor; + var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass"; + var warningKey = componentName + "." + callerName; + if (didWarnStateUpdateForUnmountedComponent[warningKey]) { + return; } + error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName); + didWarnStateUpdateForUnmountedComponent[warningKey] = true; } } - var nextAvailableThreadIDs = new Uint16Array(16); - for (var i = 0; i < 15; i++) { - nextAvailableThreadIDs[i] = i + 1; + var ReactNoopUpdateQueue = { + isMounted: function(publicInstance) { + return false; + }, + enqueueForceUpdate: function(publicInstance, callback, callerName) { + warnNoop(publicInstance, "forceUpdate"); + }, + enqueueReplaceState: function(publicInstance, completeState, callback, callerName) { + warnNoop(publicInstance, "replaceState"); + }, + enqueueSetState: function(publicInstance, partialState, callback, callerName) { + warnNoop(publicInstance, "setState"); + } + }; + var emptyObject = {}; + { + Object.freeze(emptyObject); } - nextAvailableThreadIDs[15] = 0; - function growThreadCountAndReturnNextAvailable() { - var oldArray = nextAvailableThreadIDs; - var oldSize = oldArray.length; - var newSize = oldSize * 2; - if (!(newSize <= 65536)) { + function Component(props2, context, updater) { + this.props = props2; + this.context = context; + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; + } + Component.prototype.isReactComponent = {}; + Component.prototype.setState = function(partialState, callback) { + if (!(typeof partialState === "object" || typeof partialState === "function" || partialState == null)) { { - throw Error("Maximum number of concurrent React renderers exceeded. This can happen if you are not properly destroying the Readable provided by React. Ensure that you call .destroy() on it if you no longer want to read from it, and did not read to the end. If you use .pipe() this should be automatic."); + throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); } } - var newArray = new Uint16Array(newSize); - newArray.set(oldArray); - nextAvailableThreadIDs = newArray; - nextAvailableThreadIDs[0] = oldSize + 1; - for (var _i = oldSize; _i < newSize - 1; _i++) { - nextAvailableThreadIDs[_i] = _i + 1; + this.updater.enqueueSetState(this, partialState, callback, "setState"); + }; + Component.prototype.forceUpdate = function(callback) { + this.updater.enqueueForceUpdate(this, callback, "forceUpdate"); + }; + { + var deprecatedAPIs = { + isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."], + replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."] + }; + var defineDeprecationWarning = function(methodName, info2) { + Object.defineProperty(Component.prototype, methodName, { + get: function() { + warn("%s(...) is deprecated in plain JavaScript React classes. %s", info2[0], info2[1]); + return void 0; + } + }); + }; + for (var fnName in deprecatedAPIs) { + if (deprecatedAPIs.hasOwnProperty(fnName)) { + defineDeprecationWarning(fnName, deprecatedAPIs[fnName]); + } } - nextAvailableThreadIDs[newSize - 1] = 0; - return oldSize; } - function allocThreadID() { - var nextID = nextAvailableThreadIDs[0]; - if (nextID === 0) { - return growThreadCountAndReturnNextAvailable(); - } - nextAvailableThreadIDs[0] = nextAvailableThreadIDs[nextID]; - return nextID; + function ComponentDummy() { } - function freeThreadID(id2) { - nextAvailableThreadIDs[id2] = nextAvailableThreadIDs[0]; - nextAvailableThreadIDs[0] = id2; + ComponentDummy.prototype = Component.prototype; + function PureComponent(props2, context, updater) { + this.props = props2; + this.context = context; + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; } - var RESERVED = 0; - var STRING = 1; - var BOOLEANISH_STRING = 2; - var BOOLEAN = 3; - var OVERLOADED_BOOLEAN = 4; - var NUMERIC = 5; - var POSITIVE_NUMERIC = 6; - var ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"; - var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040"; - var ROOT_ATTRIBUTE_NAME = "data-reactroot"; - var VALID_ATTRIBUTE_NAME_REGEX = new RegExp("^[" + ATTRIBUTE_NAME_START_CHAR + "][" + ATTRIBUTE_NAME_CHAR + "]*$"); - var hasOwnProperty = Object.prototype.hasOwnProperty; - var illegalAttributeNameCache = {}; - var validatedAttributeNameCache = {}; - function isAttributeNameSafe(attributeName) { - if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) { - return true; - } - if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) { - return false; + var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); + pureComponentPrototype.constructor = PureComponent; + _assign(pureComponentPrototype, Component.prototype); + pureComponentPrototype.isPureReactComponent = true; + function createRef() { + var refObject = { + current: null + }; + { + Object.seal(refObject); } - if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) { - validatedAttributeNameCache[attributeName] = true; - return true; + return refObject; + } + function getWrappedName(outerType, innerType, wrapperName) { + var functionName = innerType.displayName || innerType.name || ""; + return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName); + } + function getContextName(type2) { + return type2.displayName || "Context"; + } + function getComponentName(type2) { + if (type2 == null) { + return null; } - illegalAttributeNameCache[attributeName] = true; { - error("Invalid attribute name: `%s`", attributeName); + if (typeof type2.tag === "number") { + error("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."); + } } - return false; - } - function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) { - if (propertyInfo !== null) { - return propertyInfo.type === RESERVED; + if (typeof type2 === "function") { + return type2.displayName || type2.name || null; } - if (isCustomComponentTag) { - return false; + if (typeof type2 === "string") { + return type2; } - if (name.length > 2 && (name[0] === "o" || name[0] === "O") && (name[1] === "n" || name[1] === "N")) { - return true; + switch (type2) { + case exports2.Fragment: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case exports2.Profiler: + return "Profiler"; + case exports2.StrictMode: + return "StrictMode"; + case exports2.Suspense: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; } - return false; - } - function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) { - if (propertyInfo !== null && propertyInfo.type === RESERVED) { - return false; + if (typeof type2 === "object") { + switch (type2.$$typeof) { + case REACT_CONTEXT_TYPE: + var context = type2; + return getContextName(context) + ".Consumer"; + case REACT_PROVIDER_TYPE: + var provider = type2; + return getContextName(provider._context) + ".Provider"; + case REACT_FORWARD_REF_TYPE: + return getWrappedName(type2, type2.render, "ForwardRef"); + case REACT_MEMO_TYPE: + return getComponentName(type2.type); + case REACT_BLOCK_TYPE: + return getComponentName(type2._render); + case REACT_LAZY_TYPE: { + var lazyComponent = type2; + var payload = lazyComponent._payload; + var init2 = lazyComponent._init; + try { + return getComponentName(init2(payload)); + } catch (x2) { + return null; + } + } + } } - switch (typeof value) { - case "function": - case "symbol": - return true; - case "boolean": { - if (isCustomComponentTag) { + return null; + } + var hasOwnProperty = Object.prototype.hasOwnProperty; + var RESERVED_PROPS = { + key: true, + ref: true, + __self: true, + __source: true + }; + var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs; + { + didWarnAboutStringRefs = {}; + } + function hasValidRef(config) { + { + if (hasOwnProperty.call(config, "ref")) { + var getter = Object.getOwnPropertyDescriptor(config, "ref").get; + if (getter && getter.isReactWarning) { return false; } - if (propertyInfo !== null) { - return !propertyInfo.acceptsBooleans; - } else { - var prefix2 = name.toLowerCase().slice(0, 5); - return prefix2 !== "data-" && prefix2 !== "aria-"; - } } - default: - return false; } + return config.ref !== void 0; } - function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) { - if (value === null || typeof value === "undefined") { - return true; - } - if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) { - return true; - } - if (isCustomComponentTag) { - return false; - } - if (propertyInfo !== null) { - switch (propertyInfo.type) { - case BOOLEAN: - return !value; - case OVERLOADED_BOOLEAN: - return value === false; - case NUMERIC: - return isNaN(value); - case POSITIVE_NUMERIC: - return isNaN(value) || value < 1; + function hasValidKey(config) { + { + if (hasOwnProperty.call(config, "key")) { + var getter = Object.getOwnPropertyDescriptor(config, "key").get; + if (getter && getter.isReactWarning) { + return false; + } } } - return false; + return config.key !== void 0; } - function getPropertyInfo(name) { - return properties2.hasOwnProperty(name) ? properties2[name] : null; + function defineKeyPropWarningGetter(props2, displayName) { + var warnAboutAccessingKey = function() { + { + if (!specialPropKeyWarningShown) { + specialPropKeyWarningShown = true; + error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName); + } + } + }; + warnAboutAccessingKey.isReactWarning = true; + Object.defineProperty(props2, "key", { + get: warnAboutAccessingKey, + configurable: true + }); } - function PropertyInfoRecord(name, type2, mustUseProperty, attributeName, attributeNamespace, sanitizeURL2, removeEmptyString) { - this.acceptsBooleans = type2 === BOOLEANISH_STRING || type2 === BOOLEAN || type2 === OVERLOADED_BOOLEAN; - this.attributeName = attributeName; - this.attributeNamespace = attributeNamespace; - this.mustUseProperty = mustUseProperty; - this.propertyName = name; - this.type = type2; - this.sanitizeURL = sanitizeURL2; - this.removeEmptyString = removeEmptyString; + function defineRefPropWarningGetter(props2, displayName) { + var warnAboutAccessingRef = function() { + { + if (!specialPropRefWarningShown) { + specialPropRefWarningShown = true; + error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName); + } + } + }; + warnAboutAccessingRef.isReactWarning = true; + Object.defineProperty(props2, "ref", { + get: warnAboutAccessingRef, + configurable: true + }); } - var properties2 = {}; - var reservedProps = [ - "children", - "dangerouslySetInnerHTML", - "defaultValue", - "defaultChecked", - "innerHTML", - "suppressContentEditableWarning", - "suppressHydrationWarning", - "style" - ]; - reservedProps.forEach(function(name) { - properties2[name] = new PropertyInfoRecord(name, RESERVED, false, name, null, false, false); - }); - [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(_ref) { - var name = _ref[0], attributeName = _ref[1]; - properties2[name] = new PropertyInfoRecord(name, STRING, false, attributeName, null, false, false); - }); - ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(name) { - properties2[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, name.toLowerCase(), null, false, false); - }); - ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(name) { - properties2[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, name, null, false, false); - }); - [ - "allowFullScreen", - "async", - "autoFocus", - "autoPlay", - "controls", - "default", - "defer", - "disabled", - "disablePictureInPicture", - "disableRemotePlayback", - "formNoValidate", - "hidden", - "loop", - "noModule", - "noValidate", - "open", - "playsInline", - "readOnly", - "required", - "reversed", - "scoped", - "seamless", - "itemScope" - ].forEach(function(name) { - properties2[name] = new PropertyInfoRecord(name, BOOLEAN, false, name.toLowerCase(), null, false, false); - }); - [ - "checked", - "multiple", - "muted", - "selected" - ].forEach(function(name) { - properties2[name] = new PropertyInfoRecord(name, BOOLEAN, true, name, null, false, false); - }); - [ - "capture", - "download" - ].forEach(function(name) { - properties2[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, name, null, false, false); - }); - [ - "cols", - "rows", - "size", - "span" - ].forEach(function(name) { - properties2[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, name, null, false, false); - }); - ["rowSpan", "start"].forEach(function(name) { - properties2[name] = new PropertyInfoRecord(name, NUMERIC, false, name.toLowerCase(), null, false, false); - }); - var CAMELIZE = /[\-\:]([a-z])/g; - var capitalize = function(token) { - return token[1].toUpperCase(); - }; - [ - "accent-height", - "alignment-baseline", - "arabic-form", - "baseline-shift", - "cap-height", - "clip-path", - "clip-rule", - "color-interpolation", - "color-interpolation-filters", - "color-profile", - "color-rendering", - "dominant-baseline", - "enable-background", - "fill-opacity", - "fill-rule", - "flood-color", - "flood-opacity", - "font-family", - "font-size", - "font-size-adjust", - "font-stretch", - "font-style", - "font-variant", - "font-weight", - "glyph-name", - "glyph-orientation-horizontal", - "glyph-orientation-vertical", - "horiz-adv-x", - "horiz-origin-x", - "image-rendering", - "letter-spacing", - "lighting-color", - "marker-end", - "marker-mid", - "marker-start", - "overline-position", - "overline-thickness", - "paint-order", - "panose-1", - "pointer-events", - "rendering-intent", - "shape-rendering", - "stop-color", - "stop-opacity", - "strikethrough-position", - "strikethrough-thickness", - "stroke-dasharray", - "stroke-dashoffset", - "stroke-linecap", - "stroke-linejoin", - "stroke-miterlimit", - "stroke-opacity", - "stroke-width", - "text-anchor", - "text-decoration", - "text-rendering", - "underline-position", - "underline-thickness", - "unicode-bidi", - "unicode-range", - "units-per-em", - "v-alphabetic", - "v-hanging", - "v-ideographic", - "v-mathematical", - "vector-effect", - "vert-adv-y", - "vert-origin-x", - "vert-origin-y", - "word-spacing", - "writing-mode", - "xmlns:xlink", - "x-height" - ].forEach(function(attributeName) { - var name = attributeName.replace(CAMELIZE, capitalize); - properties2[name] = new PropertyInfoRecord(name, STRING, false, attributeName, null, false, false); - }); - [ - "xlink:actuate", - "xlink:arcrole", - "xlink:role", - "xlink:show", - "xlink:title", - "xlink:type" - ].forEach(function(attributeName) { - var name = attributeName.replace(CAMELIZE, capitalize); - properties2[name] = new PropertyInfoRecord(name, STRING, false, attributeName, "http://www.w3.org/1999/xlink", false, false); - }); - [ - "xml:base", - "xml:lang", - "xml:space" - ].forEach(function(attributeName) { - var name = attributeName.replace(CAMELIZE, capitalize); - properties2[name] = new PropertyInfoRecord(name, STRING, false, attributeName, "http://www.w3.org/XML/1998/namespace", false, false); - }); - ["tabIndex", "crossOrigin"].forEach(function(attributeName) { - properties2[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, attributeName.toLowerCase(), null, false, false); - }); - var xlinkHref = "xlinkHref"; - properties2[xlinkHref] = new PropertyInfoRecord("xlinkHref", STRING, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false); - ["src", "href", "action", "formAction"].forEach(function(attributeName) { - properties2[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, attributeName.toLowerCase(), null, true, true); - }); - var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i; - var didWarn = false; - function sanitizeURL(url) { + function warnIfStringRefCannotBeAutoConverted(config) { { - if (!didWarn && isJavaScriptProtocol.test(url)) { - didWarn = true; - error("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.", JSON.stringify(url)); + if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) { + var componentName = getComponentName(ReactCurrentOwner.current.type); + if (!didWarnAboutStringRefs[componentName]) { + error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref); + didWarnAboutStringRefs[componentName] = true; + } } } } - var matchHtmlRegExp = /["'&<>]/; - function escapeHtml(string) { - var str = "" + string; - var match = matchHtmlRegExp.exec(str); - if (!match) { - return str; + var ReactElement = function(type2, key, ref, self3, source, owner, props2) { + var element = { + $$typeof: REACT_ELEMENT_TYPE, + type: type2, + key, + ref, + props: props2, + _owner: owner + }; + { + element._store = {}; + Object.defineProperty(element._store, "validated", { + configurable: false, + enumerable: false, + writable: true, + value: false + }); + Object.defineProperty(element, "_self", { + configurable: false, + enumerable: false, + writable: false, + value: self3 + }); + Object.defineProperty(element, "_source", { + configurable: false, + enumerable: false, + writable: false, + value: source + }); + if (Object.freeze) { + Object.freeze(element.props); + Object.freeze(element); + } } - var escape; - var html2 = ""; - var index; - var lastIndex = 0; - for (index = match.index; index < str.length; index++) { - switch (str.charCodeAt(index)) { - case 34: - escape = """; - break; - case 38: - escape = "&"; - break; - case 39: - escape = "'"; - break; - case 60: - escape = "<"; - break; - case 62: - escape = ">"; - break; - default: - continue; + return element; + }; + function createElement(type2, config, children2) { + var propName; + var props2 = {}; + var key = null; + var ref = null; + var self3 = null; + var source = null; + if (config != null) { + if (hasValidRef(config)) { + ref = config.ref; + { + warnIfStringRefCannotBeAutoConverted(config); + } } - if (lastIndex !== index) { - html2 += str.substring(lastIndex, index); + if (hasValidKey(config)) { + key = "" + config.key; + } + self3 = config.__self === void 0 ? null : config.__self; + source = config.__source === void 0 ? null : config.__source; + for (propName in config) { + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + props2[propName] = config[propName]; + } } - lastIndex = index + 1; - html2 += escape; - } - return lastIndex !== index ? html2 + str.substring(lastIndex, index) : html2; - } - function escapeTextForBrowser(text) { - if (typeof text === "boolean" || typeof text === "number") { - return "" + text; } - return escapeHtml(text); - } - function quoteAttributeValueForBrowser(value) { - return '"' + escapeTextForBrowser(value) + '"'; - } - function createMarkupForRoot() { - return ROOT_ATTRIBUTE_NAME + '=""'; - } - function createMarkupForProperty(name, value) { - var propertyInfo = getPropertyInfo(name); - if (name !== "style" && shouldIgnoreAttribute(name, propertyInfo, false)) { - return ""; - } - if (shouldRemoveAttribute(name, value, propertyInfo, false)) { - return ""; - } - if (propertyInfo !== null) { - var attributeName = propertyInfo.attributeName; - var type2 = propertyInfo.type; - if (type2 === BOOLEAN || type2 === OVERLOADED_BOOLEAN && value === true) { - return attributeName + '=""'; - } else { - if (propertyInfo.sanitizeURL) { - value = "" + value; - sanitizeURL(value); + var childrenLength = arguments.length - 2; + if (childrenLength === 1) { + props2.children = children2; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + { + if (Object.freeze) { + Object.freeze(childArray); } - return attributeName + "=" + quoteAttributeValueForBrowser(value); } - } else if (isAttributeNameSafe(name)) { - return name + "=" + quoteAttributeValueForBrowser(value); - } - return ""; - } - function createMarkupForCustomAttribute(name, value) { - if (!isAttributeNameSafe(name) || value == null) { - return ""; + props2.children = childArray; } - return name + "=" + quoteAttributeValueForBrowser(value); - } - function is(x2, y3) { - return x2 === y3 && (x2 !== 0 || 1 / x2 === 1 / y3) || x2 !== x2 && y3 !== y3; - } - var objectIs = typeof Object.is === "function" ? Object.is : is; - var currentlyRenderingComponent = null; - var firstWorkInProgressHook = null; - var workInProgressHook = null; - var isReRender = false; - var didScheduleRenderPhaseUpdate = false; - var renderPhaseUpdates = null; - var numberOfReRenders = 0; - var RE_RENDER_LIMIT = 25; - var isInHookUserCodeInDev = false; - var currentHookNameInDev; - function resolveCurrentlyRenderingComponent() { - if (!(currentlyRenderingComponent !== null)) { - { - throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); + if (type2 && type2.defaultProps) { + var defaultProps = type2.defaultProps; + for (propName in defaultProps) { + if (props2[propName] === void 0) { + props2[propName] = defaultProps[propName]; + } } } { - if (isInHookUserCodeInDev) { - error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"); + if (key || ref) { + var displayName = typeof type2 === "function" ? type2.displayName || type2.name || "Unknown" : type2; + if (key) { + defineKeyPropWarningGetter(props2, displayName); + } + if (ref) { + defineRefPropWarningGetter(props2, displayName); + } } } - return currentlyRenderingComponent; + return ReactElement(type2, key, ref, self3, source, ReactCurrentOwner.current, props2); } - function areHookInputsEqual(nextDeps, prevDeps) { - if (prevDeps === null) { + function cloneAndReplaceKey(oldElement, newKey) { + var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); + return newElement; + } + function cloneElement(element, config, children2) { + if (!!(element === null || element === void 0)) { { - error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.", currentHookNameInDev); + throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + "."); } - return false; } - { - if (nextDeps.length !== prevDeps.length) { - error("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s", currentHookNameInDev, "[" + nextDeps.join(", ") + "]", "[" + prevDeps.join(", ") + "]"); + var propName; + var props2 = _assign({}, element.props); + var key = element.key; + var ref = element.ref; + var self3 = element._self; + var source = element._source; + var owner = element._owner; + if (config != null) { + if (hasValidRef(config)) { + ref = config.ref; + owner = ReactCurrentOwner.current; } - } - for (var i2 = 0; i2 < prevDeps.length && i2 < nextDeps.length; i2++) { - if (objectIs(nextDeps[i2], prevDeps[i2])) { - continue; + if (hasValidKey(config)) { + key = "" + config.key; } - return false; - } - return true; - } - function createHook() { - if (numberOfReRenders > 0) { - { - { - throw Error("Rendered more hooks than during the previous render"); + var defaultProps; + if (element.type && element.type.defaultProps) { + defaultProps = element.type.defaultProps; + } + for (propName in config) { + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + if (config[propName] === void 0 && defaultProps !== void 0) { + props2[propName] = defaultProps[propName]; + } else { + props2[propName] = config[propName]; + } } } } - return { - memoizedState: null, - queue: null, - next: null - }; - } - function createWorkInProgressHook() { - if (workInProgressHook === null) { - if (firstWorkInProgressHook === null) { - isReRender = false; - firstWorkInProgressHook = workInProgressHook = createHook(); - } else { - isReRender = true; - workInProgressHook = firstWorkInProgressHook; - } - } else { - if (workInProgressHook.next === null) { - isReRender = false; - workInProgressHook = workInProgressHook.next = createHook(); - } else { - isReRender = true; - workInProgressHook = workInProgressHook.next; + var childrenLength = arguments.length - 2; + if (childrenLength === 1) { + props2.children = children2; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; } + props2.children = childArray; } - return workInProgressHook; - } - function prepareToUseHooks(componentIdentity) { - currentlyRenderingComponent = componentIdentity; - { - isInHookUserCodeInDev = false; - } + return ReactElement(element.type, key, ref, self3, source, owner, props2); } - function finishHooks(Component, props2, children2, refOrContext) { - while (didScheduleRenderPhaseUpdate) { - didScheduleRenderPhaseUpdate = false; - numberOfReRenders += 1; - workInProgressHook = null; - children2 = Component(props2, refOrContext); - } - resetHooksState(); - return children2; + function isValidElement(object) { + return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; } - function resetHooksState() { - { - isInHookUserCodeInDev = false; - } - currentlyRenderingComponent = null; - didScheduleRenderPhaseUpdate = false; - firstWorkInProgressHook = null; - numberOfReRenders = 0; - renderPhaseUpdates = null; - workInProgressHook = null; + var SEPARATOR = "."; + var SUBSEPARATOR = ":"; + function escape(key) { + var escapeRegex = /[=:]/g; + var escaperLookup = { + "=": "=0", + ":": "=2" + }; + var escapedString = key.replace(escapeRegex, function(match) { + return escaperLookup[match]; + }); + return "$" + escapedString; } - function readContext(context, observedBits) { - var threadID = currentPartialRenderer.threadID; - validateContextBounds(context, threadID); - { - if (isInHookUserCodeInDev) { - error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); - } - } - return context[threadID]; + var didWarnAboutMaps = false; + var userProvidedKeyEscapeRegex = /\/+/g; + function escapeUserProvidedKey(text) { + return text.replace(userProvidedKeyEscapeRegex, "$&/"); } - function useContext(context, observedBits) { - { - currentHookNameInDev = "useContext"; + function getElementKey(element, index) { + if (typeof element === "object" && element !== null && element.key != null) { + return escape("" + element.key); } - resolveCurrentlyRenderingComponent(); - var threadID = currentPartialRenderer.threadID; - validateContextBounds(context, threadID); - return context[threadID]; - } - function basicStateReducer(state, action) { - return typeof action === "function" ? action(state) : action; + return index.toString(36); } - function useState2(initialState) { - { - currentHookNameInDev = "useState"; + function mapIntoArray(children2, array2, escapedPrefix, nameSoFar, callback) { + var type2 = typeof children2; + if (type2 === "undefined" || type2 === "boolean") { + children2 = null; } - return useReducer(basicStateReducer, initialState); - } - function useReducer(reducer, initialArg, init2) { - { - if (reducer !== basicStateReducer) { - currentHookNameInDev = "useReducer"; + var invokeCallback = false; + if (children2 === null) { + invokeCallback = true; + } else { + switch (type2) { + case "string": + case "number": + invokeCallback = true; + break; + case "object": + switch (children2.$$typeof) { + case REACT_ELEMENT_TYPE: + case REACT_PORTAL_TYPE: + invokeCallback = true; + } } } - currentlyRenderingComponent = resolveCurrentlyRenderingComponent(); - workInProgressHook = createWorkInProgressHook(); - if (isReRender) { - var queue = workInProgressHook.queue; - var dispatch2 = queue.dispatch; - if (renderPhaseUpdates !== null) { - var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue); - if (firstRenderPhaseUpdate !== void 0) { - renderPhaseUpdates.delete(queue); - var newState = workInProgressHook.memoizedState; - var update = firstRenderPhaseUpdate; - do { - var action = update.action; - { - isInHookUserCodeInDev = true; - } - newState = reducer(newState, action); - { - isInHookUserCodeInDev = false; - } - update = update.next; - } while (update !== null); - workInProgressHook.memoizedState = newState; - return [newState, dispatch2]; + if (invokeCallback) { + var _child = children2; + var mappedChild = callback(_child); + var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar; + if (Array.isArray(mappedChild)) { + var escapedChildKey = ""; + if (childKey != null) { + escapedChildKey = escapeUserProvidedKey(childKey) + "/"; } + mapIntoArray(mappedChild, array2, escapedChildKey, "", function(c3) { + return c3; + }); + } else if (mappedChild != null) { + if (isValidElement(mappedChild)) { + mappedChild = cloneAndReplaceKey(mappedChild, escapedPrefix + (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? escapeUserProvidedKey("" + mappedChild.key) + "/" : "") + childKey); + } + array2.push(mappedChild); } - return [workInProgressHook.memoizedState, dispatch2]; - } else { - { - isInHookUserCodeInDev = true; - } - var initialState; - if (reducer === basicStateReducer) { - initialState = typeof initialArg === "function" ? initialArg() : initialArg; - } else { - initialState = init2 !== void 0 ? init2(initialArg) : initialArg; - } - { - isInHookUserCodeInDev = false; - } - workInProgressHook.memoizedState = initialState; - var _queue = workInProgressHook.queue = { - last: null, - dispatch: null - }; - var _dispatch = _queue.dispatch = dispatchAction.bind(null, currentlyRenderingComponent, _queue); - return [workInProgressHook.memoizedState, _dispatch]; + return 1; } - } - function useMemo3(nextCreate, deps) { - currentlyRenderingComponent = resolveCurrentlyRenderingComponent(); - workInProgressHook = createWorkInProgressHook(); - var nextDeps = deps === void 0 ? null : deps; - if (workInProgressHook !== null) { - var prevState = workInProgressHook.memoizedState; - if (prevState !== null) { - if (nextDeps !== null) { - var prevDeps = prevState[1]; - if (areHookInputsEqual(nextDeps, prevDeps)) { - return prevState[0]; + var child; + var nextName; + var subtreeCount = 0; + var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR; + if (Array.isArray(children2)) { + for (var i = 0; i < children2.length; i++) { + child = children2[i]; + nextName = nextNamePrefix + getElementKey(child, i); + subtreeCount += mapIntoArray(child, array2, escapedPrefix, nextName, callback); + } + } else { + var iteratorFn = getIteratorFn(children2); + if (typeof iteratorFn === "function") { + var iterableChildren = children2; + { + if (iteratorFn === iterableChildren.entries) { + if (!didWarnAboutMaps) { + warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."); + } + didWarnAboutMaps = true; + } + } + var iterator = iteratorFn.call(iterableChildren); + var step; + var ii = 0; + while (!(step = iterator.next()).done) { + child = step.value; + nextName = nextNamePrefix + getElementKey(child, ii++); + subtreeCount += mapIntoArray(child, array2, escapedPrefix, nextName, callback); + } + } else if (type2 === "object") { + var childrenString = "" + children2; + { + { + throw Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children2).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead."); } } } } - { - isInHookUserCodeInDev = true; - } - var nextValue = nextCreate(); - { - isInHookUserCodeInDev = false; - } - workInProgressHook.memoizedState = [nextValue, nextDeps]; - return nextValue; + return subtreeCount; } - function useRef2(initialValue) { - currentlyRenderingComponent = resolveCurrentlyRenderingComponent(); - workInProgressHook = createWorkInProgressHook(); - var previousRef = workInProgressHook.memoizedState; - if (previousRef === null) { - var ref = { - current: initialValue - }; - { - Object.seal(ref); - } - workInProgressHook.memoizedState = ref; - return ref; - } else { - return previousRef; + function mapChildren2(children2, func, context) { + if (children2 == null) { + return children2; } + var result = []; + var count2 = 0; + mapIntoArray(children2, result, "", "", function(child) { + return func.call(context, child, count2++); + }); + return result; } - function useLayoutEffect(create2, inputs) { - { - currentHookNameInDev = "useLayoutEffect"; - error("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes."); - } + function countChildren(children2) { + var n2 = 0; + mapChildren2(children2, function() { + n2++; + }); + return n2; } - function dispatchAction(componentIdentity, queue, action) { - if (!(numberOfReRenders < RE_RENDER_LIMIT)) { + function forEachChildren(children2, forEachFunc, forEachContext) { + mapChildren2(children2, function() { + forEachFunc.apply(this, arguments); + }, forEachContext); + } + function toArray(children2) { + return mapChildren2(children2, function(child) { + return child; + }) || []; + } + function onlyChild(children2) { + if (!isValidElement(children2)) { { - throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop."); + throw Error("React.Children.only expected to receive a single React element child."); } } - if (componentIdentity === currentlyRenderingComponent) { - didScheduleRenderPhaseUpdate = true; - var update = { - action, - next: null - }; - if (renderPhaseUpdates === null) { - renderPhaseUpdates = new Map(); - } - var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue); - if (firstRenderPhaseUpdate === void 0) { - renderPhaseUpdates.set(queue, update); - } else { - var lastRenderPhaseUpdate = firstRenderPhaseUpdate; - while (lastRenderPhaseUpdate.next !== null) { - lastRenderPhaseUpdate = lastRenderPhaseUpdate.next; + return children2; + } + function createContext(defaultValue, calculateChangedBits) { + if (calculateChangedBits === void 0) { + calculateChangedBits = null; + } else { + { + if (calculateChangedBits !== null && typeof calculateChangedBits !== "function") { + error("createContext: Expected the optional second argument to be a function. Instead received: %s", calculateChangedBits); } - lastRenderPhaseUpdate.next = update; } } - } - function useCallback(callback, deps) { - return useMemo3(function() { - return callback; - }, deps); - } - function useMutableSource(source, getSnapshot, subscribe) { - resolveCurrentlyRenderingComponent(); - return getSnapshot(source._source); - } - function useDeferredValue(value) { - resolveCurrentlyRenderingComponent(); - return value; - } - function useTransition() { - resolveCurrentlyRenderingComponent(); - var startTransition = function(callback) { - callback(); + var context = { + $$typeof: REACT_CONTEXT_TYPE, + _calculateChangedBits: calculateChangedBits, + _currentValue: defaultValue, + _currentValue2: defaultValue, + _threadCount: 0, + Provider: null, + Consumer: null }; - return [startTransition, false]; - } - function useOpaqueIdentifier() { - return (currentPartialRenderer.identifierPrefix || "") + "R:" + (currentPartialRenderer.uniqueID++).toString(36); - } - function noop2() { - } - var currentPartialRenderer = null; - function setCurrentPartialRenderer(renderer) { - currentPartialRenderer = renderer; - } - var Dispatcher = { - readContext, - useContext, - useMemo: useMemo3, - useReducer, - useRef: useRef2, - useState: useState2, - useLayoutEffect, - useCallback, - useImperativeHandle: noop2, - useEffect: noop2, - useDebugValue: noop2, - useDeferredValue, - useTransition, - useOpaqueIdentifier, - useMutableSource - }; - var HTML_NAMESPACE = "http://www.w3.org/1999/xhtml"; - var MATH_NAMESPACE = "http://www.w3.org/1998/Math/MathML"; - var SVG_NAMESPACE = "http://www.w3.org/2000/svg"; - var Namespaces = { - html: HTML_NAMESPACE, - mathml: MATH_NAMESPACE, - svg: SVG_NAMESPACE - }; - function getIntrinsicNamespace(type2) { - switch (type2) { - case "svg": - return SVG_NAMESPACE; - case "math": - return MATH_NAMESPACE; - default: - return HTML_NAMESPACE; + context.Provider = { + $$typeof: REACT_PROVIDER_TYPE, + _context: context + }; + var hasWarnedAboutUsingNestedContextConsumers = false; + var hasWarnedAboutUsingConsumerProvider = false; + var hasWarnedAboutDisplayNameOnConsumer = false; + { + var Consumer = { + $$typeof: REACT_CONTEXT_TYPE, + _context: context, + _calculateChangedBits: context._calculateChangedBits + }; + Object.defineProperties(Consumer, { + Provider: { + get: function() { + if (!hasWarnedAboutUsingConsumerProvider) { + hasWarnedAboutUsingConsumerProvider = true; + error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); + } + return context.Provider; + }, + set: function(_Provider) { + context.Provider = _Provider; + } + }, + _currentValue: { + get: function() { + return context._currentValue; + }, + set: function(_currentValue) { + context._currentValue = _currentValue; + } + }, + _currentValue2: { + get: function() { + return context._currentValue2; + }, + set: function(_currentValue2) { + context._currentValue2 = _currentValue2; + } + }, + _threadCount: { + get: function() { + return context._threadCount; + }, + set: function(_threadCount) { + context._threadCount = _threadCount; + } + }, + Consumer: { + get: function() { + if (!hasWarnedAboutUsingNestedContextConsumers) { + hasWarnedAboutUsingNestedContextConsumers = true; + error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); + } + return context.Consumer; + } + }, + displayName: { + get: function() { + return context.displayName; + }, + set: function(displayName) { + if (!hasWarnedAboutDisplayNameOnConsumer) { + warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName); + hasWarnedAboutDisplayNameOnConsumer = true; + } + } + } + }); + context.Consumer = Consumer; + } + { + context._currentRenderer = null; + context._currentRenderer2 = null; } + return context; } - function getChildNamespace(parentNamespace, type2) { - if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) { - return getIntrinsicNamespace(type2); + var Uninitialized = -1; + var Pending = 0; + var Resolved = 1; + var Rejected = 2; + function lazyInitializer(payload) { + if (payload._status === Uninitialized) { + var ctor = payload._result; + var thenable = ctor(); + var pending = payload; + pending._status = Pending; + pending._result = thenable; + thenable.then(function(moduleObject) { + if (payload._status === Pending) { + var defaultExport = moduleObject.default; + { + if (defaultExport === void 0) { + error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject); + } + } + var resolved = payload; + resolved._status = Resolved; + resolved._result = defaultExport; + } + }, function(error2) { + if (payload._status === Pending) { + var rejected = payload; + rejected._status = Rejected; + rejected._result = error2; + } + }); } - if (parentNamespace === SVG_NAMESPACE && type2 === "foreignObject") { - return HTML_NAMESPACE; + if (payload._status === Resolved) { + return payload._result; + } else { + throw payload._result; } - return parentNamespace; } - var hasReadOnlyValue = { - button: true, - checkbox: true, - image: true, - hidden: true, - radio: true, - reset: true, - submit: true - }; - function checkControlledValueProps(tagName, props2) { + function lazy(ctor) { + var payload = { + _status: -1, + _result: ctor + }; + var lazyType = { + $$typeof: REACT_LAZY_TYPE, + _payload: payload, + _init: lazyInitializer + }; { - if (!(hasReadOnlyValue[props2.type] || props2.onChange || props2.onInput || props2.readOnly || props2.disabled || props2.value == null)) { - error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."); - } - if (!(props2.onChange || props2.readOnly || props2.disabled || props2.checked == null)) { - error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`."); - } - } - } - var omittedCloseTags = { - area: true, - base: true, - br: true, - col: true, - embed: true, - hr: true, - img: true, - input: true, - keygen: true, - link: true, - meta: true, - param: true, - source: true, - track: true, - wbr: true - }; - var voidElementTags = _assign({ - menuitem: true - }, omittedCloseTags); - var HTML = "__html"; - function assertValidProps(tag, props2) { - if (!props2) { - return; - } - if (voidElementTags[tag]) { - if (!(props2.children == null && props2.dangerouslySetInnerHTML == null)) { - { - throw Error(tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`."); + var defaultProps; + var propTypes; + Object.defineProperties(lazyType, { + defaultProps: { + configurable: true, + get: function() { + return defaultProps; + }, + set: function(newDefaultProps) { + error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); + defaultProps = newDefaultProps; + Object.defineProperty(lazyType, "defaultProps", { + enumerable: true + }); + } + }, + propTypes: { + configurable: true, + get: function() { + return propTypes; + }, + set: function(newPropTypes) { + error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); + propTypes = newPropTypes; + Object.defineProperty(lazyType, "propTypes", { + enumerable: true + }); + } } - } + }); } - if (props2.dangerouslySetInnerHTML != null) { - if (!(props2.children == null)) { - { - throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`."); + return lazyType; + } + function forwardRef(render) { + { + if (render != null && render.$$typeof === REACT_MEMO_TYPE) { + error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."); + } else if (typeof render !== "function") { + error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render); + } else { + if (render.length !== 0 && render.length !== 2) { + error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."); } } - if (!(typeof props2.dangerouslySetInnerHTML === "object" && HTML in props2.dangerouslySetInnerHTML)) { - { - throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information."); + if (render != null) { + if (render.defaultProps != null || render.propTypes != null) { + error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"); } } } + var elementType = { + $$typeof: REACT_FORWARD_REF_TYPE, + render + }; { - if (!props2.suppressContentEditableWarning && props2.contentEditable && props2.children != null) { - error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."); - } - } - if (!(props2.style == null || typeof props2.style === "object")) { - { - throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX."); - } + var ownName; + Object.defineProperty(elementType, "displayName", { + enumerable: false, + configurable: true, + get: function() { + return ownName; + }, + set: function(name) { + ownName = name; + if (render.displayName == null) { + render.displayName = name; + } + } + }); } + return elementType; } - var isUnitlessNumber = { - animationIterationCount: true, - borderImageOutset: true, - borderImageSlice: true, - borderImageWidth: true, - boxFlex: true, - boxFlexGroup: true, - boxOrdinalGroup: true, - columnCount: true, - columns: true, - flex: true, - flexGrow: true, - flexPositive: true, - flexShrink: true, - flexNegative: true, - flexOrder: true, - gridArea: true, - gridRow: true, - gridRowEnd: true, - gridRowSpan: true, - gridRowStart: true, - gridColumn: true, - gridColumnEnd: true, - gridColumnSpan: true, - gridColumnStart: true, - fontWeight: true, - lineClamp: true, - lineHeight: true, - opacity: true, - order: true, - orphans: true, - tabSize: true, - widows: true, - zIndex: true, - zoom: true, - fillOpacity: true, - floodOpacity: true, - stopOpacity: true, - strokeDasharray: true, - strokeDashoffset: true, - strokeMiterlimit: true, - strokeOpacity: true, - strokeWidth: true - }; - function prefixKey(prefix2, key) { - return prefix2 + key.charAt(0).toUpperCase() + key.substring(1); - } - var prefixes2 = ["Webkit", "ms", "Moz", "O"]; - Object.keys(isUnitlessNumber).forEach(function(prop) { - prefixes2.forEach(function(prefix2) { - isUnitlessNumber[prefixKey(prefix2, prop)] = isUnitlessNumber[prop]; - }); - }); - function dangerousStyleValue(name, value, isCustomProperty) { - var isEmpty = value == null || typeof value === "boolean" || value === ""; - if (isEmpty) { - return ""; - } - if (!isCustomProperty && typeof value === "number" && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) { - return value + "px"; + var enableScopeAPI = false; + function isValidElementType(type2) { + if (typeof type2 === "string" || typeof type2 === "function") { + return true; } - return ("" + value).trim(); - } - var uppercasePattern = /([A-Z])/g; - var msPattern = /^ms-/; - function hyphenateStyleName(name) { - return name.replace(uppercasePattern, "-$1").toLowerCase().replace(msPattern, "-ms-"); - } - function isCustomComponent(tagName, props2) { - if (tagName.indexOf("-") === -1) { - return typeof props2.is === "string"; + if (type2 === exports2.Fragment || type2 === exports2.Profiler || type2 === REACT_DEBUG_TRACING_MODE_TYPE || type2 === exports2.StrictMode || type2 === exports2.Suspense || type2 === REACT_SUSPENSE_LIST_TYPE || type2 === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) { + return true; } - switch (tagName) { - case "annotation-xml": - case "color-profile": - case "font-face": - case "font-face-src": - case "font-face-uri": - case "font-face-format": - case "font-face-name": - case "missing-glyph": - return false; - default: + if (typeof type2 === "object" && type2 !== null) { + if (type2.$$typeof === REACT_LAZY_TYPE || type2.$$typeof === REACT_MEMO_TYPE || type2.$$typeof === REACT_PROVIDER_TYPE || type2.$$typeof === REACT_CONTEXT_TYPE || type2.$$typeof === REACT_FORWARD_REF_TYPE || type2.$$typeof === REACT_FUNDAMENTAL_TYPE || type2.$$typeof === REACT_BLOCK_TYPE || type2[0] === REACT_SERVER_BLOCK_TYPE) { return true; + } } + return false; } - var warnValidStyle = function() { - }; - { - var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/; - var msPattern$1 = /^-ms-/; - var hyphenPattern = /-(.)/g; - var badStyleValueWithSemicolonPattern = /;\s*$/; - var warnedStyleNames = {}; - var warnedStyleValues = {}; - var warnedForNaNValue = false; - var warnedForInfinityValue = false; - var camelize = function(string) { - return string.replace(hyphenPattern, function(_10, character) { - return character.toUpperCase(); - }); - }; - var warnHyphenatedStyleName = function(name) { - if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { - return; - } - warnedStyleNames[name] = true; - error("Unsupported style property %s. Did you mean %s?", name, camelize(name.replace(msPattern$1, "ms-"))); - }; - var warnBadVendoredStyleName = function(name) { - if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { - return; - } - warnedStyleNames[name] = true; - error("Unsupported vendor-prefixed style property %s. Did you mean %s?", name, name.charAt(0).toUpperCase() + name.slice(1)); - }; - var warnStyleValueWithSemicolon = function(name, value) { - if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) { - return; - } - warnedStyleValues[value] = true; - error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`, name, value.replace(badStyleValueWithSemicolonPattern, "")); - }; - var warnStyleValueIsNaN = function(name, value) { - if (warnedForNaNValue) { - return; - } - warnedForNaNValue = true; - error("`NaN` is an invalid value for the `%s` css style property.", name); - }; - var warnStyleValueIsInfinity = function(name, value) { - if (warnedForInfinityValue) { - return; + function memo(type2, compare) { + { + if (!isValidElementType(type2)) { + error("memo: The first argument must be a component. Instead received: %s", type2 === null ? "null" : typeof type2); } - warnedForInfinityValue = true; - error("`Infinity` is an invalid value for the `%s` css style property.", name); + } + var elementType = { + $$typeof: REACT_MEMO_TYPE, + type: type2, + compare: compare === void 0 ? null : compare }; - warnValidStyle = function(name, value) { - if (name.indexOf("-") > -1) { - warnHyphenatedStyleName(name); - } else if (badVendoredStyleNamePattern.test(name)) { - warnBadVendoredStyleName(name); - } else if (badStyleValueWithSemicolonPattern.test(value)) { - warnStyleValueWithSemicolon(name, value); - } - if (typeof value === "number") { - if (isNaN(value)) { - warnStyleValueIsNaN(name, value); - } else if (!isFinite(value)) { - warnStyleValueIsInfinity(name, value); + { + var ownName; + Object.defineProperty(elementType, "displayName", { + enumerable: false, + configurable: true, + get: function() { + return ownName; + }, + set: function(name) { + ownName = name; + if (type2.displayName == null) { + type2.displayName = name; + } } + }); + } + return elementType; + } + function resolveDispatcher() { + var dispatcher = ReactCurrentDispatcher.current; + if (!(dispatcher !== null)) { + { + throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); } - }; + } + return dispatcher; } - var warnValidStyle$1 = warnValidStyle; - var ariaProperties = { - "aria-current": 0, - "aria-details": 0, - "aria-disabled": 0, - "aria-hidden": 0, - "aria-invalid": 0, - "aria-keyshortcuts": 0, - "aria-label": 0, - "aria-roledescription": 0, - "aria-autocomplete": 0, - "aria-checked": 0, - "aria-expanded": 0, - "aria-haspopup": 0, - "aria-level": 0, - "aria-modal": 0, - "aria-multiline": 0, - "aria-multiselectable": 0, - "aria-orientation": 0, - "aria-placeholder": 0, - "aria-pressed": 0, - "aria-readonly": 0, - "aria-required": 0, - "aria-selected": 0, - "aria-sort": 0, - "aria-valuemax": 0, - "aria-valuemin": 0, - "aria-valuenow": 0, - "aria-valuetext": 0, - "aria-atomic": 0, - "aria-busy": 0, - "aria-live": 0, - "aria-relevant": 0, - "aria-dropeffect": 0, - "aria-grabbed": 0, - "aria-activedescendant": 0, - "aria-colcount": 0, - "aria-colindex": 0, - "aria-colspan": 0, - "aria-controls": 0, - "aria-describedby": 0, - "aria-errormessage": 0, - "aria-flowto": 0, - "aria-labelledby": 0, - "aria-owns": 0, - "aria-posinset": 0, - "aria-rowcount": 0, - "aria-rowindex": 0, - "aria-rowspan": 0, - "aria-setsize": 0 - }; - var warnedProperties = {}; - var rARIA = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"); - var rARIACamel = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); - var hasOwnProperty$1 = Object.prototype.hasOwnProperty; - function validateProperty(tagName, name) { + function useContext(Context, unstable_observedBits) { + var dispatcher = resolveDispatcher(); { - if (hasOwnProperty$1.call(warnedProperties, name) && warnedProperties[name]) { - return true; + if (unstable_observedBits !== void 0) { + error("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s", unstable_observedBits, typeof unstable_observedBits === "number" && Array.isArray(arguments[2]) ? "\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks" : ""); } - if (rARIACamel.test(name)) { - var ariaName = "aria-" + name.slice(4).toLowerCase(); - var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; - if (correctName == null) { - error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.", name); - warnedProperties[name] = true; - return true; - } - if (name !== correctName) { - error("Invalid ARIA attribute `%s`. Did you mean `%s`?", name, correctName); - warnedProperties[name] = true; - return true; + if (Context._context !== void 0) { + var realContext = Context._context; + if (realContext.Consumer === Context) { + error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"); + } else if (realContext.Provider === Context) { + error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?"); } } - if (rARIA.test(name)) { - var lowerCasedName = name.toLowerCase(); - var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; - if (standardName == null) { - warnedProperties[name] = true; - return false; - } - if (name !== standardName) { - error("Unknown ARIA attribute `%s`. Did you mean `%s`?", name, standardName); - warnedProperties[name] = true; - return true; - } + } + return dispatcher.useContext(Context, unstable_observedBits); + } + function useState2(initialState) { + var dispatcher = resolveDispatcher(); + return dispatcher.useState(initialState); + } + function useReducer(reducer, initialArg, init2) { + var dispatcher = resolveDispatcher(); + return dispatcher.useReducer(reducer, initialArg, init2); + } + function useRef2(initialValue) { + var dispatcher = resolveDispatcher(); + return dispatcher.useRef(initialValue); + } + function useEffect(create3, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useEffect(create3, deps); + } + function useLayoutEffect(create3, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useLayoutEffect(create3, deps); + } + function useCallback(callback, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useCallback(callback, deps); + } + function useMemo3(create3, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useMemo(create3, deps); + } + function useImperativeHandle(ref, create3, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useImperativeHandle(ref, create3, deps); + } + function useDebugValue(value, formatterFn) { + { + var dispatcher = resolveDispatcher(); + return dispatcher.useDebugValue(value, formatterFn); + } + } + var disabledDepth = 0; + var prevLog; + var prevInfo; + var prevWarn; + var prevError; + var prevGroup; + var prevGroupCollapsed; + var prevGroupEnd; + function disabledLog() { + } + disabledLog.__reactDisabledLog = true; + function disableLogs() { + { + if (disabledDepth === 0) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props2 = { + configurable: true, + enumerable: true, + value: disabledLog, + writable: true + }; + Object.defineProperties(console, { + info: props2, + log: props2, + warn: props2, + error: props2, + group: props2, + groupCollapsed: props2, + groupEnd: props2 + }); } + disabledDepth++; } - return true; } - function warnInvalidARIAProps(type2, props2) { + function reenableLogs() { { - var invalidProps = []; - for (var key in props2) { - var isValid = validateProperty(type2, key); - if (!isValid) { - invalidProps.push(key); - } + disabledDepth--; + if (disabledDepth === 0) { + var props2 = { + configurable: true, + enumerable: true, + writable: true + }; + Object.defineProperties(console, { + log: _assign({}, props2, { + value: prevLog + }), + info: _assign({}, props2, { + value: prevInfo + }), + warn: _assign({}, props2, { + value: prevWarn + }), + error: _assign({}, props2, { + value: prevError + }), + group: _assign({}, props2, { + value: prevGroup + }), + groupCollapsed: _assign({}, props2, { + value: prevGroupCollapsed + }), + groupEnd: _assign({}, props2, { + value: prevGroupEnd + }) + }); } - var unknownPropString = invalidProps.map(function(prop) { - return "`" + prop + "`"; - }).join(", "); - if (invalidProps.length === 1) { - error("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props", unknownPropString, type2); - } else if (invalidProps.length > 1) { - error("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props", unknownPropString, type2); + if (disabledDepth < 0) { + error("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } } - function validateProperties(type2, props2) { - if (isCustomComponent(type2, props2)) { - return; + var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher; + var prefix; + function describeBuiltInComponentFrame(name, source, ownerFn) { + { + if (prefix === void 0) { + try { + throw Error(); + } catch (x2) { + var match = x2.stack.trim().match(/\n( *(at )?)/); + prefix = match && match[1] || ""; + } + } + return "\n" + prefix + name; } - warnInvalidARIAProps(type2, props2); } - var didWarnValueNull = false; - function validateProperties$1(type2, props2) { + var reentry = false; + var componentFrameCache; + { + var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; + componentFrameCache = new PossiblyWeakMap(); + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) { + return ""; + } { - if (type2 !== "input" && type2 !== "textarea" && type2 !== "select") { - return; + var frame2 = componentFrameCache.get(fn); + if (frame2 !== void 0) { + return frame2; } - if (props2 != null && props2.value === null && !didWarnValueNull) { - didWarnValueNull = true; - if (type2 === "select" && props2.multiple) { - error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.", type2); + } + var control; + reentry = true; + var previousPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher; + { + previousDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = null; + disableLogs(); + } + try { + if (construct) { + var Fake = function() { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function() { + throw Error(); + } + }); + if (typeof Reflect === "object" && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x2) { + control = x2; + } + Reflect.construct(fn, [], Fake); } else { - error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.", type2); + try { + Fake.call(); + } catch (x2) { + control = x2; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x2) { + control = x2; + } + fn(); + } + } catch (sample) { + if (sample && control && typeof sample.stack === "string") { + var sampleLines = sample.stack.split("\n"); + var controlLines = control.stack.split("\n"); + var s = sampleLines.length - 1; + var c3 = controlLines.length - 1; + while (s >= 1 && c3 >= 0 && sampleLines[s] !== controlLines[c3]) { + c3--; + } + for (; s >= 1 && c3 >= 0; s--, c3--) { + if (sampleLines[s] !== controlLines[c3]) { + if (s !== 1 || c3 !== 1) { + do { + s--; + c3--; + if (c3 < 0 || sampleLines[s] !== controlLines[c3]) { + var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); + { + if (typeof fn === "function") { + componentFrameCache.set(fn, _frame); + } + } + return _frame; + } + } while (s >= 1 && c3 >= 0); + } + break; + } + } + } + } finally { + reentry = false; + { + ReactCurrentDispatcher$1.current = previousDispatcher; + reenableLogs(); + } + Error.prepareStackTrace = previousPrepareStackTrace; + } + var name = fn ? fn.displayName || fn.name : ""; + var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ""; + { + if (typeof fn === "function") { + componentFrameCache.set(fn, syntheticFrame); + } + } + return syntheticFrame; + } + function describeFunctionComponentFrame(fn, source, ownerFn) { + { + return describeNativeComponentFrame(fn, false); + } + } + function shouldConstruct(Component2) { + var prototype = Component2.prototype; + return !!(prototype && prototype.isReactComponent); + } + function describeUnknownElementTypeFrameInDEV(type2, source, ownerFn) { + if (type2 == null) { + return ""; + } + if (typeof type2 === "function") { + { + return describeNativeComponentFrame(type2, shouldConstruct(type2)); + } + } + if (typeof type2 === "string") { + return describeBuiltInComponentFrame(type2); + } + switch (type2) { + case exports2.Suspense: + return describeBuiltInComponentFrame("Suspense"); + case REACT_SUSPENSE_LIST_TYPE: + return describeBuiltInComponentFrame("SuspenseList"); + } + if (typeof type2 === "object") { + switch (type2.$$typeof) { + case REACT_FORWARD_REF_TYPE: + return describeFunctionComponentFrame(type2.render); + case REACT_MEMO_TYPE: + return describeUnknownElementTypeFrameInDEV(type2.type, source, ownerFn); + case REACT_BLOCK_TYPE: + return describeFunctionComponentFrame(type2._render); + case REACT_LAZY_TYPE: { + var lazyComponent = type2; + var payload = lazyComponent._payload; + var init2 = lazyComponent._init; + try { + return describeUnknownElementTypeFrameInDEV(init2(payload), source, ownerFn); + } catch (x2) { + } + } + } + } + return ""; + } + var loggedTypeFailures = {}; + var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; + function setCurrentlyValidatingElement(element) { + { + if (element) { + var owner = element._owner; + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); + ReactDebugCurrentFrame$1.setExtraStackFrame(stack); + } else { + ReactDebugCurrentFrame$1.setExtraStackFrame(null); + } + } + } + function checkPropTypes(typeSpecs, values, location, componentName, element) { + { + var has = Function.call.bind(Object.prototype.hasOwnProperty); + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error$1 = void 0; + try { + if (typeof typeSpecs[typeSpecName] !== "function") { + var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); + err.name = "Invariant Violation"; + throw err; + } + error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); + } catch (ex2) { + error$1 = ex2; + } + if (error$1 && !(error$1 instanceof Error)) { + setCurrentlyValidatingElement(element); + error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1); + setCurrentlyValidatingElement(null); + } + if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { + loggedTypeFailures[error$1.message] = true; + setCurrentlyValidatingElement(element); + error("Failed %s type: %s", location, error$1.message); + setCurrentlyValidatingElement(null); + } + } + } + } + } + function setCurrentlyValidatingElement$1(element) { + { + if (element) { + var owner = element._owner; + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); + setExtraStackFrame(stack); + } else { + setExtraStackFrame(null); + } + } + } + var propTypesMisspellWarningShown; + { + propTypesMisspellWarningShown = false; + } + function getDeclarationErrorAddendum() { + if (ReactCurrentOwner.current) { + var name = getComponentName(ReactCurrentOwner.current.type); + if (name) { + return "\n\nCheck the render method of `" + name + "`."; + } + } + return ""; + } + function getSourceInfoErrorAddendum(source) { + if (source !== void 0) { + var fileName = source.fileName.replace(/^.*[\\\/]/, ""); + var lineNumber = source.lineNumber; + return "\n\nCheck your code at " + fileName + ":" + lineNumber + "."; + } + return ""; + } + function getSourceInfoErrorAddendumForProps(elementProps) { + if (elementProps !== null && elementProps !== void 0) { + return getSourceInfoErrorAddendum(elementProps.__source); + } + return ""; + } + var ownerHasKeyUseWarning = {}; + function getCurrentComponentErrorInfo(parentType) { + var info2 = getDeclarationErrorAddendum(); + if (!info2) { + var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name; + if (parentName) { + info2 = "\n\nCheck the top-level render call using <" + parentName + ">."; + } + } + return info2; + } + function validateExplicitKey(element, parentType) { + if (!element._store || element._store.validated || element.key != null) { + return; + } + element._store.validated = true; + var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { + return; + } + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; + var childOwner = ""; + if (element && element._owner && element._owner !== ReactCurrentOwner.current) { + childOwner = " It was passed a child from " + getComponentName(element._owner.type) + "."; + } + { + setCurrentlyValidatingElement$1(element); + error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner); + setCurrentlyValidatingElement$1(null); + } + } + function validateChildKeys(node, parentType) { + if (typeof node !== "object") { + return; + } + if (Array.isArray(node)) { + for (var i = 0; i < node.length; i++) { + var child = node[i]; + if (isValidElement(child)) { + validateExplicitKey(child, parentType); + } + } + } else if (isValidElement(node)) { + if (node._store) { + node._store.validated = true; + } + } else if (node) { + var iteratorFn = getIteratorFn(node); + if (typeof iteratorFn === "function") { + if (iteratorFn !== node.entries) { + var iterator = iteratorFn.call(node); + var step; + while (!(step = iterator.next()).done) { + if (isValidElement(step.value)) { + validateExplicitKey(step.value, parentType); + } + } + } + } + } + } + function validatePropTypes(element) { + { + var type2 = element.type; + if (type2 === null || type2 === void 0 || typeof type2 === "string") { + return; + } + var propTypes; + if (typeof type2 === "function") { + propTypes = type2.propTypes; + } else if (typeof type2 === "object" && (type2.$$typeof === REACT_FORWARD_REF_TYPE || type2.$$typeof === REACT_MEMO_TYPE)) { + propTypes = type2.propTypes; + } else { + return; + } + if (propTypes) { + var name = getComponentName(type2); + checkPropTypes(propTypes, element.props, "prop", name, element); + } else if (type2.PropTypes !== void 0 && !propTypesMisspellWarningShown) { + propTypesMisspellWarningShown = true; + var _name = getComponentName(type2); + error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown"); + } + if (typeof type2.getDefaultProps === "function" && !type2.getDefaultProps.isReactClassApproved) { + error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); + } + } + } + function validateFragmentProps(fragment) { + { + var keys = Object.keys(fragment.props); + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (key !== "children" && key !== "key") { + setCurrentlyValidatingElement$1(fragment); + error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key); + setCurrentlyValidatingElement$1(null); + break; + } + } + if (fragment.ref !== null) { + setCurrentlyValidatingElement$1(fragment); + error("Invalid attribute `ref` supplied to `React.Fragment`."); + setCurrentlyValidatingElement$1(null); + } + } + } + function createElementWithValidation(type2, props2, children2) { + var validType = isValidElementType(type2); + if (!validType) { + var info2 = ""; + if (type2 === void 0 || typeof type2 === "object" && type2 !== null && Object.keys(type2).length === 0) { + info2 += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."; + } + var sourceInfo = getSourceInfoErrorAddendumForProps(props2); + if (sourceInfo) { + info2 += sourceInfo; + } else { + info2 += getDeclarationErrorAddendum(); + } + var typeString; + if (type2 === null) { + typeString = "null"; + } else if (Array.isArray(type2)) { + typeString = "array"; + } else if (type2 !== void 0 && type2.$$typeof === REACT_ELEMENT_TYPE) { + typeString = "<" + (getComponentName(type2.type) || "Unknown") + " />"; + info2 = " Did you accidentally export a JSX literal instead of a component?"; + } else { + typeString = typeof type2; + } + { + error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info2); + } + } + var element = createElement.apply(this, arguments); + if (element == null) { + return element; + } + if (validType) { + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], type2); + } + } + if (type2 === exports2.Fragment) { + validateFragmentProps(element); + } else { + validatePropTypes(element); + } + return element; + } + var didWarnAboutDeprecatedCreateFactory = false; + function createFactoryWithValidation(type2) { + var validatedFactory = createElementWithValidation.bind(null, type2); + validatedFactory.type = type2; + { + if (!didWarnAboutDeprecatedCreateFactory) { + didWarnAboutDeprecatedCreateFactory = true; + warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead."); + } + Object.defineProperty(validatedFactory, "type", { + enumerable: false, + get: function() { + warn("Factory.type is deprecated. Access the class directly before passing it to createFactory."); + Object.defineProperty(this, "type", { + value: type2 + }); + return type2; + } + }); + } + return validatedFactory; + } + function cloneElementWithValidation(element, props2, children2) { + var newElement = cloneElement.apply(this, arguments); + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], newElement.type); + } + validatePropTypes(newElement); + return newElement; + } + { + try { + var frozenObject = Object.freeze({}); + new Map([[frozenObject, null]]); + new Set([frozenObject]); + } catch (e3) { + } + } + var createElement$1 = createElementWithValidation; + var cloneElement$1 = cloneElementWithValidation; + var createFactory = createFactoryWithValidation; + var Children = { + map: mapChildren2, + forEach: forEachChildren, + count: countChildren, + toArray, + only: onlyChild + }; + exports2.Children = Children; + exports2.Component = Component; + exports2.PureComponent = PureComponent; + exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals; + exports2.cloneElement = cloneElement$1; + exports2.createContext = createContext; + exports2.createElement = createElement$1; + exports2.createFactory = createFactory; + exports2.createRef = createRef; + exports2.forwardRef = forwardRef; + exports2.isValidElement = isValidElement; + exports2.lazy = lazy; + exports2.memo = memo; + exports2.useCallback = useCallback; + exports2.useContext = useContext; + exports2.useDebugValue = useDebugValue; + exports2.useEffect = useEffect; + exports2.useImperativeHandle = useImperativeHandle; + exports2.useLayoutEffect = useLayoutEffect; + exports2.useMemo = useMemo3; + exports2.useReducer = useReducer; + exports2.useRef = useRef2; + exports2.useState = useState2; + exports2.version = ReactVersion; + })(); + } + } +}); + +// node_modules/react/index.js +var require_react = __commonJS({ + "node_modules/react/index.js"(exports2, module2) { + "use strict"; + if (process.env.NODE_ENV === "production") { + module2.exports = require_react_production_min(); + } else { + module2.exports = require_react_development(); + } + } +}); + +// node_modules/react-dom/cjs/react-dom-server.node.production.min.js +var require_react_dom_server_node_production_min = __commonJS({ + "node_modules/react-dom/cjs/react-dom-server.node.production.min.js"(exports2) { + "use strict"; + var l2 = require_object_assign(); + var n2 = require_react(); + var aa = require("stream"); + function p2(a2) { + for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a2, c3 = 1; c3 < arguments.length; c3++) + b += "&args[]=" + encodeURIComponent(arguments[c3]); + return "Minified React error #" + a2 + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + } + var q2 = 60106; + var r4 = 60107; + var u = 60108; + var z = 60114; + var B = 60109; + var ba = 60110; + var ca = 60112; + var D = 60113; + var da = 60120; + var ea = 60115; + var fa = 60116; + var ha = 60121; + var ia = 60117; + var ja = 60119; + var ka = 60129; + var la = 60131; + if (typeof Symbol === "function" && Symbol.for) { + E2 = Symbol.for; + q2 = E2("react.portal"); + r4 = E2("react.fragment"); + u = E2("react.strict_mode"); + z = E2("react.profiler"); + B = E2("react.provider"); + ba = E2("react.context"); + ca = E2("react.forward_ref"); + D = E2("react.suspense"); + da = E2("react.suspense_list"); + ea = E2("react.memo"); + fa = E2("react.lazy"); + ha = E2("react.block"); + ia = E2("react.fundamental"); + ja = E2("react.scope"); + ka = E2("react.debug_trace_mode"); + la = E2("react.legacy_hidden"); + } + var E2; + function F(a2) { + if (a2 == null) + return null; + if (typeof a2 === "function") + return a2.displayName || a2.name || null; + if (typeof a2 === "string") + return a2; + switch (a2) { + case r4: + return "Fragment"; + case q2: + return "Portal"; + case z: + return "Profiler"; + case u: + return "StrictMode"; + case D: + return "Suspense"; + case da: + return "SuspenseList"; + } + if (typeof a2 === "object") + switch (a2.$$typeof) { + case ba: + return (a2.displayName || "Context") + ".Consumer"; + case B: + return (a2._context.displayName || "Context") + ".Provider"; + case ca: + var b = a2.render; + b = b.displayName || b.name || ""; + return a2.displayName || (b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"); + case ea: + return F(a2.type); + case ha: + return F(a2._render); + case fa: + b = a2._payload; + a2 = a2._init; + try { + return F(a2(b)); + } catch (c3) { + } + } + return null; + } + var ma2 = n2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + var na = {}; + function I(a2, b) { + for (var c3 = a2._threadCount | 0; c3 <= b; c3++) + a2[c3] = a2._currentValue2, a2._threadCount = c3 + 1; + } + function oa(a2, b, c3, d2) { + if (d2 && (d2 = a2.contextType, typeof d2 === "object" && d2 !== null)) + return I(d2, c3), d2[c3]; + if (a2 = a2.contextTypes) { + c3 = {}; + for (var f2 in a2) + c3[f2] = b[f2]; + b = c3; + } else + b = na; + return b; + } + for (var J = new Uint16Array(16), K = 0; 15 > K; K++) + J[K] = K + 1; + J[15] = 0; + var pa = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/; + var qa = Object.prototype.hasOwnProperty; + var ra = {}; + var sa = {}; + function ta(a2) { + if (qa.call(sa, a2)) + return true; + if (qa.call(ra, a2)) + return false; + if (pa.test(a2)) + return sa[a2] = true; + ra[a2] = true; + return false; + } + function ua(a2, b, c3, d2) { + if (c3 !== null && c3.type === 0) + return false; + switch (typeof b) { + case "function": + case "symbol": + return true; + case "boolean": + if (d2) + return false; + if (c3 !== null) + return !c3.acceptsBooleans; + a2 = a2.toLowerCase().slice(0, 5); + return a2 !== "data-" && a2 !== "aria-"; + default: + return false; + } + } + function va(a2, b, c3, d2) { + if (b === null || typeof b === "undefined" || ua(a2, b, c3, d2)) + return true; + if (d2) + return false; + if (c3 !== null) + switch (c3.type) { + case 3: + return !b; + case 4: + return b === false; + case 5: + return isNaN(b); + case 6: + return isNaN(b) || 1 > b; + } + return false; + } + function M(a2, b, c3, d2, f2, h2, t2) { + this.acceptsBooleans = b === 2 || b === 3 || b === 4; + this.attributeName = d2; + this.attributeNamespace = f2; + this.mustUseProperty = c3; + this.propertyName = a2; + this.type = b; + this.sanitizeURL = h2; + this.removeEmptyString = t2; + } + var N = {}; + "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a2) { + N[a2] = new M(a2, 0, false, a2, null, false, false); + }); + [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a2) { + var b = a2[0]; + N[b] = new M(b, 1, false, a2[1], null, false, false); + }); + ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a2) { + N[a2] = new M(a2, 2, false, a2.toLowerCase(), null, false, false); + }); + ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a2) { + N[a2] = new M(a2, 2, false, a2, null, false, false); + }); + "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a2) { + N[a2] = new M(a2, 3, false, a2.toLowerCase(), null, false, false); + }); + ["checked", "multiple", "muted", "selected"].forEach(function(a2) { + N[a2] = new M(a2, 3, true, a2, null, false, false); + }); + ["capture", "download"].forEach(function(a2) { + N[a2] = new M(a2, 4, false, a2, null, false, false); + }); + ["cols", "rows", "size", "span"].forEach(function(a2) { + N[a2] = new M(a2, 6, false, a2, null, false, false); + }); + ["rowSpan", "start"].forEach(function(a2) { + N[a2] = new M(a2, 5, false, a2.toLowerCase(), null, false, false); + }); + var wa = /[\-:]([a-z])/g; + function xa(a2) { + return a2[1].toUpperCase(); + } + "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a2) { + var b = a2.replace(wa, xa); + N[b] = new M(b, 1, false, a2, null, false, false); + }); + "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a2) { + var b = a2.replace(wa, xa); + N[b] = new M(b, 1, false, a2, "http://www.w3.org/1999/xlink", false, false); + }); + ["xml:base", "xml:lang", "xml:space"].forEach(function(a2) { + var b = a2.replace(wa, xa); + N[b] = new M(b, 1, false, a2, "http://www.w3.org/XML/1998/namespace", false, false); + }); + ["tabIndex", "crossOrigin"].forEach(function(a2) { + N[a2] = new M(a2, 1, false, a2.toLowerCase(), null, false, false); + }); + N.xlinkHref = new M("xlinkHref", 1, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false); + ["src", "href", "action", "formAction"].forEach(function(a2) { + N[a2] = new M(a2, 1, false, a2.toLowerCase(), null, true, true); + }); + var ya = /["'&<>]/; + function O(a2) { + if (typeof a2 === "boolean" || typeof a2 === "number") + return "" + a2; + a2 = "" + a2; + var b = ya.exec(a2); + if (b) { + var c3 = "", d2, f2 = 0; + for (d2 = b.index; d2 < a2.length; d2++) { + switch (a2.charCodeAt(d2)) { + case 34: + b = """; + break; + case 38: + b = "&"; + break; + case 39: + b = "'"; + break; + case 60: + b = "<"; + break; + case 62: + b = ">"; + break; + default: + continue; + } + f2 !== d2 && (c3 += a2.substring(f2, d2)); + f2 = d2 + 1; + c3 += b; + } + a2 = f2 !== d2 ? c3 + a2.substring(f2, d2) : c3; + } + return a2; + } + function za(a2, b) { + var c3 = N.hasOwnProperty(a2) ? N[a2] : null; + var d2; + if (d2 = a2 !== "style") + d2 = c3 !== null ? c3.type === 0 : !(2 < a2.length) || a2[0] !== "o" && a2[0] !== "O" || a2[1] !== "n" && a2[1] !== "N" ? false : true; + if (d2 || va(a2, b, c3, false)) + return ""; + if (c3 !== null) { + a2 = c3.attributeName; + d2 = c3.type; + if (d2 === 3 || d2 === 4 && b === true) + return a2 + '=""'; + c3.sanitizeURL && (b = "" + b); + return a2 + '="' + (O(b) + '"'); + } + return ta(a2) ? a2 + '="' + (O(b) + '"') : ""; + } + function Aa(a2, b) { + return a2 === b && (a2 !== 0 || 1 / a2 === 1 / b) || a2 !== a2 && b !== b; + } + var Ba = typeof Object.is === "function" ? Object.is : Aa; + var P = null; + var Q = null; + var R = null; + var S = false; + var T = false; + var U = null; + var V = 0; + function W() { + if (P === null) + throw Error(p2(321)); + return P; + } + function Ca() { + if (0 < V) + throw Error(p2(312)); + return { memoizedState: null, queue: null, next: null }; + } + function Da() { + R === null ? Q === null ? (S = false, Q = R = Ca()) : (S = true, R = Q) : R.next === null ? (S = false, R = R.next = Ca()) : (S = true, R = R.next); + return R; + } + function Ea(a2, b, c3, d2) { + for (; T; ) + T = false, V += 1, R = null, c3 = a2(b, d2); + Fa(); + return c3; + } + function Fa() { + P = null; + T = false; + Q = null; + V = 0; + R = U = null; + } + function Ga(a2, b) { + return typeof b === "function" ? b(a2) : b; + } + function Ha(a2, b, c3) { + P = W(); + R = Da(); + if (S) { + var d2 = R.queue; + b = d2.dispatch; + if (U !== null && (c3 = U.get(d2), c3 !== void 0)) { + U.delete(d2); + d2 = R.memoizedState; + do + d2 = a2(d2, c3.action), c3 = c3.next; + while (c3 !== null); + R.memoizedState = d2; + return [d2, b]; + } + return [R.memoizedState, b]; + } + a2 = a2 === Ga ? typeof b === "function" ? b() : b : c3 !== void 0 ? c3(b) : b; + R.memoizedState = a2; + a2 = R.queue = { last: null, dispatch: null }; + a2 = a2.dispatch = Ia.bind(null, P, a2); + return [R.memoizedState, a2]; + } + function Ja(a2, b) { + P = W(); + R = Da(); + b = b === void 0 ? null : b; + if (R !== null) { + var c3 = R.memoizedState; + if (c3 !== null && b !== null) { + var d2 = c3[1]; + a: + if (d2 === null) + d2 = false; + else { + for (var f2 = 0; f2 < d2.length && f2 < b.length; f2++) + if (!Ba(b[f2], d2[f2])) { + d2 = false; + break a; + } + d2 = true; + } + if (d2) + return c3[0]; + } + } + a2 = a2(); + R.memoizedState = [a2, b]; + return a2; + } + function Ia(a2, b, c3) { + if (!(25 > V)) + throw Error(p2(301)); + if (a2 === P) + if (T = true, a2 = { action: c3, next: null }, U === null && (U = new Map()), c3 = U.get(b), c3 === void 0) + U.set(b, a2); + else { + for (b = c3; b.next !== null; ) + b = b.next; + b.next = a2; + } + } + function Ka() { + } + var X2 = null; + var La = { readContext: function(a2) { + var b = X2.threadID; + I(a2, b); + return a2[b]; + }, useContext: function(a2) { + W(); + var b = X2.threadID; + I(a2, b); + return a2[b]; + }, useMemo: Ja, useReducer: Ha, useRef: function(a2) { + P = W(); + R = Da(); + var b = R.memoizedState; + return b === null ? (a2 = { current: a2 }, R.memoizedState = a2) : b; + }, useState: function(a2) { + return Ha(Ga, a2); + }, useLayoutEffect: function() { + }, useCallback: function(a2, b) { + return Ja(function() { + return a2; + }, b); + }, useImperativeHandle: Ka, useEffect: Ka, useDebugValue: Ka, useDeferredValue: function(a2) { + W(); + return a2; + }, useTransition: function() { + W(); + return [function(a2) { + a2(); + }, false]; + }, useOpaqueIdentifier: function() { + return (X2.identifierPrefix || "") + "R:" + (X2.uniqueID++).toString(36); + }, useMutableSource: function(a2, b) { + W(); + return b(a2._source); + } }; + var Ma = { html: "http://www.w3.org/1999/xhtml", mathml: "http://www.w3.org/1998/Math/MathML", svg: "http://www.w3.org/2000/svg" }; + function Na(a2) { + switch (a2) { + case "svg": + return "http://www.w3.org/2000/svg"; + case "math": + return "http://www.w3.org/1998/Math/MathML"; + default: + return "http://www.w3.org/1999/xhtml"; + } + } + var Oa = { area: true, base: true, br: true, col: true, embed: true, hr: true, img: true, input: true, keygen: true, link: true, meta: true, param: true, source: true, track: true, wbr: true }; + var Pa = l2({ menuitem: true }, Oa); + var Y2 = { + animationIterationCount: true, + borderImageOutset: true, + borderImageSlice: true, + borderImageWidth: true, + boxFlex: true, + boxFlexGroup: true, + boxOrdinalGroup: true, + columnCount: true, + columns: true, + flex: true, + flexGrow: true, + flexPositive: true, + flexShrink: true, + flexNegative: true, + flexOrder: true, + gridArea: true, + gridRow: true, + gridRowEnd: true, + gridRowSpan: true, + gridRowStart: true, + gridColumn: true, + gridColumnEnd: true, + gridColumnSpan: true, + gridColumnStart: true, + fontWeight: true, + lineClamp: true, + lineHeight: true, + opacity: true, + order: true, + orphans: true, + tabSize: true, + widows: true, + zIndex: true, + zoom: true, + fillOpacity: true, + floodOpacity: true, + stopOpacity: true, + strokeDasharray: true, + strokeDashoffset: true, + strokeMiterlimit: true, + strokeOpacity: true, + strokeWidth: true + }; + var Qa = ["Webkit", "ms", "Moz", "O"]; + Object.keys(Y2).forEach(function(a2) { + Qa.forEach(function(b) { + b = b + a2.charAt(0).toUpperCase() + a2.substring(1); + Y2[b] = Y2[a2]; + }); + }); + var Ra = /([A-Z])/g; + var Sa = /^ms-/; + var Z = n2.Children.toArray; + var Ta = ma2.ReactCurrentDispatcher; + var Ua = { listing: true, pre: true, textarea: true }; + var Va = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/; + var Wa = {}; + var Xa = {}; + function Ya(a2) { + if (a2 === void 0 || a2 === null) + return a2; + var b = ""; + n2.Children.forEach(a2, function(a3) { + a3 != null && (b += a3); + }); + return b; + } + var Za = Object.prototype.hasOwnProperty; + var $a = { children: null, dangerouslySetInnerHTML: null, suppressContentEditableWarning: null, suppressHydrationWarning: null }; + function ab(a2, b) { + if (a2 === void 0) + throw Error(p2(152, F(b) || "Component")); + } + function bb2(a2, b, c3) { + function d2(d3, h3) { + var e3 = h3.prototype && h3.prototype.isReactComponent, f3 = oa(h3, b, c3, e3), t2 = [], g2 = false, m4 = { isMounted: function() { + return false; + }, enqueueForceUpdate: function() { + if (t2 === null) + return null; + }, enqueueReplaceState: function(a3, b2) { + g2 = true; + t2 = [b2]; + }, enqueueSetState: function(a3, b2) { + if (t2 === null) + return null; + t2.push(b2); + } }; + if (e3) { + if (e3 = new h3(d3.props, f3, m4), typeof h3.getDerivedStateFromProps === "function") { + var k = h3.getDerivedStateFromProps.call(null, d3.props, e3.state); + k != null && (e3.state = l2({}, e3.state, k)); + } + } else if (P = {}, e3 = h3(d3.props, f3, m4), e3 = Ea(h3, d3.props, e3, f3), e3 == null || e3.render == null) { + a2 = e3; + ab(a2, h3); + return; + } + e3.props = d3.props; + e3.context = f3; + e3.updater = m4; + m4 = e3.state; + m4 === void 0 && (e3.state = m4 = null); + if (typeof e3.UNSAFE_componentWillMount === "function" || typeof e3.componentWillMount === "function") + if (typeof e3.componentWillMount === "function" && typeof h3.getDerivedStateFromProps !== "function" && e3.componentWillMount(), typeof e3.UNSAFE_componentWillMount === "function" && typeof h3.getDerivedStateFromProps !== "function" && e3.UNSAFE_componentWillMount(), t2.length) { + m4 = t2; + var v2 = g2; + t2 = null; + g2 = false; + if (v2 && m4.length === 1) + e3.state = m4[0]; + else { + k = v2 ? m4[0] : e3.state; + var H = true; + for (v2 = v2 ? 1 : 0; v2 < m4.length; v2++) { + var x2 = m4[v2]; + x2 = typeof x2 === "function" ? x2.call(e3, k, d3.props, f3) : x2; + x2 != null && (H ? (H = false, k = l2({}, k, x2)) : l2(k, x2)); + } + e3.state = k; + } + } else + t2 = null; + a2 = e3.render(); + ab(a2, h3); + if (typeof e3.getChildContext === "function" && (d3 = h3.childContextTypes, typeof d3 === "object")) { + var y3 = e3.getChildContext(); + for (var A in y3) + if (!(A in d3)) + throw Error(p2(108, F(h3) || "Unknown", A)); + } + y3 && (b = l2({}, b, y3)); + } + for (; n2.isValidElement(a2); ) { + var f2 = a2, h2 = f2.type; + if (typeof h2 !== "function") + break; + d2(f2, h2); + } + return { child: a2, context: b }; + } + var cb = function() { + function a2(a3, b2, f2) { + n2.isValidElement(a3) ? a3.type !== r4 ? a3 = [a3] : (a3 = a3.props.children, a3 = n2.isValidElement(a3) ? [a3] : Z(a3)) : a3 = Z(a3); + a3 = { type: null, domNamespace: Ma.html, children: a3, childIndex: 0, context: na, footer: "" }; + var c3 = J[0]; + if (c3 === 0) { + var d2 = J; + c3 = d2.length; + var g2 = 2 * c3; + if (!(65536 >= g2)) + throw Error(p2(304)); + var e3 = new Uint16Array(g2); + e3.set(d2); + J = e3; + J[0] = c3 + 1; + for (d2 = c3; d2 < g2 - 1; d2++) + J[d2] = d2 + 1; + J[g2 - 1] = 0; + } else + J[0] = J[c3]; + this.threadID = c3; + this.stack = [a3]; + this.exhausted = false; + this.currentSelectValue = null; + this.previousWasTextNode = false; + this.makeStaticMarkup = b2; + this.suspenseDepth = 0; + this.contextIndex = -1; + this.contextStack = []; + this.contextValueStack = []; + this.uniqueID = 0; + this.identifierPrefix = f2 && f2.identifierPrefix || ""; + } + var b = a2.prototype; + b.destroy = function() { + if (!this.exhausted) { + this.exhausted = true; + this.clearProviders(); + var a3 = this.threadID; + J[a3] = J[0]; + J[0] = a3; + } + }; + b.pushProvider = function(a3) { + var b2 = ++this.contextIndex, c3 = a3.type._context, h2 = this.threadID; + I(c3, h2); + var t2 = c3[h2]; + this.contextStack[b2] = c3; + this.contextValueStack[b2] = t2; + c3[h2] = a3.props.value; + }; + b.popProvider = function() { + var a3 = this.contextIndex, b2 = this.contextStack[a3], f2 = this.contextValueStack[a3]; + this.contextStack[a3] = null; + this.contextValueStack[a3] = null; + this.contextIndex--; + b2[this.threadID] = f2; + }; + b.clearProviders = function() { + for (var a3 = this.contextIndex; 0 <= a3; a3--) + this.contextStack[a3][this.threadID] = this.contextValueStack[a3]; + }; + b.read = function(a3) { + if (this.exhausted) + return null; + var b2 = X2; + X2 = this; + var c3 = Ta.current; + Ta.current = La; + try { + for (var h2 = [""], t2 = false; h2[0].length < a3; ) { + if (this.stack.length === 0) { + this.exhausted = true; + var g2 = this.threadID; + J[g2] = J[0]; + J[0] = g2; + break; + } + var e3 = this.stack[this.stack.length - 1]; + if (t2 || e3.childIndex >= e3.children.length) { + var L = e3.footer; + L !== "" && (this.previousWasTextNode = false); + this.stack.pop(); + if (e3.type === "select") + this.currentSelectValue = null; + else if (e3.type != null && e3.type.type != null && e3.type.type.$$typeof === B) + this.popProvider(e3.type); + else if (e3.type === D) { + this.suspenseDepth--; + var G = h2.pop(); + if (t2) { + t2 = false; + var C = e3.fallbackFrame; + if (!C) + throw Error(p2(303)); + this.stack.push(C); + h2[this.suspenseDepth] += ""; + continue; + } else + h2[this.suspenseDepth] += G; + } + h2[this.suspenseDepth] += L; + } else { + var m4 = e3.children[e3.childIndex++], k = ""; + try { + k += this.render(m4, e3.context, e3.domNamespace); + } catch (v2) { + if (v2 != null && typeof v2.then === "function") + throw Error(p2(294)); + throw v2; + } finally { + } + h2.length <= this.suspenseDepth && h2.push(""); + h2[this.suspenseDepth] += k; + } + } + return h2[0]; + } finally { + Ta.current = c3, X2 = b2, Fa(); + } + }; + b.render = function(a3, b2, f2) { + if (typeof a3 === "string" || typeof a3 === "number") { + f2 = "" + a3; + if (f2 === "") + return ""; + if (this.makeStaticMarkup) + return O(f2); + if (this.previousWasTextNode) + return "" + O(f2); + this.previousWasTextNode = true; + return O(f2); + } + b2 = bb2(a3, b2, this.threadID); + a3 = b2.child; + b2 = b2.context; + if (a3 === null || a3 === false) + return ""; + if (!n2.isValidElement(a3)) { + if (a3 != null && a3.$$typeof != null) { + f2 = a3.$$typeof; + if (f2 === q2) + throw Error(p2(257)); + throw Error(p2(258, f2.toString())); + } + a3 = Z(a3); + this.stack.push({ type: null, domNamespace: f2, children: a3, childIndex: 0, context: b2, footer: "" }); + return ""; + } + var c3 = a3.type; + if (typeof c3 === "string") + return this.renderDOM(a3, b2, f2); + switch (c3) { + case la: + case ka: + case u: + case z: + case da: + case r4: + return a3 = Z(a3.props.children), this.stack.push({ + type: null, + domNamespace: f2, + children: a3, + childIndex: 0, + context: b2, + footer: "" + }), ""; + case D: + throw Error(p2(294)); + case ja: + throw Error(p2(343)); + } + if (typeof c3 === "object" && c3 !== null) + switch (c3.$$typeof) { + case ca: + P = {}; + var d2 = c3.render(a3.props, a3.ref); + d2 = Ea(c3.render, a3.props, d2, a3.ref); + d2 = Z(d2); + this.stack.push({ type: null, domNamespace: f2, children: d2, childIndex: 0, context: b2, footer: "" }); + return ""; + case ea: + return a3 = [n2.createElement(c3.type, l2({ ref: a3.ref }, a3.props))], this.stack.push({ type: null, domNamespace: f2, children: a3, childIndex: 0, context: b2, footer: "" }), ""; + case B: + return c3 = Z(a3.props.children), f2 = { type: a3, domNamespace: f2, children: c3, childIndex: 0, context: b2, footer: "" }, this.pushProvider(a3), this.stack.push(f2), ""; + case ba: + c3 = a3.type; + d2 = a3.props; + var g2 = this.threadID; + I(c3, g2); + c3 = Z(d2.children(c3[g2])); + this.stack.push({ type: a3, domNamespace: f2, children: c3, childIndex: 0, context: b2, footer: "" }); + return ""; + case ia: + throw Error(p2(338)); + case fa: + return c3 = a3.type, d2 = c3._init, c3 = d2(c3._payload), a3 = [n2.createElement(c3, l2({ ref: a3.ref }, a3.props))], this.stack.push({ + type: null, + domNamespace: f2, + children: a3, + childIndex: 0, + context: b2, + footer: "" + }), ""; + } + throw Error(p2(130, c3 == null ? c3 : typeof c3, "")); + }; + b.renderDOM = function(a3, b2, f2) { + var c3 = a3.type.toLowerCase(); + f2 === Ma.html && Na(c3); + if (!Wa.hasOwnProperty(c3)) { + if (!Va.test(c3)) + throw Error(p2(65, c3)); + Wa[c3] = true; + } + var d2 = a3.props; + if (c3 === "input") + d2 = l2({ type: void 0 }, d2, { defaultChecked: void 0, defaultValue: void 0, value: d2.value != null ? d2.value : d2.defaultValue, checked: d2.checked != null ? d2.checked : d2.defaultChecked }); + else if (c3 === "textarea") { + var g2 = d2.value; + if (g2 == null) { + g2 = d2.defaultValue; + var e3 = d2.children; + if (e3 != null) { + if (g2 != null) + throw Error(p2(92)); + if (Array.isArray(e3)) { + if (!(1 >= e3.length)) + throw Error(p2(93)); + e3 = e3[0]; + } + g2 = "" + e3; + } + g2 == null && (g2 = ""); + } + d2 = l2({}, d2, { value: void 0, children: "" + g2 }); + } else if (c3 === "select") + this.currentSelectValue = d2.value != null ? d2.value : d2.defaultValue, d2 = l2({}, d2, { value: void 0 }); + else if (c3 === "option") { + e3 = this.currentSelectValue; + var L = Ya(d2.children); + if (e3 != null) { + var G = d2.value != null ? d2.value + "" : L; + g2 = false; + if (Array.isArray(e3)) + for (var C = 0; C < e3.length; C++) { + if ("" + e3[C] === G) { + g2 = true; + break; + } + } + else + g2 = "" + e3 === G; + d2 = l2({ selected: void 0, children: void 0 }, d2, { selected: g2, children: L }); + } + } + if (g2 = d2) { + if (Pa[c3] && (g2.children != null || g2.dangerouslySetInnerHTML != null)) + throw Error(p2(137, c3)); + if (g2.dangerouslySetInnerHTML != null) { + if (g2.children != null) + throw Error(p2(60)); + if (!(typeof g2.dangerouslySetInnerHTML === "object" && "__html" in g2.dangerouslySetInnerHTML)) + throw Error(p2(61)); + } + if (g2.style != null && typeof g2.style !== "object") + throw Error(p2(62)); + } + g2 = d2; + e3 = this.makeStaticMarkup; + L = this.stack.length === 1; + G = "<" + a3.type; + b: + if (c3.indexOf("-") === -1) + C = typeof g2.is === "string"; + else + switch (c3) { + case "annotation-xml": + case "color-profile": + case "font-face": + case "font-face-src": + case "font-face-uri": + case "font-face-format": + case "font-face-name": + case "missing-glyph": + C = false; + break b; + default: + C = true; + } + for (w2 in g2) + if (Za.call(g2, w2)) { + var m4 = g2[w2]; + if (m4 != null) { + if (w2 === "style") { + var k = void 0, v2 = "", H = ""; + for (k in m4) + if (m4.hasOwnProperty(k)) { + var x2 = k.indexOf("--") === 0, y3 = m4[k]; + if (y3 != null) { + if (x2) + var A = k; + else if (A = k, Xa.hasOwnProperty(A)) + A = Xa[A]; + else { + var eb2 = A.replace(Ra, "-$1").toLowerCase().replace(Sa, "-ms-"); + A = Xa[A] = eb2; + } + v2 += H + A + ":"; + H = k; + x2 = y3 == null || typeof y3 === "boolean" || y3 === "" ? "" : x2 || typeof y3 !== "number" || y3 === 0 || Y2.hasOwnProperty(H) && Y2[H] ? ("" + y3).trim() : y3 + "px"; + v2 += x2; + H = ";"; + } + } + m4 = v2 || null; + } + k = null; + C ? $a.hasOwnProperty(w2) || (k = w2, k = ta(k) && m4 != null ? k + '="' + (O(m4) + '"') : "") : k = za(w2, m4); + k && (G += " " + k); + } + } + e3 || L && (G += ' data-reactroot=""'); + var w2 = G; + g2 = ""; + Oa.hasOwnProperty(c3) ? w2 += "/>" : (w2 += ">", g2 = ""); + a: { + e3 = d2.dangerouslySetInnerHTML; + if (e3 != null) { + if (e3.__html != null) { + e3 = e3.__html; + break a; + } + } else if (e3 = d2.children, typeof e3 === "string" || typeof e3 === "number") { + e3 = O(e3); + break a; + } + e3 = null; + } + e3 != null ? (d2 = [], Ua.hasOwnProperty(c3) && e3.charAt(0) === "\n" && (w2 += "\n"), w2 += e3) : d2 = Z(d2.children); + a3 = a3.type; + f2 = f2 == null || f2 === "http://www.w3.org/1999/xhtml" ? Na(a3) : f2 === "http://www.w3.org/2000/svg" && a3 === "foreignObject" ? "http://www.w3.org/1999/xhtml" : f2; + this.stack.push({ domNamespace: f2, type: c3, children: d2, childIndex: 0, context: b2, footer: g2 }); + this.previousWasTextNode = false; + return w2; + }; + return a2; + }(); + function db(a2, b) { + a2.prototype = Object.create(b.prototype); + a2.prototype.constructor = a2; + a2.__proto__ = b; + } + var fb = function(a2) { + function b(b2, c4, h2) { + var d2 = a2.call(this, {}) || this; + d2.partialRenderer = new cb(b2, c4, h2); + return d2; + } + db(b, a2); + var c3 = b.prototype; + c3._destroy = function(a3, b2) { + this.partialRenderer.destroy(); + b2(a3); + }; + c3._read = function(a3) { + try { + this.push(this.partialRenderer.read(a3)); + } catch (f2) { + this.destroy(f2); + } + }; + return b; + }(aa.Readable); + exports2.renderToNodeStream = function(a2, b) { + return new fb(a2, false, b); + }; + exports2.renderToStaticMarkup = function(a2, b) { + a2 = new cb(a2, true, b); + try { + return a2.read(Infinity); + } finally { + a2.destroy(); + } + }; + exports2.renderToStaticNodeStream = function(a2, b) { + return new fb(a2, true, b); + }; + exports2.renderToString = function(a2, b) { + a2 = new cb(a2, false, b); + try { + return a2.read(Infinity); + } finally { + a2.destroy(); + } + }; + exports2.version = "17.0.2"; + } +}); + +// node_modules/react-dom/cjs/react-dom-server.node.development.js +var require_react_dom_server_node_development = __commonJS({ + "node_modules/react-dom/cjs/react-dom-server.node.development.js"(exports2) { + "use strict"; + if (process.env.NODE_ENV !== "production") { + (function() { + "use strict"; + var React4 = require_react(); + var _assign = require_object_assign(); + var stream = require("stream"); + var ReactVersion = "17.0.2"; + function formatProdErrorMessage(code) { + var url = "https://reactjs.org/docs/error-decoder.html?invariant=" + code; + for (var i2 = 1; i2 < arguments.length; i2++) { + url += "&args[]=" + encodeURIComponent(arguments[i2]); + } + return "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + } + var ReactSharedInternals = React4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + function warn(format2) { + { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + printWarning("warn", format2, args); + } + } + function error(format2) { + { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + printWarning("error", format2, args); + } + } + function printWarning(level, format2, args) { + { + var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame2.getStackAddendum(); + if (stack !== "") { + format2 += "%s"; + args = args.concat([stack]); + } + var argsWithFormat = args.map(function(item) { + return "" + item; + }); + argsWithFormat.unshift("Warning: " + format2); + Function.prototype.apply.call(console[level], console, argsWithFormat); + } + } + var REACT_ELEMENT_TYPE = 60103; + var REACT_PORTAL_TYPE = 60106; + var REACT_FRAGMENT_TYPE = 60107; + var REACT_STRICT_MODE_TYPE = 60108; + var REACT_PROFILER_TYPE = 60114; + var REACT_PROVIDER_TYPE = 60109; + var REACT_CONTEXT_TYPE = 60110; + var REACT_FORWARD_REF_TYPE = 60112; + var REACT_SUSPENSE_TYPE = 60113; + var REACT_SUSPENSE_LIST_TYPE = 60120; + var REACT_MEMO_TYPE = 60115; + var REACT_LAZY_TYPE = 60116; + var REACT_BLOCK_TYPE = 60121; + var REACT_SERVER_BLOCK_TYPE = 60122; + var REACT_FUNDAMENTAL_TYPE = 60117; + var REACT_SCOPE_TYPE = 60119; + var REACT_OPAQUE_ID_TYPE = 60128; + var REACT_DEBUG_TRACING_MODE_TYPE = 60129; + var REACT_OFFSCREEN_TYPE = 60130; + var REACT_LEGACY_HIDDEN_TYPE = 60131; + if (typeof Symbol === "function" && Symbol.for) { + var symbolFor = Symbol.for; + REACT_ELEMENT_TYPE = symbolFor("react.element"); + REACT_PORTAL_TYPE = symbolFor("react.portal"); + REACT_FRAGMENT_TYPE = symbolFor("react.fragment"); + REACT_STRICT_MODE_TYPE = symbolFor("react.strict_mode"); + REACT_PROFILER_TYPE = symbolFor("react.profiler"); + REACT_PROVIDER_TYPE = symbolFor("react.provider"); + REACT_CONTEXT_TYPE = symbolFor("react.context"); + REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref"); + REACT_SUSPENSE_TYPE = symbolFor("react.suspense"); + REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list"); + REACT_MEMO_TYPE = symbolFor("react.memo"); + REACT_LAZY_TYPE = symbolFor("react.lazy"); + REACT_BLOCK_TYPE = symbolFor("react.block"); + REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block"); + REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental"); + REACT_SCOPE_TYPE = symbolFor("react.scope"); + REACT_OPAQUE_ID_TYPE = symbolFor("react.opaque.id"); + REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode"); + REACT_OFFSCREEN_TYPE = symbolFor("react.offscreen"); + REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden"); + } + function getWrappedName(outerType, innerType, wrapperName) { + var functionName = innerType.displayName || innerType.name || ""; + return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName); + } + function getContextName(type2) { + return type2.displayName || "Context"; + } + function getComponentName(type2) { + if (type2 == null) { + return null; + } + { + if (typeof type2.tag === "number") { + error("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."); + } + } + if (typeof type2 === "function") { + return type2.displayName || type2.name || null; + } + if (typeof type2 === "string") { + return type2; + } + switch (type2) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + } + if (typeof type2 === "object") { + switch (type2.$$typeof) { + case REACT_CONTEXT_TYPE: + var context = type2; + return getContextName(context) + ".Consumer"; + case REACT_PROVIDER_TYPE: + var provider = type2; + return getContextName(provider._context) + ".Provider"; + case REACT_FORWARD_REF_TYPE: + return getWrappedName(type2, type2.render, "ForwardRef"); + case REACT_MEMO_TYPE: + return getComponentName(type2.type); + case REACT_BLOCK_TYPE: + return getComponentName(type2._render); + case REACT_LAZY_TYPE: { + var lazyComponent = type2; + var payload = lazyComponent._payload; + var init2 = lazyComponent._init; + try { + return getComponentName(init2(payload)); + } catch (x2) { + return null; + } + } + } + } + return null; + } + var enableSuspenseServerRenderer = false; + var disabledDepth = 0; + var prevLog; + var prevInfo; + var prevWarn; + var prevError; + var prevGroup; + var prevGroupCollapsed; + var prevGroupEnd; + function disabledLog() { + } + disabledLog.__reactDisabledLog = true; + function disableLogs() { + { + if (disabledDepth === 0) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props2 = { + configurable: true, + enumerable: true, + value: disabledLog, + writable: true + }; + Object.defineProperties(console, { + info: props2, + log: props2, + warn: props2, + error: props2, + group: props2, + groupCollapsed: props2, + groupEnd: props2 + }); + } + disabledDepth++; + } + } + function reenableLogs() { + { + disabledDepth--; + if (disabledDepth === 0) { + var props2 = { + configurable: true, + enumerable: true, + writable: true + }; + Object.defineProperties(console, { + log: _assign({}, props2, { + value: prevLog + }), + info: _assign({}, props2, { + value: prevInfo + }), + warn: _assign({}, props2, { + value: prevWarn + }), + error: _assign({}, props2, { + value: prevError + }), + group: _assign({}, props2, { + value: prevGroup + }), + groupCollapsed: _assign({}, props2, { + value: prevGroupCollapsed + }), + groupEnd: _assign({}, props2, { + value: prevGroupEnd + }) + }); + } + if (disabledDepth < 0) { + error("disabledDepth fell below zero. This is a bug in React. Please file an issue."); + } + } + } + var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; + var prefix; + function describeBuiltInComponentFrame(name, source, ownerFn) { + { + if (prefix === void 0) { + try { + throw Error(); + } catch (x2) { + var match = x2.stack.trim().match(/\n( *(at )?)/); + prefix = match && match[1] || ""; + } + } + return "\n" + prefix + name; + } + } + var reentry = false; + var componentFrameCache; + { + var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; + componentFrameCache = new PossiblyWeakMap(); + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) { + return ""; + } + { + var frame2 = componentFrameCache.get(fn); + if (frame2 !== void 0) { + return frame2; + } + } + var control; + reentry = true; + var previousPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher; + { + previousDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = null; + disableLogs(); + } + try { + if (construct) { + var Fake = function() { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function() { + throw Error(); + } + }); + if (typeof Reflect === "object" && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x2) { + control = x2; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x2) { + control = x2; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x2) { + control = x2; + } + fn(); + } + } catch (sample) { + if (sample && control && typeof sample.stack === "string") { + var sampleLines = sample.stack.split("\n"); + var controlLines = control.stack.split("\n"); + var s = sampleLines.length - 1; + var c3 = controlLines.length - 1; + while (s >= 1 && c3 >= 0 && sampleLines[s] !== controlLines[c3]) { + c3--; + } + for (; s >= 1 && c3 >= 0; s--, c3--) { + if (sampleLines[s] !== controlLines[c3]) { + if (s !== 1 || c3 !== 1) { + do { + s--; + c3--; + if (c3 < 0 || sampleLines[s] !== controlLines[c3]) { + var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); + { + if (typeof fn === "function") { + componentFrameCache.set(fn, _frame); + } + } + return _frame; + } + } while (s >= 1 && c3 >= 0); + } + break; + } + } + } + } finally { + reentry = false; + { + ReactCurrentDispatcher.current = previousDispatcher; + reenableLogs(); + } + Error.prepareStackTrace = previousPrepareStackTrace; + } + var name = fn ? fn.displayName || fn.name : ""; + var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ""; + { + if (typeof fn === "function") { + componentFrameCache.set(fn, syntheticFrame); + } + } + return syntheticFrame; + } + function describeFunctionComponentFrame(fn, source, ownerFn) { + { + return describeNativeComponentFrame(fn, false); + } + } + function shouldConstruct(Component) { + var prototype = Component.prototype; + return !!(prototype && prototype.isReactComponent); + } + function describeUnknownElementTypeFrameInDEV(type2, source, ownerFn) { + if (type2 == null) { + return ""; + } + if (typeof type2 === "function") { + { + return describeNativeComponentFrame(type2, shouldConstruct(type2)); + } + } + if (typeof type2 === "string") { + return describeBuiltInComponentFrame(type2); + } + switch (type2) { + case REACT_SUSPENSE_TYPE: + return describeBuiltInComponentFrame("Suspense"); + case REACT_SUSPENSE_LIST_TYPE: + return describeBuiltInComponentFrame("SuspenseList"); + } + if (typeof type2 === "object") { + switch (type2.$$typeof) { + case REACT_FORWARD_REF_TYPE: + return describeFunctionComponentFrame(type2.render); + case REACT_MEMO_TYPE: + return describeUnknownElementTypeFrameInDEV(type2.type, source, ownerFn); + case REACT_BLOCK_TYPE: + return describeFunctionComponentFrame(type2._render); + case REACT_LAZY_TYPE: { + var lazyComponent = type2; + var payload = lazyComponent._payload; + var init2 = lazyComponent._init; + try { + return describeUnknownElementTypeFrameInDEV(init2(payload), source, ownerFn); + } catch (x2) { + } + } + } + } + return ""; + } + var loggedTypeFailures = {}; + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + function setCurrentlyValidatingElement(element) { + { + if (element) { + var owner = element._owner; + var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); + ReactDebugCurrentFrame.setExtraStackFrame(stack); + } else { + ReactDebugCurrentFrame.setExtraStackFrame(null); + } + } + } + function checkPropTypes(typeSpecs, values, location, componentName, element) { + { + var has = Function.call.bind(Object.prototype.hasOwnProperty); + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error$1 = void 0; + try { + if (typeof typeSpecs[typeSpecName] !== "function") { + var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); + err.name = "Invariant Violation"; + throw err; + } + error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); + } catch (ex2) { + error$1 = ex2; + } + if (error$1 && !(error$1 instanceof Error)) { + setCurrentlyValidatingElement(element); + error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1); + setCurrentlyValidatingElement(null); + } + if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { + loggedTypeFailures[error$1.message] = true; + setCurrentlyValidatingElement(element); + error("Failed %s type: %s", location, error$1.message); + setCurrentlyValidatingElement(null); + } + } + } + } + } + var didWarnAboutInvalidateContextType; + { + didWarnAboutInvalidateContextType = new Set(); + } + var emptyObject = {}; + { + Object.freeze(emptyObject); + } + function maskContext(type2, context) { + var contextTypes = type2.contextTypes; + if (!contextTypes) { + return emptyObject; + } + var maskedContext = {}; + for (var contextName in contextTypes) { + maskedContext[contextName] = context[contextName]; + } + return maskedContext; + } + function checkContextTypes(typeSpecs, values, location) { + { + checkPropTypes(typeSpecs, values, location, "Component"); + } + } + function validateContextBounds(context, threadID) { + for (var i2 = context._threadCount | 0; i2 <= threadID; i2++) { + context[i2] = context._currentValue2; + context._threadCount = i2 + 1; + } + } + function processContext(type2, context, threadID, isClass) { + if (isClass) { + var contextType = type2.contextType; + { + if ("contextType" in type2) { + var isValid = contextType === null || contextType !== void 0 && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === void 0; + if (!isValid && !didWarnAboutInvalidateContextType.has(type2)) { + didWarnAboutInvalidateContextType.add(type2); + var addendum = ""; + if (contextType === void 0) { + addendum = " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file."; + } else if (typeof contextType !== "object") { + addendum = " However, it is set to a " + typeof contextType + "."; + } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) { + addendum = " Did you accidentally pass the Context.Provider instead?"; + } else if (contextType._context !== void 0) { + addendum = " Did you accidentally pass the Context.Consumer instead?"; + } else { + addendum = " However, it is set to an object with keys {" + Object.keys(contextType).join(", ") + "}."; + } + error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s", getComponentName(type2) || "Component", addendum); + } + } + } + if (typeof contextType === "object" && contextType !== null) { + validateContextBounds(contextType, threadID); + return contextType[threadID]; + } + { + var maskedContext = maskContext(type2, context); + { + if (type2.contextTypes) { + checkContextTypes(type2.contextTypes, maskedContext, "context"); + } + } + return maskedContext; + } + } else { + { + var _maskedContext = maskContext(type2, context); + { + if (type2.contextTypes) { + checkContextTypes(type2.contextTypes, _maskedContext, "context"); + } + } + return _maskedContext; + } + } + } + var nextAvailableThreadIDs = new Uint16Array(16); + for (var i = 0; i < 15; i++) { + nextAvailableThreadIDs[i] = i + 1; + } + nextAvailableThreadIDs[15] = 0; + function growThreadCountAndReturnNextAvailable() { + var oldArray = nextAvailableThreadIDs; + var oldSize = oldArray.length; + var newSize = oldSize * 2; + if (!(newSize <= 65536)) { + { + throw Error("Maximum number of concurrent React renderers exceeded. This can happen if you are not properly destroying the Readable provided by React. Ensure that you call .destroy() on it if you no longer want to read from it, and did not read to the end. If you use .pipe() this should be automatic."); + } + } + var newArray = new Uint16Array(newSize); + newArray.set(oldArray); + nextAvailableThreadIDs = newArray; + nextAvailableThreadIDs[0] = oldSize + 1; + for (var _i = oldSize; _i < newSize - 1; _i++) { + nextAvailableThreadIDs[_i] = _i + 1; + } + nextAvailableThreadIDs[newSize - 1] = 0; + return oldSize; + } + function allocThreadID() { + var nextID = nextAvailableThreadIDs[0]; + if (nextID === 0) { + return growThreadCountAndReturnNextAvailable(); + } + nextAvailableThreadIDs[0] = nextAvailableThreadIDs[nextID]; + return nextID; + } + function freeThreadID(id2) { + nextAvailableThreadIDs[id2] = nextAvailableThreadIDs[0]; + nextAvailableThreadIDs[0] = id2; + } + var RESERVED = 0; + var STRING = 1; + var BOOLEANISH_STRING = 2; + var BOOLEAN = 3; + var OVERLOADED_BOOLEAN = 4; + var NUMERIC = 5; + var POSITIVE_NUMERIC = 6; + var ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"; + var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040"; + var ROOT_ATTRIBUTE_NAME = "data-reactroot"; + var VALID_ATTRIBUTE_NAME_REGEX = new RegExp("^[" + ATTRIBUTE_NAME_START_CHAR + "][" + ATTRIBUTE_NAME_CHAR + "]*$"); + var hasOwnProperty = Object.prototype.hasOwnProperty; + var illegalAttributeNameCache = {}; + var validatedAttributeNameCache = {}; + function isAttributeNameSafe(attributeName) { + if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) { + return true; + } + if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) { + return false; + } + if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) { + validatedAttributeNameCache[attributeName] = true; + return true; + } + illegalAttributeNameCache[attributeName] = true; + { + error("Invalid attribute name: `%s`", attributeName); + } + return false; + } + function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) { + if (propertyInfo !== null) { + return propertyInfo.type === RESERVED; + } + if (isCustomComponentTag) { + return false; + } + if (name.length > 2 && (name[0] === "o" || name[0] === "O") && (name[1] === "n" || name[1] === "N")) { + return true; + } + return false; + } + function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) { + if (propertyInfo !== null && propertyInfo.type === RESERVED) { + return false; + } + switch (typeof value) { + case "function": + case "symbol": + return true; + case "boolean": { + if (isCustomComponentTag) { + return false; + } + if (propertyInfo !== null) { + return !propertyInfo.acceptsBooleans; + } else { + var prefix2 = name.toLowerCase().slice(0, 5); + return prefix2 !== "data-" && prefix2 !== "aria-"; + } + } + default: + return false; + } + } + function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) { + if (value === null || typeof value === "undefined") { + return true; + } + if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) { + return true; + } + if (isCustomComponentTag) { + return false; + } + if (propertyInfo !== null) { + switch (propertyInfo.type) { + case BOOLEAN: + return !value; + case OVERLOADED_BOOLEAN: + return value === false; + case NUMERIC: + return isNaN(value); + case POSITIVE_NUMERIC: + return isNaN(value) || value < 1; + } + } + return false; + } + function getPropertyInfo(name) { + return properties2.hasOwnProperty(name) ? properties2[name] : null; + } + function PropertyInfoRecord(name, type2, mustUseProperty, attributeName, attributeNamespace, sanitizeURL2, removeEmptyString) { + this.acceptsBooleans = type2 === BOOLEANISH_STRING || type2 === BOOLEAN || type2 === OVERLOADED_BOOLEAN; + this.attributeName = attributeName; + this.attributeNamespace = attributeNamespace; + this.mustUseProperty = mustUseProperty; + this.propertyName = name; + this.type = type2; + this.sanitizeURL = sanitizeURL2; + this.removeEmptyString = removeEmptyString; + } + var properties2 = {}; + var reservedProps = [ + "children", + "dangerouslySetInnerHTML", + "defaultValue", + "defaultChecked", + "innerHTML", + "suppressContentEditableWarning", + "suppressHydrationWarning", + "style" + ]; + reservedProps.forEach(function(name) { + properties2[name] = new PropertyInfoRecord(name, RESERVED, false, name, null, false, false); + }); + [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(_ref) { + var name = _ref[0], attributeName = _ref[1]; + properties2[name] = new PropertyInfoRecord(name, STRING, false, attributeName, null, false, false); + }); + ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(name) { + properties2[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, name.toLowerCase(), null, false, false); + }); + ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(name) { + properties2[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, name, null, false, false); + }); + [ + "allowFullScreen", + "async", + "autoFocus", + "autoPlay", + "controls", + "default", + "defer", + "disabled", + "disablePictureInPicture", + "disableRemotePlayback", + "formNoValidate", + "hidden", + "loop", + "noModule", + "noValidate", + "open", + "playsInline", + "readOnly", + "required", + "reversed", + "scoped", + "seamless", + "itemScope" + ].forEach(function(name) { + properties2[name] = new PropertyInfoRecord(name, BOOLEAN, false, name.toLowerCase(), null, false, false); + }); + [ + "checked", + "multiple", + "muted", + "selected" + ].forEach(function(name) { + properties2[name] = new PropertyInfoRecord(name, BOOLEAN, true, name, null, false, false); + }); + [ + "capture", + "download" + ].forEach(function(name) { + properties2[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, name, null, false, false); + }); + [ + "cols", + "rows", + "size", + "span" + ].forEach(function(name) { + properties2[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, name, null, false, false); + }); + ["rowSpan", "start"].forEach(function(name) { + properties2[name] = new PropertyInfoRecord(name, NUMERIC, false, name.toLowerCase(), null, false, false); + }); + var CAMELIZE = /[\-\:]([a-z])/g; + var capitalize = function(token) { + return token[1].toUpperCase(); + }; + [ + "accent-height", + "alignment-baseline", + "arabic-form", + "baseline-shift", + "cap-height", + "clip-path", + "clip-rule", + "color-interpolation", + "color-interpolation-filters", + "color-profile", + "color-rendering", + "dominant-baseline", + "enable-background", + "fill-opacity", + "fill-rule", + "flood-color", + "flood-opacity", + "font-family", + "font-size", + "font-size-adjust", + "font-stretch", + "font-style", + "font-variant", + "font-weight", + "glyph-name", + "glyph-orientation-horizontal", + "glyph-orientation-vertical", + "horiz-adv-x", + "horiz-origin-x", + "image-rendering", + "letter-spacing", + "lighting-color", + "marker-end", + "marker-mid", + "marker-start", + "overline-position", + "overline-thickness", + "paint-order", + "panose-1", + "pointer-events", + "rendering-intent", + "shape-rendering", + "stop-color", + "stop-opacity", + "strikethrough-position", + "strikethrough-thickness", + "stroke-dasharray", + "stroke-dashoffset", + "stroke-linecap", + "stroke-linejoin", + "stroke-miterlimit", + "stroke-opacity", + "stroke-width", + "text-anchor", + "text-decoration", + "text-rendering", + "underline-position", + "underline-thickness", + "unicode-bidi", + "unicode-range", + "units-per-em", + "v-alphabetic", + "v-hanging", + "v-ideographic", + "v-mathematical", + "vector-effect", + "vert-adv-y", + "vert-origin-x", + "vert-origin-y", + "word-spacing", + "writing-mode", + "xmlns:xlink", + "x-height" + ].forEach(function(attributeName) { + var name = attributeName.replace(CAMELIZE, capitalize); + properties2[name] = new PropertyInfoRecord(name, STRING, false, attributeName, null, false, false); + }); + [ + "xlink:actuate", + "xlink:arcrole", + "xlink:role", + "xlink:show", + "xlink:title", + "xlink:type" + ].forEach(function(attributeName) { + var name = attributeName.replace(CAMELIZE, capitalize); + properties2[name] = new PropertyInfoRecord(name, STRING, false, attributeName, "http://www.w3.org/1999/xlink", false, false); + }); + [ + "xml:base", + "xml:lang", + "xml:space" + ].forEach(function(attributeName) { + var name = attributeName.replace(CAMELIZE, capitalize); + properties2[name] = new PropertyInfoRecord(name, STRING, false, attributeName, "http://www.w3.org/XML/1998/namespace", false, false); + }); + ["tabIndex", "crossOrigin"].forEach(function(attributeName) { + properties2[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, attributeName.toLowerCase(), null, false, false); + }); + var xlinkHref = "xlinkHref"; + properties2[xlinkHref] = new PropertyInfoRecord("xlinkHref", STRING, false, "xlink:href", "http://www.w3.org/1999/xlink", true, false); + ["src", "href", "action", "formAction"].forEach(function(attributeName) { + properties2[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, attributeName.toLowerCase(), null, true, true); + }); + var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i; + var didWarn = false; + function sanitizeURL(url) { + { + if (!didWarn && isJavaScriptProtocol.test(url)) { + didWarn = true; + error("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.", JSON.stringify(url)); + } + } + } + var matchHtmlRegExp = /["'&<>]/; + function escapeHtml(string) { + var str = "" + string; + var match = matchHtmlRegExp.exec(str); + if (!match) { + return str; + } + var escape; + var html2 = ""; + var index; + var lastIndex = 0; + for (index = match.index; index < str.length; index++) { + switch (str.charCodeAt(index)) { + case 34: + escape = """; + break; + case 38: + escape = "&"; + break; + case 39: + escape = "'"; + break; + case 60: + escape = "<"; + break; + case 62: + escape = ">"; + break; + default: + continue; + } + if (lastIndex !== index) { + html2 += str.substring(lastIndex, index); + } + lastIndex = index + 1; + html2 += escape; + } + return lastIndex !== index ? html2 + str.substring(lastIndex, index) : html2; + } + function escapeTextForBrowser(text) { + if (typeof text === "boolean" || typeof text === "number") { + return "" + text; + } + return escapeHtml(text); + } + function quoteAttributeValueForBrowser(value) { + return '"' + escapeTextForBrowser(value) + '"'; + } + function createMarkupForRoot() { + return ROOT_ATTRIBUTE_NAME + '=""'; + } + function createMarkupForProperty(name, value) { + var propertyInfo = getPropertyInfo(name); + if (name !== "style" && shouldIgnoreAttribute(name, propertyInfo, false)) { + return ""; + } + if (shouldRemoveAttribute(name, value, propertyInfo, false)) { + return ""; + } + if (propertyInfo !== null) { + var attributeName = propertyInfo.attributeName; + var type2 = propertyInfo.type; + if (type2 === BOOLEAN || type2 === OVERLOADED_BOOLEAN && value === true) { + return attributeName + '=""'; + } else { + if (propertyInfo.sanitizeURL) { + value = "" + value; + sanitizeURL(value); + } + return attributeName + "=" + quoteAttributeValueForBrowser(value); + } + } else if (isAttributeNameSafe(name)) { + return name + "=" + quoteAttributeValueForBrowser(value); + } + return ""; + } + function createMarkupForCustomAttribute(name, value) { + if (!isAttributeNameSafe(name) || value == null) { + return ""; + } + return name + "=" + quoteAttributeValueForBrowser(value); + } + function is(x2, y3) { + return x2 === y3 && (x2 !== 0 || 1 / x2 === 1 / y3) || x2 !== x2 && y3 !== y3; + } + var objectIs = typeof Object.is === "function" ? Object.is : is; + var currentlyRenderingComponent = null; + var firstWorkInProgressHook = null; + var workInProgressHook = null; + var isReRender = false; + var didScheduleRenderPhaseUpdate = false; + var renderPhaseUpdates = null; + var numberOfReRenders = 0; + var RE_RENDER_LIMIT = 25; + var isInHookUserCodeInDev = false; + var currentHookNameInDev; + function resolveCurrentlyRenderingComponent() { + if (!(currentlyRenderingComponent !== null)) { + { + throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); + } + } + { + if (isInHookUserCodeInDev) { + error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"); + } + } + return currentlyRenderingComponent; + } + function areHookInputsEqual(nextDeps, prevDeps) { + if (prevDeps === null) { + { + error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.", currentHookNameInDev); + } + return false; + } + { + if (nextDeps.length !== prevDeps.length) { + error("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s", currentHookNameInDev, "[" + nextDeps.join(", ") + "]", "[" + prevDeps.join(", ") + "]"); + } + } + for (var i2 = 0; i2 < prevDeps.length && i2 < nextDeps.length; i2++) { + if (objectIs(nextDeps[i2], prevDeps[i2])) { + continue; + } + return false; + } + return true; + } + function createHook() { + if (numberOfReRenders > 0) { + { + { + throw Error("Rendered more hooks than during the previous render"); + } + } + } + return { + memoizedState: null, + queue: null, + next: null + }; + } + function createWorkInProgressHook() { + if (workInProgressHook === null) { + if (firstWorkInProgressHook === null) { + isReRender = false; + firstWorkInProgressHook = workInProgressHook = createHook(); + } else { + isReRender = true; + workInProgressHook = firstWorkInProgressHook; + } + } else { + if (workInProgressHook.next === null) { + isReRender = false; + workInProgressHook = workInProgressHook.next = createHook(); + } else { + isReRender = true; + workInProgressHook = workInProgressHook.next; + } + } + return workInProgressHook; + } + function prepareToUseHooks(componentIdentity) { + currentlyRenderingComponent = componentIdentity; + { + isInHookUserCodeInDev = false; + } + } + function finishHooks(Component, props2, children2, refOrContext) { + while (didScheduleRenderPhaseUpdate) { + didScheduleRenderPhaseUpdate = false; + numberOfReRenders += 1; + workInProgressHook = null; + children2 = Component(props2, refOrContext); + } + resetHooksState(); + return children2; + } + function resetHooksState() { + { + isInHookUserCodeInDev = false; + } + currentlyRenderingComponent = null; + didScheduleRenderPhaseUpdate = false; + firstWorkInProgressHook = null; + numberOfReRenders = 0; + renderPhaseUpdates = null; + workInProgressHook = null; + } + function readContext(context, observedBits) { + var threadID = currentPartialRenderer.threadID; + validateContextBounds(context, threadID); + { + if (isInHookUserCodeInDev) { + error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."); + } + } + return context[threadID]; + } + function useContext(context, observedBits) { + { + currentHookNameInDev = "useContext"; + } + resolveCurrentlyRenderingComponent(); + var threadID = currentPartialRenderer.threadID; + validateContextBounds(context, threadID); + return context[threadID]; + } + function basicStateReducer(state, action) { + return typeof action === "function" ? action(state) : action; + } + function useState2(initialState) { + { + currentHookNameInDev = "useState"; + } + return useReducer(basicStateReducer, initialState); + } + function useReducer(reducer, initialArg, init2) { + { + if (reducer !== basicStateReducer) { + currentHookNameInDev = "useReducer"; + } + } + currentlyRenderingComponent = resolveCurrentlyRenderingComponent(); + workInProgressHook = createWorkInProgressHook(); + if (isReRender) { + var queue = workInProgressHook.queue; + var dispatch2 = queue.dispatch; + if (renderPhaseUpdates !== null) { + var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue); + if (firstRenderPhaseUpdate !== void 0) { + renderPhaseUpdates.delete(queue); + var newState = workInProgressHook.memoizedState; + var update = firstRenderPhaseUpdate; + do { + var action = update.action; + { + isInHookUserCodeInDev = true; + } + newState = reducer(newState, action); + { + isInHookUserCodeInDev = false; + } + update = update.next; + } while (update !== null); + workInProgressHook.memoizedState = newState; + return [newState, dispatch2]; + } + } + return [workInProgressHook.memoizedState, dispatch2]; + } else { + { + isInHookUserCodeInDev = true; + } + var initialState; + if (reducer === basicStateReducer) { + initialState = typeof initialArg === "function" ? initialArg() : initialArg; + } else { + initialState = init2 !== void 0 ? init2(initialArg) : initialArg; + } + { + isInHookUserCodeInDev = false; + } + workInProgressHook.memoizedState = initialState; + var _queue = workInProgressHook.queue = { + last: null, + dispatch: null + }; + var _dispatch = _queue.dispatch = dispatchAction.bind(null, currentlyRenderingComponent, _queue); + return [workInProgressHook.memoizedState, _dispatch]; + } + } + function useMemo3(nextCreate, deps) { + currentlyRenderingComponent = resolveCurrentlyRenderingComponent(); + workInProgressHook = createWorkInProgressHook(); + var nextDeps = deps === void 0 ? null : deps; + if (workInProgressHook !== null) { + var prevState = workInProgressHook.memoizedState; + if (prevState !== null) { + if (nextDeps !== null) { + var prevDeps = prevState[1]; + if (areHookInputsEqual(nextDeps, prevDeps)) { + return prevState[0]; + } + } + } + } + { + isInHookUserCodeInDev = true; + } + var nextValue = nextCreate(); + { + isInHookUserCodeInDev = false; + } + workInProgressHook.memoizedState = [nextValue, nextDeps]; + return nextValue; + } + function useRef2(initialValue) { + currentlyRenderingComponent = resolveCurrentlyRenderingComponent(); + workInProgressHook = createWorkInProgressHook(); + var previousRef = workInProgressHook.memoizedState; + if (previousRef === null) { + var ref = { + current: initialValue + }; + { + Object.seal(ref); + } + workInProgressHook.memoizedState = ref; + return ref; + } else { + return previousRef; + } + } + function useLayoutEffect(create3, inputs) { + { + currentHookNameInDev = "useLayoutEffect"; + error("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes."); + } + } + function dispatchAction(componentIdentity, queue, action) { + if (!(numberOfReRenders < RE_RENDER_LIMIT)) { + { + throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop."); + } + } + if (componentIdentity === currentlyRenderingComponent) { + didScheduleRenderPhaseUpdate = true; + var update = { + action, + next: null + }; + if (renderPhaseUpdates === null) { + renderPhaseUpdates = new Map(); + } + var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue); + if (firstRenderPhaseUpdate === void 0) { + renderPhaseUpdates.set(queue, update); + } else { + var lastRenderPhaseUpdate = firstRenderPhaseUpdate; + while (lastRenderPhaseUpdate.next !== null) { + lastRenderPhaseUpdate = lastRenderPhaseUpdate.next; + } + lastRenderPhaseUpdate.next = update; + } + } + } + function useCallback(callback, deps) { + return useMemo3(function() { + return callback; + }, deps); + } + function useMutableSource(source, getSnapshot, subscribe) { + resolveCurrentlyRenderingComponent(); + return getSnapshot(source._source); + } + function useDeferredValue(value) { + resolveCurrentlyRenderingComponent(); + return value; + } + function useTransition() { + resolveCurrentlyRenderingComponent(); + var startTransition = function(callback) { + callback(); + }; + return [startTransition, false]; + } + function useOpaqueIdentifier() { + return (currentPartialRenderer.identifierPrefix || "") + "R:" + (currentPartialRenderer.uniqueID++).toString(36); + } + function noop2() { + } + var currentPartialRenderer = null; + function setCurrentPartialRenderer(renderer) { + currentPartialRenderer = renderer; + } + var Dispatcher = { + readContext, + useContext, + useMemo: useMemo3, + useReducer, + useRef: useRef2, + useState: useState2, + useLayoutEffect, + useCallback, + useImperativeHandle: noop2, + useEffect: noop2, + useDebugValue: noop2, + useDeferredValue, + useTransition, + useOpaqueIdentifier, + useMutableSource + }; + var HTML_NAMESPACE = "http://www.w3.org/1999/xhtml"; + var MATH_NAMESPACE = "http://www.w3.org/1998/Math/MathML"; + var SVG_NAMESPACE = "http://www.w3.org/2000/svg"; + var Namespaces = { + html: HTML_NAMESPACE, + mathml: MATH_NAMESPACE, + svg: SVG_NAMESPACE + }; + function getIntrinsicNamespace(type2) { + switch (type2) { + case "svg": + return SVG_NAMESPACE; + case "math": + return MATH_NAMESPACE; + default: + return HTML_NAMESPACE; + } + } + function getChildNamespace(parentNamespace, type2) { + if (parentNamespace == null || parentNamespace === HTML_NAMESPACE) { + return getIntrinsicNamespace(type2); + } + if (parentNamespace === SVG_NAMESPACE && type2 === "foreignObject") { + return HTML_NAMESPACE; + } + return parentNamespace; + } + var hasReadOnlyValue = { + button: true, + checkbox: true, + image: true, + hidden: true, + radio: true, + reset: true, + submit: true + }; + function checkControlledValueProps(tagName, props2) { + { + if (!(hasReadOnlyValue[props2.type] || props2.onChange || props2.onInput || props2.readOnly || props2.disabled || props2.value == null)) { + error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."); + } + if (!(props2.onChange || props2.readOnly || props2.disabled || props2.checked == null)) { + error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`."); + } + } + } + var omittedCloseTags = { + area: true, + base: true, + br: true, + col: true, + embed: true, + hr: true, + img: true, + input: true, + keygen: true, + link: true, + meta: true, + param: true, + source: true, + track: true, + wbr: true + }; + var voidElementTags = _assign({ + menuitem: true + }, omittedCloseTags); + var HTML = "__html"; + function assertValidProps(tag, props2) { + if (!props2) { + return; + } + if (voidElementTags[tag]) { + if (!(props2.children == null && props2.dangerouslySetInnerHTML == null)) { + { + throw Error(tag + " is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`."); + } + } + } + if (props2.dangerouslySetInnerHTML != null) { + if (!(props2.children == null)) { + { + throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`."); + } + } + if (!(typeof props2.dangerouslySetInnerHTML === "object" && HTML in props2.dangerouslySetInnerHTML)) { + { + throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information."); + } + } + } + { + if (!props2.suppressContentEditableWarning && props2.contentEditable && props2.children != null) { + error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."); + } + } + if (!(props2.style == null || typeof props2.style === "object")) { + { + throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX."); + } + } + } + var isUnitlessNumber = { + animationIterationCount: true, + borderImageOutset: true, + borderImageSlice: true, + borderImageWidth: true, + boxFlex: true, + boxFlexGroup: true, + boxOrdinalGroup: true, + columnCount: true, + columns: true, + flex: true, + flexGrow: true, + flexPositive: true, + flexShrink: true, + flexNegative: true, + flexOrder: true, + gridArea: true, + gridRow: true, + gridRowEnd: true, + gridRowSpan: true, + gridRowStart: true, + gridColumn: true, + gridColumnEnd: true, + gridColumnSpan: true, + gridColumnStart: true, + fontWeight: true, + lineClamp: true, + lineHeight: true, + opacity: true, + order: true, + orphans: true, + tabSize: true, + widows: true, + zIndex: true, + zoom: true, + fillOpacity: true, + floodOpacity: true, + stopOpacity: true, + strokeDasharray: true, + strokeDashoffset: true, + strokeMiterlimit: true, + strokeOpacity: true, + strokeWidth: true + }; + function prefixKey(prefix2, key) { + return prefix2 + key.charAt(0).toUpperCase() + key.substring(1); + } + var prefixes2 = ["Webkit", "ms", "Moz", "O"]; + Object.keys(isUnitlessNumber).forEach(function(prop) { + prefixes2.forEach(function(prefix2) { + isUnitlessNumber[prefixKey(prefix2, prop)] = isUnitlessNumber[prop]; + }); + }); + function dangerousStyleValue(name, value, isCustomProperty) { + var isEmpty = value == null || typeof value === "boolean" || value === ""; + if (isEmpty) { + return ""; + } + if (!isCustomProperty && typeof value === "number" && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) { + return value + "px"; + } + return ("" + value).trim(); + } + var uppercasePattern = /([A-Z])/g; + var msPattern = /^ms-/; + function hyphenateStyleName(name) { + return name.replace(uppercasePattern, "-$1").toLowerCase().replace(msPattern, "-ms-"); + } + function isCustomComponent(tagName, props2) { + if (tagName.indexOf("-") === -1) { + return typeof props2.is === "string"; + } + switch (tagName) { + case "annotation-xml": + case "color-profile": + case "font-face": + case "font-face-src": + case "font-face-uri": + case "font-face-format": + case "font-face-name": + case "missing-glyph": + return false; + default: + return true; + } + } + var warnValidStyle = function() { + }; + { + var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/; + var msPattern$1 = /^-ms-/; + var hyphenPattern = /-(.)/g; + var badStyleValueWithSemicolonPattern = /;\s*$/; + var warnedStyleNames = {}; + var warnedStyleValues = {}; + var warnedForNaNValue = false; + var warnedForInfinityValue = false; + var camelize = function(string) { + return string.replace(hyphenPattern, function(_10, character) { + return character.toUpperCase(); + }); + }; + var warnHyphenatedStyleName = function(name) { + if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { + return; + } + warnedStyleNames[name] = true; + error("Unsupported style property %s. Did you mean %s?", name, camelize(name.replace(msPattern$1, "ms-"))); + }; + var warnBadVendoredStyleName = function(name) { + if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) { + return; + } + warnedStyleNames[name] = true; + error("Unsupported vendor-prefixed style property %s. Did you mean %s?", name, name.charAt(0).toUpperCase() + name.slice(1)); + }; + var warnStyleValueWithSemicolon = function(name, value) { + if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) { + return; + } + warnedStyleValues[value] = true; + error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`, name, value.replace(badStyleValueWithSemicolonPattern, "")); + }; + var warnStyleValueIsNaN = function(name, value) { + if (warnedForNaNValue) { + return; + } + warnedForNaNValue = true; + error("`NaN` is an invalid value for the `%s` css style property.", name); + }; + var warnStyleValueIsInfinity = function(name, value) { + if (warnedForInfinityValue) { + return; + } + warnedForInfinityValue = true; + error("`Infinity` is an invalid value for the `%s` css style property.", name); + }; + warnValidStyle = function(name, value) { + if (name.indexOf("-") > -1) { + warnHyphenatedStyleName(name); + } else if (badVendoredStyleNamePattern.test(name)) { + warnBadVendoredStyleName(name); + } else if (badStyleValueWithSemicolonPattern.test(value)) { + warnStyleValueWithSemicolon(name, value); + } + if (typeof value === "number") { + if (isNaN(value)) { + warnStyleValueIsNaN(name, value); + } else if (!isFinite(value)) { + warnStyleValueIsInfinity(name, value); + } + } + }; + } + var warnValidStyle$1 = warnValidStyle; + var ariaProperties = { + "aria-current": 0, + "aria-details": 0, + "aria-disabled": 0, + "aria-hidden": 0, + "aria-invalid": 0, + "aria-keyshortcuts": 0, + "aria-label": 0, + "aria-roledescription": 0, + "aria-autocomplete": 0, + "aria-checked": 0, + "aria-expanded": 0, + "aria-haspopup": 0, + "aria-level": 0, + "aria-modal": 0, + "aria-multiline": 0, + "aria-multiselectable": 0, + "aria-orientation": 0, + "aria-placeholder": 0, + "aria-pressed": 0, + "aria-readonly": 0, + "aria-required": 0, + "aria-selected": 0, + "aria-sort": 0, + "aria-valuemax": 0, + "aria-valuemin": 0, + "aria-valuenow": 0, + "aria-valuetext": 0, + "aria-atomic": 0, + "aria-busy": 0, + "aria-live": 0, + "aria-relevant": 0, + "aria-dropeffect": 0, + "aria-grabbed": 0, + "aria-activedescendant": 0, + "aria-colcount": 0, + "aria-colindex": 0, + "aria-colspan": 0, + "aria-controls": 0, + "aria-describedby": 0, + "aria-errormessage": 0, + "aria-flowto": 0, + "aria-labelledby": 0, + "aria-owns": 0, + "aria-posinset": 0, + "aria-rowcount": 0, + "aria-rowindex": 0, + "aria-rowspan": 0, + "aria-setsize": 0 + }; + var warnedProperties = {}; + var rARIA = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"); + var rARIACamel = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); + var hasOwnProperty$1 = Object.prototype.hasOwnProperty; + function validateProperty(tagName, name) { + { + if (hasOwnProperty$1.call(warnedProperties, name) && warnedProperties[name]) { + return true; + } + if (rARIACamel.test(name)) { + var ariaName = "aria-" + name.slice(4).toLowerCase(); + var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null; + if (correctName == null) { + error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.", name); + warnedProperties[name] = true; + return true; + } + if (name !== correctName) { + error("Invalid ARIA attribute `%s`. Did you mean `%s`?", name, correctName); + warnedProperties[name] = true; + return true; + } + } + if (rARIA.test(name)) { + var lowerCasedName = name.toLowerCase(); + var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null; + if (standardName == null) { + warnedProperties[name] = true; + return false; + } + if (name !== standardName) { + error("Unknown ARIA attribute `%s`. Did you mean `%s`?", name, standardName); + warnedProperties[name] = true; + return true; + } + } + } + return true; + } + function warnInvalidARIAProps(type2, props2) { + { + var invalidProps = []; + for (var key in props2) { + var isValid = validateProperty(type2, key); + if (!isValid) { + invalidProps.push(key); + } + } + var unknownPropString = invalidProps.map(function(prop) { + return "`" + prop + "`"; + }).join(", "); + if (invalidProps.length === 1) { + error("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props", unknownPropString, type2); + } else if (invalidProps.length > 1) { + error("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props", unknownPropString, type2); + } + } + } + function validateProperties(type2, props2) { + if (isCustomComponent(type2, props2)) { + return; + } + warnInvalidARIAProps(type2, props2); + } + var didWarnValueNull = false; + function validateProperties$1(type2, props2) { + { + if (type2 !== "input" && type2 !== "textarea" && type2 !== "select") { + return; + } + if (props2 != null && props2.value === null && !didWarnValueNull) { + didWarnValueNull = true; + if (type2 === "select" && props2.multiple) { + error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.", type2); + } else { + error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.", type2); } } } @@ -6449,1213 +13703,3877 @@ var require_react_dom_server_node_development = __commonJS({ z: "z", zoomandpan: "zoomAndPan" }; - var validateProperty$1 = function() { + var validateProperty$1 = function() { + }; + { + var warnedProperties$1 = {}; + var _hasOwnProperty = Object.prototype.hasOwnProperty; + var EVENT_NAME_REGEX = /^on./; + var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/; + var rARIA$1 = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"); + var rARIACamel$1 = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); + validateProperty$1 = function(tagName, name, value, eventRegistry) { + if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) { + return true; + } + var lowerCasedName = name.toLowerCase(); + if (lowerCasedName === "onfocusin" || lowerCasedName === "onfocusout") { + error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."); + warnedProperties$1[name] = true; + return true; + } + if (eventRegistry != null) { + var registrationNameDependencies = eventRegistry.registrationNameDependencies, possibleRegistrationNames = eventRegistry.possibleRegistrationNames; + if (registrationNameDependencies.hasOwnProperty(name)) { + return true; + } + var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null; + if (registrationName != null) { + error("Invalid event handler property `%s`. Did you mean `%s`?", name, registrationName); + warnedProperties$1[name] = true; + return true; + } + if (EVENT_NAME_REGEX.test(name)) { + error("Unknown event handler property `%s`. It will be ignored.", name); + warnedProperties$1[name] = true; + return true; + } + } else if (EVENT_NAME_REGEX.test(name)) { + if (INVALID_EVENT_NAME_REGEX.test(name)) { + error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.", name); + } + warnedProperties$1[name] = true; + return true; + } + if (rARIA$1.test(name) || rARIACamel$1.test(name)) { + return true; + } + if (lowerCasedName === "innerhtml") { + error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."); + warnedProperties$1[name] = true; + return true; + } + if (lowerCasedName === "aria") { + error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."); + warnedProperties$1[name] = true; + return true; + } + if (lowerCasedName === "is" && value !== null && value !== void 0 && typeof value !== "string") { + error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.", typeof value); + warnedProperties$1[name] = true; + return true; + } + if (typeof value === "number" && isNaN(value)) { + error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.", name); + warnedProperties$1[name] = true; + return true; + } + var propertyInfo = getPropertyInfo(name); + var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED; + if (possibleStandardNames.hasOwnProperty(lowerCasedName)) { + var standardName = possibleStandardNames[lowerCasedName]; + if (standardName !== name) { + error("Invalid DOM property `%s`. Did you mean `%s`?", name, standardName); + warnedProperties$1[name] = true; + return true; + } + } else if (!isReserved && name !== lowerCasedName) { + error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.", name, lowerCasedName); + warnedProperties$1[name] = true; + return true; + } + if (typeof value === "boolean" && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) { + if (value) { + error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.', value, name, name, value, name); + } else { + error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name); + } + warnedProperties$1[name] = true; + return true; + } + if (isReserved) { + return true; + } + if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) { + warnedProperties$1[name] = true; + return false; + } + if ((value === "false" || value === "true") && propertyInfo !== null && propertyInfo.type === BOOLEAN) { + error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?", value, name, value === "false" ? "The browser will interpret it as a truthy value." : 'Although this works, it will not work as expected if you pass the string "false".', name, value); + warnedProperties$1[name] = true; + return true; + } + return true; + }; + } + var warnUnknownProperties = function(type2, props2, eventRegistry) { + { + var unknownProps = []; + for (var key in props2) { + var isValid = validateProperty$1(type2, key, props2[key], eventRegistry); + if (!isValid) { + unknownProps.push(key); + } + } + var unknownPropString = unknownProps.map(function(prop) { + return "`" + prop + "`"; + }).join(", "); + if (unknownProps.length === 1) { + error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ", unknownPropString, type2); + } else if (unknownProps.length > 1) { + error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ", unknownPropString, type2); + } + } + }; + function validateProperties$2(type2, props2, eventRegistry) { + if (isCustomComponent(type2, props2)) { + return; + } + warnUnknownProperties(type2, props2, eventRegistry); + } + var toArray = React4.Children.toArray; + var currentDebugStacks = []; + var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher; + var ReactDebugCurrentFrame$1; + var prevGetCurrentStackImpl = null; + var getCurrentServerStackImpl = function() { + return ""; + }; + var describeStackFrame = function(element) { + return ""; + }; + var validatePropertiesInDevelopment = function(type2, props2) { + }; + var pushCurrentDebugStack = function(stack) { + }; + var pushElementToDebugStack = function(element) { + }; + var popCurrentDebugStack = function() { + }; + var hasWarnedAboutUsingContextAsConsumer = false; + { + ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; + validatePropertiesInDevelopment = function(type2, props2) { + validateProperties(type2, props2); + validateProperties$1(type2, props2); + validateProperties$2(type2, props2, null); + }; + describeStackFrame = function(element) { + return describeUnknownElementTypeFrameInDEV(element.type, element._source, null); + }; + pushCurrentDebugStack = function(stack) { + currentDebugStacks.push(stack); + if (currentDebugStacks.length === 1) { + prevGetCurrentStackImpl = ReactDebugCurrentFrame$1.getCurrentStack; + ReactDebugCurrentFrame$1.getCurrentStack = getCurrentServerStackImpl; + } + }; + pushElementToDebugStack = function(element) { + var stack = currentDebugStacks[currentDebugStacks.length - 1]; + var frame2 = stack[stack.length - 1]; + frame2.debugElementStack.push(element); + }; + popCurrentDebugStack = function() { + currentDebugStacks.pop(); + if (currentDebugStacks.length === 0) { + ReactDebugCurrentFrame$1.getCurrentStack = prevGetCurrentStackImpl; + prevGetCurrentStackImpl = null; + } + }; + getCurrentServerStackImpl = function() { + if (currentDebugStacks.length === 0) { + return ""; + } + var frames = currentDebugStacks[currentDebugStacks.length - 1]; + var stack = ""; + for (var i2 = frames.length - 1; i2 >= 0; i2--) { + var frame2 = frames[i2]; + var debugElementStack = frame2.debugElementStack; + for (var ii = debugElementStack.length - 1; ii >= 0; ii--) { + stack += describeStackFrame(debugElementStack[ii]); + } + } + return stack; + }; + } + var didWarnDefaultInputValue = false; + var didWarnDefaultChecked = false; + var didWarnDefaultSelectValue = false; + var didWarnDefaultTextareaValue = false; + var didWarnInvalidOptionChildren = false; + var didWarnAboutNoopUpdateForComponent = {}; + var didWarnAboutBadClass = {}; + var didWarnAboutModulePatternComponent = {}; + var didWarnAboutDeprecatedWillMount = {}; + var didWarnAboutUndefinedDerivedState = {}; + var didWarnAboutUninitializedState = {}; + var valuePropNames = ["value", "defaultValue"]; + var newlineEatingTags = { + listing: true, + pre: true, + textarea: true + }; + var VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/; + var validatedTagCache = {}; + function validateDangerousTag(tag) { + if (!validatedTagCache.hasOwnProperty(tag)) { + if (!VALID_TAG_REGEX.test(tag)) { + { + throw Error("Invalid tag: " + tag); + } + } + validatedTagCache[tag] = true; + } + } + var styleNameCache = {}; + var processStyleName = function(styleName) { + if (styleNameCache.hasOwnProperty(styleName)) { + return styleNameCache[styleName]; + } + var result = hyphenateStyleName(styleName); + styleNameCache[styleName] = result; + return result; }; - { - var warnedProperties$1 = {}; - var _hasOwnProperty = Object.prototype.hasOwnProperty; - var EVENT_NAME_REGEX = /^on./; - var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/; - var rARIA$1 = new RegExp("^(aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$"); - var rARIACamel$1 = new RegExp("^(aria)[A-Z][" + ATTRIBUTE_NAME_CHAR + "]*$"); - validateProperty$1 = function(tagName, name, value, eventRegistry) { - if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) { - return true; + function createMarkupForStyles(styles) { + var serialized = ""; + var delimiter = ""; + for (var styleName in styles) { + if (!styles.hasOwnProperty(styleName)) { + continue; } - var lowerCasedName = name.toLowerCase(); - if (lowerCasedName === "onfocusin" || lowerCasedName === "onfocusout") { - error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."); - warnedProperties$1[name] = true; - return true; + var isCustomProperty = styleName.indexOf("--") === 0; + var styleValue2 = styles[styleName]; + { + if (!isCustomProperty) { + warnValidStyle$1(styleName, styleValue2); + } } - if (eventRegistry != null) { - var registrationNameDependencies = eventRegistry.registrationNameDependencies, possibleRegistrationNames = eventRegistry.possibleRegistrationNames; - if (registrationNameDependencies.hasOwnProperty(name)) { - return true; + if (styleValue2 != null) { + serialized += delimiter + (isCustomProperty ? styleName : processStyleName(styleName)) + ":"; + serialized += dangerousStyleValue(styleName, styleValue2, isCustomProperty); + delimiter = ";"; + } + } + return serialized || null; + } + function warnNoop(publicInstance, callerName) { + { + var _constructor = publicInstance.constructor; + var componentName = _constructor && getComponentName(_constructor) || "ReactClass"; + var warningKey = componentName + "." + callerName; + if (didWarnAboutNoopUpdateForComponent[warningKey]) { + return; + } + error("%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.\n\nPlease check the code for the %s component.", callerName, callerName, componentName); + didWarnAboutNoopUpdateForComponent[warningKey] = true; + } + } + function shouldConstruct$1(Component) { + return Component.prototype && Component.prototype.isReactComponent; + } + function getNonChildrenInnerMarkup(props2) { + var innerHTML = props2.dangerouslySetInnerHTML; + if (innerHTML != null) { + if (innerHTML.__html != null) { + return innerHTML.__html; + } + } else { + var content = props2.children; + if (typeof content === "string" || typeof content === "number") { + return escapeTextForBrowser(content); + } + } + return null; + } + function flattenTopLevelChildren(children2) { + if (!React4.isValidElement(children2)) { + return toArray(children2); + } + var element = children2; + if (element.type !== REACT_FRAGMENT_TYPE) { + return [element]; + } + var fragmentChildren = element.props.children; + if (!React4.isValidElement(fragmentChildren)) { + return toArray(fragmentChildren); + } + var fragmentChildElement = fragmentChildren; + return [fragmentChildElement]; + } + function flattenOptionChildren(children2) { + if (children2 === void 0 || children2 === null) { + return children2; + } + var content = ""; + React4.Children.forEach(children2, function(child) { + if (child == null) { + return; + } + content += child; + { + if (!didWarnInvalidOptionChildren && typeof child !== "string" && typeof child !== "number") { + didWarnInvalidOptionChildren = true; + error("Only strings and numbers are supported as